]> git.alsa-project.org Git - alsa-lib.git/commitdiff
0.3.0pre1 driver checking
authorJaroslav Kysela <perex@perex.cz>
Sun, 29 Nov 1998 16:30:21 +0000 (16:30 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sun, 29 Nov 1998 16:30:21 +0000 (16:30 +0000)
acinclude.m4

index bb914dc3f9c2113fb5b7d3bd5c9f6ea83115cacc..d38c7e97abbec203e4c22d243388d1e806e672ea 100644 (file)
@@ -13,16 +13,19 @@ AC_TRY_COMPILE([
 ],[
 void main(void)
 {
-#if !defined( SND_PROTOCOL_VERSION ) || !defined( SND_PROTOCOL_UNCOMPATIBLE )
+#if !defined(SND_PROTOCOL_VERSION) || !defined(SND_PROTOCOL_UNCOMPATIBLE)
 #error not found
 #else
+#if !defined(SND_MIXER_IOCTL_CHANNEL_RREAD)
+#error wrong version
+#endif
   exit(0);
 #endif
 }
 ],
   AC_MSG_RESULT(present),
-  [AC_MSG_RESULT(not found);
-   AC_MSG_ERROR([Install alsa-driver v0.2.0pre6+ package first...])]
+  [AC_MSG_RESULT(not found or wrong version);
+   AC_MSG_ERROR([Install alsa-driver v0.3.0pre1+ package first...])]
 )
 CFLAGS="$OLD_CFLAGS"
 ])