My compilation line, this is for debug, it has performance issues. For performance, use the one GonoszTopi gave before:
$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --disable-unicode --prefix=/usr/local/wxWidgets-cvs && make && sudo make install
Notice that with the prefix I gave, aMule will not normally find the wx libraries. That has the advantage that I can have a different version of wx installed on my system, an I can easily erase it with
$ rm -rf /usr/local/wxWidgets-cvs
So when compiling aMule, I have to:
$ ./autogen.sh && ./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-webservergui --enable-amulecmd --enable-amulecmdgui --enable-ccache --enable-amule-daemon --with-wx-config=/usr/local/wxWidgets-cvs/bin/wx-config && make
Notice also that I do not make install aMule, that is because I have to test several versions at the same time. So, to run a particular version of aMule, you do:
$ LD_LIBRARY_PATH=/usr/local/wxWidgets-cvs/lib/ ~/youramuledir/src/amule &
This way, you can have several versions of wxWidgets and several versions of aMule, all in different directories, so you can test wich configuration suits you best. For example, I have:
$ ls -d /usr/local/wx*
/usr/local/wxAmulePatches /usr/local/wxWidgets-2.5.2 /usr/local/wxWidgets-cvsu /usr/local/wxWindows-2.5.1
/usr/local/wxBase-2.4.2 /usr/local/wxWidgets-cvs /usr/local/wxWindows-2.4.2 /usr/local/wxWindows-2.5.1u
And a corresponding version of aMule for each wx configuration. If you use the default prefix, that is, /usr/local, you will not be able to have more than one wx in your system. Also, notice that you can install all wx with a prefix like ~/wx/wxWidgets-2.5.3, so you dont even have to be root to have a new version of wx working for you.