8 AM_INIT_AUTOMAKE(dbus, 0.62)
10 AM_CONFIG_HEADER(config.h)
13 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
15 GETTEXT_PACKAGE=dbus-1
16 AC_SUBST(GETTEXT_PACKAGE)
17 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
19 ## must come before we use the $USE_MAINTAINER_MODE variable later
22 # libtool versioning - this applies to libdbus
24 # See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
27 ## increment if the interface has additions, changes, removals.
30 ## increment any time the source changes; set to
31 ## 0 if you increment CURRENT
34 ## increment if any interfaces have been added; set to 0
35 ## if any interfaces have been changed or removed. removal has
36 ## precedence over adding, so set to 0 if both happened.
49 AC_ARG_ENABLE(qt, AS_HELP_STRING([--enable-qt],[enable Qt-friendly client library]),enable_qt=$enableval,enable_qt=auto)
50 AC_ARG_ENABLE(qt-debug, AS_HELP_STRING([--enable-qt-debug],[enable Qt-friendly client library, linked to debug Qt libraries]),enable_qt_debug=$enableval,enable_qt_debug=no)
51 AC_ARG_WITH(qt_moc, AS_HELP_STRING([--with-qt-moc=<path>],[moc for Qt]))
52 AC_ARG_ENABLE(qt3, AS_HELP_STRING([--enable-qt3],[enable Qt3-friendly client library]),enable_qt3=$enableval,enable_qt3=auto)
53 AC_ARG_WITH(qt3_moc, AS_HELP_STRING([--with-qt3-moc=<path>],[moc for Qt3]))
54 AC_ARG_ENABLE(glib, AS_HELP_STRING([--enable-glib],[enable GLib-friendly client library]),enable_glib=$enableval,enable_glib=auto)
55 AC_ARG_ENABLE(gtk, AS_HELP_STRING([--enable-gtk],[enable GTK-requiring executables]),enable_gtk=$enableval,enable_gtk=auto)
56 AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests],[enable unit test code]),enable_tests=$enableval,enable_tests=$USE_MAINTAINER_MODE)
57 AC_ARG_ENABLE(ansi, AS_HELP_STRING([--enable-ansi],[enable -ansi -pedantic gcc flags]),enable_ansi=$enableval,enable_ansi=no)
58 AC_ARG_ENABLE(verbose-mode, AS_HELP_STRING([--enable-verbose-mode],[support verbose debug mode]),enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
59 AC_ARG_ENABLE(asserts, AS_HELP_STRING([--enable-asserts],[include assertion checks]),enable_asserts=$enableval,enable_asserts=$USE_MAINTAINER_MODE)
60 AC_ARG_ENABLE(checks, AS_HELP_STRING([--enable-checks],[include sanity checks on public API]),enable_checks=$enableval,enable_checks=yes)
61 AC_ARG_ENABLE(xml-docs, AS_HELP_STRING([--enable-xml-docs],[build XML documentation (requires xmlto)]),enable_xml_docs=$enableval,enable_xml_docs=auto)
62 AC_ARG_ENABLE(doxygen-docs, AS_HELP_STRING([--enable-doxygen-docs],[build DOXYGEN documentation (requires Doxygen)]),enable_doxygen_docs=$enableval,enable_doxygen_docs=auto)
63 AC_ARG_ENABLE(gcov, AS_HELP_STRING([--enable-gcov],[compile with coverage profiling instrumentation (gcc only)]),enable_gcov=$enableval,enable_gcov=no)
64 AC_ARG_ENABLE(abstract-sockets, AS_HELP_STRING([--enable-abstract-sockets],[use abstract socket namespace (linux only)]),enable_abstract_sockets=$enableval,enable_abstract_sockets=auto)
65 AC_ARG_ENABLE(gcj, AS_HELP_STRING([--enable-gcj],[build gcj bindings]),enable_gcj=$enableval,enable_gcj=no)
66 AC_ARG_ENABLE(mono, AS_HELP_STRING([--enable-mono],[build mono bindings]),enable_mono=$enableval,enable_mono=no)
67 AC_ARG_ENABLE(mono_docs, AS_HELP_STRING([--enable-mono-docs],[build mono docs]),enable_mono_docs=$enableval,enable_mono_docs=no)
68 AC_ARG_ENABLE(python, AS_HELP_STRING([--enable-python],[build python bindings]),enable_python=$enableval,enable_python=auto)
69 AC_ARG_ENABLE(selinux, AS_HELP_STRING([--enable-selinux],[build with SELinux support]),enable_selinux=$enableval,enable_selinux=auto)
70 AC_ARG_ENABLE(dnotify, AS_HELP_STRING([--enable-dnotify],[build with dnotify support (linux only)]),enable_dnotify=$enableval,enable_dnotify=auto)
71 AC_ARG_ENABLE(console-owner-file, AS_HELP_STRING([--enable-console-owner-file],[enable console owner file]),enable_console_owner_file=$enableval,enable_console_owner_file=auto)
73 AC_ARG_WITH(xml, AS_HELP_STRING([--with-xml=[libxml/expat]],[XML library to use]))
74 AC_ARG_WITH(init-scripts, AS_HELP_STRING([--with-init-scripts=[redhat]],[Style of init scripts to install]))
75 AC_ARG_WITH(session-socket-dir, AS_HELP_STRING([--with-session-socket-dir=[dirname]],[Where to put sockets for the per-login-session message bus]))
76 AC_ARG_WITH(test-socket-dir, AS_HELP_STRING([--with-test-socket-dir=[dirname]],[Where to put sockets for make check]))
77 AC_ARG_WITH(system-pid-file, AS_HELP_STRING([--with-system-pid-file=[pidfile]],[PID file for systemwide daemon]))
78 AC_ARG_WITH(system-socket, AS_HELP_STRING([--with-system-socket=[filename]],[UNIX domain socket for systemwide daemon]))
79 AC_ARG_WITH(console-auth-dir, AS_HELP_STRING([--with-console-auth-dir=[dirname]],[directory to check for console ownerhip]))
80 AC_ARG_WITH(console-owner-file, AS_HELP_STRING([--with-console-owner-file=[filename]],[file whose owner determines current console owner]))
81 AC_ARG_WITH(dbus_user, AS_HELP_STRING([--with-dbus-user=<user>],[User for running the DBUS daemon (messagebus)]))
84 dnl DBUS_BUILD_TESTS controls unit tests built in to .c files
85 dnl and also some stuff in the test/ subdir
86 AM_CONDITIONAL(DBUS_BUILD_TESTS, test x$enable_tests = xyes)
87 if test x$enable_tests = xyes; then
88 AC_DEFINE(DBUS_BUILD_TESTS,1,[Build test code])
91 if test x$enable_verbose_mode = xyes; then
92 AC_DEFINE(DBUS_ENABLE_VERBOSE_MODE,1,[Support a verbose mode])
94 if test x$enable_asserts = xno; then
95 AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking])
96 AC_DEFINE(G_DISABLE_ASSERT,1,[Disable GLib assertion macros])
98 if test x$enable_checks = xno; then
99 AC_DEFINE(DBUS_DISABLE_CHECKS,1,[Disable public API sanity checking])
100 AC_DEFINE(G_DISABLE_CHECKS,1,[Disable GLib public API sanity checking])
103 #### gcc warning flags
105 if test "x$GCC" = "xyes"; then
108 *[\ \ ]-Wall[\ \ ]*) ;;
109 *) CFLAGS="$CFLAGS -Wall" ;;
113 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
114 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
118 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
119 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
123 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
124 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
128 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
129 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
133 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
134 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
138 *[\ \ ]-Wcast-align[\ \ ]*) ;;
139 *) CFLAGS="$CFLAGS -Wcast-align" ;;
143 *[\ \ ]-Wfloat-equal[\ \ ]*) ;;
144 *) CFLAGS="$CFLAGS -Wfloat-equal" ;;
148 *[\ \ ]-Wsign-compare[\ \ ]*) ;;
149 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
152 if test "x$enable_ansi" = "xyes"; then
154 *[\ \ ]-ansi[\ \ ]*) ;;
155 *) CFLAGS="$CFLAGS -ansi" ;;
159 *[\ \ ]-D_POSIX_C_SOURCE*) ;;
160 *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
164 *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;;
165 *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
169 *[\ \ ]-pedantic[\ \ ]*) ;;
170 *) CFLAGS="$CFLAGS -pedantic" ;;
173 if test x$enable_gcov = xyes; then
175 *[\ \ ]-fprofile-arcs[\ \ ]*) ;;
176 *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
179 *[\ \ ]-ftest-coverage[\ \ ]*) ;;
180 *) CFLAGS="$CFLAGS -ftest-coverage" ;;
183 ## remove optimization
184 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
188 if test x$enable_gcov = xyes; then
189 AC_MSG_ERROR([--enable-gcov can only be used with gcc])
193 #### can't use AM_PROG_GCJ since it fails fatally if no gcj found
194 AC_CHECK_PROGS(GCJ, gcj, gcj)
195 if test -z "$GCJ" ; then
198 # Needs to be here so libtool wont get confused
202 if test "x${GCJFLAGS-unset}" = xunset; then
203 GCJFLAGS="-g -O2 -Wall"
208 if test x$enable_gcj = xauto ; then
209 if test x$have_gcj = xno ; then
216 if test x$enable_gcj = xyes; then
217 if test x$have_gcj = xno ; then
218 AC_MSG_ERROR([Building gcj explicitly required, but gcj not found])
220 AC_CHECK_PROGS(JAR, gcj-jar fastjar jar)
224 AM_CONDITIONAL(DBUS_USE_GCJ, test x$enable_gcj = xyes)
229 MONO_REQUIRED_VERSION=0.95
230 AC_SUBST(MONO_REQUIRED_VERSION)
231 PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, have_mono=true, have_mono=false)
233 if test "x$enable_mono" = "xyes"; then
234 if test "x$have_mono" = "xfalse"; then
235 AC_MSG_ERROR([Mono was not found])
239 if test "x$have_mono" = "xtrue"; then
240 if test `uname -s` = "Darwin"; then
241 AC_PATH_PROG(RUNTIME, mint, no)
242 AC_PATH_PROG(CSC, mcs, no)
246 AC_PATH_PROG(RUNTIME, mono, no)
247 AC_PATH_PROG(CSC, mcs, no)
252 AC_PATH_PROG(CSC, csc.exe, no)
258 if test x$enable_mono = xyes; then
259 if test x$have_mcs = xno ; then
260 AC_MSG_ERROR([Building Mono bindings explicitly required, but mcs compiler not found])
264 AC_PATH_PROG(GACUTIL, gacutil, no)
265 if test "x$GACUTIL" = "xno" ; then
266 AC_MSG_ERROR([No gacutil tool found])
272 if test x$enable_mono = xauto ; then
273 if test x$CSC = xno ; then
277 AC_PATH_PROG(GACUTIL, gacutil, no)
278 if test "x$GACUTIL" = "xno" ; then
292 AM_CONDITIONAL(DBUS_USE_CSC, test x$enable_mono = xyes)
294 #### Look for monodoc
295 MONODOC_REQUIRED_VERSION=0.16
296 AC_SUBST(MONODOC_REQUIRED_VERSION)
297 PKG_CHECK_MODULES(MONODOC_DEPENDENCY, monodoc >= $MONODOC_REQUIRED_VERSION, have_monodoc=yes, have_monodoc=no)
299 if test x$enable_mono_docs = xyes; then
300 if test x$have_monodoc = xno ; then
301 AC_MSG_ERROR([Building Mono docs explicitly required, but monodoc not found])
303 AC_PATH_PROG(MONODOC, monodoc, no)
304 if test x$MONODOC = xno; then
305 AC_MSG_ERROR([Building Mono docs explicitly required, but monodoc not found])
310 if test x$enable_mono_docs = xauto ; then
311 if test x$have_monodoc = xno ; then
315 AC_PATH_PROG(MONODOC, monodoc, no)
316 if test x$MONODOC = xno; then
327 AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_mono_docs" = "xyes")
330 # let ourselves use our own unstable API
331 CPPFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE=1 $CPPFLAGS"
332 # compress spaces in flags
333 CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`
334 CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ +/ /g'`
335 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'`
338 if test x$enable_gcov = xyes; then
339 ## so that config.h changes when you toggle gcov support
340 AC_DEFINE_UNQUOTED(DBUS_GCOV_ENABLED, 1, [Defined if gcov is enabled to force a rebuild due to config.h changing])
342 AC_MSG_CHECKING([for gcc 3.3 version of gcov file format])
344 AC_RUN_IFELSE( [AC_LANG_PROGRAM( , [[ if (__GNUC__ >=3 && __GNUC_MINOR__ >= 3) exit (0); else exit (1); ]])],
346 if test x$have_gcc33_gcov = xyes ; then
347 AC_DEFINE_UNQUOTED(DBUS_HAVE_GCC33_GCOV, 1, [Defined if we have gcc 3.3 and thus the new gcov format])
349 AC_MSG_RESULT($have_gcc33_gcov)
351 AM_CONDITIONAL(DBUS_GCOV_ENABLED, test x$enable_gcov = xyes)
355 AC_CHECK_SIZEOF(char)
356 AC_CHECK_SIZEOF(short)
357 AC_CHECK_SIZEOF(long)
359 AC_CHECK_SIZEOF(void *)
360 AC_CHECK_SIZEOF(long long)
361 AC_CHECK_SIZEOF(__int64)
363 ### See what our 64 bit type is called
364 AC_MSG_CHECKING([64-bit integer type])
369 dbusint64_constant='(val)'
370 dbusuint64_constant='(val)'
374 dbusint64_constant='(val##L)'
375 dbusuint64_constant='(val##UL)'
377 $ac_cv_sizeof_long_long)
378 dbusint64='long long'
379 dbusint64_constant='(val##LL)'
380 dbusuint64_constant='(val##ULL)'
382 $ac_cv_sizeof___int64)
384 dbusint64_constant='(val##i64)'
385 dbusuint64_constant='(val##ui64)'
389 if test -z "$dbusint64" ; then
390 DBUS_INT64_TYPE="no_int64_type_detected"
393 DBUS_UINT64_CONSTANT=
394 AC_MSG_RESULT([none found])
396 DBUS_INT64_TYPE="$dbusint64"
398 DBUS_INT64_CONSTANT="$dbusint64_constant"
399 DBUS_UINT64_CONSTANT="$dbusuint64_constant"
400 AC_MSG_RESULT($DBUS_INT64_TYPE)
403 AC_SUBST(DBUS_INT64_TYPE)
404 AC_SUBST(DBUS_INT64_CONSTANT)
405 AC_SUBST(DBUS_UINT64_CONSTANT)
406 AC_SUBST(DBUS_HAVE_INT64)
408 ### see what 32-bit int is called
409 AC_MSG_CHECKING([32-bit integer type])
423 if test -z "$dbusint32" ; then
424 DBUS_INT32_TYPE="no_int32_type_detected"
425 AC_MSG_ERROR([No 32-bit integer type found])
427 DBUS_INT32_TYPE="$dbusint32"
428 AC_MSG_RESULT($DBUS_INT32_TYPE)
431 AC_SUBST(DBUS_INT32_TYPE)
433 ### see what 16-bit int is called
434 AC_MSG_CHECKING([16-bit integer type])
445 if test -z "$dbusint16" ; then
446 DBUS_INT16_TYPE="no_int16_type_detected"
447 AC_MSG_ERROR([No 16-bit integer type found])
449 DBUS_INT16_TYPE="$dbusint16"
450 AC_MSG_RESULT($DBUS_INT16_TYPE)
453 AC_SUBST(DBUS_INT16_TYPE)
459 dnl **********************************
460 dnl *** va_copy checks (from GLib) ***
461 dnl **********************************
462 dnl we currently check for all three va_copy possibilities, so we get
463 dnl all results in config.log for bug reports.
464 AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[
465 AC_LINK_IFELSE([#include <stdarg.h>
466 void f (int i, ...) {
467 va_list args1, args2;
469 va_copy (args2, args1);
470 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
472 va_end (args1); va_end (args2);
478 [dbus_cv_va_copy=yes],
479 [dbus_cv_va_copy=no])
481 AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[
482 AC_LINK_IFELSE([#include <stdarg.h>
483 void f (int i, ...) {
484 va_list args1, args2;
486 __va_copy (args2, args1);
487 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
489 va_end (args1); va_end (args2);
495 [dbus_cv___va_copy=yes],
496 [dbus_cv___va_copy=no])
499 if test "x$dbus_cv_va_copy" = "xyes"; then
500 dbus_va_copy_func=va_copy
501 else if test "x$dbus_cv___va_copy" = "xyes"; then
502 dbus_va_copy_func=__va_copy
506 if test -n "$dbus_va_copy_func"; then
507 AC_DEFINE_UNQUOTED(DBUS_VA_COPY,$dbus_va_copy_func,[A 'va_copy' style function])
510 AC_CACHE_CHECK([whether va_lists can be copied by value],dbus_cv_va_val_copy,[
511 AC_TRY_RUN([#include <stdarg.h>
512 void f (int i, ...) {
513 va_list args1, args2;
516 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
518 va_end (args1); va_end (args2);
524 [dbus_cv_va_val_copy=yes],
525 [dbus_cv_va_val_copy=no],
526 [dbus_cv_va_val_copy=yes])
529 if test "x$dbus_cv_va_val_copy" = "xno"; then
530 AC_DEFINE(DBUS_VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copies as values])
534 #### Atomic integers (checks by Sebastian Wilhelmi for GLib)
535 AC_MSG_CHECKING([whether to use inline assembler routines for atomic integers])
537 if test x"$GCC" = xyes; then
538 if test "x$enable_ansi" = "xyes"; then
546 AC_MSG_RESULT([i486])
547 AC_DEFINE_UNQUOTED(DBUS_USE_ATOMIC_INT_486, 1, [Use atomic integer implementation for 486])
556 if test x$have_atomic_inc = xyes ; then
557 AC_DEFINE_UNQUOTED(DBUS_HAVE_ATOMIC_INT, 1, [Some atomic integer implementation present])
560 #### Various functions
561 AC_CHECK_LIB(socket,socket)
562 AC_CHECK_LIB(nsl,gethostbyname)
564 AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist)
566 AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
568 AC_CACHE_CHECK([for posix getpwnam_r],
569 ac_cv_func_posix_getpwnam_r,
575 struct passwd pwd, *pwptr = &pwd;
578 error = getpwnam_r ("", &pwd, buffer,
579 sizeof (buffer), &pwptr);
580 return (error < 0 && errno == ENOSYS)
583 [ac_cv_func_posix_getpwnam_r=yes],
584 [ac_cv_func_posix_getpwnam_r=no])])
585 if test "$ac_cv_func_posix_getpwnam_r" = yes; then
586 AC_DEFINE(HAVE_POSIX_GETPWNAM_R,1,
587 [Have POSIX function getpwnam_r])
589 AC_CACHE_CHECK([for nonposix getpwnam_r],
590 ac_cv_func_nonposix_getpwnam_r,
591 [AC_TRY_LINK([#include <pwd.h>],
594 getpwnam_r ("", &pwd, buffer,
596 [ac_cv_func_nonposix_getpwnam_r=yes],
597 [ac_cv_func_nonposix_getpwnam_r=no])])
598 if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then
599 AC_DEFINE(HAVE_NONPOSIX_GETPWNAM_R,1,
600 [Have non-POSIX function getpwnam_r])
604 dnl check for socklen_t
605 AC_MSG_CHECKING(whether socklen_t is defined)
607 #include <sys/types.h>
608 #include <sys/socket.h>
613 ],dbus_have_socklen_t=yes,dbus_have_socklen_t=no)
614 AC_MSG_RESULT($dbus_have_socklen_t)
616 if test "x$dbus_have_socklen_t" = "xyes"; then
617 AC_DEFINE(HAVE_SOCKLEN_T,1,[Have socklen_t type])
620 dnl check for writev header and writev function so we're
621 dnl good to go if HAVE_WRITEV gets defined.
622 AC_CHECK_HEADERS(sys/uio.h, [AC_CHECK_FUNCS(writev)])
624 dnl check for flavours of varargs macros (test from GLib)
625 AC_MSG_CHECKING(for ISO C99 varargs macros in C)
627 int a(int p1, int p2, int p3);
628 #define call_a(...) a(1,__VA_ARGS__)
630 ],dbus_have_iso_c_varargs=yes,dbus_have_iso_c_varargs=no)
631 AC_MSG_RESULT($dbus_have_iso_c_varargs)
633 AC_MSG_CHECKING(for GNUC varargs macros)
635 int a(int p1, int p2, int p3);
636 #define call_a(params...) a(1,params)
638 ],dbus_have_gnuc_varargs=yes,dbus_have_gnuc_varargs=no)
639 AC_MSG_RESULT($dbus_have_gnuc_varargs)
641 dnl Output varargs tests
642 if test x$dbus_have_iso_c_varargs = xyes; then
643 AC_DEFINE(HAVE_ISO_VARARGS,1,[Have ISO C99 varargs macros])
645 if test x$dbus_have_gnuc_varargs = xyes; then
646 AC_DEFINE(HAVE_GNUC_VARARGS,1,[Have GNU-style varargs macros])
649 dnl Check for various credentials.
650 AC_MSG_CHECKING(for struct cmsgcred)
652 #include <sys/types.h>
653 #include <sys/socket.h>
655 struct cmsgcred cred;
658 ],dbus_have_struct_cmsgcred=yes,dbus_have_struct_cmsgcred=no)
659 AC_MSG_RESULT($dbus_have_struct_cmsgcred)
661 if test x$dbus_have_struct_cmsgcred = xyes; then
662 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
665 AC_CHECK_FUNCS(getpeerucred getpeereid)
667 #### Abstract sockets
669 AC_MSG_CHECKING(abstract socket namespace)
671 AC_RUN_IFELSE([AC_LANG_PROGRAM(
673 #include <sys/types.h>
677 #include <sys/socket.h>
683 struct sockaddr_un addr;
685 listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
689 fprintf (stderr, "socket() failed: %s\n", strerror (errno));
693 memset (&addr, '\0', sizeof (addr));
694 addr.sun_family = AF_UNIX;
695 strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
696 addr.sun_path[0] = '\0'; /* this is what makes it abstract */
698 if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
700 fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
707 [have_abstract_sockets=yes],
708 [have_abstract_sockets=no])
710 AC_MSG_RESULT($have_abstract_sockets)
712 if test x$enable_abstract_sockets = xyes; then
713 if test x$have_abstract_sockets = xno; then
714 AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])
718 if test x$enable_abstract_sockets = xno; then
719 have_abstract_sockets=no;
722 if test x$have_abstract_sockets = xyes ; then
723 DBUS_PATH_OR_ABSTRACT=abstract
724 AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace])
726 DBUS_PATH_OR_ABSTRACT=path
729 # this is used in addresses to prefer abstract, e.g.
730 # unix:path=/foo or unix:abstract=/foo
731 AC_SUBST(DBUS_PATH_OR_ABSTRACT)
733 #### Sort out gettext
735 # this makes us require GLib to run autoconf, but not at runtime
739 # INTLLIBS is now set
741 # (if someone wants to go through and make internationalization
742 # conditional with #ifdef ENABLE_NLS then go crazy and send us a patch,
743 # but right now we won't build without gettext)
744 if test "$gt_cv_have_gettext" != "yes" ; then
746 *** You must have either have gettext support in your C library, or use the
747 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
751 #### Sort out XML library
754 AC_CHECK_LIB(expat, XML_ParserCreate_MM,
755 [ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ],
758 PKG_CHECK_MODULES(LIBXML, libxml-2.0, have_libxml=true, have_libxml=false)
760 # see what we want to use
761 dbus_use_libxml=false
763 if test x$with_xml = xexpat; then
765 if ! $have_expat ; then
766 AC_MSG_ERROR([Explicitly requested expat but expat not found])
768 elif test x$with_xml = xlibxml; then
770 if ! $have_libxml ; then
771 AC_MSG_ERROR([Explicitly requested libxml but libxml not found])
774 ### expat is the default because libxml can't currently survive
775 ### our brutal OOM-handling unit test setup.
776 ### http://bugzilla.gnome.org/show_bug.cgi?id=109368
777 if $have_expat ; then
780 elif $have_libxml ; then
784 AC_MSG_ERROR([No XML library found, check config.log for failed attempts])
788 AM_CONDITIONAL(DBUS_USE_EXPAT, $dbus_use_expat)
789 AM_CONDITIONAL(DBUS_USE_LIBXML, $dbus_use_libxml)
791 if $dbus_use_expat; then
795 if $dbus_use_libxml; then
796 XML_LIBS=$LIBXML_LIBS
797 XML_CFLAGS=$LIBXML_CFLAGS
801 if test x$enable_selinux = xno ; then
804 # See if we have SELinux library
805 AC_CHECK_LIB(selinux, is_selinux_enabled,
806 have_selinux=yes, have_selinux=no)
808 # see if we have the SELinux header with the new D-BUS stuff in it
809 if test x$have_selinux = xyes ; then
810 AC_MSG_CHECKING([for DBUS Flask permissions in selinux/av_permissions.h])
811 AC_TRY_COMPILE([#include <selinux/av_permissions.h>],
812 [#ifdef DBUS__ACQUIRE_SVC return 0;
814 #error DBUS__ACQUIRE_SVC not defined
816 have_selinux=yes, have_selinux=no)
817 AC_MSG_RESULT($have_selinux)
820 if test x$enable_selinux = xauto ; then
821 if test x$have_selinux = xno ; then
822 AC_MSG_WARN([Sufficiently new SELinux library not found])
825 if test x$have_selinux = xno ; then
826 AC_MSG_ERROR([SElinux explicitly required, and SELinux library not found])
831 AM_CONDITIONAL(HAVE_SELINUX, test x$have_selinux = xyes)
833 if test x$have_selinux = xyes ; then
834 SELINUX_LIBS="-lselinux -lpthread"
835 AC_DEFINE(HAVE_SELINUX,1,[SELinux support])
841 if test x$enable_dnotify = xno ; then
844 if test x$target_os = xlinux-gnu -o x$target_os = xlinux; then
851 dnl check if dnotify backend is enabled
852 if test x$have_dnotify = xyes; then
853 AC_DEFINE(DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX,1,[Use dnotify on Linux])
856 dnl console owner file
857 if test x$enable_console_owner_file = xno ; then
858 have_console_owner_file=no;
862 have_console_owner_file=yes;
863 AC_DEFINE(HAVE_CONSOLE_OWNER_FILE,1,[Have console owner file])
866 have_console_owner_file=no;;
870 AM_CONDITIONAL(HAVE_CONSOLE_OWNER_FILE, test x$have_console_owner_file = xyes)
872 #### Set up final flags
875 AC_SUBST(DBUS_CLIENT_CFLAGS)
876 AC_SUBST(DBUS_CLIENT_LIBS)
878 DBUS_BUS_CFLAGS=$XML_CFLAGS
879 DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS"
880 AC_SUBST(DBUS_BUS_CFLAGS)
881 AC_SUBST(DBUS_BUS_LIBS)
885 AC_SUBST(DBUS_TEST_CFLAGS)
886 AC_SUBST(DBUS_TEST_LIBS)
889 PKG_CHECK_MODULES(DBUS_GLIB, gobject-2.0 >= 2.4, have_glib=yes, have_glib=no)
890 PKG_CHECK_MODULES(DBUS_GLIB_THREADS, gthread-2.0 >= 2.4, have_glib_threads=yes, have_glib_threads=no)
892 if test x$have_glib = xno ; then
893 AC_MSG_WARN([GLib development libraries not found])
896 if test x$enable_glib = xyes; then
897 if test x$have_glib = xno; then
898 AC_MSG_ERROR([GLib explicitly required, and GLib development libraries not found])
902 if test x$enable_glib = xno; then
906 AM_CONDITIONAL(HAVE_GLIB, test x$have_glib = xyes)
907 AM_CONDITIONAL(HAVE_GLIB_THREADS, test x$have_glib_threads = xyes)
909 if test x$have_glib = xyes; then
910 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
912 GLIB_GENMARSHAL=glib-not-enabled-so-there-is-no-genmarshal
914 AC_SUBST(GLIB_GENMARSHAL)
917 AC_SUBST(DBUS_GLIB_CFLAGS)
918 AC_SUBST(DBUS_GLIB_LIBS)
919 AC_SUBST(DBUS_GLIB_THREADS_LIBS)
921 DBUS_GLIB_TOOL_CFLAGS=$XML_CFLAGS
922 DBUS_GLIB_TOOL_LIBS="$XML_LIBS $INTLLIBS"
923 AC_SUBST(DBUS_GLIB_TOOL_CFLAGS)
924 AC_SUBST(DBUS_GLIB_TOOL_LIBS)
927 if test x$have_glib = xno ; then
928 AC_MSG_WARN([Can't use GTK+ since GLib not enabled])
931 PKG_CHECK_MODULES(DBUS_GTK, gtk+-2.0 >= 2.4, have_gtk=yes, have_gtk=no)
932 PKG_CHECK_MODULES(DBUS_GTK_THREADS, gtk+-2.0 >= 2.4 gthread-2.0, have_gtk_threads=yes, have_gtk_threads=no)
935 if test x$have_gtk = xno ; then
936 AC_MSG_WARN([GTK+ development libraries not found])
939 if test x$enable_gtk = xyes; then
940 if test x$have_gtk = xno; then
941 AC_MSG_ERROR([GTK+ explicitly required, and GTK+ development libraries not found])
945 if test x$enable_gtk = xno; then
949 AM_CONDITIONAL(HAVE_GTK, test x$have_gtk = xyes)
952 AC_SUBST(DBUS_GTK_CFLAGS)
953 AC_SUBST(DBUS_GTK_LIBS)
954 AC_SUBST(DBUS_GTK_THREADS_CFLAGS)
955 AC_SUBST(DBUS_GTK_THREADS_LIBS)
959 if test -z "$with_qt3_moc" ; then
960 AC_PATH_PROG(QT3_MOC, moc, no)
962 QT3_MOC=$with_qt3_moc
967 AC_MSG_CHECKING([for qglobal.h])
968 if test -n "$QTDIR" -a -f "$QTDIR/include/qglobal.h"; then
970 DBUS_QT3_CXXFLAGS="-I$QTDIR/include"
972 for dir in "${prefix}/include/qt" "/usr/include/qt-3.1" "/usr/include/qt3" "/usr/include/qt" "/usr/lib/qt/include" "/usr/lib/qt-3.1/include"; do
973 if test -f "$dir/qglobal.h"; then
975 DBUS_QT3_CXXFLAGS="-I$dir"
976 DBUS_QT3_LIBS="-L$QTDIR/lib -lqt-mt"
980 if test x$have_qt3 = xyes; then
981 AC_MSG_RESULT([found])
983 AC_MSG_RESULT([not found])
986 if test x$have_qt3 = xno; then
987 AC_MSG_WARN([Qt3 development libraries not found])
990 if test x$enable_qt3 = xyes; then
991 if test x$have_qt3 = xno; then
992 AC_MSG_ERROR([Qt3 integration explicitly required, and Qt3 libraries not found])
996 if test x$enable_qt3 = xno; then
1000 AM_CONDITIONAL(HAVE_QT3, test x$have_qt3 = xyes)
1003 AC_SUBST(DBUS_QT3_CXXFLAGS)
1004 AC_SUBST(DBUS_QT3_LIBS)
1009 AC_MSG_CHECKING([if we want to link to Qt debugging libraries])
1011 if test x$enable_qt_debug = xyes; then
1013 AC_MSG_RESULT([debug])
1015 AC_MSG_RESULT([release])
1018 if test x$enable_qt = xno; then
1023 QT_CORE=QtCore$qt_suffix
1024 QT_XML=QtXml$qt_suffix
1025 QT_GUI=QtGui$qt_suffix
1026 QT_TESTLIB=QtTest$qt_suffix
1027 min_qt_version=4.1.3
1032 PKG_CHECK_MODULES([DBUS_QT],
1033 [$QT_CORE >= $min_qt_version $QT_XML >= $min_qt_version],
1038 dnl Check for moc too
1039 if test x$have_qt = xyes ; then
1040 AC_MSG_CHECKING([for moc])
1042 if test -z "$with_qt_moc" ; then
1043 QT_MOC=`$PKG_CONFIG --variable=exec_prefix $QT_CORE`
1044 QT_MOC=${QT_MOC}/bin/moc
1049 if test -x "$QT_MOC"; then
1050 AC_MSG_RESULT([found, $QT_MOC])
1052 AC_MSG_RESULT([not found])
1053 AC_MSG_WARN([moc not found; disabling Qt])
1058 if test x$have_qt = xno ; then
1059 if test x$enable_qt = xyes; then
1060 AC_MSG_ERROR([Qt integration explicitly required, and Qt libraries not found])
1065 AC_SUBST(DBUS_QT_CFLAGS)
1066 AC_SUBST(DBUS_QT_LIBS)
1069 dnl QTestLib detection
1070 PKG_CHECK_MODULES([DBUS_QTESTLIB],
1071 [$QT_TESTLIB >= 4.1.0],
1075 if test x$have_qtest = xno ; then
1076 AC_MSG_WARN([Qt Unit Test library not found])
1079 if test x$have_qt = xno; then
1083 AC_SUBST(DBUS_QTESTLIB_CFLAGS)
1084 AC_SUBST(DBUS_QTESTLIB_LIBS)
1087 PKG_CHECK_MODULES([DBUS_QT_GUI], [$QT_GUI >= $min_qt_version],
1091 if test x$have_qt_gui = xyes ; then
1092 AC_MSG_CHECKING([for uic])
1093 QT_UIC=`$PKG_CONFIG --variable=exec_prefix $QT_GUI`/bin/uic
1095 if test -x "$QT_UIC" ; then
1096 AC_MSG_RESULT([found, $QT_UIC])
1098 AC_MSG_RESULT([not found, disabling Qt Gui])
1103 AC_SUBST(DBUS_QT_GUI_CFLAGS)
1104 AC_SUBST(DBUS_QT_GUI_LIBS)
1108 AM_CONDITIONAL(HAVE_QT, test x$have_qt = xyes)
1109 AM_CONDITIONAL(HAVE_QT_GUI, test x$have_qt_gui = xyes)
1110 AM_CONDITIONAL(HAVE_QTESTLIB, test x$have_qtest = xyes)
1115 ## for now enable_x11 just tracks have_x11,
1116 ## there's no --enable-x11
1117 if test x$no_x = xyes ; then
1125 if test x$enable_x11 = xyes ; then
1126 AC_DEFINE(DBUS_BUILD_X11,1,[Build X11-dependent code])
1127 DBUS_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
1128 DBUS_X_CFLAGS="$X_CFLAGS"
1134 AC_SUBST(DBUS_X_CFLAGS)
1135 AC_SUBST(DBUS_X_LIBS)
1137 ### Doxygen Documentation
1139 AC_PATH_PROG(DOXYGEN, doxygen, no)
1141 AC_MSG_CHECKING([whether to build Doxygen documentation])
1143 if test x$DOXYGEN = xno ; then
1149 if test x$enable_doxygen_docs = xauto ; then
1150 if test x$have_doxygen = xno ; then
1151 enable_doxygen_docs=no
1153 enable_doxygen_docs=yes
1157 if test x$enable_doxygen_docs = xyes; then
1158 if test x$have_doxygen = xno; then
1159 AC_MSG_ERROR([Building Doxygen docs explicitly required, but Doxygen not found])
1163 AM_CONDITIONAL(DBUS_DOXYGEN_DOCS_ENABLED, test x$enable_doxygen_docs = xyes)
1166 ### XML Documentation
1168 AC_PATH_PROG(XMLTO, xmlto, no)
1170 AC_MSG_CHECKING([whether to build XML documentation])
1172 if test x$XMLTO = xno ; then
1178 if test x$enable_xml_docs = xauto ; then
1179 if test x$have_xmlto = xno ; then
1186 if test x$enable_xml_docs = xyes; then
1187 if test x$have_xmlto = xno; then
1188 AC_MSG_ERROR([Building XML docs explicitly required, but xmlto not found])
1192 AM_CONDITIONAL(DBUS_XML_DOCS_ENABLED, test x$enable_xml_docs = xyes)
1195 #### Have to go $localstatedir->$prefix/var->/usr/local/var
1196 #### someone please fix this a better way...
1198 #### find the actual value for $prefix that we'll end up with
1199 ## (I know this is broken and should be done in the Makefile, but
1200 ## that's a major pain and almost nobody actually seems to care)
1202 if test "x$prefix" = "xNONE"; then
1203 REAL_PREFIX=$ac_default_prefix
1208 ## temporarily change prefix and exec_prefix
1212 if test "x$exec_prefix" = xNONE ; then
1213 REAL_EXEC_PREFIX=$REAL_PREFIX
1215 REAL_EXEC_PREFIX=$exec_prefix
1217 old_exec_prefix=$exec_prefix
1218 exec_prefix=$REAL_EXEC_PREFIX
1221 LOCALSTATEDIR_TMP="$localstatedir"
1222 EXPANDED_LOCALSTATEDIR=`eval echo $LOCALSTATEDIR_TMP`
1223 AC_SUBST(EXPANDED_LOCALSTATEDIR)
1225 SYSCONFDIR_TMP="$sysconfdir"
1226 EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP`
1227 AC_SUBST(EXPANDED_SYSCONFDIR)
1229 BINDIR_TMP="$bindir"
1230 EXPANDED_BINDIR=`eval echo $BINDIR_TMP`
1231 AC_SUBST(EXPANDED_BINDIR)
1233 LIBDIR_TMP="$libdir"
1234 EXPANDED_LIBDIR=`eval echo $LIBDIR_TMP`
1235 AC_SUBST(EXPANDED_LIBDIR)
1237 DATADIR_TMP="$datadir"
1238 EXPANDED_DATADIR=`eval echo $DATADIR_TMP`
1239 AC_SUBST(EXPANDED_DATADIR)
1241 ## put prefix and exec_prefix back
1243 exec_prefix=$old_exec_prefix
1245 #### Check our operating system
1246 operating_system=unknown
1247 if test -f /etc/redhat-release || test -f $EXPANDED_SYSCONFDIR/redhat-release ; then
1248 operating_system=redhat
1251 if test -f /etc/slackware-version || test -f $EXPANDED_SYSCONFDIR/slackware-version ; then
1252 operating_system=slackware
1255 #### Sort out init scripts
1257 if test x$with_init_scripts = x; then
1258 if test xredhat = x$operating_system ; then
1259 with_init_scripts=redhat
1261 if test xslackware = x$operating_system ; then
1262 with_init_scripts=slackware
1264 with_init_scripts=none
1269 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_RED_HAT, test x$with_init_scripts = xredhat)
1271 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_SLACKWARE, test x$with_init_scripts = xslackware)
1273 ##### Set up location for system bus socket
1274 if ! test -z "$with_system_socket"; then
1275 DBUS_SYSTEM_SOCKET=$with_system_socket
1277 DBUS_SYSTEM_SOCKET=${EXPANDED_LOCALSTATEDIR}/run/dbus/system_bus_socket
1280 AC_SUBST(DBUS_SYSTEM_SOCKET)
1281 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_SOCKET,"$DBUS_SYSTEM_SOCKET",[The name of the socket the system bus listens on by default])
1283 ## system bus only listens on local domain sockets, and never
1284 ## on an abstract socket (so only root can create the socket)
1285 DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$DBUS_SYSTEM_SOCKET"
1286 AC_SUBST(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)
1287 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS, "$DBUS_SYSTEM_BUS_DEFAULT_ADDRESS",[The default D-BUS address of the system bus])
1289 #### Set up the pid file
1290 if ! test -z "$with_system_pid_file"; then
1291 DBUS_SYSTEM_PID_FILE=$with_system_pid_file
1292 elif test x$operating_system = xredhat ; then
1293 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/messagebus.pid
1295 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/dbus/pid
1298 AC_SUBST(DBUS_SYSTEM_PID_FILE)
1300 #### Directory to check for console ownership
1301 if ! test -z "$with_console_auth_dir"; then
1302 DBUS_CONSOLE_AUTH_DIR=$with_console_auth_dir
1304 DBUS_CONSOLE_AUTH_DIR=/var/run/console/
1307 AC_SUBST(DBUS_CONSOLE_AUTH_DIR)
1308 AC_DEFINE_UNQUOTED(DBUS_CONSOLE_AUTH_DIR, "$DBUS_CONSOLE_AUTH_DIR", [Directory to check for console ownerhip])
1310 #### File to check for console ownership
1311 if test x$have_console_owner_file = xyes; then
1312 if ! test -z "$with_console_owner_file"; then
1313 DBUS_CONSOLE_OWNER_FILE=$with_console_owner_file
1315 DBUS_CONSOLE_OWNER_FILE=/dev/console
1318 DBUS_CONSOLE_OWNER_FILE=
1321 AC_SUBST(DBUS_CONSOLE_OWNER_FILE)
1322 AC_DEFINE_UNQUOTED(DBUS_CONSOLE_OWNER_FILE, "$DBUS_CONSOLE_OWNER_FILE", [File to check for console ownerhip])
1324 #### User to start the system bus as
1325 if test -z "$with_dbus_user" ; then
1326 DBUS_USER=messagebus
1328 DBUS_USER=$with_dbus_user
1331 AC_DEFINE_UNQUOTED(DBUS_USER,"$DBUS_USER", [User for running the system BUS daemon])
1333 #### Tell tests where to find certain stuff in builddir
1334 ABSOLUTE_TOP_BUILDDIR=`cd ${ac_top_builddir}. && pwd`
1336 AC_DEFUN([TEST_PATH], [
1337 TEST_$1=${ABSOLUTE_TOP_BUILDDIR}/test/$2
1338 AC_DEFINE_UNQUOTED(TEST_$1, "$TEST_$1",
1339 [Full path to test file test/$2 in builddir])
1343 TEST_PATH(SERVICE_DIR, data/valid-service-files)
1344 TEST_PATH(SERVICE_BINARY, test-service)
1345 TEST_PATH(SHELL_SERVICE_BINARY, test-shell-service)
1346 TEST_PATH(GLIB_SERVICE_BINARY, glib/test-service-glib)
1347 TEST_PATH(PYTHON_SERVICE_BINARY, python/test-service.py)
1348 TEST_PATH(EXIT_BINARY, test-exit)
1349 TEST_PATH(SEGFAULT_BINARY, test-segfault)
1350 TEST_PATH(SLEEP_FOREVER_BINARY, test-sleep-forever)
1351 AC_SUBST(ABSOLUTE_TOP_BUILDDIR)
1353 #### Find socket directories
1354 if ! test -z "$TMPDIR" ; then
1355 DEFAULT_SOCKET_DIR=$TMPDIR
1356 elif ! test -z "$TEMP" ; then
1357 DEFAULT_SOCKET_DIR=$TEMP
1358 elif ! test -z "$TMP" ; then
1359 DEFAULT_SOCKET_DIR=$TMP
1361 DEFAULT_SOCKET_DIR=/tmp
1364 if ! test -z "$with_test_socket_dir" ; then
1365 TEST_SOCKET_DIR="$with_test_socket_dir"
1367 TEST_SOCKET_DIR=$DEFAULT_SOCKET_DIR
1369 AC_SUBST(TEST_SOCKET_DIR)
1370 AC_DEFINE_UNQUOTED(DBUS_TEST_SOCKET_DIR, "$TEST_SOCKET_DIR", [Where to put test sockets])
1372 if ! test -z "$with_session_socket_dir" ; then
1373 DBUS_SESSION_SOCKET_DIR="$with_session_socket_dir"
1375 DBUS_SESSION_SOCKET_DIR=$DEFAULT_SOCKET_DIR
1377 AC_DEFINE_UNQUOTED(DBUS_SESSION_SOCKET_DIR, "$DBUS_SESSION_SOCKET_DIR", [Where per-session bus puts its sockets])
1378 AC_SUBST(DBUS_SESSION_SOCKET_DIR)
1380 # Detect if we can build Python bindings (need python, python headers, and pyrex)
1381 if test x$enable_python = xno; then
1384 have_python_version=2.4
1385 AC_MSG_NOTICE([Checking to see if we can build Python bindings])
1389 if test -z "$PYTHON" ; then
1390 AC_MSG_WARN([Python not found])
1392 AC_MSG_CHECKING([whether $PYTHON version >= $have_python_version])
1393 AM_PYTHON_CHECK_VERSION([$PYTHON], [$have_python_version],
1394 [have_python_version="yes"],
1395 [have_python_version="too old"])
1397 AC_MSG_RESULT($have_python_version)
1399 AC_CHECK_PROGS(PYREX, pyrexc)
1401 if test -z "$PYREX" ; then
1407 AM_CHECK_PYTHON_HEADERS(have_python_headers=yes,have_python_headers=no)
1409 if test x$have_pyrex = xyes -a x$have_python_headers = xyes -a "x$have_python_version" = xyes ; then
1414 if test x$have_python = xno ; then
1415 if test x$enable_python = xyes ; then
1416 AC_MSG_ERROR([Building python explicitly requested, but can't build python bindings because either Pyrex, Python headers or a suitable Python version was not found])
1418 AC_MSG_WARN([Couldn't find either Pyrex, the Python headers or a suitable version of Python, not building Python bindings])
1423 AM_CONDITIONAL(HAVE_PYTHON, test x$have_python = xyes)
1427 dbus/dbus-arch-deps.h
1436 glib/examples/Makefile
1437 glib/examples/statemachine/Makefile
1439 python/examples/Makefile
1444 qt/examples/Makefile
1448 gcj/org/freedesktop/Makefile
1449 gcj/org/freedesktop/dbus/Makefile
1451 mono/AssemblyInfo.cs
1452 mono/dbus-sharp.dll.config
1453 mono/example/Makefile
1459 test/python/Makefile
1461 test/name-test/Makefile
1467 test/data/valid-config-files/debug-allow-all.conf
1468 test/data/valid-config-files/debug-allow-all-sha1.conf
1469 test/data/valid-service-files/debug-echo.service
1470 test/data/valid-service-files/debug-segfault.service
1471 test/data/valid-service-files/debug-glib.service
1472 test/data/valid-service-files/debug-shell-echo-success.service
1473 test/data/valid-service-files/debug-shell-echo-fail.service
1474 test/data/valid-service-files/debug-python.service
1477 ### FIXME it's bizarre that have_qt and have_glib are used
1478 ### instead of enable_ - should fix things so that enable
1479 ### is always whether it's enabled, and have is always whether
1482 dnl ==========================================================================
1488 exec_prefix: ${exec_prefix}
1489 libdir: ${EXPANDED_LIBDIR}
1490 bindir: ${EXPANDED_BINDIR}
1491 sysconfdir: ${EXPANDED_SYSCONFDIR}
1492 localstatedir: ${EXPANDED_LOCALSTATEDIR}
1493 datadir: ${EXPANDED_DATADIR}
1494 source code location: ${srcdir}
1497 cppflags: ${CPPFLAGS}
1498 cxxflags: ${CXXFLAGS}
1499 64-bit int: ${DBUS_INT64_TYPE}
1500 32-bit int: ${DBUS_INT32_TYPE}
1501 16-bit int: ${DBUS_INT16_TYPE}
1505 if test x$enable_gcj = xyes ; then
1508 gcjflags: ${GCJFLAGS}
1512 " gcj: (not enabled)"
1515 if test x$enable_mono = xyes ; then
1521 " csc: (not enabled)
1526 Maintainer mode: ${USE_MAINTAINER_MODE}
1527 gcc coverage profiling: ${enable_gcov}
1528 Building unit tests: ${enable_tests}
1529 Building verbose mode: ${enable_verbose_mode}
1530 Building assertions: ${enable_asserts}
1531 Building checks: ${enable_checks}
1532 Building Qt4 bindings: ${have_qt}
1533 Building Qt3 bindings: ${have_qt3}
1534 Building GLib bindings: ${have_glib}
1535 Building Python bindings: ${have_python}
1536 Building SELinux support: ${have_selinux}
1537 Building dnotify support: ${have_dnotify}
1538 Building Mono bindings: ${enable_mono}
1539 Building Mono docs: ${enable_mono_docs}
1540 Building GTK+ tools: ${have_gtk}
1541 Building X11 code: ${enable_x11}
1542 Building Doxygen docs: ${enable_doxygen_docs}
1543 Building XML docs: ${enable_xml_docs}
1544 Gettext libs (empty OK): ${INTLLIBS}
1545 Using XML parser: ${with_xml}
1546 Init scripts style: ${with_init_scripts}
1547 Abstract socket names: ${have_abstract_sockets}
1548 System bus socket: ${DBUS_SYSTEM_SOCKET}
1549 System bus address: ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
1550 System bus PID file: ${DBUS_SYSTEM_PID_FILE}
1551 Session bus socket dir: ${DBUS_SESSION_SOCKET_DIR}
1552 Console auth dir: ${DBUS_CONSOLE_AUTH_DIR}
1553 Console owner file: ${have_console_owner_file}
1554 Console owner file path: ${DBUS_CONSOLE_OWNER_FILE}
1555 System bus user: ${DBUS_USER}
1556 Session bus services dir: ${EXPANDED_DATADIR}/dbus-1/services
1557 'make check' socket dir: ${TEST_SOCKET_DIR}
1560 if test x$enable_tests = xyes; then
1561 echo "NOTE: building with unit tests increases the size of the installed library and renders it insecure."
1563 if test x$enable_tests = xyes -a x$enable_asserts = xno; then
1564 echo "NOTE: building with unit tests but without assertions means tests may not properly report failures (this configuration is only useful when doing something like profiling the tests)"
1566 if test x$enable_gcov = xyes; then
1567 echo "NOTE: building with coverage profiling is definitely for developers only."
1569 if test x$enable_verbose_mode = xyes; then
1570 echo "NOTE: building with verbose mode increases library size, may slightly increase security risk, and decreases performance."
1572 if test x$enable_asserts = xyes; then
1573 echo "NOTE: building with assertions increases library size and decreases performance."
1575 if test x$enable_checks = xno; then
1576 echo "NOTE: building without checks for arguments passed to public API makes it harder to debug apps using D-BUS, but will slightly decrease D-BUS library size and _very_ slightly improve performance."