[glib] [configure] More -lresolv-checking-fixing
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib] [configure] More -lresolv-checking-fixing
- Date: Mon, 18 Jan 2010 17:53:41 +0000 (UTC)
commit 6c3551fedb7bfde716fa00cfcbba00ca987c2a79
Author: Dan Winship <danw gnome org>
Date: Mon Jan 18 09:46:19 2010 -0500
[configure] More -lresolv-checking-fixing
https://bugzilla.gnome.org/show_bug.cgi?id=586150
configure.in | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index 632456d..b5d9879 100644
--- a/configure.in
+++ b/configure.in
@@ -1015,12 +1015,18 @@ if test $glib_native_win32 = no; then
# We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
AC_MSG_CHECKING([for res_query])
- AC_TRY_LINK([#include <resolv.h>],
+ AC_TRY_LINK([#include <sys/types.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>],
[res_query("test", 0, 0, (void *)0, 0);],
[AC_MSG_RESULT([yes])],
[save_libs="$LIBS"
LIBS="-lresolv $LIBS"
- AC_TRY_LINK([#include <resolv.h>],
+ AC_TRY_LINK([#include <sys/types.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>],
[res_query("test", 0, 0, (void *)0, 0);],
[AC_MSG_RESULT([in -lresolv])
LIBASYNCNS_LIBADD="-lresolv"],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]