replace AC_TRY_LINK with AC_LINK_IFELSE

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14154 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2004-08-25 16:17:05 +00:00
parent eb889bfd39
commit 94711445ee
7 changed files with 31 additions and 32 deletions

View File

@@ -87,24 +87,25 @@ if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
for j in $cdirs; do
for k in $clibs; do
LIBS="$j $k $save_LIBS"
AC_TRY_LINK(test_headers, test_body,
openssl=yes ires="$i" lres="$j $k"; break 3)
AC_LINK_IFELSE([AC_LANG_SOURCE([test_headers],
[test_body])],
[openssl=yes ires="$i" lres="$j $k"; break 3])
done
done
CFLAGS="$i $save_CFLAGS"
for j in $cdirs; do
for k in $clibs; do
LIBS="$j $k $save_LIBS"
AC_TRY_LINK(test_headers, test_body,
openssl=no ires="$i" lres="$j $k"; break 3)
AC_LINK_IFELSE([AC_LANG_SOURCE([test_headers],[test_body])],
[openssl=no ires="$i" lres="$j $k"; break 3])
done
done
CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS"
for j in $cdirs; do
for k in $clibs; do
LIBS="$j $k $save_LIBS"
AC_TRY_LINK(test_headers, test_body,
openssl=no ires="$i" lres="$j $k"; break 3)
AC_LINK_IFELSE([AC_LANG_SOURCE([test_headers],[test_body])],
[openssl=no ires="$i" lres="$j $k"; break 3])
done
done
done
@@ -141,7 +142,7 @@ if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
LIB_des_so="$LIB_des"
LIB_des_appl="$LIB_des"
LIBS="${LIBS} ${LIB_des}"
AC_TRY_LINK(test_headers, test_body, [
AC_LINK_IFELSE([AC_LANG_SOURCE([test_headers],[test_body])], [
crypto_lib=libcrypto openssl=yes
AC_MSG_RESULT([libcrypto])
])