From 769e8885c220b902b5cf074d18a8cefa2f52e8ec Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 20 Sep 2016 22:38:17 -0500 Subject: Add missing Kerberos checks --- ConfigureChecks.cmake | 10 ++++++++++ config.h.cmake | 3 +++ 2 files changed, 13 insertions(+) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index ee7350711..fc57f0803 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -433,6 +433,16 @@ if( WITH_HAL AND (BUILD_KSMSERVER OR BUILD_KICKER OR BUILD_TDEIOSLAVES) ) endif( ) +# check for krb5 +if( WITH_KRB5 ) + pkg_search_module( KRB5 krb5 ) + if( NOT KRB5_FOUND ) + message(FATAL_ERROR "\nKerberos support was requested, but krb5 was not found on your system" ) + endif( NOT KRB5_FOUND ) + set( HAVE_KRB5 1 ) + set( LIBTDELDAP_LIBRARIES "tdeldap" ) +endif( ) + # check for libr if( WITH_ELFICON ) pkg_search_module( LIBR libr ) diff --git a/config.h.cmake b/config.h.cmake index 6e27a2787..d7d9b7a20 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -36,6 +36,9 @@ // libr #cmakedefine HAVE_ELFICON 1 +// krb5 +#cmakedefine HAVE_KRB5 1 + // libconfig #cmakedefine HAVE_LIBCONFIG 1 #cmakedefine HAVE_LIBCONFIG_OLD_API 1 -- cgit v1.2.3