Mercurial > vba-linux
view 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 |
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 something10 AC_CONFIG_SRCDIR([src/lua/lopcodes.c])11 AC_CONFIG_HEADERS([config.h])13 # Checks for programs.14 AC_PROG_CXX15 AC_PROG_CC16 AC_PROG_AWK17 AC_PROG_INSTALL18 AC_PROG_RANLIB19 AC_PROG_CPP20 AC_PROG_MKDIR_P21 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.230 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_ALLOCA41 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \42 netinet/in.h stddef.h stdint.h stdlib.h \43 string.h strings.h sys/socket.h unistd.h \44 libintl.h])46 # Checks for typedefs, structures, and compiler characteristics.47 AC_HEADER_STDBOOL48 AC_C_INLINE49 AC_TYPE_INT16_T50 AC_TYPE_INT32_T51 AC_TYPE_INT64_T52 AC_TYPE_INT8_T53 AC_TYPE_SIZE_T54 AC_TYPE_UINT16_T55 AC_TYPE_UINT32_T56 AC_TYPE_UINT64_T57 AC_TYPE_UINT8_T58 AC_CHECK_TYPES([ptrdiff_t])60 # Checks for library functions.61 AC_FUNC_ERROR_AT_LINE62 AC_FUNC_FORK63 AC_FUNC_MALLOC64 AC_FUNC_MKTIME65 AC_FUNC_REALLOC66 AC_FUNC_STRCOLL68 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \69 localeconv memchr memset modf pow setlocale \70 socket sqrt strcasecmp strchr strcspn strdup \71 strerror strpbrk strrchr strstr strtoul])73 AC_CONFIG_FILES([Makefile74 src/Makefile75 src/lua/Makefile76 src/gb/Makefile77 src/gba/Makefile78 src/common/Makefile79 src/SFMT/Makefile80 src/filters/Makefile81 src/prof/Makefile82 src/sdl/Makefile])84 ### RLM: investigate this further85 CXXFLAGS="$CXXFLAGS -DC_CORE"87 AC_OUTPUT