summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/alsa.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/alsa.m4 b/utils/alsa.m4
index 128a3691..bc34d057 100644
--- a/utils/alsa.m4
+++ b/utils/alsa.m4
@@ -65,6 +65,8 @@ no_alsa=""
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>
], [
@@ -107,6 +109,7 @@ exit(0);
[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],,