summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-05 13:05:02 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-05 13:05:02 (EST)
commitf4a78369c1d7244ff7ba7e10059e8542a030e25d (patch)
tree154dda2b6d70335f42ca20d632cca528888656d5
parent83fa421255d4f3a87a2892d8363eba916920a557 (diff)
downloadmarquee-f4a78369c1d7244ff7ba7e10059e8542a030e25d.zip
marquee-f4a78369c1d7244ff7ba7e10059e8542a030e25d.tar.gz
marquee-f4a78369c1d7244ff7ba7e10059e8542a030e25d.tar.bz2
configure.ac: Fix handling of passed enable arguments
-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