diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-10-16 19:39:12 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-10-16 19:39:12 +0200 |
commit | 1602d89a8fda0eeec793ba2205a152d8ddd898e2 (patch) | |
tree | 431f75776bf542e697b13c17aebd1c96bd8bbb50 /configure.in.in | |
parent | a30375c69fa166f3a2af7637f5a8dfac0bc20114 (diff) | |
download | k3b-1602d89a8fda0eeec793ba2205a152d8ddd898e2.tar.gz k3b-1602d89a8fda0eeec793ba2205a152d8ddd898e2.zip |
cmake: Fix FTBFS due to artsc includes
This relates to bug 2714
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'configure.in.in')
-rw-r--r-- | configure.in.in | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/configure.in.in b/configure.in.in index 27cec92..7fe8c4a 100644 --- a/configure.in.in +++ b/configure.in.in @@ -35,13 +35,21 @@ AM_CONDITIONAL(compile_libsamplerate, [test -z "$LIBSAMPLERATE"]) ARTS_LIBS="" if test "x$build_arts" = "xyes"; then dnl Find aRts - KDE_CHECK_HEADERS(artsc/artsc.h, - [arts_available=yes - ARTS_LIBS="-lartsc"], - [arts_available=no] - ) + if $PKG_CONFIG artsc --exists; then + arts_available=yes + ARTS_LIBS="-lartsc" + ARTS_INCLUDES="`$PKG_CONFIG artsc --cflags`" + else + KDE_CHECK_HEADERS(artsc/artsc.h, + [arts_available=yes + ARTS_LIBS="-lartsc" + ARTS_INCLUDES="`$ARTSCCONFIG --cflags`"], + [arts_available=no] + ) + fi fi AC_SUBST(ARTS_LIBS) +AC_SUBST(ARTS_INCLUDES) AM_CONDITIONAL(include_arts, [test -n "$ARTS_LIBS"]) if test "x$build_arts" = "xyes" -a "x$arts_available" = "xyes"; then AC_DEFINE(WITH_ARTS,1,[defined if arts support is compiled in]) |