Commit 0456ebbf authored by jehan's avatar jehan
Browse files

check res_ndestroy presence before using res_ninit

parent 525a4ffb
......@@ -72,10 +72,10 @@ CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $ANTLR_CFLAGS"
AC_CHECK_HEADERS([antlr3.h], [found_antlr3=yes])
AC_CHECK_DECL([antlr3StringStreamNew], [found_antlr3=yes], [found_antlr3=no],[#include <antlr3.h>])
AC_CHECK_DECL([res_ninit]
,[AC_DEFINE(HAVE_RESINIT,1,[Defined when res_ninit api is available]) LIBS="$LIBS -lresolv"]
,[foo=bar]
,[#include <resolv.h>])
AC_CHECK_DECL([res_ndestroy]
,[AC_DEFINE(HAVE_RESINIT,1,[Defined when res_ninit api is available]) LIBS="$LIBS -lresolv"]
,[foo=bar]
,[#include <resolv.h>])
CPPFLAGS=$CPPFLAGS_save
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment