emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/configure.in,v


From: Andreas Schwab
Subject: [Emacs-diffs] Changes to emacs/configure.in,v
Date: Tue, 20 Nov 2007 23:06:39 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Andreas Schwab <schwab> 07/11/20 23:06:39

Index: configure.in
===================================================================
RCS file: /sources/emacs/emacs/configure.in,v
retrieving revision 1.479
retrieving revision 1.480
diff -u -b -r1.479 -r1.480
--- configure.in        7 Nov 2007 04:00:24 -0000       1.479
+++ configure.in        20 Nov 2007 23:06:39 -0000      1.480
@@ -2756,15 +2756,19 @@
 # Do we have res_init, for detecting changes in /etc/resolv.conf?
 
 resolv=no
-AC_CHECK_FUNC(res_init, have_res_init=yes, have_res_init=no)
+AC_TRY_LINK([#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>],
+    [return res_init();],
+    have_res_init=yes, have_res_init=no)
 if test "$have_res_init" = no; then
   OLIBS="$LIBS"
   LIBS="$LIBS -lresolv"
   AC_MSG_CHECKING(for res_init with -lresolv)
   AC_TRY_LINK([#include <netinet/in.h>
 #include <arpa/nameser.h>
-#include <resolv.h> ],
-    [res_init();],
+#include <resolv.h>],
+    [return res_init();],
     have_res_init=yes, have_res_init=no)
   AC_MSG_RESULT($have_res_init)
   if test "$have_res_init" = yes ; then




reply via email to

[Prev in Thread] Current Thread [Next in Thread]