summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexey Shabalin <shaba@altlinux.ru>2014-02-07 17:02:03 +0400
committerJakub Hrozek <jhrozek@redhat.com>2014-03-14 15:11:59 +0100
commita90c31fc52a26a587dca1b3a610f582fca463634 (patch)
tree63705e8e302e530486c5a0c28cff8b0f6606802e /src
parentcb7e16f9fbb989d06b6b01e0a21e69a749dffa08 (diff)
downloadsssd-a90c31fc52a26a587dca1b3a610f582fca463634.tar.gz
sssd-a90c31fc52a26a587dca1b3a610f582fca463634.tar.xz
sssd-a90c31fc52a26a587dca1b3a610f582fca463634.zip
Use KRB5_CFLAGS where appropriate
There are cases when MIT Kerberos is installed with includes in a subdirectory of /usr/include (or /usr/local/include). In such case we have to properly use KRB5_CFLAGS to reach them. https://fedorahosted.org/sssd/ticket/2226 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/external/krb5.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/src/external/krb5.m4 b/src/external/krb5.m4
index 1a50bf1c7..861c8c9fd 100644
--- a/src/external/krb5.m4
+++ b/src/external/krb5.m4
@@ -67,6 +67,8 @@ AC_CHECK_FUNCS([krb5_get_init_creds_opt_alloc krb5_get_error_message \
krb5_cc_get_full_name])
CFLAGS=$SAVE_CFLAGS
LIBS=$SAVE_LIBS
+CFLAGS="$CFLAGS $KRB5_CFLAGS"
+LIBS="$LIBS $KRB5_LIBS"
if test x$ac_cv_header_krb5_h != xyes -a x$ac_cv_header_krb5_krb5_h != xyes
then
@@ -93,3 +95,6 @@ AM_CONDITIONAL([BUILD_KRB5_LOCATOR_PLUGIN],
[test x$have_locate_plugin = xyes -a x$build_locator = xyes])
AM_COND_IF([BUILD_KRB5_LOCATOR_PLUGIN],
[AC_DEFINE_UNQUOTED(HAVE_KRB5_LOCATOR_PLUGIN, 1, [Build with krb5 locator plugin])])
+
+CFLAGS=$SAVE_CFLAGS
+LIBS=$SAVE_LIBS