--- configure.orig	2023-12-23 23:38:33 UTC
+++ configure
@@ -14931,7 +14931,7 @@ case "$host_os" in
 fi
 
 case "$host_os" in
-freebsd*)
+XXXfreebsd*)
 	# This is only necessary if you are linking against an obsolete
 	# version of ncurses (but it should do no harm, since it is static).
 	if test "$cf_nculib_root" = ncurses ; then
@@ -17249,7 +17249,7 @@ case "$host_os" in
 fi
 
 case "$host_os" in
-freebsd*)
+XXXfreebsd*)
 	# This is only necessary if you are linking against an obsolete
 	# version of ncurses (but it should do no harm, since it is static).
 	if test "$cf_nculib_root" = ncurses ; then
@@ -18116,7 +18116,7 @@ case "$host_os" in
 
 if test "$cf_result" = no ; then
 case "$host_os" in
-freebsd*)
+XXXfreebsd*)
 	echo "$as_me:18120: checking for tgoto in -lmytinfo" >&5
 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
@@ -22699,13 +22699,15 @@ echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
 echo "$as_me:22699: checking for OpenSSL" >&5
 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
 
-if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "openssl"; then
-	test -n "$verbose" && echo "	found package openssl" 1>&6
+## FreeBSD: Work around stupidity where base doesn't ship openssl pkg-config data
+#if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "openssl"; then
+#	test -n "$verbose" && echo "	found package openssl" 1>&6
+if true; then
 
 echo "${as_me:-configure}:22705: testing found package openssl ..." 1>&5
 
-	cf_pkgconfig_incs="`$PKG_CONFIG --cflags "openssl" 2>/dev/null`"
-	cf_pkgconfig_libs="`$PKG_CONFIG --libs   "openssl" 2>/dev/null`"
+	cf_pkgconfig_incs=""
+	cf_pkgconfig_libs="-lssl -lcrypto"
 	test -n "$verbose" && echo "	package openssl CFLAGS: $cf_pkgconfig_incs" 1>&6
 
 echo "${as_me:-configure}:22711: testing package openssl CFLAGS: $cf_pkgconfig_incs ..." 1>&5
