Mercurial > vba-linux
view configure.ac @ 52:9f63ad276c0d tip
enabled dev mode.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 21 Mar 2013 21:42:44 +0000 |
parents | ddd34d2646f9 |
children |
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 AC_CANONICAL_TARGET10 AM_INIT_AUTOMAKE([foreign dist-bzip2])12 AC_CONFIG_SRCDIR([src/gb/GB.cpp])14 AC_CONFIG_HEADERS([config.h])17 AS_CASE([$target],18 [i?86-*-*], [VBA_USE_C_CORE="no" VBA_USE_MMX="yes"]19 [*] , [VBA_USE_C_CORE="yes" VBA_USE_MMX="no" ])21 AC_ARG_ENABLE(c-core,22 AC_HELP_STRING([--enable-c-core],[enable C core (default is no on x86 targets)]),23 [VBA_USE_C_CORE=$enableval])25 AS_CASE([$VBA_USE_C_CORE],26 [yes], [AM_CXXFLAGS="$AM_CXXFLAGS -DC_CORE"],27 [no], [])29 AC_ARG_ENABLE(profiling,30 AC_HELP_STRING([--enable-profiling],[enable profiling (default is yes)]),31 , enable_profiling=yes)33 AS_CASE([$enable_profiling],34 [yes], [AM_CXXFLAGS="$AM_CXXFLAGS -DPROFILING"35 VBA_SRC_EXTRA="$VBA_SRC_EXTRA prof"36 VBA_LIBS="$VBA_LIBS ../prof/libprof.a"],37 [no], [])39 AC_ARG_ENABLE(mmx,40 AC_HELP_STRING([--enable-mmx],[use MMX (default is yes on x86 targets)]),41 [VBA_USE_MMX=$enableval])43 AC_PATH_PROG(NASM, nasm)44 AM_CONDITIONAL([USE_MMX], [test "x$VBA_USE_MMX" = xyes])45 AS_IF([test "x$VBA_USE_MMX" = xyes],46 [AS_IF([test "x$NASM" = x],47 [AC_MSG_ERROR([*** Couldn't find nasm program.])],48 [AM_CXXFLAGS="$AM_CXXFLAGS -DMMX"49 VBA_LIBS="$VBA_LIBS ../filters/lib386.a"])])51 AC_ARG_ENABLE(sdl,52 AC_HELP_STRING([--enable-sdl],[build the SDL interface (default is yes)]),53 , enable_sdl=yes)55 AS_IF([test "x$enable_sdl" = xyes],56 [SDL_VERSION=1.2.257 AM_PATH_SDL($SDL_VERSION, :,58 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))59 AC_CHECK_LIB([SDL], [SDL_Init])60 VBA_SRC_EXTRA="$VBA_SRC_EXTRA sdl"])62 AC_ARG_ENABLE(dev,63 AC_HELP_STRING([--enable-dev],[enable development features (default is yes)]),64 , enable_dev=yes)66 AS_IF([test "x$enable_dev" = xyes],67 [AM_CXXFLAGS="$AM_CXXFLAGS -DDEV_VERSION"])69 # Checks for programs.70 AC_PROG_CXX71 AC_PROG_CC72 AC_PROG_AWK73 AC_PROG_INSTALL74 AC_PROG_RANLIB75 AC_PROG_CPP76 AC_PROG_MKDIR_P78 # Checks for libraries.79 AC_CHECK_LIB(z, gzopen,80 , AC_MSG_ERROR([*** Cannot compile without zlib.]))82 AC_CHECK_LIB(png, png_create_write_struct,83 , AC_MSG_ERROR([*** Cannot compile without libpng.]))85 AC_CHECK_LIB([pthread], [pthread_create])87 # Checks for header files.88 AC_FUNC_ALLOCA90 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \91 netinet/in.h stddef.h stdint.h stdlib.h string.h \92 strings.h sys/socket.h unistd.h libintl.h])94 # Checks for typedefs, structures, and compiler characteristics.95 AC_HEADER_STDBOOL96 AC_C_INLINE97 AC_TYPE_INT16_T98 AC_TYPE_INT32_T99 AC_TYPE_INT64_T100 AC_TYPE_INT8_T101 AC_TYPE_SIZE_T102 AC_TYPE_UINT16_T103 AC_TYPE_UINT32_T104 AC_TYPE_UINT64_T105 AC_TYPE_UINT8_T106 AC_CHECK_TYPES([ptrdiff_t])108 # Checks for library functions.109 AC_FUNC_ERROR_AT_LINE110 AC_FUNC_FORK111 AC_FUNC_MALLOC112 AC_FUNC_MKTIME113 AC_FUNC_REALLOC114 AC_FUNC_STRCOLL116 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \117 localeconv memchr memset modf pow setlocale socket \118 sqrt strcasecmp strchr strcspn strdup strerror \119 strpbrk strrchr strstr strtoul])121 AC_CONFIG_FILES([Makefile122 src/Makefile123 src/lua/Makefile124 src/gb/Makefile125 src/gba/Makefile126 src/common/Makefile127 src/SFMT/Makefile128 src/filters/Makefile129 src/prof/Makefile130 src/sdl/Makefile])132 AC_SUBST([AM_CXXFLAGS])133 AC_SUBST([VBA_SRC_EXTRA])134 AC_SUBST([VBA_LIBS])136 AC_OUTPUT139 echo "******** RLM ****************"140 echo "target= $target"141 echo "VBA_USE_C_CORE= $VBA_USE_C_CORE"142 echo "VBA_USE_MMX= $VBA_USE_MMX"143 echo "AM_CXXFLAGS= $AM_CXXFLAGS"144 echo "enable_c_core= $enable_c_core"145 echo "enable_profiling= $enable_profiling"146 echo "VBA_SRC_EXTRA= $VBA_SRC_EXTRA"147 echo "VBA_LIBS= $VBA_LIBS"