diff --git a/configure b/configure index f34b622e03..3925e8fc84 100755 --- a/configure +++ b/configure @@ -688,6 +688,13 @@ check_ld(){ check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $libs $extralibs } +print_include(){ + hdr=$1 + test "${hdr%.h}" = "${hdr}" && + echo "#include $hdr" || + echo "#include <$hdr>" +} + check_cppflags(){ log check_cppflags "$@" set -- $($filter_cppflags "$@") @@ -765,7 +772,7 @@ check_func_headers(){ shift 2 { for hdr in $headers; do - echo "#include <$hdr>" + print_include $hdr done for func in $funcs; do echo "long check_$func(void) { return (long) $func; }" diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index d0d854b994..b31d2e256c 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -47,7 +47,6 @@ #undef time #include -#include #include FT_FREETYPE_H #include FT_GLYPH_H