Commit 288a5be5 authored by Skip Montanaro's avatar Skip Montanaro

If compiling with g++ don't use -Wstrict-prototpes.

parent 57fdcbc6
#! /bin/sh #! /bin/sh
# From configure.in Revision: 45264 . # From configure.in Revision: 45278 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.5. # Generated by GNU Autoconf 2.59 for python 2.5.
# #
...@@ -3792,18 +3792,21 @@ if test -z "$OPT" ...@@ -3792,18 +3792,21 @@ if test -z "$OPT"
then then
case $GCC in case $GCC in
yes) yes)
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
case $ac_cv_prog_cc_g in case $ac_cv_prog_cc_g in
yes) yes)
if test "$Py_DEBUG" = 'true' ; then if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for # Optimization messes up debuggers, so turn it off for
# debug builds. # debug builds.
OPT="-g -Wall -Wstrict-prototypes" OPT="-g -Wall $STRICT_PROTO"
else else
OPT="-g -O3 -Wall -Wstrict-prototypes" OPT="-g -O3 -Wall $STRICT_PROTO"
fi fi
;; ;;
*) *)
OPT="-O3 -Wall -Wstrict-prototypes" OPT="-O3 -Wall $STRICT_PROTO"
;; ;;
esac esac
case $ac_sys_system in case $ac_sys_system in
......
...@@ -685,18 +685,21 @@ if test -z "$OPT" ...@@ -685,18 +685,21 @@ if test -z "$OPT"
then then
case $GCC in case $GCC in
yes) yes)
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
case $ac_cv_prog_cc_g in case $ac_cv_prog_cc_g in
yes) yes)
if test "$Py_DEBUG" = 'true' ; then if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for # Optimization messes up debuggers, so turn it off for
# debug builds. # debug builds.
OPT="-g -Wall -Wstrict-prototypes" OPT="-g -Wall $STRICT_PROTO"
else else
OPT="-g -O3 -Wall -Wstrict-prototypes" OPT="-g -O3 -Wall $STRICT_PROTO"
fi fi
;; ;;
*) *)
OPT="-O3 -Wall -Wstrict-prototypes" OPT="-O3 -Wall $STRICT_PROTO"
;; ;;
esac esac
case $ac_sys_system in case $ac_sys_system in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment