From ddeb691e93cdeb97a980b7ba05b8a94cdee09c78 Mon Sep 17 00:00:00 2001 From: kouril Date: Tue, 4 Nov 2003 16:59:01 +0000 Subject: [PATCH] Added check for Heimdal --- configure.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.1.4