-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
52 lines (40 loc) · 1.09 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
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([mutated],[1.0.0],[[email protected]])
# Set automake options.
AM_INIT_AUTOMAKE([foreign])
# Silent build please
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])])
# Set sanity check for a source file.
AC_CONFIG_SRCDIR([client/client.cc])
# Set m4 directory.
AC_CONFIG_MACRO_DIR([m4])
# Set configure output header.
AC_CONFIG_HEADERS([config.h])
# Set some default CXXFLAGS
WARN_FLAGS="-pedantic -Wall -Wextra -Weffc++ -g3"
AC_SUBST([AM_CXXFLAGS], ["$WARN_FLAGS"])
# We set directly (default is 'cru' as 'u' option produces a warning since it's
# ignored when using deterministic libraries).
AC_SUBST([AR_FLAGS], ["cr"])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_LANG([C++])
AX_CXX_COMPILE_STDCXX_14([noext])
AM_PROG_AR
LT_INIT
# Check host.
AC_CANONICAL_HOST
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Set output files.
AC_CONFIG_FILES([
Makefile
client/Makefile
])
# Produce our configure script.
AC_OUTPUT