imported from https://git.ligo.org/lscsoft/lalsuite-archive commit:8cbd1b7187ce3ed9a825d6ed11cc432f3cfde9a5