summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2018-03-11 13:26:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-14 22:27:47 (GMT)
commita363f981ecf738979287882787b7323b9c7c6bfe (patch)
tree1abd34ea6cd9a387fa6c962fc0fbb7a22bb459ea
parenta91b113320cbf6abeeb3cc8f39467d00d5516af8 (diff)
downloadgit-a363f981ecf738979287882787b7323b9c7c6bfe.zip
git-a363f981ecf738979287882787b7323b9c7c6bfe.tar.gz
git-a363f981ecf738979287882787b7323b9c7c6bfe.tar.bz2
configure: detect redundant --with-libpcre & --with-libpcre1
The --with-libpcre option is a synonym for the --with-libpcre1 flag, but the configure script allowed for redundantly specifying both. Nothing broke as a result of this, but it's confusing, so let's disallow it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 41ceb2a..d1b3b14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -280,6 +280,10 @@ AS_HELP_STRING([--with-libpcre],[synonym for --with-libpcre1]),
AC_ARG_WITH(libpcre1,
AS_HELP_STRING([--with-libpcre1],[support Perl-compatible regexes via libpcre1 (default is NO)])
AS_HELP_STRING([], [ARG can be also prefix for libpcre library and headers]),
+ if test -n "$USE_LIBPCRE1"; then
+ AC_MSG_ERROR([Only supply one of --with-libpcre or its synonym --with-libpcre1!])
+ fi
+
if test "$withval" = "no"; then
USE_LIBPCRE1=
elif test "$withval" = "yes"; then