summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-06-16 19:09:06 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:10:47 +0200
commit5b62426443531d1a58732782a2fadb5765f99d80 (patch)
treede45ca94393ee191084118357a9f076099aafe8b /configure
parent53bb25e2e733a2a6756b3ec7e4ab549cabab40c8 (diff)
downloadmpv-5b62426443531d1a58732782a2fadb5765f99d80.tar.bz2
mpv-5b62426443531d1a58732782a2fadb5765f99d80.tar.xz
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index cc687907b2..2648bbd126 100755
--- a/configure
+++ b/configure
@@ -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"