Allow specifying the max number of cards

Add --with-max-cards option to specify the max number of cards in
configure script, when the support for more than 32 cards is
required.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2013-05-24 17:21:15 +02:00
parent 14d653d7c3
commit 2f43b66c06
5 changed files with 20 additions and 6 deletions

View file

@ -632,6 +632,20 @@ for t in $CTL_PLUGIN_LIST; do
fi
done
dnl Max number of cards
AC_MSG_CHECKING(for max number of cards)
AC_ARG_WITH(max-cards,
AS_HELP_STRING([--with-max-cards], [Specify the max number of cards (default = 32)]),
[ max_cards="$withval" ], [ max_cards="32" ])
AC_MSG_RESULT([$max_cards])
if test "$max_cards" -lt 1; then
AC_ERROR([Invalid max cards $max_cards])
elif test "$max_cards" -gt 256; then
AC_ERROR([Invalid max cards $max_cards])
fi
AC_DEFINE_UNQUOTED(SND_MAX_CARDS, $max_cards, [Max number of cards])
dnl Make a symlink for inclusion of alsa/xxx.h
if test ! -L "$srcdir"/include/alsa ; then
echo "Making a symlink include/alsa"