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)
72 AC_ARG_WITH(xml, AS_HELP_STRING([--with-xml=[libxml/expat]],[XML library to use]))
73 AC_ARG_WITH(init-scripts, AS_HELP_STRING([--with-init-scripts=[redhat]],[Style of init scripts to install]))
74 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]))
75 AC_ARG_WITH(test-socket-dir, AS_HELP_STRING([--with-test-socket-dir=[dirname]],[Where to put sockets for make check]))
76 AC_ARG_WITH(system-pid-file, AS_HELP_STRING([--with-system-pid-file=[pidfile]],[PID file for systemwide daemon]))
77 AC_ARG_WITH(system-socket, AS_HELP_STRING([--with-system-socket=[filename]],[UNIX domain socket for systemwide daemon]))
78 AC_ARG_WITH(console-auth-dir, AS_HELP_STRING([--with-console-auth-dir=[dirname]],[directory to check for console ownerhip]))
79 AC_ARG_WITH(dbus_user, AS_HELP_STRING([--with-dbus-user=<user>],[User for running the DBUS daemon (messagebus)]))
82 dnl DBUS_BUILD_TESTS controls unit tests built in to .c files
83 dnl and also some stuff in the test/ subdir
84 AM_CONDITIONAL(DBUS_BUILD_TESTS, test x$enable_tests = xyes)
85 if test x$enable_tests = xyes; then
86 AC_DEFINE(DBUS_BUILD_TESTS,1,[Build test code])
89 if test x$enable_verbose_mode = xyes; then
90 AC_DEFINE(DBUS_ENABLE_VERBOSE_MODE,1,[Support a verbose mode])
92 if test x$enable_asserts = xno; then
93 AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking])
94 AC_DEFINE(G_DISABLE_ASSERT,1,[Disable GLib assertion macros])
96 if test x$enable_checks = xno; then
97 AC_DEFINE(DBUS_DISABLE_CHECKS,1,[Disable public API sanity checking])
98 AC_DEFINE(G_DISABLE_CHECKS,1,[Disable GLib public API sanity checking])
101 #### gcc warning flags
103 if test "x$GCC" = "xyes"; then
106 *[\ \ ]-Wall[\ \ ]*) ;;
107 *) CFLAGS="$CFLAGS -Wall" ;;
111 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
112 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
116 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
117 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
121 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
122 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
126 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
127 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
131 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
132 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
136 *[\ \ ]-Wcast-align[\ \ ]*) ;;
137 *) CFLAGS="$CFLAGS -Wcast-align" ;;
141 *[\ \ ]-Wfloat-equal[\ \ ]*) ;;
142 *) CFLAGS="$CFLAGS -Wfloat-equal" ;;
146 *[\ \ ]-Wsign-compare[\ \ ]*) ;;
147 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
150 if test "x$enable_ansi" = "xyes"; then
152 *[\ \ ]-ansi[\ \ ]*) ;;
153 *) CFLAGS="$CFLAGS -ansi" ;;
157 *[\ \ ]-D_POSIX_C_SOURCE*) ;;
158 *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
162 *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;;
163 *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
167 *[\ \ ]-pedantic[\ \ ]*) ;;
168 *) CFLAGS="$CFLAGS -pedantic" ;;
171 if test x$enable_gcov = xyes; then
173 *[\ \ ]-fprofile-arcs[\ \ ]*) ;;
174 *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
177 *[\ \ ]-ftest-coverage[\ \ ]*) ;;
178 *) CFLAGS="$CFLAGS -ftest-coverage" ;;
181 ## remove optimization
182 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
186 if test x$enable_gcov = xyes; then
187 AC_MSG_ERROR([--enable-gcov can only be used with gcc])
191 #### can't use AM_PROG_GCJ since it fails fatally if no gcj found
192 AC_CHECK_PROGS(GCJ, gcj, gcj)
193 if test -z "$GCJ" ; then
196 # Needs to be here so libtool wont get confused
200 if test "x${GCJFLAGS-unset}" = xunset; then
201 GCJFLAGS="-g -O2 -Wall"
206 if test x$enable_gcj = xauto ; then
207 if test x$have_gcj = xno ; then
214 if test x$enable_gcj = xyes; then
215 if test x$have_gcj = xno ; then
216 AC_MSG_ERROR([Building gcj explicitly required, but gcj not found])
218 AC_CHECK_PROGS(JAR, gcj-jar fastjar jar)
222 AM_CONDITIONAL(DBUS_USE_GCJ, test x$enable_gcj = xyes)
227 MONO_REQUIRED_VERSION=0.95
228 AC_SUBST(MONO_REQUIRED_VERSION)
229 PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, have_mono=true, have_mono=false)
231 if test "x$enable_mono" = "xyes"; then
232 if test "x$have_mono" = "xfalse"; then
233 AC_MSG_ERROR([Mono was not found])
237 if test "x$have_mono" = "xtrue"; then
238 if test `uname -s` = "Darwin"; then
239 AC_PATH_PROG(RUNTIME, mint, no)
240 AC_PATH_PROG(CSC, mcs, no)
244 AC_PATH_PROG(RUNTIME, mono, no)
245 AC_PATH_PROG(CSC, mcs, no)
250 AC_PATH_PROG(CSC, csc.exe, no)
256 if test x$enable_mono = xyes; then
257 if test x$have_mcs = xno ; then
258 AC_MSG_ERROR([Building Mono bindings explicitly required, but mcs compiler not found])
262 AC_PATH_PROG(GACUTIL, gacutil, no)
263 if test "x$GACUTIL" = "xno" ; then
264 AC_MSG_ERROR([No gacutil tool found])
270 if test x$enable_mono = xauto ; then
271 if test x$CSC = xno ; then
275 AC_PATH_PROG(GACUTIL, gacutil, no)
276 if test "x$GACUTIL" = "xno" ; then
290 AM_CONDITIONAL(DBUS_USE_CSC, test x$enable_mono = xyes)
292 #### Look for monodoc
293 MONODOC_REQUIRED_VERSION=0.16
294 AC_SUBST(MONODOC_REQUIRED_VERSION)
295 PKG_CHECK_MODULES(MONODOC_DEPENDENCY, monodoc >= $MONODOC_REQUIRED_VERSION, have_monodoc=yes, have_monodoc=no)
297 if test x$enable_mono_docs = xyes; then
298 if test x$have_monodoc = xno ; then
299 AC_MSG_ERROR([Building Mono docs explicitly required, but monodoc not found])
301 AC_PATH_PROG(MONODOC, monodoc, no)
302 if test x$MONODOC = xno; then
303 AC_MSG_ERROR([Building Mono docs explicitly required, but monodoc not found])
308 if test x$enable_mono_docs = xauto ; then
309 if test x$have_monodoc = xno ; then
313 AC_PATH_PROG(MONODOC, monodoc, no)
314 if test x$MONODOC = xno; then
325 AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_mono_docs" = "xyes")
328 # let ourselves use our own unstable API
329 CPPFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE=1 $CPPFLAGS"
330 # compress spaces in flags
331 CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`
332 CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ +/ /g'`
333 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'`
336 if test x$enable_gcov = xyes; then
337 ## so that config.h changes when you toggle gcov support
338 AC_DEFINE_UNQUOTED(DBUS_GCOV_ENABLED, 1, [Defined if gcov is enabled to force a rebuild due to config.h changing])
340 AC_MSG_CHECKING([for gcc 3.3 version of gcov file format])
342 AC_RUN_IFELSE( [AC_LANG_PROGRAM( , [[ if (__GNUC__ >=3 && __GNUC_MINOR__ >= 3) exit (0); else exit (1); ]])],
344 if test x$have_gcc33_gcov = xyes ; then
345 AC_DEFINE_UNQUOTED(DBUS_HAVE_GCC33_GCOV, 1, [Defined if we have gcc 3.3 and thus the new gcov format])
347 AC_MSG_RESULT($have_gcc33_gcov)
349 AM_CONDITIONAL(DBUS_GCOV_ENABLED, test x$enable_gcov = xyes)
353 AC_CHECK_SIZEOF(char)
354 AC_CHECK_SIZEOF(short)
355 AC_CHECK_SIZEOF(long)
357 AC_CHECK_SIZEOF(void *)
358 AC_CHECK_SIZEOF(long long)
359 AC_CHECK_SIZEOF(__int64)
361 ### See what our 64 bit type is called
362 AC_MSG_CHECKING([64-bit integer type])
367 dbusint64_constant='(val)'
368 dbusuint64_constant='(val)'
372 dbusint64_constant='(val##L)'
373 dbusuint64_constant='(val##UL)'
375 $ac_cv_sizeof_long_long)
376 dbusint64='long long'
377 dbusint64_constant='(val##LL)'
378 dbusuint64_constant='(val##ULL)'
380 $ac_cv_sizeof___int64)
382 dbusint64_constant='(val##i64)'
383 dbusuint64_constant='(val##ui64)'
387 if test -z "$dbusint64" ; then
388 DBUS_INT64_TYPE="no_int64_type_detected"
391 DBUS_UINT64_CONSTANT=
392 AC_MSG_RESULT([none found])
394 DBUS_INT64_TYPE="$dbusint64"
396 DBUS_INT64_CONSTANT="$dbusint64_constant"
397 DBUS_UINT64_CONSTANT="$dbusuint64_constant"
398 AC_MSG_RESULT($DBUS_INT64_TYPE)
401 AC_SUBST(DBUS_INT64_TYPE)
402 AC_SUBST(DBUS_INT64_CONSTANT)
403 AC_SUBST(DBUS_UINT64_CONSTANT)
404 AC_SUBST(DBUS_HAVE_INT64)
406 ### see what 32-bit int is called
407 AC_MSG_CHECKING([32-bit integer type])
421 if test -z "$dbusint32" ; then
422 DBUS_INT32_TYPE="no_int32_type_detected"
423 AC_MSG_ERROR([No 32-bit integer type found])
425 DBUS_INT32_TYPE="$dbusint32"
426 AC_MSG_RESULT($DBUS_INT32_TYPE)
429 AC_SUBST(DBUS_INT32_TYPE)
431 ### see what 16-bit int is called
432 AC_MSG_CHECKING([16-bit integer type])
443 if test -z "$dbusint16" ; then
444 DBUS_INT16_TYPE="no_int16_type_detected"
445 AC_MSG_ERROR([No 16-bit integer type found])
447 DBUS_INT16_TYPE="$dbusint16"
448 AC_MSG_RESULT($DBUS_INT16_TYPE)
451 AC_SUBST(DBUS_INT16_TYPE)
457 dnl **********************************
458 dnl *** va_copy checks (from GLib) ***
459 dnl **********************************
460 dnl we currently check for all three va_copy possibilities, so we get
461 dnl all results in config.log for bug reports.
462 AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[
463 AC_LINK_IFELSE([#include <stdarg.h>
464 void f (int i, ...) {
465 va_list args1, args2;
467 va_copy (args2, args1);
468 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
470 va_end (args1); va_end (args2);
476 [dbus_cv_va_copy=yes],
477 [dbus_cv_va_copy=no])
479 AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[
480 AC_LINK_IFELSE([#include <stdarg.h>
481 void f (int i, ...) {
482 va_list args1, args2;
484 __va_copy (args2, args1);
485 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
487 va_end (args1); va_end (args2);
493 [dbus_cv___va_copy=yes],
494 [dbus_cv___va_copy=no])
497 if test "x$dbus_cv_va_copy" = "xyes"; then
498 dbus_va_copy_func=va_copy
499 else if test "x$dbus_cv___va_copy" = "xyes"; then
500 dbus_va_copy_func=__va_copy
504 if test -n "$dbus_va_copy_func"; then
505 AC_DEFINE_UNQUOTED(DBUS_VA_COPY,$dbus_va_copy_func,[A 'va_copy' style function])
508 AC_CACHE_CHECK([whether va_lists can be copied by value],dbus_cv_va_val_copy,[
509 AC_TRY_RUN([#include <stdarg.h>
510 void f (int i, ...) {
511 va_list args1, args2;
514 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
516 va_end (args1); va_end (args2);
522 [dbus_cv_va_val_copy=yes],
523 [dbus_cv_va_val_copy=no],
524 [dbus_cv_va_val_copy=yes])
527 if test "x$dbus_cv_va_val_copy" = "xno"; then
528 AC_DEFINE(DBUS_VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copies as values])
532 #### Atomic integers (checks by Sebastian Wilhelmi for GLib)
533 AC_MSG_CHECKING([whether to use inline assembler routines for atomic integers])
535 if test x"$GCC" = xyes; then
536 if test "x$enable_ansi" = "xyes"; then
544 AC_MSG_RESULT([i486])
545 AC_DEFINE_UNQUOTED(DBUS_USE_ATOMIC_INT_486, 1, [Use atomic integer implementation for 486])
554 if test x$have_atomic_inc = xyes ; then
555 AC_DEFINE_UNQUOTED(DBUS_HAVE_ATOMIC_INT, 1, [Some atomic integer implementation present])
558 #### Various functions
559 AC_CHECK_LIB(socket,socket)
560 AC_CHECK_LIB(nsl,gethostbyname)
562 AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist)
564 AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
566 AC_CACHE_CHECK([for posix getpwnam_r],
567 ac_cv_func_posix_getpwnam_r,
573 struct passwd pwd, *pwptr = &pwd;
576 error = getpwnam_r ("", &pwd, buffer,
577 sizeof (buffer), &pwptr);
578 return (error < 0 && errno == ENOSYS)
581 [ac_cv_func_posix_getpwnam_r=yes],
582 [ac_cv_func_posix_getpwnam_r=no])])
583 if test "$ac_cv_func_posix_getpwnam_r" = yes; then
584 AC_DEFINE(HAVE_POSIX_GETPWNAM_R,1,
585 [Have POSIX function getpwnam_r])
587 AC_CACHE_CHECK([for nonposix getpwnam_r],
588 ac_cv_func_nonposix_getpwnam_r,
589 [AC_TRY_LINK([#include <pwd.h>],
592 getpwnam_r ("", &pwd, buffer,
594 [ac_cv_func_nonposix_getpwnam_r=yes],
595 [ac_cv_func_nonposix_getpwnam_r=no])])
596 if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then
597 AC_DEFINE(HAVE_NONPOSIX_GETPWNAM_R,1,
598 [Have non-POSIX function getpwnam_r])
602 dnl check for socklen_t
603 AC_MSG_CHECKING(whether socklen_t is defined)
605 #include <sys/types.h>
606 #include <sys/socket.h>
611 ],dbus_have_socklen_t=yes,dbus_have_socklen_t=no)
612 AC_MSG_RESULT($dbus_have_socklen_t)
614 if test "x$dbus_have_socklen_t" = "xyes"; then
615 AC_DEFINE(HAVE_SOCKLEN_T,1,[Have socklen_t type])
618 dnl check for writev header and writev function so we're
619 dnl good to go if HAVE_WRITEV gets defined.
620 AC_CHECK_HEADERS(sys/uio.h, [AC_CHECK_FUNCS(writev)])
622 dnl check for flavours of varargs macros (test from GLib)
623 AC_MSG_CHECKING(for ISO C99 varargs macros in C)
625 int a(int p1, int p2, int p3);
626 #define call_a(...) a(1,__VA_ARGS__)
628 ],dbus_have_iso_c_varargs=yes,dbus_have_iso_c_varargs=no)
629 AC_MSG_RESULT($dbus_have_iso_c_varargs)
631 AC_MSG_CHECKING(for GNUC varargs macros)
633 int a(int p1, int p2, int p3);
634 #define call_a(params...) a(1,params)
636 ],dbus_have_gnuc_varargs=yes,dbus_have_gnuc_varargs=no)
637 AC_MSG_RESULT($dbus_have_gnuc_varargs)
639 dnl Output varargs tests
640 if test x$dbus_have_iso_c_varargs = xyes; then
641 AC_DEFINE(HAVE_ISO_VARARGS,1,[Have ISO C99 varargs macros])
643 if test x$dbus_have_gnuc_varargs = xyes; then
644 AC_DEFINE(HAVE_GNUC_VARARGS,1,[Have GNU-style varargs macros])
647 dnl Check for various credentials.
648 AC_MSG_CHECKING(for struct cmsgcred)
650 #include <sys/types.h>
651 #include <sys/socket.h>
653 struct cmsgcred cred;
656 ],dbus_have_struct_cmsgcred=yes,dbus_have_struct_cmsgcred=no)
657 AC_MSG_RESULT($dbus_have_struct_cmsgcred)
659 if test x$dbus_have_struct_cmsgcred = xyes; then
660 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
663 AC_CHECK_FUNCS(getpeerucred getpeereid)
665 #### Abstract sockets
667 AC_MSG_CHECKING(abstract socket namespace)
669 AC_RUN_IFELSE([AC_LANG_PROGRAM(
671 #include <sys/types.h>
675 #include <sys/socket.h>
681 struct sockaddr_un addr;
683 listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
687 fprintf (stderr, "socket() failed: %s\n", strerror (errno));
691 memset (&addr, '\0', sizeof (addr));
692 addr.sun_family = AF_UNIX;
693 strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
694 addr.sun_path[0] = '\0'; /* this is what makes it abstract */
696 if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
698 fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
705 [have_abstract_sockets=yes],
706 [have_abstract_sockets=no])
708 AC_MSG_RESULT($have_abstract_sockets)
710 if test x$enable_abstract_sockets = xyes; then
711 if test x$have_abstract_sockets = xno; then
712 AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])
716 if test x$enable_abstract_sockets = xno; then
717 have_abstract_sockets=no;
720 if test x$have_abstract_sockets = xyes ; then
721 DBUS_PATH_OR_ABSTRACT=abstract
722 AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace])
724 DBUS_PATH_OR_ABSTRACT=path
727 # this is used in addresses to prefer abstract, e.g.
728 # unix:path=/foo or unix:abstract=/foo
729 AC_SUBST(DBUS_PATH_OR_ABSTRACT)
731 #### Sort out gettext
733 # this makes us require GLib to run autoconf, but not at runtime
737 # INTLLIBS is now set
739 # (if someone wants to go through and make internationalization
740 # conditional with #ifdef ENABLE_NLS then go crazy and send us a patch,
741 # but right now we won't build without gettext)
742 if test "$gt_cv_have_gettext" != "yes" ; then
744 *** You must have either have gettext support in your C library, or use the
745 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
749 #### Sort out XML library
752 AC_CHECK_LIB(expat, XML_ParserCreate_MM,
753 [ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ],
756 PKG_CHECK_MODULES(LIBXML, libxml-2.0, have_libxml=true, have_libxml=false)
758 # see what we want to use
759 dbus_use_libxml=false
761 if test x$with_xml = xexpat; then
763 if ! $have_expat ; then
764 AC_MSG_ERROR([Explicitly requested expat but expat not found])
766 elif test x$with_xml = xlibxml; then
768 if ! $have_libxml ; then
769 AC_MSG_ERROR([Explicitly requested libxml but libxml not found])
772 ### expat is the default because libxml can't currently survive
773 ### our brutal OOM-handling unit test setup.
774 ### http://bugzilla.gnome.org/show_bug.cgi?id=109368
775 if $have_expat ; then
778 elif $have_libxml ; then
782 AC_MSG_ERROR([No XML library found, check config.log for failed attempts])
786 AM_CONDITIONAL(DBUS_USE_EXPAT, $dbus_use_expat)
787 AM_CONDITIONAL(DBUS_USE_LIBXML, $dbus_use_libxml)
789 if $dbus_use_expat; then
793 if $dbus_use_libxml; then
794 XML_LIBS=$LIBXML_LIBS
795 XML_CFLAGS=$LIBXML_CFLAGS
799 if test x$enable_selinux = xno ; then
802 # See if we have SELinux library
803 AC_CHECK_LIB(selinux, is_selinux_enabled,
804 have_selinux=yes, have_selinux=no)
806 # see if we have the SELinux header with the new D-BUS stuff in it
807 if test x$have_selinux = xyes ; then
808 AC_MSG_CHECKING([for DBUS Flask permissions in selinux/av_permissions.h])
809 AC_TRY_COMPILE([#include <selinux/av_permissions.h>],
810 [#ifdef DBUS__ACQUIRE_SVC return 0;
812 #error DBUS__ACQUIRE_SVC not defined
814 have_selinux=yes, have_selinux=no)
815 AC_MSG_RESULT($have_selinux)
818 if test x$enable_selinux = xauto ; then
819 if test x$have_selinux = xno ; then
820 AC_MSG_WARN([Sufficiently new SELinux library not found])
823 if test x$have_selinux = xno ; then
824 AC_MSG_ERROR([SElinux explicitly required, and SELinux library not found])
829 AM_CONDITIONAL(HAVE_SELINUX, test x$have_selinux = xyes)
831 if test x$have_selinux = xyes ; then
832 SELINUX_LIBS="-lselinux -lpthread"
833 AC_DEFINE(HAVE_SELINUX,1,[SELinux support])
839 if test x$enable_dnotify = xno ; then
842 if test x$target_os = xlinux-gnu -o x$target_os = xlinux; then
849 dnl check if dnotify backend is enabled
850 if test x$have_dnotify = xyes; then
851 AC_DEFINE(DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX,1,[Use dnotify on Linux])
854 #### Set up final flags
857 AC_SUBST(DBUS_CLIENT_CFLAGS)
858 AC_SUBST(DBUS_CLIENT_LIBS)
860 DBUS_BUS_CFLAGS=$XML_CFLAGS
861 DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS"
862 AC_SUBST(DBUS_BUS_CFLAGS)
863 AC_SUBST(DBUS_BUS_LIBS)
867 AC_SUBST(DBUS_TEST_CFLAGS)
868 AC_SUBST(DBUS_TEST_LIBS)
871 PKG_CHECK_MODULES(DBUS_GLIB, gobject-2.0 >= 2.4, have_glib=yes, have_glib=no)
872 PKG_CHECK_MODULES(DBUS_GLIB_THREADS, gthread-2.0 >= 2.4, have_glib_threads=yes, have_glib_threads=no)
874 if test x$have_glib = xno ; then
875 AC_MSG_WARN([GLib development libraries not found])
878 if test x$enable_glib = xyes; then
879 if test x$have_glib = xno; then
880 AC_MSG_ERROR([GLib explicitly required, and GLib development libraries not found])
884 if test x$enable_glib = xno; then
888 AM_CONDITIONAL(HAVE_GLIB, test x$have_glib = xyes)
889 AM_CONDITIONAL(HAVE_GLIB_THREADS, test x$have_glib_threads = xyes)
891 if test x$have_glib = xyes; then
892 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
894 GLIB_GENMARSHAL=glib-not-enabled-so-there-is-no-genmarshal
896 AC_SUBST(GLIB_GENMARSHAL)
899 AC_SUBST(DBUS_GLIB_CFLAGS)
900 AC_SUBST(DBUS_GLIB_LIBS)
901 AC_SUBST(DBUS_GLIB_THREADS_LIBS)
903 DBUS_GLIB_TOOL_CFLAGS=$XML_CFLAGS
904 DBUS_GLIB_TOOL_LIBS="$XML_LIBS $INTLLIBS"
905 AC_SUBST(DBUS_GLIB_TOOL_CFLAGS)
906 AC_SUBST(DBUS_GLIB_TOOL_LIBS)
909 if test x$have_glib = xno ; then
910 AC_MSG_WARN([Can't use GTK+ since GLib not enabled])
913 PKG_CHECK_MODULES(DBUS_GTK, gtk+-2.0 >= 2.4, have_gtk=yes, have_gtk=no)
914 PKG_CHECK_MODULES(DBUS_GTK_THREADS, gtk+-2.0 >= 2.4 gthread-2.0, have_gtk_threads=yes, have_gtk_threads=no)
917 if test x$have_gtk = xno ; then
918 AC_MSG_WARN([GTK+ development libraries not found])
921 if test x$enable_gtk = xyes; then
922 if test x$have_gtk = xno; then
923 AC_MSG_ERROR([GTK+ explicitly required, and GTK+ development libraries not found])
927 if test x$enable_gtk = xno; then
931 AM_CONDITIONAL(HAVE_GTK, test x$have_gtk = xyes)
934 AC_SUBST(DBUS_GTK_CFLAGS)
935 AC_SUBST(DBUS_GTK_LIBS)
936 AC_SUBST(DBUS_GTK_THREADS_CFLAGS)
937 AC_SUBST(DBUS_GTK_THREADS_LIBS)
941 if test -z "$with_qt3_moc" ; then
942 AC_PATH_PROG(QT3_MOC, moc, no)
944 QT3_MOC=$with_qt3_moc
949 AC_MSG_CHECKING([for qglobal.h])
950 if test -n "$QTDIR" -a -f "$QTDIR/include/qglobal.h"; then
952 DBUS_QT3_CXXFLAGS="-I$QTDIR/include"
954 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
955 if test -f "$dir/qglobal.h"; then
957 DBUS_QT3_CXXFLAGS="-I$dir"
958 DBUS_QT3_LIBS="-L$QTDIR/lib -lqt-mt"
962 if test x$have_qt3 = xyes; then
963 AC_MSG_RESULT([found])
965 AC_MSG_RESULT([not found])
968 if test x$have_qt3 = xno; then
969 AC_MSG_WARN([Qt3 development libraries not found])
972 if test x$enable_qt3 = xyes; then
973 if test x$have_qt3 = xno; then
974 AC_MSG_ERROR([Qt3 integration explicitly required, and Qt3 libraries not found])
978 if test x$enable_qt3 = xno; then
982 AM_CONDITIONAL(HAVE_QT3, test x$have_qt3 = xyes)
985 AC_SUBST(DBUS_QT3_CXXFLAGS)
986 AC_SUBST(DBUS_QT3_LIBS)
991 AC_MSG_CHECKING([if we want to link to Qt debugging libraries])
993 if test x$enable_qt_debug = xyes; then
995 AC_MSG_RESULT([debug])
997 AC_MSG_RESULT([release])
1000 QT_CORE=QtCore$qt_suffix
1001 QT_XML=QtXml$qt_suffix
1002 QT_GUI=QtGui$qt_suffix
1003 QT_TESTLIB=QtTest$qt_suffix
1004 min_qt_version=4.1.3
1009 PKG_CHECK_MODULES([DBUS_QT],
1010 [$QT_CORE >= $min_qt_version $QT_XML >= $min_qt_version],
1014 dnl Check for moc too
1015 if test x$have_qt = xyes ; then
1016 AC_MSG_CHECKING([for moc])
1018 if test -z "$with_qt_moc" ; then
1019 QT_MOC=`$PKG_CONFIG --variable=exec_prefix $QT_CORE`
1020 QT_MOC=${QT_MOC}/bin/moc
1025 if test -x "$QT_MOC"; then
1026 AC_MSG_RESULT([found, $QT_MOC])
1028 AC_MSG_RESULT([not found])
1029 AC_MSG_WARN([moc not found; disabling Qt])
1034 if test x$have_qt = xno ; then
1035 if test x$enable_qt = xyes; then
1036 AC_MSG_ERROR([Qt integration explicitly required, and Qt libraries not found])
1041 AC_SUBST(DBUS_QT_CFLAGS)
1042 AC_SUBST(DBUS_QT_LIBS)
1045 dnl QTestLib detection
1046 PKG_CHECK_MODULES([DBUS_QTESTLIB],
1047 [$QT_TESTLIB >= 4.1.0],
1051 if test x$have_qtest = xno ; then
1052 AC_MSG_WARN([Qt Unit Test library not found])
1055 if test x$have_qt = xno; then
1059 AC_SUBST(DBUS_QTESTLIB_CFLAGS)
1060 AC_SUBST(DBUS_QTESTLIB_LIBS)
1063 PKG_CHECK_MODULES([DBUS_QT_GUI], [$QT_GUI >= $min_qt_version],
1067 if test x$have_qt_gui = xyes ; then
1068 AC_MSG_CHECKING([for uic])
1069 QT_UIC=`$PKG_CONFIG --variable=exec_prefix $QT_GUI`/bin/uic
1071 if test -x "$QT_UIC" ; then
1072 AC_MSG_RESULT([found, $QT_UIC])
1074 AC_MSG_RESULT([not found, disabling Qt Gui])
1079 AC_SUBST(DBUS_QT_GUI_CFLAGS)
1080 AC_SUBST(DBUS_QT_GUI_LIBS)
1084 AM_CONDITIONAL(HAVE_QT, test x$have_qt = xyes)
1085 AM_CONDITIONAL(HAVE_QT_GUI, test x$have_qt_gui = xyes)
1086 AM_CONDITIONAL(HAVE_QTESTLIB, test x$have_qtest = xyes)
1091 ## for now enable_x11 just tracks have_x11,
1092 ## there's no --enable-x11
1093 if test x$no_x = xyes ; then
1101 if test x$enable_x11 = xyes ; then
1102 AC_DEFINE(DBUS_BUILD_X11,1,[Build X11-dependent code])
1103 DBUS_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
1104 DBUS_X_CFLAGS="$X_CFLAGS"
1110 AC_SUBST(DBUS_X_CFLAGS)
1111 AC_SUBST(DBUS_X_LIBS)
1113 ### Doxygen Documentation
1115 AC_PATH_PROG(DOXYGEN, doxygen, no)
1117 AC_MSG_CHECKING([whether to build Doxygen documentation])
1119 if test x$DOXYGEN = xno ; then
1125 if test x$enable_doxygen_docs = xauto ; then
1126 if test x$have_doxygen = xno ; then
1127 enable_doxygen_docs=no
1129 enable_doxygen_docs=yes
1133 if test x$enable_doxygen_docs = xyes; then
1134 if test x$have_doxygen = xno; then
1135 AC_MSG_ERROR([Building Doxygen docs explicitly required, but Doxygen not found])
1139 AM_CONDITIONAL(DBUS_DOXYGEN_DOCS_ENABLED, test x$enable_doxygen_docs = xyes)
1142 ### XML Documentation
1144 AC_PATH_PROG(XMLTO, xmlto, no)
1146 AC_MSG_CHECKING([whether to build XML documentation])
1148 if test x$XMLTO = xno ; then
1154 if test x$enable_xml_docs = xauto ; then
1155 if test x$have_xmlto = xno ; then
1162 if test x$enable_xml_docs = xyes; then
1163 if test x$have_xmlto = xno; then
1164 AC_MSG_ERROR([Building XML docs explicitly required, but xmlto not found])
1168 AM_CONDITIONAL(DBUS_XML_DOCS_ENABLED, test x$enable_xml_docs = xyes)
1171 #### Have to go $localstatedir->$prefix/var->/usr/local/var
1172 #### someone please fix this a better way...
1174 #### find the actual value for $prefix that we'll end up with
1175 ## (I know this is broken and should be done in the Makefile, but
1176 ## that's a major pain and almost nobody actually seems to care)
1178 if test "x$prefix" = "xNONE"; then
1179 REAL_PREFIX=$ac_default_prefix
1184 ## temporarily change prefix and exec_prefix
1188 if test "x$exec_prefix" = xNONE ; then
1189 REAL_EXEC_PREFIX=$REAL_PREFIX
1191 REAL_EXEC_PREFIX=$exec_prefix
1193 old_exec_prefix=$exec_prefix
1194 exec_prefix=$REAL_EXEC_PREFIX
1197 LOCALSTATEDIR_TMP="$localstatedir"
1198 EXPANDED_LOCALSTATEDIR=`eval echo $LOCALSTATEDIR_TMP`
1199 AC_SUBST(EXPANDED_LOCALSTATEDIR)
1201 SYSCONFDIR_TMP="$sysconfdir"
1202 EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP`
1203 AC_SUBST(EXPANDED_SYSCONFDIR)
1205 BINDIR_TMP="$bindir"
1206 EXPANDED_BINDIR=`eval echo $BINDIR_TMP`
1207 AC_SUBST(EXPANDED_BINDIR)
1209 LIBDIR_TMP="$libdir"
1210 EXPANDED_LIBDIR=`eval echo $LIBDIR_TMP`
1211 AC_SUBST(EXPANDED_LIBDIR)
1213 DATADIR_TMP="$datadir"
1214 EXPANDED_DATADIR=`eval echo $DATADIR_TMP`
1215 AC_SUBST(EXPANDED_DATADIR)
1217 ## put prefix and exec_prefix back
1219 exec_prefix=$old_exec_prefix
1221 #### Check our operating system
1222 operating_system=unknown
1223 if test -f /etc/redhat-release || test -f $EXPANDED_SYSCONFDIR/redhat-release ; then
1224 operating_system=redhat
1227 if test -f /etc/slackware-version || test -f $EXPANDED_SYSCONFDIR/slackware-version ; then
1228 operating_system=slackware
1231 #### Sort out init scripts
1233 if test x$with_init_scripts = x; then
1234 if test xredhat = x$operating_system ; then
1235 with_init_scripts=redhat
1237 if test xslackware = x$operating_system ; then
1238 with_init_scripts=slackware
1240 with_init_scripts=none
1245 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_RED_HAT, test x$with_init_scripts = xredhat)
1247 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_SLACKWARE, test x$with_init_scripts = xslackware)
1249 ##### Set up location for system bus socket
1250 if ! test -z "$with_system_socket"; then
1251 DBUS_SYSTEM_SOCKET=$with_system_socket
1253 DBUS_SYSTEM_SOCKET=${EXPANDED_LOCALSTATEDIR}/run/dbus/system_bus_socket
1256 AC_SUBST(DBUS_SYSTEM_SOCKET)
1257 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_SOCKET,"$DBUS_SYSTEM_SOCKET",[The name of the socket the system bus listens on by default])
1259 ## system bus only listens on local domain sockets, and never
1260 ## on an abstract socket (so only root can create the socket)
1261 DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$DBUS_SYSTEM_SOCKET"
1262 AC_SUBST(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)
1263 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS, "$DBUS_SYSTEM_BUS_DEFAULT_ADDRESS",[The default D-BUS address of the system bus])
1265 #### Set up the pid file
1266 if ! test -z "$with_system_pid_file"; then
1267 DBUS_SYSTEM_PID_FILE=$with_system_pid_file
1268 elif test x$operating_system = xredhat ; then
1269 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/messagebus.pid
1271 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/dbus/pid
1274 AC_SUBST(DBUS_SYSTEM_PID_FILE)
1276 #### Directory to check for console ownership
1277 if ! test -z "$with_console_auth_dir"; then
1278 DBUS_CONSOLE_AUTH_DIR=$with_console_auth_dir
1280 DBUS_CONSOLE_AUTH_DIR=/var/run/console/
1283 AC_SUBST(DBUS_CONSOLE_AUTH_DIR)
1284 AC_DEFINE_UNQUOTED(DBUS_CONSOLE_AUTH_DIR, "$DBUS_CONSOLE_AUTH_DIR", [Directory to check for console ownerhip])
1286 #### User to start the system bus as
1287 if test -z "$with_dbus_user" ; then
1288 DBUS_USER=messagebus
1290 DBUS_USER=$with_dbus_user
1293 AC_DEFINE_UNQUOTED(DBUS_USER,"$DBUS_USER", [User for running the system BUS daemon])
1295 #### Tell tests where to find certain stuff in builddir
1296 ABSOLUTE_TOP_BUILDDIR=`cd ${ac_top_builddir}. && pwd`
1298 AC_DEFUN([TEST_PATH], [
1299 TEST_$1=${ABSOLUTE_TOP_BUILDDIR}/test/$2
1300 AC_DEFINE_UNQUOTED(TEST_$1, "$TEST_$1",
1301 [Full path to test file test/$2 in builddir])
1305 TEST_PATH(SERVICE_DIR, data/valid-service-files)
1306 TEST_PATH(SERVICE_BINARY, test-service)
1307 TEST_PATH(SHELL_SERVICE_BINARY, test-shell-service)
1308 TEST_PATH(GLIB_SERVICE_BINARY, glib/test-service-glib)
1309 TEST_PATH(PYTHON_SERVICE_BINARY, python/test-service.py)
1310 TEST_PATH(EXIT_BINARY, test-exit)
1311 TEST_PATH(SEGFAULT_BINARY, test-segfault)
1312 TEST_PATH(SLEEP_FOREVER_BINARY, test-sleep-forever)
1313 AC_SUBST(ABSOLUTE_TOP_BUILDDIR)
1315 #### Find socket directories
1316 if ! test -z "$TMPDIR" ; then
1317 DEFAULT_SOCKET_DIR=$TMPDIR
1318 elif ! test -z "$TEMP" ; then
1319 DEFAULT_SOCKET_DIR=$TEMP
1320 elif ! test -z "$TMP" ; then
1321 DEFAULT_SOCKET_DIR=$TMP
1323 DEFAULT_SOCKET_DIR=/tmp
1326 if ! test -z "$with_test_socket_dir" ; then
1327 TEST_SOCKET_DIR="$with_test_socket_dir"
1329 TEST_SOCKET_DIR=$DEFAULT_SOCKET_DIR
1331 AC_SUBST(TEST_SOCKET_DIR)
1332 AC_DEFINE_UNQUOTED(DBUS_TEST_SOCKET_DIR, "$TEST_SOCKET_DIR", [Where to put test sockets])
1334 if ! test -z "$with_session_socket_dir" ; then
1335 DBUS_SESSION_SOCKET_DIR="$with_session_socket_dir"
1337 DBUS_SESSION_SOCKET_DIR=$DEFAULT_SOCKET_DIR
1339 AC_DEFINE_UNQUOTED(DBUS_SESSION_SOCKET_DIR, "$DBUS_SESSION_SOCKET_DIR", [Where per-session bus puts its sockets])
1340 AC_SUBST(DBUS_SESSION_SOCKET_DIR)
1342 # Detect if we can build Python bindings (need python, python headers, and pyrex)
1343 if test x$enable_python = xno; then
1346 have_python_version=2.4
1347 AC_MSG_NOTICE([Checking to see if we can build Python bindings])
1351 if test -z "$PYTHON" ; then
1352 AC_MSG_WARN([Python not found])
1354 AC_MSG_CHECKING([whether $PYTHON version >= $have_python_version])
1355 AM_PYTHON_CHECK_VERSION([$PYTHON], [$have_python_version],
1356 [have_python_version="yes"],
1357 [have_python_version="too old"])
1359 AC_MSG_RESULT($have_python_version)
1361 AC_CHECK_PROGS(PYREX, pyrexc)
1363 if test -z "$PYREX" ; then
1369 AM_CHECK_PYTHON_HEADERS(have_python_headers=yes,have_python_headers=no)
1371 if test x$have_pyrex = xyes -a x$have_python_headers = xyes -a "x$have_python_version" = xyes ; then
1376 if test x$have_python = xno ; then
1377 if test x$enable_python = xyes ; then
1378 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])
1380 AC_MSG_WARN([Couldn't find either Pyrex, the Python headers or a suitable version of Python, not building Python bindings])
1385 AM_CONDITIONAL(HAVE_PYTHON, test x$have_python = xyes)
1389 dbus/dbus-arch-deps.h
1398 glib/examples/Makefile
1399 glib/examples/statemachine/Makefile
1401 python/examples/Makefile
1403 qt/examples/Makefile
1407 gcj/org/freedesktop/Makefile
1408 gcj/org/freedesktop/dbus/Makefile
1410 mono/AssemblyInfo.cs
1411 mono/dbus-sharp.dll.config
1412 mono/example/Makefile
1418 test/python/Makefile
1420 test/name-test/Makefile
1426 test/data/valid-config-files/debug-allow-all.conf
1427 test/data/valid-config-files/debug-allow-all-sha1.conf
1428 test/data/valid-service-files/debug-echo.service
1429 test/data/valid-service-files/debug-segfault.service
1430 test/data/valid-service-files/debug-glib.service
1431 test/data/valid-service-files/debug-shell-echo-success.service
1432 test/data/valid-service-files/debug-shell-echo-fail.service
1433 test/data/valid-service-files/debug-python.service
1436 ### FIXME it's bizarre that have_qt and have_glib are used
1437 ### instead of enable_ - should fix things so that enable
1438 ### is always whether it's enabled, and have is always whether
1441 dnl ==========================================================================
1447 exec_prefix: ${exec_prefix}
1448 libdir: ${EXPANDED_LIBDIR}
1449 bindir: ${EXPANDED_BINDIR}
1450 sysconfdir: ${EXPANDED_SYSCONFDIR}
1451 localstatedir: ${EXPANDED_LOCALSTATEDIR}
1452 datadir: ${EXPANDED_DATADIR}
1453 source code location: ${srcdir}
1456 cppflags: ${CPPFLAGS}
1457 cxxflags: ${CXXFLAGS}
1458 64-bit int: ${DBUS_INT64_TYPE}
1459 32-bit int: ${DBUS_INT32_TYPE}
1460 16-bit int: ${DBUS_INT16_TYPE}
1464 if test x$enable_gcj = xyes ; then
1467 gcjflags: ${GCJFLAGS}
1471 " gcj: (not enabled)"
1474 if test x$enable_mono = xyes ; then
1480 " csc: (not enabled)
1485 Maintainer mode: ${USE_MAINTAINER_MODE}
1486 gcc coverage profiling: ${enable_gcov}
1487 Building unit tests: ${enable_tests}
1488 Building verbose mode: ${enable_verbose_mode}
1489 Building assertions: ${enable_asserts}
1490 Building checks: ${enable_checks}
1491 Building Qt4 bindings: ${have_qt}
1492 Building Qt3 bindings: ${have_qt3}
1493 Building GLib bindings: ${have_glib}
1494 Building Python bindings: ${have_python}
1495 Building SELinux support: ${have_selinux}
1496 Building dnotify support: ${have_dnotify}
1497 Building Mono bindings: ${enable_mono}
1498 Building Mono docs: ${enable_mono_docs}
1499 Building GTK+ tools: ${have_gtk}
1500 Building X11 code: ${enable_x11}
1501 Building Doxygen docs: ${enable_doxygen_docs}
1502 Building XML docs: ${enable_xml_docs}
1503 Gettext libs (empty OK): ${INTLLIBS}
1504 Using XML parser: ${with_xml}
1505 Init scripts style: ${with_init_scripts}
1506 Abstract socket names: ${have_abstract_sockets}
1507 System bus socket: ${DBUS_SYSTEM_SOCKET}
1508 System bus address: ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
1509 System bus PID file: ${DBUS_SYSTEM_PID_FILE}
1510 Session bus socket dir: ${DBUS_SESSION_SOCKET_DIR}
1511 Console auth dir: ${DBUS_CONSOLE_AUTH_DIR}
1512 System bus user: ${DBUS_USER}
1513 Session bus services dir: ${EXPANDED_DATADIR}/dbus-1/services
1514 'make check' socket dir: ${TEST_SOCKET_DIR}
1517 if test x$enable_tests = xyes; then
1518 echo "NOTE: building with unit tests increases the size of the installed library and renders it insecure."
1520 if test x$enable_tests = xyes -a x$enable_asserts = xno; then
1521 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)"
1523 if test x$enable_gcov = xyes; then
1524 echo "NOTE: building with coverage profiling is definitely for developers only."
1526 if test x$enable_verbose_mode = xyes; then
1527 echo "NOTE: building with verbose mode increases library size, may slightly increase security risk, and decreases performance."
1529 if test x$enable_asserts = xyes; then
1530 echo "NOTE: building with assertions increases library size and decreases performance."
1532 if test x$enable_checks = xno; then
1533 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."