fixed dladdr ./configure check, leak detective whitelist
authorMartin Willi <martin@strongswan.org>
Mon, 4 May 2009 11:59:44 +0000 (13:59 +0200)
committerMartin Willi <martin@strongswan.org>
Mon, 4 May 2009 11:59:44 +0000 (13:59 +0200)
configure.in

index 9249884..47a7b8e 100644 (file)
@@ -773,9 +773,18 @@ LIBS=$saved_LIBS
 AC_SUBST(DLLIB)
 
 AC_CHECK_FUNCS(backtrace)
 AC_SUBST(DLLIB)
 
 AC_CHECK_FUNCS(backtrace)
-AC_CHECK_FUNCS(dladdr)
 AC_CHECK_FUNCS(prctl)
 
 AC_CHECK_FUNCS(prctl)
 
+AC_MSG_CHECKING(for dladdr)
+AC_TRY_COMPILE(
+       [#define _GNU_SOURCE
+        #include <dlfcn.h>],
+       [Dl_info* info = 0;
+        dladdr(0, info);],
+       [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_DLADDR])],
+       [AC_MSG_RESULT([no])]
+)
+
 AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h)
 
 AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [],
 AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h)
 
 AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [],