Mercurial > vba-linux
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_TARGET17 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_CXX23 AC_PROG_CC24 AC_PROG_AWK25 AC_PROG_INSTALL26 AC_PROG_RANLIB27 AC_PROG_CPP28 AC_PROG_MKDIR_P29 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.239 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_ALLOCA49 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_STDBOOL55 AC_C_INLINE56 AC_TYPE_INT16_T57 AC_TYPE_INT32_T58 AC_TYPE_INT64_T59 AC_TYPE_INT8_T60 AC_TYPE_SIZE_T61 AC_TYPE_UINT16_T62 AC_TYPE_UINT32_T63 AC_TYPE_UINT64_T64 AC_TYPE_UINT8_T65 AC_CHECK_TYPES([ptrdiff_t])67 # Checks for library functions.68 AC_FUNC_ERROR_AT_LINE69 AC_FUNC_FORK70 AC_FUNC_MALLOC71 AC_FUNC_MKTIME72 AC_FUNC_REALLOC73 AC_FUNC_STRCOLL75 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([Makefile81 src/Makefile82 src/lua/Makefile83 src/gb/Makefile84 src/gba/Makefile85 src/common/Makefile86 src/SFMT/Makefile87 src/filters/Makefile88 src/prof/Makefile89 src/sdl/Makefile])91 ### RLM: investigate this further92 AC_SUBST([AM_CXXFLAGS], [-DC_CORE])93 #AC_SUBST([AM_CXXFLAGS], [-fno-exceptions])94 #CXXFLAGS="$CXXFLAGS -DC_CORE"96 echo "**************************"97 echo $CXXFLAGS99 AC_OUTPUT