aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2009-07-16 16:02:50 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-07-16 16:02:50 +0000
commit2b2c2a8179144db8858d91c55c2eb807e7d443ba (patch)
tree154619b5b94a5e36721620b65b314d66d84c926f /configure
parent973859f5230e77beea7bb59dc081870689d6d191 (diff)
downloadffmpeg-2b2c2a8179144db8858d91c55c2eb807e7d443ba.tar.gz
Fix check_func_headers. The reference to the function under test was being
optimized out by gcc when the headers lied about the function existing, rendering the test useless in that situation. This new test throws a warning in mingw-w64, but that should not be a problem. Patch by Martin Storsjö <martin at martin dot st> Originally committed as revision 19440 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 0a8be7f7bb..9471205584 100755
--- a/configure
+++ b/configure
@@ -646,8 +646,7 @@ check_func_headers(){
check_ld "$@" <<EOF && enable $func && enable_safe $headers
$incs
int main(int argc, char **argv){
- (void) $func;
- return 0;
+ return (long) $func;
}
EOF
}