[mpich2-commits] r6729 - mpich2/trunk/confdb
goodell at mcs.anl.gov
goodell at mcs.anl.gov
Mon May 24 15:54:43 CDT 2010
Author: goodell
Date: 2010-05-24 15:54:43 -0500 (Mon, 24 May 2010)
New Revision: 6729
Modified:
mpich2/trunk/confdb/aclocal_cc.m4
Log:
use PAC_PUSH_VAR/PAC_POP_VAR to save a copy of the CFLAGS
Reviewed by balaji at .
Modified: mpich2/trunk/confdb/aclocal_cc.m4
===================================================================
--- mpich2/trunk/confdb/aclocal_cc.m4 2010-05-24 20:54:42 UTC (rev 6728)
+++ mpich2/trunk/confdb/aclocal_cc.m4 2010-05-24 20:54:43 UTC (rev 6729)
@@ -571,13 +571,10 @@
# See if the above options work with the compiler
accepted_flags=""
for flag in $pac_cc_strict_flags ; do
- # the save_CFLAGS variable must be namespaced, otherwise they
- # may not actually be saved if an invoked macro also uses
- # save_CFLAGS
- pcs_save_CFLAGS=$CFLAGS
+ PAC_PUSH_VAR([CFLAGS])
CFLAGS="$CFLAGS $accepted_flags"
- PAC_C_CHECK_COMPILER_OPTION($flag,accepted_flags="$accepted_flags $flag",)
- CFLAGS=$pcs_save_CFLAGS
+ PAC_C_CHECK_COMPILER_OPTION([$flag],[accepted_flags="$accepted_flags $flag"],)
+ PAC_POP_VAR([CFLAGS])
done
pac_cc_strict_flags=$accepted_flags
fi
More information about the mpich2-commits
mailing list