diff options
author | Slávek Banko <[email protected]> | 2016-10-16 19:39:12 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-10-16 19:39:24 +0200 |
commit | b12000555e93cf620d53d321ef637912535b66bb (patch) | |
tree | 6fcec9ad78032c25c0d786070336ca5175958a0c /configure.in.in | |
parent | bd93d7599e15a265d9ab4af71883afd5f9e82a96 (diff) | |
download | k3b-b12000555e93cf620d53d321ef637912535b66bb.tar.gz k3b-b12000555e93cf620d53d321ef637912535b66bb.zip |
cmake: Fix FTBFS due to artsc includes
This relates to bug 2714
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 1602d89a8fda0eeec793ba2205a152d8ddd898e2)
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]) |