Commit cb31c7aa authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Update check for res_search. If not available in $LIBS, check

in -lbind then in -lresolv.
parent a5653c87
......@@ -100,6 +100,12 @@
/* define if you have ptrdiff_t */
#undef HAVE_PTRDIFF_T
/* define if you have res_search() */
#ifdef __notdef__
/* see second res_search define */
#undef HAVE_RES_SEARCH
#endif
/* define if you have sched_yield() */
#ifdef __notdef__
/* see second sched_yield define */
......
This diff is collapsed.
......@@ -274,8 +274,18 @@ dnl
])
dnl Check for resolver routines
AC_CHECK_LIB(bind, res_search)
AC_CHECK_LIB(resolv, res_search)
AC_CHECK_FUNCS(res_search)
if test $ac_cv_func_res_search = "no" ; then
AC_CHECK_LIB(bind, res_search)
if test $ac_cv_libac_cv_lib_bind_res_search = "yes" ; then
AC_DEFINE(HAVE_RES_SEARCH,1)
else
AC_CHECK_LIB(resolv, res_search)
if test $ac_cv_libac_cv_lib_resolv_res_search = "yes" ; then
AC_DEFINE(HAVE_RES_SEARCH,1)
fi
fi
fi
dnl HP-UX requires -lV3
AC_CHECK_LIB(V3, sigset)
......@@ -1207,7 +1217,6 @@ AC_CHECK_FUNCS( \
memcpy \
memmove \
mkstemp \
res_search \
select \
setpwfile \
setsid \
......
......@@ -182,6 +182,12 @@
/* define if you have ptrdiff_t */
#undef HAVE_PTRDIFF_T
/* define if you have res_search() */
#ifdef __notdef__
/* see second res_search define */
#undef HAVE_RES_SEARCH
#endif
/* define if you have sched_yield() */
#ifdef __notdef__
/* see second sched_yield define */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment