view configure.ac @ 47:3907aac7df1c

no longer set CXXFLAGS
author Robert McIntyre <rlm@mit.edu>
date Thu, 21 Mar 2013 19:06:58 +0000
parents 858cb0e04ae5
children 67e88056ad4f
line wrap: on
line source
1 AC_PREREQ([2.69])
3 AC_INIT([VBA-ReRecording], [1.7.2], [], [vba-rerecording],
4 [http://code.google.com/p/vba-rerecording/])
6 AC_CONFIG_AUX_DIR([build-aux])
8 AM_INIT_AUTOMAKE([foreign dist-bzip2])
10 AC_CONFIG_SRCDIR([src/gb/GB.cpp])
12 AC_CONFIG_HEADERS([config.h])
15 #AC_CANONICAL_TARGET
17 dnl AS_CASE([$target],
18 dnl [i?86-*-*], [VBA_USE_C_CORE=no; VBA_USE_MMX=yes]
19 dnl [*] , [VBA_USE_C_CORE=yes; VBA_USE_MMX=no])
21 # Checks for programs.
22 AC_PROG_CXX
23 AC_PROG_CC
24 AC_PROG_AWK
25 AC_PROG_INSTALL
26 AC_PROG_RANLIB
27 AC_PROG_CPP
28 AC_PROG_MKDIR_P
29 AC_PATH_PROG(NASM, nasm)
31 # Checks for libraries.
32 AC_CHECK_LIB(z, gzopen,
33 , AC_MSG_ERROR([*** Cannot compile without zlib.]))
35 AC_CHECK_LIB(png, png_create_write_struct,
36 , AC_MSG_ERROR([*** Cannot compile without libpng.]))
38 SDL_VERSION=1.2.2
39 AM_PATH_SDL($SDL_VERSION, :,
40 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
42 AC_CHECK_LIB([SDL], [SDL_Init])
44 AC_CHECK_LIB([pthread], [pthread_create])
46 # Checks for header files.
47 AC_FUNC_ALLOCA
49 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \
50 netinet/in.h stddef.h stdint.h stdlib.h string.h \
51 strings.h sys/socket.h unistd.h libintl.h])
53 # Checks for typedefs, structures, and compiler characteristics.
54 AC_HEADER_STDBOOL
55 AC_C_INLINE
56 AC_TYPE_INT16_T
57 AC_TYPE_INT32_T
58 AC_TYPE_INT64_T
59 AC_TYPE_INT8_T
60 AC_TYPE_SIZE_T
61 AC_TYPE_UINT16_T
62 AC_TYPE_UINT32_T
63 AC_TYPE_UINT64_T
64 AC_TYPE_UINT8_T
65 AC_CHECK_TYPES([ptrdiff_t])
67 # Checks for library functions.
68 AC_FUNC_ERROR_AT_LINE
69 AC_FUNC_FORK
70 AC_FUNC_MALLOC
71 AC_FUNC_MKTIME
72 AC_FUNC_REALLOC
73 AC_FUNC_STRCOLL
75 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \
76 localeconv memchr memset modf pow setlocale socket \
77 sqrt strcasecmp strchr strcspn strdup strerror \
78 strpbrk strrchr strstr strtoul])
80 AC_CONFIG_FILES([Makefile
81 src/Makefile
82 src/lua/Makefile
83 src/gb/Makefile
84 src/gba/Makefile
85 src/common/Makefile
86 src/SFMT/Makefile
87 src/filters/Makefile
88 src/prof/Makefile
89 src/sdl/Makefile])
91 ### RLM: investigate this further
92 AC_SUBST([AM_CXXFLAGS], [-DC_CORE])
93 #AC_SUBST([AM_CXXFLAGS], [-fno-exceptions])
94 #CXXFLAGS="$CXXFLAGS -DC_CORE"
96 echo "**************************"
97 echo $CXXFLAGS
99 AC_OUTPUT