Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
e939cedd
Commit
e939cedd
authored
15 years ago
by
Måns Rullgård
Browse files
Options
Downloads
Patches
Plain Diff
configure: simplify $arch handling
Originally committed as revision 21295 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
808fa33c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure
+60
-79
60 additions, 79 deletions
configure
with
60 additions
and
79 deletions
configure
+
60
−
79
View file @
e939cedd
...
@@ -1113,6 +1113,7 @@ ppc4xx_deps="ppc"
...
@@ -1113,6 +1113,7 @@ ppc4xx_deps="ppc"
vis_deps
=
"sparc"
vis_deps
=
"sparc"
x86_64_select
=
"cmov fast_cmov"
amd3dnow_deps
=
"mmx"
amd3dnow_deps
=
"mmx"
amd3dnowext_deps
=
"amd3dnow"
amd3dnowext_deps
=
"amd3dnow"
mmx_deps
=
"x86"
mmx_deps
=
"x86"
...
@@ -1120,7 +1121,9 @@ mmx2_deps="mmx"
...
@@ -1120,7 +1121,9 @@ mmx2_deps="mmx"
sse_deps
=
"mmx"
sse_deps
=
"mmx"
ssse3_deps
=
"sse"
ssse3_deps
=
"sse"
fast_64bit_if_any
=
"alpha ia64 mips64 parisc64 ppc64 sparc64 x86_64"
fast_clz_if_any
=
"alpha armv5te avr32 mips ppc x86"
fast_clz_if_any
=
"alpha armv5te avr32 mips ppc x86"
fast_unaligned_if_any
=
"armv6 ppc x86"
need_memalign
=
"altivec neon sse"
need_memalign
=
"altivec neon sse"
inline_asm_deps
=
"!tms470"
inline_asm_deps
=
"!tms470"
...
@@ -1767,6 +1770,49 @@ if test "$cpu" = host; then
...
@@ -1767,6 +1770,49 @@ if test "$cpu" = host; then
test
"
${
cpu
:-
host
}
"
=
host
&&
die
"--cpu=host not supported with compiler
$cc
"
test
"
${
cpu
:-
host
}
"
=
host
&&
die
"--cpu=host not supported with compiler
$cc
"
fi
fi
# Deal with common $arch aliases
case
"
$arch
"
in
arm
*
)
arch
=
"arm"
;;
mips|mipsel|IP
*
)
arch
=
"mips"
;;
mips64
)
arch
=
"mips"
subarch
=
"mips64"
;;
parisc|hppa
)
arch
=
"parisc"
;;
parisc64|hppa64
)
arch
=
"parisc"
subarch
=
"parisc64"
;;
"Power Macintosh"
|
ppc|powerpc
)
arch
=
"ppc"
;;
ppc64
)
arch
=
"ppc"
subarch
=
"ppc64"
;;
s390|s390x
)
arch
=
"s390"
;;
sh4|sh
)
arch
=
"sh4"
;;
sun4u|sparc64
)
arch
=
"sparc"
subarch
=
"sparc64"
;;
i[3-6]86|i86pc|BePC|x86_64|amd64
)
arch
=
"x86"
;;
esac
is_in
$arch
$ARCH_LIST
||
echo
"WARNING: unknown arch
$arch
"
# Add processor-specific flags
# Add processor-specific flags
case
$cpu
in
case
$cpu
in
601|ppc601|PowerPC601
)
601|ppc601|PowerPC601
)
...
@@ -1820,11 +1866,9 @@ case $cpu in
...
@@ -1820,11 +1866,9 @@ case $cpu in
;;
;;
arm11
*
|
cortex
*
)
arm11
*
|
cortex
*
)
cpuflags
=
"-mcpu=
$cpu
"
cpuflags
=
"-mcpu=
$cpu
"
enable
fast_unaligned
;;
;;
armv[67]
*
)
armv[67]
*
)
cpuflags
=
"-march=
$cpu
"
cpuflags
=
"-march=
$cpu
"
enable
fast_unaligned
;;
;;
armv
*
)
armv
*
)
cpuflags
=
"-march=
$cpu
"
cpuflags
=
"-march=
$cpu
"
...
@@ -1892,90 +1936,18 @@ EOF
...
@@ -1892,90 +1936,18 @@ EOF
check_host_cflags
-std
=
c99
check_host_cflags
-std
=
c99
case
"
$arch
"
in
case
"
$arch
"
in
alpha
)
alpha|ia64|mips|parisc|sparc
)
arch
=
"alpha"
enable
fast_64bit
check_cflags
-mieee
spic
=
$shared
;;
arm|armv[4567]
*
l
)
arch
=
"arm"
;;
avr32
)
;;
bfin
)
arch
=
"bfin"
;;
ia64
)
arch
=
"ia64"
enable
fast_64bit
spic
=
$shared
# HACK: currently fails to build if .bss is > 4MB and shared libs are built
enabled shared
&&
enable_weak hardcoded_tables
;;
m68k
)
arch
=
"m68k"
;;
mips|mipsel|IP
*
)
arch
=
"mips"
spic
=
$shared
;;
mips64
)
arch
=
"mips"
subarch
=
"mips64"
enable
fast_64bit
spic
=
$shared
;;
parisc|hppa
)
arch
=
"parisc"
spic
=
$shared
;;
parisc64|hppa64
)
arch
=
"parisc"
enable
fast_64bit
spic
=
$shared
;;
"Power Macintosh"
|
ppc|powerpc
)
arch
=
"ppc"
enable
fast_unaligned
;;
ppc64
)
arch
=
"ppc"
subarch
=
"ppc64"
enable
fast_64bit
enable
fast_unaligned
;;
s390|s390x
)
arch
=
"s390"
;;
sh4|sh
)
arch
=
"sh4"
;;
sparc
)
arch
=
"sparc"
spic
=
$shared
spic
=
$shared
;;
;;
sun4u|sparc64
)
x86
)
arch
=
"sparc"
subarch
=
"sparc64"
enable
fast_64bit
spic
=
$shared
;;
i386|i486|i586|i686|i86pc|BePC|x86_64|amd64
)
arch
=
"x86"
subarch
=
"x86_32"
subarch
=
"x86_32"
enable
fast_unaligned
check_cc
<<
EOF
&& subarch="x86_64"
check_cc
<<
EOF
&& enable fast_64bit && subarch="x86_64" && spic=
$shared
int test[(int)sizeof(char*) - 7];
int test[(int)sizeof(char*) - 7];
EOF
EOF
if
test
"
$subarch
"
=
"x86_64"
;
then
if
test
"
$subarch
"
=
"x86_64"
;
then
enable
cmov
spic
=
$shared
enable
fast_cmov
fi
fi
;;
;;
*
)
arch
=
"unknown"
;;
esac
esac
enable
$arch
$subarch
enable
$arch
$subarch
...
@@ -2242,7 +2214,11 @@ unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
...
@@ -2242,7 +2214,11 @@ unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
EOF
EOF
od
-A
n
-t
x1
$TMPO
|
grep
-q
'42 *49 *47 *45'
&&
enable
bigendian
od
-A
n
-t
x1
$TMPO
|
grep
-q
'42 *49 *47 *45'
&&
enable
bigendian
if
enabled arm
;
then
if
enabled alpha
;
then
check_cflags
-mieee
elif
enabled arm
;
then
check_cflags
-marm
check_cflags
-marm
...
@@ -2263,6 +2239,11 @@ EOF
...
@@ -2263,6 +2239,11 @@ EOF
enabled_all armv6t2 shared
!
pic
&&
enable_pic
enabled_all armv6t2 shared
!
pic
&&
enable_pic
elif
enabled ia64
;
then
# HACK: currently fails to build if .bss is > 4MB and shared libs are built
enabled shared
&&
enable_weak hardcoded_tables
elif
enabled mips
;
then
elif
enabled mips
;
then
check_asm loongson
'"dmult.g $1, $2, $3"'
check_asm loongson
'"dmult.g $1, $2, $3"'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment