diff options
author | Brent Cook <busterb@gmail.com> | 2015-01-06 14:16:51 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2015-01-06 17:47:16 -0600 |
commit | f2d68c7d21f11f3fa08ab821ccd4356fc863ccd4 (patch) | |
tree | d537972f76de22b0437ea817c3a3562f53ca4b79 | |
parent | 0308b63cbf9983a9bcddc2794b1c9fa0d92f18ac (diff) | |
download | portable-f2d68c7d21f11f3fa08ab821ccd4356fc863ccd4.tar.gz portable-f2d68c7d21f11f3fa08ab821ccd4356fc863ccd4.tar.bz2 portable-f2d68c7d21f11f3fa08ab821ccd4356fc863ccd4.zip |
remove bash-style comparisons from tests
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e92b602..2977703 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -84,7 +84,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ | |||
84 | [CLANG=no] | 84 | [CLANG=no] |
85 | ) | 85 | ) |
86 | AC_MSG_RESULT([$CLANG]) | 86 | AC_MSG_RESULT([$CLANG]) |
87 | AS_IF([test "x$CLANG" == "xyes"], [CLANG_FLAGS=-Qunused-arguments]) | 87 | AS_IF([test "x$CLANG" = "xyes"], [CLANG_FLAGS=-Qunused-arguments]) |
88 | 88 | ||
89 | # We want to check for compiler flag support. Prior to clang v5.1, there was no | 89 | # We want to check for compiler flag support. Prior to clang v5.1, there was no |
90 | # way to make clang's "argument unused" warning fatal. So we invoke the | 90 | # way to make clang's "argument unused" warning fatal. So we invoke the |
@@ -134,7 +134,7 @@ AC_DEFUN([CHECK_LDFLAG], [ | |||
134 | [$2]) | 134 | [$2]) |
135 | ]) | 135 | ]) |
136 | 136 | ||
137 | AS_IF([test "x$enable_hardening" == "xyes"], [ | 137 | AS_IF([test "x$enable_hardening" = "xyes"], [ |
138 | # Tell GCC to NOT optimize based on signed arithmetic overflow | 138 | # Tell GCC to NOT optimize based on signed arithmetic overflow |
139 | CHECK_CFLAG([[-fno-strict-overflow]]) | 139 | CHECK_CFLAG([[-fno-strict-overflow]]) |
140 | 140 | ||
@@ -148,7 +148,7 @@ AS_IF([test "x$enable_hardening" == "xyes"], [ | |||
148 | 148 | ||
149 | # Use stack-protector-strong if available; if not, fallback to | 149 | # Use stack-protector-strong if available; if not, fallback to |
150 | # stack-protector-all which is considered to be overkill | 150 | # stack-protector-all which is considered to be overkill |
151 | AS_IF([test "x$enable_hardening" == "xyes" -a "x$HOST_OS" != "xwin"], [ | 151 | AS_IF([test "x$enable_hardening" = "xyes" -a "x$HOST_OS" != "xwin"], [ |
152 | CHECK_CFLAG([[-fstack-protector-strong]], | 152 | CHECK_CFLAG([[-fstack-protector-strong]], |
153 | CHECK_CFLAG([[-fstack-protector-all]], | 153 | CHECK_CFLAG([[-fstack-protector-all]], |
154 | AC_MSG_ERROR([compiler does appear to support stack protection - use --disable-hardening to override]) | 154 | AC_MSG_ERROR([compiler does appear to support stack protection - use --disable-hardening to override]) |