Well, I don't want to switch to gcc 3.4 because (as far as I know) there were some major changes from 3.3 to 3.4. And I don't want to break my system if something goes wrong. Maybe I will switch someday when I have more reasons or when I'm doing a reinstall - but not just for Code::Blocks.
By the way, does Code::Blocks need the gcc? Or could it be compiled with other compilers, for example like icc?
Edit:
Seems as if I got it working.
I used configure as normal but then changed the CXXFLAGS and CPPFLAGS wich the Makefile uses. I added the preprocessor macros CB_PRECOMP and WX_PRECOMP and changed the include-paths for wx to use my wxGTK-2.6 installation and added the include-path for angelscript.h. It is still compiling, I'm hoping that it will finish successfully.
Here's the commands I have used:
./configure --enable-contrib --prefix=/opt/codeblocks-cvs
make CXXFLAGS="-g -O2 -O2 -ffast-math -DCB_PRECOMP -DWX_PRECOMP" CPPFLAGS="-I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -I../sdk/as/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
This will be followed by a 'make install' if nothing goes wrong.