I have just compiled Apache 2.2.17 on a fresh install of Ubuntu 10.04.2. It\'s a learning exercise to discover what actually goes on when you compile something rather than just
Try this
sudo ./configure --prefix=/etc/apache --enable-so --enable-shared=max --enable-rewrite -enable-mods-shared="all ssl ldap cache proxy authn_alias mem_cache file_cache authnz_ldap charset_lite dav_lock disk_cache"
Caveat: --enable-mods-shared=all does not actually build all modules.
--enable-shared=max is invalid. I think you wanted to use "most"?
http://httpd.apache.org/docs/2.2/programs/configure.html