mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 00:34:39 +08:00
Run D-BUS checks only if enabled
This commit is contained in:
parent
bc4cb70ddb
commit
9bcd7f5fcd
12
acinclude.m4
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user