mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:05:42 +01:00
8a2ce1908d
It seems that running ./cvscompile changes all these files due to an updates. So, sink CVS with build tools.
93 lines
2.9 KiB
Text
93 lines
2.9 KiB
Text
dnl Process this file with autoconf to produce a configure script.
|
|
AC_PREREQ(2.53)
|
|
AC_INIT(alsamixer/alsamixer.c)
|
|
AC_PREFIX_DEFAULT(/usr)
|
|
AM_INIT_AUTOMAKE(alsa-utils, 1.0.9a)
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
AM_GNU_GETTEXT_VERSION([0.14.4])
|
|
|
|
dnl Checks for programs.
|
|
|
|
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
|
|
|
|
AC_PROG_CC
|
|
dnl AC_PROG_CXX
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
AM_PATH_ALSA(1.0.9)
|
|
|
|
AC_ARG_ENABLE(alsamixer,
|
|
[ --disable-alsamixer Disable alsamixer compilation],
|
|
[case "${enableval}" in
|
|
yes) alsamixer=true ;;
|
|
no) alsamixer=false ;;
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-alsamixer) ;;
|
|
esac],[alsamixer=true])
|
|
AM_CONDITIONAL(ALSAMIXER, test x$alsamixer = xtrue)
|
|
|
|
dnl Checks for header files.
|
|
AC_HEADER_STDC
|
|
if test x$alsamixer = xtrue; then
|
|
AC_ARG_WITH(curses,
|
|
[ --with-curses libname Specify the curses library to use (default=auto)],
|
|
curseslib="$withval",
|
|
curseslib="auto")
|
|
if test "$curseslib" = "ncursesw"; then
|
|
AC_CHECK_LIB(ncursesw, initscr,
|
|
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"])
|
|
fi
|
|
if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
|
|
AC_CHECK_LIB(ncurses, initscr,
|
|
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"])
|
|
fi
|
|
if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
|
|
AC_CHECK_LIB(curses, initscr,
|
|
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"])
|
|
fi
|
|
if test -z "$CURSESINC"; then
|
|
AC_MSG_ERROR(this packages requires a curses library)
|
|
fi
|
|
fi
|
|
|
|
AC_SUBST(CURSESINC)
|
|
AC_SUBST(CURSESLIB)
|
|
|
|
AC_ARG_WITH(testsound,
|
|
[ --with-testsound=file give the path of test sound file for alsaconf],
|
|
TESTSOUND="$withval",
|
|
TESTSOUND="/usr/share/sounds/alsa/test.wav")
|
|
AC_SUBST(TESTSOUND)
|
|
|
|
AM_CONFIG_HEADER(include/aconfig.h)
|
|
|
|
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
|
|
|
|
SAVE_UTIL_VERSION
|
|
|
|
AC_OUTPUT(Makefile alsactl/Makefile alsamixer/Makefile amidi/Makefile amixer/Makefile \
|
|
m4/Makefile po/Makefile.in \
|
|
alsaconf/alsaconf alsaconf/Makefile \
|
|
alsaconf/po/Makefile \
|
|
aplay/Makefile include/Makefile iecset/Makefile utils/Makefile \
|
|
utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile \
|
|
seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile \
|
|
speaker-test/Makefile speaker-test/samples/Makefile)
|