First I followed the ModularDevelopersGuide, using their script to get the Xorg sources via git. I had to install the git-core package first. This pulled down the whole Xorg src tree.
Then I followed this Xgl compilation guide. Install the cvs package, and use it to get cairo glitz and Mesa. You already have compriz and Xgl inside the Xorg src.
Build cairo glitz as on the page I linked. You’ll need to install the autoconf and automake and libtool packages. Use
sudo update-alternatives --config automake to make sure you’re using autoconf1.9.
* autoconf –version must report 2.59 or later
* automake –version must report 1.7.x
* libtool –version must report 1.5
* pkg-config –version must report 0.9.0 or later
Next, we buld mesa 6.5. In order to get the make command to complete, I had to install the
sudo apt-get install x11proto-*
packages from beerorkid’s repo. In the process, I think I managed to update ~20 other packages from his repos, but now Mesa builds. Of course, one of his packages IS the Mesa 6.5 build…
Next we want to build compriz, still following the guide. I have to install libglib2.0-dev in order for compriz to build.
Then something else didn’t work, and I got fed up, and I just installed the compiz-gnome package and then Xgl wouldn’t build so I just installed the xserver-xgl package.
And then I found a nice summary of how to set this up for my ATI card: http://www.compiz.net/viewtopic.php?id=389