Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
12050cf1
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,发现更多精彩内容 >>
提交
12050cf1
编写于
12月 08, 2016
作者:
P
Pavel Hrdina
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
m4/virt-driver-xenapi: use LIBVIRT_CHECK_LIB macro
Signed-off-by:
N
Pavel Hrdina
<
phrdina@redhat.com
>
上级
02957106
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
42 deletion
+8
-42
m4/virt-driver-xenapi.m4
m4/virt-driver-xenapi.m4
+8
-42
未找到文件。
m4/virt-driver-xenapi.m4
浏览文件 @
12050cf1
...
...
@@ -24,53 +24,19 @@ AC_DEFUN([LIBVIRT_DRIVER_ARG_XENAPI], [
AC_DEFUN([LIBVIRT_DRIVER_CHECK_XENAPI], [
AC_REQUIRE([LIBVIRT_CHECK_CURL])
old_LIBS="$LIBS"
old_CFLAGS="$CFLAGS"
XENAPI_LIBS=""
XENAPI_CFLAGS=""
old_with_xenapi="$with_xenapi"
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
LIBVIRT_CHECK_LIB([XENAPI], [xenserver], [xen_vm_start], [xen/api/xen_vm.h])
if test "x$with_xenapi" = "xyes" ; then
if test "x$with_curl" = "xno"; then
if test "$old_with_xenapi" != "check"; then
AC_MSG_ERROR([You must install libcurl to compile the XenAPI driver])
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], [
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录