mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
2008-04-24 Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Add the --with-json configure switch to allow building Clutter with the external dependency on the system JSON-GLib; the default is to use the internal copy unless explicitly asked to check.
This commit is contained in:
parent
e261affeea
commit
76735c0374
@ -1,3 +1,10 @@
|
||||
2008-04-24 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* configure.ac: Add the --with-json configure switch to
|
||||
allow building Clutter with the external dependency on
|
||||
the system JSON-GLib; the default is to use the internal
|
||||
copy unless explicitly asked to check.
|
||||
|
||||
2008-04-24 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* Makefile.am: Add HACKING.backends to the EXTRA_DIST.
|
||||
|
23
configure.ac
23
configure.ac
@ -345,8 +345,26 @@ AC_SUBST([clutterbackendlib])
|
||||
|
||||
dnl ========================================================================
|
||||
|
||||
# if we have json-glib installed, use the system library instead of
|
||||
# the internal copy
|
||||
# allow building clutter with an external dependency on json-glib
|
||||
# using the --with-json=check argument, but keep the default to
|
||||
# the internal version
|
||||
AC_ARG_WITH([json],
|
||||
AC_HELP_STRING([--with-json=@<:@internal/check@:>@],
|
||||
[Select the JSON-GLib copy to use @<:@default=internal@:>@]),
|
||||
[],
|
||||
[with_json=internal])
|
||||
|
||||
case $with_json in
|
||||
internal|check) ;;
|
||||
*) AC_MSG_ERROR([Invalid value for the JSON library: use internal or check]) ;;
|
||||
esac
|
||||
|
||||
if test "x$with_json" = "xinternal"; then
|
||||
JSON_PREFIX=json
|
||||
have_json=no
|
||||
else
|
||||
# if the user asked for it and if we have json-glib installed,
|
||||
# prefer the system library instead of the internal copy
|
||||
AC_MSG_CHECKING([for installed JSON-GLib])
|
||||
PKG_CHECK_EXISTS(json-glib-1.0, [have_json=yes], [have_json=no])
|
||||
if test "x$have_json" = "xyes"; then
|
||||
@ -358,6 +376,7 @@ else
|
||||
JSON_PREFIX=json
|
||||
AC_MSG_RESULT([not found, using internal copy])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST(JSON_PREFIX)
|
||||
AM_CONDITIONAL(LOCAL_JSON_GLIB, test "x$have_json" = "xno")
|
||||
|
Loading…
Reference in New Issue
Block a user