mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
build: Avoid bashisms
otherwise configure fails to find pcre2 when /bin/sh does not point to bash: configure: using pcre v8.45 ./configure: 16601: test: xno: unexpected operator ./configure: 16601: test: xno: unexpected operator checking for libpcre2 config script... no configure: *** pcre2 library not found. configure: error: pcre2 library is required Signed-off-by: Lars Wendler <polynomial-c@gmx.de>
This commit is contained in:
@@ -25,7 +25,7 @@ AS_CASE(["${with_pcre2}"],
|
||||
[yes], [test_paths="/usr/local/libpcre2 /usr/local/pcre2 /usr/local /opt/libpcre2 /opt/pcre2 /opt /usr"],
|
||||
[test_paths="${with_pcre2}"])
|
||||
|
||||
if test "x${with_pcre2}" == "x" || test "x${with_pcre2}" == "xno"; then
|
||||
if test "x${with_pcre2}" = "x" || test "x${with_pcre2}" = "xno"; then
|
||||
AC_MSG_NOTICE([pcre2 not specified; omitting check])
|
||||
else
|
||||
|
||||
|
Reference in New Issue
Block a user