mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Enable oauth unconditionally
This commit is contained in:
parent
5eab6e315e
commit
e2cc45933f
15
configure.ac
15
configure.ac
@ -108,10 +108,10 @@ AC_ARG_ENABLE(mssql,
|
|||||||
esac],[db_type=generic])
|
esac],[db_type=generic])
|
||||||
|
|
||||||
AC_ARG_ENABLE(all,
|
AC_ARG_ENABLE(all,
|
||||||
[AC_HELP_STRING([--enable-all], [same as --enable-nif --enable-odbc --enable-mysql --enable-pgsql --enable-sqlite --enable-pam --enable-zlib --enable-riak --enable-redis --enable-json --enable-elixir --enable-iconv --enable-debug --enable-lager --enable-tools --enable-oauth (useful for Dialyzer checks, default: no)])],
|
[AC_HELP_STRING([--enable-all], [same as --enable-nif --enable-odbc --enable-mysql --enable-pgsql --enable-sqlite --enable-pam --enable-zlib --enable-riak --enable-redis --enable-json --enable-elixir --enable-iconv --enable-debug --enable-lager --enable-tools (useful for Dialyzer checks, default: no)])],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
yes) nif=true odbc=true mysql=true pgsql=true sqlite=true pam=true zlib=true riak=true redis=true json=true elixir=true iconv=true debug=true lager=true tools=true oauth=true ;;
|
yes) nif=true odbc=true mysql=true pgsql=true sqlite=true pam=true zlib=true riak=true redis=true json=true elixir=true iconv=true debug=true lager=true tools=true ;;
|
||||||
no) nif=false odbc=false mysql=false pgsql=false sqlite=false pam=false zlib=false riak=false json=false redis=false elixir=false iconv=false debug=false lager=false tools=false oauth=false ;;
|
no) nif=false odbc=false mysql=false pgsql=false sqlite=false pam=false zlib=false riak=false json=false redis=false elixir=false iconv=false debug=false lager=false tools=false ;;
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-all) ;;
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-all) ;;
|
||||||
esac],[])
|
esac],[])
|
||||||
|
|
||||||
@ -235,14 +235,6 @@ AC_ARG_ENABLE(lager,
|
|||||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lager) ;;
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lager) ;;
|
||||||
esac],[if test "x$lager" = "x"; then lager=true; fi])
|
esac],[if test "x$lager" = "x"; then lager=true; fi])
|
||||||
|
|
||||||
AC_ARG_ENABLE(oauth,
|
|
||||||
[AC_HELP_STRING([--enable-oauth], [enable oauth support (default: yes)])],
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) oauth=true ;;
|
|
||||||
no) oauth=false ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-oauth) ;;
|
|
||||||
esac],[if test "x$oauth" = "x"; then oauth=false; fi])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
vars.config
|
vars.config
|
||||||
src/ejabberd.app.src])
|
src/ejabberd.app.src])
|
||||||
@ -290,6 +282,5 @@ AC_SUBST(iconv)
|
|||||||
AC_SUBST(debug)
|
AC_SUBST(debug)
|
||||||
AC_SUBST(lager)
|
AC_SUBST(lager)
|
||||||
AC_SUBST(tools)
|
AC_SUBST(tools)
|
||||||
AC_SUBST(oauth)
|
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
@ -61,7 +61,9 @@ Deps = [{p1_cache_tab, ".*", {git, "https://github.com/processone/cache_tab"}},
|
|||||||
{esip, ".*", {git, "https://github.com/processone/p1_sip"}},
|
{esip, ".*", {git, "https://github.com/processone/p1_sip"}},
|
||||||
{p1_stun, ".*", {git, "https://github.com/processone/stun"}},
|
{p1_stun, ".*", {git, "https://github.com/processone/stun"}},
|
||||||
{p1_yaml, ".*", {git, "https://github.com/processone/p1_yaml"}},
|
{p1_yaml, ".*", {git, "https://github.com/processone/p1_yaml"}},
|
||||||
{p1_utils, ".*", {git, "https://github.com/processone/p1_utils"}}],
|
{p1_utils, ".*", {git, "https://github.com/processone/p1_utils"}},
|
||||||
|
{oauth2, ".*", {git, "https://github.com/IvanMartinez/oauth2.git"}},
|
||||||
|
{xmlrpc, ".*", {git, "https://github.com/rds13/xmlrpc.git"}}],
|
||||||
|
|
||||||
ConfigureCmd = fun(Pkg, Flags) ->
|
ConfigureCmd = fun(Pkg, Flags) ->
|
||||||
{'get-deps',
|
{'get-deps',
|
||||||
@ -112,11 +114,6 @@ CfgDeps = lists:flatmap(
|
|||||||
[{meck, "0.*", {git, "https://github.com/eproxus/meck"}}];
|
[{meck, "0.*", {git, "https://github.com/eproxus/meck"}}];
|
||||||
({redis, true}) ->
|
({redis, true}) ->
|
||||||
[{eredis, ".*", {git, "https://github.com/wooga/eredis"}}];
|
[{eredis, ".*", {git, "https://github.com/wooga/eredis"}}];
|
||||||
({oauth, true}) ->
|
|
||||||
%% ejabberd oauth support does not depends directly on xmlrpc.
|
|
||||||
%% However, we include xmlrpc as it is convenient to document and test oauth
|
|
||||||
[{oauth2, ".*", {git, "https://github.com/IvanMartinez/oauth2.git"}},
|
|
||||||
{xmlrpc, ".*", {git, "https://github.com/rds13/xmlrpc.git"}}];
|
|
||||||
(_) ->
|
(_) ->
|
||||||
[]
|
[]
|
||||||
end, Cfg),
|
end, Cfg),
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
{elixir, @elixir@}.
|
{elixir, @elixir@}.
|
||||||
{lager, @lager@}.
|
{lager, @lager@}.
|
||||||
{iconv, @iconv@}.
|
{iconv, @iconv@}.
|
||||||
{oauth, @oauth@}.
|
|
||||||
|
|
||||||
%% Version
|
%% Version
|
||||||
{vsn, "@PACKAGE_VERSION@"}.
|
{vsn, "@PACKAGE_VERSION@"}.
|
||||||
|
Loading…
Reference in New Issue
Block a user