comparison configure @ 4345:5d744e4f5b62

original patch by malc <malc@tmbg.co.uk> slightly edited by me
author pl
date Fri, 25 Jan 2002 13:14:40 +0000
parents 2b141fcd69dd
children d45744794581
comparison
equal deleted inserted replaced
4344:7d9b4c874f73 4345:5d744e4f5b62
329 cc_version="v. ?.??, bad" 329 cc_version="v. ?.??, bad"
330 cc_verc_fail=yes 330 cc_verc_fail=yes
331 ;; 331 ;;
332 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9]) 332 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9])
333 cc_version="$cc_version, ok" 333 cc_version="$cc_version, ok"
334 cc_verc_fail=no
334 ;; 335 ;;
335 *) 336 *)
336 cc_version="$cc_version, bad" 337 cc_version="$cc_version, bad"
337 cc_verc_fail=yes 338 cc_verc_fail=yes
338 ;; 339 ;;
339 esac 340 esac
340 echores "$cc_version" 341 echores "$cc_version"
341 # If gcc version is crappy RH one, then check if the user has installed the optional 342 # If gcc version is crappy RH one, then check if the user has installed the optional
342 # (at least in Rh7.2) gcc3 packages to save them some pain - malc@tmbg.co.uk 343 # (at least in Rh7.2) gcc3 packages to save them some pain - malc@tmbg.co.uk
343 if test "$cc_verc_fail" ; then 344 if test "$cc_verc_fail" = yes ; then
344 echocheck "gcc3 version" 345 echocheck "gcc3 version"
345 _cc=gcc3 346 _cc=gcc3
346 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` 347 cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
347 case $cc_version in 348 case $cc_version in
348 '') 349 '')
349 cc_version="v. ?.??, bad" 350 cc_version="v. ?.??, bad"
350 cc_verc_fail=yes 351 cc_verc_fail=yes
351 ;; 352 ;;
352 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9]) 353 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9])
353 cc_version="$cc_version, ok" 354 cc_version="$cc_version, ok"
355 cc_verc_fail=no
354 ;; 356 ;;
355 *) 357 *)
356 cc_version="$cc_version, bad" 358 cc_version="$cc_version, bad"
357 cc_verc_fail=yes 359 cc_verc_fail=yes
358 ;; 360 ;;
359 esac 361 esac
360 fi 362 echores "$cc_version"
361 if test "$cc_verc_fail" ; then 363 fi
364 if test "$cc_verc_fail" = yes ; then
362 cat <<EOF 365 cat <<EOF
363 366
364 *** Please downgrade/upgrade C compiler to gcc-2.95.x or gcc-3.x version! *** 367 *** Please downgrade/upgrade C compiler to gcc-2.95.x or gcc-3.x version! ***
365 368
366 You are using a different compiler than ours. We do not have the time to make 369 You are using a different compiler than ours. We do not have the time to make