axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r1368044 - in /axis/axis2/c/core/trunk: axiom/configure.ac configure.ac neethi/configure.ac samples/configure.ac util/configure.ac
Date Wed, 01 Aug 2012 15:12:24 GMT
Author: nandika
Date: Wed Aug  1 15:12:23 2012
New Revision: 1368044

URL: http://svn.apache.org/viewvc?rev=1368044&view=rev
Log:
patch applied for AXIS2C-1603

Modified:
    axis/axis2/c/core/trunk/axiom/configure.ac
    axis/axis2/c/core/trunk/configure.ac
    axis/axis2/c/core/trunk/neethi/configure.ac
    axis/axis2/c/core/trunk/samples/configure.ac
    axis/axis2/c/core/trunk/util/configure.ac

Modified: axis/axis2/c/core/trunk/axiom/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/axiom/configure.ac?rev=1368044&r1=1368043&r2=1368044&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/axiom/configure.ac (original)
+++ axis/axis2/c/core/trunk/axiom/configure.ac Wed Aug  1 15:12:23 2012
@@ -61,9 +61,22 @@ AC_CHECK_LIB(z, inflate)
 
 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
 if test "$GCC" = "yes"; then
-    CFLAGS="$CFLAGS -ansi -Werror -Wall -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

Modified: axis/axis2/c/core/trunk/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/configure.ac?rev=1368044&r1=1368043&r2=1368044&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/configure.ac (original)
+++ axis/axis2/c/core/trunk/configure.ac Wed Aug  1 15:12:23 2012
@@ -76,7 +76,7 @@ fi
 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
 if test "$GCC" = "yes"; then
-    CFLAGS="$CFLAGS -ansi -Wall -Werror -Wno-implicit-function-declaration -g -D_GNU_SOURCE"
+    CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE"
 fi
 
 dnl Checks for header files.

Modified: axis/axis2/c/core/trunk/neethi/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/neethi/configure.ac?rev=1368044&r1=1368043&r2=1368044&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/neethi/configure.ac (original)
+++ axis/axis2/c/core/trunk/neethi/configure.ac Wed Aug  1 15:12:23 2012
@@ -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

Modified: axis/axis2/c/core/trunk/samples/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/samples/configure.ac?rev=1368044&r1=1368043&r2=1368044&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/samples/configure.ac (original)
+++ axis/axis2/c/core/trunk/samples/configure.ac Wed Aug  1 15:12:23 2012
@@ -62,9 +62,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 -g -D_GNU_SOURCE"
+       CFLAGS="$CFLAGS -ansi -Werror -Wno-implicit-function-declaration -g -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])

Modified: axis/axis2/c/core/trunk/util/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/configure.ac?rev=1368044&r1=1368043&r2=1368044&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/configure.ac (original)
+++ axis/axis2/c/core/trunk/util/configure.ac Wed Aug  1 15:12:23 2012
@@ -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])



Mime
View raw message