From: Peter O'Gorman Date: Fri, 7 Mar 2008 05:38:33 +0000 (+0000) Subject: * libltdl/m4/libtool.m4 (_LT_PROG_FC): Report FC=no if the FC X-Git-Tag: v2.2.2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3971a6b611cbd0d49011c7598c5f484686be4ab5;p=thirdparty%2Flibtool.git * libltdl/m4/libtool.m4 (_LT_PROG_FC): Report FC=no if the FC compiler is not a GNU compiler and the CXX compiler is a GNU compiler. Reported by Nelson H. F. Beebe. --- diff --git a/ChangeLog b/ChangeLog index 142f14a99..4bde8430f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-06 Peter O'Gorman + + * libltdl/m4/libtool.m4 (_LT_PROG_FC): Report FC=no if the FC + compiler is not a GNU compiler and the CXX compiler is a GNU + compiler. + Reported by Nelson H. F. Beebe. + 2008-03-06 Gary V. Vaughan * Makefile.maint (TSDEPS_DIST): Removed. No longer used. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 6124c3ad3..5d71f4306 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -6644,6 +6644,15 @@ AC_PROG_FC if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi + +# If g++ is being used, but the fortran compiler is not a gnu +# compiler, we should simply ignore it. It will not grok -shared, for +# example. +if test "x$ac_cv_fc_compiler_gnu" != "x$GXX"; then + FC=no + _lt_disable_FC=yes +fi + popdef([AC_MSG_ERROR]) ])# _LT_PROG_FC