--- lib/configure.orig	2022-04-15 17:57:59.000000000 -0400
+++ lib/configure	2022-05-05 04:14:34.425946000 -0400
@@ -31,6 +31,10 @@
 	then
 		sys=freebsd
 	fi
+	if [ "$sys" = "MidnightBSD" ]
+	then
+		sys=freebsd
+	fi
 	if [ "$sys" = "GNU/kFreeBSD" ]
 	then
 		sys=kfreebsd
