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

just function names and macros. comments and docs have been left alone.