--- configure.orig	2024-12-23 23:19:03 UTC
+++ configure
@@ -15326,7 +15326,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
@@ -17644,7 +17644,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
@@ -18511,7 +18511,7 @@ case "$host_os" in
 
 if test "$cf_result" = no ; then
 case "$host_os" in
-freebsd*)
+XXXfreebsd*)
 	echo "$as_me:18515: 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
@@ -23085,13 +23085,15 @@ echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
 echo "$as_me:23085: 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}:23091: 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}:23097: testing package openssl CFLAGS: $cf_pkgconfig_incs ..." 1>&5
