diff options
author | Lev Walkin <vlm@lionet.info> | 2015-04-10 00:09:57 -0700 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2015-04-10 00:09:57 -0700 |
commit | 271131c9d7bf2371ae5b4cf0e6c6c95fb40c46e7 (patch) | |
tree | 8c5605164e4c1c7858bcd72cd9f3d06fe55ed303 | |
parent | a72740e1d00f8100358522b2dca42a956b129443 (diff) |
use AS_HELP_STRING for formatting, etc
-rw-r--r-- | configure.ac | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index ca408758..cdfe49ae 100644 --- a/configure.ac +++ b/configure.ac @@ -32,19 +32,21 @@ cygwin) esac AC_ARG_ENABLE(Werror, - [ --enable-Werror abort compilation after any C compiler warning], - enable_werror=$enableval, enable_werror=no) -if test x$enable_werror = xyes; then - TESTSUITE_CFLAGS="-Werror -W -Wpointer-arith" - ADD_CFLAGS="-Werror -W -Wpointer-arith" -fi + [AS_HELP_STRING([--enable-Werror], + [abort compilation after any C compiler warning])], + [enable_werror=$enableval], [enable_werror=no]) + AS_IF([test x$enable_werror != xno], [ + TESTSUITE_CFLAGS="-Werror -W -Wpointer-arith" + ADD_CFLAGS="-Werror -W -Wpointer-arith" + ]) AC_ARG_ENABLE([ASN_DEBUG], - [ --enable-ASN_DEBUG produce debug log during `make check` testing], - enable_asn_debug=$enableval, enable_asn_debug=no) -if test x$enable_asn_debug = xyes; then - TESTSUITE_CFLAGS="-DEMIT_ASN_DEBUG" -fi + [AS_HELP_STRING([--enable-ASN_DEBUG], + [produce debug log during `make check` testing])], + [enable_asn_debug=$enableval], [enable_asn_debug=no]) + AS_IF([test x$enable_asn_debug != xno], [ + TESTSUITE_CFLAGS="-DEMIT_ASN_DEBUG" + ]) AX_CHECK_COMPILE_FLAG([-Wall], [CFLAGS="$CFLAGS -Wall"]) AX_CHECK_COMPILE_FLAG([-Wcast-qual], [CFLAGS="$CFLAGS -Wcast-qual"]) |