Skip to content

Commit a363f98

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a91b113 commit a363f98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ AS_HELP_STRING([--with-libpcre],[synonym for --with-libpcre1]),
280280
AC_ARG_WITH(libpcre1,
281281
AS_HELP_STRING([--with-libpcre1],[support Perl-compatible regexes via libpcre1 (default is NO)])
282282
AS_HELP_STRING([], [ARG can be also prefix for libpcre library and headers]),
283+
if test -n "$USE_LIBPCRE1"; then
284+
AC_MSG_ERROR([Only supply one of --with-libpcre or its synonym --with-libpcre1!])
285+
fi
286+
283287
if test "$withval" = "no"; then
284288
USE_LIBPCRE1=
285289
elif test "$withval" = "yes"; then

0 commit comments

Comments
 (0)