From 7e00eb197c8e0932d079678bab6fe43cd05dd21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Wed, 26 Nov 2014 19:52:12 +0100 Subject: Fix arts detection Add sndio detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- configure.in.in | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configure.in.in b/configure.in.in index b25704d3..f7aa24ef 100644 --- a/configure.in.in +++ b/configure.in.in @@ -547,10 +547,24 @@ AC_PATH_PROG(ARTSCCONFIG, artsc-config, no, $artsc_config_test_path) if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then LIB_ARTS="-lartskde" - ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`] - ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts" + ARTS_CFLAGS=[`$PKG_CONFIG --cflags arts`] ARTS_LIBS=[`$PKG_CONFIG --libs-only-l arts`] AC_DEFINE(HAVE_ARTS, 1, [have arts support in juk]) + + AC_TRY_COMPILE([ + #include + ],[ + #ifdef SNDIO_H + /* We have sndio library */ + #else + # Error no sndio library + #endif + ], + have_sndio=yes, + have_sndio=no); + if test "x$have_sndio" = "xyes" ; then + ARTS_LIBS="$ARTS_LIBS -lsndio" + fi else build_arts="no" LIB_ARTS="" -- cgit v1.2.1