代码拉取完成,页面将自动刷新
#
# Copyright 2008-2016 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Refer to the README and COPYING files for full details of the license
#
# Autoconf initialization
AC_INIT([vdsm],
[m4_esyscmd([build-aux/pkg-version --version])],
[vdsm-devel@lists.fedorahosted.org])
AC_CONFIG_AUX_DIR([build-aux])
m4_include([m4/ax_python_module.m4])
# Package release
AC_SUBST([PACKAGE_RELEASE],
[m4_esyscmd([build-aux/pkg-version --release])])
# Testing for version and release
AS_IF([test "x$PACKAGE_VERSION" = x],
AC_MSG_ERROR([package version not defined]))
AS_IF([test "x$PACKAGE_RELEASE" = x],
AC_MSG_ERROR([package release not defined]))
# Automake initialization
AM_INIT_AUTOMAKE([-Wno-portability])
# Checking for build tools
AC_PROG_LN_S
AM_PATH_PYTHON([2.6])
AC_ARG_ENABLE(
[hooks],
[AS_HELP_STRING(
[--enable-hooks],
[build hooks packages @<:@default=no@:>@]
)],
,
[enable_hooks="no"]
)
AM_CONDITIONAL([HOOKS], [test "${enable_hooks}" = "yes"])
AS_IF([test "${enable_hooks}" = "yes"],
AC_SUBST([HOOKS], ['1']),
AC_SUBST([HOOKS], ['0']))
AC_ARG_ENABLE(
[vhostmd],
[AS_HELP_STRING(
[--enable-vhostmd],
[build vdsm-vhostmd-hook subpackage @<:@default=no@:>@]
)],
,
[enable_vhostmd="no"]
)
AS_IF([test "${enable_vhostmd}" = "yes"],
AC_SUBST([VHOSTMD], ['1']),
AC_SUBST([VHOSTMD], ['0']))
if grep -q 'Fedora' /etc/redhat-release; then
fedora_run="yes"
else
fedora_run="no"
fi
AC_ARG_ENABLE(
[python3],
[AS_HELP_STRING(
[--disable-python3],
[disable build for python3. Disabled by default over centos and RHEL]
)],
,
[enable_python3=${fedora_run}]
)
AS_IF([test "${enable_python3}" = "yes"],
AC_SUBST([PYTHON3_SUPPORT], ['1']),
AC_SUBST([PYTHON3_SUPPORT], ['0']))
AC_ARG_ENABLE(
[gluster-mgmt],
[AS_HELP_STRING(
[--enable-gluster-mgmt],
[build gluster management package @<:@default=yes@:>@]
)],
,
[enable_gluster_mgmt="yes"]
)
AM_CONDITIONAL([GLUSTER_MGMT], [test "${enable_gluster_mgmt}" = "yes"])
AS_IF([test "${enable_gluster_mgmt}" = "yes"],
AC_SUBST([GLUSTER_MGMT], ['1']),
AC_SUBST([GLUSTER_MGMT], ['0']))
AC_ARG_ENABLE(
[ovirt-imageio],
[AS_HELP_STRING(
[--enable-ovirt-imageio],
[enable ovirt-imageio integration @<:@default=yes@:>@]
)],
,
[enable_ovirt_imageio="yes"]
)
AS_IF([test "${enable_ovirt_imageio}" = "yes"],
AC_SUBST([OVIRT_IMAGEIO], ['1']),
AC_SUBST([OVIRT_IMAGEIO], ['0']))
AC_ARG_ENABLE(
[ovirt-vmconsole],
[AS_HELP_STRING(
[--disable-ovirt-vmconsole],
[disable ovirt-vmconsole integration @<:@default=no@:>@]
)],
,
[enable_ovirt_vmconsole="yes"]
)
AS_IF([test "${enable_ovirt_vmconsole}" = "yes"],
AC_SUBST([OVIRT_VMCONSOLE], ['1']),
AC_SUBST([OVIRT_VMCONSOLE], ['0']))
AC_ARG_ENABLE(
[libvirt-sanlock],
[AS_HELP_STRING(
[--disable-libvirt-sanlock],
[disable libvirt sanlock plugin]
)],
,
[enable_libvirt_sanlock="yes"]
)
AC_SUBST([ENABLE_LIBVIRT_SANLOCK], ["${enable_libvirt_sanlock}"])
AC_ARG_ENABLE(
[libvirt-selinux],
[AS_HELP_STRING(
[--disable-libvirt-selinux],
[disable libvirt selinux plugin]
)],
,
[enable_libvirt_selinux="yes"]
)
AC_SUBST([ENABLE_LIBVIRT_SELINUX], ["${enable_libvirt_selinux}"])
AC_ARG_ENABLE(
[openvswitch],
[AS_HELP_STRING(
[--enable-openvswitch],
[enable openvswitch usage @<:@default=yes@:>@]
)],
,
[enable_openvswitch="yes"]
)
AS_IF([test "${enable_openvswitch}" = "yes"],
AC_SUBST([OPENVSWITCH], ['1']),
AC_SUBST([OPENVSWITCH], ['0']))
AS_IF([test "${enable_openvswitch}" = "yes"],
AC_SUBST([OPENVSWITCHSERVICE], ['openvswitch.service']),
AC_SUBST([OPENVSWITCHSERVICE], []))
AC_ARG_ENABLE(
[containers],
[AS_HELP_STRING(
[--enable-containers],
[build containers packages @<:@default=no@:>@]
)],
,
[enable_hooks="no"]
)
AM_CONDITIONAL([CONTAINERS], [test "${enable_containers}" = "yes"])
AS_IF([test "${enable_containers}" = "yes"],
AC_SUBST([CONTAINERS], ['1']),
AC_SUBST([CONTAINERS], ['0']))
AC_ARG_WITH(
[qemu-user],
[AS_HELP_STRING(
[--with-qemu-user=USER],
[configure user of qemu process spawned by libvirt, @<:@default=qemu@:>@]
)],
,
[with_qemu_user="qemu"]
)
AC_SUBST([QEMUUSER], ["${with_qemu_user}"])
AC_ARG_WITH(
[qemu-group],
[AS_HELP_STRING(
[--with-qemu-group=GROUP],
[configure group of qemu process spawned by libvirt, @<:@default=qemu@:>@]
)],
,
[with_qemu_group="qemu"]
)
AC_SUBST([QEMUGROUP], ["${with_qemu_group}"])
AC_ARG_WITH(
[ovirt-vmconsole-user],
[AS_HELP_STRING(
[--with-ovirt-vmconsole-user=USER],
[configure user for ovirt vmconsole access, @<:@default=ovirt-vmconsole@:>@]
)],
,
[with_ovirt_vmconsole_user="ovirt-vmconsole"]
)
AC_SUBST([OVIRTVMCONSOLEUSER], ["${with_ovirt_vmconsole_user}"])
AC_ARG_WITH(
[ovirt-vmconsole-group],
[AS_HELP_STRING(
[--with-ovirt-vmconsole-group=GROUP],
[configure group for ovirt vmconsole access, @<:@default=ovirt-vmconsole@:>@]
)],
,
[with_ovirt_vmconsole_group="ovirt-vmconsole"]
)
AC_SUBST([OVIRTVMCONSOLEGROUP], ["${with_ovirt_vmconsole_group}"])
AC_ARG_WITH(
[libvirt-service-default],
[AS_HELP_STRING(
[--with-libvirt-service-default=FILE],
[configure full path of libvirt service environment file.
@<:@SYSCONFDIR/sysconfig/libvirtd@:>@]
)],
,
[with_libvirt_service_default="${sysconfdir}/sysconfig/libvirtd"]
)
AC_SUBST([LIBVIRT_SERVICE_DEFAULT], ["${with_libvirt_service_default}"])
AC_ARG_WITH(
[data-center],
[AS_HELP_STRING([--with-data-center=FILE],
[configure full path of ovirt data center, @<:@default=/rhev/data-center@:>@])],
[with_data_center="${withval}"],
[with_data_center="/rhev/data-center"])
AC_SUBST([vdsmrepo], [${with_data_center}])
# Users and groups
AC_SUBST([VDSMUSER], [vdsm])
AC_SUBST([VDSMGROUP], [kvm])
AC_SUBST([METADATAUSER], [vdsm])
AC_SUBST([METADATAGROUP], [kvm])
AC_SUBST([SNLKUSER], [sanlock])
AC_SUBST([SNLKGROUP], [sanlock])
AC_SUBST([CDROMGROUP], [cdrom])
# Systemd units default path
AC_SUBST([SYSTEMD_UNIT_DIR], ['${prefix}/lib/systemd/system'])
# VDSM default paths
AC_SUBST([vdsmdir], ['${datarootdir}/vdsm'])
AC_SUBST([vdsmconfdir], ['${sysconfdir}/vdsm'])
AC_SUBST([vdsmlogdir], ['${localstatedir}/log/vdsm'])
AC_SUBST([vdsmrundir], ['${localstatedir}/run/vdsm'])
AC_SUBST([vdsmlibdir], ['${localstatedir}/lib/vdsm'])
AC_SUBST([vdsmbackupdir], ['${vdsmlogdir}/backup'])
AC_SUBST([vdsmexecdir], ['${libexecdir}/vdsm'])
AC_SUBST([vdsmhooksdir], ['${vdsmexecdir}/hooks'])
AC_SUBST([vdsmtsdir], ['${sysconfdir}/pki/vdsm'])
AC_SUBST([vdsmpylibdir], ['${pythondir}/vdsm'])
AC_SUBST([vdsmnetinfodir], ['${vdsmpylibdir}/network/netinfo'])
AC_SUBST([vdsmtooldir], ['${vdsmpylibdir}/tool'])
AC_SUBST([configuratorsdir], ['${vdsmtooldir}/configurators'])
AC_SUBST([vdsmtestsdir], ['${datarootdir}/vdsm/tests'])
# VDSM service
AC_SUBST([SERVICE_STOP_TIMEOUT], ['10'])
# SMBIOS names
AC_ARG_WITH(
[smbios-manufacturer],
[AS_HELP_STRING([--with-smbios-manufacturer=NAME],
[SMBIOS manufacturer name @<:@default=oVirt@:>@])],
[SMBIOS_MANUFACTURER="${withval}"],
[SMBIOS_MANUFACTURER="oVirt"])
AC_SUBST([SMBIOS_MANUFACTURER])
AC_ARG_WITH(
[smbios-osname],
[AS_HELP_STRING([--with-smbios-osname=NAME],
[SMBIOS OS name @<:@default=oVirt Node@:>@])],
[SMBIOS_OSNAME="${withval}"],
[SMBIOS_OSNAME="oVirt Node"])
AC_SUBST([SMBIOS_OSNAME])
if test "$PYTHON3_SUPPORT" = "1"; then
AC_PATH_PROG([PYTHON3], [python3])
if test "x$PYTHON3" = "x"; then
AC_MSG_ERROR([python3 not found])
fi
AX_PYTHON_MODULE([netaddr], [fatal], python3)
AX_PYTHON_MODULE([libvirt], [fatal], python3)
AX_PYTHON_MODULE([nose], [fatal], python3)
fi
# Checking for python-devel
AC_PATH_PROG([PYTHON_CONFIG], [python-config])
if test "x$PYTHON_CONFIG" = "x"; then
AC_MSG_ERROR([python-devel not found, please install it.])
fi
# Checking for python modules (sorted, please keep in order)
AX_PYTHON_MODULE([six], [fatal], python2)
# External programs (sorted, please keep in order)
AC_PATH_PROG([BRCTL_PATH], [brctl], [/usr/sbin/brctl])
AC_PATH_PROG([CAT_PATH], [cat], [/bin/cat])
AC_PATH_PROG([CHCON_PATH], [chcon], [/bin/chcon])
AC_PATH_PROG([CHMOD_PATH], [chmod], [/bin/chmod])
AC_PATH_PROG([CHOWN_PATH], [chown], [/bin/chown])
AC_PATH_PROG([DD_PATH], [dd], [/bin/dd])
AC_PATH_PROG([DMIDECODE_PATH], [dmidecode], [/usr/sbin/dmidecode])
AC_PATH_PROG([DMSETUP_PATH], [dmsetup], [/sbin/dmsetup])
AC_PATH_PROG([FSCK_PATH], [fsck], [/sbin/fsck])
AC_PATH_PROG([FENCE_AGENT_PATH], [fence_ilo], [/usr/sbin/fence_ilo])
AC_PATH_PROG([FUSER_PATH], [fuser], [/sbin/fuser])
AC_PATH_PROG([GREP_PATH], [grep], [/bin/grep])
AC_PATH_PROG([HWCLOCK_PATH], [hwclock], [/usr/sbin/hwclock])
AC_PATH_PROG([IFDOWN_PATH], [ifdown], [/sbin/ifdown])
AC_PATH_PROG([IFUP_PATH], [ifup], [/sbin/ifup])
AC_PATH_PROG([IONICE_PATH], [ionice], [/usr/bin/ionice])
AC_PATH_PROG([IP_PATH], [ip], [/sbin/ip])
AC_PATH_PROG([ISCSIADM_PATH], [iscsiadm], [/sbin/iscsiadm])
AC_PATH_PROG([KILL_PATH], [kill], [/bin/kill])
AC_PATH_PROG([LVM_PATH], [lvm], [/sbin/lvm])
AC_PATH_PROG([MKFS_MSDOS_PATH], [mkfs.msdos], [/sbin/mkfs.msdos])
AC_PATH_PROG([MKFS_PATH], [mkfs], [/sbin/mkfs])
AC_PATH_PROG([MKISOFS_PATH], [mkisofs], [/usr/bin/mkisofs])
AC_PATH_PROG([MOUNTPOINT_PATH], [mountpoint], [/bin/mountpoint])
AC_PATH_PROG([MOUNT_PATH], [mount], [/bin/mount])
AC_PATH_PROG([MULTIPATH_PATH], [multipath], [/sbin/multipath])
AC_PATH_PROG([MV_PATH], [mv], [/bin/mv])
AC_PATH_PROG([NICE_PATH], [nice], [/bin/nice])
AC_PATH_PROG([NTPQ_PATH], [ntpq], [/usr/sbin/ntpq])
AC_PATH_PROG([OPENSSL_PATH], [openssl], [/usr/bin/openssl])
AC_PATH_PROG([QEMUIMG_PATH], [qemu-img], [/usr/bin/qemu-img])
AC_PATH_PROG([REBOOT_PATH], [reboot], [/usr/bin/reboot])
AC_PATH_PROG([RESTORECON_PATH], [restorecon], [/sbin/restorecon])
AC_PATH_PROG([RM_PATH], [rm], [/bin/rm])
AC_PATH_PROG([RSYNC_PATH], [rsync], [/usr/bin/rsync])
AC_PATH_PROG([SAFELEASE_PATH], [safelease], [/usr/libexec/safelease/safelease])
AC_PATH_PROG([SERVICE_PATH], [service], [/sbin/service])
AC_PATH_PROG([SETSID_PATH], [setsid], [/usr/bin/setsid])
AC_PATH_PROG([SUDO_PATH], [sudo], [/usr/bin/sudo])
AC_PATH_PROG([SU_PATH], [su], [/bin/su])
AC_PATH_PROG([SYSCTL_PATH], [sysctl], [/sbin/sysctl])
AC_PATH_PROG([SYSTEMD_RUN_PATH], [systemd-run], [/usr/bin/systemd-run])
AC_PATH_PROG([TAR_PATH], [tar], [/bin/tar])
AC_PATH_PROG([TASKSET_PATH], [taskset], [/usr/bin/taskset])
AC_PATH_PROG([TC_PATH], [tc], [/sbin/tc])
AC_PATH_PROG([TEE_PATH], [tee], [/usr/bin/tee])
AC_PATH_PROG([TOUCH_PATH], [touch], [/bin/touch])
AC_PATH_PROG([TUNE2FS_PATH], [tune2fs], [/sbin/tune2fs])
AC_PATH_PROG([UMOUNT_PATH], [umount], [/bin/umount])
AC_PATH_PROG([WGET_PATH], [wget], [/usr/bin/wget])
# Keep sorted
AC_OUTPUT([
Makefile
contrib/Makefile
helpers/Makefile
init/Makefile
init/systemd/Makefile
lib/Makefile
lib/vdsm/Makefile
lib/vdsm/api/Makefile
lib/vdsm/common/Makefile
lib/vdsm/common/network/Makefile
lib/vdsm/gluster/Makefile
lib/vdsm/host/Makefile
lib/vdsm/metrics/Makefile
lib/vdsm/network/Makefile
lib/vdsm/network/configurators/Makefile
lib/vdsm/network/ip/Makefile
lib/vdsm/network/link/Makefile
lib/vdsm/network/link/bond/Makefile
lib/vdsm/network/netinfo/Makefile
lib/vdsm/network/netlink/Makefile
lib/vdsm/network/nm/Makefile
lib/vdsm/network/nm/nmdbus/Makefile
lib/vdsm/network/ovs/Makefile
lib/vdsm/network/ovs/driver/Makefile
lib/vdsm/network/tc/Makefile
lib/vdsm/profiling/Makefile
lib/vdsm/rpc/Makefile
lib/vdsm/storage/Makefile
lib/vdsm/supervdsm_api/Makefile
lib/vdsm/tool/Makefile
lib/vdsm/tool/configurators/Makefile
lib/vdsm/virt/Makefile
lib/vdsm/virt/containers/Makefile
lib/vdsm/virt/jobs/Makefile
lib/vdsm/virt/vmdevices/Makefile
lib/vdsmclient/Makefile
lib/yajsonrpc/Makefile
static/Makefile
tests/Makefile
tests/common/Makefile
tests/containers/Makefile
tests/containers/data/Makefile
tests/containers/fake/Makefile
tests/containers/fake/bin/Makefile
tests/cpuinfo/Makefile
tests/devices/Makefile
tests/devices/data/Makefile
tests/devices/parsing/Makefile
tests/functional/Makefile
tests/integration/Makefile
tests/network/Makefile
tests/virttests/Makefile
vdsm/Makefile
vdsm/sos/Makefile
vdsm/storage/Makefile
vdsm/storage/imageRepository/Makefile
vdsm/storage/protect/Makefile
vdsm/storage/sdm/Makefile
vdsm/storage/sdm/api/Makefile
vdsm/storage/vdsm_lvm_rules.template
vdsm/virt/Makefile
vdsm_hooks/Makefile
vdsm_hooks/allocate_net/Makefile
vdsm_hooks/checkimages/Makefile
vdsm_hooks/checkips/Makefile
vdsm_hooks/diskunmap/Makefile
vdsm_hooks/ethtool_options/Makefile
vdsm_hooks/extnet/Makefile
vdsm_hooks/extra_ipv4_addrs/Makefile
vdsm_hooks/fakesriov/Makefile
vdsm_hooks/fakevmstats/Makefile
vdsm_hooks/faqemu/Makefile
vdsm_hooks/fcoe/Makefile
vdsm_hooks/fileinject/Makefile
vdsm_hooks/floppy/Makefile
vdsm_hooks/hostusb/Makefile
vdsm_hooks/httpsisoboot/Makefile
vdsm_hooks/hugepages/Makefile
vdsm_hooks/ipv6/Makefile
vdsm_hooks/isolatedprivatevlan/Makefile
vdsm_hooks/localdisk/Makefile
vdsm_hooks/macbind/Makefile
vdsm_hooks/macspoof/Makefile
vdsm_hooks/nestedvt/Makefile
vdsm_hooks/noipspoof/Makefile
vdsm_hooks/numa/Makefile
vdsm_hooks/openstacknet/Makefile
vdsm_hooks/pincpu/Makefile
vdsm_hooks/promisc/Makefile
vdsm_hooks/qemucmdline/Makefile
vdsm_hooks/qos/Makefile
vdsm_hooks/scratchpad/Makefile
vdsm_hooks/smbios/Makefile
vdsm_hooks/spiceoptions/Makefile
vdsm_hooks/vhostmd/Makefile
vdsm_hooks/vmdisk/Makefile
vdsm_hooks/vmfex/Makefile
vdsm_hooks/vmfex_dev/Makefile
])
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。