-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
110 lines (110 loc) · 3.54 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
AC_INIT([fwts],[0.1],[fwts-devel@lists.ubuntu.com])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_CANONICAL_HOST
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AC_PROG_LEX
AC_PROG_YACC
AC_PROG_LIBTOOL
AC_C_INLINE
AM_PROG_CC_C_O
AC_SEARCH_LIBS([json_object_from_file], [json json-c], [], [ AC_MSG_ERROR([no available json library]) ])
AC_SEARCH_LIBS([json_object_object_get_ex], [json json-c], [ AC_DEFINE([JSON_HAS_GET_EX], [1], [Define if we have json_object_object_get_ex])], [])
AC_CHECK_FUNCS([localtime_r])
AC_CHECK_FUNCS([dup2])
AC_CHECK_FUNCS([getcwd])
AC_CHECK_FUNCS([getpagesize])
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([mkdir])
AC_CHECK_FUNCS([munmap])
AC_CHECK_FUNCS([select])
AC_CHECK_FUNCS([socket])
AC_CHECK_FUNCS([sqrt])
AC_CHECK_FUNCS([strchr])
AC_CHECK_FUNCS([strdup])
AC_CHECK_FUNCS([strerror])
AC_CHECK_FUNCS([strstr])
AC_CHECK_FUNCS([strtoul])
AC_CHECK_FUNCS([strtoull])
AC_CHECK_FUNCS([gettimeofday])
AC_CHECK_FUNCS([uname])
AC_CHECK_HEADERS([assert.h])
AC_CHECK_HEADERS([ctype.h])
AC_CHECK_HEADERS([errno.h])
AC_CHECK_HEADERS([fcntl.h])
AC_CHECK_HEADERS([getopt.h])
AC_CHECK_HEADERS([limits.h])
AC_CHECK_HEADERS([linux/input.h])
AC_CHECK_HEADERS([math.h])
AC_CHECK_HEADERS([paths.h])
AC_CHECK_HEADERS([pcre.h])
AC_CHECK_HEADERS([sched.h])
AC_CHECK_HEADERS([signal.h])
AC_CHECK_HEADERS([stdarg.h])
AC_CHECK_HEADERS([stdint.h])
AC_CHECK_HEADERS([stdio.h])
AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([string.h])
AC_CHECK_HEADERS([sys/io.h])
AC_CHECK_HEADERS([sys/klog.h])
AC_CHECK_HEADERS([sys/mman.h])
AC_CHECK_HEADERS([sys/param.h])
AC_CHECK_HEADERS([sys/select.h])
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([sys/stat.h])
AC_CHECK_HEADERS([sys/type.h])
AC_CHECK_HEADERS([sys/un.h])
AC_CHECK_HEADERS([sys/wait.h])
AC_CHECK_HEADERS([termios.h])
AC_CHECK_HEADERS([time.h])
AC_CHECK_HEADERS([sys/ioctl.h])
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([json/json.h])
AC_CHECK_HEADERS([glib.h])
AC_CHECK_HEADERS([gio/gio.h])
AC_CHECK_HEADERS([asm/opal-prd.h])
AC_CHECK_HEADERS([mtd/mtd-abi.h])
AC_CHECK_HEADERS([pci/pci.h])
AM_CONDITIONAL([HAVE_ASM_OPAL_PRD_H],
[test "x$ac_cv_header_asm_opal_prd_h" = "xyes"])
AM_CONDITIONAL([HAVE_MTD_ABI_H],
[test "x$ac_cv_header_mtd_abi_h" = "xyes"])
AM_CONDITIONAL([HAVE_PCI_PCI_H],
[test "x$ac_cv_header_pci_pci_h" = "xyes"])
#AC_CHECK_LIB(pcre, pcre_compile)
AC_SEARCH_LIBS([fdt_check_header], [fdt], [
AC_DEFINE([HAVE_LIBFDT], [1], [Define if we have libfdt])])
AM_CONDITIONAL([HAVE_LIBFDT],
[test "x$ac_cv_search_fdt_check_header" != "xno"])
AC_SEARCH_LIBS([pci_alloc], [pci], [
AC_DEFINE([HAVE_LIBPCI], [1], [Define if we have libpci])])
AM_CONDITIONAL([HAVE_LIBPCI],
[test "x$ac_cv_search_pci_alloc" != "xno"])
AC_FUNC_MALLOC
AC_FUNC_FORK
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MMAP
AC_FUNC_REALLOC
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_OFF_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
case $host in
arm*) CFLAGS="$CFLAGS -marm" ;;
esac
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/acpica/source/compiler/Makefile
src/acpica/Makefile
src/lib/Makefile
src/lib/src/Makefile
src/utilities/Makefile
data/Makefile
])
AC_OUTPUT