diff options
author | Guido van Rossum <guido@python.org> | 1997-07-18 23:29:09 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-18 23:29:09 +0000 |
commit | dcd4a9f8c6b0378368160aba66f70172799c4261 (patch) | |
tree | 2c1a89e09579936cfe4a3b26532a9ca661d5b47f /configure.in | |
parent | 2fec21c50c88fde6eab94d5731e68ead6a0422d6 (diff) | |
download | cpython-dcd4a9f8c6b0378368160aba66f70172799c4261.tar.gz |
Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index f2510ceda7..e91199b3d9 100644 --- a/configure.in +++ b/configure.in @@ -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 |