-
Notifications
You must be signed in to change notification settings - Fork 81
/
configure.ac
79 lines (68 loc) · 1.87 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
m4_include([version.m4])
AC_INIT([blktap], BLKTAP_VERSION)
AM_INIT_AUTOMAKE([foreign])
# AM_SILENT_RULES([yes])
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CANONICAL_HOST
AC_SYS_LARGEFILE
AC_CHECK_HEADERS([uuid/uuid.h], [], [Need uuid-dev])
AC_CHECK_HEADERS([libaio.h], [], [Need libaio-dev])
AC_CHECK_HEADERS([limits.h], [], [AC_MSG_ERROR([cannot find limits.h])])
AC_CHECK_HEADERS([time.h], [], [AC_MSG_ERROR([cannot find time.h])])
AC_ARG_WITH([libiconv],
[AS_HELP_STRING([--with-libiconv],
[link to libiconv])],
[],
[with_libiconv=check])
AC_CHECK_LIB([aio], [main],
[:],
AC_MSG_ERROR([Need libaio-dev]))
AC_CHECK_LIB([uuid], [main],
[:],
AC_MSG_ERROR([Need uuid-dev]))
AS_IF([test x$with_libiconv != xno],
[AC_CHECK_LIB([iconv], [main],
[AC_SUBST([LIBICONV], ["-liconv"])],
[if test x$with_libiconv == xyes; then
AC_MSG_FAILURE([--with-libiconv given, but test failed])
fi])],
[AC_CHECK_LIB([], [iconv_open],
[:],
AC_MSG_ERROR([Missing iconv in libc]))])
AC_ARG_ENABLE([tests],
[AS_HELP_STRING([--enable-tests],
[build test programs])],
[],
[enable_tests=no])
AM_CONDITIONAL([ENABLE_TESTS],
[test x$enable_tests = xyes])
AC_CHECK_FUNCS([eventfd])
# AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_DEFINE(_BLKTAP, 1,
Indicates whether this is an internal or external compilation.)
AC_CONFIG_FILES([
Makefile
lvm/Makefile
cpumond/Makefile
cbt/Makefile
vhd/Makefile
vhd/lib/Makefile
vhd/lib/test/Makefile
control/Makefile
drivers/Makefile
drivers/crypto/Makefile
include/Makefile
tapback/Makefile
mockatests/Makefile
mockatests/wrappers/Makefile
mockatests/cbt/Makefile
mockatests/drivers/Makefile
mockatests/control/Makefile
mockatests/vhd/Makefile
])
AC_OUTPUT