summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 3d90581..f0bc2ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,8 +43,10 @@ AX_CHECK_COMPILE_FLAG([-Wextra], [AX_APPEND_FLAG([-Wextra])])
AC_ARG_ENABLE([gcc-warnings],
[AS_HELP_STRING([--enable-gcc-warnings], [turn on many GCC warnings])],
- [case "${enableval}" in yes|no);; *) AC_MSG_ERROR(
- [bad value ${enableval} for gcc-warnings option]);; esac],
+ [case "${enableval}" in yes|no) gcc_warnings=${enableval};;
+ *) AC_MSG_ERROR(
+ [bad value ${enableval} for gcc-warnings option]);;
+ esac],
[
gcc_warnings=no
gl_GCC_VERSION_IFELSE([4], [6],
@@ -68,8 +70,10 @@ AX_CHECK_COMPILE_FLAG([-fdiagnostics-color=auto],
AC_ARG_ENABLE([address-sanitization],
[AS_HELP_STRING([--enable-address-sanitization],
[turn on AddressSanitizer (if available)])],
- [case "${enableval}" in yes|no);; *) AC_MSG_ERROR(
- [bad value ${enableval} for address-sanitization option]);;
+ [case "${enableval}" in yes|no) address_sanitization=${enableval};;
+ *) AC_MSG_ERROR(
+ [bad value ${enableval} for address-sanitization option]
+ );;
esac],
[
address_sanitization=no