diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-07-01 10:14:30 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:13:00 +0200 |
commit | bd5aaa54686db927f167cb381468d16c05bc1ecc (patch) | |
tree | 656999e4c34db917ea81336318dc24d0da36198a /configure | |
parent | 9ac700bc1a5d82091d87143cefeff1392cf6635b (diff) | |
download | mpv-bd5aaa54686db927f167cb381468d16c05bc1ecc.tar.bz2 mpv-bd5aaa54686db927f167cb381468d16c05bc1ecc.tar.xz |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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> |