[Mplayer-cvslog] CVS: main configure,1.238,1.239

Winner of tha face compo gabucino at mplayer.dev.hu
Wed Nov 14 01:19:24 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv8411

Modified Files:
	configure 
Log Message:
--target and some Intel checks fixed


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.238
retrieving revision 1.239
diff -u -r1.238 -r1.239
--- configure	13 Nov 2001 23:17:31 -0000	1.238
+++ configure	14 Nov 2001 00:19:22 -0000	1.239
@@ -5,6 +5,9 @@
 #				   pontscho at makacs.poliod.hu
 #
 # Changes in reversed order:
+# 2001/11/14 by Gabucino
+# - dunno who made the --target option but now it even works
+# - fixed some Intel arch test for --target
 #
 # 2001/10/26 by al3x
 # - added detection of zlib (used by libmpdemux/demux_mov.c)
@@ -525,7 +528,7 @@
   fi
 fi
 
-if test "$host_arch" = i386 ; then
+if test "$host_arch" = i386 || test "$host_arch" = i486 || test "$host_arch" = i586 || test "$host_arch" = i686; then
     if test -r /proc/cpuinfo ; then
 	# linux with /proc mounted, extract cpu information from it
 	_cpuinfo="cat /proc/cpuinfo"
@@ -698,7 +701,7 @@
 EOF
 
 case "$host_arch" in
-i386)
+i386|i486|i586|i686)
     _arch="#define ARCH_X86 1"
     _target_arch="TARGET_ARCH_X86=yes"
     _words_endian="#undef WORDS_BIGENDIAN"
@@ -882,6 +885,17 @@
     ;;
 esac
 
+##
+## Gabucino : --target takes effect here (hopefully...) by overwriting
+##            autodetected mcpu/march parameters
+##
+
+if test "$_target" ; then
+  _march="-march=$host_arch"
+  _mcpu="-mcpu=$host_arch"
+  proc="$_target"		# a little cosmetic
+fi
+
 # ---
 
 # Checking for localization ...
@@ -1618,6 +1632,8 @@
 	;;
   --as=*)
 	;;
+  --target=*)
+        ;;
   *)
 	echo "Unknown parameter: $ac_option"
 	;;
@@ -1768,12 +1784,12 @@
 # to screen.
 echo "Install prefix: $_prefix"
 echo "Data directory: $_datadir"
-if test "$host_arch" = i386 ; then
+if test "$host_arch" = i386 || test "$host_arch" = i486 || test "$host_arch" = i586 || test "$host_arch" = i686 ; then
     echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )"
     echo "Checking for cpu type ... $pname"
 fi
 echo "Optimizing to ... $proc"
-if test "$host_arch" = i386 ; then
+if test "$host_arch" = i386 || test "$host_arch" = i486 || test "$host_arch" = i586 || test "$host_arch" = i686 ; then
     echo "Checking for mmx support ... $_mmx"
     echo "Checking for mmx2 support ... $_mmx2"
     echo "Checking for 3dnow support ... $_3dnow"
@@ -2888,7 +2904,7 @@
 EOF
 fi
 
-if test "$host_arch" = "i386" ; then
+if test "$host_arch" = "i386" || test "$host_arch" = "i486" || test "$host_arch" = "i586" || test "$host_arch" = "i686" ; then
   if test "$_win32" = no ; then
     if test "$_win32libdir" ; then
       cat <<EOF




More information about the MPlayer-cvslog mailing list