]> git.pld-linux.org Git - packages/etherape.git/blame - etherape-resolv.patch
- fix libresolv check on amd64, prefer libresolv over libbind (everywhere)
[packages/etherape.git] / etherape-resolv.patch
CommitLineData
46942db8
JB
1--- etherape-0.9.0/configure.in.orig 2003-03-01 23:05:30.000000000 +0100
2+++ etherape-0.9.0/configure.in 2004-07-14 21:21:22.064405638 +0200
3@@ -45,14 +45,25 @@
4 # required to #include <resolv.h> for the test to succeed.
5 # To go around it I included the test for __res_init
6
7-AC_CHECK_FUNC(res_init, ,
8- AC_CHECK_LIB(bind, res_init, ,
9- AC_CHECK_LIB(resolv, res_init, ,
10- AC_CHECK_LIB(c, __res_init, , AC_MSG_ERROR(No resolver library found)))))
11-
12-AC_CHECK_FUNC(res_mkquery, ,
13- AC_CHECK_LIB(bind, res_mkquery, ,
14- AC_CHECK_LIB(resolv, res_mkquery, , AC_MSG_ERROR(No resolver library found))))
15+AC_CHECK_FUNC(res_init, , [
16+ AC_CHECK_FUNC(__res_init, , [
17+ AC_CHECK_LIB(resolv, res_init, , [
18+ AC_CHECK_LIB(resolv, __res_init, , [
19+ AC_CHECK_LIB(bind, res_init, , [AC_MSG_ERROR([No resolver library found])])
20+ ])
21+ ])
22+ ])
23+])
24+
25+AC_CHECK_FUNC(res_mkquery, , [
26+ AC_CHECK_FUNC(__res_mkquery, , [
27+ AC_CHECK_LIB(resolv, res_mkquery, , [
28+ AC_CHECK_LIB(resolv, __res_mkquery, , [
29+ AC_CHECK_LIB(bind, res_mkquery, , [AC_MSG_ERROR([No resolver library found])])
30+ ])
31+ ])
32+ ])
33+])
34
35 # Check for the pcap library.
36 AC_ARG_ENABLE(static-pcap,
This page took 0.06655 seconds and 4 git commands to generate.