1999-09-07 Jim Meyering <meyering@ascend.com>

* acgeneral.m4 (AC_SEARCH_LIBS): Use $ac_lib as the index, not $i.
This commit is contained in:
Ben Elliston 1999-09-07 12:52:42 +00:00
parent f0173011c5
commit 88c156c78f
2 changed files with 8 additions and 8 deletions

View 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"])

View 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"])