Commit ca444829 authored by David Goodell's avatar David Goodell
Browse files

[svn-r10820] fix dylib creation on OS X if fortran is disabled

This is a follow-on to r10622 and tt#1570.  Eric Borisch reported that
shared libraries were not generated on Darwin platforms when
`--disable-f77` and `--disable-fortran` are passed.  The fix in r10622
was buggy, but hopefully this one works a bit better.

If you're debugging this in the future, search for `_lt_disable_F77` in
the generated configure file to help understand why we expect `F77=no`
to prevent libtool problems (and possibly help debug the future
problem).

Reviewed by balaji@.
parent 1b38b54c
......@@ -651,16 +651,13 @@ 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])
# shell variable to "no" for any languages that have been disabled by the user
# with "--disable-LANG". Libtool understands this as a request to disable
# support for this language. This should save a bit of configure time and also
# prevent user complaints like ticket #1570.
AS_IF([test "x$enable_f77" = "xno"],[F77=no])
AS_IF([test "x$enable_fc" = "xno"],[FC=no])
AS_IF([test "x$enable_cxx" = "xno"],[CXX=no])
# suppress default "-g -O2" from AC_PROG_CXX
: ${CXXFLAGS=""}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment