Here is the script I use to compile mono from svn, since I've been doing it so often lately! I thought someone else might find it useful.
#!/bin/bash
export MONO_PREFIX=/usr
export PATH=$MONO_PREFIX/bin:$PATH
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MONO_PREFIX/lib
export MONO_GAC_PREFIX=$MONO_PREFIX:/usr
for svnupdate in mcs libgdiplus mono mod_mono xsp
do
echo "Checking out" $svnupdate
svn checkout svn://anonsvn.mono-project.com/source/trunk/$svnupdate
svn info ./$svnupdate > $svnupdate.info
done
cd libgdiplus
make clean
make distclean
./autogen.sh --prefix=/usr --enable-png # --with-cairo=system
make
make install
cd ..
cd mono
make clean
make distclean
./autogen.sh --prefix=/usr
mkdir ../mcs/class/lib
make get-monolite-latest
make
make install
cd ..
cd mod_mono
make clean
make distclean
./autogen.sh --prefix=/usr --with-apxs=/usr/sbin/apxs --with-apr-config=/usr/bin/apr-config --disable-debug
make
make install
cd ..
cd xsp
make clean
make distclean
./autogen.sh --prefix=/usr
make
make install
cd ..