]> granicus.if.org Git - python/commitdiff
Ran autoconf.
authorThomas Heller <theller@ctypes.org>
Thu, 13 Dec 2007 21:20:29 +0000 (21:20 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 13 Dec 2007 21:20:29 +0000 (21:20 +0000)
configure

index d03d798760a8b6074f8250ca593e566156bfa780..4aa1730d8e1b68a5a77f0ebbbee55a367ae725e0 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 59242 .
+# From configure.in Revision: 59484 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for python 2.6.
 #
@@ -4430,6 +4430,10 @@ then
         if test "$CC" != 'g++' ; then
            STRICT_PROTO="-Wstrict-prototypes"
        fi
+        # For gcc 4.x we need to use -fwrapv so lets check if its supported
+        if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
+           WRAP="-fwrapv"
+        fi
        case $ac_cv_prog_cc_g in
        yes)
            if test "$Py_DEBUG" = 'true' ; then
@@ -4437,7 +4441,7 @@ then
                # debug builds.
                OPT="-g -Wall $STRICT_PROTO"
            else
-               OPT="-g -O3 -Wall $STRICT_PROTO"
+               OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
            fi
            ;;
        *)