I needed this patch to configure.ac in order to get it to work with FreeBSD
Code:
Index: configure.ac
===================================================================
--- configure.ac (revision 370)
+++ configure.ac (revision 371)
@@ -158,7 +158,7 @@
])
# dl
-if test "$OSNAME" != "NetBSD"; then
+if test "$OSNAME" != "NetBSD" -a "$OSNAME" != "FreeBSD"; then
AC_CHECK_LIB( dl, dlopen, [],
[LDFLAGS="-ldl $LDFLAGS"
AC_TRY_LINK([char dlopen();],