3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

configure: introduce dbusconfdir

This commit is contained in:
Tim Kourt 2017-05-04 15:47:40 -07:00 committed by Denis Kenzior
parent fb4ba71952
commit 54cab3bf6c
2 changed files with 15 additions and 1 deletions

View File

@ -9,4 +9,5 @@ fi
--enable-debug \ --enable-debug \
--localstatedir=/var \ --localstatedir=/var \
--prefix=/usr $* \ --prefix=/usr $* \
--sysconfdir=/etc/iwd --sysconfdir=/etc/iwd \
--with-dbusconfdir=/etc

View File

@ -75,6 +75,19 @@ AC_CHECK_HEADERS(linux/types.h linux/if_alg.h)
AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes, AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes,
AC_MSG_ERROR(readline header files are required)) AC_MSG_ERROR(readline header files are required))
AC_ARG_WITH([dbusconfdir], AC_HELP_STRING([--with-dbusconfdir=DIR],
[path to D-Bus configuration directory]),
[path_dbusconfdir=${withval}])
if (test -z "${path_dbusconfdir}"); then
AC_MSG_CHECKING([D-Bus configuration directory])
path_dbusconfdir="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
if (test -z "${path_dbusconfdir}"); then
AC_MSG_ERROR([D-Bus configuration directory is required])
fi
AC_MSG_RESULT([${path_dbusconfdir}])
fi
AC_SUBST(DBUS_CONFDIR, [${path_dbusconfdir}])
AC_PATH_PROG(A2X, [a2x], [], $PATH:/sbin:/usr/sbin) AC_PATH_PROG(A2X, [a2x], [], $PATH:/sbin:/usr/sbin)
AM_CONDITIONAL(BUILD_DOCS, test "$A2X" != "") AM_CONDITIONAL(BUILD_DOCS, test "$A2X" != "")