summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index ea030ae2..67506577 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2,7 +2,28 @@ dnl
dnl $Id$
dnl
+AC_DEFUN(AC_PREFIX_BLUEZ, [
+ AC_PREFIX_DEFAULT(/usr)
+
+ if test "$prefix" = "NONE"; then
+ dnl no prefix and no sysconfdir, so default to /etc
+ if test "$sysconfdir" = '${prefix}/etc'; then
+ AC_SUBST([sysconfdir], ['/etc'])
+ fi
+
+ dnl no prefix and no mandir, so use ${prefix}/share/man as default
+ if test "$mandir" = '${prefix}/man'; then
+ AC_SUBST([mandir], ['${prefix}/share/man'])
+ fi
+ fi
+])
+
AC_DEFUN(AC_PATH_BLUEZ, [
+ AC_ARG_WITH(bluez, [ --with-bluez=DIR BlueZ library is installed in DIR], [
+ bluez_includes=$withval/include
+ bluez_libraries=$withval/lib
+ ])
+
BLUEZ_INCLUDES=""
BLUEZ_LDFLAGS=""
BLUEZ_LIBS=""