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