view configure.ac @ 19:5e8e5083da94

brought in common and gba, fixed problems with outdated Makefile.am files in both of these packages
author Robert McIntyre <rlm@mit.edu>
date Sun, 04 Mar 2012 14:33:52 -0600
parents ac56489c2ca6
children e0545ef33bb9
line wrap: on
line source
1 AC_PREREQ([2.68])
3 AC_INIT([vba-rlm], [1.0])
5 AC_CONFIG_AUX_DIR([build-aux])
7 AM_INIT_AUTOMAKE([foreign dist-bzip2])
9 dnl TODO: change this to gba.cpp or something
10 AC_CONFIG_SRCDIR([src/lua/lopcodes.c])
11 AC_CONFIG_HEADERS([config.h])
14 # Checks for programs.
15 AC_PROG_CXX
16 AC_PROG_CC
17 AC_PROG_RANLIB
21 # SDL stuff
22 SDL_VERSION=1.2.2
23 AM_PATH_SDL($SDL_VERSION,[
24 ],[
25 AC_MSG_ERROR([*** Couldn't find SDL library (version >= $SDL_VERSION).])
26 ])
30 # Checks for header files.
31 AC_CHECK_HEADERS([limits.h locale.h stddef.h stdlib.h string.h unistd.h])
33 # Checks for typedefs, structures, and compiler characteristics.
34 AC_HEADER_STDBOOL
35 AC_C_INLINE
36 AC_TYPE_SIZE_T
37 AC_CHECK_TYPES([ptrdiff_t])
39 # Checks for library functions.
40 AC_FUNC_ERROR_AT_LINE
41 AC_FUNC_MKTIME
42 AC_FUNC_MALLOC
43 AC_FUNC_REALLOC
44 AC_FUNC_STRCOLL
45 AC_CHECK_FUNCS([floor localeconv memchr memset dnl
46 modf pow setlocale sqrt dnl
47 strchr strcspn strerror dnl
48 strpbrk strrchr strstr strtoul])
50 AC_CONFIG_FILES([Makefile
51 src/Makefile
52 src/lua/Makefile
53 src/gb/Makefile
54 src/gba/Makefile
55 src/common/Makefile])
59 AC_OUTPUT