Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. dnl Process this file with autoconf to produce a configure script.
  2.  
  3. dnl Simple Automake init
  4. AC_INIT(pig.c)
  5.  
  6. AC_CANONICAL_HOST
  7. AC_CANONICAL_TARGET
  8.  
  9. AM_INIT_AUTOMAKE(pig, 1.0)
  10.  
  11. dnl Check for various tools
  12. AC_PROG_CC
  13. AC_PROG_CPP
  14.  
  15. dnl Check some compiler/platform stuff
  16. AC_TYPE_SIGNAL
  17.  
  18. dnl-------------------------------------------------------
  19. dnl Checks for SDL
  20. dnl-------------------------------------------------------
  21. SDL_VERSION=1.2.0
  22. AM_PATH_SDL($SDL_VERSION,:,
  23.         AC_MSG_ERROR([*** SDL version $SDL_VERSION required!])
  24. )
  25. CFLAGS="$CFLAGS $SDL_CFLAGS"
  26. LIBS="$LIBS $SDL_LIBS"
  27.  
  28. dnl-------------------------------------------------------
  29. dnl Checks for SDL_image
  30. dnl-------------------------------------------------------
  31. AC_CHECK_LIB(SDL_image, IMG_Load,,
  32.         AC_MSG_ERROR([You need the SDL_image library to compile this software.
  33.         Get it at http://www.libsdl.org/projects/SDL_image/]),
  34.         -lSDL
  35. )
  36. LIBS="$LIBS -lSDL_image"
  37.  
  38. dnl Get compile and linking flags
  39. CFLAGS="$CFLAGS $SDL_CFLAGS"
  40. LIBS="$LIBS $SDL_LIBS"
  41.  
  42. dnl Generate Makefile
  43. AC_OUTPUT(Makefile)
  44.