Hi,
my project uses SDL, and for linux I wanted to use the sdl.m4 script
to automake configuration. I installed SDL-1.2.4 (prefix=/usr/local).
Unfortunately, the test program doesn’t find the SDL.h (which is in
/usr/local/include/SDL/). config.log says:
[…]
configure:3479: checking for sdl-config
configure:3497: found /usr/local/bin/sdl-config
configure:3510: result: /usr/local/bin/sdl-config
configure:3518: checking for SDL - version >= 1.2.3
configure:3605: g++ -o conftest -g -O2 conftest.cc -L/usr/local/lib
-Wl,-rpath,/usr/loc
al/lib -lSDL -lpthread >&5
configure:3547: SDL.h: No such file or directory
configure:3608: $? = 1
configure: program exited with status 1
configure: failed program was:
unfortunately, the output of sdl-config --cflags
isn’t passed to the
compiler when testing the program. Output of the line would be:
-I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT
Is this my fault, or is the m4 file broken?
Another short question: I had to manually add -lSDLmain to my linker
flags. Is there a reason why this wasn’t added to the sdl-config --libs
output?
bye
Michael–
Underworld Adventures: http://uwadv.sourceforge.net
contact: vividos at users.sourceforge.net