AC_INIT(Makefile.am) AM_INIT_AUTOMAKE(BomberInstinct,0.8.8) AC_PROG_MAKE_SET AC_PROG_CC # CFLAGS="-g -DDEBUG -W" AC_CONFIG_AUX_DIR(.) # 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. AM_PATH_SDL(1.1.0,, AC_MSG_ERROR(*** SDL version >=1.1.0 not found ! http://www.libsdl.org)) AC_CHECK_LIB(SDL_mixer, main,, AC_MSG_ERROR(SDL_mixer is needed. http://www.libsdl.org)) case "$target" in *-mingw32*) CIBLE=-Dwin32 ;; *-linux*) CIBLE=-Dlinux ;; esac CFLAGS="$CFLAGS $SDL_CFLAGS $CIBLE -DDIR=\\\"$datadir/BomberInstinct\\\" " LIBS="$LIBS $SDL_LIBS" AC_OUTPUT(Makefile src/Makefile data/Makefile data/Decors/Makefile data/Bruitages/Makefile data/Sprites/Makefile data/Niveaux/Makefile BomberInstinct.spec)