]> granicus.if.org Git - flex/commitdiff
Fix unportable test(1) operator.
authorThomas Klausner <wiz@NetBSD.org>
Sun, 6 Nov 2016 21:32:43 +0000 (22:32 +0100)
committerThomas Klausner <wiz@NetBSD.org>
Sun, 6 Nov 2016 21:32:43 +0000 (22:32 +0100)
"==" is only supported by bash, "=" is the standard comparison
operator.

configure.ac

index 674c0a096ccf198d91098f02c8a9d92cb524b9f6..75fa9d5b4c18c1a9d30bd82d109d3aea645aee50 100644 (file)
@@ -55,7 +55,7 @@ AC_PROG_INSTALL
 AC_ARG_ENABLE([warnings],
   [AS_HELP_STRING([--enable-warnings],
                   [enable a bunch of compiler warning flags (defaults to GCC warning flags).])],
-  [AS_IF([test "x$GCC" == xyes],
+  [AS_IF([test "x$GCC" = xyes],
     [ : ${WARNINGFLAGS="-Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -Wno-unused-but-set-variable"} ])])
 
 AC_SUBST([WARNINGFLAGS])