From: Patrik Lundin Date: Thu, 3 Aug 2017 19:13:34 +0000 (+0200) Subject: Replace another "test" with "expr". X-Git-Tag: trac5525_base~7^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F53%2Fhead;p=thirdparty%2Fkea.git Replace another "test" with "expr". Error message seen on OpenBSD: === ./configure[16315]: test: >: unexpected operator/operand === Another instance of this problem was fixed previously: https://github.com/isc-projects/kea/pull/25 --- diff --git a/configure.ac b/configure.ac index 6989c00bb7..562fc1967c 100644 --- a/configure.ac +++ b/configure.ac @@ -223,7 +223,7 @@ fi AC_SUBST(WARNING_GCC_44_STRICT_ALIASING_CFLAG) CPPP="$CPP" # gcc 5 preprocessor requires -P for checking its output -if test "$CXX_DUMP_VERSION" \> "5"; then +if expr "$CXX_DUMP_VERSION" \> "5" > /dev/null; then CPPP="$CPP -P" fi