comparison configure @ 711:d73d1b2a565a

Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch).
author atmosfear
date Sun, 06 May 2001 10:42:22 +0000
parents dc7d130b5fcd
children f44cf2772aa1
comparison
equal deleted inserted replaced
710:dc7d130b5fcd 711:d73d1b2a565a
74 74
75 usage: $0 [options] 75 usage: $0 [options]
76 76
77 params: 77 params:
78 --cc use this C compiler to build MPlayer [gcc] 78 --cc use this C compiler to build MPlayer [gcc]
79 --enable-debug[=1-3] compile debugging information into mplayer
79 --enable-mmx build with mmx support [autodetect] 80 --enable-mmx build with mmx support [autodetect]
80 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] 81 --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect]
81 --enable-3dnow build with 3dnow! support [autodetect] 82 --enable-3dnow build with 3dnow! support [autodetect]
82 --enable-sse build with sse support [autodetect] 83 --enable-sse build with sse support [autodetect]
83 --enable-gl build with OpenGL render support [autodetect] 84 --enable-gl build with OpenGL render support [autodetect]
504 # check for the parameters. 505 # check for the parameters.
505 506
506 for ac_option 507 for ac_option
507 do 508 do
508 case "$ac_option" in 509 case "$ac_option" in
510 --enable-debug)
511 _debug='-g'
512 ;;
513 --enable-debug=*)
514 _debug=`echo -n '-g'; echo $ac_option | cut -d '=' -f 2`
515 ;;
509 --enable-css) 516 --enable-css)
510 _css=yes 517 _css=yes
511 ;; 518 ;;
512 --enable-png) 519 --enable-png)
513 _png=yes 520 _png=yes
798 _libpng='-lpng -lz' 805 _libpng='-lpng -lz'
799 fi 806 fi
800 807
801 # Checking for CFLAGS 808 # Checking for CFLAGS
802 if [ "$CFLAGS" = "" ]; then 809 if [ "$CFLAGS" = "" ]; then
803 CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math" 810 CFLAGS="-O4 $_debug -march=$proc -mcpu=$proc -pipe -ffast-math"
804 fi 811 fi
805 812
806 echo 813 echo
807 echo "Creating $MCONF" 814 echo "Creating $MCONF"
808 cat > $MCONF << EOF 815 cat > $MCONF << EOF
810 # -------- Generated by ./configure ----------- 817 # -------- Generated by ./configure -----------
811 818
812 AR=ar 819 AR=ar
813 CC=$_cc 820 CC=$_cc
814 X11DIR=$_x11libdir 821 X11DIR=$_x11libdir
815 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math 822 # OPTFLAGS=-O4 $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
816 OPTFLAGS=$CFLAGS 823 OPTFLAGS=$CFLAGS
817 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib 824 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib
818 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng 825 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng
819 TERMCAP_LIB=$_libtermcap 826 TERMCAP_LIB=$_libtermcap
820 XMM_LIBS = $_xmmplibs 827 XMM_LIBS = $_xmmplibs