6 AM_INIT_AUTOMAKE(dbus, 0.11)
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])
17 ## must come before we use the $USE_MAINTAINER_MODE variable later
26 AC_ARG_ENABLE(qt, [ --enable-qt enable Qt-friendly client library],enable_qt=$enableval,enable_qt=auto)
27 AC_ARG_ENABLE(glib, [ --enable-glib enable GLib-friendly client library],enable_glib=$enableval,enable_glib=auto)
28 AC_ARG_ENABLE(tests, [ --enable-tests enable unit test code],enable_tests=$enableval,enable_tests=$USE_MAINTAINER_MODE)
29 AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
30 AC_ARG_ENABLE(verbose-mode, [ --enable-verbose-mode support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
31 AC_ARG_ENABLE(asserts, [ --enable-asserts include assertion checks],enable_asserts=$enableval,enable_asserts=$USE_MAINTAINER_MODE)
32 AC_ARG_ENABLE(checks, [ --enable-checks include sanity checks on public API],enable_checks=$enableval,enable_checks=yes)
33 AC_ARG_ENABLE(docs, [ --enable-docs build documentation (requires Doxygen and jade)],enable_docs=$enableval,enable_docs=auto)
34 AC_ARG_ENABLE(gcov, [ --enable-gcov compile with coverage profiling instrumentation (gcc only)],enable_gcov=$enableval,enable_gcov=no)
35 AC_ARG_ENABLE(abstract-sockets, [ --enable-abstract-sockets use abstract socket namespace (linux only)],enable_abstract_sockets=$enableval,enable_abstract_sockets=auto)
38 AC_ARG_WITH(xml, [ --with-xml=[libxml/expat] XML library to use])
39 AC_ARG_WITH(init-scripts, [ --with-init-scripts=[redhat] Style of init scripts to install])
40 AC_ARG_WITH(session-socket-dir, [ --with-session-socket-dir=[dirname] Where to put sockets for the per-login-session message bus])
41 AC_ARG_WITH(test-socket-dir, [ --with-test-socket-dir=[dirname] Where to put sockets for make check])
42 AC_ARG_WITH(system-pid-file, [ --with-system-pid-file=[pidfile] PID file for systemwide daemon])
43 AC_ARG_WITH(system-socket, [ --with-system-socket=[filename] UNIX domain socket for systemwide daemon])
45 dnl DBUS_BUILD_TESTS controls unit tests built in to .c files
46 dnl and also some stuff in the test/ subdir
47 AM_CONDITIONAL(DBUS_BUILD_TESTS, test x$enable_tests = xyes)
48 if test x$enable_tests = xyes; then
49 AC_DEFINE(DBUS_BUILD_TESTS,1,[Build test code])
52 if test x$enable_verbose_mode = xyes; then
53 AC_DEFINE(DBUS_ENABLE_VERBOSE_MODE,1,[Support a verbose mode])
55 if test x$enable_asserts = xno; then
56 AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking])
58 if test x$enable_checks = xno; then
59 AC_DEFINE(DBUS_DISABLE_CHECKS,1,[Disable public API sanity checking])
62 #### gcc warning flags
64 if test "x$GCC" = "xyes"; then
67 *[\ \ ]-Wall[\ \ ]*) ;;
68 *) CFLAGS="$CFLAGS -Wall" ;;
72 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
73 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
77 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
78 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
82 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
83 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
87 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
88 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
92 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
93 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
97 *[\ \ ]-Wcast-align[\ \ ]*) ;;
98 *) CFLAGS="$CFLAGS -Wcast-align" ;;
102 *[\ \ ]-Wsign-compare[\ \ ]*) ;;
103 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
106 if test "x$enable_ansi" = "xyes"; then
108 *[\ \ ]-ansi[\ \ ]*) ;;
109 *) CFLAGS="$CFLAGS -ansi" ;;
113 *[\ \ ]-pedantic[\ \ ]*) ;;
114 *) CFLAGS="$CFLAGS -pedantic" ;;
117 if test x$enable_gcov = xyes; then
119 *[\ \ ]-fprofile-arcs[\ \ ]*) ;;
120 *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
123 *[\ \ ]-ftest-coverage[\ \ ]*) ;;
124 *) CFLAGS="$CFLAGS -ftest-coverage" ;;
127 ## remove optimization
128 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
132 if test x$enable_gcov = xyes; then
133 AC_MSG_ERROR([--enable-gcov can only be used with gcc])
138 # let ourselves use our own unstable API
139 CPPFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE=1 $CPPFLAGS"
140 # compress spaces in flags
141 CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`
142 CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ +/ /g'`
143 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'`
146 if test x$enable_gcov = xyes; then
147 ## so that config.h changes when you toggle gcov support
148 AC_DEFINE_UNQUOTED(DBUS_GCOV_ENABLED, 1, [Defined if gcov is enabled to force a rebuild due to config.h changing])
150 AM_CONDITIONAL(DBUS_GCOV_ENABLED, test x$enable_gcov = xyes)
154 AC_CHECK_SIZEOF(char)
155 AC_CHECK_SIZEOF(short)
156 AC_CHECK_SIZEOF(long)
158 AC_CHECK_SIZEOF(void *)
159 AC_CHECK_SIZEOF(long long)
160 AC_CHECK_SIZEOF(__int64)
162 ### See what our 64 bit type is called
163 AC_MSG_CHECKING([64-bit integer type])
168 dbusint64_constant='(val)'
169 dbusuint64_constant='(val)'
173 dbusint64_constant='(val##L)'
174 dbusuint64_constant='(val##UL)'
176 $ac_cv_sizeof_long_long)
177 dbusint64='long long'
178 dbusint64_constant='(val##LL)'
179 dbusuint64_constant='(val##ULL)'
181 $ac_cv_sizeof___int64)
183 dbusint64_constant='(val##i64)'
184 dbusuint64_constant='(val##ui64)'
188 if test -z "$dbusint64" ; then
189 DBUS_INT64_TYPE="no_int64_type_detected"
192 DBUS_UINT64_CONSTANT=
193 AC_MSG_RESULT([none found])
195 DBUS_INT64_TYPE="$dbusint64"
197 DBUS_INT64_CONSTANT="$dbusint64_constant"
198 DBUS_UINT64_CONSTANT="$dbusuint64_constant"
199 AC_MSG_RESULT($DBUS_INT64_TYPE)
202 AC_SUBST(DBUS_INT64_TYPE)
203 AC_SUBST(DBUS_INT64_CONSTANT)
204 AC_SUBST(DBUS_UINT64_CONSTANT)
205 AC_SUBST(DBUS_HAVE_INT64)
210 #### Atomic integers (checks by Sebastian Wilhelmi for GLib)
211 AC_MSG_CHECKING([whether to use inline assembler routines for atomic integers])
213 if test x"$GCC" = xyes; then
219 AC_MSG_RESULT([i486])
220 AC_DEFINE_UNQUOTED(DBUS_USE_ATOMIC_INT_486, 1, [Use atomic integer implementation for 486])
228 if test x$have_atomic_inc = xyes ; then
229 AC_DEFINE_UNQUOTED(DBUS_HAVE_ATOMIC_INT, 1, [Some atomic integer implementation present])
232 #### Various functions
233 AC_CHECK_LIB(socket,socket)
234 AC_CHECK_LIB(nsl,gethostbyname)
236 AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist)
238 AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
240 AC_CACHE_CHECK([for posix getpwnam_r],
241 ac_cv_func_posix_getpwnam_r,
247 struct passwd pwd, *pwptr = &pwd;
250 error = getpwnam_r ("", &pwd, buffer,
251 sizeof (buffer), &pwptr);
252 return (error < 0 && errno == ENOSYS)
255 [ac_cv_func_posix_getpwnam_r=yes],
256 [ac_cv_func_posix_getpwnam_r=no])])
257 if test "$ac_cv_func_posix_getpwnam_r" = yes; then
258 AC_DEFINE(HAVE_POSIX_GETPWNAM_R,1,
259 [Have POSIX function getpwnam_r])
261 AC_CACHE_CHECK([for nonposix getpwnam_r],
262 ac_cv_func_nonposix_getpwnam_r,
263 [AC_TRY_LINK([#include <pwd.h>],
266 getpwnam_r ("", &pwd, buffer,
268 [ac_cv_func_nonposix_getpwnam_r=yes],
269 [ac_cv_func_nonposix_getpwnam_r=no])])
270 if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then
271 AC_DEFINE(HAVE_NONPOSIX_GETPWNAM_R,1,
272 [Have non-POSIX function getpwnam_r])
276 dnl check for writev header and writev function so we're
277 dnl good to go if HAVE_WRITEV gets defined.
278 AC_CHECK_HEADERS(sys/uio.h, [AC_CHECK_FUNCS(writev)])
280 dnl check for flavours of varargs macros (test from GLib)
281 AC_MSG_CHECKING(for ISO C99 varargs macros in C)
283 int a(int p1, int p2, int p3);
284 #define call_a(...) a(1,__VA_ARGS__)
286 ],dbus_have_iso_c_varargs=yes,dbus_have_iso_c_varargs=no)
287 AC_MSG_RESULT($dbus_have_iso_c_varargs)
289 AC_MSG_CHECKING(for GNUC varargs macros)
291 int a(int p1, int p2, int p3);
292 #define call_a(params...) a(1,params)
294 ],dbus_have_gnuc_varargs=yes,dbus_have_gnuc_varargs=no)
295 AC_MSG_RESULT($dbus_have_gnuc_varargs)
297 dnl Output varargs tests
298 if test x$dbus_have_iso_c_varargs = xyes; then
299 AC_DEFINE(HAVE_ISO_VARARGS,1,[Have ISO C99 varargs macros])
301 if test x$dbus_have_gnuc_varargs = xyes; then
302 AC_DEFINE(HAVE_GNUC_VARARGS,1,[Have GNU-style varargs macros])
305 dnl Check for various credentials.
306 AC_MSG_CHECKING(for struct cmsgcred)
308 #include <sys/types.h>
309 #include <sys/socket.h>
311 struct cmsgcred cred;
314 ],dbus_have_struct_cmsgcred=yes,dbus_have_struct_cmsgcred=no)
315 AC_MSG_RESULT($dbus_have_struct_cmsgcred)
317 if test x$dbus_have_struct_cmsgcred = xyes; then
318 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
322 #### Abstract sockets
324 AC_MSG_CHECKING(abstract socket namespace)
326 AC_RUN_IFELSE([AC_LANG_PROGRAM(
328 #include <sys/types.h>
332 #include <sys/socket.h>
338 struct sockaddr_un addr;
340 listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
344 fprintf (stderr, "socket() failed: %s\n", strerror (errno));
348 memset (&addr, '\0', sizeof (addr));
349 addr.sun_family = AF_UNIX;
350 strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
351 addr.sun_path[0] = '\0'; /* this is what makes it abstract */
353 if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
355 fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
362 [have_abstract_sockets=yes],
363 [have_abstract_sockets=no])
365 AC_MSG_RESULT($have_abstract_sockets)
367 if test x$enable_abstract_sockets = xyes; then
368 if test x$have_abstract_sockets = xno; then
369 AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])
373 if test x$enable_abstract_sockets = xno; then
374 have_abstract_sockets=no;
377 if test x$have_abstract_sockets = xyes ; then
379 DBUS_PATH_OR_ABSTRACT=abstract
382 DBUS_PATH_OR_ABSTRACT=path
385 AC_DEFINE_UNQUOTED(HAVE_ABSTRACT_SOCKETS, $abstract_sockets, [Have abstract socket namespace])
387 # this is used in addresses to prefer abstract, e.g.
388 # unix:path=/foo or unix:abstract=/foo
389 AC_SUBST(DBUS_PATH_OR_ABSTRACT)
391 #### Sort out XML library
394 AC_CHECK_LIB(expat, XML_ParserCreate_MM,
395 [ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ],
398 PKG_CHECK_MODULES(LIBXML, libxml-2.0, have_libxml=true, have_libxml=false)
400 # see what we want to use
401 dbus_use_libxml=false
403 if test x$with_xml = xexpat; then
405 if ! $have_expat ; then
406 AC_MSG_ERROR([Explicitly requested expat but expat not found])
408 elif test x$with_xml = xlibxml; then
410 if ! $have_libxml ; then
411 AC_MSG_ERROR([Explicitly requested libxml but libxml not found])
414 ### expat is the default because libxml can't currently survive
415 ### our brutal OOM-handling unit test setup.
416 ### http://bugzilla.gnome.org/show_bug.cgi?id=109368
417 if $have_expat ; then
420 elif $have_libxml ; then
424 AC_MSG_ERROR([No XML library found, check config.log for failed attempts])
428 AM_CONDITIONAL(DBUS_USE_EXPAT, $dbus_use_expat)
429 AM_CONDITIONAL(DBUS_USE_LIBXML, $dbus_use_libxml)
431 if $dbus_use_expat; then
435 if $dbus_use_libxml; then
436 XML_LIBS=$LIBXML_LIBS
437 XML_CFLAGS=$LIBXML_CFLAGS
440 #### Set up final flags
443 AC_SUBST(DBUS_CLIENT_CFLAGS)
444 AC_SUBST(DBUS_CLIENT_LIBS)
446 DBUS_BUS_CFLAGS=$XML_CFLAGS
447 DBUS_BUS_LIBS=$XML_LIBS
448 AC_SUBST(DBUS_BUS_CFLAGS)
449 AC_SUBST(DBUS_BUS_LIBS)
453 AC_SUBST(DBUS_TEST_CFLAGS)
454 AC_SUBST(DBUS_TEST_LIBS)
457 PKG_CHECK_MODULES(DBUS_GLIB, glib-2.0, have_glib=yes, have_glib=no)
458 PKG_CHECK_MODULES(DBUS_GLIB_THREADS, glib-2.0 gthread-2.0, have_glib_threads=yes, have_glib_threads=no)
460 if test x$have_glib = xno ; then
461 AC_MSG_WARN([GLib development libraries not found])
464 if test x$enable_glib = xyes; then
465 if test x$have_glib = xno; then
466 AC_MSG_ERROR([GLib explicitly required, and GLib development libraries not found])
470 if test x$enable_glib = xno; then
474 AM_CONDITIONAL(HAVE_GLIB, test x$have_glib = xyes)
475 AM_CONDITIONAL(HAVE_GLIB_THREADS, test x$have_glib_threads = xyes)
478 AC_SUBST(DBUS_GLIB_CFLAGS)
479 AC_SUBST(DBUS_GLIB_LIBS)
480 AC_SUBST(DBUS_GLIB_THREADS_LIBS)
484 AC_MSG_CHECKING([for qglobal.h])
485 if test -n "$QTDIR" -a -f "$QTDIR/include/qglobal.h"; then
487 DBUS_QT_CXXFLAGS="-I$QTDIR/include"
489 for dir in "${prefix}/include/qt" "/usr/include/qt-3.1" "/usr/include/qt3" "/usr/include/qt" "/usr/lib/qt/include"; do
490 if test -f "$dir/qglobal.h"; then
492 DBUS_QT_CXXFLAGS="-I$dir"
496 if test x"$have_qt" = x"yes"; then
497 AC_MSG_RESULT([found])
499 AC_MSG_RESULT([not found])
502 dnl linking to kdecore will give us a bit of help from libtool
503 if (! kde-config >& /dev/null); then
506 kdelibs=`kde-config --install lib --expandvars 2>/dev/null`
507 if test -z $kdelibs -o ! -f $kdelibs/libkdecore.la; then
510 DBUS_QT_LIBS="$kdelibs/libkdecore.la"
514 if test x$have_qt = xno ; then
515 AC_MSG_WARN([Qt development libraries not found])
518 if test x$enable_qt = xyes; then
519 if test x$have_qt = xno; then
520 AC_MSG_ERROR([Qt integration explicitly required, and Qt libraries not found])
524 if test x$enable_qt = xno; then
528 AM_CONDITIONAL(HAVE_QT, test x$have_qt = xyes)
531 AC_SUBST(DBUS_QT_CXXFLAGS)
532 AC_SUBST(DBUS_QT_LIBS)
537 ## for now enable_x11 just tracks have_x11,
538 ## there's no --enable-x11
539 if test x$no_x = xyes ; then
547 if test x$enable_x11 = xyes ; then
548 AC_DEFINE(DBUS_BUILD_X11,1,[Build X11-dependent code])
549 DBUS_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
550 DBUS_X_CFLAGS="$X_CFLAGS"
556 AC_SUBST(DBUS_X_CFLAGS)
557 AC_SUBST(DBUS_X_LIBS)
561 AC_PATH_PROG(DOXYGEN, doxygen, no)
562 AC_PATH_PROG(DB2HTML, db2html, no)
564 AC_MSG_CHECKING([whether to build documentation])
566 if test x$DOXYGEN = xno -o x$DB2HTML = xno ; then
572 if test x$enable_docs = xauto ; then
573 if test x$have_docs_tools = xno ; then
580 if test x$enable_docs = xyes; then
581 if test x$have_docs_tools = xno; then
582 AC_MSG_ERROR([Building docs explicitly required, but Doxygen or db2html not found])
586 AM_CONDITIONAL(DBUS_DOCS_ENABLED, test x$enable_docs = xyes)
589 #### find the actual value for $prefix that we'll end up with
590 ## (I know this is broken and should be done in the Makefile, but
591 ## that's a major pain and almost nobody actually seems to care)
593 if test "x$prefix" = "xNONE"; then
594 REAL_PREFIX=$ac_default_prefix
599 #### Have to go $localstatedir->$prefix/var->/usr/local/var
600 #### someone please fix this a better way...
601 LOCALSTATEDIR_TMP="$localstatedir"
604 EXPANDED_LOCALSTATEDIR=`eval echo $LOCALSTATEDIR_TMP`
606 AC_SUBST(EXPANDED_LOCALSTATEDIR)
608 SYSCONFDIR_TMP="$sysconfdir"
611 EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP`
613 AC_SUBST(EXPANDED_SYSCONFDIR)
618 EXPANDED_BINDIR=`eval echo $BINDIR_TMP`
620 AC_SUBST(EXPANDED_BINDIR)
622 old_exec_prefix=${exec_prefix}
623 test "x$exec_prefix" = xNONE && eval exec_prefix=${prefix}
624 eval EXPANDED_LIBDIR=${libdir}
625 exec_prefix=${old_exec_prefix}
626 AC_SUBST(EXPANDED_LIBDIR)
628 #### Check our operating system
629 operating_system=unknown
630 if test -f /etc/redhat-release || test -f $EXPANDED_SYSCONFDIR/redhat-release ; then
631 operating_system=redhat
634 #### Sort out init scripts
636 if test x$with_init_scripts = x; then
637 if test xredhat = x$operating_system ; then
638 with_init_scripts=redhat
640 with_init_scripts=none
644 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_RED_HAT, test x$with_init_scripts = xredhat)
647 ##### Set up location for system bus socket
648 if ! test -z "$with_system_socket"; then
649 DBUS_SYSTEM_SOCKET=$with_system_socket
651 DBUS_SYSTEM_SOCKET=${EXPANDED_LOCALSTATEDIR}/run/dbus/system_bus_socket
654 AC_SUBST(DBUS_SYSTEM_SOCKET)
656 #### Set up the pid file
657 if ! test -z "$with_system_pid_file"; then
658 DBUS_SYSTEM_PID_FILE=$with_system_pid_file
659 elif test x$operating_system = xredhat ; then
660 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/messagebus.pid
662 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/dbus/pid
665 AC_SUBST(DBUS_SYSTEM_PID_FILE)
667 #### Tell tests where to find certain stuff in builddir
668 ABSOLUTE_TOP_BUILDDIR=`cd ${ac_top_builddir}. && pwd`
670 AC_DEFUN(TEST_PATH, [
671 TEST_$1=${ABSOLUTE_TOP_BUILDDIR}/test/$2
672 AC_DEFINE_UNQUOTED(TEST_$1, "$TEST_$1",
673 [Full path to test file test/$2 in builddir])
677 TEST_PATH(SERVICE_DIR, data/valid-service-files)
678 TEST_PATH(SERVICE_BINARY, test-service)
679 TEST_PATH(EXIT_BINARY, test-exit)
680 TEST_PATH(SEGFAULT_BINARY, test-segfault)
681 TEST_PATH(SLEEP_FOREVER_BINARY, test-sleep-forever)
683 #### Find socket directories
684 if ! test -z "$TMPDIR" ; then
685 DEFAULT_SOCKET_DIR=$TMPDIR
686 elif ! test -z "$TEMP" ; then
687 DEFAULT_SOCKET_DIR=$TEMP
688 elif ! test -z "$TMP" ; then
689 DEFAULT_SOCKET_DIR=$TMP
691 DEFAULT_SOCKET_DIR=/tmp
694 if ! test -z "$with_test_socket_dir" ; then
695 TEST_SOCKET_DIR="$with_test_socket_dir"
697 TEST_SOCKET_DIR=$DEFAULT_SOCKET_DIR
699 AC_SUBST(TEST_SOCKET_DIR)
700 AC_DEFINE_UNQUOTED(DBUS_TEST_SOCKET_DIR, "$TEST_SOCKET_DIR", [Where to put test sockets])
702 if ! test -z "$with_session_socket_dir" ; then
703 DBUS_SESSION_SOCKET_DIR="$with_session_socket_dir"
705 DBUS_SESSION_SOCKET_DIR=$DEFAULT_SOCKET_DIR
707 AC_DEFINE_UNQUOTED(DBUS_SESSION_SOCKET_DIR, "$DBUS_SESSION_SOCKET_DIR", [Where per-session bus puts its sockets])
708 AC_SUBST(DBUS_SESSION_SOCKET_DIR)
714 dbus/dbus-arch-deps.h
729 test/data/valid-config-files/debug-allow-all.conf
730 test/data/valid-config-files/debug-allow-all-sha1.conf
731 test/data/valid-service-files/debug-echo.service
732 test/data/valid-service-files/debug-segfault.service
735 ### FIXME it's bizarre that have_qt and have_glib are used
736 ### instead of enable_ - should fix things so that enable
737 ### is always whether it's enabled, and have is always whether
740 dnl ==========================================================================
746 source code location: ${srcdir}
749 cppflags: ${CPPFLAGS}
750 cxxflags: ${CXXFLAGS}
754 Maintainer mode: ${USE_MAINTAINER_MODE}
755 gcc coverage profiling: ${enable_gcov}
756 Building unit tests: ${enable_tests}
757 Building verbose mode: ${enable_verbose_mode}
758 Building assertions: ${enable_asserts}
759 Building checks: ${enable_checks}
760 Building Qt bindings: ${have_qt}
761 Building GLib bindings: ${have_glib}
762 Building X11 code: ${enable_x11}
763 Building documentation: ${enable_docs}
764 Using XML parser: ${with_xml}
765 Init scripts style: ${with_init_scripts}
766 Abstract socket names: ${have_abstract_sockets}
767 System bus socket: ${DBUS_SYSTEM_SOCKET}
768 System bus PID file: ${DBUS_SYSTEM_PID_FILE}
769 Session bus socket dir: ${DBUS_SESSION_SOCKET_DIR}
770 'make check' socket dir: ${TEST_SOCKET_DIR}
773 if test x$enable_tests = xyes; then
774 echo "NOTE: building with unit tests increases the size of the installed library and renders it insecure."
776 if test x$enable_tests = xyes -a x$enable_asserts = xno; then
777 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)"
779 if test x$enable_gcov = xyes; then
780 echo "NOTE: building with coverage profiling is definitely for developers only."
782 if test x$enable_verbose_mode = xyes; then
783 echo "NOTE: building with verbose mode increases library size, may slightly increase security risk, and decreases performance."
785 if test x$enable_asserts = xyes; then
786 echo "NOTE: building with assertions increases library size and decreases performance."
788 if test x$enable_checks = xno; then
789 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."