diff options
author | Christian Kellner <gicmo@src.gnome.org> | 2008-05-20 10:03:41 +0000 |
---|---|---|
committer | Christian Kellner <gicmo@src.gnome.org> | 2008-05-20 10:03:41 +0000 |
commit | 141483915c3daa1a54eaf453599ca4414ceab9a5 (patch) | |
tree | 303f3d691b41d675812fad33b67465b07ee5eee1 /configure.ac | |
parent | 051a19494849d689c2eebed9848487d2b52a6807 (diff) |
Make the bash completion script conditionally (#530772)
* configure.ac:
* programs/Makefile.am:
Allow to disable the installation of the bash completion
scripts. Also make it possible to choose the directory
where the file gets installed. Fixes #530772
svn path=/trunk/; revision=1770
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9ee0d817..8225c837 100644 --- a/configure.ac +++ b/configure.ac @@ -472,6 +472,25 @@ AM_CONDITIONAL(HAVE_ARCHIVE, test "$msg_archive" = "yes") AC_SUBST(ARCHIVE_CFLAGS) AC_SUBST(ARCHIVE_LIBS) +dnl Install bash-completion file? +AC_ARG_ENABLE([bash-completion], + AC_HELP_STRING([--disable-bash-completion], + [build without bash-completion support]), + msg_bash_completion=$enableval, + msg_bash_completion=yes) +if test "x$enable_bash_completion" != "xno"; then + msg_bash_completion=yes +fi +AM_CONDITIONAL(ENABLE_BASHCOMP, test "$msg_bash_completion" = "yes") + +AC_ARG_WITH([bash-completion-dir], + AC_HELP_STRING([--with-bash-completion-dir=PATH], + [choose directory for bash-completion file (default=SYSCONFDIR/profile.d)]), + with_bashcomp_dir=$withval, + with_bashcomp_dir=$sysconfdir/profile.d) +BASHCOMP_DIR=$with_bashcomp_dir +AC_SUBST(BASHCOMP_DIR) + dnl ========================================================================== dnl Globally define_GNU_SOURCE and therefore enable the GNU extensions @@ -555,4 +574,5 @@ echo " DNS-SD support: $msg_avahi Use HAL for volume monitor: $msg_hal (with fast init path: $have_hal_fast_init) GNOME Keyring support: $msg_keyring + Bash-completion support: $msg_bash_completion " |