mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
configure: Support preprocessor macros as header names
New versions of FreeType have moved the location of their API header(s) and hide the location behind a macro. Since the location changes between versions and no other way to know the location exists, this workaround becomes necessary. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
82b9799bb2
commit
52ccc4a0ec
11
configure
vendored
11
configure
vendored
@ -763,6 +763,13 @@ check_ld(){
|
|||||||
check_cmd $ld $LDFLAGS $flags $(ld_o $TMPE) $TMPO $libs $extralibs
|
check_cmd $ld $LDFLAGS $flags $(ld_o $TMPE) $TMPO $libs $extralibs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_include(){
|
||||||
|
hdr=$1
|
||||||
|
test "${hdr%.h}" = "${hdr}" &&
|
||||||
|
echo "#include $hdr" ||
|
||||||
|
echo "#include <$hdr>"
|
||||||
|
}
|
||||||
|
|
||||||
check_code(){
|
check_code(){
|
||||||
log check_code "$@"
|
log check_code "$@"
|
||||||
check=$1
|
check=$1
|
||||||
@ -771,7 +778,7 @@ check_code(){
|
|||||||
shift 3
|
shift 3
|
||||||
{
|
{
|
||||||
for hdr in $headers; do
|
for hdr in $headers; do
|
||||||
echo "#include <$hdr>"
|
print_include $hdr
|
||||||
done
|
done
|
||||||
echo "int main(void) { $code; return 0; }"
|
echo "int main(void) { $code; return 0; }"
|
||||||
} | check_$check "$@"
|
} | check_$check "$@"
|
||||||
@ -866,7 +873,7 @@ check_func_headers(){
|
|||||||
shift 2
|
shift 2
|
||||||
{
|
{
|
||||||
for hdr in $headers; do
|
for hdr in $headers; do
|
||||||
echo "#include <$hdr>"
|
print_include $hdr
|
||||||
done
|
done
|
||||||
for func in $funcs; do
|
for func in $funcs; do
|
||||||
echo "long check_$func(void) { return (long) $func; }"
|
echo "long check_$func(void) { return (long) $func; }"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user