Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 21d09f2771
Fetching contributors…

Cannot retrieve contributors at this time

68 lines (52 sloc) 1.467 kb
AC_INIT([Lunar Lander], [0.6.2],
[Nick Gasson <nick@nickg.me.uk>],
[lander])
AM_INIT_AUTOMAKE([-Wall -Werror])
AC_PROG_CC
AC_PROG_AWK
AC_PROG_CXX
AC_PROG_LN_S
AC_PROG_INSTALL
AC_PROG_CPP
AC_PROG_MKDIR_P
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([libintl.h memory.h stddef.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_CHECK_FUNCS([atexit memset pow setlocale strdup strrchr])
AC_CHECK_HEADERS([libintl.h unistd.h])
dnl Check for Boost
AX_BOOST_BASE(1.33)
AX_BOOST_FILESYSTEM
AX_BOOST_SYSTEM
dnl Check for OpenGL
AX_CHECK_GL
AX_CHECK_GLU
dnl Check for SDL
SDL_VERSION=1.2.5
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
dnl Check for SDL_Image
AC_CHECK_LIB(SDL_image, IMG_Load, [],
AC_MSG_ERROR([*** SDL_image not found!]))
dnl Check for SDL_Mixer
AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, [],
AC_MSG_ERROR([*** SDL_mixer not found!]))
dnl Check for Freetype and libpng
PKG_CHECK_MODULES(LANDER, freetype2 libpng)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile data/Makefile src/Makefile po/Makefile.in])
AC_OUTPUT
Jump to Line
Something went wrong with that request. Please try again.