changeset 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 ea093aa3ecae
files configure
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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