mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
move arch processing after command line loop
Originally committed as revision 8008 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4ec9ec8122
commit
270739bb90
110
configure
vendored
110
configure
vendored
@ -677,61 +677,6 @@ dcbzl="no"
|
|||||||
mmi="default"
|
mmi="default"
|
||||||
bigendian="no"
|
bigendian="no"
|
||||||
|
|
||||||
case "$arch" in
|
|
||||||
i386|i486|i586|i686|i86pc|BePC)
|
|
||||||
arch="x86_32"
|
|
||||||
;;
|
|
||||||
x86_64|amd64)
|
|
||||||
arch="x86_32"
|
|
||||||
canon_arch="`$cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
|
|
||||||
if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
|
|
||||||
if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then
|
|
||||||
arch="x86_64"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
# armv4l is a subset of armv[567]*l
|
|
||||||
arm|armv[4567]*l)
|
|
||||||
arch="armv4l"
|
|
||||||
;;
|
|
||||||
alpha)
|
|
||||||
arch="alpha"
|
|
||||||
;;
|
|
||||||
"Power Macintosh"|ppc|ppc64|powerpc)
|
|
||||||
arch="powerpc"
|
|
||||||
;;
|
|
||||||
mips|mipsel|IP*)
|
|
||||||
arch="mips"
|
|
||||||
;;
|
|
||||||
sun4u|sparc64)
|
|
||||||
arch="sparc64"
|
|
||||||
;;
|
|
||||||
sparc)
|
|
||||||
arch="sparc"
|
|
||||||
;;
|
|
||||||
sh4)
|
|
||||||
arch="sh4"
|
|
||||||
;;
|
|
||||||
parisc|parisc64)
|
|
||||||
arch="parisc"
|
|
||||||
;;
|
|
||||||
s390|s390x)
|
|
||||||
arch="s390"
|
|
||||||
;;
|
|
||||||
m68k)
|
|
||||||
arch="m68k"
|
|
||||||
;;
|
|
||||||
ia64)
|
|
||||||
arch="ia64"
|
|
||||||
;;
|
|
||||||
bfin)
|
|
||||||
arch="bfin"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
arch="unknown"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# OS
|
# OS
|
||||||
targetos=`uname -s`
|
targetos=`uname -s`
|
||||||
beos_netserver="no"
|
beos_netserver="no"
|
||||||
@ -936,6 +881,61 @@ for opt do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
case "$arch" in
|
||||||
|
i386|i486|i586|i686|i86pc|BePC)
|
||||||
|
arch="x86_32"
|
||||||
|
;;
|
||||||
|
x86_64|amd64)
|
||||||
|
arch="x86_32"
|
||||||
|
canon_arch="`$cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
|
||||||
|
if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
|
||||||
|
if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then
|
||||||
|
arch="x86_64"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
# armv4l is a subset of armv[567]*l
|
||||||
|
arm|armv[4567]*l)
|
||||||
|
arch="armv4l"
|
||||||
|
;;
|
||||||
|
alpha)
|
||||||
|
arch="alpha"
|
||||||
|
;;
|
||||||
|
"Power Macintosh"|ppc|ppc64|powerpc)
|
||||||
|
arch="powerpc"
|
||||||
|
;;
|
||||||
|
mips|mipsel|IP*)
|
||||||
|
arch="mips"
|
||||||
|
;;
|
||||||
|
sun4u|sparc64)
|
||||||
|
arch="sparc64"
|
||||||
|
;;
|
||||||
|
sparc)
|
||||||
|
arch="sparc"
|
||||||
|
;;
|
||||||
|
sh4)
|
||||||
|
arch="sh4"
|
||||||
|
;;
|
||||||
|
parisc|parisc64)
|
||||||
|
arch="parisc"
|
||||||
|
;;
|
||||||
|
s390|s390x)
|
||||||
|
arch="s390"
|
||||||
|
;;
|
||||||
|
m68k)
|
||||||
|
arch="m68k"
|
||||||
|
;;
|
||||||
|
ia64)
|
||||||
|
arch="ia64"
|
||||||
|
;;
|
||||||
|
bfin)
|
||||||
|
arch="bfin"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
arch="unknown"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# OS specific
|
# OS specific
|
||||||
osextralibs="-lm"
|
osextralibs="-lm"
|
||||||
case $targetos in
|
case $targetos in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user