diff options
author | nandika | 2012-08-01 15:12:23 +0000 |
---|---|---|
committer | nandika | 2012-08-01 15:12:23 +0000 |
commit | dac0f3f53c97dd84ccdf7c6bd8a8a5cef898a271 (patch) | |
tree | dfe5b026575a779ab0833343f415caae2b29201f /util | |
parent | d4040914ad947dee648c611663560f2f0f3a2dfa (diff) | |
download | axis2c-dac0f3f53c97dd84ccdf7c6bd8a8a5cef898a271.tar.gz axis2c-dac0f3f53c97dd84ccdf7c6bd8a8a5cef898a271.tar.bz2 |
patch applied for AXIS2C-1603
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1368044 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util')
-rw-r--r-- | util/configure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/util/configure.ac b/util/configure.ac index 8789d03..1e7169e 100644 --- a/util/configure.ac +++ b/util/configure.ac @@ -68,9 +68,22 @@ AC_CHECK_LIB(compat, ftime) CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" if test "$GCC" = "yes"; then - CFLAGS="$CFLAGS -ansi -Wall -Werror -Wno-implicit-function-declaration -D_GNU_SOURCE" + CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration -D_GNU_SOURCE" fi +AC_MSG_CHECKING(whether to set -Werror) +AC_ARG_ENABLE(werror, [ --disable-werror do not treat warnings as errors during build], +[ case "${enableval}" in + no) + AC_MSG_RESULT(no) + ;; + *) + AC_MSG_RESULT(yes) + CFLAGS="$CFLAGS -Werror" + ;; + esac ], +) + dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdio.h stdlib.h string.h]) |