Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
02957106
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
02957106
编写于
12月 12, 2016
作者:
P
Pavel Hrdina
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
configure: move XenAPI driver check to its own file
Signed-off-by:
N
Pavel Hrdina
<
phrdina@redhat.com
>
上级
7f0caf57
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
88 addition
and
61 deletion
+88
-61
configure.ac
configure.ac
+4
-59
m4/virt-driver-xenapi.m4
m4/virt-driver-xenapi.m4
+82
-0
src/Makefile.am
src/Makefile.am
+2
-2
未找到文件。
configure.ac
浏览文件 @
02957106
...
@@ -403,7 +403,7 @@ LIBVIRT_DRIVER_ARG_QEMU
...
@@ -403,7 +403,7 @@ LIBVIRT_DRIVER_ARG_QEMU
LIBVIRT_DRIVER_ARG_OPENVZ
LIBVIRT_DRIVER_ARG_OPENVZ
LIBVIRT_DRIVER_ARG_VMWARE
LIBVIRT_DRIVER_ARG_VMWARE
LIBVIRT_ARG_WITH([PHYP], [PHYP], [check])
LIBVIRT_ARG_WITH([PHYP], [PHYP], [check])
LIBVIRT_
ARG_WITH([XENAPI], [XenAPI], [check])
LIBVIRT_
DRIVER_ARG_XENAPI
LIBVIRT_DRIVER_ARG_LIBXL
LIBVIRT_DRIVER_ARG_LIBXL
LIBVIRT_ARG_WITH([VBOX], [VirtualBox XPCOMC], [yes])
LIBVIRT_ARG_WITH([VBOX], [VirtualBox XPCOMC], [yes])
LIBVIRT_DRIVER_ARG_LXC
LIBVIRT_DRIVER_ARG_LXC
...
@@ -492,53 +492,7 @@ if test "$with_libvirtd" = "yes" ; then
...
@@ -492,53 +492,7 @@ if test "$with_libvirtd" = "yes" ; then
fi
fi
AM_CONDITIONAL([WITH_LIBVIRTD], [test "$with_libvirtd" = "yes"])
AM_CONDITIONAL([WITH_LIBVIRTD], [test "$with_libvirtd" = "yes"])
old_LIBS="$LIBS"
LIBVIRT_DRIVER_CHECK_XENAPI
old_CFLAGS="$CFLAGS"
LIBXENSERVER_LIBS=""
LIBXENSERVER_CFLAGS=""
dnl search for the XenServer library
fail=0
if test "$with_xenapi" != "no" ; then
if test "$with_xenapi" != "yes" && test "$with_xenapi" != "check" ; then
LIBXENSERVER_CFLAGS="-I$with_xenapi/include"
LIBXENSERVER_LIBS="-L$with_xenapi"
fi
CFLAGS="$CFLAGS $LIBXENSERVER_CFLAGS"
LIBS="$LIBS $LIBXENSERVER_LIBS"
AC_CHECK_LIB([xenserver], [xen_vm_start], [
LIBXENSERVER_LIBS="$LIBXENSERVER_LIBS -lxenserver"
],[
if test "$with_xenapi" = "yes"; then
fail=1
fi
with_xenapi=no
])
if test "$with_xenapi" != "no" ; then
if test "$with_curl" = "no"; then
if test "$with_xenapi" = "yes"; then
fail=1
fi
with_xenapi=no
else
with_xenapi=yes
fi
fi
fi
LIBS="$old_LIBS"
CFLAGS="$old_CFLAGS"
if test $fail = 1; then
AC_MSG_ERROR([You must install libxenserver and libcurl to compile the XenAPI driver])
fi
if test "$with_xenapi" = "yes"; then
AC_DEFINE_UNQUOTED([WITH_XENAPI], 1, [whether XenAPI driver is enabled])
fi
AC_SUBST([LIBXENSERVER_CFLAGS])
AC_SUBST([LIBXENSERVER_LIBS])
LIBVIRT_DRIVER_CHECK_LIBXL
LIBVIRT_DRIVER_CHECK_LIBXL
LIBVIRT_DRIVER_CHECK_XEN
LIBVIRT_DRIVER_CHECK_XEN
...
@@ -1087,11 +1041,6 @@ if test "$with_vmx" = "yes" ; then
...
@@ -1087,11 +1041,6 @@ if test "$with_vmx" = "yes" ; then
fi
fi
AM_CONDITIONAL([WITH_VMX], [test "$with_vmx" = "yes"])
AM_CONDITIONAL([WITH_VMX], [test "$with_vmx" = "yes"])
if test "$with_xenapi" = "yes" ; then
AC_DEFINE_UNQUOTED([WITH_XENAPI], 1, [whether XenAPI driver is enabled])
fi
AM_CONDITIONAL([WITH_XENAPI], [test "$with_xenapi" = "yes"])
dnl
dnl
dnl check for Hyper-V
dnl check for Hyper-V
...
@@ -1432,7 +1381,7 @@ LIBVIRT_DRIVER_RESULT_UML
...
@@ -1432,7 +1381,7 @@ LIBVIRT_DRIVER_RESULT_UML
LIBVIRT_DRIVER_RESULT_OPENVZ
LIBVIRT_DRIVER_RESULT_OPENVZ
LIBVIRT_DRIVER_RESULT_VMWARE
LIBVIRT_DRIVER_RESULT_VMWARE
AC_MSG_NOTICE([ VBox: $with_vbox])
AC_MSG_NOTICE([ VBox: $with_vbox])
AC_MSG_NOTICE([ XenAPI: $with_xenapi])
LIBVIRT_DRIVER_RESULT_XENAPI
LIBVIRT_DRIVER_RESULT_LIBXL
LIBVIRT_DRIVER_RESULT_LIBXL
LIBVIRT_DRIVER_RESULT_LXC
LIBVIRT_DRIVER_RESULT_LXC
AC_MSG_NOTICE([ PHYP: $with_phyp])
AC_MSG_NOTICE([ PHYP: $with_phyp])
...
@@ -1508,12 +1457,8 @@ LIBVIRT_RESULT_UDEV
...
@@ -1508,12 +1457,8 @@ LIBVIRT_RESULT_UDEV
LIBVIRT_RESULT_VIRTUALPORT
LIBVIRT_RESULT_VIRTUALPORT
LIBVIRT_RESULT_XDR
LIBVIRT_RESULT_XDR
LIBVIRT_RESULT_XEN
LIBVIRT_RESULT_XEN
LIBVIRT_RESULT_XENAPI
LIBVIRT_RESULT_YAJL
LIBVIRT_RESULT_YAJL
if test "$with_xenapi" = "yes" ; then
AC_MSG_NOTICE([ xenapi: $LIBXENSERVER_CFLAGS $LIBXENSERVER_LIBS])
else
AC_MSG_NOTICE([ xenapi: no])
fi
if test "$with_storage_rbd" = "yes" ; then
if test "$with_storage_rbd" = "yes" ; then
AC_MSG_NOTICE([ rbd: $LIBRBD_LIBS])
AC_MSG_NOTICE([ rbd: $LIBRBD_LIBS])
else
else
...
...
m4/virt-driver-xenapi.m4
0 → 100644
浏览文件 @
02957106
dnl The XenAPI driver
dnl
dnl Copyright (C) 2016 Red Hat, Inc.
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library. If not, see
dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_XENAPI], [
LIBVIRT_ARG_WITH([XENAPI], [XenAPI], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_XENAPI], [
AC_REQUIRE([LIBVIRT_CHECK_CURL])
old_LIBS="$LIBS"
old_CFLAGS="$CFLAGS"
XENAPI_LIBS=""
XENAPI_CFLAGS=""
dnl search for the XenServer library
fail=0
if test "$with_xenapi" != "no" ; then
if test "$with_xenapi" != "yes" && test "$with_xenapi" != "check" ; then
XENAPI_CFLAGS="-I$with_xenapi/include"
XENAPI_LIBS="-L$with_xenapi"
fi
CFLAGS="$CFLAGS $XENAPI_CFLAGS"
LIBS="$LIBS $XENAPI_LIBS"
AC_CHECK_LIB([xenserver], [xen_vm_start], [
XENAPI_LIBS="$XENAPI_LIBS -lxenserver"
],[
if test "$with_xenapi" = "yes"; then
fail=1
fi
with_xenapi=no
])
if test "$with_xenapi" != "no" ; then
if test "$with_curl" = "no"; then
if test "$with_xenapi" = "yes"; then
fail=1
fi
with_xenapi=no
else
with_xenapi=yes
fi
fi
fi
LIBS="$old_LIBS"
CFLAGS="$old_CFLAGS"
if test $fail = 1; then
AC_MSG_ERROR([You must install libxenserver and libcurl to compile the XenAPI driver])
fi
if test "$with_xenapi" = "yes"; then
AC_DEFINE_UNQUOTED([WITH_XENAPI], 1, [whether XenAPI driver is enabled])
fi
AM_CONDITIONAL([WITH_XENAPI], [test "$with_xenapi" = "yes"])
AC_SUBST([XENAPI_CFLAGS])
AC_SUBST([XENAPI_LIBS])
])
AC_DEFUN([LIBVIRT_DRIVER_RESULT_XENAPI], [
LIBVIRT_RESULT([XenAPI], [$with_xenapi])
])
AC_DEFUN([LIBVIRT_RESULT_XENAPI], [
LIBVIRT_RESULT_LIB([XENAPI])
])
src/Makefile.am
浏览文件 @
02957106
...
@@ -1316,10 +1316,10 @@ endif WITH_VBOX
...
@@ -1316,10 +1316,10 @@ endif WITH_VBOX
if
WITH_XENAPI
if
WITH_XENAPI
noinst_LTLIBRARIES
+=
libvirt_driver_xenapi.la
noinst_LTLIBRARIES
+=
libvirt_driver_xenapi.la
libvirt_la_BUILT_LIBADD
+=
libvirt_driver_xenapi.la
libvirt_la_BUILT_LIBADD
+=
libvirt_driver_xenapi.la
libvirt_driver_xenapi_la_CFLAGS
=
$(
LIBXENSERVER
_CFLAGS)
$(CURL_CFLAGS)
\
libvirt_driver_xenapi_la_CFLAGS
=
$(
XENAPI
_CFLAGS)
$(CURL_CFLAGS)
\
-I
$(srcdir)
/conf
-I
$(srcdir)
/xenconfig
$(AM_CFLAGS)
-I
$(srcdir)
/conf
-I
$(srcdir)
/xenconfig
$(AM_CFLAGS)
libvirt_driver_xenapi_la_LDFLAGS
=
$(AM_LDFLAGS)
libvirt_driver_xenapi_la_LDFLAGS
=
$(AM_LDFLAGS)
libvirt_driver_xenapi_la_LIBADD
=
$(
LIBXENSERVER
_LIBS)
$(CURL_LIBS)
libvirt_driver_xenapi_la_LIBADD
=
$(
XENAPI
_LIBS)
$(CURL_LIBS)
libvirt_driver_xenapi_la_SOURCES
=
$(XENAPI_DRIVER_SOURCES)
libvirt_driver_xenapi_la_SOURCES
=
$(XENAPI_DRIVER_SOURCES)
endif
WITH_XENAPI
endif
WITH_XENAPI
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录