[Freeswitch-svn] [commit] r4647 - freeswitch/trunk

Freeswitch SVN mikej at freeswitch.org
Sun Mar 18 13:38:49 EDT 2007


Author: mikej
Date: Sun Mar 18 13:38:48 2007
New Revision: 4647

Modified:
   freeswitch/trunk/configure
   freeswitch/trunk/configure.in

Log:
add back -Werror for gcc builds

Modified: freeswitch/trunk/configure
==============================================================================
--- freeswitch/trunk/configure	(original)
+++ freeswitch/trunk/configure	Sun Mar 18 13:38:48 2007
@@ -20218,6 +20218,27 @@
     done
   fi
 
+
+  if test "x$SWITCH_AM_CFLAGS" = "x"; then
+    test "x$silent" != "xyes" && echo "  setting SWITCH_AM_CFLAGS to \"-Werror\""
+    SWITCH_AM_CFLAGS="-Werror"
+  else
+    apr_addto_bugger="-Werror"
+    for i in $apr_addto_bugger; do
+      apr_addto_duplicate="0"
+      for j in $SWITCH_AM_CFLAGS; do
+        if test "x$i" = "x$j"; then
+          apr_addto_duplicate="1"
+          break
+        fi
+      done
+      if test $apr_addto_duplicate = "0"; then
+        test "x$silent" != "xyes" && echo "  adding \"$i\" to SWITCH_AM_CFLAGS"
+        SWITCH_AM_CFLAGS="$SWITCH_AM_CFLAGS $i"
+      fi
+    done
+  fi
+
 fi
 
 # tweak platform specific flags

Modified: freeswitch/trunk/configure.in
==============================================================================
--- freeswitch/trunk/configure.in	(original)
+++ freeswitch/trunk/configure.in	Sun Mar 18 13:38:48 2007
@@ -100,6 +100,7 @@
 elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
     APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
     APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
+    APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
 fi
 
 # tweak platform specific flags



More information about the Freeswitch-svn mailing list