mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
simplify
Originally committed as revision 7985 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
afde41b414
commit
d8bc5f06e4
14
configure
vendored
14
configure
vendored
@ -409,29 +409,25 @@ check_header(){
|
|||||||
log check_header "$@"
|
log check_header "$@"
|
||||||
header=$1
|
header=$1
|
||||||
shift
|
shift
|
||||||
check_cpp "$@" <<EOF
|
var=`echo $header | sed 's/[^A-Za-z0-9_]/_/g'`
|
||||||
|
disable $var
|
||||||
|
check_cpp "$@" <<EOF && enable $var
|
||||||
#include <$header>
|
#include <$header>
|
||||||
int x;
|
int x;
|
||||||
EOF
|
EOF
|
||||||
err=$?
|
|
||||||
var=`echo $header | sed 's/[^A-Za-z0-9_]/_/g'`
|
|
||||||
test "$err" = 0 && enable $var || disable $var
|
|
||||||
return $err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_func(){
|
check_func(){
|
||||||
log check_func "$@"
|
log check_func "$@"
|
||||||
func=$1
|
func=$1
|
||||||
shift
|
shift
|
||||||
check_ld "$@" <<EOF
|
disable $func
|
||||||
|
check_ld "$@" <<EOF && enable $func
|
||||||
extern int $func();
|
extern int $func();
|
||||||
int main(){
|
int main(){
|
||||||
$func();
|
$func();
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
err=$?
|
|
||||||
test "$err" = 0 && enable $func || disable $func
|
|
||||||
return $err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_lib(){
|
check_lib(){
|
||||||
|
Loading…
Reference in New Issue
Block a user