$OpenBSD: patch-configure_in,v 1.3 2002/05/12 18:15:14 brad Exp $
--- configure.in.orig	Mon Jan  7 04:09:28 2002
+++ configure.in	Sun May 12 13:53:25 2002
@@ -161,7 +161,7 @@ for I in $LDFLAGS $LIBS -L/usr/lib; do
 	-L*)
 	THEFILE="`echo $I | sed -e 's,^-L,,'`"
 	echo "From $I, checking in dir $THEFILE for libwrap.so" 1>&5
-	if test -f $THEFILE/libwrap.so; then
+	if test -f $THEFILE/libwrap.so*; then
 		LIB_WRAP=-lwrap
 		echo "Found $THEFILE/libwrap.so" 1>&5
 		break
@@ -197,7 +197,7 @@ fi
 
 dnl find out if we need -lnsl or whatever
 LIB_NSL=
-if test -n "$LIBWRAP_PATH"; then
+if test -n "$LIBWRAP_PATH" || test -n "$LIB_WRAP"; then
 	AC_MSG_CHECKING(whether -lwrap requires -lnsl)
 	ORIG_LIBS="$LIBS"
 	LIBS="$LIBWRAP_PATH $LIB_WRAP $LIBS"
@@ -227,7 +227,7 @@ fi
 AC_SUBST(LIBWRAP_PATH)
 AC_SUBST(LIB_WRAP)
 AM_CONDITIONAL(HAVE_HOSTS_ACCESS, test -n "$LIBWRAP_PATH")
-if test -n "$LIBWRAP_PATH"; then
+if test -n "$LIBWRAP_PATH" || test -n "$LIB_WRAP"; then
 	AC_DEFINE(HAVE_HOSTS_ACCESS)
 fi
 
@@ -324,7 +324,6 @@ AC_CHECK_ALIGNOF(CORBA_pointer)
 CPPFLAGS=$orig_CPPFLAGS 
 
 AC_CONFIG_SUBDIRS(libIDL)
-AC_CONFIG_SUBDIRS(popt)
 
 AC_SUBST(pkglibdir)
 
