1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

configure: Add function to check for particular function in header

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31593 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-07-01 10:14:30 +00:00 committed by Uoti Urpala
parent 9ac700bc1a
commit bd5aaa5468

9
configure vendored
View File

@ -81,6 +81,15 @@ cxx_check() {
compile_check $TMPCPP $@ -lstdc++
}
function_check() {
cat > $TMPC << EOF
#include <$1>
int main(void) { $2; }
EOF
shift
compile_check $TMPC $@
}
header_check() {
cat > $TMPC << EOF
#include <$1>