From bd5aaa54686db927f167cb381468d16c05bc1ecc Mon Sep 17 00:00:00 2001 From: diego Date: Thu, 1 Jul 2010 10:14:30 +0000 Subject: 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 --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure') diff --git a/configure b/configure index bccd0cf4b8..7114df3245 100755 --- a/configure +++ b/configure @@ -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> -- cgit v1.2.3