Compile MESA with ASM optimizations

I had compiled RadeonHD and MESA DRI for my radeon 4850 and is working ok. I used the guide in X.Org Wiki - radeonhd and X.Org Wiki - radeonhd:experimental_3D.
What I would like to do now is to compile Mesa dri but with asm optimization for 3dnow sse etc.
I have a Phenom II 4x and I’m using Opensuse 11.2 x64.
I don’t know neither how to do it nor witch extension MESA support.
If anybody knows please help me.

Thank You in Advance