]> git.pld-linux.org Git - packages/etherape.git/commitdiff
- fix libresolv check on amd64, prefer libresolv over libbind (everywhere)
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 14 Jul 2004 19:25:22 +0000 (19:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    etherape-resolv.patch -> 1.3

etherape-resolv.patch [new file with mode: 0644]

diff --git a/etherape-resolv.patch b/etherape-resolv.patch
new file mode 100644 (file)
index 0000000..1576487
--- /dev/null
@@ -0,0 +1,36 @@
+--- etherape-0.9.0/configure.in.orig   2003-03-01 23:05:30.000000000 +0100
++++ etherape-0.9.0/configure.in        2004-07-14 21:21:22.064405638 +0200
+@@ -45,14 +45,25 @@
+ # required to #include <resolv.h> for the test to succeed.
+ # To go around it I included the test for __res_init
+-AC_CHECK_FUNC(res_init, , 
+-  AC_CHECK_LIB(bind, res_init, , 
+-   AC_CHECK_LIB(resolv, res_init, ,
+-    AC_CHECK_LIB(c, __res_init, , AC_MSG_ERROR(No resolver library found)))))
+-
+-AC_CHECK_FUNC(res_mkquery, , 
+-  AC_CHECK_LIB(bind, res_mkquery, , 
+-   AC_CHECK_LIB(resolv, res_mkquery, , AC_MSG_ERROR(No resolver library found))))
++AC_CHECK_FUNC(res_init, , [
++  AC_CHECK_FUNC(__res_init, , [
++    AC_CHECK_LIB(resolv, res_init, , [
++      AC_CHECK_LIB(resolv, __res_init, , [
++      AC_CHECK_LIB(bind, res_init, , [AC_MSG_ERROR([No resolver library found])])
++      ])
++    ])
++  ])
++])
++                         
++AC_CHECK_FUNC(res_mkquery, , [
++  AC_CHECK_FUNC(__res_mkquery, , [
++    AC_CHECK_LIB(resolv, res_mkquery, , [
++      AC_CHECK_LIB(resolv, __res_mkquery, , [
++      AC_CHECK_LIB(bind, res_mkquery, , [AC_MSG_ERROR([No resolver library found])])
++      ])
++    ])
++  ])
++])
+ # Check for the pcap library.
+ AC_ARG_ENABLE(static-pcap,
This page took 0.069936 seconds and 4 git commands to generate.