Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
f8d7b072
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f8d7b072
编写于
2月 19, 2007
作者:
M
Måns Rullgård
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feature tests for functions requiring one or more headers
Originally committed as revision 8032 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
fcfcde17
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
43 addition
and
48 deletion
+43
-48
configure
configure
+43
-48
未找到文件。
configure
浏览文件 @
f8d7b072
...
...
@@ -438,6 +438,26 @@ int main(){
EOF
}
check_func2
(){
log check_func2
"
$@
"
headers
=
$1
func
=
$2
shift
2
disable
$func
incs
=
""
for
hdr
in
$headers
;
do
incs
=
"
$incs
#include <
$hdr
>"
done
check_ld
"
$@
"
<<
EOF
&& enable
$func
$incs
int main(){
(void)
$func
;
return 0;
}
EOF
}
check_lib
(){
log check_lib
"
$@
"
header
=
"
$1
"
...
...
@@ -450,6 +470,18 @@ check_lib(){
return
$err
}
check_lib2
(){
log check_lib2
"
$@
"
headers
=
"
$1
"
func
=
"
$2
"
shift
2
temp_extralibs
"
$@
"
check_func2
"
$headers
"
$func
&&
add_extralibs
"
$@
"
err
=
$?
restore_flags
return
$err
}
check_exec
(){
check_ld
"
$@
"
&&
{
enabled cross_compile
||
$TMPE
>>
$logfile
2>&1
;
}
}
...
...
@@ -462,6 +494,14 @@ require(){
check_lib
$header
$func
"
$@
"
||
die
"ERROR:
$name
not found"
}
require2
(){
name
=
"
$1
"
headers
=
"
$2
"
func
=
"
$3
"
shift
3
check_lib2
"
$headers
"
$func
"
$@
"
||
die
"ERROR:
$name
not found"
}
apply
(){
file
=
$1
shift
...
...
@@ -1486,54 +1526,9 @@ enabled xvid && require XviD xvid.h xvid_global -lxvidcore
enabled x264
&&
require x264 x264.h x264_encoder_open
-lx264
enabled dc1394
&&
require libdc1394 libdc1394/dc1394_control.h dc1394_create_handle
-ldc1394_control
-lraw1394
enabled mlib
&&
require mediaLib mlib_types.h mlib_VectorSub_S16_U8_Mod
-lmlib
# Ugh, libfaac uses stdcall calling convention on win32 so we can't use
# the generic test functions
if
enabled libfaac
;
then
save_flags
temp_extralibs
-lfaac
check_ld
<<
EOF
&& add_extralibs -lfaac || die "ERROR: libfaac not found"
#include <stdint.h>
#include <faac.h>
int main(){
char *id, *cpr;
faacEncGetVersion(&id, &cpr);
return 0;
}
EOF
restore_flags
fi
# Ugh, recent faad2 versions have renamed all functions and #define the
# old names in faad.h. Generic tests won't work.
if
enabled libfaad
;
then
save_flags
temp_extralibs
-lfaad
check_ld
<<
EOF
&& add_extralibs -lfaad || die "ERROR: libfaad not found"
#include <faad.h>
int main(){
faacDecOpen();
return 0;
}
EOF
restore_flags
fi
# Ugh, avisynth uses WINAPI calls. Generic tests won't work.
if
enabled avisynth
;
then
save_flags
temp_extralibs
-lvfw32
check_ld
<<
EOF
&& add_extralibs -lvfw32 || die "ERROR: vfw32 not found"
#include <windows.h>
#include <vfw.h>
int main(){
AVIFileInit();
return 0;
}
EOF
restore_flags
fi
enabled libfaac
&&
require2 libfaac
"stdint.h faac.h"
faacEncGetVersion
-lfaac
enabled libfaad
&&
require2 libfaad faad.h faacDecOpen
-lfaad
enabled avisynth
&&
require2 vfw32
"windows.h vfw.h"
AVIFileInit
-lvfw32
# test for lrintf in math.h
check_exec
<<
EOF
&& lrintf=yes || lrintf=no
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录