Add check for __res_query in default libraries

This commit is contained in:
Kurt Zeilenga 2001-10-21 00:32:47 +00:00
parent 7e1c4f272d
commit 125165ff97
2 changed files with 582 additions and 524 deletions

1098
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -858,8 +858,15 @@ fi
dnl ----------------------------------------------------------------
dnl Check for resolver routines
dnl need to check for both res_query and __res_query
dnl need to check -lc, -lbind, and -lresolv
ol_link_dnssrv=no
AC_CHECK_FUNC(res_query,:)
if test $ac_cv_func_res_query = no ; then
AC_CHECK_FUNC(__res_query,:)
ac_cv_func_res_query=$ac_cv_func___res_query
fi
if test $ac_cv_func_res_query = no ; then
AC_CHECK_LIB(bind, res_query)
ac_cv_func_res_query=$ac_cv_lib_bind_res_query
@ -2283,6 +2290,7 @@ AC_CHECK_FUNCS( \
strtoul \
strspn \
sysconf \
usleep \
waitpid \
wait4 \
write \