alsa_min_micro_version=`echo $min_alsa_version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+AC_LANG_SAVE
+AC_LANG_C
AC_TRY_COMPILE([
#include <sys/asoundlib.h>
], [
[AC_MSG_RESULT(not present.)
AC_MSG_ERROR(Sufficiently new version of libasound not found.)]
)
+AC_LANG_RESTORE
dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
AC_CHECK_LIB([asound], [snd_cards],,