From dac0f3f53c97dd84ccdf7c6bd8a8a5cef898a271 Mon Sep 17 00:00:00 2001 From: nandika Date: Wed, 1 Aug 2012 15:12:23 +0000 Subject: 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 --- neethi/configure.ac | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'neethi') diff --git a/neethi/configure.ac b/neethi/configure.ac index f6e1825..4f20d36 100644 --- a/neethi/configure.ac +++ b/neethi/configure.ac @@ -46,9 +46,22 @@ AC_CHECK_LIB(dl, dlopen) CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" if test "$GCC" = "yes"; then - CFLAGS="$CFLAGS -ansi -Wall -Werror -Wno-implicit-function-declaration " + CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration " 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 -- cgit v1.1-32-gdbae