summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-04-26 00:10:17 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-04-26 00:10:17 +0000
commit9bcd7f5fcd06191f5e15f8933ffdad99e792f0cf (patch)
tree6b86b58240cb0cd9c5a4c85c8ff182bd8e0d776e /acinclude.m4
parentbc4cb70ddb8fe59d8b097a62029b0f24849163a3 (diff)
Run D-BUS checks only if enabled
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e223c08e..dc885de8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -98,12 +98,14 @@ AC_DEFUN(AC_PATH_DBUS, [
CFLAGS="$CFLAGS -I/usr/lib/dbus-1.0/include"
fi
- AC_CHECK_HEADER(dbus/dbus.h,,
- dbus_enable=no)
+ if test "$dbus_enable" = "yes"; then
+ AC_CHECK_HEADER(dbus/dbus.h,,
+ dbus_enable=no)
- AC_CHECK_LIB(dbus-1, dbus_error_init,
- DBUS_LIBS="$DBUS_LIBS -ldbus-1",
- dbus_enable=no)
+ AC_CHECK_LIB(dbus-1, dbus_error_init,
+ DBUS_LIBS="$DBUS_LIBS -ldbus-1",
+ dbus_enable=no)
+ fi
CFLAGS=$ac_save_CFLAGS
if test -n "$dbus_includes"; then