From 391bdc4d345ccc58ee98b692c789e4b36ca4e247 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sat, 27 Apr 2002 14:04:53 +0000 Subject: Try do use the right asoundlib header file (avoid warning message). CVS patchset: 1780 CVS date: 2002/04/27 14:04:53 --- m4/alsa.m4 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'm4') diff --git a/m4/alsa.m4 b/m4/alsa.m4 index 67e5d1049..7918cfc62 100644 --- a/m4/alsa.m4 +++ b/m4/alsa.m4 @@ -65,6 +65,11 @@ if test x"$enable_alsa" != "xno"; then fi ALSA_CFLAGS="$ALSA_CFLAGS" + AC_CHECK_HEADERS(alsa/asoundlib.h, + asoundlib_h="alsa/asoundlib.h", + AC_CHECK_HEADERS(sys/asoundlib.h, + asoundlib_h="sys/asoundlib.h")) + min_alsa_version=ifelse([$1], ,0.1.1,$1) AC_MSG_CHECKING([for ALSA version >= $min_alsa_version]) if test "x$enable_alsatest" = "xyes" ; then @@ -76,6 +81,7 @@ if test x"$enable_alsa" != "xno"; then dnl dnl Now check if the installed ALSA is sufficiently new. dnl + AC_LANG_SAVE() AC_LANG_C() rm -f conf.alsatest @@ -84,7 +90,7 @@ dnl #include #include -#include +#include <$asoundlib_h> int main() { int major, minor, micro; @@ -146,7 +152,7 @@ dnl #include #include -#include +#include <$asoundlib_h> int main() { -- cgit v1.2.3