fixed --disable-as-checking, added --enable-streaming

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1058 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-06-08 23:30:09 +00:00
parent fa2cdde3c4
commit 7d96a77e0d
1 changed files with 45 additions and 6 deletions

51
configure vendored
View File

@ -308,6 +308,7 @@ _lirc=no
_css=no _css=no
_dshow=yes _dshow=yes
_fastmemcpy=yes _fastmemcpy=yes
_streaming=no
_x=1 _x=1
_y=1 _y=1
@ -573,9 +574,10 @@ $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes
# ----------- Check X11 and related libs (GL, Xxf86vm, Xv, DGA) -------------- # ----------- Check X11 and related libs (GL, Xxf86vm, Xv, DGA) --------------
# for Solaris: # for Solaris (socket stuff is in -lsocket, gethostbyname and friends in -lnsl):
_socklib= _socklib=
$_cc $TMPC -o $TMPO -lsocket >/dev/null 2>&1 && _socklib=-lsocket $_cc $TMPC -o $TMPO $_socklib -lsocket >/dev/null 2>&1 && _socklib="$_socklib -lsocket"
$_cc $TMPC -o $TMPO $_socklib -lnsl >/dev/null 2>&1 && _socklib="$_socklib -lnsl"
if [ $_x11 = auto ]; then if [ $_x11 = auto ]; then
_x11=no _x11=no
@ -630,6 +632,15 @@ rm -f $TMPC $TMPO
# --- # ---
# try to detect type of audio supported on this machine # try to detect type of audio supported on this machine
cat > $TMPC << EOF
#include <sys/soundcard.h>
int main( void ) { return 0; }
EOF
_sys_soundcard_h=no
$_cc -o $TMPO $TMPC 2> /dev/null && _sys_soundcard_h=yes
cat > $TMPC << EOF cat > $TMPC << EOF
#include <sys/soundcard.h> #include <sys/soundcard.h>
int main( void ) { int arg = SNDCTL_DSP_SETFRAGMENT; } int main( void ) { int arg = SNDCTL_DSP_SETFRAGMENT; }
@ -640,6 +651,7 @@ $_cc -o $TMPO $TMPC 2> /dev/null && _oss_audio=yes
cat > $TMPC << EOF cat > $TMPC << EOF
#include <sys/types.h>
#include <sys/audioio.h> #include <sys/audioio.h>
int main( void ) { audio_info_t info; AUDIO_INITINFO(&info); } int main( void ) { audio_info_t info; AUDIO_INITINFO(&info); }
EOF EOF
@ -784,6 +796,9 @@ do
--enable-gui) --enable-gui)
_gui=yes _gui=yes
;; ;;
--enable-streaming)
_streaming=yes
;;
--disable-css) --disable-css)
_css=no _css=no
;; ;;
@ -963,7 +978,11 @@ if test "$as_verc_fail" != "yes"; then
else else
echo "failed" echo "failed"
echo "Please upgrade(downgrade) binutils to "$_pref_as_version"..." echo "Please upgrade(downgrade) binutils to "$_pref_as_version"..."
exit if [ $_skip_as_check = 'no' ]; then
exit
else
echo "YOU'VE SELECTED '--disable-as-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!"
fi
fi fi
# Checking kernel version... # Checking kernel version...
@ -1026,6 +1045,12 @@ echo "Checking for DirectShow ... $_dshow"
echo "Checking for fastmemcpy ... $_fastmemcpy" echo "Checking for fastmemcpy ... $_fastmemcpy"
# write conf files. # write conf files.
_streamingdef='#undef STREAMING'
if [ $_streaming = yes ]; then
_streamingsrcs='asf_streaming.c network.c url.c http.c'
_streamingdef='#define STREAMING'
fi
if [ $_gl = yes ]; then if [ $_gl = yes ]; then
_gllib='-lGL' _gllib='-lGL'
fi fi
@ -1150,6 +1175,13 @@ else
_sunaudio='#undef USE_SUN_AUDIO' _sunaudio='#undef USE_SUN_AUDIO'
fi fi
if [ "$_sys_soundcard_h" = "yes" ]; then
_have_soundcard_h='#define HAVE_SYS_SOUNDCARD_H 1'
else
_have_soundcard_h='#undef HAVE_SYS_SOUNDCARD_H'
fi
# Checking for CFLAGS # Checking for CFLAGS
if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then
CFLAGS="-O2 -march=$proc -mcpu=$proc $_debug $_profile" CFLAGS="-O2 -march=$proc -mcpu=$proc $_debug $_profile"
@ -1185,6 +1217,7 @@ ALSA_LIB = $_alsalib
ESD_LIB = $_esdlib ESD_LIB = $_esdlib
prefix = $_prefix prefix = $_prefix
ARCH_LIBS = -ldl -lpthread ARCH_LIBS = -ldl -lpthread
STREAM_SRCS = $_streamingsrcs
EOF EOF
# echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak
@ -1377,9 +1410,6 @@ $_select
You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/
$_mpg123 $_mpg123
/* AUDIO Support */
$_ossaudio
$_sunaudio
/* XMMP support: (test code) */ /* XMMP support: (test code) */
$_xmmpaudio $_xmmpaudio
@ -1398,6 +1428,10 @@ $_xmmpaudio
#define OUTBURST 512 #define OUTBURST 512
#endif #endif
/* Define this if your system has the header file for the OSS sound interface */
$_have_soundcard_h
/* LIRC (remote control, see www.lirc.org) support: */ /* LIRC (remote control, see www.lirc.org) support: */
$_lircdefs $_lircdefs
@ -1418,9 +1452,11 @@ $_gui
#define PREFIX "$_prefix" #define PREFIX "$_prefix"
/* Audio lib drivers */ /* Audio lib drivers */
$_ossaudio
$_alsa5 $_alsa5
$_alsa9 $_alsa9
$_esdd $_esdd
$_sunaudio
/* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */ /* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */
#undef FAST_OSD #undef FAST_OSD
@ -1445,8 +1481,11 @@ $_esdd
/* termcap flag for getch2.c */ /* termcap flag for getch2.c */
$_termcap $_termcap
$_png $_png
$_streamingdef
/* Extension defines */ /* Extension defines */
$_mlib // available only on solaris $_mlib // available only on solaris
$_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) $_3dnowm // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.)