mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/ejabberd.cfg.example: Updated
* src/Makefile.*: Can now be build when the Erlang environment is not Erlang/OTP but the Erlang REPOS CDROM. Still compatible with standard Erlang/OTP install * aclocal.m4: Likewise * src/Makefile.*: Can now be build with Erlang debug_info with 'make debug=true' SVN Revision: 448
This commit is contained in:
parent
aa7431fab0
commit
359f15ffb9
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
|||||||
|
2005-12-06 Mickael Remond <mickael.remond@erlang-fr.org>
|
||||||
|
|
||||||
|
* src/ejabberd.cfg.example: Updated
|
||||||
|
|
||||||
|
* src/Makefile.*: Can now be build when the Erlang environment is
|
||||||
|
not Erlang/OTP but the Erlang REPOS CDROM. Still compatible with
|
||||||
|
standard Erlang/OTP install
|
||||||
|
* aclocal.m4: Likewise
|
||||||
|
* src/Makefile.*: Can now be build with Erlang debug_info with
|
||||||
|
'make debug=true'
|
||||||
|
|
||||||
2005-12-06 Alexey Shchepin <alexey@sevcom.net>
|
2005-12-06 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
* src/msgs/pt-br.msg: Updated (thanks to Victor Hugo dos Santos)
|
* src/msgs/pt-br.msg: Updated (thanks to Victor Hugo dos Santos)
|
||||||
|
2
TODO
2
TODO
@ -1,3 +1,5 @@
|
|||||||
|
Win32 build: Make it possible to compile with +debug_info flag.
|
||||||
|
|
||||||
mod_muc logging
|
mod_muc logging
|
||||||
|
|
||||||
admin interface
|
admin interface
|
||||||
|
@ -12,6 +12,11 @@ ERLANG_CFLAGS= @ERLANG_CFLAGS@
|
|||||||
EXPAT_LIBS = @EXPAT_LIBS@
|
EXPAT_LIBS = @EXPAT_LIBS@
|
||||||
ERLANG_LIBS = @ERLANG_LIBS@
|
ERLANG_LIBS = @ERLANG_LIBS@
|
||||||
|
|
||||||
|
# make debug=true to compile Erlang module with debug informations.
|
||||||
|
ifdef debug
|
||||||
|
ERLC_FLAGS+=+debug_info
|
||||||
|
endif
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
|
|
||||||
SUBDIRS = @mod_irc@ @mod_pubsub@ @mod_muc@ @eldap@ @web@ stringprep @tls@ @odbc@
|
SUBDIRS = @mod_irc@ @mod_pubsub@ @mod_muc@ @eldap@ @web@ stringprep @tls@ @odbc@
|
||||||
@ -32,7 +37,7 @@ ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj
|
|||||||
all: $(ERLSHLIBS) compile-beam all-recursive
|
all: $(ERLSHLIBS) compile-beam all-recursive
|
||||||
|
|
||||||
compile-beam: XmppAddr.hrl
|
compile-beam: XmppAddr.hrl
|
||||||
@ERL@ -s make all report -noinput -s erlang halt
|
@ERLC@ $(ERLC_FLAGS) *.erl
|
||||||
|
|
||||||
|
|
||||||
all-recursive install-recursive uninstall-recursive \
|
all-recursive install-recursive uninstall-recursive \
|
||||||
|
@ -100,7 +100,7 @@ all-recursive :
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
compile-beam :
|
compile-beam :
|
||||||
erl -s make all report -noinput -s erlang halt
|
erlc *.erl
|
||||||
|
|
||||||
CLEAN : clean-recursive clean-local
|
CLEAN : clean-recursive clean-local
|
||||||
|
|
||||||
|
38
src/aclocal.m4
vendored
38
src/aclocal.m4
vendored
@ -51,10 +51,40 @@ AC_DEFUN(AM_WITH_ERLANG,
|
|||||||
|
|
||||||
start() ->
|
start() ->
|
||||||
EIDirS = code:lib_dir("erl_interface") ++ "\n",
|
EIDirS = code:lib_dir("erl_interface") ++ "\n",
|
||||||
|
EILibS = libpath("erl_interface") ++ "\n",
|
||||||
RootDirS = code:root_dir() ++ "\n",
|
RootDirS = code:root_dir() ++ "\n",
|
||||||
file:write_file("conftest.out", list_to_binary(EIDirS ++ RootDirS)),
|
file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ RootDirS)),
|
||||||
halt().
|
halt().
|
||||||
|
|
||||||
|
%% return physical architecture based on OS/Processor
|
||||||
|
archname() ->
|
||||||
|
ArchStr = erlang:system_info(system_architecture),
|
||||||
|
case os:type() of
|
||||||
|
{win32, _} -> "windows";
|
||||||
|
{unix,UnixName} ->
|
||||||
|
Specs = string:tokens(ArchStr,"-"),
|
||||||
|
Cpu = case lists:nth(2,Specs) of
|
||||||
|
"pc" -> "x86";
|
||||||
|
_ -> hd(Specs)
|
||||||
|
end,
|
||||||
|
atom_to_list(UnixName) ++ "-" ++ Cpu;
|
||||||
|
_ -> "generic"
|
||||||
|
end.
|
||||||
|
|
||||||
|
%% Return arch-based library path or a default value if this directory
|
||||||
|
%% does not exist
|
||||||
|
libpath(App) ->
|
||||||
|
PrivDir = code:priv_dir(App),
|
||||||
|
ArchDir = archname(),
|
||||||
|
LibArchDir = filename:join([[PrivDir,"lib",ArchDir]]),
|
||||||
|
case file:list_dir(LibArchDir) of
|
||||||
|
%% Arch lib dir exists: We use it
|
||||||
|
{ok, _List} -> LibArchDir;
|
||||||
|
%% Arch lib dir does not exist: Return the default value
|
||||||
|
%% ({error, enoent}):
|
||||||
|
_Error -> code:lib_dir("erl_interface") ++ "/lib"
|
||||||
|
end.
|
||||||
|
|
||||||
_EOF
|
_EOF
|
||||||
|
|
||||||
if ! $ERLC conftest.erl; then
|
if ! $ERLC conftest.erl; then
|
||||||
@ -69,11 +99,15 @@ _EOF
|
|||||||
AC_MSG_ERROR([erlang program was not properly executed, (conftest.out was not produced)])
|
AC_MSG_ERROR([erlang program was not properly executed, (conftest.out was not produced)])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# First line
|
||||||
ERLANG_EI_DIR=`cat conftest.out | head -n 1`
|
ERLANG_EI_DIR=`cat conftest.out | head -n 1`
|
||||||
|
# Second line
|
||||||
|
ERLANG_EI_LIB=`cat conftest.out | head -n 2 | tail -n 1`
|
||||||
|
# Third line
|
||||||
ERLANG_DIR=`cat conftest.out | tail -n 1`
|
ERLANG_DIR=`cat conftest.out | tail -n 1`
|
||||||
|
|
||||||
ERLANG_CFLAGS="-I$ERLANG_EI_DIR/include -I$ERLANG_DIR/usr/include"
|
ERLANG_CFLAGS="-I$ERLANG_EI_DIR/include -I$ERLANG_DIR/usr/include"
|
||||||
ERLANG_LIBS="-L$ERLANG_EI_DIR/lib -lerl_interface -lei"
|
ERLANG_LIBS="-L$ERLANG_EI_LIB -lerl_interface -lei"
|
||||||
|
|
||||||
AC_SUBST(ERLANG_CFLAGS)
|
AC_SUBST(ERLANG_CFLAGS)
|
||||||
AC_SUBST(ERLANG_LIBS)
|
AC_SUBST(ERLANG_LIBS)
|
||||||
|
1786
src/configure
vendored
1786
src/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -25,6 +25,8 @@
|
|||||||
{access, configure, [{allow, admin}]}.
|
{access, configure, [{allow, admin}]}.
|
||||||
|
|
||||||
% Every username can be registered via in-band registration:
|
% Every username can be registered via in-band registration:
|
||||||
|
% You could replace {allow, all} with {deny, all} to prevent user from using
|
||||||
|
% in-band registration
|
||||||
{access, register, [{allow, all}]}.
|
{access, register, [{allow, all}]}.
|
||||||
|
|
||||||
% After successful registration user will get message with following subject
|
% After successful registration user will get message with following subject
|
||||||
|
Loading…
Reference in New Issue
Block a user