summaryrefslogtreecommitdiffstats
path: root/kioslave/audiocd/configure.in.in
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /kioslave/audiocd/configure.in.in
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/audiocd/configure.in.in')
-rw-r--r--kioslave/audiocd/configure.in.in46
1 files changed, 46 insertions, 0 deletions
diff --git a/kioslave/audiocd/configure.in.in b/kioslave/audiocd/configure.in.in
new file mode 100644
index 00000000..073d0f96
--- /dev/null
+++ b/kioslave/audiocd/configure.in.in
@@ -0,0 +1,46 @@
+AC_DEFUN([AC_CHECK_LIBFLAC],
+[
+ AC_LANG_SAVE
+ AC_LANG_C
+ have_libFLAC=no
+ KDE_CHECK_HEADER(FLAC/metadata.h,
+ [
+ KDE_CHECK_LIB(FLAC,FLAC__seekable_stream_decoder_process_single,
+ have_libFLAC=yes)
+
+ ])
+ if test "x$have_libFLAC" = "xyes"; then
+ LIBFLAC="-lFLAC"
+ AC_DEFINE(HAVE_LIBFLAC, 1,
+ [Define if you have libFLAC (required for loading FLAC files)])
+ fi
+ AC_SUBST(LIBFLAC)
+ AC_LANG_RESTORE
+])
+
+AC_DEFUN([AC_CHECK_LIBOGGFLAC],
+[
+ AC_LANG_SAVE
+ AC_LANG_C
+ have_libOggFLAC=no
+ KDE_CHECK_HEADER(OggFLAC/seekable_stream_decoder.h,
+ [
+ KDE_CHECK_LIB(OggFLAC,OggFLAC__seekable_stream_decoder_process_single,
+ have_libOggFLAC=yes,,[-lm -lOggFLAC -lFLAC])
+
+ ])
+ if test "x$have_libOggFLAC" = "xyes"; then
+ LIBOGGFLAC="-lOggFLAC"
+ AC_DEFINE(HAVE_LIBOGGFLAC, 1,
+ [Define if you have libOggFLAC (required for loading OggFLAC files)])
+ fi
+ AC_SUBST(LIBOGGFLAC)
+ AC_LANG_RESTORE
+])
+
+AC_ARG_WITH(flac,AC_HELP_STRING([--with-flac],[Enable FLAC support @<:@default=check@:>@]),[flac_test="$withval"],[flac_test="yes"])
+
+if test "x$flac_test" = "xyes" ; then
+ AC_CHECK_LIBFLAC
+ AC_CHECK_LIBOGGFLAC
+fi