diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-10-26 20:40:19 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-10-26 20:40:19 +0000 |
commit | 6a970e783db95e6a8248f49fb405a2d4dbcae694 (patch) | |
tree | d85e647b4804193e862a16841caf777563fa1446 /configure | |
parent | af848272ca37d3902534bebbc4f59dee1b0159d0 (diff) | |
download | mpv-6a970e783db95e6a8248f49fb405a2d4dbcae694.tar.bz2 mpv-6a970e783db95e6a8248f49fb405a2d4dbcae694.tar.xz |
gcc -dumpmachine outputs x86_64-something on some machines and
amd64-something on others. Handle both cases. Fixes bug #325.
patch by Pawel Sakowski < pawel __ dot __ sakowski __ dot __ pl >
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16868 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -516,7 +516,7 @@ if test -z "$_target" ; then i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686|BePC) host_arch=i386 ;; ia64) host_arch=ia64 ;; x86_64|amd64) - if [ "`$_cc -dumpmachine | grep x86_64 | cut -d- -f1`" = "x86_64" -a \ + if [ -n "`$_cc -dumpmachine | sed -n '/^x86_64-/p;/^amd64-/p'`" -a \ -z "`echo $CFLAGS | grep -- -m32`" ]; then host_arch=x86_64 else |