dnl configure script for concentration AC_INIT(src/concentration.c) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE(concentration, 1.2) AC_PROG_CC AC_CHECK_FUNCS([atexit]) AC_C_CONST AC_FUNC_MALLOC dnl Check for SDL 1.2.4+ SDL_VERSION=1.2.4 AM_PATH_SDL($SDL_VERSION,:,AC_MSG_ERROR([*** SDL >= $SDL_VERSION not found!])) AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, [AC_CHECK_HEADER(SDL/SDL_mixer.h, , AC_MSG_ERROR(*** Cannot find the SDL/SDL_mixer.h header goto http://www.libsdl.org to download or check you with your distibution. ); exit)], AC_MSG_ERROR(*** Cannot find the SDL_mixer library goto http://www.libsdl.org to download or check you with your distibution. ); exit) AC_CHECK_LIB(SDL_ttf, TTF_Quit, [AC_CHECK_HEADER(SDL/SDL_ttf.h, , AC_MSG_ERROR(*** Cannot find the SDL/SDL_ttf.h header goto http://www.libsdl.org to download or check you with your distibution. ); exit)], AC_MSG_ERROR( *** Cannot find the SDL_ttf library goto http://www.libsdl.org to download or check you with your distibution. ); exit) AC_CHECK_LIB(SDL_image, IMG_Load, [AC_CHECK_HEADER(SDL/SDL_image.h, , AC_MSG_ERROR(*** Cannot find the SDL/SDL_image.h header goto http://www.libsdl.org to download or check you with your distibution. ); exit)], AC_MSG_ERROR(*** Cannot find the SDL_image library goto http://www.libsdl.org to download or check you with your distibution. ); exit) dnl Get compile and linking flags CFLAGS="$CFLAGS $SDL_CFLAGS -std=gnu99 -W -pedantic -Dsg_data_path=\\\"$datadir/$PACKAGE/\\\"" LIBS="$LIBS $SDL_LIBS -lSDL_mixer -lSDL_image -lSDL_ttf" dnl Generate Makefile AC_OUTPUT([Makefile pics/Makefile pics/set1/Makefile pics/set2/Makefile pics/set3/Makefile sounds/Makefile src/Makefile fonts/Makefile])