diff configure @ 990:21475b2da242

Fixed gcc version detect.
author atmosfear
date Mon, 04 Jun 2001 12:01:22 +0000
parents c6f88600d409
children a5a3d936b116
line wrap: on
line diff
--- a/configure	Mon Jun 04 11:27:42 2001 +0000
+++ b/configure	Mon Jun 04 12:01:22 2001 +0000
@@ -175,13 +175,15 @@
  fi
 fi
 
+_skip_cc_check=no
+
 for ac_option
 do
  case "$ac_option" in
   --cc=*)
         _cc=`echo $ac_option | cut -d '=' -f 2`
         ;;
-  --disable-gcc-checking=*)
+  --disable-gcc-checking)
         _skip_cc_check=yes
 	;;
   --with-x11libdir=*)
@@ -196,9 +198,9 @@
  esac
 done
 
-# Checking CC version...
-if ! test -z "$_skip_cc_check"; then
-echo "checking version of $CC""... $_cc"
+# Checking CC version... what's with egcs, pgcc? - Atmos
+if test "$_skip_cc_check" != "yes"; then
+echo -n "Checking version of $_cc ... "
 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
 case $cc_version in
     '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;;
@@ -212,7 +214,7 @@
 exit
 fi
 fi
-if test -z "$_skip_cc_check"; then
+if test "$_skip_cc_check" = "yes"; then
 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!"
 fi
 # ---
@@ -758,6 +760,7 @@
 done
 
 # Checking as compatibility...
+echo -n "Checking assembler (as) ... "
 cat > astest.S <<EOF
 filds -2(%ebp)
 EOF
@@ -793,12 +796,12 @@
 as astest.S -o astest.o &> /dev/null || as_verc_fail=yes
 rm -f astest.S astest.o
 fi
-if test -z "$as_verc_fail"; then
-echo "checking assembler...o'k"
-fi
-if ! test -z "$as_verc_fail"; then
-echo "Please upgrade binutils..."
-exit
+if test "$as_verc_fail" != "yes"; then
+  echo "ok"
+else
+  echo "failed"
+  echo "Please upgrade binutils..." # to which version? - Atmos
+  exit
 fi