blob: 6dca16331cc418c5d954e09ea560f3d5be8e9265 [file] [log] [blame]
temporal40ee5512008-07-10 02:12:20 +00001## Process this file with autoconf to produce configure.
2## In general, the safest way to proceed is to run ./autogen.sh
3
4AC_PREREQ(2.59)
5
6# Note: If you change the version, you must also update it in:
7# * java/pom.xml
8# * python/setup.py
9# * src/google/protobuf/stubs/common.h
10AC_INIT(protobuf, 2.0.1-SNAPSHOT, protobuf@googlegroups.com)
11
12AC_CONFIG_SRCDIR(src/google/protobuf/message.cc)
13AM_CONFIG_HEADER(config.h)
14AM_INIT_AUTOMAKE
15
16# Checks for programs.
17AC_PROG_CC
18AC_PROG_CXX
19AC_PROG_LIBTOOL
20AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
21
22# Checks for header files.
23AC_HEADER_STDC
24AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdlib.h unistd.h])
25
26# Checks for library functions.
27AC_FUNC_MEMCMP
28AC_FUNC_STRTOD
29AC_CHECK_FUNCS([ftruncate memset mkdir strchr strerror strtol])
30
31ACX_PTHREAD
32AC_CXX_STL_HASH
33
34AC_OUTPUT( Makefile src/Makefile )