]> granicus.if.org Git - python/commitdiff
Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc.
authorGuido van Rossum <guido@python.org>
Fri, 18 Jul 1997 23:29:09 +0000 (23:29 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 18 Jul 1997 23:29:09 +0000 (23:29 +0000)
configure.in

index f2510ceda78324279505ee96786d32df640f28ed..e91199b3d9b6c837420dca85b2f1712d7bb1927e 100644 (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