[mpich-commits] r10622 - mpich2/trunk
goodell at mcs.anl.gov
goodell at mcs.anl.gov
Mon Nov 19 11:56:07 CST 2012
Author: goodell
Date: 2012-11-19 11:56:07 -0600 (Mon, 19 Nov 2012)
New Revision: 10622
Modified:
mpich2/trunk/configure.ac
Log:
tt#1570: "no" means no for f77/fc/cxx
When --disable-LANG is passed to configure, set the corresponding
language variables to "false" to prevent searching for a working
compiler when the user specifically disabled that language.
If this commit causes any problems, revert it. We lived without
problems without it for many years, so this isn't a critical feature.
Reviewed by balaji at .
Modified: mpich2/trunk/configure.ac
===================================================================
--- mpich2/trunk/configure.ac 2012-11-19 17:54:41 UTC (rev 10621)
+++ mpich2/trunk/configure.ac 2012-11-19 17:56:07 UTC (rev 10622)
@@ -650,6 +650,18 @@
dnl AS_IF) around these macros in an effort to save configure time. It will
dnl lead to weird AM_CONDITIONAL errors and potentially other problems.
+# Before attempting to find valid compilers, set the corresponding precious
+# shell variable to "false" (the program/builtin that always fails) for any
+# languages that have been disabled by the user with "--disable-LANG". This
+# should save a bit of configure time and also prevent user complaints like
+# ticket #1570.
+AS_IF([test "x$enable_f77" = "xno"],[F77=false])
+AS_IF([test "x$enable_fc" = "xno"],[FC=false])
+# Set CXXCPP=$CPP so that we don't fail the (fatal) preprocessor sanity check.
+# At least as of autoconf-2.69, this sanity test does not check for any
+# C++-specific headers.
+AS_IF([test "x$enable_cxx" = "xno"],[CXX=false ; CXXCPP=$CPP])
+
# suppress default "-g -O2" from AC_PROG_CXX
: ${CXXFLAGS=""}
AC_PROG_CXX([PAC_CXX_SEARCH_LIST])
More information about the commits
mailing list