1AC_INIT(volleyball, 0.8.6) 2AC_CANONICAL_TARGET 3 4AM_INIT_AUTOMAKE 5AC_PREREQ([2.50]) 6AM_CONFIG_HEADER(config.h) 7AC_PROG_CC 8 9dnl gettext, soporte para idiomas 10AM_GNU_GETTEXT 11AC_SUBST(localedir) 12ALL_LINGUAS="" 13 14 15 16dnl------------------------------------------------------- 17dnl Checks for SDL 18dnl------------------------------------------------------- 19SDL_VERSION=1.2.0 20AM_PATH_SDL($SDL_VERSION,:, 21 AC_MSG_ERROR([*** SDL version $SDL_VERSION required!]) 22) 23CFLAGS="$CFLAGS $SDL_CFLAGS" 24LIBS="$LIBS $SDL_LIBS" 25 26dnl------------------------------------------------------- 27dnl Checks for SDL_image and SDL_mixer 28dnl------------------------------------------------------- 29dnl Check for the mixer and IMGlib libraries 30have_SDLmixer=no 31AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, have_SDLmixer=yes) 32 33 if test x$have_SDLmixer != xyes; then 34 AC_MSG_ERROR([*** Can't find the SDL_mixer library 35 Try: http://www.libsdl.org/projects/SDL_mixer/ 36 ]) 37 fi 38 39have_SDLimage=no 40AC_CHECK_LIB(SDL_image, IMG_Load_RW, have_SDLimage=yes) 41 42 if test x$have_SDLimage != xyes; then 43 AC_MSG_ERROR([*** Can't find the SDL_image library 44 Try: http://www.libsdl.org/projects/SDL_image/ 45 ]) 46 fi 47 48 49LIBS="$LIBS -lSDL_image -lSDL_mixer" 50 51dnl Get compile and linking flags 52CFLAGS="$CFLAGS $SDL_CFLAGS" 53LIBS="$LIBS $SDL_LIBS" 54 55 56AC_SUBST(DEPS_CFLAGS) 57AC_SUBST(DEPS_LIBS) 58 59AC_OUTPUT([ 60Makefile 61src/Makefile 62doc/Makefile 63doc/src/Makefile 64intl/Makefile 65po/Makefile.in 66]) 67