diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3f7d582..025bcf8 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -13,6 +13,7 @@ tde_setup_architecture_flags( ) +include(CheckCXXSymbolExists) include(TestBigEndian) test_big_endian(WORDS_BIGENDIAN) @@ -85,3 +86,16 @@ if( BUILD_NOATUN_PLUGINS ) endif( ) endif( WITH_BERKELEY_DB ) endif( BUILD_NOATUN_PLUGINS ) + + +if( BUILD_TDEFILE_PLUGINS AND WITH_SSL ) + # FIXME: There should be a better way to check for SSL support in tdelibs, but at the time of + # writing tdelibs doesn't seam to provide one. <2025-08-11 Fat-Zer> + tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${TDE_INCLUDE_DIR} ) + check_cxx_symbol_exists( "KSSL_HAVE_SSL" "ksslconfig.h" KSSL_HAVE_SSL ) + tde_restore( CMAKE_REQUIRED_INCLUDES ) + + if( NOT KSSL_HAVE_SSL ) + tde_message_fatal( "SSL is requested, but tdelibs on your system was build without SSL support" ) + endif( ) +endif( ) |