• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5AC_PREREQ(2.57)
6
7AC_INIT(open-vcdiff, 0.1, opensource@google.com)
8AC_CONFIG_SRCDIR(README)
9AM_INIT_AUTOMAKE
10AM_CONFIG_HEADER(src/config.h)
11
12# Checks for programs.
13AC_PROG_CC
14AC_PROG_CPP
15AC_PROG_CXX
16AM_CONDITIONAL(GCC, test "$GCC" = yes)   # let the Makefile know if we're gcc
17AC_CANONICAL_HOST
18
19AC_PROG_LIBTOOL
20AC_SUBST(LIBTOOL_DEPS)
21
22# Check whether some low-level functions/files are available
23AC_HEADER_STDC
24
25case $host in
26  *86*-*-gnu*) AC_DEFINE(VCDIFF_USE_BLOCK_COMPARE_WORDS, 1,
27			 Use custom compare function instead of memcmp)
28esac
29
30AC_CHECK_HEADERS([ext/rope])
31AC_CHECK_HEADERS([getopt.h])
32AC_CHECK_HEADERS([malloc.h])
33AC_CHECK_HEADERS([sys/mman.h])
34AC_CHECK_HEADERS([sys/time.h])
35AC_CHECK_HEADERS([unistd.h])
36AC_CHECK_HEADERS([windows.h])
37AC_CHECK_FUNCS([gettimeofday QueryPerformanceCounter])
38AC_CHECK_FUNCS([memalign posix_memalign])
39AC_CHECK_FUNCS([mprotect])
40
41# Start of definitions needed by gflags package
42
43AC_CHECK_HEADERS([stdint.h sys/types.h inttypes.h])
44AC_CHECK_HEADERS([fnmatch.h])
45AC_CHECK_FUNCS([InitializeCriticalSection])
46AC_CHECK_FUNCS([InterlockedCompareExchange])
47AC_CHECK_FUNCS([strtoll strtoq])
48AC_CHECK_TYPES([uint16_t, u_int16_t, __int16])
49
50AX_C___ATTRIBUTE__
51
52ACX_PTHREAD
53
54# End of definitions needed by gflags package
55
56AC_CONFIG_FILES([Makefile])
57AC_OUTPUT
58