Mercurial > mplayer.hg
comparison configure @ 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 | 50b8a3a5eeed |
children | 8d4d00fe62a3 |
comparison
equal
deleted
inserted
replaced
1260:3a58015415a6 | 1261:5bb83ed0db33 |
---|---|
205 MCONF='config.mak' | 205 MCONF='config.mak' |
206 | 206 |
207 # --- Check for C compiler: | 207 # --- Check for C compiler: |
208 | 208 |
209 _cc=gcc | 209 _cc=gcc |
210 _as=as | 210 _as=`gcc -print-prog-name=as` |
211 if [ x"_$as" = x ]; then | |
212 _as=as | |
213 fi | |
211 _x11=auto | 214 _x11=auto |
212 | 215 |
213 _x11libdir= | 216 _x11libdir= |
214 if [ -d /usr/X11R6 ]; then | 217 if [ -d /usr/X11R6 ]; then |
215 _x11libdir=-L/usr/X11R6/lib | 218 _x11libdir=-L/usr/X11R6/lib |
615 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes | 618 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes |
616 | 619 |
617 _ggi=no | 620 _ggi=no |
618 $_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes | 621 $_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes |
619 | 622 |
623 _kstat=no | |
624 $_cc $TMPC -o $TMPO -lkstat >/dev/null 2>&1 && _kstat=yes _archlibs="-lkstat $_archlibs" | |
625 $_cc $TMPC -o $TMPO -lrt >/dev/null 2>&1 && _archlibs="-lrt $_archlibs" | |
626 | |
620 _binutils=no | 627 _binutils=no |
621 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes | 628 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes |
622 | 629 |
623 # echo binutils: $_binutils | 630 # echo binutils: $_binutils |
624 | 631 |
988 esac | 995 esac |
989 done | 996 done |
990 | 997 |
991 # Checking assembler (_as) compatibility... | 998 # Checking assembler (_as) compatibility... |
992 as_version=`$_as --version 2>&1 | sed -n 's/^.*assembler \([0-9.]*\).*$/\1/p'` | 999 as_version=`$_as --version 2>&1 | sed -n 's/^.*assembler \([0-9.]*\).*$/\1/p'` |
993 echo $_echo_n "Checking assembler (as) ... $as_version, $_echo_c" | 1000 echo $_echo_n "Checking assembler ($_as) ... $as_version, $_echo_c" |
994 _pref_as_version='2.9.1' | 1001 _pref_as_version='2.9.1' |
995 ### this test disabled, see _binutils test above! --A'rpi | 1002 ### this test disabled, see _binutils test above! --A'rpi |
996 # cat > astest.S <<EOF | 1003 # cat > astest.S <<EOF |
997 # filds -2(%ebp) | 1004 # filds -2(%ebp) |
998 # EOF | 1005 # EOF |
1216 else | 1223 else |
1217 _termcap='#undef USE_TERMCAP' | 1224 _termcap='#undef USE_TERMCAP' |
1218 _libtermcap='' | 1225 _libtermcap='' |
1219 fi | 1226 fi |
1220 | 1227 |
1228 if [ "$_kstat" = "yes" ]; then | |
1229 _have_kstat="#define HAVE_KSTAT 1" | |
1230 else | |
1231 _have_kstat="#undef HAVE_KSTAT" | |
1232 fi | |
1233 | |
1221 if [ "$_xmmp" = "yes" ]; then | 1234 if [ "$_xmmp" = "yes" ]; then |
1222 _xmmpaudio='#define USE_XMMP_AUDIO' | 1235 _xmmpaudio='#define USE_XMMP_AUDIO' |
1223 _xmmplibs='-Llibxmm -lxmm' | 1236 _xmmplibs='-Llibxmm -lxmm' |
1224 else | 1237 else |
1225 _xmmpaudio='#undef USE_XMMP_AUDIO' | 1238 _xmmpaudio='#undef USE_XMMP_AUDIO' |
1562 #define OUTBURST 512 | 1575 #define OUTBURST 512 |
1563 #endif | 1576 #endif |
1564 | 1577 |
1565 /* Define this if your system has the header file for the OSS sound interface */ | 1578 /* Define this if your system has the header file for the OSS sound interface */ |
1566 $_have_soundcard_h | 1579 $_have_soundcard_h |
1580 | |
1581 | |
1582 /* Define this if you have the kstat kernel statistics library */ | |
1583 $_have_kstat | |
1567 | 1584 |
1568 | 1585 |
1569 /* LIRC (remote control, see www.lirc.org) support: */ | 1586 /* LIRC (remote control, see www.lirc.org) support: */ |
1570 $_lircdefs | 1587 $_lircdefs |
1571 | 1588 |