diff options
author | Slávek Banko <[email protected]> | 2023-11-09 19:09:34 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2023-11-10 01:49:40 +0100 |
commit | 3019aa7ad1c3d6f20cd7bbd5d09253c4d3a800c5 (patch) | |
tree | 7c8d4ddfc5b57dc5c7edc04199ca96281ca3a21b | |
parent | bcdb3081fe7675689a57e1eacc4ba1cd0eee2c99 (diff) | |
download | admin-3019aa7ad1c3d6f20cd7bbd5d09253c4d3a800c5.tar.gz admin-3019aa7ad1c3d6f20cd7bbd5d09253c4d3a800c5.zip |
Improve TQt detection. Use CFLAGS from pkg-config
instead of hard-coded include paths.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 3bdc9fd55ff86f033cc1ffab9178d8453fa1ab2f)
-rw-r--r-- | acinclude.m4.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/acinclude.m4.in b/acinclude.m4.in index 9189858..6f39a26 100644 --- a/acinclude.m4.in +++ b/acinclude.m4.in @@ -1083,11 +1083,12 @@ AC_DEFUN([KDE_USE_TQT], [ kde_tqtver=0 kde_tqtsubver=0 - + + KDE_PKG_CHECK_MODULES(TQt, tqt) AC_LANG_SAVE AC_LANG_CPLUSPLUS ac_cxxflags_safe="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -I/usr/include/tqt -I/usr/include/tqt3" + CXXFLAGS="$CXXFLAGS $TQt_CFLAGS" AC_TRY_COMPILE([ #include <tqt.h> ], , |