Revision 47c86659 configure.ac
b/configure.ac | ||
---|---|---|
6 | 6 |
|
7 | 7 |
AM_INIT_AUTOMAKE([1.9 foreign tar-ustar -Wall -Wno-portability]) |
8 | 8 |
|
9 |
#Handle --disable-windows-support |
|
10 |
AC_ARG_ENABLE(windows_support, |
|
11 |
AS_HELP_STRING([--disable-windows-support], |
|
12 |
[disable Windows support]), |
|
13 |
, enable_windows_support=yes) |
|
14 |
AM_CONDITIONAL(WINSUPPORT, [test "x$enable_windows_support" = "xyes"]) |
|
15 |
|
|
9 | 16 |
# --with-os-dir=... |
10 | 17 |
AC_ARG_WITH([os-dir], |
11 | 18 |
[AS_HELP_STRING([--with-os-dir=DIR], |
... | ... | |
67 | 74 |
AC_MSG_ERROR([qemu-img not found in $PATH]) |
68 | 75 |
fi |
69 | 76 |
|
77 |
if test "x$enable_windows_support" = "xyes" |
|
78 |
then |
|
79 |
AC_PATH_PROG(XMLSTARLET, [xmlstarlet], [], [$PATH:/usr/sbin:/sbin]) |
|
80 |
if test -z "$XMLSTARLET" ; then |
|
81 |
AC_MSG_ERROR([xmlstarlet is needed for Windows but not found in $PATH] |
|
82 |
[To disable windows support run with --disable-windows-support]) |
|
83 |
fi |
|
84 |
fi |
|
85 |
|
|
70 | 86 |
AC_CONFIG_FILES([ |
71 | 87 |
Makefile |
72 | 88 |
common.sh |
Also available in: Unified diff