Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,12 @@ ...@@ -100,6 +100,12 @@
/* define if you have ptrdiff_t */ /* define if you have ptrdiff_t */
#undef 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() */ /* define if you have sched_yield() */
#ifdef __notdef__ #ifdef __notdef__
/* see second sched_yield define */ /* see second sched_yield define */
......
This diff is collapsed.
...@@ -274,8 +274,18 @@ dnl ...@@ -274,8 +274,18 @@ dnl
]) ])
dnl Check for resolver routines dnl Check for resolver routines
AC_CHECK_LIB(bind, res_search) AC_CHECK_FUNCS(res_search)
AC_CHECK_LIB(resolv, 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 dnl HP-UX requires -lV3
AC_CHECK_LIB(V3, sigset) AC_CHECK_LIB(V3, sigset)
...@@ -1207,7 +1217,6 @@ AC_CHECK_FUNCS( \ ...@@ -1207,7 +1217,6 @@ AC_CHECK_FUNCS( \
memcpy \ memcpy \
memmove \ memmove \
mkstemp \ mkstemp \
res_search \
select \ select \
setpwfile \ setpwfile \
setsid \ setsid \
......
...@@ -182,6 +182,12 @@ ...@@ -182,6 +182,12 @@
/* define if you have ptrdiff_t */ /* define if you have ptrdiff_t */
#undef 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() */ /* define if you have sched_yield() */
#ifdef __notdef__ #ifdef __notdef__
/* see second sched_yield define */ /* see second sched_yield define */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment