-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
52 lines (41 loc) · 1.2 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
AC_PREREQ([2.69])
AC_CONFIG_MACRO_DIRS([m4])
AC_INIT([HashMap], [0.0.1], [https://github.com/evjeesm])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SUBDIRS([vector]) # import sub projects
# valgrind
AX_VALGRIND_DFLT([memcheck], [on])
AX_VALGRIND_DFLT([helgrind], [off])
AX_VALGRIND_DFLT([sgcheck], [off])
AX_VALGRIND_DFLT([drd], [off])
AX_VALGRIND_CHECK
# unique source file -- primitive safety check
AC_CONFIG_SRCDIR([src/hashmap.c])
AM_INIT_AUTOMAKE([-Wall -Wportability foreign 1.11.2])
AM_CONDITIONAL(MINGW, [test "$MSYSTEM_CHOST" = x86_64-w64-mingw32 || "$host" = x86_64-w64-mingw32])
# Checks for programs.
AM_PROG_AR
LT_INIT
AC_PROG_CC
AC_PROG_CPP
AC_PROG_AWK
# Checks for libraries.
PKG_CHECK_MODULES([CHECK], [check >= 0.9.6])
# Checks for header files.
AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memmove memset])
# Output files
AC_CONFIG_HEADERS([config.h])
AX_CODE_COVERAGE
AC_CONFIG_FILES([Makefile
src/Makefile
tests/Makefile
examples/Makefile])
AC_OUTPUT