shithub: choc

Download patch

ref: 2efd8ce2217cfbb81b9b5532228febfe32800392
parent: 0b0cae7206334b14b68d6c22686efd6e21e9815e
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed Nov 4 03:16:55 EST 2015

autoconf: Re-direct error messages if pkg-config cannot be found

Else it will print something like

./configure: line 4426: --exists: command not found

which isn't really helpful, either.

--- a/configure.ac
+++ b/configure.ac
@@ -121,7 +121,7 @@
 AC_ARG_WITH([bashcompletiondir],
     AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completion directory]),
     [],
-    [AS_IF([$($PKG_CONFIG --exists bash-completion)],
+    [AS_IF([$($PKG_CONFIG --exists bash-completion 2> /dev/null)],
         [bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)],
 	[bashcompletiondir=${datadir}/bash-completion/completions])])