/configure.ac

http://cmockery.googlecode.com/ · m4 · 69 lines · 40 code · 10 blank · 19 comment · 0 complexity · 708c11ae447368de3dd6e693a35154c0 MD5 · raw file

  1. ## This is a boilerplate file for Google opensource projects.
  2. ## To make it useful, replace <<TEXT>> with actual text for your project.
  3. ## Also, look at comments with "## double hashes" to see if any are worth
  4. ## uncommenting or modifying.
  5. ## Process this file with autoconf to produce configure.
  6. ## In general, the safest way to proceed is to run ./autogen.sh
  7. # make sure we're interpreted by some minimal autoconf
  8. AC_PREREQ(2.57)
  9. AC_INIT(cmockery, 0.1.2, opensource@google.com)
  10. # The argument here is just something that should be in the current directory
  11. # (for sanity checking)
  12. AC_CONFIG_SRCDIR(README)
  13. AM_INIT_AUTOMAKE
  14. AM_CONFIG_HEADER(src/config.h)
  15. # Checks for programs.
  16. AC_PROG_CC
  17. AC_PROG_CPP
  18. AC_PROG_CXX
  19. AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
  20. # Uncomment this if you'll be exporting libraries (.so's)
  21. AC_PROG_LIBTOOL
  22. AC_SUBST(LIBTOOL_DEPS)
  23. # Check whether some low-level functions/files are available
  24. AC_HEADER_STDC
  25. # Here are some examples of how to check for the existence of a fn or file
  26. ##AC_CHECK_FUNCS(memmove)
  27. ##AC_CHECK_HEADERS(sys/resource.h)
  28. AC_CHECK_FUNCS(setjmp)
  29. AC_CHECK_FUNCS(longjmp)
  30. AC_CHECK_FUNCS(strcmp)
  31. AC_CHECK_FUNCS(strcpy)
  32. AC_CHECK_FUNCS(memcpy)
  33. AC_CHECK_FUNCS(memset)
  34. AC_CHECK_FUNCS(malloc)
  35. AC_CHECK_FUNCS(calloc)
  36. AC_CHECK_FUNCS(free)
  37. AC_CHECK_FUNCS(exit)
  38. AC_CHECK_FUNCS(signal)
  39. AC_CHECK_FUNCS(printf)
  40. AC_CHECK_FUNCS(fprintf)
  41. AC_CHECK_FUNCS(snprintf)
  42. AC_CHECK_FUNCS(vsnprintf)
  43. AC_CHECK_HEADERS(assert.h)
  44. AC_CHECK_HEADERS(malloc.h)
  45. AC_CHECK_HEADERS(setjmp.h)
  46. AC_CHECK_HEADERS(stdarg.h)
  47. AC_CHECK_HEADERS(stddef.h)
  48. AC_CHECK_HEADERS(stdio.h)
  49. AC_CHECK_HEADERS(stdlib.h)
  50. AC_CHECK_HEADERS(string.h)
  51. AC_CHECK_HEADERS(signal.h)
  52. # Find out what namespace 'normal' STL code lives in, and also what namespace
  53. # the user wants our classes to be defined in
  54. AC_CXX_STL_NAMESPACE
  55. AC_DEFINE_GOOGLE_NAMESPACE(google)
  56. ## Check out ../autoconf/ for other macros you can call to do useful stuff
  57. # Write generated configuration file
  58. AC_CONFIG_FILES([Makefile])
  59. AC_OUTPUT