You've somehow got some remnants of g-wrap in /usr/local, and the configure
script is finding those broken remnants instead of the RPM. I have no idea
what other remnants of whatever you have in /usr/local. (FTR, this is why I
always suggest that you install into /opt/<package> instead of /usr/local).
FC3 provides all the dependencies you should need to build gnucash --
even g2. There's nothing that you should need to install/build that you
can't get via
yum or apt-get.