Cherokee Web Server
===================

1.- How to compile it
---------------------
./configure --prefix=/usr --sysconfdir=/etc

2.- How to create dinamyc modules
---------------------------------
It's the default way.

3.- How to compile the module xyz statically in the libcherokee
---------------------------------------------------------------
./configure --prefix=/usr --sysconfdir=/etc --enable-static-module=xyz

4.- How to build statically
---------------------------
./configure --prefix=/usr --sysconfdir=/etc --enable-static-module=all

5.- How to optimize in a Pentium4
---------------------------------
make CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"

6.- How to create a self signed certificate for TLS
---------------------------------------------------
openssl req -days 1000 -new -x509 -nodes -out /etc/cherokee/ssl/cherokee.pem -keyout /etc/cherokee/ssl/cherokee.pem

7.- How to compile the embedded version
--------------------------------------
./configure --prefix=/usr --sysconfdir=/etc --disable-pthread --disable-tls --disable-largefile --disable-pcre
cd cherokee && make -f Makefile.embedded 


For developers
==============
Let see how to compile a Cherokee module by hand.
For example, to compile module "foo":

NAME=foo && if /bin/sh ../libtool --mode=compile gcc -O0 -g -Werror -DHAVE_CONFIG_H -I. -I. -I.. -DCHEROKEE_PLUGINDIR="\""/usr/lib/cherokee"\"" -DCHEROKEE_DATADIR=\"""/usr/share/cherokee""\" -DCHEROKEE_CONFDIR=\""/etc/cherokee"\" -I/usr/include -I/usr/include -pthread -D_XOPEN_SOURCE=500 -MT handler_$NAME.lo -MD -MP -MF ".deps/handler_$NAME.Tpo" -c -o handler_$NAME.lo handler_$NAME.c; then mv -f ".deps/handler_$NAME.Tpo" ".deps/handler_$NAME.Plo"; else rm -f ".deps/handler_$NAME.Tpo"; exit 1; fi && /bin/sh ../libtool --mode=link gcc -O0 -g -Werror -o libplugin_$NAME.la -rpath "/usr/lib/cherokee" -module -avoid-version -no-undefined handler_$NAME.lo -ldl && install -c .libs/libplugin_$NAME.so /usr/lib/cherokee/

Solaris
=======
PATH=/opt/SUNWspro/bin/:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/openwin/bin:/usr/dt/bin


--
Alvaro Lopez Ortega
alvaro@gnu.org
