generate platform_ops.h from platform_ops.proto, and reduce dependencies
[proto.git] / configure.ac
blobc1fd61a90f510be9d765e2e887c855bd0066dbd3
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.60)
6 # increment the version number here on each release, so that the
7 # version number in the source-code repo is one *more* than the
8 # latest release.
9 AC_INIT([proto], [1], [proto-bugs@csail.mit.edu])
11 AC_CONFIG_SRCDIR([src/compiler/compiler.cpp])
12 AC_CONFIG_AUX_DIR([config])
13 AC_CONFIG_MACRO_DIR([config])
14 AC_CONFIG_HEADER([src/config.h])
16 AM_INIT_AUTOMAKE
18 AC_PROG_LIBTOOL
20 # Compiler stuff
22 AC_PROG_CXX
23 AC_LANG(C++)
25 ## Checks for programs.
27 AC_PROG_MAKE_SET
28 AC_PROG_LEX
29 AX_WITH_PYTHON([echo "no python found"; exit 1; : ]) # only needed for tests
31 ## options for the user
33 PROTO_WITH_ODE
34 PROTO_WITH_GLUT
36 ## directories
38 PROTO_PROTOLIBDIR
40 ## Checks for header files.
42 # TODO: these are unused
43 AC_HEADER_STDC
45 ## Checks for typedefs, structures, and compiler characteristics.
47 AC_HEADER_STDBOOL
48 AC_C_CONST
49 AC_C_INLINE
50 AC_TYPE_INT16_T
51 AC_TYPE_INT32_T
52 AC_TYPE_INT8_T
53 AC_TYPE_SIZE_T
54 AC_HEADER_TIME
55 AC_TYPE_UINT16_T
56 AC_TYPE_UINT32_T
57 AC_TYPE_UINT8_T
59 ## Checks for library functions.
61 AC_FUNC_ERROR_AT_LINE
62 AC_FUNC_MALLOC
63 AC_FUNC_MEMCMP
64 AC_FUNC_REALLOC
65 AC_FUNC_SELECT_ARGTYPES
66 AC_FUNC_VPRINTF
67 AC_CHECK_FUNCS([floor gettimeofday memset pow select sqrt strcasecmp strrchr])
69 AC_CONFIG_FILES([Makefile
70                  lib/Makefile
71                  lib/core/Makefile
72                  src/Makefile
73                  src/compiler/Makefile
74                  src/kernel/Makefile
75                  src/motelink/Makefile
76                  src/shared/Makefile
77                  src/sim/Makefile
78                  src/tests/Makefile
79                 ])
80 AC_OUTPUT