make autotools happy
add a test target
convert from SOFA to ERFA

just function names and macros. docs and comments are unchaged.