+echo $ac_n "checking for the tcp wrapper library""... $ac_c" 1>&6
+echo "configure:1432: checking for the tcp wrapper library" >&5
+ if eval "test \"`echo '$''{'knfsd_cv_tcp_wrapper'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ old_LIBS="$LIBS"
+ LIBS="$LIBS -lwrap $LIBNSL"
+ cat > conftest.$ac_ext <<EOF
+#line 1439 "configure"
+#include "confdefs.h"
+
+ int deny_severity = 0;
+ int allow_severity = 0;
+int main() {
+return hosts_ctl ("nfsd", "", "")
+; return 0; }
+EOF
+if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ knfsd_cv_tcp_wrapper=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ knfsd_cv_tcp_wrapper=no
+fi
+rm -f conftest*
+ LIBS="$old_LIBS"
+fi
+
+ echo "$ac_t""$knfsd_cv_tcp_wrapper" 1>&6
+ if test "$knfsd_cv_tcp_wrapper" = yes; then
+ CFLAGS="$CFLAGS -DHAVE_TCP_WRAPPER"
+ CXXFLAGS="$CXXFLAGS -DHAVE_TCP_WRAPPER"
+ LIBWRAP="-lwrap"
+ fi
+
+
+