-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
75 lines (61 loc) · 2.06 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
73
74
75
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([GNU Superoptimizer Toolkit], [0.1], [[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
# AC_CONFIG_SRCDIR([src/])
AM_INIT_AUTOMAKE([subdir-objects foreign])
AM_MAINTAINER_MODE([disable])
: ${CXXFLAGS="-g"}
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_MAKE_SET
AX_CXX_COMPILE_STDCXX_11
AX_MPI([HAVE_MPI=1])
if test -z "$HAVE_MPI"; then
AC_MSG_WARN([Cannot build parallel superoptimizer: cannot find MPI])
fi
AM_CONDITIONAL([HAVE_MPI], test -n "$HAVE_MPI")
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lboost_unit_test_framework':
AC_CHECK_LIB([boost_unit_test_framework], [main])
# Checks for header files.
AC_CHECK_HEADERS([stdint.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_STRERROR_R
AC_CHECK_FUNCS([strerror])
# Documentation
# The doxygen-config.in expands the macro @SRCDIR@ so that doxygen can be run
# in the build directory, when doing an out of tree build
mkdir -p doc/doxygen
DX_INIT_DOXYGEN("GNU Superoptimizer Toolkit", doc/doxygen-config, [doc/doxygen])
DX_DOXYGEN_FEATURE(ON)
DX_PDF_FEATURE(ON)
DX_HTML_FEATURE(ON)
AC_CHECK_PROG(PDFLATEX, pdflatex, pdflatex)
if test -z "$PDFLATEX"; then
AC_MSG_WARN([Cannot build design document: require pdflatex])
fi
AM_CONDITIONAL([HAVE_PDFLATEX], test -n "$PDFLATEX")
# Link in test files
AC_CONFIG_LINKS([
tests/data/long_1.csv:tests/data/long_1.csv
tests/data/long_2.csv:tests/data/long_2.csv
tests/data/sparse_4.csv:tests/data/sparse_4.csv
tests/data/sparse_5.csv:tests/data/sparse_5.csv
tests/data/standard_1.csv:tests/data/standard_1.csv
tests/data/standard_2.csv:tests/data/standard_2.csv
])
AC_CONFIG_FILES([Makefile doxygen.mk doc/doxygen-config])
AC_OUTPUT