samtools / htslib

C library for high-throughput sequencing data formats
Other
785 stars 447 forks source link

Pull in latest htscodecs and improve portability #1628

Closed daviesrob closed 1 year ago

daviesrob commented 1 year ago

Pulls in the latest version of htscodecs, including a change to add #include "config.h" to the htscodecs test sources, allowing a hack (which didn't work on FreeBSD) that set _POSIX_C_SOURCE when building them to be removed. configure is also changed so that it adds #define _XOPEN_SOURCE 600 by default to config.h instead of relying on the PTHREAD_MUTEX_RECURSIVE test to do it, which allows that test and various other places that set _XOPEN_SOURCE to be removed. I've set the author of the commit that does this to @jmarshall as it's mostly his work - hopefully that's OK.

The other commits fix some minor annoyances when running make maintainer-check on a repository where configure has been run; and makes all the perl scripts use #!/usr/bin/env perl (some already did) so that they work on platforms like FreeBSD which put perl in /usr/local/bin.

Fixes #1606 Closes #1608