temporal | 40ee551 | 2008-07-10 02:12:20 +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 | AC_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 |
kenton@google.com | a001ed0 | 2008-12-01 23:47:49 +0000 | [diff] [blame^] | 10 | # * src/Makefile.am (Update -version-info for LDFLAGS if needed) |
kenton@google.com | 7b29a26 | 2008-10-16 22:56:18 +0000 | [diff] [blame] | 11 | AC_INIT([protobuf],[2.0.3-SNAPSHOT],[protobuf@googlegroups.com]) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 12 | |
| 13 | AC_CONFIG_SRCDIR(src/google/protobuf/message.cc) |
kenton@google.com | c76caac | 2008-09-30 22:11:21 +0000 | [diff] [blame] | 14 | AC_CONFIG_HEADERS([config.h]) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 15 | AM_INIT_AUTOMAKE |
| 16 | |
| 17 | # Checks for programs. |
| 18 | AC_PROG_CC |
| 19 | AC_PROG_CXX |
| 20 | AC_PROG_LIBTOOL |
| 21 | AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc |
| 22 | |
| 23 | # Checks for header files. |
| 24 | AC_HEADER_STDC |
| 25 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdlib.h unistd.h]) |
| 26 | |
| 27 | # Checks for library functions. |
| 28 | AC_FUNC_MEMCMP |
| 29 | AC_FUNC_STRTOD |
| 30 | AC_CHECK_FUNCS([ftruncate memset mkdir strchr strerror strtol]) |
| 31 | |
| 32 | ACX_PTHREAD |
| 33 | AC_CXX_STL_HASH |
| 34 | |
kenton@google.com | c76caac | 2008-09-30 22:11:21 +0000 | [diff] [blame] | 35 | AC_CONFIG_FILES([Makefile src/Makefile ]) |
| 36 | AC_OUTPUT |