[AD] A couple of tweaks to aclocal.m4

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


The first patch swaps the order of detection of ALSA versions (version 0.9 
before 0.5). It speeds up a little the configure process on recent systems. 
Applied to mainline.

The second patch fixes the SPARC processor detection. Tested on a 
SPARC/Solaris 8 box (both in 32-bit and 64-bit mode). Applied to mainline 
and branch.

-- 
Eric Botcazou
Index: aclocal.m4
===================================================================
RCS file: /cvsroot/alleg/allegro/aclocal.m4,v
retrieving revision 1.52
diff -u -r1.52 aclocal.m4
--- aclocal.m4	9 Oct 2003 13:19:08 -0000	1.52
+++ aclocal.m4	18 Oct 2003 12:03:15 -0000
@@ -363,19 +363,19 @@
   AC_CACHE_CHECK(for supported ALSA version for digital sound,
   allegro_cv_support_alsadigi,
   AC_TRY_COMPILE([#include <sys/asoundlib.h>
-                  #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 5
+                  #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9
                   #else
                   #error
                   #endif],,
   [allegro_cv_support_alsadigi=yes
-   allegro_cv_alsa_version=5],
+   allegro_cv_alsa_version=9],
   AC_TRY_COMPILE([#include <sys/asoundlib.h>
-                  #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9
+                  #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 5
                   #else
                   #error
                   #endif],,
   [allegro_cv_support_alsadigi=yes
-   allegro_cv_alsa_version=9],
+   allegro_cv_alsa_version=5],
   allegro_cv_support_alsadigi=no)))
   if test "X$allegro_cv_support_alsadigi" = "Xyes" && 
      test -z "$allegro_support_modules"; then
@@ -400,19 +400,19 @@
   AC_CACHE_CHECK(for supported ALSA version for MIDI,
   allegro_cv_support_alsamidi,
   AC_TRY_COMPILE([#include <sys/asoundlib.h>
-                  #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 5
+                  #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9
                   #else
                   #error
                   #endif],,
   [allegro_cv_support_alsamidi=yes
-   allegro_cv_alsa_version=5],
+   allegro_cv_alsa_version=9],
   AC_TRY_COMPILE([#include <sys/asoundlib.h>
-                  #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9
+                  #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 5
                   #else
                   #error
                   #endif],,
   [allegro_cv_support_alsamidi=yes
-   allegro_cv_alsa_version=9],
+   allegro_cv_alsa_version=5],
   allegro_cv_support_alsamidi=no)))
   if test "X$allegro_cv_support_alsamidi" = "Xyes" &&
      test "X$allegro_cv_support_alsadigi" != "Xyes" &&
Index: aclocal.m4
===================================================================
RCS file: /cvsroot/alleg/allegro/aclocal.m4,v
retrieving revision 1.52
diff -u -r1.52 aclocal.m4
--- aclocal.m4	9 Oct 2003 13:19:08 -0000	1.52
+++ aclocal.m4	18 Oct 2003 12:02:30 -0000
@@ -22,10 +22,10 @@
 allegro_cv_processor_type=i386,
 AC_TRY_COMPILE([], [asm (".globl _dummy_function\n"
 "_dummy_function:\n"
-"     save %sp, -120, %sp\n"
-"     ld [%fp-20], %f12\n"
-"     fitod %f12, %f10\n"
-"     faddd %f10, %f8, %f8\n"
+"     save %%sp, -120, %%sp\n"
+"     ld [[%%fp-20]], %%f12\n"
+"     fitod %%f12, %%f10\n"
+"     faddd %%f10, %%f8, %%f8\n"
 "     ret\n"
 "     restore" : :)],
 allegro_cv_processor_type=sparc,


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/