diff options
author | Marc-André Lemburg <mal@egenix.com> | 2010-04-30 17:20:14 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2010-04-30 17:20:14 (GMT) |
commit | 6d5e579cc5e349fe7e8185a821434d718db2c6ea (patch) | |
tree | 5a1822f2e99a1ca092c4851b506f54d746df21ad /configure.in | |
parent | 9663ddaa74800581efd3f008bac1735d43c07d81 (diff) | |
download | cpython-6d5e579cc5e349fe7e8185a821434d718db2c6ea.zip cpython-6d5e579cc5e349fe7e8185a821434d718db2c6ea.tar.gz cpython-6d5e579cc5e349fe7e8185a821434d718db2c6ea.tar.bz2 |
[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS
Only override the AC_PROG_CC determined CFLAGS if they were set by the user.
This restores the default behavior in the common case of not having CFLAGS
defined when running configure.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 8e19ec2..4def2d4 100644 --- a/configure.in +++ b/configure.in @@ -531,9 +531,14 @@ then (it is also a good idea to do 'make clean' before compiling)]) fi -save_CFLAGS=$CFLAGS +# If the user set CFLAGS, use this instead of the automatically +# determined setting +preset_cflags="$CFLAGS" AC_PROG_CC -CFLAGS=$save_CFLAGS +if test ! -z "$preset_cflags" +then + CFLAGS=$preset_cflags +fi AC_SUBST(CXX) AC_SUBST(MAINCC) |