mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-01 14:16:02 +08:00
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:
parent
f0173011c5
commit
88c156c78f
@ -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"])
|
||||
|
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user