diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-05-01 12:52:20 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-05-01 12:52:20 +0200 |
commit | 23f1f6f93256304eab76cd199408b71a649d82a8 (patch) | |
tree | 9351a2970ced4a194229c59365a758f5d21c598c /configure.in.in | |
parent | 132a483427c9cb3eb7c6ac3f4df439030382484c (diff) | |
download | tdewebdev-23f1f6f93256304eab76cd199408b71a649d82a8.tar.gz tdewebdev-23f1f6f93256304eab76cd199408b71a649d82a8.zip |
Fix FTBFS with ICU >= 58
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'configure.in.in')
-rw-r--r-- | configure.in.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in index ca68d7c4..2354329b 100644 --- a/configure.in.in +++ b/configure.in.in @@ -259,3 +259,23 @@ AC_SUBST(enable_editors) AC_CHECK_PROGS(TAR, gnutar gtar tar, [AM_MISSING_PROG(tar)]) AC_CHECK_PROG(GZIP_COMMAND, gzip, gzip) + +# Check for ICU CXXFLAGS +KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [ + AC_MSG_WARN([Could not find pkg-config]) +]) +if test -n "$PKGCONFIG"; then + ICU_VERSION=`$PKGCONFIG icu-uc --modversion 2>/dev/null` + if test -n "$ICU_VERSION"; then + ICU_CXXFLAGS=`$PKGCONFIG icu-uc --variable=CXXFLAGS` + fi +fi +if test -z "$ICU_VERSION"; then + KDE_FIND_PATH(icu-config, ICU_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [ + AC_MSG_WARN([Could not find icu-config]) + ]) + if test -n "$ICU_CONFIG"; then + ICU_CXXFLAGS=`$ICU_CONFIG --cxxflags` + fi +fi +AC_SUBST(ICU_CXXFLAGS) |