[Python-checkins] CVS: python/dist/src configure,1.274,1.275 configure.in,1.283,1.284

Fred L. Drake fdrake@users.sourceforge.net
Tue, 04 Dec 2001 12:55:49 -0800


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv29507

Modified Files:
	configure configure.in 
Log Message:
Define NDEBUG when compiling a release build on Unix.
This is the Unix portion of the fix for SF bug #489052.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.274
retrieving revision 1.275
diff -C2 -d -r1.274 -r1.275
*** configure	2001/12/02 13:02:32	1.274
--- configure	2001/12/04 20:55:46	1.275
***************
*** 1,5 ****
  #! /bin/sh
  
! # From configure.in Revision: 1.282 
  
  # Guess values for system-dependent variables and create Makefiles.
--- 1,5 ----
  #! /bin/sh
  
! # From configure.in Revision: 1.283 
  
[...4439 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 7476 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
***************
*** 7523,7527 ****
  SRCDIRS="Parser Grammar Objects Python Modules"
  echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7526: checking for build directories" >&5
  for dir in $SRCDIRS; do
      if test ! -d $dir; then
--- 7529,7533 ----
  SRCDIRS="Parser Grammar Objects Python Modules"
  echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7532: 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.283
retrieving revision 1.284
diff -C2 -d -r1.283 -r1.284
*** configure.in	2001/12/02 13:02:32	1.283
--- configure.in	2001/12/04 20:55:47	1.284
***************
*** 390,393 ****
--- 390,399 ----
  fi
  
+ if test "$Py_DEBUG" = 'true'; then
+   :
+ else
+   OPT="-DNDEBUG $OPT"
+ fi
+ 
  # The current (beta) Monterey compiler dies with optimizations
  case $ac_sys_system in