annotate configure.ac @ 45:6803cb8a6ebf

fix columns in configure.ac, and remove generated makefiles.
author Robert McIntyre <rlm@mit.edu>
date Thu, 21 Mar 2013 17:21:54 +0000
parents 48369c6aeaa0
children 858cb0e04ae5
rev   line source
rlm@9 1 AC_PREREQ([2.68])
rlm@9 2
rlm@6 3 AC_INIT([vba-rlm], [1.0])
rlm@6 4
rlm@19 5 AC_CONFIG_AUX_DIR([build-aux])
rlm@19 6
rlm@19 7 AM_INIT_AUTOMAKE([foreign dist-bzip2])
rlm@19 8
rlm@9 9 dnl TODO: change this to gba.cpp or something
rlm@12 10 AC_CONFIG_SRCDIR([src/lua/lopcodes.c])
rlm@9 11 AC_CONFIG_HEADERS([config.h])
rlm@18 12
rlm@18 13 # Checks for programs.
rlm@18 14 AC_PROG_CXX
rlm@18 15 AC_PROG_CC
rlm@21 16 AC_PROG_AWK
rlm@21 17 AC_PROG_INSTALL
rlm@9 18 AC_PROG_RANLIB
rlm@21 19 AC_PROG_CPP
rlm@21 20 AC_PROG_MKDIR_P
rlm@27 21 AC_PATH_PROG(NASM, nasm)
rlm@19 22
rlm@21 23 # Checks for libraries.
rlm@30 24 AC_CHECK_LIB(z, gzopen,
rlm@30 25 , AC_MSG_ERROR([*** Cannot compile without zlib.]))
rlm@30 26 AC_CHECK_LIB(png, png_create_write_struct,
rlm@30 27 , AC_MSG_ERROR([*** Cannot compile without libpng.]), [-lz])
rlm@30 28
rlm@30 29 SDL_VERSION=1.2.2
rlm@30 30 AM_PATH_SDL($SDL_VERSION, :,
rlm@30 31 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
rlm@21 32 AC_CHECK_LIB([SDL], [SDL_Init])
rlm@30 33
rlm@21 34 AC_CHECK_LIB([pthread], [pthread_create])
rlm@19 35
rlm@19 36
rlm@19 37
rlm@9 38 # Checks for header files.
rlm@28 39 AC_FUNC_ALLOCA
rlm@45 40
rlm@45 41 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \
rlm@45 42 netinet/in.h stddef.h stdint.h stdlib.h \
rlm@45 43 string.h strings.h sys/socket.h unistd.h \
rlm@45 44 libintl.h])
rlm@9 45
rlm@9 46 # Checks for typedefs, structures, and compiler characteristics.
rlm@18 47 AC_HEADER_STDBOOL
rlm@18 48 AC_C_INLINE
rlm@21 49 AC_TYPE_INT16_T
rlm@21 50 AC_TYPE_INT32_T
rlm@21 51 AC_TYPE_INT64_T
rlm@21 52 AC_TYPE_INT8_T
rlm@9 53 AC_TYPE_SIZE_T
rlm@21 54 AC_TYPE_UINT16_T
rlm@21 55 AC_TYPE_UINT32_T
rlm@21 56 AC_TYPE_UINT64_T
rlm@21 57 AC_TYPE_UINT8_T
rlm@9 58 AC_CHECK_TYPES([ptrdiff_t])
rlm@9 59
rlm@9 60 # Checks for library functions.
rlm@9 61 AC_FUNC_ERROR_AT_LINE
rlm@21 62 AC_FUNC_FORK
rlm@21 63 AC_FUNC_MALLOC
rlm@9 64 AC_FUNC_MKTIME
rlm@9 65 AC_FUNC_REALLOC
rlm@9 66 AC_FUNC_STRCOLL
rlm@45 67
rlm@45 68 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \
rlm@45 69 localeconv memchr memset modf pow setlocale \
rlm@45 70 socket sqrt strcasecmp strchr strcspn strdup \
rlm@45 71 strerror strpbrk strrchr strstr strtoul])
rlm@21 72
rlm@8 73 AC_CONFIG_FILES([Makefile
rlm@8 74 src/Makefile
rlm@18 75 src/lua/Makefile
rlm@19 76 src/gb/Makefile
rlm@19 77 src/gba/Makefile
rlm@26 78 src/common/Makefile
rlm@27 79 src/SFMT/Makefile
rlm@28 80 src/filters/Makefile
rlm@30 81 src/prof/Makefile
rlm@28 82 src/sdl/Makefile])
rlm@8 83
rlm@30 84 ### RLM: investigate this further
rlm@30 85 CXXFLAGS="$CXXFLAGS -DC_CORE"
rlm@30 86
rlm@6 87 AC_OUTPUT