[Python-checkins] python/dist/src configure,1.279.6.19,1.279.6.20 configure.in,1.288.6.19,1.288.6.20

loewis@users.sourceforge.net loewis@users.sourceforge.net
Mon, 07 Jul 2003 14:44:04 -0700


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv12378

Modified Files:
      Tag: release22-maint
	configure configure.in 
Log Message:
Use -fno-strict-aliasing on gcc 3.3. Fixes #766696.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.279.6.19
retrieving revision 1.279.6.20
diff -C2 -d -r1.279.6.19 -r1.279.6.20
*** configure	29 Mar 2003 22:25:14 -0000	1.279.6.19
--- configure	7 Jul 2003 21:43:58 -0000	1.279.6.20
***************
*** 1,5 ****
  #! /bin/sh
  
! # From configure.in Revision: 1.288.6.18 
  
  # Guess values for system-dependent variables and create Makefiles.
--- 1,5 ----
  #! /bin/sh
  
! # From configure.in Revision: 1.288.6.19 
  
[...4612 lines suppressed...]
  if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 7610 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
***************
*** 7629,7633 ****
  SRCDIRS="Parser Grammar Objects Python Modules"
  echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7632: checking for build directories" >&5
  for dir in $SRCDIRS; do
      if test ! -d $dir; then
--- 7663,7667 ----
  SRCDIRS="Parser Grammar Objects Python Modules"
  echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7666: checking for build directories" >&5
  for dir in $SRCDIRS; do
      if test ! -d $dir; then

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.288.6.19
retrieving revision 1.288.6.20
diff -C2 -d -r1.288.6.19 -r1.288.6.20
*** configure.in	29 Mar 2003 22:25:17 -0000	1.288.6.19
--- configure.in	7 Jul 2003 21:44:00 -0000	1.288.6.20
***************
*** 371,374 ****
--- 371,389 ----
  [AC_MSG_RESULT(no)])
  
+ AC_MSG_CHECKING(whether gcc needs -fno-strict-aliasing)
+ AC_TRY_CPP([
+ #ifdef __GNUC__
+ # if defined(__GNUC_MINOR__) && __GNUC__ >= 3 && (__GNUC_MINOR__ >= 3)
+ #   error -fno-strict-aliasing needed
+ # endif
+ #endif
+ ],[
+   GCC_EXTRA_OPT=
+   AC_MSG_RESULT(no)
+ ],[
+   GCC_EXTRA_OPT=-fno-strict-aliasing
+   AC_MSG_RESULT(yes)
+ ])
+ 
  # Optimizer/debugger flags
  AC_SUBST(OPT)
***************
*** 384,391 ****
  		OPT="-g -Wall -Wstrict-prototypes"
  	    else
! 		OPT="-g -O3 -Wall -Wstrict-prototypes"
  	    fi;;
  	*)
! 	    OPT="-O3 -Wall -Wstrict-prototypes";;
  	esac
  	case $ac_sys_system in
--- 399,406 ----
  		OPT="-g -Wall -Wstrict-prototypes"
  	    else
! 		OPT="-g -O3 $GCC_EXTRA_OPT -Wall -Wstrict-prototypes"
  	    fi;;
  	*)
! 	    OPT="-O3 $GCC_EXTRA_OPT -Wall -Wstrict-prototypes";;
  	esac
  	case $ac_sys_system in