-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
81 lines (46 loc) · 1.8 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
76
77
78
79
80
#AC_PREREQ([2.71])
AC_INIT([taulop],[1.2],[[email protected]])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CXX
AC_PROG_INSTALL
#AC_PROG_MAKE_SET
AC_PROG_RANLIB
# Options
# (Feb. 6th, 2018) C++ 11 extensions (as nullptr):
CXXFLAGS=" $CXXFLAGS -std=c++11 "
###############################################################################
# with-params
###############################################################################
AC_ARG_WITH(params,
[ --with-params[[=path]] - Specify the path of the parameter values in case of they are located in a custom location.],,with_params=empty)
if test "$with_params" = "empty"; then
AC_DEFINE_UNQUOTED(PARAMS_FOLDER, "./params", [Parameter values are in the ./params subfolder.])
else
AC_DEFINE_UNQUOTED(PARAMS_FOLDER, "$with_params", [Parameter values are in the custom folder: $with_params])
fi
AC_CONFIG_FILES([
Makefile
tests/Makefile
])
AC_OUTPUT
echo \
"------------------------------------------------------------------------------
------------------------------------------------------------------------------
${PACKAGE_NAME} version ${PACKAGE_VERSION}
General Options
Prefix . . . . . . .: '${prefix}'
Compiler . . . . . .: '${CXX} ${CXXFLAGS}'
Debug Options
Library Configurations
Parameter Values . .: '$with_params'
Now type 'make @<:@<target>@:>@', where the optional <target> is:
all - build library
install - install everything
dist - create the distribution tarball
tests - build, but not execute, all tests
------------------------------------------------------------------------------
------------------------------------------------------------------------------"