-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.ac
executable file
·80 lines (62 loc) · 1.62 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.60])
# See http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
m4_define([ver], [2.8.4])
m4_define([l_ver], [3:2:2])
AC_INIT([bitset], [ver], [http://github.com/chriso/bitset])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC
AC_CHECK_PROG(MAKE,gmake,gmake,make)
AC_PROG_MAKE_SET
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([foreign 1.11])
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
LT_INIT([dlopen disable-static])
AC_CHECK_HEADERS([limits.h stdint.h stdlib.h string.h])
TS_CHECK_JEMALLOC
TS_CHECK_TCMALLOC
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memmove])
AC_CHECK_SIZEOF([void *])
AC_ARG_ENABLE(optimisation,
[AC_HELP_STRING(
[--enable-optimisation],
[Enable compile time optimisation flags @<:@default=yes@:>@]
)],
[enable_optimiser="$enableval"],
[enable_optimiser="yes"]
)
if test "${enable_optimiser}" = "yes" ; then
AX_CC_MAXOPT
CFLAGS="${CFLAGS} -DNDEBUG"
fi
AC_ARG_ENABLE(debug,
[AC_HELP_STRING(
[--enable-debug],
[Build with debug flags @<:@default=no@:>@]
)],
[test x"$enableval" = "xyes" && CFLAGS="-DDEBUG -O0 -g"]
)
version="ver"
library_version="l_ver"
AC_SUBST([library_version])
AC_SUBST([version])
AC_SUBST([CFLAGS])
AC_SUBST([LDFLAGS])
AC_SUBST([LIBS])
AC_SUBST([LIBTOOL_LINK_FLAGS])
case "$host" in
*-*-linux*)
CFLAGS="${CFLAGS} -DLINUX"
;;
esac
AC_CONFIG_FILES([Makefile include/Makefile lib/Makefile test/Makefile bitset.pc])
AC_OUTPUT