1998-08-13 17:43:39 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2006-03-21 18:05:19 +01:00
|
|
|
AC_PREREQ(2.59)
|
2009-05-25 10:26:22 +02:00
|
|
|
AC_INIT(aplay/aplay.c)
|
1998-08-13 17:43:39 +02:00
|
|
|
AC_PREFIX_DEFAULT(/usr)
|
2013-07-09 17:28:37 +02:00
|
|
|
AM_INIT_AUTOMAKE(alsa-utils, 1.0.27.2)
|
1998-08-13 17:43:39 +02:00
|
|
|
|
2013-05-15 19:12:57 +02:00
|
|
|
AM_MAINTAINER_MODE([enable])
|
|
|
|
|
2005-01-03 12:57:02 +01:00
|
|
|
AM_GNU_GETTEXT([external])
|
2006-11-26 17:24:59 +01:00
|
|
|
AM_GNU_GETTEXT_VERSION([0.15])
|
2004-12-29 17:10:47 +01:00
|
|
|
|
1998-08-13 17:43:39 +02:00
|
|
|
dnl Checks for programs.
|
2003-06-14 10:32:44 +02: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 17:43:39 +02:00
|
|
|
AC_PROG_CC
|
2000-01-05 14:46:58 +01:00
|
|
|
dnl AC_PROG_CXX
|
1998-08-13 17:43:39 +02:00
|
|
|
AC_PROG_INSTALL
|
2010-11-23 01:45:08 +01:00
|
|
|
AC_PROG_MKDIR_P
|
1998-08-13 17:43:39 +02:00
|
|
|
AC_PROG_LN_S
|
2011-08-31 22:27:10 +02:00
|
|
|
AC_PROG_SED
|
2012-04-18 16:25:54 +02:00
|
|
|
PKG_PROG_PKG_CONFIG
|
2013-05-17 14:30:46 +02:00
|
|
|
AM_PATH_ALSA(1.0.27)
|
2012-07-17 12:15:35 +02:00
|
|
|
if test "x$enable_alsatest" = "xyes"; then
|
2011-10-07 23:16:35 +02:00
|
|
|
AC_CHECK_FUNC([snd_ctl_elem_add_enumerated],
|
|
|
|
, [AC_ERROR([No user enum control support in alsa-lib])])
|
2012-07-17 12:15:35 +02:00
|
|
|
fi
|
1998-08-13 17:43:39 +02:00
|
|
|
|
2009-01-29 15:41:31 +01:00
|
|
|
dnl Check components
|
|
|
|
AC_CHECK_HEADERS([alsa/pcm.h], [have_pcm="yes"], [have_pcm="no"],
|
|
|
|
[#include <alsa/asoundlib.h>])
|
|
|
|
AC_CHECK_HEADERS([alsa/mixer.h], [have_mixer="yes"], [have_mixer="no"],
|
|
|
|
[#include <alsa/asoundlib.h>])
|
|
|
|
AC_CHECK_HEADERS([alsa/rawmidi.h], [have_rawmidi="yes"], [have_rawmidi="no"],
|
|
|
|
[#include <alsa/asoundlib.h>])
|
|
|
|
AC_CHECK_HEADERS([alsa/seq.h], [have_seq="yes"], [have_seq="no"],
|
|
|
|
[#include <alsa/asoundlib.h>])
|
2010-08-18 08:29:03 +02:00
|
|
|
AC_CHECK_HEADERS([samplerate.h], [have_samplerate="yes"], [have_samplerate="no"],
|
|
|
|
[#include <samplerate.h>])
|
2009-01-29 15:41:31 +01:00
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_PCM, test "$have_pcm" = "yes")
|
|
|
|
AM_CONDITIONAL(HAVE_MIXER, test "$have_mixer" = "yes")
|
|
|
|
AM_CONDITIONAL(HAVE_RAWMIDI, test "$have_rawmidi" = "yes")
|
|
|
|
AM_CONDITIONAL(HAVE_SEQ, test "$have_seq" = "yes")
|
2010-08-18 08:29:03 +02:00
|
|
|
AM_CONDITIONAL(HAVE_SAMPLERATE, test "$have_samplerate" = "yes")
|
2009-01-29 15:41:31 +01:00
|
|
|
|
2009-04-08 09:22:16 +02:00
|
|
|
dnl Check for librt
|
|
|
|
LIBRT=""
|
|
|
|
AC_MSG_CHECKING(for librt)
|
|
|
|
AC_ARG_WITH(librt,
|
|
|
|
AS_HELP_STRING([--with-librt], [Use librt for monotonic clock (default = yes)]),
|
|
|
|
[ have_librt="$withval" ], [ have_librt="yes" ])
|
|
|
|
if test "$have_librt" = "yes"; then
|
|
|
|
AC_CHECK_LIB([rt], [clock_gettime], [HAVE_LIBRT="yes"])
|
|
|
|
if test "$HAVE_LIBRT" = "yes" ; then
|
|
|
|
LIBRT="-lrt"
|
|
|
|
AC_DEFINE([HAVE_LIBRT], 1, [Have librt])
|
|
|
|
AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [Have clock gettime])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
2008-09-23 08:10:19 +02:00
|
|
|
dnl Disable alsamixer
|
2008-04-16 14:39:41 +02:00
|
|
|
CURSESINC=""
|
|
|
|
CURSESLIB=""
|
|
|
|
CURSES_CFLAGS=""
|
2009-01-29 15:41:31 +01:00
|
|
|
alsamixer=
|
|
|
|
if test "$have_mixer" = "yes"; then
|
2003-06-14 10:32:44 +02:00
|
|
|
AC_ARG_ENABLE(alsamixer,
|
2012-04-18 16:29:18 +02:00
|
|
|
AS_HELP_STRING([--disable-alsamixer], [Disable alsamixer compilation]),
|
2003-06-14 10:32:44 +02:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) alsamixer=true ;;
|
|
|
|
no) alsamixer=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-alsamixer) ;;
|
|
|
|
esac],[alsamixer=true])
|
2009-01-29 15:41:31 +01:00
|
|
|
fi
|
2003-06-14 10:32:44 +02:00
|
|
|
AM_CONDITIONAL(ALSAMIXER, test x$alsamixer = xtrue)
|
|
|
|
|
2008-09-23 08:10:19 +02:00
|
|
|
dnl Disable alsaconf
|
|
|
|
AC_ARG_ENABLE(alsaconf,
|
2012-04-18 16:29:18 +02:00
|
|
|
AS_HELP_STRING([--disable-alsaconf], [Disable alsaconf packaging]),
|
2008-09-23 08:10:19 +02:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) alsaconf=true ;;
|
|
|
|
no) alsaconf=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-alsaconf) ;;
|
|
|
|
esac],[alsaconf=true])
|
|
|
|
AM_CONDITIONAL(ALSACONF, test x$alsaconf = xtrue)
|
|
|
|
|
2010-08-18 08:29:03 +02:00
|
|
|
dnl Disable alsaloop
|
|
|
|
AC_ARG_ENABLE(alsaloop,
|
2012-04-18 16:29:18 +02:00
|
|
|
AS_HELP_STRING([--disable-alsaloop], [Disable alsaloop packaging]),
|
2010-08-18 08:29:03 +02:00
|
|
|
[case "${enableval}" in
|
|
|
|
yes) alsaloop=true ;;
|
|
|
|
no) alsaloop=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-alsaloop) ;;
|
|
|
|
esac],[alsaloop=true])
|
|
|
|
AM_CONDITIONAL(ALSALOOP, test x$alsaloop = xtrue)
|
|
|
|
|
2008-10-30 11:50:17 +01:00
|
|
|
xmlto=""
|
2011-01-05 12:01:04 +01:00
|
|
|
AC_ARG_ENABLE(xmlto,
|
|
|
|
AS_HELP_STRING([--disable-xmlto], [Disable man page creation via xmlto]),
|
|
|
|
xmlto="$enableval", xmlto="yes")
|
|
|
|
if test "$xmlto" = "yes"; then
|
|
|
|
AC_CHECK_PROG([xmlto], [xmlto], [yes])
|
2008-10-30 11:50:17 +01:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(USE_XMLTO, test x"$xmlto" = xyes)
|
|
|
|
|
2010-11-25 22:40:25 +01:00
|
|
|
AC_ARG_WITH(
|
|
|
|
[udev-rules-dir],
|
|
|
|
AS_HELP_STRING([--with-udev-rules-dir],[Directory where to install udev rules to (defaults to /lib/udev/rules.d)]),
|
|
|
|
[udevrulesdir=$withval], [udevrulesdir="/lib/udev/rules.d"])
|
|
|
|
AC_SUBST(udevrulesdir)
|
|
|
|
|
1998-08-13 17:43:39 +02:00
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
2003-06-16 20:46:06 +02:00
|
|
|
if test x$alsamixer = xtrue; then
|
2004-02-25 12:25:53 +01:00
|
|
|
AC_ARG_WITH(curses,
|
2012-04-18 16:29:18 +02:00
|
|
|
AS_HELP_STRING([--with-curses=libname], [Specify the curses library to use (default=auto)]),
|
2004-02-25 12:25:53 +01:00
|
|
|
curseslib="$withval",
|
|
|
|
curseslib="auto")
|
2009-05-25 10:26:22 +02:00
|
|
|
CURSESLIBDIR=""
|
|
|
|
NCURSESLIBSUFFIX=""
|
|
|
|
CURSES_NLS="no"
|
|
|
|
if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then
|
2012-04-18 16:25:54 +02:00
|
|
|
dnl First try out pkg-config, then fall back to old config scripts.
|
|
|
|
PKG_CHECK_MODULES([NCURSESW], [ncursesw], [
|
|
|
|
CURSESINC="<ncurses.h>"
|
|
|
|
CURSESLIB="${NCURSESW_LIBS}"
|
|
|
|
CURSESLIBDIR=
|
|
|
|
CURSES_CFLAGS="${NCURSESW_CFLAGS}"
|
|
|
|
curseslib="ncursesw"
|
|
|
|
], [
|
|
|
|
AC_CHECK_PROG([ncursesw5_config], [ncursesw5-config], [yes])
|
|
|
|
if test "$ncursesw5_config" = "yes"; then
|
|
|
|
CURSESINC="<ncurses.h>"
|
|
|
|
CURSESLIB=`ncursesw5-config --libs`
|
|
|
|
CURSESLIBDIR=`ncursesw5-config --libdir`
|
|
|
|
CURSES_CFLAGS=`ncursesw5-config --cflags`
|
|
|
|
curseslib="ncursesw"
|
|
|
|
else
|
|
|
|
AC_CHECK_LIB(ncursesw, initscr,
|
|
|
|
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"])
|
|
|
|
fi
|
|
|
|
])
|
2009-05-25 10:26:22 +02:00
|
|
|
if test -n "$CURSESINC"; then
|
|
|
|
NCURSESLIBSUFFIX="w"
|
|
|
|
CURSES_NLS="yes"
|
|
|
|
fi
|
2004-02-25 12:25:53 +01:00
|
|
|
fi
|
|
|
|
if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
|
2012-04-18 16:25:54 +02:00
|
|
|
dnl First try out pkg-config, then fall back to old config scripts.
|
|
|
|
PKG_CHECK_MODULES([NCURSES], [ncurses], [
|
|
|
|
CURSESINC="<ncurses.h>"
|
|
|
|
CURSESLIB="${NCURSES_LIBS}"
|
|
|
|
CURSESLIBDIR=
|
|
|
|
CURSES_CFLAGS="${NCURSES_CFLAGS}"
|
|
|
|
curseslib="ncurses"
|
|
|
|
], [
|
|
|
|
AC_CHECK_PROG([ncurses5_config], [ncurses5-config], [yes])
|
|
|
|
if test "$ncurses5_config" = "yes"; then
|
|
|
|
CURSESINC="<ncurses.h>"
|
|
|
|
CURSESLIB=`ncurses5-config --libs`
|
|
|
|
CURSESLIBDIR=`ncurses5-config --libdir`
|
|
|
|
CURSES_CFLAGS=`ncurses5-config --cflags`
|
|
|
|
curseslib="ncurses"
|
|
|
|
else
|
|
|
|
AC_CHECK_LIB(ncurses, initscr,
|
|
|
|
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"])
|
|
|
|
fi
|
|
|
|
])
|
2004-02-25 12:25:53 +01:00
|
|
|
fi
|
|
|
|
if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
|
2010-11-23 01:45:08 +01:00
|
|
|
AC_CHECK_LIB(curses, initscr,
|
2004-02-25 12:25:53 +01:00
|
|
|
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"])
|
|
|
|
fi
|
|
|
|
if test -z "$CURSESINC"; then
|
|
|
|
AC_MSG_ERROR(this packages requires a curses library)
|
|
|
|
fi
|
2009-05-25 10:26:22 +02:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([for curses library])
|
|
|
|
AC_MSG_RESULT([$curseslib])
|
|
|
|
AC_MSG_CHECKING([for curses header name])
|
|
|
|
AC_MSG_RESULT([$CURSESINC])
|
|
|
|
AC_MSG_CHECKING([for curses compiler flags])
|
|
|
|
AC_MSG_RESULT([$CURSES_CFLAGS])
|
|
|
|
|
|
|
|
dnl CURSESLIBS might have the library path at the beginning. If so, we cut it
|
|
|
|
dnl off so that we can insert the other curses libraries before the ncurses
|
|
|
|
dnl library but after the library path (which is later again prepended below).
|
|
|
|
if test -n "$CURSESLIBDIR"; then
|
|
|
|
if test "-L$CURSESLIBDIR " = "$(echo $CURSESLIB | cut -c-$((${#CURSESLIBDIR}+3)) )"; then
|
|
|
|
CURSESLIB="$(echo $CURSESLIB | cut -c$((${#CURSESLIBDIR}+4))-)"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
saved_CFLAGS="$CFLAGS"
|
|
|
|
saved_LDFLAGS="$LDFLAGS"
|
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
CFLAGS="$CFLAGS $CURSES_CFLAGS"
|
|
|
|
if test -n "$CURSESLIBDIR"; then
|
|
|
|
LDFLAGS="$LDFLAGS -L$CURSESLIBDIR"
|
|
|
|
fi
|
|
|
|
LIBS="$CURSESLIB $LIBS"
|
|
|
|
|
2009-08-31 17:03:04 +02:00
|
|
|
AC_TRY_LINK([#include <panel.h>], [set_escdelay(100);],[HAVE_CURSES_ESCDELAY="yes"])
|
|
|
|
if test "$HAVE_CURSES_ESCDELAY" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE_CURSES_ESCDELAY], 1, [Have curses set_escdelay])
|
|
|
|
fi
|
|
|
|
|
2009-05-25 10:26:22 +02:00
|
|
|
if test "$USE_NLS" = "yes"; then
|
|
|
|
AC_MSG_CHECKING([for curses NLS support])
|
|
|
|
dnl In theory, a single-byte curses works just fine in ISO 8859-* locales.
|
|
|
|
dnl In practice, however, everybody uses UTF-8 nowadays, so we'd better
|
|
|
|
dnl check for wide-character support.
|
|
|
|
dnl For ncurses/ncursesw, CURSES_NLS was already set above.
|
|
|
|
if test "$curseslib" = "curses"; then
|
|
|
|
AC_TRY_LINK([
|
|
|
|
#define _XOPEN_SOURCE 1
|
|
|
|
#define _XOPEN_SOURCE_EXTENDED 1
|
|
|
|
#include <curses.h>
|
|
|
|
], [
|
|
|
|
cchar_t wc;
|
|
|
|
setcchar(&wc, L"x", A_NORMAL, 0, 0);
|
|
|
|
],
|
|
|
|
[CURSES_NLS="yes"])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$CURSES_NLS])
|
|
|
|
if test "$CURSES_NLS" = "yes"; then
|
|
|
|
AC_DEFINE([ENABLE_NLS_IN_CURSES], [1],
|
|
|
|
[Define if curses-based programs can show translated messages.])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS([panel.h menu.h form.h], [],
|
|
|
|
[AC_MSG_ERROR([required curses helper header not found])])
|
|
|
|
AC_CHECK_LIB([panel$NCURSESLIBSUFFIX], [new_panel],
|
|
|
|
[CURSESLIB="-lpanel$NCURSESLIBSUFFIX $CURSESLIB"],
|
|
|
|
[AC_MSG_ERROR([panel$NCURSESLIBSUFFIX library not found])])
|
|
|
|
AC_CHECK_LIB([menu$NCURSESLIBSUFFIX], [new_menu],
|
|
|
|
[CURSESLIB="-lmenu$NCURSESLIBSUFFIX $CURSESLIB"],
|
|
|
|
[AC_MSG_ERROR([menu$NCURSESLIBSUFFIX library not found])])
|
|
|
|
AC_CHECK_LIB([form$NCURSESLIBSUFFIX], [new_form],
|
|
|
|
[CURSESLIB="-lform$NCURSESLIBSUFFIX $CURSESLIB"],
|
|
|
|
[AC_MSG_ERROR([form$NCURSESLIBSUFFIX library not found])])
|
|
|
|
|
|
|
|
CFLAGS="$saved_CFLAGS"
|
|
|
|
LDFLAGS="$saved_LDFLAGS"
|
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
|
|
|
|
if test -n "$CURSESLIBDIR"; then
|
|
|
|
CURSESLIB="-L$CURSESLIBDIR $CURSESLIB"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for curses linker flags])
|
|
|
|
AC_MSG_RESULT([$CURSESLIB])
|
2003-06-16 20:46:06 +02:00
|
|
|
fi
|
1999-01-30 20:12:34 +01:00
|
|
|
|
|
|
|
AC_SUBST(CURSESINC)
|
|
|
|
AC_SUBST(CURSESLIB)
|
2008-04-16 14:39:41 +02:00
|
|
|
AC_SUBST(CURSES_CFLAGS)
|
1999-01-30 20:12:34 +01:00
|
|
|
|
2005-11-30 18:09:17 +01:00
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
|
|
|
|
|
eval dir="$datadir"
|
|
|
|
case "$dir" in
|
|
|
|
/*) ;;
|
2006-11-26 17:24:59 +01:00
|
|
|
*) dir="$prefix/share"
|
2005-11-30 18:09:17 +01:00
|
|
|
esac
|
|
|
|
|
2008-08-13 12:26:50 +02:00
|
|
|
soundsdir="$dir/sounds/alsa"
|
|
|
|
AC_DEFINE_UNQUOTED(SOUNDSDIR, "$soundsdir", [directory containing sample data])
|
|
|
|
|
|
|
|
mydatadir="$dir/alsa"
|
|
|
|
AC_DEFINE_UNQUOTED(DATADIR, "$mydatadir", [directory containing alsa configuration])
|
2005-11-30 18:09:17 +01:00
|
|
|
|
2003-10-29 14:38:23 +01:00
|
|
|
AC_ARG_WITH(testsound,
|
2012-04-18 16:29:18 +02:00
|
|
|
AS_HELP_STRING([--with-testsound=file], [give the path of test sound file for alsaconf]),
|
2003-10-29 14:38:23 +01:00
|
|
|
TESTSOUND="$withval",
|
2005-11-30 18:09:17 +01:00
|
|
|
TESTSOUND="$dir/test.wav")
|
2003-10-29 14:38:23 +01:00
|
|
|
AC_SUBST(TESTSOUND)
|
1999-06-03 22:28:05 +02:00
|
|
|
|
2013-01-16 15:25:38 +01:00
|
|
|
AC_CONFIG_HEADERS(include/aconfig.h)
|
1998-08-13 17:43:39 +02: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
|
|
|
|
|
2005-11-08 17:42:22 +01:00
|
|
|
dnl Enable largefile support
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
1999-03-08 17:51:53 +01:00
|
|
|
SAVE_UTIL_VERSION
|
|
|
|
|
2009-04-08 09:22:16 +02:00
|
|
|
AC_SUBST(LIBRT)
|
|
|
|
|
2010-11-23 01:45:08 +01:00
|
|
|
dnl Check for systemd
|
|
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
|
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
|
|
|
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
|
|
|
if test "x$with_systemdsystemunitdir" != xno; then
|
|
|
|
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
|
|
|
|
|
2010-11-25 08:36:37 +01:00
|
|
|
AC_ARG_WITH([asound-state-dir],
|
2010-11-23 02:59:18 +01:00
|
|
|
AS_HELP_STRING([--with-asound-state-dir=DIR], [Directory to place asound.state file in]),
|
|
|
|
[ASOUND_STATE_DIR="$withval"],
|
|
|
|
[ASOUND_STATE_DIR="/var/lib/alsa"])
|
|
|
|
AC_SUBST(ASOUND_STATE_DIR)
|
|
|
|
|
2013-04-08 14:49:31 +02:00
|
|
|
AC_ARG_WITH([alsactl-pidfile-dir],
|
|
|
|
AS_HELP_STRING([--with-alsactl-pidfile-dir=DIR], [Directory to place alsactl.pid file in]),
|
|
|
|
[ALSACTL_PIDFILE_DIR="$withval"],
|
|
|
|
[ALSACTL_PIDFILE_DIR="/var/run"])
|
|
|
|
AC_SUBST(ALSACTL_PIDFILE_DIR)
|
|
|
|
|
2013-04-10 11:08:47 +02:00
|
|
|
AC_ARG_WITH([alsactl-daemonswitch],
|
|
|
|
AS_HELP_STRING([--with-alsactl-daemonswitch=FILE], [File to test for the daemon mode]),
|
|
|
|
[ALSACTL_DAEMONSWITCH="$withval"],
|
|
|
|
[ALSACTL_DAEMONSWITCH="/etc/alsa/state-daemon.conf"])
|
|
|
|
AC_SUBST(ALSACTL_DAEMONSWITCH)
|
|
|
|
|
2008-08-13 12:26:50 +02:00
|
|
|
AC_OUTPUT(Makefile alsactl/Makefile alsactl/init/Makefile \
|
|
|
|
alsamixer/Makefile amidi/Makefile amixer/Makefile \
|
2005-08-19 14:44:54 +02:00
|
|
|
m4/Makefile po/Makefile.in \
|
2003-10-29 14:38:23 +01:00
|
|
|
alsaconf/alsaconf alsaconf/Makefile \
|
2004-12-29 17:10:47 +01:00
|
|
|
alsaconf/po/Makefile \
|
2009-09-30 21:12:17 +02:00
|
|
|
alsaucm/Makefile \
|
2003-10-28 11:53:43 +01:00
|
|
|
aplay/Makefile include/Makefile iecset/Makefile utils/Makefile \
|
2004-02-23 11:58:34 +01:00
|
|
|
utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile \
|
2005-02-21 09:30:12 +01:00
|
|
|
seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile \
|
2010-08-18 08:29:03 +02:00
|
|
|
speaker-test/Makefile speaker-test/samples/Makefile \
|
|
|
|
alsaloop/Makefile)
|