1 ## Process this file with autoconf to produce configure. 2 ## In general, the safest way to proceed is to run ./autogen.sh 3 4 # make sure we're interpreted by some minimal autoconf 5 AC_PREREQ(2.57) 6 7 AC_INIT(open-vcdiff, 0.2, opensource@google.com) 8 AC_CONFIG_SRCDIR(README) 9 AM_INIT_AUTOMAKE 10 AM_CONFIG_HEADER(src/config.h) 11 12 # Checks for programs. 13 AC_PROG_CC 14 AC_PROG_CPP 15 AC_PROG_CXX 16 AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc 17 AC_CANONICAL_HOST 18 19 AC_PROG_LIBTOOL 20 AC_SUBST(LIBTOOL_DEPS) 21 22 # Check whether some low-level functions/files are available 23 AC_HEADER_STDC 24 25 case $host in 26 *86*-*-*bsd* | *86*-*-gnu*) 27 AC_DEFINE(VCDIFF_USE_BLOCK_COMPARE_WORDS, 1, 28 Use custom compare function instead of memcmp) 29 ;; 30 esac 31 32 AC_CHECK_HEADERS([ext/rope]) 33 AC_CHECK_HEADERS([getopt.h]) 34 AC_CHECK_HEADERS([malloc.h]) 35 AC_CHECK_HEADERS([sys/mman.h]) 36 AC_CHECK_HEADERS([sys/time.h]) 37 AC_CHECK_HEADERS([unistd.h]) 38 AC_CHECK_HEADERS([windows.h]) 39 AC_CHECK_FUNCS([gettimeofday QueryPerformanceCounter]) 40 AC_CHECK_FUNCS([memalign posix_memalign]) 41 AC_CHECK_FUNCS([mprotect]) 42 43 # Start of definitions needed by gflags package 44 45 AC_CHECK_HEADERS([stdint.h sys/types.h inttypes.h]) 46 AC_CHECK_HEADERS([fnmatch.h]) 47 AC_CHECK_FUNCS([strtoll strtoq]) 48 AC_CHECK_TYPES([uint16_t, u_int16_t, __int16]) 49 50 AX_C___ATTRIBUTE__ 51 52 # End of definitions needed by gflags package 53 54 AC_CONFIG_FILES([Makefile]) 55 AC_OUTPUT 56