Re: [AD] Configure script ....

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


salvador <salvador@xxxxxxxxxx> writes:

>   That's the first time I compile a WIP for Linux. Is a very nice to
> see it working but there are a lot of details to solve. Here are
> some problems I have:
> 
> [alllegro version: 3.9.32]
> 
> 1) configure script seems to think I don't have mmap. I have mmap!
> so to compile I was forced to touch the configuration by hand. I
> don't know much about autoconf so I can't say what's wrong.

Copy the program that searches for mmap from configure script (search
for "checking for working mmap").  Add diagnostic messages in this
program to see where it fails.  If it fails then either mmap is not
conforming to standard, or there is a problem in this test program.

Maybe configure find that you don't have MAP_FAILED?  It is a
workaround for missing define on some platforms.

> 2) configure also seems to think I don't have DGA ... I have DGA,
> even more, I have DGA 1.1 (accelerated one)
> 
> ...
> 
> Well, I tried and it compiles with:
> 
> gcc t.c -lXxf86dga -L/usr/X11R6/lib/ -lX11 -lXext
> 
> Is perhaps a lack of X11 and Xext in the test? just a wild guess.

configure script should take X11 from LIBS variable and Xext should be
added to LIBS if SHM extension was found.  Yes, it might be better to
add Xext when testing for DGA library too.  You can try the following:

In aclocal.m4 in place of

  dnl Test for XF86DGA extension.
  if test -n "$allegro_enable_xwin_xf86dga"; then
    AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
      [AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
	[LIBS="-lXxf86dga -lXxf86vm $LIBS"
	AC_DEFINE(ALLEGRO_XWINDOWS_WITH_XF86DGA)])])
  fi

write

  dnl Test for XF86DGA extension.
  if test -n "$allegro_enable_xwin_xf86dga"; then
    AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
      [AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
	[LIBS="-lXxf86dga -lXxf86vm -lXext $LIBS"
	AC_DEFINE(ALLEGRO_XWINDOWS_WITH_XF86DGA)],
        [], -lXext)],
      [], -lXext)
  fi

Run autoconf and autoheader, remove cache and try to configure again.

> 
> 4) I use enlightenment (a not so new version) with esd. Allegro examples are
> linked with -lesd but they doesn't emit sound while esd is running. If I kill
> esd I get sound but the quality is random, sometimes OK and sometimes have
> noises, like some extra data in the buffer.

You can try to enlarge buffer for OSS by editing oss_fragsize in
allegro.cfg.  Larger buffer may remove these noises, but may add some
delays between action which triggers sound and sound itself.

-- 
Michael Bukin



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