summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 19:22:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 19:22:15 +0000
commitb8493052fa9755981a09ddac8f137c544db129f6 (patch)
tree1bb3372aa76b96780ed837a26de1911fd292f75b
parenta7aeac7f2dc77a7c02b48d0fa8f649aed6cedbef (diff)
downloadadmin-b8493052fa9755981a09ddac8f137c544db129f6.tar.gz
admin-b8493052fa9755981a09ddac8f137c544db129f6.zip
Fix KDE_CHECK_HEADER in the Autotools admin/ directory
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/admin@1236345 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--acinclude.m4.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/acinclude.m4.in b/acinclude.m4.in
index f0bdaa0..51eb845 100644
--- a/acinclude.m4.in
+++ b/acinclude.m4.in
@@ -2364,6 +2364,11 @@ LIBS="$LIBS $X_EXTRA_LIBS"
if test "$GXX" = "yes"; then
CXXFLAGS="$CXXFLAGS -pedantic-errors"
fi
+if test -z "$qt_includes"; then
+ CXXFLAGS="$CXXFLAGS"
+else
+ CXXFLAGS="$CXXFLAGS -I$qt_includes"
+fi
AC_TRY_COMPILE([
$2
],
@@ -5298,7 +5303,7 @@ AC_DEFINE_UNQUOTED(KDEMAXPATHLEN,$ac_cv_maxpathlen, [Define a safe value for MAX
AC_DEFUN([KDE_CHECK_HEADER],
[
kde_safe_cppflags=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS $all_includes -I/usr/include/tqt"
+ CPPFLAGS="$CPPFLAGS $all_includes -I$kde_incdir/kde -I/usr/include/tqt"
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER([$1], [$2], [$3], [$4])
@@ -5311,7 +5316,7 @@ AC_DEFUN([KDE_CHECK_HEADERS],
AH_CHECK_HEADERS([$1])
AC_LANG_SAVE
kde_safe_cppflags=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS $all_includes -I/usr/include/tqt"
+ CPPFLAGS="$CPPFLAGS $all_includes -I$kde_incdir/kde -I/usr/include/tqt"
AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS([$1], [$2], [$3], [$4])
CPPFLAGS=$kde_safe_cppflags