$NetBSD: patch-ab,v 1.10 2010/07/24 09:44:57 wiz Exp $

1. dynamic lib support does not depend on the existence of libdl
2. patch out error message about --without-iconv-base

--- configure.orig	2011-02-26 19:07:06.000000000 +0100
+++ configure	2011-02-27 13:56:52.000000000 +0100
@@ -3381,7 +3381,7 @@
       ;;
   esac
   if test x"$argvalid" = "xno"; then
-    as_fn_error $? "invalid option: $argcheck" "$LINENO" 5
+    echo "WARNING: invalid option: $argcheck"
   fi
 done
 
@@ -10381,13 +10381,13 @@
 
 
   if test x"$ac_cv_header_dlfcn_h" = "xyes" ; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
-$as_echo_n "checking for dlopen in -ldl... " >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
+$as_echo_n "checking for dlopen... " >&6; }
 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl  $LIBS"
+#LIBS="-ldl  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -10418,7 +10418,7 @@
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
-   DYNLIB_LIBS="-ldl";
+   DYNLIB_LIBS="";
 
 $as_echo "#define HAVE_DYNLIB_SUPPORT /**/" >>confdefs.h
 
