I will take the code out of buildconf until it can be fixed. I was not aware of these portability issues, having used the same techniques used in the spec file (which in hindsight is obviously redhat specific).
Keep in mind that RPM isn't necessarily RedHat specific. Other platforms have RPMs available - IBM uses it for AIX, I think.
Where does ap_release.h get it's version #define's from? These exist before ./configure is generated - surely the same method (whatever it is) can be used here?
The release manager elf changes it on bumping. -- justin