changeset 1261:5bb83ed0db33

- 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.
author jkeil
date Tue, 03 Jul 2001 14:22:23 +0000
parents 3a58015415a6
children cc74775864d8
files configure
diffstat 1 files changed, 19 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jul 03 11:35:10 2001 +0000
+++ b/configure	Tue Jul 03 14:22:23 2001 +0000
@@ -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'
@@ -1566,6 +1579,10 @@
 $_have_soundcard_h
 
 
+/* Define this if you have the kstat kernel statistics library */
+$_have_kstat
+
+
 /* LIRC (remote control, see www.lirc.org) support: */
 $_lircdefs