]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (_LT_AC_TAGCONFIG): Add test around the macro that
authorRobert Boehne <rboehne@gnu.org>
Thu, 20 Mar 2003 18:02:05 +0000 (18:02 +0000)
committerRobert Boehne <rboehne@gnu.org>
Thu, 20 Mar 2003 18:02:05 +0000 (18:02 +0000)
adds tags to the libtool script so that they won't run when not
needed.
* configure.ac: Set F77 to no when no Fortran compiler is found.

ChangeLog
configure.ac
libtool.m4

index d8c6c1eb48f86c47541a8825d3dfe98474ff5e34..21a99932b5b46b41f81f5b86fdfaaaf20b6e0dfa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-03-19  Robert Boehne  <rboehne@gnu.org>
+
+       * libtool.m4 (_LT_AC_TAGCONFIG): Add test around the macro that
+       adds tags to the libtool script so that they won't run when not
+       needed.
+       * configure.ac: Set F77 to no when no Fortran compiler is found.
+
 2003-03-16  Charles Wilson  <cwilson@ece.gatech.edu>
 
        * ltmain.in (win32_libid): use $SED, not head.
index bc4b24773bfdf08fdb1b1f2a13666989dc717c10..b2d96d7c13d8a834d05009903d7f9bc65a1bc410 100644 (file)
@@ -110,6 +110,9 @@ AM_CONDITIONAL(HAVE_CXX, [test "x$CXX" != xno])
 pushdef([AC_MSG_ERROR], [F77=no])
 AC_PROG_F77
 popdef([AC_MSG_ERROR])
+if test -z "$F77"; then
+  F77="no"
+fi
 AM_CONDITIONAL(HAVE_F77, [test "x$F77" != xno])
 
 LT_AC_PROG_GCJ
index a521ed66906ec914a151df1dac23da6f47031c3d..fdb426643d38150ccb032d2246180642071bd1d3 100644 (file)
@@ -1614,15 +1614,27 @@ if test -f "$ltmain" && test -n "$tagnames"; then
 
       case $tagname in
       CXX)
-       AC_LIBTOOL_LANG_CXX_CONFIG
+       if test "X$CXX" != "Xno"; then
+         AC_LIBTOOL_LANG_CXX_CONFIG
+       else
+         tagname=""
+       fi
        ;;
 
       F77)
-        AC_LIBTOOL_LANG_F77_CONFIG
-        ;;
+       if test "X$F77" != "Xno"; then
+         AC_LIBTOOL_LANG_F77_CONFIG
+       else
+         tagname=""
+       fi
+       ;;
 
       GCJ)
-       AC_LIBTOOL_LANG_GCJ_CONFIG
+       if test "X$GCJ" != "Xno"; then
+         AC_LIBTOOL_LANG_GCJ_CONFIG
+       else
+         tagname=""
+       fi
        ;;
 
       RC)