src/configure.in
author David Anderson <dvander@alliedmods.net>
Sat Aug 04 19:33:06 2012 -0700 (2012-08-04)
changeset 147 9c544823d090
parent 86 32ad0523b309
permissions -rw-r--r--
Structure declaration support.
     1 #                                               -*- Autoconf -*-
     2 # Process this file with autoconf to produce a configure script.
     3 
     4 AC_PREREQ([2.61])
     5 AC_INIT(foobar, 0.1, https://bugs.alliedmods.net/)
     6 AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
     7 AC_CONFIG_SRCDIR([Heap.cpp])
     8 AC_LANG(C++)
     9 AC_CANONICAL_HOST
    10 
    11 # Checks for programs.
    12 AC_PROG_CXX
    13 
    14 # Checks for libraries.
    15 
    16 # Checks for header files.
    17 AC_CHECK_HEADERS([limits.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h])
    18 
    19 # Checks for typedefs, structures, and compiler characteristics.
    20 AC_C_INLINE
    21 
    22 # Checks for library functions.
    23 AC_FUNC_MALLOC
    24 AC_FUNC_REALLOC
    25 AC_CHECK_FUNCS([gettimeofday memset strchr])
    26 
    27 mkdir -p .deps
    28 touch .deps/
    29 
    30 #AX_COMPILER_VENDOR
    31 
    32 CXXVENDOR=$ax_cv_cxx_compiler_vendor
    33 AC_SUBST(CXXVENDOR)
    34 
    35 case "$host" in
    36     *-linux*)
    37         PLATFORM="linux"
    38         ;;
    39     *-darwin*)
    40         PLATFORM="darwin"
    41         ;;
    42 esac
    43 
    44 AC_SUBST(PLATFORM)
    45 
    46 AC_OUTPUT(Makefile)
    47