Mercurial > mplayer.hg
changeset 31527:0ac68f6f3974
Add convenience function to check for the availability of system functions.
author | diego |
---|---|
date | Thu, 01 Jul 2010 10:14:30 +0000 |
parents | ec8cb01e57d1 |
children | 66e766e31d92 |
files | configure |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Jul 01 09:00:54 2010 +0000 +++ b/configure Thu Jul 01 10:14:30 2010 +0000 @@ -81,6 +81,15 @@ 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>