Skip to content

Commit

Permalink
use AS_HELP_STRING for formatting, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
vlm committed Apr 10, 2015
1 parent a72740e commit 271131c
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 271131c

Please sign in to comment.