Thanks again for all your suggestions guys, that gave me a good basis on which to work with.
I have successfully produced a d/rules, which is able to build the multi-precision versions of the library I was working on. Could you guys have a look at it and suggest any improvement in case I overlooked something. The package is hosted at debian-science: http://anonscm.debian.org/gitweb/?p=debian-science/packages/pfft.git Cheers, Ghis

