diff options
author | Michael Biebl <biebl@debian.org> | 2013-03-03 21:32:49 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2013-03-04 00:10:38 +0100 |
commit | db059f1b031a92ed45b62d1036877abd9c128d1b (patch) | |
tree | 23155ef73ec6c147084d4c9f041ff1fc3fdd1615 /configure.ac | |
parent | 6b7620431fb59c3a670580851502a2756a0cf8e9 (diff) |
build-sys: don't hard code bash-completion directory
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3f0fe01abe..c4503bfcb2 100644 --- a/configure.ac +++ b/configure.ac @@ -813,6 +813,15 @@ AC_ARG_WITH([dbusinterfacedir], [], [with_dbusinterfacedir=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`/../interfaces]) +AC_ARG_WITH([bashcompletiondir], + AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]), + [], + [AS_IF([`$PKG_CONFIG --exists bash-completion`], [ + with_bashcompletiondir=`$PKG_CONFIG --variable=completionsdir bash-completion` + ] , [ + with_bashcompletiondir=${datadir}/bash-completion/completions + ])]) + AC_ARG_WITH([rootprefix], AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]), [], [with_rootprefix=${ac_default_prefix}]) @@ -851,6 +860,7 @@ AC_SUBST([dbuspolicydir], [$with_dbuspolicydir]) AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir]) AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir]) AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir]) +AC_SUBST([bashcompletiondir], [$with_bashcompletiondir]) AC_SUBST([pamlibdir], [$with_pamlibdir]) AC_SUBST([rootprefix], [$with_rootprefix]) AC_SUBST([rootlibdir], [$with_rootlibdir]) @@ -924,6 +934,7 @@ AC_MSG_RESULT([ D-Bus session dir: ${with_dbussessionservicedir} D-Bus system dir: ${with_dbussystemservicedir} D-Bus interfaces dir: ${with_dbusinterfacedir} + Bash completions dir: ${with_bashcompletiondir} Extra start script: ${RC_LOCAL_SCRIPT_PATH_START} Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP} |