From: Ruben Kerkhof Date: Wed, 16 Oct 2013 17:01:30 +0000 (+0200) Subject: Replace another obsolete macro X-Git-Tag: rec-3.6.0-rc1~400^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67e8df4cc9c905a4bc3d9059e9e67b1d9ee621bf;p=pdns Replace another obsolete macro --- diff --git a/configure.ac b/configure.ac index 090ff8641..a631f32d7 100644 --- a/configure.ac +++ b/configure.ac @@ -107,10 +107,11 @@ AC_SUBST(LIBDL) AC_MSG_CHECKING([for RTLD_NOW]); ac_save_LIBS="$LIBS" LIBS="$LIBS $LIBDL" -AC_TRY_LINK( -[#include ], -[ (void) dlopen("",RTLD_NOW); ], -has_RTLD_NOW=yes, has_RTLD_NOW=no) +AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[#include ]], + [[(void) dlopen("",RTLD_NOW);]])], + [has_RTLD_NOW=yes], + [has_RTLD_NOW=no]) AC_MSG_RESULT([$has_RTLD_NOW]) if test "$has_RTLD_NOW" = "no" then