Fixed gcc version checking. (#2360)

Using the "test" utility instead of "[".
This commit is contained in:
Vitaly Lavrov
2024-04-02 10:58:55 +02:00
committed by GitHub
parent 599cc0f4b8
commit b5e8bc2214
+1 -1
View File
@@ -134,7 +134,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
])
GCC_VERSION=`gcc --version | cut -d ' ' -f 3 | head -1|cut -d '.' -f 1`
if [ "${GCC_VERSION}" -lt "7" ]; then
if test "${GCC_VERSION}" -lt "7" ; then
AC_DEFINE_UNQUOTED(USE_ROARING_V2, "1", [Use CRoaring 2.1.x])
fi