diff --git a/configure b/configure
index 34bb064d41421895a4d58aa5eb73151fd6bf9bf6..e242e73cb926944e659cf56c7076bb6b63739527 100755
--- a/configure
+++ b/configure
@@ -1306,6 +1306,10 @@ if [ "$avs" = "auto" ] ; then
         define HAVE_AVS
         AVS_LIBS="-ldl"
         LDFLAGSCLI="$AVS_LIBS $LDFLAGSCLI"
+    elif [ "$SYS" = "FREEBSD" -o "$SYS" = "OPENBSD" -o "$SYS" = "NETBSD" -o "$SYS" = "HAIKU" ] ; then
+        avs="yes"
+        define HAVE_AVS
+        # dlopen is exported from libc on both *BSD and Haiku
     fi
 fi