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.
6 ## Process this file with autoconf to produce configure.
7 ## In general, the safest way to proceed is to run ./autogen.sh
9 # make sure we're interpreted by some minimal autoconf
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)
17 AM_CONFIG_HEADER(src/config.h)
19 # Checks for programs.
23 AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
25 # Uncomment this if you'll be exporting libraries (.so's)
27 AC_SUBST(LIBTOOL_DEPS)
29 # Check whether some low-level functions/files are available
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)
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)
60 # Find out what namespace 'normal' STL code lives in, and also what namespace
61 # the user wants our classes to be defined in
63 AC_DEFINE_GOOGLE_NAMESPACE(google)
65 ## Check out ../autoconf/ for other macros you can call to do useful stuff
67 # Write generated configuration file
68 AC_CONFIG_FILES([Makefile])