Automake/conf issues

I was using the following entry in configure.in previous to SDL 1.2.7, once I
upgraded to 1.2.7 this fails now. What chances are needed for 1.2.7?

AC_CHECK_HEADER(SDL_mixer.h,
AC_MSG_ERROR(*** Cannot find the SDL/SDL_mixer.h header
goto http://www.libsdl.org to download or
check with your distibution.
); exit)

The code you show there is for checking for the SDL Mixer, not SDL itself.
So verify that you have the updated SDL Mixer installed, and that it
doesn’t conflict with the installed version of SDL. The code you show
shouldn’t succeed or fail depending on the SDL, but rather on the SDL
Mixer library (and whether it works with the installed version of SDL).
The test for the SDL Mixer should also come after the SDL test and
assigning the proper SDL arguments to CFLAGS and the LIBS.

To check for SDL, use the AM_PATH_SDL macro available in sdl.m4
distributed with the SDL sourcecode… Check the SDL sample programs to
see its usage.

You might also wanna rename configure.in to configure.ac, as some systems
use older Autoconf if you name it configure.in if you have both older and
newer versions of Autoconf installed.

-MarkOn Mon, 1 Mar 2004, Tom Bradley wrote:

I was using the following entry in configure.in previous to SDL 1.2.7, once I
upgraded to 1.2.7 this fails now. What chances are needed for 1.2.7?

AC_CHECK_HEADER(SDL_mixer.h,
AC_MSG_ERROR(*** Cannot find the SDL/SDL_mixer.h header
goto http://www.libsdl.org to download or
check with your distibution.
); exit)


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Mark K. Kim
AIM: markus kimius
Homepage: http://www.cbreak.org/
Xanga: http://www.xanga.com/vindaci
Friendster: http://www.friendster.com/user.jsp?id=13046
PGP key fingerprint: 7324 BACA 53AD E504 A76E 5167 6822 94F0 F298 5DCE
PGP key available on the homepage

I found the problem I did upgrade SDL_mixer. the configure script failed
because there were two SDL_mixer.h files
/usr/include/SDL/SDL_mixer.h
/usr/local/include/SDL/SDL_mixer.h

deleted the older version and moved the newer to /usr/include/SDL and now
it works fine.

TomOn Monday 01 March 2004 7:19 pm, Mark K. Kim wrote:

The code you show there is for checking for the SDL Mixer, not SDL itself.
So verify that you have the updated SDL Mixer installed, and that it
doesn’t conflict with the installed version of SDL. The code you show
shouldn’t succeed or fail depending on the SDL, but rather on the SDL
Mixer library (and whether it works with the installed version of SDL).
The test for the SDL Mixer should also come after the SDL test and
assigning the proper SDL arguments to CFLAGS and the LIBS.

To check for SDL, use the AM_PATH_SDL macro available in sdl.m4
distributed with the SDL sourcecode… Check the SDL sample programs to
see its usage.

You might also wanna rename configure.in to configure.ac, as some systems
use older Autoconf if you name it configure.in if you have both older and
newer versions of Autoconf installed.

-Mark

On Mon, 1 Mar 2004, Tom Bradley wrote:

I was using the following entry in configure.in previous to SDL 1.2.7,
once I upgraded to 1.2.7 this fails now. What chances are needed for
1.2.7?

AC_CHECK_HEADER(SDL_mixer.h,
AC_MSG_ERROR(*** Cannot find the SDL/SDL_mixer.h header
goto http://www.libsdl.org to download or
check with your distibution.
); exit)


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl