New with SDL 0.11.2 is the ability to easily add autoconf support
for SDL programs.
SDL installs a file into /usr/share/aclocal which provides a way
for your program to detect the current SDL installation and build
with it. This replaces the old GNUmake system.
Without further ado, here is a short document describing the process
for simple programs.
Further automake/autoconf documentation can be found at:
-Sam Lantinga (slouken at devolution.com)
Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec
-------------- next part --------------
Note: SDL must be installed for this to work properly.
Here’s how I converted the founts example program to use autoconf:
I first created a configure.in file for the application:
– configure.in –
dnl Process this file with autoconf to produce a configure script.
dnl Setup for automake
dnl Check for tools
dnl Check for SDL 0.11.2
Finally create all the generated files
I then created a Makefile.am file for the application:
– Makefile.am –
bin_PROGRAMS = founts
EXTRA_DIST = COPYING Changelog README
Then I ran the following programs:
automake -v --foreign -c -a
Now the program is all set up!
Type ‘./configure’ and then ‘make’ to build the program.
When you are ready to redistribute it, type ‘make dist’