Hi Scott,
I ran into a similar problem:
> + doing sanity check on compiler and options
> ** A test compilation with your Makefile configuration
> ** failed. This is most likely because your C compiler
> ** is not ANSI. Apache requires an ANSI C Compiler, such
> ** as gcc. The above error message from your compiler
> ** will also provide a clue.
> Aborting!
And, as strange as this sounds, it was solved by making sure the
following link existed in /usr/lib:
libgdbm.so -> libgdbm.so.2.0.0
Or, you may try reinstalling gdbm.
Hope this helps,
Rob Locke