Makefiles

If you are using home-grown Makefiles for your project, you can get the
proper CFLAGS and LDFLAGS for SDL by adding the following lines to your
Makefile:

SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)

If you are using autoconf and automake for your project, you can copy
the contents of ‘sdl.m4’ into your acinclude.m4 file, and then add the
following to your configure.in file:

dnl Check for SDL
SDL_VERSION=1.0.0
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec