This is probably too late for you, and you have probably already figured this out anyway, but I ran across the same problem.
It turns out that the php configure script thought that the arpa/nameser.h header file was not there because when it compiled the test file, it returned a warning that STATUS was redefined (a problem with the configure script if you ask me- it greps for an '*' in the compiler output, so it doesnt distinguish between warnings and errors).
It turns out that apxs was telling configure to define STATUS in the compiles ('apxs -q CFLAGS' returned -DSTATUS among other things). That was when I realized that the apxs script in my search path was for an old version of apache. The new version didnt define STATUS.
I found the new version of apxs and passed that location to configure, and then everything worked.
Hope this helps somebody.
Darren