Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
5cbcf02c
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,发现更多精彩内容 >>
提交
5cbcf02c
编写于
5月 25, 2002
作者:
F
Fabrice Bellard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more config options
Originally committed as revision 586 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
17048ca8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
46 addition
and
23 deletion
+46
-23
configure
configure
+46
-23
未找到文件。
configure
浏览文件 @
5cbcf02c
#!/bin/sh
#
# ffmpeg configure script (c) 2000, 2001, 2002
Gerard Lantau
# ffmpeg configure script (c) 2000, 2001, 2002
Fabrice Bellard
#
# set temporary file name
if
test
!
-z
"
$TMPDIR
"
;
then
...
...
@@ -40,8 +40,11 @@ case "$cpu" in
;;
esac
gprof
=
"no"
grab
=
"yes"
v4l
=
"yes"
audio_oss
=
"yes"
network
=
"yes"
mp3lame
=
"no"
a52
=
"yes"
a52bin
=
"no"
win32
=
"no"
lshared
=
"no"
...
...
@@ -55,8 +58,8 @@ case $targetos in
BeOS
)
prefix
=
"/boot/home/config"
# helps building libavcodec
grab
=
"no"
CFLAGS
=
"-O2 -DPIC"
v4l
=
"no"
# no need for libm, but the inet stuff
# Check for BONE
if
(
echo
$BEINCLUDES
|grep
'headers/be/bone'
>
/dev/null
)
;
then
...
...
@@ -66,7 +69,8 @@ echo "Not sure building for net_server will succeed... good luck."
extralibs
=
"-lsocket"
fi
;;
BSD/OS
)
grab
=
"no"
v4l
=
"no"
audio_oss
=
"no"
extralibs
=
"-lpoll -lgnugetopt -lm"
make
=
"gmake"
;;
...
...
@@ -108,7 +112,13 @@ for opt do
;;
--enable-gprof
)
gprof
=
"yes"
;;
--disable-grab
)
grab
=
"no"
--disable-v4l
)
v4l
=
"no"
;;
--disable-audio-oss
)
audio_oss
=
"no"
;;
--disable-network
)
network
=
"no"
;;
--disable-a52
)
a52
=
"no"
;;
--enable-a52bin
)
a52bin
=
"yes"
;
extralibs
=
"-ldl
$extralibs
"
;;
...
...
@@ -139,7 +149,9 @@ fi
if
test
"
$win32
"
=
"yes"
;
then
cross_prefix
=
"i386-mingw32msvc-"
grab
=
"no"
v4l
=
"no"
audio_oss
=
"no"
network
=
"no"
fi
# endianness : guess with cpu type. Should also use prefix
...
...
@@ -186,10 +198,9 @@ EOF
echo
"Standard options:"
echo
" --help print this message"
echo
" --prefix=PREFIX install in PREFIX [
$prefix
]"
echo
" --disable-grab disable audio/video grabbing code"
echo
" --disable-simple_idct disable simple IDCT routines [default=no]"
echo
" --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
echo
" --enable-win32 enable win32 cross compile"
echo
" --disable-a52 disable GPL'ed A52 support [default=no]"
echo
" --enable-a52bin open liba52.so.0 at runtime [default=no]"
echo
" --enable-shared build shared libraries [default=no]"
echo
""
...
...
@@ -203,6 +214,10 @@ echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]"
echo
" --extra-libs=ELIBS add ELIBS [
$ELIBS
]"
echo
" --cpu=CPU force cpu to CPU [
$cpu
]"
echo
" --disable-mmx disable mmx usage"
echo
" --disable-audio-oss disable OSS audio support [default=no]"
echo
" --disable-v4l video4linux grabbing [default=no]"
echo
" --disable-network disable network support [default=no]"
echo
" --disable-simple_idct disable simple IDCT routines [default=no]"
echo
" --enable-gprof enable profiling with gprof [
$gprof
]"
echo
""
echo
"NOTE: The object files are build at the place where configure is launched"
...
...
@@ -217,8 +232,8 @@ echo "CPU $cpu"
echo
"Big Endian
$bigendian
"
echo
"MMX enabled
$mmx
"
echo
"gprof enabled
$gprof
"
echo
"grab enabled
$grab
"
echo
"mp3lame enabled
$mp3lame
"
echo
"a52 support
$a52
"
echo
"a52 dlopened
$a52bin
"
echo
"Creating config.mak and config.h"
...
...
@@ -260,8 +275,7 @@ if test "$gprof" = "yes" ; then
fi
if
test
"
$lshared
"
=
"yes"
;
then
echo
"BUILD_SHARED=yes"
>>
config.mak
else
echo
"BUILD_SHARED=no"
>>
config.mak
echo
"PIC=-fPIC"
>>
config.mak
fi
echo
"EXTRALIBS=
$extralibs
"
>>
config.mak
echo
-n
"VERSION="
>>
config.mak
...
...
@@ -275,21 +289,30 @@ echo "CONFIG_ENCODERS=yes" >> config.mak
echo
"#define CONFIG_DECODERS 1"
>>
$TMPH
echo
"CONFIG_DECODERS=yes"
>>
config.mak
#
special AC3 stuff in case you already have it
# without libavcodec.
echo
"#define CONFIG_AC3 1"
>>
$TMPH
echo
"CONFIG_AC3=yes"
>>
config.mak
#
AC3
if
test
"
$a52
"
=
"yes"
;
then
echo
"#define CONFIG_AC3 1"
>>
$TMPH
echo
"CONFIG_AC3=yes"
>>
config.mak
if
test
"
$a52bin
"
=
"yes"
;
then
echo
"#define CONFIG_A52BIN 1"
>>
$TMPH
echo
"CONFIG_A52BIN=yes"
>>
config.mak
else
echo
"CONFIG_A52BIN=no"
>>
config.mak
if
test
"
$a52bin
"
=
"yes"
;
then
echo
"#define CONFIG_A52BIN 1"
>>
$TMPH
echo
"CONFIG_A52BIN=yes"
>>
config.mak
fi
fi
if
test
"
$v4l
"
=
"yes"
;
then
echo
"#define CONFIG_VIDEO4LINUX 1"
>>
$TMPH
echo
"CONFIG_VIDEO4LINUX=yes"
>>
config.mak
fi
if
test
"
$audio_oss
"
=
"yes"
;
then
echo
"#define CONFIG_AUDIO_OSS 1"
>>
$TMPH
echo
"CONFIG_AUDIO_OSS=yes"
>>
config.mak
fi
if
test
"
$
grab
"
=
"yes"
;
then
echo
"#define CONFIG_
GRAB
1"
>>
$TMPH
echo
"CONFIG_
GRAB
=yes"
>>
config.mak
if
test
"
$
network
"
=
"yes"
;
then
echo
"#define CONFIG_
NETWORK
1"
>>
$TMPH
echo
"CONFIG_
NETWORK
=yes"
>>
config.mak
fi
if
test
"
$mp3lame
"
=
"yes"
;
then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录