From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- kscd/libwm/configure.in.in | 72 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 kscd/libwm/configure.in.in (limited to 'kscd/libwm/configure.in.in') diff --git a/kscd/libwm/configure.in.in b/kscd/libwm/configure.in.in new file mode 100644 index 00000000..a0ce3ab7 --- /dev/null +++ b/kscd/libwm/configure.in.in @@ -0,0 +1,72 @@ +dnl +-------------------------------+ +dnl | Checks for LIBWORKMAN | +dnl +-------------------------------+ +AC_MSG_CHECKING(for CDDA) + +AC_ARG_WITH(kscd-cdda, [ --with-kscd-cdda build CDDA support in kscd [default=yes]], +[ + if test $withval = yes; then + libwm_with_cdda=yes + else + libwm_with_cdda=no + fi +],libwm_with_cdda=yes) + +if test "$libwm_with_cdda" = "yes"; then +case $host in + *-*-linux*) + AC_CHECK_HEADERS(pthread.h) + AC_TRY_COMPILE( + [ +#ifndef __GNUC__ +#define __GNUC__ 1 +#endif +/* needed for vanilla kernel headers, which do provide __u64 only + for ansi */ +#undef __STRICT_ANSI__ +/* needed for non-ansi kernel headers */ +#define asm __asm__ +#define inline __inline__ +#include +#include +#undef asm +#undef inline + ],[ +#if defined(__linux__) +ioctl(1, CDROMREADAUDIO, 0); +#else + #error platform? +#endif + ],, libwm_with_cdda=no) + ;; + *-*-sunos*) + AC_CHECK_HEADERS(pthread.h) + AC_TRY_COMPILE( + [ +#include +#include + ],[ +#if defined(__sun) || defined(sun) +ioctl(1, CDROMCDDA, 0); +#else + #error platform? +#endif + ],, libwm_with_cdda=no) + ;; + *) + libwm_with_cdda=no + ;; +esac +fi + +if test "$libwm_with_cdda" = "yes"; then + AC_DEFINE(BUILD_CDDA, 1, [Define if you will CDDA support in kscd]) +fi +AM_CONDITIONAL(libwm_with_cdda, test "$libwm_with_cdda" = "yes") + +AC_MSG_RESULT($libwm_with_cdda) + + +dnl +-------------------------------+ +dnl | End LIBWORKMAN checks | +dnl +-------------------------------+ -- cgit v1.2.1