]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-09-07 Jim Meyering <meyering@ascend.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Tue, 7 Sep 1999 12:52:42 +0000 (12:52 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Tue, 7 Sep 1999 12:52:42 +0000 (12:52 +0000)
* acgeneral.m4 (AC_SEARCH_LIBS): Use $ac_lib as the index, not $i.

acgeneral.m4
lib/autoconf/general.m4

index b5768dc56e05482fade90c1dda79098f6be6feb6..2b1fe23d4ce751c142f107e7880a6d02c361c2a8 100644 (file)
@@ -1371,7 +1371,7 @@ AC_CACHE_VAL(ac_cv_path_$1,
   /*)
   ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
   ;;
-  ?:/*)                         
+  ?:/*)
   ac_cv_path_$1="[$]$1" # Let the user override the test with a dos path.
   ;;
   *)
@@ -1544,10 +1544,10 @@ AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1],
 [ac_func_search_save_LIBS="$LIBS"
 ac_cv_search_$1="no"
 AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"])
-test "$ac_cv_search_$1" = "no" && for i in $2; do
-LIBS="-l$i $5 $ac_func_search_save_LIBS"
+test "$ac_cv_search_$1" = "no" && for ac_lib in $2; do
+LIBS="-l$ac_lib $5 $ac_func_search_save_LIBS"
 AC_TRY_LINK_FUNC([$1],
-[ac_cv_search_$1="-l$i"
+[ac_cv_search_$1="-l$ac_lib"
 break])
 done
 LIBS="$ac_func_search_save_LIBS"])
index b5768dc56e05482fade90c1dda79098f6be6feb6..2b1fe23d4ce751c142f107e7880a6d02c361c2a8 100644 (file)
@@ -1371,7 +1371,7 @@ AC_CACHE_VAL(ac_cv_path_$1,
   /*)
   ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
   ;;
-  ?:/*)                         
+  ?:/*)
   ac_cv_path_$1="[$]$1" # Let the user override the test with a dos path.
   ;;
   *)
@@ -1544,10 +1544,10 @@ AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1],
 [ac_func_search_save_LIBS="$LIBS"
 ac_cv_search_$1="no"
 AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"])
-test "$ac_cv_search_$1" = "no" && for i in $2; do
-LIBS="-l$i $5 $ac_func_search_save_LIBS"
+test "$ac_cv_search_$1" = "no" && for ac_lib in $2; do
+LIBS="-l$ac_lib $5 $ac_func_search_save_LIBS"
 AC_TRY_LINK_FUNC([$1],
-[ac_cv_search_$1="-l$i"
+[ac_cv_search_$1="-l$ac_lib"
 break])
 done
 LIBS="$ac_func_search_save_LIBS"])