mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fixed library version checking....
This commit is contained in:
parent
b4a8875cae
commit
9e85a4cf21
1 changed files with 16 additions and 9 deletions
25
aclocal.m4
vendored
25
aclocal.m4
vendored
|
|
@ -70,19 +70,26 @@ AC_TRY_COMPILE([
|
||||||
], [
|
], [
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
# if(SOUNDLIB_VERSION_MAJOR >= $alsa_min_major_version)
|
# if(SOUNDLIB_VERSION_MAJOR > $alsa_min_major_version)
|
||||||
# if(SOUNDLIB_VERSION_MINOR >= $alsa_min_minor_version)
|
exit(0);
|
||||||
# if(SOUNDLIB_VERSION_SUBMINOR >= $alsa_min_micro_version)
|
# else
|
||||||
exit(0);
|
# if(SOUNDLIB_VERSION_MAJOR < $alsa_min_major_version)
|
||||||
# else
|
# error not present
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# if(SOUNDLIB_VERSION_MINOR > $alsa_min_minor_version)
|
||||||
|
exit(0);
|
||||||
|
# else
|
||||||
|
# if(SOUNDLIB_VERSION_MINOR < $alsa_min_minor_version)
|
||||||
|
# error not present
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# if(SOUNDLIB_VERSION_SUBMINOR < $alsa_min_micro_version)
|
||||||
# error not present
|
# error not present
|
||||||
# endif
|
# endif
|
||||||
# else
|
|
||||||
# error not present
|
|
||||||
# endif
|
# endif
|
||||||
# else
|
|
||||||
# error not present
|
|
||||||
# endif
|
# endif
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
[AC_MSG_RESULT(found.)],
|
[AC_MSG_RESULT(found.)],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue