2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([src/include/cvc4.h])
6 AC_CONFIG_AUX_DIR([config])
7 #AC_CONFIG_LIBOBJ_DIR([lib])
8 AC_CONFIG_MACRO_DIR([config])
9 AM_INIT_AUTOMAKE(cvc4, prerelease)
10 AC_CONFIG_HEADERS([config.h])
15 # Features requested by the user
16 AC_MSG_CHECKING([whether to do a debug build of CVC4])
17 AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug] ,[do a debug build of CVC4])])
18 if test -z "${enable_debug+set}"; then
21 AC_MSG_RESULT([$enable_debug])
23 AC_MSG_CHECKING([whether to include assertions in build])
24 AC_ARG_ENABLE([assertions], [AS_HELP_STRING([--disable-assertions],[turn off assertions in build])])
25 if test -z "${enable_assertions+set}"; then
28 AC_MSG_RESULT([$enable_assertions])
30 if test "$enable_assertions" = no -a "$enable_debug" = yes; then
31 AC_MSG_FAILURE([when debugging is on, so must assertions be.])
34 # Checks for programs.
42 AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, [])
43 if test -z "$DOXYGEN"; then
44 AC_MSG_WARN([documentation targets require doxygen. Set your PATH appropriately or set DOXYGEN to point to a valid doxygen binary.])
47 # Checks for libraries.
48 AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR([GNU MP not found, see http://gmplib.org/])])
50 # Checks for header files.
51 AC_CHECK_HEADERS([getopt.h unistd.h])
53 # Checks for typedefs, structures, and compiler characteristics.
60 # Checks for library functions.
62 # Some definitions for config.h
63 if test "$enable_debug" = yes; then
64 AC_DEFINE([CVC4_DEBUG], [], [Whether or not to include debugging code.])
67 if test "$enable_assertions" = yes; then
68 AC_DEFINE([CVC4_ASSERTIONS], [], [Whether or not assertions are enabled.])
71 # Prepare configure output
81 src/prop/minisat/Makefile
91 # Final information to the user
93 if test "$enable_debug" = no; then
97 if test "$enable_assertions" = no; then
98 withassertions=without
103 CVC4 $VERSION will be built as a $debug build $withassertions assertions.
105 Now just type make, followed by make check or make install, as you like.