-
Notifications
You must be signed in to change notification settings - Fork 56
/
configure.ac
72 lines (64 loc) · 1.75 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([stack],[0.3],[[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# Checks for programs.
AM_PROG_CC_C_O
AC_PROG_CXX
m4_ifdef([AM_PROG_AR],[AM_PROG_AR])
AC_PROG_LN_S
AC_PROG_MKDIR_P
AC_PROG_SED
LT_INIT([disable-static pic-only])
AC_PROG_LIBTOOL
# Checks for timer
AC_SEARCH_LIBS(
[timer_create],[rt],
AC_DEFINE([HAVE_TIMER],[1],[Define to 1 if you have the per-process timer.])
)
# Checks for SMT solvers.
AC_MSG_CHECKING([for SMT solver])
AM_CONDITIONAL([HAVE_BOOLECTOR],[true])
AM_CONDITIONAL([HAVE_SMTLIB],[false])
AC_ARG_WITH([smtlib],
[ AS_HELP_STRING([--with-smtlib=PATH],[use an SMT-LIB v2 compatible executable for constraint solving]) ],
[ case "$withval" in
yes|no)
AC_MSG_ERROR([path to SMT solver not specified])
;;
*)
AC_MSG_RESULT([$withval])
;;
esac
AC_DEFINE_UNQUOTED([SMTLIB],["$withval"],[path to SMT solver])
AM_CONDITIONAL([HAVE_BOOLECTOR],[false])
AM_CONDITIONAL([HAVE_SMTLIB],[true])
],
[ AC_MSG_RESULT([Boolector (GPLv3)]) ]
)
AC_CONFIG_FILES([
Makefile
lib/Makefile
src/Makefile
test/Makefile
test/lit.cfg
])
AC_CONFIG_LINKS([
bin/stack/gcc:test/gcc
bin/stack/g++:test/gcc
bin/stack/cc:test/gcc
bin/stack/c++:test/gcc
bin/stack/cc1:test/cc1
bin/stack/clang:test/gcc
bin/stack/clang++:test/gcc
bin/stack/arm-linux-gnueabi-gcc:test/arm-linux-gnueabi-gcc
bin/stack/arm-linux-gnueabi-g++:test/arm-linux-gnueabi-g++
bin/stack-build:test/stack-build
bin/ncpu:src/ncpu
bin/optck:src/optck
bin/poptck:src/poptck
])
AC_OUTPUT