--- configure.orig	2025-12-23 23:14:33 UTC
+++ configure
@@ -15340,7 +15340,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
@@ -17672,7 +17672,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
@@ -18539,7 +18539,7 @@ case "$host_os" in
 
 if test "$cf_result" = no ; then
 case "$host_os" in
-freebsd*)
+XXXfreebsd*)
 	echo "$as_me:18543: 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
@@ -23147,13 +23147,15 @@ echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
 echo "$as_me:23147: 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}:23153: 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}:23159: testing package openssl CFLAGS: $cf_pkgconfig_incs ..." 1>&5
