view configure.ac @ 31:094360cdf3b2

VisualBoyAdvance compiles, we will see if it works...
author Robert McIntyre <rlm@mit.edu>
date Sun, 04 Mar 2012 22:34:59 -0600
parents 48369c6aeaa0
children f6ff410a87fd
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])
13 # Checks for programs.
14 AC_PROG_CXX
15 AC_PROG_CC
16 AC_PROG_AWK
17 AC_PROG_INSTALL
18 AC_PROG_RANLIB
19 AC_PROG_CPP
20 AC_PROG_MKDIR_P
21 AC_PATH_PROG(NASM, nasm)
23 # Checks for libraries.
24 AC_CHECK_LIB(z, gzopen,
25 , AC_MSG_ERROR([*** Cannot compile without zlib.]))
26 AC_CHECK_LIB(png, png_create_write_struct,
27 , AC_MSG_ERROR([*** Cannot compile without libpng.]), [-lz])
29 SDL_VERSION=1.2.2
30 AM_PATH_SDL($SDL_VERSION, :,
31 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
32 AC_CHECK_LIB([SDL], [SDL_Init])
34 AC_CHECK_LIB([pthread], [pthread_create])
38 # Checks for header files.
39 AC_FUNC_ALLOCA
40 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/socket.h unistd.h libintl.h])
42 # Checks for typedefs, structures, and compiler characteristics.
43 AC_HEADER_STDBOOL
44 AC_C_INLINE
45 AC_TYPE_INT16_T
46 AC_TYPE_INT32_T
47 AC_TYPE_INT64_T
48 AC_TYPE_INT8_T
49 AC_TYPE_SIZE_T
50 AC_TYPE_UINT16_T
51 AC_TYPE_UINT32_T
52 AC_TYPE_UINT64_T
53 AC_TYPE_UINT8_T
54 AC_CHECK_TYPES([ptrdiff_t])
56 # Checks for library functions.
57 AC_FUNC_ERROR_AT_LINE
58 AC_FUNC_FORK
59 AC_FUNC_MALLOC
60 AC_FUNC_MKTIME
61 AC_FUNC_REALLOC
62 AC_FUNC_STRCOLL
63 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa localeconv memchr memset modf pow setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strpbrk strrchr strstr strtoul])
65 AC_CONFIG_FILES([Makefile
66 src/Makefile
67 src/lua/Makefile
68 src/gb/Makefile
69 src/gba/Makefile
70 src/common/Makefile
71 src/SFMT/Makefile
72 src/filters/Makefile
73 src/prof/Makefile
74 src/sdl/Makefile])
78 ### RLM: investigate this further
79 CXXFLAGS="$CXXFLAGS -DC_CORE"
82 AC_OUTPUT