Skip to content

Commit

Permalink
configure: Check for VapourSynth headers separately
Browse files Browse the repository at this point in the history
  • Loading branch information
mawen1250 committed Jun 26, 2015
1 parent 4fa0c9e commit 9b90d65
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,17 @@ else
log_echo "warning: pkg-config or pc files not found, lib detection may be inaccurate."
fi

log_echo "checking for vapoursynth headers..."
if $PKGCONFIGBIN --exists vapoursynth 2> /dev/null; then
VSCFLAGS="$($PKGCONFIGBIN --cflags vapoursynth)"
else
log_echo "warning: pkg-config or pc files not found, header detection may be inaccurate."
fi
if ! cc_check "$CXXFLAGS $VSCFLAGS" "$LDFLAGS $LIBS $XLIBS" "vapoursynth/VapourSynth.h" "getVapourSynthAPI;" ; then
log_echo "error: vapoursynth checking failed."
error_exit "vapoursynth/VapourSynth.h might not be installed."
fi

LDFLAGS="$SOFLAGS $LDFLAGS"
LIBS="$LIBS $XLIBS"

Expand Down

0 comments on commit 9b90d65

Please sign in to comment.