Commit 26007f11 26007f115111c2f271a1d0cfe9d848a867a79e55 by Wojciech Polak

* am/lib.m4 (MU_CHECK_LIB): Switch to AC_TRY_LINK_FUNC.

1 parent 7824f73f
......@@ -12,8 +12,8 @@ AC_DEFUN([MU_CHECK_LIB],
[
for path in $6
do
LIBS="$save_LIBS -L$path"
AC_CHECK_LIB($1, $2,
LIBS="$save_LIBS $3 -L$path -l$1"
AC_TRY_LINK_FUNC($2,
[mu_cv_lib_$1="$3 -L$path -l$1"
break],
[mu_cv_lib_$1=no],$3)
......