]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added backward compatility for version checking...
authorJaroslav Kysela <perex@perex.cz>
Wed, 25 Nov 1998 18:57:37 +0000 (18:57 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 25 Nov 1998 18:57:37 +0000 (18:57 +0000)
utils/alsa.m4

index 3737316ed48d98764d48dbc7324b7ccbe4011f59..128a3691a942560ba6c7f1dcf8a1c3888afe4e8a 100644 (file)
@@ -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