Re: [AD] aRts driver

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


On 2002-07-17, Sven Sandberg <sven.sandberg.1977@xxxxxxxxxx> wrote:
> Peter Wang wrote:
> >Maybe the -devel package isn't installed?
> 
> It's not, but AFAICS it's not included in Mandrake 8.2.

Should be part of some KDE libs package.

> Shouldn't configure check this?

I assumed that if artsc-config was available then the headers would also
be available.  That makes too much sense I suppose.  Try this patch.

-- 
王浩禎
Index: aclocal.m4
===================================================================
RCS file: /cvsroot/alleg/allegro/aclocal.m4,v
retrieving revision 1.32
diff -u -r1.32 aclocal.m4
--- aclocal.m4	6 Jul 2002 11:32:51 -0000	1.32
+++ aclocal.m4	17 Jul 2002 11:23:36 -0000
@@ -380,10 +380,23 @@
 if test -n "$allegro_enable_esddigi"; then
   AC_PATH_PROG(ESD_CONFIG, esd-config)
   if test -n "$ESD_CONFIG"; then
-    allegro_support_esddigi=yes
+    ALLEGRO_OLD_LIBS="$LIBS"
+    ALLEGRO_OLD_CFLAGS="$CFLAGS"
+    LIBS="`$ESD_CONFIG --libs` $LIBS"
     CFLAGS="`$ESD_CONFIG --cflags` $CFLAGS"
-    if test -z "$allegro_support_modules"; then
-      LIBS="`$ESD_CONFIG --libs` $LIBS"
+    AC_MSG_CHECKING(for esd_open_sound)
+    AC_TRY_LINK([#include <esd.h>],
+      [esd_open_sound(0);],
+      [allegro_support_esddigi=yes
+       if test -n "$allegro_support_modules"; then
+         LIBS="$ALLEGRO_OLD_LIBS"
+       fi],
+      [CFLAGS="$ALLEGRO_OLD_CFLAGS"
+       LIBS="$ALLEGRO_OLD_LIBS"])
+    if test -n "$allegro_support_esddigi"; then
+      AC_MSG_RESULT(yes)
+    else
+      AC_MSG_RESULT(no)
     fi
   fi
 fi])
@@ -403,10 +416,23 @@
 if test -n "$allegro_enable_artsdigi"; then
   AC_PATH_PROG(ARTSC_CONFIG, artsc-config)
   if test -n "$ARTSC_CONFIG"; then
-    allegro_support_artsdigi=yes
+    ALLEGRO_OLD_LIBS="$LIBS"
+    ALLEGRO_OLD_CFLAGS="$CFLAGS"
+    LIBS="`$ARTSC_CONFIG --libs` $LIBS"
     CFLAGS="`$ARTSC_CONFIG --cflags` $CFLAGS"
-    if test -z "$allegro_support_modules"; then
-      LIBS="`$ARTSC_CONFIG --libs` $LIBS"
+    AC_MSG_CHECKING(for arts_init)
+    AC_TRY_LINK([#include <artsc.h>],
+      [arts_init();],
+      [allegro_support_artsdigi=yes
+       if test -n "$allegro_support_modules"; then
+         LIBS="$ALLEGRO_OLD_LIBS"
+       fi],
+      [CFLAGS="$ALLEGRO_OLD_CFLAGS"
+       LIBS="$ALLEGRO_OLD_LIBS"])
+    if test -n "$allegro_support_artsdigi"; then
+      AC_MSG_RESULT(yes)
+    else
+      AC_MSG_RESULT(no)
     fi
   fi
 fi])


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