-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
60 lines (46 loc) · 1.71 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.55])
AC_INIT([Semi-Markov], [0.1], [ajd27@cornell.edu])
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
#AC_CONFIG_SRCDIR([src/stochnet.h])
AC_CONFIG_HEADERS([src/smv_config.hpp])
# Checks for programs.
AC_PROG_CXX([clang++ g++])
AX_BOOST_BASE([1.54])
# Find the flavor of the Boost library.
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/-L\(.\+\)/\1/'`
AC_CONFIG_FILES([Makefile])
AC_ARG_ENABLE([variant],
[AS_HELP_STRING([--enable-variant],
[Build with the boost library that ends in -mt])],
[boost_variant="$enableval"],
[boost_variant=""])
AC_ARG_ENABLE([prand],
[AS_HELP_STRING([--enable-prand],
[Build the prand wrapper program @<:@no@:>@])],
[build_prand="$enableval"],
[build_prand="yes"])
AM_CONDITIONAL([BUILD_PRAND], [test x"$build_PRAND" != xno])
AC_CHECK_LIB([pthread], [exit])
# Boost libraries can end in -mt, bare, or other endings.
FLAVOR=$boost_variant
LDFLAGS_SAVE=$LDFLAGS
LDFLAGS=$BOOST_LDFLAGS $LDFLAGS
AC_CHECK_LIB([boost_system${FLAVOR}], [exit])
AC_CHECK_LIB([boost_random${FLAVOR}], [exit])
AC_CHECK_LIB([boost_program_options${FLAVOR}], [exit])
AC_CHECK_LIB([boost_filesystem${FLAVOR}], [exit])
AC_CHECK_LIB([boost_date_time${FLAVOR}], [exit])
AC_CHECK_LIB([boost_thread${FLAVOR}], [exit])
AC_CHECK_LIB([boost_chrono${FLAVOR}], [exit])
AC_CHECK_LIB([boost_log${FLAVOR}], [exit])
AC_CHECK_LIB([boost_log_setup${FLAVOR}], [exit])
AC_CHECK_LIB([boost_unit_test_framework${FLAVOR}], [exit])
LDFLAGS=$LDFLAGS_SAVE
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_OUTPUT