source: trunk/third/gnome-nettool/configure.in @ 21079

Revision 21079, 2.2 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21078, which included commits to RCS files with non-trunk default branches.
RevLine 
[21078]1AC_PREREQ(2.52)
2AC_INIT(src/ping.c)
3
4dnl Useful to call aclocal after 'make'
5AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")
6
7AM_CONFIG_HEADER(config.h)
8AM_INIT_AUTOMAKE(gnome-nettool, 0.99.3)
9AM_MAINTAINER_MODE
10
11AC_PROG_INTLTOOL([0.11])
12
13AC_ISC_POSIX
14AC_PROG_CC
15AC_STDC_HEADERS
16AC_CHECK_HEADERS(sys/sockio.h sys/socket.h)
17dnl AC_ARG_PROGRAM
18AM_PROG_LIBTOOL
19
20GNOME_COMPILE_WARNINGS(yes)
21CFLAGS="$CFLAGS $WARN_CFLAGS"
22
23dnl ******************************************
24dnl ** pkg-config dependacy checks          **
25dnl ******************************************
26
27LIBGNOMEUI_REQUIRED=2.0.0
28LIBGNOME_REQUIRED=2.0.0
29GTK_REQUIRED=2.4.0
30LIBGLADE_REQUIRED=2.0.0
31GCONF_REQUIRED=1.1.11
32
33PKG_CHECK_MODULES(NETTOOL,
34                  libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED
35                  libgnome-2.0   >= $LIBGNOME_REQUIRED
36                  gtk+-2.0       >= $GTK_REQUIRED
37                  libglade-2.0   >= $LIBGLADE_REQUIRED
38                  gconf-2.0      >= $GCONF_REQUIRED)
39AC_SUBST(NETTOOL_CFLAGS)
40AC_SUBST(NETTOOL_LIBS)
41
42dnl Find ifconfig
43dnl
44AC_ARG_WITH(ifconfig, [  --with-ifconfig=PATH    Where ifconfig is.])
45if test "x$with_ifconfig" = "x" ; then
46        AC_PATH_PROG(IFCONFIG_PROGRAM,
47                ifconfig,,
48                $PATH:/sbin:/usr/etc:/usr/sbin)
49        if test "x$IFCONFIG_PROGRAM" != "x" ; then
50                AC_DEFINE_UNQUOTED(IFCONFIG_PROGRAM, "$IFCONFIG_PROGRAM", [The ifconfig program])
51        fi
52else
53        AC_DEFINE_UNQUOTED(IFCONFIG_PROGRAM, "$with_ifconfig", [The ifconfig program])
54fi
55AM_CONDITIONAL(HAVE_IFCONFIG, test "x$IFCONFIG_PROGRAM" != "x")
56
57dnl
58dnl Translations
59dnl
60GETTEXT_PACKAGE=gnome-nettool
61AC_SUBST(GETTEXT_PACKAGE)
62AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The gettext package])
63ALL_LINGUAS="az bn bs ca cs da de el en_CA en_GB es eu fi fr ga gl gu he hu it ja ko ms nb nl no pa pl pt pt_BR ru sq sr sr@Latn sv ta tr uk vi wa zh_CN zh_TW"
64AM_GLIB_GNU_GETTEXT
65
66AC_SUBST(CFLAGS)
67AC_SUBST(CPPFLAGS)
68AC_SUBST(LDFLAGS)
69
70dnl
71dnl Debugging flags
72dnl
73set_debug=no
74AC_ARG_ENABLE(debug,
75[  --enable-debug       Lots of noisy debug messages],
76set_debug="$enableval")
77
78AC_MSG_CHECKING(if debug messages are enabled)
79if test "$set_debug" != "no"; then
80        AC_MSG_RESULT(yes)
81        CFLAGS="-DGRD_DEBUG $CFLAGS"
82else
83        AC_MSG_RESULT(no)
84fi
85
86AC_OUTPUT([
87Makefile
88po/Makefile.in
89pixmaps/Makefile
90src/Makefile])
Note: See TracBrowser for help on using the repository browser.