Mercurial > vba-clojure
view configure.ac @ 423:971bd1774eab
increased resolution of music-kernel timer.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 17 Apr 2012 06:53:48 -0500 |
parents | b1969e1b310d |
children |
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)22 AC_PROG_LIBTOOL25 # Checks for libraries.26 AC_CHECK_LIB(z, gzopen,27 , AC_MSG_ERROR([*** Cannot compile without zlib.]))28 AC_CHECK_LIB(png, png_create_write_struct,29 , AC_MSG_ERROR([*** Cannot compile without libpng.]), [-lz])31 SDL_VERSION=1.2.232 AM_PATH_SDL($SDL_VERSION, :,33 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))34 AC_CHECK_LIB([SDL], [SDL_Init])36 AC_CHECK_LIB([pthread], [pthread_create])40 # Checks for header files.41 AC_FUNC_ALLOCA42 AC_CHECK_HEADERS([arpa/inet.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/socket.h unistd.h libintl.h])44 # Checks for typedefs, structures, and compiler characteristics.45 AC_HEADER_STDBOOL46 AC_C_INLINE47 AC_TYPE_INT16_T48 AC_TYPE_INT32_T49 AC_TYPE_INT64_T50 AC_TYPE_INT8_T51 AC_TYPE_SIZE_T52 AC_TYPE_UINT16_T53 AC_TYPE_UINT32_T54 AC_TYPE_UINT64_T55 AC_TYPE_UINT8_T56 AC_CHECK_TYPES([ptrdiff_t])58 # Checks for library functions.59 AC_FUNC_ERROR_AT_LINE60 AC_FUNC_FORK61 AC_FUNC_MALLOC62 AC_FUNC_MKTIME63 AC_FUNC_REALLOC64 AC_FUNC_STRCOLL65 AC_CHECK_FUNCS([floor ftruncate gethostbyname gethostname inet_ntoa localeconv memchr memset modf pow setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strpbrk strrchr strstr strtoul])69 # find JNI headers70 AC_ARG_VAR([JAVA_INCLUDE_PATH], [The path to the jni.h])71 AC_ARG_VAR([JAVA_INCLUDE_PATH2], [The path to jni_md.h])74 if test "x$JAVA_INCLUDE_PATH" = "x"; then75 echo "----------------------------------"76 echo "you must have JAVA_INCLUDE_PATH defined."77 echo "this is the path to jni.h"78 echo "----------------------------------"79 fi81 if test "x$JAVA_INCLUDE_PATH2" = "x"; then82 echo "----------------------------------"83 echo "you must have JAVA_INCLUDE_PATH2 defined."84 echo "this is the path to jni_md.h"85 echo "----------------------------------"86 fi88 if test "x$JAVA_INCLUDE_PATH" = "x"; then89 AC_MSG_ERROR([JAVA_INCLUDE_PATH not defined])90 fi92 if test "x$JAVA_INCLUDE_PATH2" = "x"; then93 AC_MSG_ERROR([JAVA_INCLUDE_PATH2 not defined])94 fi96 #AC_SUBST(JAVA_INCLUDE_PATH)97 #AC_SUBST(JAVA_INCLUDE_PATH2)99 AC_CONFIG_FILES([Makefile100 src/Makefile101 src/lua/Makefile102 src/clojure/Makefile103 src/gb/Makefile104 src/gba/Makefile105 src/common/Makefile106 src/SFMT/Makefile107 src/filters/Makefile108 src/prof/Makefile109 src/sdl/Makefile])113 ### RLM: investigate this further114 CXXFLAGS="$CXXFLAGS -DC_CORE"117 AC_OUTPUT