-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure.ac
82 lines (60 loc) · 1.79 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
81
82
## Process this file with autoconf to produce a configure script.
## Copyright (C) 2017 David Pinto <[email protected]>
##
## Copying and distribution of this file, with or without modification,
## are permitted in any medium without royalty provided the copyright
## notice and this notice are preserved. This file is offered as-is,
## without any warranty.
AC_PREREQ([2.69])
AC_INIT([ActionTable], [0.0.0+])
AM_INIT_AUTOMAKE([gnu subdir-objects -Wall -Werror])
## Add the option to enable silent rules and make silent rules the
## default behavior. Available since Automake 1.11 and included by
## default starting with Automake 1.13.
AM_SILENT_RULES([yes])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
## Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
## Checks for header files.
AC_CHECK_HEADERS([ \
fcntl.h \
stdint.h \
stdlib.h \
string.h \
unistd.h \
], [], [AC_MSG_ERROR([Failed to find and use required header])])
## Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
## Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([ \
munmap \
strerror \
strtol \
strtoull \
], [], [AC_MSG_ERROR([Failed to find required function])])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
## Print a summary so that the user knows everything went well and
## what needs to be done next.
AC_MSG_NOTICE([
$PACKAGE_NAME is now configured for:
Build: $build
Host: $host
Source directory: $srcdir
Installation prefix: $prefix
C compiler: $CC $CFLAGS
LDFLAGS: $LDFLAGS
You can now run `make' to build.
])