tools: fix x11 check

X.org is installed in /usr/X11R7.
Attached patch covers this in the x11 check.
Xen has no direct X11 dependency
(it's inherited from SDL and SDL is optional for qemu-dm)
so warn but don't fail if no X11 is installed.
Fixes build problem on distributions which build their packages (*BSD
and Gentoo).

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
Keir Fraser committed 2009-06-25 12:59:46 +01:00
1 parent 1d998d8224
commit a8ccb671c3
2 files changed
+7 -1

No files matched your search

+2 -1
View File
@@ -5,4 +5,5 @@
has_header X11/keysymdef.h || \ has_header X11/keysymdef.h || \
has_header /usr/X11R6/include/X11/keysymdef.h || \ has_header /usr/X11R6/include/X11/keysymdef.h || \
fail "can't find X11 headers" has_header /usr/X11R7/include/X11/keysymdef.h || \
warning "can't find X11 headers"
+5
View File
@@ -78,6 +78,11 @@ check_sys_root() {
fi fi
} }
warning() {
echo
echo " *** `basename "$0"` FAILED${*+: $*}"
}
fail() { fail() {
echo echo
echo " *** `basename "$0"` FAILED${*+: $*}" echo " *** `basename "$0"` FAILED${*+: $*}"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.