view configure.ac @ 46:858cb0e04ae5

cleanup.
author Robert McIntyre <rlm@mit.edu>
date Thu, 21 Mar 2013 17:48:45 +0000
parents 6803cb8a6ebf
children 3907aac7df1c
line wrap: on
line source
1 AC_PREREQ([2.68])
3 AC_INIT([VisualBoyAdvance], [1.7.2])
5 AC_CONFIG_AUX_DIR([build-aux])
7 AM_INIT_AUTOMAKE([foreign dist-bzip2])
9 AC_CONFIG_SRCDIR([src/gb/GB.cpp])
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.]))
27 AC_CHECK_LIB(png, png_create_write_struct,
28 , AC_MSG_ERROR([*** Cannot compile without libpng.]))
30 SDL_VERSION=1.2.2
31 AM_PATH_SDL($SDL_VERSION, :,
32 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
34 AC_CHECK_LIB([SDL], [SDL_Init])
36 AC_CHECK_LIB([pthread], [pthread_create])
38 # Checks for header files.
39 AC_FUNC_ALLOCA
41 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \
42 netinet/in.h stddef.h stdint.h stdlib.h string.h \
43 strings.h sys/socket.h unistd.h libintl.h])
45 # Checks for typedefs, structures, and compiler characteristics.
46 AC_HEADER_STDBOOL
47 AC_C_INLINE
48 AC_TYPE_INT16_T
49 AC_TYPE_INT32_T
50 AC_TYPE_INT64_T
51 AC_TYPE_INT8_T
52 AC_TYPE_SIZE_T
53 AC_TYPE_UINT16_T
54 AC_TYPE_UINT32_T
55 AC_TYPE_UINT64_T
56 AC_TYPE_UINT8_T
57 AC_CHECK_TYPES([ptrdiff_t])
59 # Checks for library functions.
60 AC_FUNC_ERROR_AT_LINE
61 AC_FUNC_FORK
62 AC_FUNC_MALLOC
63 AC_FUNC_MKTIME
64 AC_FUNC_REALLOC
65 AC_FUNC_STRCOLL
67 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \
68 localeconv memchr memset modf pow setlocale socket \
69 sqrt strcasecmp strchr strcspn strdup strerror \
70 strpbrk strrchr strstr strtoul])
72 AC_CONFIG_FILES([Makefile
73 src/Makefile
74 src/lua/Makefile
75 src/gb/Makefile
76 src/gba/Makefile
77 src/common/Makefile
78 src/SFMT/Makefile
79 src/filters/Makefile
80 src/prof/Makefile
81 src/sdl/Makefile])
83 ### RLM: investigate this further
84 CXXFLAGS="$CXXFLAGS -DC_CORE"
86 AC_OUTPUT