--- espgs-8.15.1/src/configure.ac
+++ espgs-8.15.1/src/configure.ac
@@ -742,8 +742,16 @@
 		DYNAMIC_LIBS="-rdynamic -ldl"
 		X_DEVS=""
 		;;
+		*BSD)
+		DYNAMIC_CFLAGS="-fPIC"
+		DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so"
+		DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\""
+		DYNAMIC_LDFLAGS="-fPIC -shared"
+		DYNAMIC_LIBS=""
+		X_DEVS=""
+		;;
 		*)
-		AC_MSG_ERROR(Sorry, dynamic driver support not available on this platform!)
+		AC_MSG_ERROR([Sorry, dynamic driver support not available on this platform!])
 		;;
 	esac
 ])
