Diff for /froggix/configure.ac between versions 1.1.1.1 and 1.4

version 1.1.1.1, 2009/03/27 19:47:27 version 1.4, 2009/03/31 02:29:00
Line 1 Line 1
 #                                               -*- Autoconf -*-  
 # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
   # $Id$
   AC_INIT(README)
   
 AC_PREREQ(2.61)  # Setup for automake
 AC_INIT(froggix, 0.5, nick@declario.com)  PROJ_NAME=froggix
 AM_INIT_AUTOMAKE(froggix, 0.5)  PROJ_VERSION=1.0.0
 AC_CONFIG_SRCDIR([froggix.c])  AM_INIT_AUTOMAKE($PROJ_NAME, $PROJ_VERSION)
 AC_CONFIG_HEADER([config.h])  
   # Detect the canonical host and target build environment
   AC_CANONICAL_HOST
   AC_CANONICAL_TARGET
   
 # Checks for programs.  # Check for tools
 AC_PROG_CC  AC_PROG_CC
   AC_PROG_CXX
   
 # Checks for libraries.  # Check for compiler environment
   AC_C_CONST
   
 # Checks for header files.  # Figure out which math and OpenGL libraries to use
 AC_HEADER_STDC  case "$target" in
 AC_CHECK_HEADERS([stdlib.h unistd.h])      *-*-cygwin* | *-*-mingw32*)
           MATHLIB=""
           SYS_GL_LIBS="-lopengl32"
           ;;
       *-*-beos* | *-*-darwin*)
           MATHLIB=""
           SYS_GL_LIBS="-lGL"
           ;;
       *-*-aix*)
           if test x$ac_cv_prog_gcc = xyes; then
               CFLAGS="-mthreads"
           fi
           ;;
       *)
           MATHLIB="-lm"
           AC_PATH_X
           AC_PATH_XTRA
           if test x$have_x = xyes; then
               CFLAGS="$CFLAGS $X_CFLAGS"
               SYS_GL_LIBS="$X_LIBS -lGL"
           else
               SYS_GL_LIBS="-lGL"
           fi
           ;;
   esac
   AC_SUBST(MATHLIB)
   
   # Check for SDL
   SDL_VERSION=1.1.8
   AM_PATH_SDL($SDL_VERSION, :,
               AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
   CFLAGS="$CFLAGS $SDL_CFLAGS"
   CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
   LIBS="$LIBS $SDL_LIBS"
   
   # Check for SDL_image library
   AC_CHECK_LIB(SDL_image, IMG_LoadPNG_RW, , AC_MSG_ERROR([
   *** Unable to find SDL_image libary with PNG support
   (http://www.libsdl.org/projects/SDL_image/)
   ]))
   
   # Check for SDL_ttf library
   AC_CHECK_LIB(SDL_ttf, TTF_OpenFont, , AC_MSG_ERROR([
   *** Unable to find SDL_ttf libary 
   (http://www.libsdl.org/projects/SDL_image/)
   ]))
   
   # Check for SDL_mixer library
   AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, , AC_MSG_ERROR([
   *** Unable to find SDL_mixer libary 
   (http://www.libsdl.org/projects/SDL_image/)
   ]))
   
   
   ### No need for OpenGL right now
   # Check for OpenGL
   #AC_MSG_CHECKING(for OpenGL support)
   #HAVE_OPENGL=no
   #AC_TRY_COMPILE([
    #include <GL/gl.h>
   #],[
   #],[
   #HAVE_OPENGL=yes
   #])
   #AC_MSG_RESULT($HAVE_OPENGL)
   #if test x$HAVE_OPENGL = xyes; then
   #    CFLAGS="$CFLAGS -DHAVE_OPENGL"
   #    GL_LIBS="$SYS_GL_LIBS"
   #else
   #    GL_LIBS=""
   #fi
   #AC_SUBST(GL_LIBS)
   ### End of OpenGL
   
 # Checks for typedefs, structures, and compiler characteristics.  # Check for standard C++ library
   AC_CHECK_LIB(stdc++, main)
   
 # Checks for library functions.  # Finally create all the generated files
   AC_OUTPUT(Makefile src/Makefile)
 AC_OUTPUT(Makefile)  

Removed from v.1.1.1.1  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>