openvcdiff | 28db807 | 2008-10-10 23:29:11 +0000 | [diff] [blame] | 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.1, 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*-*-gnu*) AC_DEFINE(VCDIFF_USE_BLOCK_COMPARE_WORDS, 1, |
| 27 | Use custom compare function instead of memcmp) |
| 28 | esac |
| 29 | |
| 30 | AC_CHECK_HEADERS([ext/rope]) |
| 31 | AC_CHECK_HEADERS([getopt.h]) |
| 32 | AC_CHECK_HEADERS([malloc.h]) |
| 33 | AC_CHECK_HEADERS([sys/mman.h]) |
| 34 | AC_CHECK_HEADERS([sys/time.h]) |
| 35 | AC_CHECK_HEADERS([unistd.h]) |
| 36 | AC_CHECK_HEADERS([windows.h]) |
| 37 | AC_CHECK_FUNCS([gettimeofday QueryPerformanceCounter]) |
| 38 | AC_CHECK_FUNCS([memalign posix_memalign]) |
| 39 | AC_CHECK_FUNCS([mprotect]) |
| 40 | |
| 41 | # Start of definitions needed by gflags package |
| 42 | |
| 43 | AC_CHECK_HEADERS([stdint.h sys/types.h inttypes.h]) |
| 44 | AC_CHECK_HEADERS([fnmatch.h]) |
| 45 | AC_CHECK_FUNCS([InitializeCriticalSection]) |
| 46 | AC_CHECK_FUNCS([InterlockedCompareExchange]) |
| 47 | AC_CHECK_FUNCS([strtoll strtoq]) |
| 48 | AC_CHECK_TYPES([uint16_t, u_int16_t, __int16]) |
| 49 | |
| 50 | AX_C___ATTRIBUTE__ |
| 51 | |
| 52 | ACX_PTHREAD |
| 53 | |
| 54 | # End of definitions needed by gflags package |
| 55 | |
| 56 | AC_CONFIG_FILES([Makefile]) |
| 57 | AC_OUTPUT |