view configure.ac @ 68:86093f2ce7d1

got the speedrun to play
author Robert McIntyre <rlm@mit.edu>
date Thu, 08 Mar 2012 02:10:03 -0600
parents b1969e1b310d
children
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)
22 AC_PROG_LIBTOOL
25 # Checks for libraries.
26 AC_CHECK_LIB(z, gzopen,
27 , AC_MSG_ERROR([*** Cannot compile without zlib.]))
28 AC_CHECK_LIB(png, png_create_write_struct,
29 , AC_MSG_ERROR([*** Cannot compile without libpng.]), [-lz])
31 SDL_VERSION=1.2.2
32 AM_PATH_SDL($SDL_VERSION, :,
33 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
34 AC_CHECK_LIB([SDL], [SDL_Init])
36 AC_CHECK_LIB([pthread], [pthread_create])
40 # Checks for header files.
41 AC_FUNC_ALLOCA
42 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])
44 # Checks for typedefs, structures, and compiler characteristics.
45 AC_HEADER_STDBOOL
46 AC_C_INLINE
47 AC_TYPE_INT16_T
48 AC_TYPE_INT32_T
49 AC_TYPE_INT64_T
50 AC_TYPE_INT8_T
51 AC_TYPE_SIZE_T
52 AC_TYPE_UINT16_T
53 AC_TYPE_UINT32_T
54 AC_TYPE_UINT64_T
55 AC_TYPE_UINT8_T
56 AC_CHECK_TYPES([ptrdiff_t])
58 # Checks for library functions.
59 AC_FUNC_ERROR_AT_LINE
60 AC_FUNC_FORK
61 AC_FUNC_MALLOC
62 AC_FUNC_MKTIME
63 AC_FUNC_REALLOC
64 AC_FUNC_STRCOLL
65 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])
69 # find JNI headers
70 AC_ARG_VAR([JAVA_INCLUDE_PATH], [The path to the jni.h])
71 AC_ARG_VAR([JAVA_INCLUDE_PATH2], [The path to jni_md.h])
74 if test "x$JAVA_INCLUDE_PATH" = "x"; then
75 echo "----------------------------------"
76 echo "you must have JAVA_INCLUDE_PATH defined."
77 echo "this is the path to jni.h"
78 echo "----------------------------------"
79 fi
81 if test "x$JAVA_INCLUDE_PATH2" = "x"; then
82 echo "----------------------------------"
83 echo "you must have JAVA_INCLUDE_PATH2 defined."
84 echo "this is the path to jni_md.h"
85 echo "----------------------------------"
86 fi
88 if test "x$JAVA_INCLUDE_PATH" = "x"; then
89 AC_MSG_ERROR([JAVA_INCLUDE_PATH not defined])
90 fi
92 if test "x$JAVA_INCLUDE_PATH2" = "x"; then
93 AC_MSG_ERROR([JAVA_INCLUDE_PATH2 not defined])
94 fi
96 #AC_SUBST(JAVA_INCLUDE_PATH)
97 #AC_SUBST(JAVA_INCLUDE_PATH2)
99 AC_CONFIG_FILES([Makefile
100 src/Makefile
101 src/lua/Makefile
102 src/clojure/Makefile
103 src/gb/Makefile
104 src/gba/Makefile
105 src/common/Makefile
106 src/SFMT/Makefile
107 src/filters/Makefile
108 src/prof/Makefile
109 src/sdl/Makefile])
113 ### RLM: investigate this further
114 CXXFLAGS="$CXXFLAGS -DC_CORE"
117 AC_OUTPUT