changeset 697:6612e7cac0aa

Checking for CFLAGS
author nickols_k
date Sat, 05 May 2001 13:14:08 +0000
parents b796e4b6063c
children f0fbf1a9bf31
files configure
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat May 05 13:13:10 2001 +0000
+++ b/configure	Sat May 05 13:14:08 2001 +0000
@@ -802,6 +802,11 @@
    _libpng='-lpng -lz'
 fi
 
+# Checking for CFLAGS
+if test "$CFLAGS" = ""; then
+ CFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math
+fi
+
 echo
 echo "Creating $MCONF"
 cat > $MCONF << EOF
@@ -812,7 +817,7 @@
 CC=$_cc
 X11DIR=$_x11libdir
 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
-OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -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
 TERMCAP_LIB=$_libtermcap