[Mplayer-cvslog] CVS: main configure,1.97,1.98

Jürgen Keil jkeil at mplayerhq.banki.hu
Wed Jul 4 12:45:22 CEST 2001


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

Modified Files:
	configure 
Log Message:
rework autodetection of assembler used by gcc, the correct assembler is detected
now, in case the user has specified a certain version of the compiler with the
"-cc=..." option.


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- configure	3 Jul 2001 23:04:36 -0000	1.97
+++ configure	4 Jul 2001 10:45:20 -0000	1.98
@@ -6,6 +6,9 @@
 #
 # Changes in reversed order:
 #
+# 2001/07/04 by Juergen Keil
+#  - autodetect the assembler binary used by the GCC C compiler
+#
 # 2001/07/03 by Nick Kurshev
 # - added universal way of configuring SUBDIRS
 # - moved configurable stuff of depended SUBDIRS to SUBDIRS
@@ -19,9 +22,14 @@
 # 2001/06/04 by Nick Kurshev
 # - added hard checking of gcc and soft of assembler
 #
-# 2001/05/40 by LGB
+# 2001/05/30 by LGB
 #  - added --prefix support
 #
+# 2001/05/?? by Juergen Keil
+#  - autodetect OSS & Sun style audio
+#  - cpu feature detection for non-linux x86 systems
+#  - converted from bash to bourne shell script
+#
 # 2001/05/22 by Nick Kurshev
 #  - added definition of CPU clone
 #
@@ -207,10 +215,7 @@
 # ---  Check for C compiler:
 
 _cc=gcc
-_as=`gcc -print-prog-name=as`
-if [ x"_$as" = x ]; then
-  _as=as
-fi
+_as=auto
 _x11=auto
 
 _x11libdir=
@@ -308,6 +313,15 @@
 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!"
 fi
 # ---
+
+# now that we know what compiler should be used for compilation, try to find
+# out which assembler is used by the $_cc compiler
+if [ "$_as" = auto ]; then
+  _as=`$_cc -print-prog-name=as`
+  if [ "_$as" = "" ]; then
+    _as=as
+  fi
+fi
 
 
 if [ -r /proc/cpuinfo ]; then


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list