From 7b0b6d0b8cbfe12e300ba20f84d80984888d6ee4 Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 12 Jul 2002 22:11:54 +0000 Subject: [PATCH] Bail out the given path does not have the libraries in it. --- ext/imap/config.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/imap/config.m4 b/ext/imap/config.m4 index a2a0647895..6768dedf18 100644 --- a/ext/imap/config.m4 +++ b/ext/imap/config.m4 @@ -68,6 +68,12 @@ AC_DEFUN(PHP_IMAP_KRB_CHK, [ fi if test "$PHP_KERBEROS" != "no"; then + if test ! -f $PHP_KERBEROS/lib/libkrb5.a && test ! -f $PHP_KERBEROS/lib/libkrb5.$SHLIB_SUFFIX_NAME; then + AC_MSG_ERROR([Kerberos libraries not found in $PHP_KERBEROS/lib. + + Check the path given to --with-kerberos (if no path is given, defaults to /usr/kerberos ) + ]) + fi AC_DEFINE(HAVE_IMAP_KRB,1,[ ]) PHP_ADD_LIBPATH($PHP_KERBEROS/lib, IMAP_SHARED_LIBADD) PHP_ADD_LIBRARY(gssapi_krb5, 1, IMAP_SHARED_LIBADD) -- 2.40.0