diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-03-15 18:10:20 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-03-15 18:10:20 +0100 |
commit | 44787565715f0622cc1d049854427d735ca1c14b (patch) | |
tree | 4357b3d1d5a0fdb31348061ba20845bd464b622a /source4 | |
parent | e548ec9c24d7f05fea81910b8c7cf3fc0bd137db (diff) | |
download | samba-44787565715f0622cc1d049854427d735ca1c14b.tar.gz samba-44787565715f0622cc1d049854427d735ca1c14b.tar.bz2 samba-44787565715f0622cc1d049854427d735ca1c14b.zip |
Strip /usr/include from include flags, so we don't end up including
the system tevent if it's too old.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/config.m4 | 2 | ||||
-rw-r--r-- | source4/build/m4/public.m4 | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/source4/auth/config.m4 b/source4/auth/config.m4 index fb9ee58c60..9735b17cac 100644 --- a/source4/auth/config.m4 +++ b/source4/auth/config.m4 @@ -28,6 +28,8 @@ if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_cli SASL_CPPFLAGS="$CPPFLAGS" SASL_LDFLAGS="$LDFLAGS" LIB_REMOVE_USR_LIB(SASL_LDFLAGS) + CFLAGS_REMOVE_USR_INCLUDE(SASL_CPPFLAGS) + CFLAGS_REMOVE_USR_INCLUDE(SASL_CFLAGS) else SMB_ENABLE(cyrus_sasl,NO) fi diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4 index 6860e56e7f..732de1e20e 100644 --- a/source4/build/m4/public.m4 +++ b/source4/build/m4/public.m4 @@ -101,10 +101,12 @@ AC_DEFUN([SMB_EXT_LIB_FROM_PKGCONFIG], ac_cv_$1_libs_only_other="`$PKG_CONFIG --libs-only-other '$2'` `$PKG_CONFIG --libs-only-L '$2'`" LIB_REMOVE_USR_LIB(ac_cv_$1_libs_only_other) + ac_cv_$1_includedir_only="`$PKG_CONFIG --cflags-only-I '$2'`" + CFLAGS_REMOVE_USR_INCLUDE(ac_cv_$1_includedir_only) SMB_EXT_LIB($1, [`$PKG_CONFIG --libs-only-l '$2'`], [`$PKG_CONFIG --cflags-only-other '$2'`], - [`$PKG_CONFIG --cflags-only-I '$2'`], + [$ac_cv_$1_includedir_only], [$ac_cv_$1_libs_only_other]) ac_cv_$1_found=yes |