About building static SDL linked binary and configure scripts

Hi all, as I’m near to release my first game done with SDL,
I have some questions to ask…

First : It is a good idea to distribute a binary package of the game ?
(for people who don’t want to get SDL just to play a game…)
and how is that done ? (i’ve tried -static with the following lib
links: -lSDL -lpthread -L
/usr/X11/lib -lX11 -lSM
but it still need other lib …) Anyway i think the compiled binary
will be too big…

Second: How is, a simple configure script that check for SDL in the
system , done ?

Thanks–

  • @G.Gabriele ---------------+
    | Linux |
    ±--------------- the free philosophy -+

sdl-config --version under linux anyway

Long live the confused,
Akawaka.–
Bother, said Pooh as he developed crabs.

On Fri, 4 Feb 2000, G.Gabriele wrote:

Second: How is, a simple configure script that check for SDL in the
system , done ?

“G.Gabriele” wrote:

Second: How is, a simple configure script that check for SDL in the
system , done ?

Use AC_CHECK_LIB, using for example the initialization function of SDL
as the function to look for:

http://www.gnu.org/manual/autoconf/html_mono/autoconf.html#SEC25--
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/