diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-23 07:47:57 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-23 07:47:57 +0000 |
commit | 10b8d4ebdd654e3f88cb2e29ea1aec1645648d85 (patch) | |
tree | b0aa5d0898756536b83c170d9c0ecddddbdb86b5 /acinclude.m4 | |
parent | 2123a141b4cc534e63144d8d924d04e88c56b60d (diff) | |
download | bluez-10b8d4ebdd654e3f88cb2e29ea1aec1645648d85.tar.gz |
Check if PKG_CHECK_EXISTS is available
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index d8e731cd4..8be69baf8 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -82,12 +82,17 @@ AC_DEFUN([AC_PATH_GLIB], [ AC_DEFUN([AC_PATH_DBUS], [ PKG_CHECK_MODULES(DBUS, dbus-1 > 0.35, dummy=yes, AC_MSG_ERROR(dbus > 0.35 is required)) - PKG_CHECK_EXISTS(dbus-1 < 0.95, DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE") - if (test "${glib_found}" = "yes"); then - PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 > 0.60, dbus_glib_found=yes, dbus_glib_found=no) - else + m4_ifdef([PKG_CHECK_EXISTS], [ + PKG_CHECK_EXISTS(dbus-1 < 0.95, DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE") + if (test "${glib_found}" = "yes"); then + PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 > 0.60, dbus_glib_found=yes, dbus_glib_found=no) + else + dbus_glib_found=no + fi + ], [ + DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE" dbus_glib_found=no - fi + ]) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) ]) |