dnl Check for resmgr support...
AC_MSG_CHECKING(for resmgr support)
-AC_ARG_WITH(resmgr,
- [ --with-resmgr support resmgr (optional)],
+AC_ARG_ENABLE(resmgr,
+ [ --enable-resmgr support resmgr (optional)],
resmgr="$withval", resmgr="no")
AC_MSG_RESULT($resmgr)
if test "$resmgr" = "yes"; then
AC_DEFINE(SUPPORT_RESMGR, "1", [Support resmgr with alsa-lib])
fi
+dnl Check for aload* support...
+AC_MSG_CHECKING(for aload* support)
+AC_ARG_ENABLE(aload,
+ [ --disable-aload disable reading /dev/aload*],
+ 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
+
dnl Make a symlink for inclusion of alsa/xxx.h
if test ! -L include/alsa ; then
echo "Making a symlink include/alsa"
sprintf(control, SND_FILE_CONTROL, card);
open_dev = snd_open_device(control, O_RDONLY);
+#ifdef SUPPORT_ALOAD
if (open_dev < 0) {
char aload[32];
sprintf(aload, SND_FILE_LOAD, card);
open_dev = snd_open_device(aload, O_RDONLY);
}
+#endif
if (open_dev >= 0) {
close (open_dev);
return 0;
filename = SNDRV_FILE_SEQ;
fd = snd_open_device(filename, fmode);
+#ifdef SUPPORT_ALOAD
if (fd < 0) {
fd = snd_open_device(SNDRV_FILE_ALOADSEQ, fmode);
if (fd >= 0)
return -errno;
}
}
+#endif
#if 0
/*
* this is bogus, an application have to care about open filedescriptors