1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
Originally committed as revision 7985 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2007-02-14 22:18:13 +00:00
parent afde41b414
commit d8bc5f06e4

14
configure vendored
View File

@ -409,29 +409,25 @@ check_header(){
log check_header "$@"
header=$1
shift
check_cpp "$@" <<EOF
var=`echo $header | sed 's/[^A-Za-z0-9_]/_/g'`
disable $var
check_cpp "$@" <<EOF && enable $var
#include <$header>
int x;
EOF
err=$?
var=`echo $header | sed 's/[^A-Za-z0-9_]/_/g'`
test "$err" = 0 && enable $var || disable $var
return $err
}
check_func(){
log check_func "$@"
func=$1
shift
check_ld "$@" <<EOF
disable $func
check_ld "$@" <<EOF && enable $func
extern int $func();
int main(){
$func();
}
EOF
err=$?
test "$err" = 0 && enable $func || disable $func
return $err
}
check_lib(){