1 AC_INIT(gnio/ginetaddress.h)
3 AM_INIT_AUTOMAKE(gnio, 0.0.1)
4 AM_CONFIG_HEADER(config.h)
17 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
25 AH_VERBATIM([_GNU_SOURCE],
26 [/* Enable GNU extensions on systems that have them. */
32 AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct stat.st_atimensec, struct stat.st_atim.tv_nsec, struct stat.st_ctimensec, struct stat.st_ctim.tv_nsec])
35 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
36 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
39 DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc"
40 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
42 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.13.8 gthread-2.0 gobject-2.0 gmodule-no-export-2.0 gio-unix-2.0
48 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext domain name])
49 AC_SUBST(GETTEXT_PACKAGE)
54 dnl ==========================================================================
56 dnl Globally define_GNU_SOURCE and therefore enable the GNU extensions
57 AC_DEFINE(_GNU_SOURCE, 1, [Enable GNU Extensions])
59 dnl ==========================================================================
61 AC_DEFINE(_FILE_OFFSET_BITS, 64, [Enable LFS])
63 dnl ==========================================================================
65 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
67 dnl ==========================================================================
68 dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
70 AC_ARG_ENABLE(more-warnings,
71 [ --enable-more-warnings Maximum compiler warnings],
72 set_more_warnings="$enableval",[
73 if test -f $srcdir/CVSVERSION; then
80 AC_MSG_CHECKING(for more warnings, including -Werror)
81 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
85 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
86 -Wnested-externs -Wpointer-arith \
87 -Wcast-align -Wsign-compare \
90 for option in -Wno-strict-aliasing -Wno-sign-compare; do
92 CFLAGS="$CFLAGS $option"
93 AC_MSG_CHECKING([whether gcc understands $option])
94 AC_TRY_COMPILE([], [],
97 if test $has_option = no; then
100 AC_MSG_RESULT($has_option)
117 echo "gnio configuration summary:"