AC_CHECK_LIB(gen, main)
])
-dnl Check for resolver routines
-AC_CHECK_FUNCS(res_search)
-if test $ac_cv_func_res_search = "no" ; then
- AC_CHECK_LIB(bind, res_search)
- if test "$ac_cv_lib_bind_res_search" = "yes" ; then
+if test $ol_enable_dns != no ; then
+ dnl Check for resolver routines
+ AC_CHECK_FUNC(res_search,:)
+ if test $ac_cv_func_res_search = no ; then
+ AC_CHECK_LIB(bind, res_search)
+ ac_cv_func_res_search=$ac_cv_lib_bind_res_search
+ fi
+ if test $ac_cv_func_res_search = no ; then
+ AC_CHECK_LIB(resolv, res_search)
+ ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
+ fi
+
+ if test "$ac_cv_func_res_search" = yes ; then
AC_DEFINE(HAVE_RES_SEARCH,1,
[define if you have res_search()])
+ elif test $ol_enable_dns = yes ; then
+ AC_MSG_ERROR([--enable-dns requires res_search])
else
- AC_CHECK_LIB(resolv, res_search)
- if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
- AC_DEFINE(HAVE_RES_SEARCH,1,
- [define if you have res_search()])
- fi
+ AC_MSG_WARN([no res_search, disabling DNS support])
fi
fi
libutil.h \
limits.h \
locale.h \
+ netinet/tcp.h \
malloc.h \
memory.h \
psap.h \