Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 70 lines (55 sloc) 1.496 kb
11fd757 @nickg Bump version to 0.6.6
authored
1 AC_INIT([Lunar Lander], [0.6.6],
941ef12 @nickg Update version number for master
authored
2 [Nick Gasson <nick@nickg.me.uk>],
3ce58e8 Bug fix
nick authored
3 [lander])
d6d8af8 @nickg Tidy up autotools files
authored
4 AM_INIT_AUTOMAKE([1.11 -Wall -Werror])
5 AM_SILENT_RULES([yes])
6
7 AC_CONFIG_MACRO_DIR([m4])
5b02e59 @nickg Add configure checks suggested by autoscan
authored
8
3ce58e8 Bug fix
nick authored
9 AC_PROG_CC
5b02e59 @nickg Add configure checks suggested by autoscan
authored
10 AC_PROG_AWK
3ce58e8 Bug fix
nick authored
11 AC_PROG_CXX
93526e5 @nickg Add some missing checks to configure.ac
authored
12 AC_PROG_LN_S
5b02e59 @nickg Add configure checks suggested by autoscan
authored
13 AC_PROG_INSTALL
14 AC_PROG_CPP
15 AC_PROG_MKDIR_P
3ce58e8 Bug fix
nick authored
16
e25acbf i18n for lander
nick authored
17 AM_GNU_GETTEXT([external])
8d0ef2c @nickg Remove autotools generated files
authored
18 AM_GNU_GETTEXT_VERSION([0.18.3])
e25acbf i18n for lander
nick authored
19
3ce58e8 Bug fix
nick authored
20 # Checks for header files.
21 AC_HEADER_STDC
e25acbf i18n for lander
nick authored
22 AC_CHECK_HEADERS([libintl.h memory.h stddef.h stdlib.h string.h unistd.h])
3ce58e8 Bug fix
nick authored
23
24 # Checks for typedefs, structures, and compiler characteristics.
25 AC_HEADER_STDBOOL
26 AC_C_CONST
27 AC_C_INLINE
28 AC_TYPE_SIZE_T
29 AC_TYPE_UINT16_T
30 AC_TYPE_UINT32_T
31
32 # Checks for library functions.
33 AC_FUNC_MALLOC
93526e5 @nickg Add some missing checks to configure.ac
authored
34 AC_FUNC_STAT
5b02e59 @nickg Add configure checks suggested by autoscan
authored
35 AC_CHECK_FUNCS([atexit memset pow setlocale strdup strrchr])
36
37 AC_CHECK_HEADERS([libintl.h unistd.h])
3ce58e8 Bug fix
nick authored
38
67e6191 Minor code tidy
Nick Gasson authored
39 dnl Check for Boost
d6d8af8 @nickg Tidy up autotools files
authored
40 AX_BOOST_BASE(1.44)
67e6191 Minor code tidy
Nick Gasson authored
41 AX_BOOST_FILESYSTEM
403e099 @nickg Fix configure checks for Boost and GL
authored
42 AX_BOOST_SYSTEM
43
44 dnl Check for OpenGL
45 AX_CHECK_GL
46 AX_CHECK_GLU
67e6191 Minor code tidy
Nick Gasson authored
47
3ce58e8 Bug fix
nick authored
48 dnl Check for SDL
49 SDL_VERSION=1.2.5
50 AM_PATH_SDL($SDL_VERSION,
51 :,
52 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
7248bbe Start moving to separate PNG images
nick authored
53 )
3ce58e8 Bug fix
nick authored
54
7248bbe Start moving to separate PNG images
nick authored
55 dnl Check for SDL_Image
56 AC_CHECK_LIB(SDL_image, IMG_Load, [],
57 AC_MSG_ERROR([*** SDL_image not found!]))
f337efd @nickg Add sound effects
authored
58
59 dnl Check for SDL_Mixer
60 AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, [],
61 AC_MSG_ERROR([*** SDL_mixer not found!]))
d6d8af8 @nickg Tidy up autotools files
authored
62
7248bbe Start moving to separate PNG images
nick authored
63 dnl Check for Freetype and libpng
d6d8af8 @nickg Tidy up autotools files
authored
64 PKG_CHECK_MODULES(FREETYPE, freetype2)
65 PKG_CHECK_MODULES(LIBPNG, libpng)
3ce58e8 Bug fix
nick authored
66
67 AC_CONFIG_HEADERS([config.h])
7248bbe Start moving to separate PNG images
nick authored
68 AC_CONFIG_FILES([Makefile data/Makefile src/Makefile po/Makefile.in])
3ce58e8 Bug fix
nick authored
69 AC_OUTPUT
Something went wrong with that request. Please try again.