From: kouril Date: Tue, 4 Nov 2003 16:59:01 +0000 (+0000) Subject: Added check for Heimdal X-Git-Tag: v5.0-rc3~9 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_kerb.cvs%2F.git;a=commitdiff_plain;h=ddeb691e93cdeb97a980b7ba05b8a94cdee09c78 Added check for Heimdal --- diff --git a/configure.in b/configure.in index b2e0c93..cea911f 100644 --- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ AC_CHECK_HEADERS([limits.h netdb.h stddef.h stdlib.h string.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. #AC_C_CONST -#AC_TYPE_SIZE_T +AC_TYPE_SIZE_T AC_STRUCT_TM # Checks for library functions. @@ -71,8 +71,13 @@ if test "x$with_krb5" != "xno" ; then # check if krb5_cc_gen_new() is implemented by the krb5 library AC_CHECK_FUNC(krb5_cc_gen_new, [AC_DEFINE(HAVE_KRB5_CC_GEN_NEW)]) - # check if you're using Heimdal - # ... + # check for Heimdal + AC_MSG_CHECKING(whether we are using Heimdal) + AC_TRY_COMPILE([#include ], + [ char *tmp = heimdal_version; ], + [ AC_MSG_RESULT(yes) + AC_DEFINE(HEIMDAL) ], + [ AC_MSG_RESULT(no) ]) fi CFLAGS=$ac_save_CFLAGS