]> granicus.if.org Git - pdns/commitdiff
Replace another obsolete macro
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 16 Oct 2013 17:01:30 +0000 (19:01 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 16 Oct 2013 17:01:30 +0000 (19:01 +0200)
configure.ac

index 090ff8641865a65494f705731018d7f5f75a158d..a631f32d79260d30b99a00a35b911288aaf00515 100644 (file)
@@ -107,10 +107,11 @@ AC_SUBST(LIBDL)
 AC_MSG_CHECKING([for RTLD_NOW]);
 ac_save_LIBS="$LIBS"
 LIBS="$LIBS $LIBDL"
-AC_TRY_LINK(
-[#include <dlfcn.h>],
-[ (void) dlopen("",RTLD_NOW); ],
-has_RTLD_NOW=yes, has_RTLD_NOW=no)
+AC_LINK_IFELSE(
+  [AC_LANG_PROGRAM([[#include <dlfcn.h>]],
+    [[(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