configure.in 1.62 KB
Newer Older
Rodrigo Moya's avatar
Rodrigo Moya committed
1 2 3 4 5 6 7
AC_PREREQ(2.52)
AC_INIT(src/ping.c)

dnl Useful to call aclocal after 'make'
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")

AM_CONFIG_HEADER(config.h)
Rodrigo Moya's avatar
Rodrigo Moya committed
8
AM_INIT_AUTOMAKE(gnome-nettool, 2.13.90)
Rodrigo Moya's avatar
Rodrigo Moya committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22
AM_MAINTAINER_MODE

AC_PROG_INTLTOOL([0.11])

AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_CHECK_HEADERS(sys/sockio.h sys/socket.h)
dnl AC_ARG_PROGRAM
AM_PROG_LIBTOOL

GNOME_COMPILE_WARNINGS(yes)
CFLAGS="$CFLAGS $WARN_CFLAGS"

23 24 25 26
dnl ******************************************
dnl ** pkg-config dependacy checks          **
dnl ******************************************

27

28
GTK_REQUIRED=2.5.4
29 30 31 32 33 34 35
LIBGLADE_REQUIRED=2.0.0
GCONF_REQUIRED=1.1.11

PKG_CHECK_MODULES(NETTOOL, 
		  gtk+-2.0       >= $GTK_REQUIRED 
		  libglade-2.0   >= $LIBGLADE_REQUIRED 
		  gconf-2.0      >= $GCONF_REQUIRED)
Rodrigo Moya's avatar
Rodrigo Moya committed
36 37
AC_SUBST(NETTOOL_CFLAGS)
AC_SUBST(NETTOOL_LIBS)
Rodrigo Moya's avatar
Rodrigo Moya committed
38 39 40 41

dnl
dnl Translations
dnl
Rodrigo Moya's avatar
Rodrigo Moya committed
42
GETTEXT_PACKAGE=gnome-nettool
Rodrigo Moya's avatar
Rodrigo Moya committed
43 44
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The gettext package])
Abel Cheung's avatar
Abel Cheung committed
45
ALL_LINGUAS="ar az bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id it ja ko lt mk ml mn ms nb ne nl no pa pl pt pt_BR ro ru rw sk sq sr sr@Latn sv ta th tr uk vi wa xh zh_CN zh_TW"
Rodrigo Moya's avatar
Rodrigo Moya committed
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
AM_GLIB_GNU_GETTEXT

AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

dnl
dnl Debugging flags
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="-DGRD_DEBUG $CFLAGS"
else
        AC_MSG_RESULT(no)
fi

AC_OUTPUT([
Makefile
po/Makefile.in
71
pixmaps/Makefile
Rodrigo Moya's avatar
Rodrigo Moya committed
72
src/Makefile])