-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
51 lines (42 loc) · 1.18 KB
/
configure.ac
File metadata and controls
51 lines (42 loc) · 1.18 KB
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
AC_INIT([teflib], [1.0], [])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
# Determine if we're doing an out-of-source build
AC_MSG_CHECKING([for out-of-source build])
if test "$srcdir" != "." ; then
AC_MSG_RESULT([yes (builddir: $ac_pwd)])
else
AC_MSG_RESULT([no - consider using: mkdir build && cd build && ../configure])
fi
AC_PROG_CXX
AC_PROG_RANLIB
AM_PROG_AR
# Set ARFLAGS to avoid 'u' modifier warning (modern ar uses 'D' by default)
AC_SUBST([ARFLAGS], [cr])
# Check for USE_TEF environment variable
AC_MSG_CHECKING([whether to enable tracing])
if test "x$USE_TEF" != "x"; then
AC_MSG_RESULT([yes])
use_tef=true
else
AC_MSG_RESULT([no])
use_tef=false
fi
AM_CONDITIONAL([USE_TEF], [test x$use_tef = xtrue])
# Check for DISABLE_UNIT_TESTS environment variable
AC_MSG_CHECKING([whether to disable unit tests])
if test "x$DISABLE_UNIT_TESTS" != "x"; then
AC_MSG_RESULT([yes])
disable_tests=true
else
AC_MSG_RESULT([no])
disable_tests=false
fi
AM_CONDITIONAL([ENABLE_UNIT_TESTS], [test x$disable_tests = xfalse])
# Require C++17
CXXFLAGS="$CXXFLAGS -std=c++17"
AC_CONFIG_FILES([
Makefile
src/Makefile
example/Makefile
])
AC_OUTPUT