[Mplayer-cvslog] CVS: main configure,1.95,1.96

Jürgen Keil jkeil at mplayerhq.banki.hu
Tue Jul 3 16:22:25 CEST 2001


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

Modified Files:
	configure 
Log Message:
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
  that binary as the default assembler binary tested for the availability of
  MMX/MMXEXT/3DNOW/... instructions 

- On solaris, there are a few libraries missing, if you compile MPlayer 
  without SDL (with SDL, we pick up these libraries from "sdl-config --libs")
  Typical problem is a missing nanosleep() from the -lrt library.


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- configure	3 Jul 2001 07:50:52 -0000	1.95
+++ configure	3 Jul 2001 14:22:23 -0000	1.96
@@ -207,7 +207,10 @@
 # ---  Check for C compiler:
 
 _cc=gcc
-_as=as
+_as=`gcc -print-prog-name=as`
+if [ x"_$as" = x ]; then
+  _as=as
+fi
 _x11=auto
 
 _x11libdir=
@@ -617,6 +620,10 @@
 _ggi=no
 $_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes
 
+_kstat=no
+$_cc $TMPC -o $TMPO -lkstat >/dev/null 2>&1 && _kstat=yes _archlibs="-lkstat $_archlibs"
+$_cc $TMPC -o $TMPO -lrt >/dev/null 2>&1 && _archlibs="-lrt $_archlibs"
+
 _binutils=no
 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes
 
@@ -990,7 +997,7 @@
 
 # Checking assembler (_as) compatibility...
 as_version=`$_as --version 2>&1 | sed -n 's/^.*assembler \([0-9.]*\).*$/\1/p'`
-echo $_echo_n "Checking assembler (as) ... $as_version, $_echo_c"
+echo $_echo_n "Checking assembler ($_as) ... $as_version, $_echo_c"
 _pref_as_version='2.9.1'
 ### this test disabled, see _binutils test above!  --A'rpi
 # cat > astest.S <<EOF
@@ -1218,6 +1225,12 @@
  _libtermcap=''
 fi
 
+if [ "$_kstat" = "yes" ]; then
+  _have_kstat="#define	HAVE_KSTAT 1"
+else
+  _have_kstat="#undef	HAVE_KSTAT"
+fi
+
 if [ "$_xmmp" = "yes" ]; then
  _xmmpaudio='#define USE_XMMP_AUDIO'
  _xmmplibs='-Llibxmm -lxmm'
@@ -1564,6 +1577,10 @@
 
 /* Define this if your system has the header file for the OSS sound interface */
 $_have_soundcard_h
+
+
+/* Define this if you have the kstat kernel statistics library */
+$_have_kstat
 
 
 /* LIRC (remote control, see www.lirc.org) support: */


_______________________________________________
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