net/mtr: remove libresolv dependency
[openwrt/svn-archive/archive.git] / net / mtr / patches / 520-libresolv_fix.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -72,10 +72,10 @@ AC_CHECK_FUNC(gethostbyname, ,
4 AC_CHECK_FUNCS(seteuid)
5 # AC_CHECK_FUNC(setuid, , AC_MSG_ERROR (I Need either seteuid or setuid))
6
7 -AC_CHECK_FUNC(res_mkquery, ,
8 - AC_CHECK_LIB(bind, res_mkquery, ,
9 - AC_CHECK_LIB(resolv, res_mkquery, ,
10 - AC_CHECK_LIB(resolv, __res_mkquery, , AC_MSG_ERROR(No resolver library found)))))
11 +#AC_CHECK_FUNC(res_mkquery, ,
12 +# AC_CHECK_LIB(bind, res_mkquery, ,
13 +# AC_CHECK_LIB(resolv, res_mkquery, ,
14 +# AC_CHECK_LIB(resolv, __res_mkquery, , AC_MSG_ERROR(No resolver library found)))))
15 # This next line would override the just detected-or-not -lresolv.
16 # This apparently hurts BSD. And it's bad practise. So it should go.
17 # However, it probably didn't get added for nothing..... Holler if