commit 02275813321b37f6fa341f3c7803097097927461
parent c18596e5d063058d69159fe08b2267976fc6c7a1
Author: shdwcodr <shadowcoder111@proton.me>
Date: Sun, 9 Nov 2025 21:30:45 +0530
Add autoconf check for openssl/engine.h header
Since the OpenSSL engine API is deprecated and some distros (like Fedora)
now ship it in a separate package, this ensures a clear configure-time
error instead of a later build failure.
Related issue: #41133 (Detect missing OpenSSL engine at configure time)
Signed-off-by: shdwcodr <shadowcoder111@proton.me>
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -1072,6 +1072,16 @@ dnl and later. We want to migrate away from them, but that will be a lot of
dnl work. (See ticket tor#40166.) For now, we disable the deprecation
dnl warnings.
+dnl --- Check for OpenSSL engine header ---
+AC_CHECK_HEADERS([openssl/engine.h], [],
+ [AC_MSG_ERROR([Missing required header openssl/engine.h.
+
+On Debian/Ubuntu install: libssl-dev
+On Fedora/RHEL install: openssl-devel-engine
+
+Then re-run configure.])])
+
+
AC_MSG_CHECKING([for OpenSSL implementation])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <openssl/opensslv.h>