Fixed library version checking....

This commit is contained in:
Jaroslav Kysela 1998-11-17 10:29:27 +00:00
parent b4a8875cae
commit 9e85a4cf21

25
aclocal.m4 vendored
View file

@ -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.)],