Pull in latest htscodecs and improve portability #1628
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 toconfig.h
instead of relying on thePTHREAD_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 whereconfigure
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