Mercurial > mplayer.hg
comparison configure @ 32716:72dfebf10aff
cosmetics: Move header_check helper function.
author | diego |
---|---|
date | Thu, 20 Jan 2011 11:21:34 +0000 |
parents | ebb1c06a639d |
children | 465b9f294519 |
comparison
equal
deleted
inserted
replaced
32715:d78209361383 | 32716:72dfebf10aff |
---|---|
71 int main(void) { return 0; } | 71 int main(void) { return 0; } |
72 EOF | 72 EOF |
73 compile_check $TMPC $@ | 73 compile_check $TMPC $@ |
74 } | 74 } |
75 | 75 |
76 header_check() { | |
77 cat > $TMPC << EOF | |
78 #include <$1> | |
79 int main(void) { return 0; } | |
80 EOF | |
81 shift | |
82 compile_check $TMPC $@ | |
83 } | |
84 | |
76 statement_check() { | 85 statement_check() { |
77 cat > $TMPC << EOF | 86 cat > $TMPC << EOF |
78 #include <$1> | 87 #include <$1> |
79 int main(void) { $2; return 0; } | 88 int main(void) { $2; return 0; } |
80 EOF | 89 EOF |
88 #define $1 | 97 #define $1 |
89 #include <$2> | 98 #include <$2> |
90 int main(void) { $3; return 0; } | 99 int main(void) { $3; return 0; } |
91 EOF | 100 EOF |
92 shift 3 | 101 shift 3 |
93 compile_check $TMPC $@ | |
94 } | |
95 | |
96 header_check() { | |
97 cat > $TMPC << EOF | |
98 #include <$1> | |
99 int main(void) { return 0; } | |
100 EOF | |
101 shift | |
102 compile_check $TMPC $@ | 102 compile_check $TMPC $@ |
103 } | 103 } |
104 | 104 |
105 inline_asm_check() { | 105 inline_asm_check() { |
106 cat > $TMPC << EOF | 106 cat > $TMPC << EOF |