configure.ac 1006 B

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