From 93f7135d5885057d17bd599a5374053f3b1020e6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 9 Aug 2004 07:57:44 +0000 Subject: Define a value for the configuration directory --- acinclude.m4 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index f7691be0..878cf50a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -7,21 +7,29 @@ AC_DEFUN([AC_PREFIX_BLUEZ], [ if (test "${prefix}" = "NONE"); then dnl no prefix and no sysconfdir, so default to /etc - if test "$sysconfdir" = '${prefix}/etc'; then + 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 + if (test "$mandir" = '${prefix}/man'); then AC_SUBST([mandir], ['${prefix}/share/man']) fi prefix="${ac_default_prefix}" fi - if (test "${libdir}" = "\${exec_prefix}/lib"); then + if (test "${libdir}" = '${exec_prefix}/lib'); then libdir="${prefix}/lib" fi + + if (test "$sysconfdir" = '${prefix}/etc'); then + configdir="${prefix}/etc/bluetooth" + else + configdir="${sysconfdir}/bluetooth" + fi + + AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}", [Directory for the configuration files]) ]) AC_DEFUN([AC_PATH_BLUEZ], [ -- cgit