mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
0.3.0pre1 driver checking
This commit is contained in:
parent
4964e44a6e
commit
713c391e47
1 changed files with 6 additions and 3 deletions
|
|
@ -13,16 +13,19 @@ AC_TRY_COMPILE([
|
||||||
],[
|
],[
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
#if !defined( SND_PROTOCOL_VERSION ) || !defined( SND_PROTOCOL_UNCOMPATIBLE )
|
#if !defined(SND_PROTOCOL_VERSION) || !defined(SND_PROTOCOL_UNCOMPATIBLE)
|
||||||
#error not found
|
#error not found
|
||||||
#else
|
#else
|
||||||
|
#if !defined(SND_MIXER_IOCTL_CHANNEL_RREAD)
|
||||||
|
#error wrong version
|
||||||
|
#endif
|
||||||
exit(0);
|
exit(0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
AC_MSG_RESULT(present),
|
AC_MSG_RESULT(present),
|
||||||
[AC_MSG_RESULT(not found);
|
[AC_MSG_RESULT(not found or wrong version);
|
||||||
AC_MSG_ERROR([Install alsa-driver v0.2.0pre6+ package first...])]
|
AC_MSG_ERROR([Install alsa-driver v0.3.0pre1+ package first...])]
|
||||||
)
|
)
|
||||||
CFLAGS="$OLD_CFLAGS"
|
CFLAGS="$OLD_CFLAGS"
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue