# HG changeset patch # User atmosfear # Date 989145742 0 # Node ID d73d1b2a565ac486f219e8cb293431a18019ec5e # Parent dc7d130b5fcd33462dc668d2503f98d89120d1ea Added --enable-debug[=1-3] to compile debugging info into mplayer (specifies -gn switch). diff -r dc7d130b5fcd -r d73d1b2a565a configure --- a/configure Sun May 06 10:10:50 2001 +0000 +++ b/configure Sun May 06 10:42:22 2001 +0000 @@ -76,6 +76,7 @@ params: --cc use this C compiler to build MPlayer [gcc] + --enable-debug[=1-3] compile debugging information into mplayer --enable-mmx build with mmx support [autodetect] --enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect] --enable-3dnow build with 3dnow! support [autodetect] @@ -506,6 +507,12 @@ for ac_option do case "$ac_option" in + --enable-debug) + _debug='-g' + ;; + --enable-debug=*) + _debug=`echo -n '-g'; echo $ac_option | cut -d '=' -f 2` + ;; --enable-css) _css=yes ;; @@ -800,7 +807,7 @@ # Checking for CFLAGS if [ "$CFLAGS" = "" ]; then - CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math" + CFLAGS="-O4 $_debug -march=$proc -mcpu=$proc -pipe -ffast-math" fi echo @@ -812,7 +819,7 @@ AR=ar CC=$_cc X11DIR=$_x11libdir -# OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math +# OPTFLAGS=-O4 $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math OPTFLAGS=$CFLAGS # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng