From 8367a1f67487e34113b969fc0d1946cab1f1b5ef Mon Sep 17 00:00:00 2001 From: "Oleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco)" Date: Wed, 16 Jul 2025 12:28:36 +0000 Subject: [PATCH] Pull request #4818: Handle empty vars in configure script Merge in SNORT/snort3 from ~OSHUMEIK/snort3:fix_configure to master Squashed commit of the following: commit 39afcb145ec708b86767c179ad4e9abe1392b556 Author: Oleksii Shumeiko Date: Wed Jul 16 10:31:32 2025 +0300 build: fix comparison of empty integers Thanks to Hatix Ntsoa. --- configure_cmake.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure_cmake.sh b/configure_cmake.sh index a6a1b4e84..03db301b2 100755 --- a/configure_cmake.sh +++ b/configure_cmake.sh @@ -520,10 +520,10 @@ while [ $# -ne 0 ]; do shift done -if [ "$tcm" -eq 1 -a "$jem" -eq 1 ] ; then +if ((tcm == 1)) ; then if ((jem == 1)) ; then echo "--enable-jemalloc and --enable-tcmalloc are mutually exclusive; enable at most one" exit 2 -fi +fi fi if [ -d $builddir ]; then # If build directory exists, check if it has a CMake cache -- 2.47.2