Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc.

This commit is contained in:
Guido van Rossum 1997-07-18 23:29:09 +00:00
parent 61c270345c
commit b5875b642e
1 changed files with 7 additions and 1 deletions

View File

@ -98,7 +98,13 @@ fi
AC_SUBST(OPT)
if test -z "$OPT"
then
case $ac_sys_system in
case $GCC in
yes)
case $ac_cv_prog_cc_g in
yes) OPT="-g -O2";;
*) OPT="-O2";;
esac
;;
*) OPT="-O";;
esac
fi