Remove the current APC source directory. Re-download APC package and uncompress. And start the compilation from the beginning.
Looks like you compiled APC for PHP 4.4 and then used the same source directory for PHP 5. You usually can get away with this with "make clean" by removing all PHP 4.4 generated config files but most often than not, you run into problems if all files are not removed.