If you get errors like: configure: WARNING: unrecognized options: --enable-apc when statically compiling PECL modules, such as APC into PHP, then ensure you have the proper version of autoconf installed (version 2.13). On Ubuntu that was fixed with a quick sudo apt-get install autoconf2.13
Then you can get back to removing your configure file and running ./buildconf --force before you re-compile.