unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] configure: only install bash completion if supported
@ 2014-02-02 16:47 Jani Nikula
  2014-02-02 17:40 ` Mark Walters
  2014-02-03 20:28 ` David Bremner
  0 siblings, 2 replies; 6+ messages in thread
From: Jani Nikula @ 2014-02-02 16:47 UTC (permalink / raw)
  To: notmuch

Our bash completion depends on bash-completion 1.90 or later. Only
install where available.
---
 configure | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configure b/configure
index 13b6062..66aaedb 100755
--- a/configure
+++ b/configure
@@ -360,6 +360,14 @@ else
     have_valgrind=0
 fi
 
+printf "Checking for bash-completion (>= 1.90)... "
+if pkg-config --atleast-version=1.90 bash-completion; then
+    printf "Yes.\n"
+else
+    printf "No (will not install bash completion).\n"
+    WITH_BASH=0
+fi
+
 if [ -z "${EMACSLISPDIR}" ]; then
     if pkg-config --exists emacs; then
 	EMACSLISPDIR=$(pkg-config emacs --variable sitepkglispdir)
-- 
1.8.5.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-03 20:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-02 16:47 [PATCH] configure: only install bash completion if supported Jani Nikula
2014-02-02 17:40 ` Mark Walters
2014-02-02 20:59   ` David Bremner
2014-02-02 21:19     ` Jani Nikula
2014-02-02 23:18       ` David Bremner
2014-02-03 20:28 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).