# This first line initializes autoconf and gives it a file that it can
# look for to make sure the source distribution is complete.
# The AM_INIT_AUTOMAKE macro tells automake the name and version number
# of the software package so it can generate rules for building a source
# We now have a list of macros which tell autoconf what tools we need to
# build our software, in this case "make", a C++ compiler, and "install".
# If we were creating a C program, we would use AC_PROC_CC instead of CXX.
# This is a trick I learned at Loki - the current compiler for the alpha
# architecture doesn't produce code that works on all versions of the
# alpha processor. This bit detects the current compile architecture
# and sets the compiler flags to produce portable binary code.
case "$target" in
CXXFLAGS="$CXXFLAGS -mcpu=ev4 -Wa,-mall"
# Use the macro SDL provides to check the installed version of the SDL
# development environment. Abort the configuration process if the
# minimum version we require isn't available.
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
# Add the SDL preprocessor flags and libraries to the build process
#Thanks to Ingo Ruhnke <firstname.lastname@example.org>
# Finally create all the generated files
# The configure script takes "file.in" and substitutes variables to produce
# "file". In this case we are just generating the Makefiles, but this could
# be used to generate any number of automatically generated files.