summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-04-03 06:20:54 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-04-03 06:20:54 +0000
commit138996fe1350b28f551edc24ecc6c498d20c64f5 (patch)
treefe9a34e16cb6e57b2abad9fe2c376b4587f8ad7c /acinclude.m4
parentf06f701cd50b80c01081b40e69943adbb405e665 (diff)
Simplify autoconf stuff
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=""