aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-09 17:02:10 +0000
committerGravatar nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-09 17:02:10 +0000
commit2d018ad059b24ecc8662f7ea735fe0117f0dc68e (patch)
treeee7667ea3bc3b6ce20392a0712f2556e7ffc9960 /configure
parent450e6b7d569f363bc07ae859f5894e78b95e7501 (diff)
dcbzl instruction is only for 64-bit implementations. define NO_DCBZL for ffmpeg. patch by Steven M. Schultz <sms@2BSD.COM>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15381 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 40ad7c6c41..87b0810b30 100755
--- a/configure
+++ b/configure
@@ -1000,6 +1000,7 @@ EOF
ppc)
_def_arch='#define ARCH_POWERPC 1'
+ _def_dcbzl='#define NO_DCBZL 1'
_target_arch='TARGET_ARCH_POWERPC = yes'
iproc='ppc'
proc=''
@@ -1064,7 +1065,8 @@ EOF
# gcc 3.2 and up supports 970
if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3"; then
case "$proc" in
- 970*) _march='-mcpu=970' _mcpu='-mtune=970' ;;
+ 970*) _march='-mcpu=970' _mcpu='-mtune=970'
+ _def_dcbzl='#undef NO_DCBZL' ;;
*) ;;
esac
fi
@@ -7337,6 +7339,10 @@ $_def_words_endian
$_def_arch
+/* For the PPC. G5 has the dcbzl when in 64bit mode but G4s and earlier do not
+ have the instruction. */
+$_def_dcbzl
+
/* libmpeg2 wants ARCH_PPC and the rest of mplayer use ARCH_POWERPC,
* define ARCH_PPC if ARCH_POWERPC is set to cope with that.
*/