[Spice-devel] [RFC 1/1] client: CEGUI: search for CEGUI-0.6 to work in F15 (rawhide)
Alon Levy
alevy at redhat.com
Wed Jan 5 05:22:52 PST 2011
---
client/x11/Makefile.am | 2 ++
configure.ac | 19 ++++++++++++++-----
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/client/x11/Makefile.am b/client/x11/Makefile.am
index 42b8b0a..7504833 100644
--- a/client/x11/Makefile.am
+++ b/client/x11/Makefile.am
@@ -25,6 +25,7 @@ INCLUDES = \
$(XFIXES_CFLAGS) \
$(MISC_X_CFLAGS) \
$(CEGUI_CFLAGS) \
+ $(CEGUI06_CFLAGS) \
$(WARN_CFLAGS) \
$(SPICE_NONPKGCONFIG_CFLAGS) \
$(SMARTCARD_CFLAGS) \
@@ -206,6 +207,7 @@ spicec_LDFLAGS = \
$(CELT051_LIBS) \
$(SSL_LIBS) \
$(CEGUI_LIBS) \
+ $(CEGUI06_LIBS) \
$(JPEG_LIBS) \
$(Z_LIBS) \
$(SMARTCARD_LIBS) \
diff --git a/configure.ac b/configure.ac
index 511d94e..e6ca48d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,11 +167,20 @@ AC_DEFINE_UNQUOTED(POSIX_YIELD_FUNC,$posix_yield_func,[The POSIX RT yield functi
SPICE_REQUIRES=""
if test "x$use_gui" = "xyes"; then
- PKG_CHECK_MODULES(CEGUI, CEGUI >= 0.6.0 CEGUI < 0.7.0)
- AC_SUBST(CEGUI_CFLAGS)
- AC_SUBST(CEGUI_LIBS)
- SPICE_REQUIRES+=" CEGUI"
- CEGUI_CFLAGS+="-DUSE_GUI"
+ PKG_CHECK_MODULES(CEGUI06, CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0,
+ [
+ AC_SUBST(CEGUI06_CFLAGS)
+ AC_SUBST(CEGUI06_LIBS)
+ SPICE_REQUIRES+=" CEGUI-0.6"
+ CEGUI06_CFLAGS+="-DUSE_GUI"
+ ],
+ [
+ PKG_CHECK_MODULES(CEGUI, CEGUI >= 0.6.0 CEGUI < 0.7.0)
+ AC_SUBST(CEGUI_CFLAGS)
+ AC_SUBST(CEGUI_LIBS)
+ SPICE_REQUIRES+=" CEGUI"
+ CEGUI_CFLAGS+="-DUSE_GUI"
+ ])
fi
if test "x$have_tunnel" = "xyes"; then
--
1.7.3.4
More information about the Spice-devel
mailing list