aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 48135eec..fdc61965 100644
--- a/configure.in
+++ b/configure.in
@@ -219,6 +219,19 @@ elif test "$OPENSSL" = "/usr/local/ssl/bin/openssl"; then
fi
AC_ARG_WITH(openssl,--with-openssl=<dir> sets path to openssl installation,[OPENSSL=$withval])
+AC_CHECK_HEADERS(krb5.h,FOUNDINCLUDE=yes,FOUNDINCLUDE=no)
+if test "$FOUNDINCLUDE" = "no"; then
+ _SAVEDCPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$_SAVEDCPPFLAGS -I/usr/kerberos/include"
+ unset ac_cv_header_krb5_h
+ AC_CHECK_HEADERS(krb5.h,
+ KRB5INCLUDE="-I/usr/kerberos/include"
+ FOUNDINCLUDE=yes,
+ FOUNDINCLUDE=no)
+fi
+AC_SUBST(SSLINCLUDE)
+CPPFLAGS="$_SAVEDCPPFLAGS $SSLINCLUDE"
+
dnl Check for OpenSSL header files
_SAVEDCPPFLAGS="$CPPFLAGS"
FOUNDINCLUDE=yes