2 # Copyright (C) 2007-2008 Red Hat Inc., Richard W.M. Jones
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 dnl Process this file with autoconf to produce a configure script.
19 AC_INIT(virt-p2v,0.9.2)
21 dnl Override CD properties.
22 AC_ARG_ENABLE([cd-arch],
23 [AS_HELP_STRING([--enable-cd-arch],
24 [set CD architecture @<:@default=i386@:>@])],
27 AC_ARG_ENABLE([cd-lang],
28 [AS_HELP_STRING([--enable-cd-lang],
29 [set CD language @<:@default=en_US.UTF-8@:>@])],
31 [CD_LANG=en_US.UTF-8])
32 AC_ARG_ENABLE([cd-keyboard],
33 [AS_HELP_STRING([--enable-cd-keyboard],
34 [set CD keyboard @<:@default=us@:>@])],
35 [CD_KEYBOARD=$enableval],
37 AC_ARG_ENABLE([cd-timezone],
38 [AS_HELP_STRING([--enable-cd-timezone],
39 [set CD timezone @<:@default=US/Eastern@:>@])],
40 [CD_TIMEZONE=$enableval],
41 [CD_TIMEZONE=US/Eastern])
42 AC_ARG_ENABLE([cd-base],
43 [AS_HELP_STRING([--enable-cd-base],
44 [set base Fedora for CD @<:@default=8@:>@])],
47 AC_ARG_ENABLE([cd-base-url],
48 [AS_HELP_STRING([--enable-cd-base-url],
49 [set download URL for packages])],
50 [CD_BASE_URL=$enableval],
51 [CD_BASE_URL=http://download.fedora.redhat.com/pub/fedora/linux/releases/$CD_BASE/Everything/$CD_ARCH/os/])
60 dnl Check for basic OCaml script interpreter.
63 dnl Check for required OCaml modules.
64 AC_CHECK_OCAML_MODULE(unix,pkg_unix,Unix,[.])
65 if test "x$pkg_unix" = "xno"; then
66 AC_MSG_ERROR([Cannot find required OCaml package 'unix'])
69 AC_CHECK_OCAML_MODULE(extlib,pkg_extlib,ExtString,[+extlib])
70 if test "x$pkg_extlib" = "xno"; then
71 AC_MSG_ERROR([Cannot find required OCaml package 'extlib'])
74 AC_CHECK_OCAML_MODULE(xml-light,pkg_xml_light,Xml,[+xml-light])
75 if test "x$pkg_xml_light" = "xno"; then
76 AC_MSG_ERROR([Cannot find required OCaml package 'xml-light'])
79 dnl Check for recommended livecd-creator (for building ISOs).
80 AC_CHECK_PROG(HAVE_LIVECD_CREATOR,livecd-creator,livecd-creator)
82 dnl Check for optional perldoc (for building manual pages).
83 AC_CHECK_PROG(HAVE_PERLDOC,perldoc,perldoc)
85 dnl Check for optional qemu or qemu-kvm (for test-booting).
86 AC_CHECK_PROG(HAVE_QEMU,qemu,qemu)
87 AC_CHECK_PROG(HAVE_QEMU_KVM,qemu-kvm,qemu-kvm)
90 echo "------------------------------------------------------------"
91 echo "Thanks for downloading" $PACKAGE_STRING
92 echo "------------------------------------------------------------"
94 dnl Produce output files.
95 AC_CONFIG_FILES([Makefile p2v.ks])