diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-09-12 13:57:17 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-09-12 13:57:17 +0000 |
| commit | 61f2ccf37ada78617d0e5a5a69d4a7f7cd5b5657 (patch) | |
| tree | d1067f2a8ee14eeb46e75da9886a903dad6d6e2e | |
| parent | 09daafe00fc3a9fc3240886e17eca01b0ed0f3e3 (diff) | |
* Add setting of AM_CFLAGS when --enable-debugging is used
* Export the AM_CFLAGS variable
* Create a conditionnal for automake named DEBUGGING
* Show CFLAGS in resume of configuration option
| -rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 932c7761..a089eb79 100644 --- a/configure.ac +++ b/configure.ac @@ -838,10 +838,14 @@ AC_ARG_ENABLE(debugging, [ --enable-debugging enable debuging messages ( if test "z$enable_debugging" = "zyes" ; then enable_debugging=yes LASSO_DEFINES="$LASSO_DEFINES -DLASSO_DEBUG" + AM_CFLAGS="$AM_CFLAGS -O0 -g -Wall -Wextra -Werror -Wno-missing-field-initializers" else enable_debugging=no fi +AM_CONDITIONAL([DEBUGGING],[test "x$enable_debugging" = "xyes"]) AC_MSG_RESULT($enable_debugging) +AC_SUBST(DEBUGGING) +AC_SUBST(AM_CFLAGS) dnl Profiling AC_MSG_CHECKING(for profiling) @@ -984,6 +988,7 @@ Main ---- Compiler: ${CC} +CFLAGS: ${CFLAGS} Install prefix: ${prefix} Debugging: $enable_debugging Experimental ID-WSF: $enable_wsf |
