configure: Added a WINE_CHECK_LIB_FUNCS macro to check for functions
when linking with specific libraries.
diff --git a/aclocal.m4 b/aclocal.m4
index ef987a2..fb73a06 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -94,6 +94,16 @@
LINTFLAGS="$LINTFLAGS -D$1"])dnl
AS_VAR_POPDEF([ac_var])])
+dnl **** Check for functions with some extra libraries ****
+dnl
+dnl Usage: WINE_CHECK_LIB_FUNCS(funcs,libs,[action-if-found,[action-if-not-found]])
+dnl
+AC_DEFUN([WINE_CHECK_LIB_FUNCS],
+[ac_wine_check_funcs_save_LIBS="$LIBS"
+LIBS="$LIBS $2"
+AC_CHECK_FUNCS([$1],[$3],[$4])
+LIBS="$ac_wine_check_funcs_save_LIBS"])
+
dnl **** Check for ln ****
dnl
dnl Usage: WINE_PROG_LN