[Python-checkins] CVS: python/dist/src configure.in,1.171,1.172 configure,1.163,1.164
Fred L. Drake
python-dev@python.org
Thu, 12 Oct 2000 10:11:41 -0700
Update of /cvsroot/python/python/dist/src
In directory slayer.i.sourceforge.net:/tmp/cvs-serv523
Modified Files:
configure.in configure
Log Message:
When we know the compiler is GCC, always add the -Wall and
-Wstrict-prototypes options. This will make it a lot easier to keep
warnings under control in the first place in the future.
There is one known warning at this time, caught by the -Wstrict-prototypes
option. In Modules/main.c, the declaration of getopt() without parameters
gets a complaint (rightly) that it is not a proper prototype. The lack of
a complete prototype information should be corrected when the right
portability conditions have been identified.
Approved by the Guido.
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.171
retrieving revision 1.172
diff -C2 -r1.171 -r1.172
*** configure.in 2000/10/09 20:18:32 1.171
--- configure.in 2000/10/12 17:11:38 1.172
***************
*** 309,314 ****
yes)
case $ac_cv_prog_cc_g in
! yes) OPT="-g -O2";;
! *) OPT="-O2";;
esac
;;
--- 309,314 ----
yes)
case $ac_cv_prog_cc_g in
! yes) OPT="-g -O2 -Wall -Wstrict-prototypes";;
! *) OPT="-O2 -Wall -Wstrict-prototypes";;
esac
;;
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.163
retrieving revision 1.164
diff -C2 -r1.163 -r1.164
*** configure 2000/10/09 21:48:02 1.163
--- configure 2000/10/12 17:11:38 1.164
***************
*** 4,8 ****
# Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
--- 4,8 ----
# Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.14.1
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
[...4127 lines suppressed...]
! echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
--- 6031,6035 ----
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
! echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
exit 0 ;;
-help | --help | --hel | --he | --h)
***************
*** 6309,6312 ****
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
! test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
--- 6335,6338 ----
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
! test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1