build: Don't call AC_CHECK_FUNC with --disable-alsatest

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Arun Raghavan 2012-07-17 15:45:35 +05:30 committed by Takashi Iwai
parent 16bc934c0b
commit 5dcd52389a

View file

@ -31,8 +31,10 @@ AC_PROG_LN_S
AC_PROG_SED AC_PROG_SED
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG
AM_PATH_ALSA(1.0.24) AM_PATH_ALSA(1.0.24)
if test "x$enable_alsatest" = "xyes"; then
AC_CHECK_FUNC([snd_ctl_elem_add_enumerated], AC_CHECK_FUNC([snd_ctl_elem_add_enumerated],
, [AC_ERROR([No user enum control support in alsa-lib])]) , [AC_ERROR([No user enum control support in alsa-lib])])
fi
dnl Check components dnl Check components
AC_CHECK_HEADERS([alsa/pcm.h], [have_pcm="yes"], [have_pcm="no"], AC_CHECK_HEADERS([alsa/pcm.h], [have_pcm="yes"], [have_pcm="no"],