disable automagic to find exchange.

This allows build systems to forcefully disable build using exchange
library, even if it was found in the system during compile.



SVN revision: 45917
This commit is contained in:
Gustavo Sverzut Barbieri 2010-02-05 23:22:34 +00:00
parent 204cf10765
commit f6c8bb2a30
1 changed files with 12 additions and 1 deletions

View File

@ -391,10 +391,21 @@ define([CHECK_MODULE_TEMPERATURE],
[], [TEMPERATURE=false]) [], [TEMPERATURE=false])
]) ])
have_exchange=no
AC_ARG_ENABLE(exchange,
AC_HELP_STRING([--disable-exchange], [disable Exchange support @<:@default=detect@:>@]),
[want_exchange=$enableval],
[want_exchange=auto]
)
AM_CONDITIONAL(HAVE_EXCHANGE, false) AM_CONDITIONAL(HAVE_EXCHANGE, false)
define([CHECK_MODULE_CONF_THEME], define([CHECK_MODULE_CONF_THEME],
[ [
AC_E_CHECK_PKG(EXCHANGE, [exchange], [], [:]) if test "x$want_exchange" != "xno" ; then
AC_E_CHECK_PKG(EXCHANGE, [exchange], [], [:])
else
AC_MSG_NOTICE([requested to not use exchange library])
fi
]) ])
AM_CONDITIONAL(HAVE_ALSA, false) AM_CONDITIONAL(HAVE_ALSA, false)