1998-08-13 15:42:56 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2006-03-21 16:56:16 +00:00
|
|
|
AC_PREREQ(2.59)
|
1998-11-18 20:42:09 +00:00
|
|
|
AC_INIT(src/control/control.c)
|
2000-04-03 18:17:59 +00:00
|
|
|
dnl *************************************************
|
|
|
|
dnl current:revision:age
|
|
|
|
dnl change (without API) = c:r+1:a
|
|
|
|
dnl change API = c+1:0:a
|
|
|
|
dnl add API = c+1:0:a+1
|
|
|
|
dnl remove API = c+1:0:0
|
|
|
|
dnl *************************************************
|
2002-03-03 09:25:02 +00:00
|
|
|
AC_CANONICAL_SYSTEM
|
2007-02-26 09:21:12 +01:00
|
|
|
AM_INIT_AUTOMAKE(alsa-lib, 1.0.14rc3)
|
2002-09-19 16:12:13 +00:00
|
|
|
eval LIBTOOL_VERSION_INFO="2:0:0"
|
2000-04-03 18:17:59 +00:00
|
|
|
dnl *************************************************
|
2002-07-03 08:48:17 +00:00
|
|
|
AM_CONDITIONAL(INSTALL_M4, test -n "${ACLOCAL}")
|
1998-08-13 15:42:56 +00:00
|
|
|
|
|
|
|
AC_PREFIX_DEFAULT(/usr)
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
2002-03-03 09:25:02 +00:00
|
|
|
|
|
|
|
dnl try to gues cross-compiler if not set
|
|
|
|
if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
|
|
|
|
then
|
|
|
|
AC_MSG_CHECKING(for cross-compiler)
|
|
|
|
|
|
|
|
which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
|
|
|
|
which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
|
|
|
|
&& CC=${target_cpu}-${target-os}-gcc
|
|
|
|
which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
|
|
|
|
&& CC=${target_cpu}-${target_vendor}-${target_os}-gcc
|
|
|
|
|
|
|
|
AC_MSG_RESULT($CC)
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
1998-08-13 15:42:56 +00:00
|
|
|
AC_PROG_CC
|
2006-09-19 18:07:51 +02:00
|
|
|
AC_PROG_CPP
|
1998-08-13 15:42:56 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
2001-10-24 14:13:24 +00:00
|
|
|
AC_DISABLE_STATIC
|
2001-07-30 11:56:46 +00:00
|
|
|
AC_LIBTOOL_DLOPEN
|
1998-11-18 20:42:09 +00:00
|
|
|
AM_PROG_LIBTOOL
|
1998-08-13 15:42:56 +00:00
|
|
|
|
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
1998-11-18 20:42:09 +00:00
|
|
|
AM_CONFIG_HEADER(include/config.h)
|
1998-08-13 15:42:56 +00:00
|
|
|
|
2002-04-24 14:41:55 +00:00
|
|
|
|
1998-08-13 15:42:56 +00:00
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_HEADER_TIME
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
2001-03-16 07:34:22 +00:00
|
|
|
AC_CHECK_FUNC([hsearch_r], [HAVE_HSEARCH_R=yes])
|
|
|
|
AM_CONDITIONAL(ALSA_HSEARCH_R, [test "x$HAVE_HSEARCH_R" != xyes])
|
1998-08-13 15:42:56 +00:00
|
|
|
|
1998-11-21 18:47:42 +00:00
|
|
|
SAVE_LIBRARY_VERSION
|
2000-03-11 11:08:08 +00:00
|
|
|
AC_SUBST(LIBTOOL_VERSION_INFO)
|
1998-08-13 15:42:56 +00:00
|
|
|
|
2001-06-26 10:35:39 +00:00
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
2001-07-01 17:31:39 +00:00
|
|
|
|
|
|
|
eval dir="$datadir"
|
|
|
|
case "$dir" in
|
|
|
|
/*) ;;
|
2006-08-13 22:48:34 +01:00
|
|
|
*) dir="$prefix/share"
|
2001-07-01 17:31:39 +00:00
|
|
|
esac
|
2002-08-16 17:28:34 +00:00
|
|
|
AC_DEFINE_UNQUOTED(DATADIR, "$dir", [directory containing ALSA configuration database])
|
2001-06-26 10:35:39 +00:00
|
|
|
|
2003-03-05 19:56:55 +00:00
|
|
|
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
|
|
|
|
|
|
|
|
eval dir="$libdir"
|
|
|
|
case "$dir" in
|
|
|
|
/*) ;;
|
2006-08-13 22:48:34 +01:00
|
|
|
*) dir="$dir"
|
2003-03-05 19:56:55 +00:00
|
|
|
esac
|
|
|
|
AC_DEFINE_UNQUOTED(PKGLIBDIR, "$dir/$PACKAGE", [directory containing ALSA add-on modules])
|
|
|
|
|
2002-09-17 12:33:05 +00:00
|
|
|
dnl Check for versioned symbols
|
|
|
|
AC_MSG_CHECKING(for versioned symbols)
|
|
|
|
AC_ARG_WITH(versioned,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-versioned],
|
|
|
|
[shared library will be compiled with versioned symbols (default = yes)]),
|
2002-09-17 12:33:05 +00:00
|
|
|
versioned="$withval", versioned="yes")
|
|
|
|
if test "$versioned" = "yes"; then
|
2002-10-23 13:06:49 +00:00
|
|
|
# it seems that GNU ld versions since 2.10 are not broken
|
2006-10-04 17:30:26 +02:00
|
|
|
xres=`grep '^VERSION=' libtool | cut -d = -f 2 | cut -d \" -f 2`
|
2002-10-23 13:06:49 +00:00
|
|
|
major=`echo $xres | cut -d . -f 1`
|
|
|
|
minor=`echo $xres | cut -d . -f 2`
|
|
|
|
pass=0
|
|
|
|
if test $major -eq 1 -a $minor -gt 3; then
|
|
|
|
pass=1
|
|
|
|
else
|
|
|
|
if test $major -gt 1; then
|
|
|
|
pass=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $pass -eq 1; then
|
|
|
|
AC_DEFINE(VERSIONED_SYMBOLS,,[compiled with versioned symbols])
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(broken libtool - use libtool v1.4+; no versions)
|
|
|
|
fi
|
2002-09-17 12:33:05 +00:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-03-11 18:51:32 +00:00
|
|
|
AM_CONDITIONAL(VERSIONED_SYMBOLS, test x$versioned = xyes)
|
2002-09-17 12:33:05 +00:00
|
|
|
|
2006-09-19 18:07:51 +02:00
|
|
|
dnl See if toolchain has a custom prefix for symbols ...
|
|
|
|
AC_MSG_CHECKING(for custom symbol prefixes)
|
|
|
|
SYMBOL_PREFIX=` \
|
|
|
|
echo "PREFIX=__USER_LABEL_PREFIX__" \
|
|
|
|
| ${CPP-${CC-gcc} -E} - 2>&1 \
|
|
|
|
| ${EGREP-grep} "^PREFIX=" \
|
|
|
|
| ${SED-sed} "s:^PREFIX=::"`
|
|
|
|
AC_DEFINE_UNQUOTED([__SYMBOL_PREFIX], "$SYMBOL_PREFIX", [Toolchain Symbol Prefix])
|
2007-01-17 15:19:52 +01:00
|
|
|
AC_SUBST(SYMBOL_PREFIX)
|
2006-09-19 18:07:51 +02:00
|
|
|
AC_MSG_RESULT($SYMBOL_PREFIX)
|
|
|
|
|
2001-07-30 11:56:46 +00:00
|
|
|
dnl Check for debug...
|
|
|
|
AC_MSG_CHECKING(for debug)
|
|
|
|
AC_ARG_WITH(debug,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-debug],
|
|
|
|
[library will be compiled with asserts (default = yes)]),
|
2001-07-30 11:56:46 +00:00
|
|
|
debug="$withval", debug="yes")
|
|
|
|
if test "$debug" = "yes"; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
2002-08-16 17:28:34 +00:00
|
|
|
AC_DEFINE(NDEBUG,,[No assert debug])
|
2001-07-30 11:56:46 +00:00
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
2004-02-09 17:04:09 +00:00
|
|
|
dnl Temporary directory
|
|
|
|
AC_MSG_CHECKING(for tmpdir)
|
|
|
|
AC_ARG_WITH(tmpdir,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-tmpdir=directory],
|
|
|
|
[directory to put tmp socket files (/tmp)]),
|
2004-02-09 17:04:09 +00:00
|
|
|
tmpdir="$withval", tmpdir="/tmp")
|
|
|
|
AC_MSG_RESULT($tmpdir)
|
|
|
|
AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [directory to put tmp socket files])
|
|
|
|
|
2002-09-17 12:33:05 +00:00
|
|
|
dnl Check for softfloat...
|
|
|
|
AC_MSG_CHECKING(for softfloat)
|
2002-04-24 14:41:55 +00:00
|
|
|
AC_ARG_WITH(softfloat,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-softfloat],
|
|
|
|
[do you have floating point unit on this machine? (optional)]),
|
2002-09-17 12:33:05 +00:00
|
|
|
[ AC_DEFINE(HAVE_SOFT_FLOAT, "1", [Avoid calculation in float])
|
|
|
|
softfloat=yes ],)
|
|
|
|
if test "$softloat" = "yes" ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2002-04-24 14:41:55 +00:00
|
|
|
|
2007-03-22 00:48:18 +01:00
|
|
|
ALSA_DEPLIBS=""
|
|
|
|
if test "$softfloat" != "yes"; then
|
|
|
|
ALSA_DEPLIBS="-lm"
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Check for libdl
|
|
|
|
AC_MSG_CHECKING(for libdl)
|
|
|
|
AC_ARG_WITH(libdl,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-libdl], [Use libdl for plugins (default = yes)]),
|
2007-03-22 00:48:18 +01:00
|
|
|
[ have_libdl="$withval" ], [ have_libdl="yes" ])
|
|
|
|
if test "$have_libdl" = "yes"; then
|
|
|
|
AC_CHECK_LIB([dl], [dlsym], [HAVE_LIBDL="yes"])
|
|
|
|
if test "$HAVE_LIBDL" = "yes" ; then
|
|
|
|
ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl"
|
|
|
|
AC_DEFINE([HAVE_LIBDL], 1, [Have libdl])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(BUILD_MODULES, test "$HAVE_LIBDL"="yes")
|
|
|
|
|
|
|
|
dnl Check for pthread
|
|
|
|
AC_MSG_CHECKING(for pthread)
|
|
|
|
AC_ARG_WITH(pthread,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-pthread], [Use pthread (default = yes)]),
|
2007-03-22 00:48:18 +01:00
|
|
|
[ have_pthread="$withval" ], [ have_pthread="yes" ])
|
|
|
|
if test "$have_pthread" = "yes"; then
|
|
|
|
AC_CHECK_LIB([pthread], [pthread_join], [HAVE_LIBPTHREAD="yes"])
|
|
|
|
if test "$HAVE_LIBPTHREAD" = "yes"; then
|
|
|
|
ALSA_DEPLIBS="$ALSA_DEPLIBS -lpthread"
|
|
|
|
AC_DEFINE([HAVE_LIBPTHREAD], 1, [Have libpthread])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(ALSA_DEPLIBS)
|
|
|
|
|
2001-12-07 14:14:54 +00:00
|
|
|
dnl Check for architecture
|
|
|
|
AC_MSG_CHECKING(for architecture)
|
2002-03-03 09:25:02 +00:00
|
|
|
case "$target" in
|
2001-12-07 14:14:54 +00:00
|
|
|
i?86*)
|
|
|
|
AC_MSG_RESULT(x86)
|
|
|
|
;;
|
2003-07-14 10:16:38 +00:00
|
|
|
x86_64*)
|
|
|
|
AC_MSG_RESULT(x86)
|
|
|
|
;;
|
2001-12-07 14:14:54 +00:00
|
|
|
alpha*)
|
|
|
|
AC_MSG_RESULT(alpha)
|
|
|
|
;;
|
|
|
|
powerpc*|ppc*)
|
|
|
|
AC_MSG_RESULT(ppc)
|
|
|
|
CPPFLAGS="$CPPFLAGS -D__ppc__"
|
|
|
|
;;
|
|
|
|
ia64*)
|
|
|
|
AC_MSG_RESULT(ia64)
|
|
|
|
CPPFLAGS="$CPPFLAGS -D__ia64__"
|
|
|
|
;;
|
|
|
|
mips*)
|
|
|
|
AC_MSG_RESULT(mips)
|
|
|
|
CPPFLAGS="$CPPFLAGS -D__mips__"
|
|
|
|
;;
|
|
|
|
arm*)
|
|
|
|
AC_MSG_RESULT(arm)
|
|
|
|
CPPFLAGS="$CPPFLAGS -D__arm__"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_RESULT($host_cpu)
|
|
|
|
echo "No atomic operations supported.."
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2005-11-29 15:18:56 +00:00
|
|
|
dnl Check for wordexp.h
|
|
|
|
AC_CHECK_HEADERS([wordexp.h])
|
|
|
|
|
2005-01-26 10:50:28 +00:00
|
|
|
dnl Check for resmgr support...
|
|
|
|
AC_MSG_CHECKING(for resmgr support)
|
2005-02-14 13:31:53 +00:00
|
|
|
AC_ARG_ENABLE(resmgr,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--enable-resmgr], [support resmgr (optional)]),
|
2005-02-14 13:52:00 +00:00
|
|
|
resmgr="$enableval", resmgr="no")
|
2005-01-26 10:50:28 +00:00
|
|
|
AC_MSG_RESULT($resmgr)
|
|
|
|
if test "$resmgr" = "yes"; then
|
|
|
|
AC_CHECK_LIB(resmgr, rsm_open_device,,
|
|
|
|
AC_ERROR([Cannot find libresmgr]))
|
|
|
|
AC_DEFINE(SUPPORT_RESMGR, "1", [Support resmgr with alsa-lib])
|
|
|
|
fi
|
|
|
|
|
2005-02-14 13:31:53 +00:00
|
|
|
dnl Check for aload* support...
|
|
|
|
AC_MSG_CHECKING(for aload* support)
|
|
|
|
AC_ARG_ENABLE(aload,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--disable-aload], [disable reading /dev/aload*]),
|
2005-02-14 13:31:53 +00:00
|
|
|
aload="$enableval", aload="yes")
|
|
|
|
AC_MSG_RESULT($aload)
|
|
|
|
if test "$aload" = "yes"; then
|
|
|
|
AC_DEFINE(SUPPORT_ALOAD, "1", [Support /dev/aload* access for auto-loading])
|
|
|
|
fi
|
|
|
|
|
2006-02-27 10:03:19 +00:00
|
|
|
dnl Check for non-standard /dev directory
|
|
|
|
AC_MSG_CHECKING([for ALSA device file directory])
|
|
|
|
AC_ARG_WITH(alsa-devdir,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-alsa-devdir=dir],
|
|
|
|
[directory with ALSA device files (default /dev/snd)]),
|
2006-02-27 10:03:19 +00:00
|
|
|
[alsa_dev_dir="$withval"],
|
|
|
|
[alsa_dev_dir="/dev/snd"])
|
|
|
|
dnl make sure it has a trailing slash
|
|
|
|
if echo "$alsa_dev_dir" | grep -v '/$' > /dev/null; then
|
|
|
|
alsa_dev_dir="$alsa_dev_dir/"
|
|
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED(ALSA_DEVICE_DIRECTORY, "$alsa_dev_dir", [Directory with ALSA device files])
|
|
|
|
AC_MSG_RESULT([$alsa_dev_dir])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for aload* device file directory])
|
|
|
|
AC_ARG_WITH(aload-devdir,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-aload-devdir=dir],
|
|
|
|
[directory with aload* device files (default /dev)]),
|
2006-02-27 10:03:19 +00:00
|
|
|
[aload_dev_dir="$withval"],
|
|
|
|
[aload_dev_dir="/dev"])
|
|
|
|
if echo "$aload_dev_dir" | grep -v '/$' > /dev/null; then
|
|
|
|
aload_dev_dir="$aload_dev_dir/"
|
|
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED(ALOAD_DEVICE_DIRECTORY, "$aload_dev_dir", [Directory with aload* device files])
|
|
|
|
AC_MSG_RESULT([$aload_dev_dir])
|
|
|
|
|
2005-11-30 11:38:24 +00:00
|
|
|
dnl Build conditions
|
|
|
|
AC_ARG_ENABLE(mixer,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--disable-mixer], [disable the mixer component]),
|
2005-11-30 11:38:24 +00:00
|
|
|
[build_mixer="$enableval"], [build_mixer="yes"])
|
|
|
|
AC_ARG_ENABLE(pcm,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--disable-pcm], [disable the PCM component]),
|
2005-11-30 11:38:24 +00:00
|
|
|
[build_pcm="$enableval"], [build_pcm="yes"])
|
|
|
|
AC_ARG_ENABLE(rawmidi,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--disable-rawmidi], [disable the raw MIDI component]),
|
2005-11-30 11:38:24 +00:00
|
|
|
[build_rawmidi="$enableval"], [build_rawmidi="yes"])
|
|
|
|
AC_ARG_ENABLE(hwdep,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--disable-hwdep], [disable the hwdep component]),
|
2005-11-30 11:38:24 +00:00
|
|
|
[build_hwdep="$enableval"], [build_hwdep="yes"])
|
|
|
|
AC_ARG_ENABLE(seq,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--disable-seq], [disable the sequencer component]),
|
2005-11-30 11:38:24 +00:00
|
|
|
[build_seq="$enableval"], [build_seq="yes"])
|
|
|
|
AC_ARG_ENABLE(instr,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--disable-instr], [disable the instrument component]),
|
2005-11-30 11:38:24 +00:00
|
|
|
[build_instr="$enableval"], [build_instr="yes"])
|
2006-09-06 14:39:01 +02:00
|
|
|
AC_ARG_ENABLE(alisp,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--disable-alisp], [disable the alisp component]),
|
2006-09-06 14:39:01 +02:00
|
|
|
[build_alisp="$enableval"], [build_alisp="yes"])
|
2005-11-30 11:38:24 +00:00
|
|
|
|
|
|
|
if test "$build_seq" != "yes"; then
|
|
|
|
build_instr="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_MIXER, test x$build_mixer = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM, test x$build_pcm = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_RAWMIDI, test x$build_rawmidi = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_HWDEP, test x$build_hwdep = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_SEQ, test x$build_seq = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_INSTR, test x$build_instr = xyes)
|
2006-09-06 14:39:01 +02:00
|
|
|
AM_CONDITIONAL(BUILD_ALISP, test x$build_alisp = xyes)
|
2005-11-30 11:38:24 +00:00
|
|
|
|
|
|
|
if test "$build_mixer" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_MIXER], "1", [Build mixer component])
|
|
|
|
fi
|
|
|
|
if test "$build_pcm" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_PCM], "1", [Build PCM component])
|
|
|
|
fi
|
|
|
|
if test "$build_rawmidi" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_RAWMIDI], "1", [Build raw MIDI component])
|
|
|
|
fi
|
|
|
|
if test "$build_seq" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_SEQ], "1", [Build sequencer component])
|
|
|
|
fi
|
|
|
|
if test "$build_instr" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_INSTR], "1", [Build instrument component])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl PCM Plugins
|
|
|
|
|
|
|
|
if test "$build_pcm" = "yes"; then
|
|
|
|
AC_ARG_WITH(pcm-plugins,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-pcm-plugins=<list>],
|
|
|
|
[build PCM plugins (default = all)]),
|
2005-11-30 11:38:24 +00:00
|
|
|
[pcm_plugins="$withval"], [pcm_plugins="all"])
|
|
|
|
else
|
|
|
|
pcm_plugins=""
|
|
|
|
fi
|
|
|
|
|
2006-10-12 14:34:23 +02:00
|
|
|
PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug"
|
2005-11-30 11:38:24 +00:00
|
|
|
|
|
|
|
build_pcm_plugin="no"
|
|
|
|
for t in $PCM_PLUGIN_LIST; do
|
|
|
|
eval build_pcm_$t="no"
|
|
|
|
done
|
|
|
|
|
|
|
|
pcm_plugins=`echo $pcm_plugins | sed 's/,/ /g'`
|
|
|
|
for p in $pcm_plugins; do
|
|
|
|
for t in $PCM_PLUGIN_LIST; do
|
|
|
|
if test "$p" = "$t" -o "$p" = "all"; then
|
|
|
|
eval build_pcm_$t="yes"
|
|
|
|
build_pcm_plugin="yes"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
dnl special dependencies
|
|
|
|
if test "$build_pcm_plug" = "yes"; then
|
|
|
|
build_pcm_linear="yes"
|
|
|
|
build_pcm_copy="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$build_pcm_ioplug" = "yes"; then
|
|
|
|
build_pcm_extplug="yes"
|
|
|
|
fi
|
|
|
|
|
2007-03-22 00:48:18 +01:00
|
|
|
if test "$HAVE_LIBDL" != "yes"; then
|
|
|
|
build_pcm_meter="no"
|
|
|
|
build_pcm_ladspa="no"
|
|
|
|
build_pcm_pcm_ioplug="no"
|
|
|
|
build_pcm_pcm_extplug="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$HAVE_LIBPTHREAD" != "yes"; then
|
|
|
|
build_pcm_share="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$softfloat" != "yes"; then
|
|
|
|
build_pcm_lfloat="no"
|
|
|
|
fi
|
|
|
|
|
2005-11-30 11:38:24 +00:00
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN, test x$build_pcm_plugin = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_COPY, test x$build_pcm_copy = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_LINEAR, test x$build_pcm_linear = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_ROUTE, test x$build_pcm_route = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_MULAW, test x$build_pcm_mulaw = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_ALAW, test x$build_pcm_alaw = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_ADPCM, test x$build_pcm_adpcm = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_RATE, test x$build_pcm_rate = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_PLUG, test x$build_pcm_plug = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_MULTI, test x$build_pcm_multi = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_SHM, test x$build_pcm_shm = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_FILE, test x$build_pcm_file = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_NULL, test x$build_pcm_null = xyes)
|
2006-10-12 14:34:23 +02:00
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_EMPTY, test x$build_pcm_empty = xyes)
|
2005-11-30 11:38:24 +00:00
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_SHARE, test x$build_pcm_share = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_METER, test x$build_pcm_meter = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_HOOKS, test x$build_pcm_hooks = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_LFLOAT, test x$build_pcm_lfloat = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_LADSPA, test x$build_pcm_ladspa = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_DMIX, test x$build_pcm_dmix = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_DSHARE, test x$build_pcm_dshare = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_DSNOOP, test x$build_pcm_dsnoop = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_ASYM, test x$build_pcm_asym = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_IEC958, test x$build_pcm_iec958 = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_SOFTVOL, test x$build_pcm_softvol = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_EXTPLUG, test x$build_pcm_extplug = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_PCM_PLUGIN_IOPLUG, test x$build_pcm_ioplug = xyes)
|
|
|
|
|
|
|
|
dnl Defines for plug plugin
|
|
|
|
if test "$build_pcm_rate" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_PCM_PLUGIN_RATE], "1", [Build PCM rate plugin])
|
|
|
|
fi
|
|
|
|
if test "$build_pcm_route" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_PCM_PLUGIN_ROUTE], "1", [Build PCM route plugin])
|
|
|
|
fi
|
|
|
|
if test "$build_pcm_lfloat" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_PCM_PLUGIN_LFLOAT], "1", [Build PCM lfloat plugin])
|
|
|
|
fi
|
|
|
|
if test "$build_pcm_adpcm" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_PCM_PLUGIN_ADPCM], "1", [Build PCM adpcm plugin])
|
|
|
|
fi
|
|
|
|
if test "$build_pcm_mulaw" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_PCM_PLUGIN_MULAW], "1", [Build PCM mulaw plugin])
|
|
|
|
fi
|
|
|
|
if test "$build_pcm_alaw" = "yes"; then
|
|
|
|
AC_DEFINE([BUILD_PCM_PLUGIN_ALAW], "1", [Build PCM alaw plugin])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl Create PCM plugin symbol list for static library
|
2006-10-04 17:30:26 +02:00
|
|
|
rm -f "$srcdir"/src/pcm/pcm_symbols_list.c
|
2007-03-16 15:22:27 +01:00
|
|
|
touch "$srcdir"/src/pcm/pcm_symbols_list.c
|
2005-11-30 11:38:24 +00:00
|
|
|
for t in $PCM_PLUGIN_LIST; do
|
|
|
|
if eval test \$build_pcm_$t = yes; then
|
2006-10-04 17:30:26 +02:00
|
|
|
echo \&_snd_module_pcm_$t, >> "$srcdir"/src/pcm/pcm_symbols_list.c
|
2005-11-30 11:38:24 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2007-03-28 13:48:04 +02:00
|
|
|
dnl Control Plugins
|
|
|
|
|
|
|
|
AC_ARG_WITH(ctl-plugins,
|
2007-03-28 14:03:10 +02:00
|
|
|
AS_HELP_STRING([--with-ctl-plugins=<list>],
|
|
|
|
[build control plugins (default = all)]),
|
2007-03-28 13:48:04 +02:00
|
|
|
[ctl_plugins="$withval"], [ctl_plugins="all"])
|
|
|
|
|
|
|
|
CTL_PLUGIN_LIST="shm ext"
|
|
|
|
|
|
|
|
build_ctl_plugin="no"
|
|
|
|
for t in $CTL_PLUGIN_LIST; do
|
|
|
|
eval build_ctl_$t="no"
|
|
|
|
done
|
|
|
|
|
|
|
|
ctl_plugins=`echo $ctl_plugins | sed 's/,/ /g'`
|
|
|
|
for p in $ctl_plugins; do
|
|
|
|
for t in $CTL_PLUGIN_LIST; do
|
|
|
|
if test "$p" = "$t" -o "$p" = "all"; then
|
|
|
|
eval build_ctl_$t="yes"
|
|
|
|
build_ctl_plugin="yes"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_CTL_PLUGIN, test x$build_ctl_plugin = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_CTL_PLUGIN_SHM, test x$build_ctl_shm = xyes)
|
|
|
|
AM_CONDITIONAL(BUILD_CTL_PLUGIN_EXT, test x$build_ctl_ext = xyes)
|
|
|
|
|
|
|
|
dnl Create ctl plugin symbol list for static library
|
|
|
|
rm -f "$srcdir"/src/control/ctl_symbols_list.c
|
|
|
|
touch "$srcdir"/src/control/ctl_symbols_list.c
|
|
|
|
for t in $CTL_PLUGIN_LIST; do
|
|
|
|
if eval test \$build_ctl_$t = yes; then
|
|
|
|
echo \&_snd_module_control_$t, >> "$srcdir"/src/control/ctl_symbols_list.c
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2003-07-14 10:16:38 +00:00
|
|
|
dnl Make a symlink for inclusion of alsa/xxx.h
|
2006-10-04 17:30:26 +02:00
|
|
|
if test ! -L "$srcdir"/include/alsa ; then
|
2003-07-14 10:16:38 +00:00
|
|
|
echo "Making a symlink include/alsa"
|
2006-10-04 17:30:26 +02:00
|
|
|
rm -f "$srcdir"/include/alsa
|
|
|
|
ln -sf . "$srcdir"/include/alsa
|
2003-07-14 10:16:38 +00:00
|
|
|
fi
|
|
|
|
|
2002-10-22 20:20:03 +00:00
|
|
|
AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile include/Makefile
|
2007-01-17 15:19:52 +01:00
|
|
|
include/sound/Makefile src/Versions src/Makefile \
|
2005-08-22 12:07:55 +00:00
|
|
|
src/control/Makefile src/mixer/Makefile \
|
2005-06-01 12:31:52 +00:00
|
|
|
src/pcm/Makefile src/pcm/scopes/Makefile \
|
2000-09-26 09:46:05 +00:00
|
|
|
src/rawmidi/Makefile src/timer/Makefile \
|
2000-01-10 10:07:53 +00:00
|
|
|
src/hwdep/Makefile src/seq/Makefile src/instr/Makefile \
|
2003-06-24 19:30:08 +00:00
|
|
|
src/compat/Makefile src/alisp/Makefile src/conf/Makefile \
|
2003-09-09 19:24:35 +00:00
|
|
|
src/conf/cards/Makefile \
|
|
|
|
src/conf/pcm/Makefile \
|
2005-08-22 12:07:55 +00:00
|
|
|
modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \
|
2003-06-24 19:30:08 +00:00
|
|
|
alsalisp/Makefile aserver/Makefile test/Makefile utils/Makefile \
|
2002-09-18 16:37:42 +00:00
|
|
|
utils/alsa-lib.spec utils/alsa.pc)
|