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]
Subject: [Freeciv-Dev] Re: (PR#11825) os x building
From: "Ruben Zilibowitz" <rzilibow@xxxxxxxxxxxxxx>
Date: Thu, 6 Jan 2005 19:26:29 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Hmm, well I applied the patch. I then ran autogen.sh but it seemed to 
be essentially the same as before. Here is a few lines from config.log: 
(note sdl-config still is not here...)

configure:13498: checking for Mix_OpenAudio in -lSDL_mixer
configure:13529: gcc -o conftest -Wall -Wpointer-arith -Wcast-align 
-Wmissing-prototypes -Wmissing-declarations -I/sw/include -L/sw/lib 
conftest.c -lSDL_mixer  -lz  -liconv >&5
ld: /usr/lib/crt1.o illegal reference to symbol: __objcInit defined in 
indirectly referenced dynamic library /usr/lib/libobjc.A.dylib

Annoying that there's no online manual for Autoconf. Might download and 
read about it later.

Ruben


On 07/01/2005, at 12:50 PM, Jason Short wrote:

>
> <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]