libreplace: we need to link to make sure the functions are available
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2007 11:18:28 +0000 (12:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2007 11:20:16 +0000 (12:20 +0100)
metze

source/lib/replace/getaddrinfo.m4

index 92620aa3d00b4c9bf43202ce2475540365cbd75b..bc6e69ea5623a1d3f950a0576cfa1e4e4eb5f9ad 100644 (file)
@@ -1,6 +1,6 @@
 dnl test for getaddrinfo/getnameinfo
 AC_CACHE_CHECK([for getaddrinfo],libreplace_cv_HAVE_GETADDRINFO,[
-AC_TRY_COMPILE([
+AC_TRY_LINK([
 #include <sys/types.h>
 #if STDC_HEADERS
 #include <stdlib.h>