1 # Process this file with autoconf to produce a "configure" script.
7 SVNVERSION='$(shell $(top_srcdir)/svnversion.sh)'
9 VERSION='$(shell $(top_srcdir)/version.sh)'
10 DIST_FILES='$(shell $(top_srcdir)/dist_files.sh)'
12 if test -z "$DIST_FILES" -o "$DIST_FILES" == " "; then
17 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
19 AC_CONFIG_HEADER([src/config.h])
21 INITIAL_CFLAGS="-W -Wall -Wno-unused-parameter -ansi -pedantic \
22 -Wno-endif-labels -g -fPIC -DSVNVERSION='\"$SVNVERSION\"'"
23 AC_SUBST(INITIAL_CFLAGS)
25 # Find various programs
36 # Check for required libraries
37 AC_CHECK_LIB([SDL], [SDL_Init])
38 AC_CHECK_LIB([SDL_gfx], [zoomSurface])
39 AC_CHECK_LIB([SDL_image], [IMG_Load])
40 AC_CHECK_LIB([SDL_ttf], [TTF_Init])
42 #AC_CHECK_LIB([SGE], [sge_transform_surface])
44 AC_CHECK_LIB([expat], [XML_ParserCreate])
45 AC_CHECK_LIB([mxml], [mxmlLoadFile])
47 # AC_CHECK_HEADER(SDL.h, , AC_MSG_ERROR(SDL 1.2 required))
49 SDL_CFLAGS=`sdl-config --cflags`
51 SDL_LIBS="`sdl-config --libs` -lSDL_image -lSDL_gfx -lSDL_ttf \
55 # Checks for C language features and supported data types
60 # Checks for required standard C functions
65 AC_CHECK_FUNCS([memmove pow strchr strtol])
67 AM_CONDITIONAL(DYNAMIC_HANDLERS, test -z "")
70 CONFIG_CFLAGS="-DLOADSO_STATIC_VERSION="
74 AC_SUBST(CONFIG_CFLAGS)
76 # Read Makefile.in's and write Makefile's