1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 18:12:22 +00:00

configure: Add header_check convenience function

Used to check for header availability.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31436 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-06-16 19:09:06 +00:00 committed by Uoti Urpala
parent 53bb25e2e7
commit 5b62426443

9
configure vendored
View File

@ -81,6 +81,15 @@ cxx_check() {
compile_check $TMPCPP $@ -lstdc++
}
header_check() {
cat > $TMPC << EOF
#include <$1>
int main(void) { return 0; }
EOF
shift
compile_check $TMPC $@
}
yasm_check() {
echo >> "$TMPLOG"
cat "$TMPS" >> "$TMPLOG"