Skip to content

Commit 4b9edad

Browse files
committed
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>
1 parent 916bded commit 4b9edad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/find_pcre2.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ AS_CASE(["${with_pcre2}"],
2525
[yes], [test_paths="/usr/local/libpcre2 /usr/local/pcre2 /usr/local /opt/libpcre2 /opt/pcre2 /opt /usr"],
2626
[test_paths="${with_pcre2}"])
2727
28-
if test "x${with_pcre2}" == "x" || test "x${with_pcre2}" == "xno"; then
28+
if test "x${with_pcre2}" = "x" || test "x${with_pcre2}" = "xno"; then
2929
AC_MSG_NOTICE([pcre2 not specified; omitting check])
3030
else
3131

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ AC_ARG_ENABLE(large-stream-input,
696696
AS_HELP_STRING([--enable-large-stream-input],
697697
[Enable optimization for large stream input]),
698698
[
699-
if test "$enableval" == "yes"; then
699+
if test "$enableval" = "yes"; then
700700
large_stream_input="-DMSC_LARGE_STREAM_INPUT"
701701
MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $large_stream_input"
702702
else

0 commit comments

Comments
 (0)