configure: Replace some obsolete macros to avoid warnings.
diff --git a/aclocal.m4 b/aclocal.m4
index 32163fb..e139fcd 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -58,8 +58,7 @@
dnl Usage: WINE_TRY_ASM_LINK(asm-code,includes,function,[action-if-found,[action-if-not-found]])
dnl
AC_DEFUN([WINE_TRY_ASM_LINK],
-[AC_TRY_LINK([void ac_asm(void) { asm([$1]); }
-[$2]],[$3],[$4],[$5])])
+[AC_LINK_IFELSE(AC_LANG_PROGRAM([[$2]],[[asm($1); $3]]),[$4],[$5])])
dnl **** Check if we can link an empty program with special CFLAGS ****
dnl
@@ -72,7 +71,7 @@
AC_CACHE_CHECK([whether the compiler supports $1], ac_var,
[ac_wine_try_cflags_saved=$CFLAGS
CFLAGS="$CFLAGS $1"
-AC_TRY_LINK([],[], [AS_VAR_SET(ac_var,yes)], [AS_VAR_SET(ac_var,no)])
+AC_LINK_IFELSE(AC_LANG_PROGRAM(), [AS_VAR_SET(ac_var,yes)], [AS_VAR_SET(ac_var,no)])
CFLAGS=$ac_wine_try_cflags_saved])
AS_IF([test AS_VAR_GET(ac_var) = yes],
[m4_default([$2], [EXTRACFLAGS="$EXTRACFLAGS $1"])], [$3])dnl