File: configure.ac

package info (click to toggle)
blktap 2.0.90-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,676 kB
  • sloc: ansic: 34,134; sh: 1,138; makefile: 224
file content (77 lines) | stat: -rw-r--r-- 1,716 bytes parent folder | download | duplicates (3)
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
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_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_PART],
	       [case "${host_os}" in
		      linux-*) true ;;
		      *) false ;;
		esac])

AM_CONDITIONAL([ENABLE_VHDIO],
	       [test x$enable_shared = xyes &&
	       	case "${host_os}" in
		      linux-gnu) true ;;
		      *) false ;;
		esac])

AM_CONDITIONAL([ENABLE_TESTS],
	       [test x$enable_tests = xyes])



# AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
lvm/Makefile
part/Makefile
vhd/Makefile
vhd/lib/Makefile
vhd/lib/test/Makefile
control/Makefile
drivers/Makefile
include/Makefile
])
AC_OUTPUT