Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] Re: (PR#11825) os x building
Home

[Freeciv-Dev] Re: (PR#11825) os x building

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rzilibow@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11825) os x building
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Jan 2005 17:50:51 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11825 >

Ruben Zilibowitz wrote:

> So, I'm thinking, shouldn't the configure script be responsible for 
> calling sdl-config somewhere in the following line:
> 
> configure:14467: gcc -no-cpp-precomp -o conftest -Wall -Wpointer-arith 
> -Wcast-align -Wmissing-prototypes -Wmissing-declarations -O3 
> -I/sw/include -L/sw/lib conftest.c -lSDL_mixer  -lz  -liconv >&5

Ahh.  I would imagine so.  This patch may fix it; please test (you'll 
have to rerun autogen.sh).

For information about AC_CHECK_LIB see 
http://www.gnu.org/software/autoconf/.

-jason

Index: m4/sound.m4
===================================================================
RCS file: /home/freeciv/CVS/freeciv/m4/sound.m4,v
retrieving revision 1.4
diff -u -r1.4 sound.m4
--- m4/sound.m4 19 Apr 2004 17:24:16 -0000      1.4
+++ m4/sound.m4 7 Jan 2005 01:49:16 -0000
@@ -34,7 +34,7 @@
   AM_PATH_SDL($SDL_VERSION, SDL=yes, SDL=no)
   if test "x$SDL" != "xno"; then
     AC_CHECK_HEADER(SDL/SDL_mixer.h, SDL_mixer_h=1, SDL_mixer_h=0)
-    AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, SDL_mixer=yes)
+    AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, [SDL_mixer=yes], [$SDL_LIBS])
     AC_MSG_CHECKING(building SDL_mixer support)
     if test "x$SDL_mixer_h" = "x1"; then
       if test "x$SDL_mixer" = "xyes"; then

[Prev in Thread] Current Thread [Next in Thread]