]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (_LT_LANG_F77_CONFIG): Make sure the save and
authorGary V. Vaughan <gary@gnu.org>
Sat, 9 Oct 2004 20:43:23 +0000 (20:43 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sat, 9 Oct 2004 20:43:23 +0000 (20:43 +0000)
restore code for CC is nested at the same depth.
(_LT_LANG_CXX_CONFIG): Ditto, but for several variables.

ChangeLog
m4/libtool.m4

index c4684e4cf9a99bd85b5dcb9dd537cb243e2dc254..241440521e14da62dc657b93e668c0aba14b7fc1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-09  Gary V. Vaughan  <gary@gnu.org>
+
+       * m4/libtool.m4 (_LT_LANG_F77_CONFIG): Make sure the save and
+       restore code for CC is nested at the same depth.
+       (_LT_LANG_CXX_CONFIG): Ditto, but for several variables.
+
 2004-10-08  Gary V. Vaughan  <gary@gnu.org>
 
        Update to the latest commit and mailnotify scripts from
index 004553e52ee2d79afd6ae82157446569cd383235..ef2e1bc6cd035afbfe2246aaf209446636be68a3 100644 (file)
@@ -4472,11 +4472,11 @@ m4_defun([_LT_PROG_CXX],
 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 AC_PROG_CXX
 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
-    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 
+    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     (test "X$CXX" != "Xg++"))) ; then
   AC_PROG_CXXCPP
-else  
-  _lt_caught_CXX_error=yes 
+else
+  _lt_caught_CXX_error=yes
 fi
 popdef([AC_MSG_ERROR])
 ])# _LT_PROG_CXX
@@ -5404,18 +5404,19 @@ if test "$_lt_caught_CXX_error" != yes; then
 
     _LT_CONFIG($1)
   fi # test -n "$compiler"
+
+  CC=$lt_save_CC
+  LDCXX=$LD
+  LD=$lt_save_LD
+  GCC=$lt_save_GCC
+  with_gnu_ld=$lt_save_with_gnu_ld
+  lt_cv_path_LDCXX=$lt_cv_path_LD
+  lt_cv_path_LD=$lt_save_path_LD
+  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 fi # test "$_lt_caught_CXX_error" != yes
 
 AC_LANG_POP
-CC=$lt_save_CC
-LDCXX=$LD
-LD=$lt_save_LD
-GCC=$lt_save_GCC
-with_gnu_ld=$lt_save_with_gnu_ld
-lt_cv_path_LDCXX=$lt_cv_path_LD
-lt_cv_path_LD=$lt_save_path_LD
-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 ])# _LT_LANG_CXX_CONFIG
 
 
@@ -5580,7 +5581,7 @@ m4_defun([_LT_PROG_F77],
 pushdef([AC_MSG_ERROR], [_lt_caught_F77_error=yes])
 AC_PROG_F77
 if test -z "$F77"; then
-  _lt_caught_F77_error=yes 
+  _lt_caught_F77_error=yes
 fi
 popdef([AC_MSG_ERROR])
 ])# _LT_PROG_F77
@@ -5690,10 +5691,11 @@ if test "$_lt_caught_F77_error" != yes; then
 
     _LT_CONFIG($1)
   fi # test -n "$compiler"
+
+  CC="$lt_save_CC"
 fi # test "$_lt_caught_F77_error" != yes
 
 AC_LANG_POP
-CC="$lt_save_CC"
 ])# _LT_LANG_F77_CONFIG