aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 12b1347b6d0..930129bfdaf 100644
--- a/configure.in
+++ b/configure.in
@@ -2756,15 +2756,19 @@ AC_CHECK_LIB(ncurses, tparm)
2756# Do we have res_init, for detecting changes in /etc/resolv.conf? 2756# Do we have res_init, for detecting changes in /etc/resolv.conf?
2757 2757
2758resolv=no 2758resolv=no
2759AC_CHECK_FUNC(res_init, have_res_init=yes, have_res_init=no) 2759AC_TRY_LINK([#include <netinet/in.h>
2760#include <arpa/nameser.h>
2761#include <resolv.h>],
2762 [return res_init();],
2763 have_res_init=yes, have_res_init=no)
2760if test "$have_res_init" = no; then 2764if test "$have_res_init" = no; then
2761 OLIBS="$LIBS" 2765 OLIBS="$LIBS"
2762 LIBS="$LIBS -lresolv" 2766 LIBS="$LIBS -lresolv"
2763 AC_MSG_CHECKING(for res_init with -lresolv) 2767 AC_MSG_CHECKING(for res_init with -lresolv)
2764 AC_TRY_LINK([#include <netinet/in.h> 2768 AC_TRY_LINK([#include <netinet/in.h>
2765#include <arpa/nameser.h> 2769#include <arpa/nameser.h>
2766#include <resolv.h> ], 2770#include <resolv.h>],
2767 [res_init();], 2771 [return res_init();],
2768 have_res_init=yes, have_res_init=no) 2772 have_res_init=yes, have_res_init=no)
2769 AC_MSG_RESULT($have_res_init) 2773 AC_MSG_RESULT($have_res_init)
2770 if test "$have_res_init" = yes ; then 2774 if test "$have_res_init" = yes ; then