6 AM_INIT_AUTOMAKE(dbus, 0.1)
8 AM_CONFIG_HEADER(config.h)
11 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
13 GETTEXT_PACKAGE=dbus-1
14 AC_SUBST(GETTEXT_PACKAGE)
15 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
24 AC_ARG_ENABLE(qt, [ --disable-qt disable Qt-friendly client library],enable_qt=no,enable_qt=yes)
25 AC_ARG_ENABLE(glib, [ --disable-glib disable GLib-friendly client library],enable_glib=no,enable_glib=yes)
26 AC_ARG_ENABLE(tests, [ --enable-tests enable unit test code],enable_tests=yes,enable_tests=no)
27 AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=yes,enable_ansi=no)
29 dnl DBUS_BUILD_TESTS controls unit tests built in to .c files
30 dnl and also some stuff in the test/ subdir
31 AM_CONDITIONAL(DBUS_BUILD_TESTS, test x$enable_tests = xyes)
32 if test x$enable_tests = xyes; then
33 AC_DEFINE(DBUS_BUILD_TESTS,1,[Build test code])
37 if test "x$GCC" = "xyes"; then
39 *[\ \ ]-Wall[\ \ ]*) ;;
40 *) CFLAGS="$CFLAGS -Wall" ;;
44 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
45 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
49 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
50 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
54 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
55 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
59 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
60 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
64 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
65 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
69 *[\ \ ]-Wcast-align[\ \ ]*) ;;
70 *) CFLAGS="$CFLAGS -Wcast-align" ;;
74 *[\ \ ]-Wsign-compare[\ \ ]*) ;;
75 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
78 if test "x$enable_ansi" = "xyes"; then
80 *[\ \ ]-ansi[\ \ ]*) ;;
81 *) CFLAGS="$CFLAGS -ansi" ;;
85 *[\ \ ]-pedantic[\ \ ]*) ;;
86 *) CFLAGS="$CFLAGS -pedantic" ;;
93 AC_CHECK_SIZEOF(short)
96 AC_CHECK_SIZEOF(void *)
97 AC_CHECK_SIZEOF(long long)
98 AC_CHECK_SIZEOF(__int64)
103 AC_CHECK_FUNCS(vsnprintf vasprintf)
107 AC_SUBST(DBUS_CLIENT_CFLAGS)
108 AC_SUBST(DBUS_CLIENT_LIBS)
112 AC_SUBST(DBUS_BUS_CFLAGS)
113 AC_SUBST(DBUS_BUS_LIBS)
125 dnl ==========================================================================
131 source code location: ${srcdir}
134 Building unit tests: ${enable_tests}
135 Building Qt bindings: ${enable_qt}
136 Building GLib bindings: ${enable_glib}
139 if test x$enable_tests = xyes; then
140 echo "NOTE: building with unit tests increases the size of the installed library"
142 if test x$enable_qt = xyes; then
143 echo "NOTE: Qt bindings don't actually exist yet"
145 if test x$enable_glib = xyes; then
146 echo "NOTE: GLib bindings don't actually exist yet"