From 6d8a5523b31d7d9afd03b33f435b8d2177486728 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 23 Aug 2006 19:28:13 +0000 Subject: use RTLD_NOLOAD if it's available to make loading dynamic modules a little faster and less resource-intensive also, keep trying to dlclose() a module until it actually goes away, since it may have other modules it brought in when it was loaded (thanks PCadach for pointing this problem out to me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40949 f38db490-d61c-443f-a65b-d21fe96a405b --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5bbb7107e..c3eacdc57 100644 --- a/configure.ac +++ b/configure.ac @@ -237,6 +237,15 @@ AC_LINK_IFELSE( AC_MSG_RESULT(no) ) +AC_MSG_CHECKING(checking for RTLD_NOLOAD) +AC_LINK_IFELSE( + AC_LANG_PROGRAM([#include ], + [int foo = RTLD_NOLOAD;]), + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_RTLD_NOLOAD], 1, [Define to 1 if your system has a dynamic linker that supports RTLD_NOLOAD.]), + AC_MSG_RESULT(no) +) + AST_GCC_ATTRIBUTE(pure) AST_GCC_ATTRIBUTE(malloc) AST_GCC_ATTRIBUTE(const) -- cgit v1.2.3