From: Jaroslav Kysela Date: Wed, 25 Nov 1998 18:57:37 +0000 (+0000) Subject: Added backward compatility for version checking... X-Git-Tag: v1.0.3~1532 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=ebfe8d8a24f3cd779433be35d1f054ee4653cb80;p=alsa-lib.git Added backward compatility for version checking... --- diff --git a/utils/alsa.m4 b/utils/alsa.m4 index 3737316e..128a3691 100644 --- a/utils/alsa.m4 +++ b/utils/alsa.m4 @@ -70,6 +70,17 @@ AC_TRY_COMPILE([ ], [ void main(void) { +/* ensure backward compatibility */ +#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) +#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR +#endif +#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) +#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR +#endif +#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) +#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR +#endif + # if(SND_LIB_MAJOR > $alsa_min_major_version) exit(0); # else