Branch: master

db52a594 2016-09-21 12:32:12 Timothy Pearson
Fix FTBFS on Ubuntu Lucid
M ConfigureChecks.cmake
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index fc57f08..adf578d 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -437,7 +437,10 @@
 if( WITH_KRB5 )
   pkg_search_module( KRB5 krb5 )
   if( NOT KRB5_FOUND )
+    check_include_file( kadm5/admin.h HAVE_KRB_KADM_H )
+    if( NOT HAVE_KRB_KADM_H )
       message(FATAL_ERROR "\nKerberos support was requested, but krb5 was not found on your system" )
+    endif( NOT HAVE_KRB_KADM_H )
   endif( NOT KRB5_FOUND )
   set( HAVE_KRB5 1 )
   set( LIBTDELDAP_LIBRARIES "tdeldap" )