1 AC_INIT(Chocolate Doom, 1.2.1, fraggle@gmail.com, chocolate-doom)
3 AC_CONFIG_AUX_DIR(autotools)
9 AC_CHECK_PROG(HAVE_PYTHON, python, true, false)
13 # Engine room, we need more speed!
15 AC_ARG_ENABLE(penis-extension,
16 [ --enable-penis-extension Enable counterproductive compiler optimisations ],
19 # If this is gcc, we have some options we'd like to turn on. Turn on
20 # optimisation and debugging symbols.
22 if test "$GCC" = "yes"
24 CFLAGS="-O$OPT_LEVEL -g -Wall $orig_CFLAGS"
27 dnl Search for SDL ...
31 # Add the SDL compiler flags to the default compiler flag variables.
32 # It is important to do this now, before checking for headers and
33 # library functions. The reason being that on Windows, sdl-config
34 # sets the -mno-cygwin compiler option in order to generate MinGW
35 # executables. If we don't do this now, we might end up discovering
36 # header files that are not actually available to us when we come
39 CFLAGS="$CFLAGS $SDL_CFLAGS"
40 LDFLAGS="$LDFLAGS $SDL_LIBS"
42 AC_CHECK_LIB(SDL_mixer,Mix_LoadMUS,[
43 SDLMIXER_LIBS="$SDLMIXER_LIBS -lSDL_mixer"
45 echo "*** Could not find SDL_mixer. Please install it."
49 AC_CHECK_LIB(SDL_net,SDLNet_UDP_Send,[
50 SDLNET_LIBS="$SDLNET_LIBS -lSDL_net"
52 echo "*** Could not find SDL_net. Please install it."
61 *mingw32ce*|*cegcc*|*wince*)
62 CFLAGS="-I../wince $CFLAGS"
69 AC_CHECK_HEADERS([linux/kd.h dev/isa/spkrio.h dev/speaker/speaker.h])
70 AC_CHECK_FUNCS(mmap sched_setaffinity)
72 # DWF 2008-02-10: FIXME
73 AC_CHECK_LIB(samplerate, src_new)
75 AC_CHECK_TOOL(WINDRES, windres, )
77 AM_CONDITIONAL(WINDOWS_CE, $WINDOWS_CE)
78 AM_CONDITIONAL(HAVE_WINDRES, test "$WINDRES" != "")
79 AM_CONDITIONAL(HAVE_PYTHON, $HAVE_PYTHON)
81 dnl Automake v1.8.0 is required, please upgrade!
83 AM_INIT_AUTOMAKE([1.8.0])
85 WINDOWS_RC_VERSION=`echo $PACKAGE_VERSION.0 | sed 's/\./, /g' `
87 AM_CONFIG_HEADER(config.h:config.hin)
89 AC_SUBST(WINDOWS_RC_VERSION)
90 AC_SUBST(SDLMIXER_CFLAGS)
91 AC_SUBST(SDLMIXER_LIBS)
93 AC_SUBST(SDLNET_CFLAGS)
98 dnl Shut up the datarootdir warnings.
99 AC_DEFUN([AC_DATAROOTDIR_CHECKED])
105 textscreen/examples/Makefile
112 src/doom-screensaver.desktop