From: Ben Elliston Date: Tue, 7 Sep 1999 12:52:42 +0000 (+0000) Subject: 1999-09-07 Jim Meyering X-Git-Tag: trunk-pre-merge-trunk-into-experimental-1999-10-01~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88c156c78f594afa8cee636d5f6fb7cbd4bf21b3;p=thirdparty%2Fautoconf.git 1999-09-07 Jim Meyering * acgeneral.m4 (AC_SEARCH_LIBS): Use $ac_lib as the index, not $i. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index b5768dc5..2b1fe23d 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -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"]) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index b5768dc5..2b1fe23d 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -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"])