Mercurial > vba-linux
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_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.]))27 AC_CHECK_LIB(png, png_create_write_struct,28 , AC_MSG_ERROR([*** Cannot compile without libpng.]))30 SDL_VERSION=1.2.231 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_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 string.h \43 strings.h sys/socket.h unistd.h libintl.h])45 # Checks for typedefs, structures, and compiler characteristics.46 AC_HEADER_STDBOOL47 AC_C_INLINE48 AC_TYPE_INT16_T49 AC_TYPE_INT32_T50 AC_TYPE_INT64_T51 AC_TYPE_INT8_T52 AC_TYPE_SIZE_T53 AC_TYPE_UINT16_T54 AC_TYPE_UINT32_T55 AC_TYPE_UINT64_T56 AC_TYPE_UINT8_T57 AC_CHECK_TYPES([ptrdiff_t])59 # Checks for library functions.60 AC_FUNC_ERROR_AT_LINE61 AC_FUNC_FORK62 AC_FUNC_MALLOC63 AC_FUNC_MKTIME64 AC_FUNC_REALLOC65 AC_FUNC_STRCOLL67 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([Makefile73 src/Makefile74 src/lua/Makefile75 src/gb/Makefile76 src/gba/Makefile77 src/common/Makefile78 src/SFMT/Makefile79 src/filters/Makefile80 src/prof/Makefile81 src/sdl/Makefile])83 ### RLM: investigate this further84 CXXFLAGS="$CXXFLAGS -DC_CORE"86 AC_OUTPUT