Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
configure: detect redundant --with-libpcre & --with-libpcre1
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Sun, 11 Mar 2018 13:26:08 +0000
(13:26 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Mar 2018 22:27:47 +0000
(15:27 -0700)
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>
configure.ac
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a91b113
)
diff --git
a/configure.ac
b/configure.ac
index 41ceb2ac81ee530d3b0a9ddac8f1ab1d5b4faf11..d1b3b143c4c379df7f13c48bc23625e9b4e47c32 100644
(file)
--- 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