+echo $ac_n "checking whether to enable the adns resolver engine""... $ac_c" 1>&6
+echo "configure:3282: checking whether to enable the adns resolver engine" >&5
+# Check whether --enable-adns or --disable-adns was given.
+if test "${enable_adns+set}" = set; then
+ enableval="$enable_adns"
+ unet_cv_enable_adns=$enable_adns
+else
+ if eval "test \"`echo '$''{'unet_cv_enable_adns'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ unet_cv_enable_adns=yes
+fi
+
+fi
+
+
+echo "$ac_t""$unet_cv_enable_adns" 1>&6
+
+if test x"$unet_cv_enable_adns" != xno; then
+ cat >> confdefs.h <<\EOF
+#define USE_ADNS
+EOF
+
+ subdirs="adns"
+
+ RES_C="res_adns.c"
+ LIBS="../adns/src/libadns.a $LIBS"
+ ADNS_SUBDIR="adns"
+else
+ RES_C="res_libresolv.c"
+ ADNS_SUBDIR=""
+
+
+echo $ac_n "checking for library containing res_mkquery""... $ac_c" 1>&6
+echo "configure:3315: checking for library containing res_mkquery" >&5
+if eval "test \"`echo '$''{'ac_cv_search_res_mkquery'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_func_search_save_LIBS="$LIBS"
+ac_cv_search_res_mkquery="no"
+cat > conftest.$ac_ext <<EOF
+#line 3322 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char res_mkquery();
+
+int main() {
+res_mkquery()
+; return 0; }
+EOF
+if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_search_res_mkquery="none required"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+test "$ac_cv_search_res_mkquery" = "no" && for i in resolv; do
+LIBS="-l$i $ac_func_search_save_LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 3344 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char res_mkquery();
+
+int main() {
+res_mkquery()
+; return 0; }
+EOF
+if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_search_res_mkquery="-l$i"
+break
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+done
+LIBS="$ac_func_search_save_LIBS"
+fi
+
+echo "$ac_t""$ac_cv_search_res_mkquery" 1>&6
+if test "$ac_cv_search_res_mkquery" != "no"; then
+ test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
+
+else :
+ { echo "configure: error: Unable to find library containing res_mkquery()" 1>&2; exit 1; }
+fi
+fi
+
+
+