Mercurial > vba-linux
view configure.ac @ 51:ddd34d2646f9
can now disable SDL.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 21 Mar 2013 21:38:40 +0000 |
parents | 690c44762f6f |
children | 9f63ad276c0d |
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)70 # Checks for programs.71 AC_PROG_CXX72 AC_PROG_CC73 AC_PROG_AWK74 AC_PROG_INSTALL75 AC_PROG_RANLIB76 AC_PROG_CPP77 AC_PROG_MKDIR_P79 # Checks for libraries.80 AC_CHECK_LIB(z, gzopen,81 , AC_MSG_ERROR([*** Cannot compile without zlib.]))83 AC_CHECK_LIB(png, png_create_write_struct,84 , AC_MSG_ERROR([*** Cannot compile without libpng.]))86 AC_CHECK_LIB([pthread], [pthread_create])88 # Checks for header files.89 AC_FUNC_ALLOCA91 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h \92 netinet/in.h stddef.h stdint.h stdlib.h string.h \93 strings.h sys/socket.h unistd.h libintl.h])95 # Checks for typedefs, structures, and compiler characteristics.96 AC_HEADER_STDBOOL97 AC_C_INLINE98 AC_TYPE_INT16_T99 AC_TYPE_INT32_T100 AC_TYPE_INT64_T101 AC_TYPE_INT8_T102 AC_TYPE_SIZE_T103 AC_TYPE_UINT16_T104 AC_TYPE_UINT32_T105 AC_TYPE_UINT64_T106 AC_TYPE_UINT8_T107 AC_CHECK_TYPES([ptrdiff_t])109 # Checks for library functions.110 AC_FUNC_ERROR_AT_LINE111 AC_FUNC_FORK112 AC_FUNC_MALLOC113 AC_FUNC_MKTIME114 AC_FUNC_REALLOC115 AC_FUNC_STRCOLL117 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa \118 localeconv memchr memset modf pow setlocale socket \119 sqrt strcasecmp strchr strcspn strdup strerror \120 strpbrk strrchr strstr strtoul])122 AC_CONFIG_FILES([Makefile123 src/Makefile124 src/lua/Makefile125 src/gb/Makefile126 src/gba/Makefile127 src/common/Makefile128 src/SFMT/Makefile129 src/filters/Makefile130 src/prof/Makefile131 src/sdl/Makefile])133 AC_SUBST([AM_CXXFLAGS])134 AC_SUBST([VBA_SRC_EXTRA])135 AC_SUBST([VBA_LIBS])137 AC_OUTPUT140 echo "******** RLM ****************"141 echo "target= $target"142 echo "VBA_USE_C_CORE= $VBA_USE_C_CORE"143 echo "VBA_USE_MMX= $VBA_USE_MMX"144 echo "AM_CXXFLAGS= $AM_CXXFLAGS"145 echo "enable_c_core= $enable_c_core"146 echo "enable_profiling= $enable_profiling"147 echo "VBA_SRC_EXTRA= $VBA_SRC_EXTRA"148 echo "VBA_LIBS= $VBA_LIBS"