Re: [AD] Unix makefile bug.

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


On 11 May 2001, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> Ive noticed that if you disable ALSA pcm support
> then -lasound doesnt get appended to 'LIBS', even
> if ALSA midi support is enabled.

This should do it.  It shouldn't matter if -lasound is included
twice (both PCM and MIDI enabled), should it?

Index: aclocal.m4
===================================================================
RCS file: /cvsroot/alleg/allegro/aclocal.m4,v
retrieving revision 1.9
diff -u -u -r1.9 aclocal.m4
--- aclocal.m4	2001/05/10 00:26:23	1.9
+++ aclocal.m4	2001/05/11 23:21:03
@@ -272,7 +272,7 @@
   AC_MSG_CHECKING(for supported ALSA version for MIDI)
   AC_TRY_RUN([#include <sys/asoundlib.h>
     int main (void) { return SND_LIB_MAJOR < 0 || SND_LIB_MINOR < 5; }],
-  allegro_cv_support_alsamidi=yes,
+  [allegro_cv_support_alsamidi=yes LIBS="-lasound $LIBS"],
   allegro_cv_support_alsamidi=no,
   allegro_cv_support_alsamidi=no)
   AC_MSG_RESULT($allegro_cv_support_alsamidi)])

-- 
GURMLISH (GURM lish), n.  The red warning flag at the top of a club
sandwich toothpick which prevents the person from biting into it and
puncturing the roof of one's mouth.  -- Rich Hall, "Sniglets"



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