File: configure.in

package info (click to toggle)
tsclient 0.150-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,712 kB
  • ctags: 158
  • sloc: sh: 3,658; ansic: 3,540; makefile: 132
file content (81 lines) | stat: -rw-r--r-- 1,983 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
AC_INIT([tsclient], [0.150],
        [http://www.gnomepro.com/tsclient])

AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)

AC_PROG_INTLTOOL(0.35.0)

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC

dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")

GETTEXT_PACKAGE=tsclient
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [gettext package])

dnl Add the languages which your application supports here.
ALL_LINGUAS="ar ca cs da de el es fi fr gr he hu id it ja mk ms nl_NL nb pa pl_PL pt_BR pt_PT ru sv tr xh zh_CN zh_HK zh_TW"
AM_GLIB_GNU_GETTEXT

dnl ==========================================================================

set_debug=no
AC_ARG_ENABLE(debug,
[  --enable-debug       Lots of noisy debug messages],
set_debug="$enableval")

AC_MSG_CHECKING(if debug messages are enabled)
if test "$set_debug" != "no"; then
        AC_MSG_RESULT(yes)
        CFLAGS="-DTSCLIENT_DEBUG -g -O0"
else
        AC_MSG_RESULT(no)
fi

AC_ARG_ENABLE(gnome,
	AC_HELP_STRING([--disable-gnome],[Compile a gtk+ only version]),
	[case "${enableval}" in
	yes) ENABLE_GNOME=yes ;;
	no) ENABLE_GNOME=no ;;
	*) AC_MSG_ERROR(bad value ${enableval} for --disable-gnome) ;;
	esac],
	[ENABLE_GNOME=yes])

if test x$ENABLE_GNOME = "xno" ; then
   pkg_modules="gtk+-2.0"
else
   AC_DEFINE([HAVE_GNOME],1,[gnome support])
   pkg_modules="libgnomeui-2.0"
   pkg_modules="libpanelapplet-2.0"   
fi

PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)


dnl ==========================================================================

AC_OUTPUT([
Makefile
src/Makefile
applet/Makefile
po/Makefile.in
])

echo "
$GETTEXT_PACKAGE-$VERSION:
        prefix:             ${prefix}
        source location:    ${srcdir}
        compiler:           ${CC}
	gnome support:      ${ENABLE_GNOME}
        debug messages:     ${set_debug}

        Good luck!
"