diff options
author | Slávek Banko <[email protected]> | 2018-05-01 11:31:42 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-05-01 11:31:55 +0200 |
commit | 1254326514bf8a3e9de68a916a983f2a024492bd (patch) | |
tree | 9ef62a85ed07933be1b9705f4b65ada687b2d83f /configure.in.in | |
parent | 554d39d1810f4baa54a4bc38cd0bb5f3ce370aef (diff) | |
download | kbibtex-1254326514bf8a3e9de68a916a983f2a024492bd.tar.gz kbibtex-1254326514bf8a3e9de68a916a983f2a024492bd.zip |
Fix FTBFS with ICU >= 58
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit a89540e549ac80be7509f0e04c6e128289e262b8)
Diffstat (limited to 'configure.in.in')
-rw-r--r-- | configure.in.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/configure.in.in b/configure.in.in index 8468170..ef40914 100644 --- a/configure.in.in +++ b/configure.in.in @@ -17,4 +17,21 @@ PKG_CHECK_MODULES([LIBXSLT], [libxslt], [AC_DEFINE([HAVE_XSLT],1,[Define to 1 if AC_SUBST(LIBXSLT_LIBS) AC_SUBST(LIBXSLT_CFLAGS) - +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) |