aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-29 11:35:21 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-29 11:35:21 +0000
commit7d243ad740a1b3260442614a27246c6ff0399d64 (patch)
tree7a4ae5843dce2846a72a90b532ba453afced563d /configure
parent52668414f9adef6cac8301a85bca172a77f78228 (diff)
applied patch by Malcolm <malc@cyberserf.co.uk>: check if the-less-buggier gcc3 is present if gcc2.96 found
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3877 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure b/configure
index 2889620971..b709071ff3 100755
--- a/configure
+++ b/configure
@@ -339,6 +339,26 @@ if test "$_skip_cc_check" != yes ; then
;;
esac
echores "$cc_version"
+ # If gcc version is crappy RH one, then check if the user has installed the optional
+ # (at least in Rh7.2) gcc3 packages to save them some pain - malc@tmbg.co.uk
+ if test "$cc_verc_fail" ; then
+ echocheck "gcc3 version"
+ _cc=gcc3
+ 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
+ ;;
+ 2.95.[2-9]|2.95.[2-9].[0-9]|3.[0-9]|3.[0-9].[0-9])
+ cc_version="$cc_version, ok"
+ ;;
+ *)
+ cc_version="$cc_version, bad"
+ cc_verc_fail=yes
+ ;;
+ esac
+ fi
if test "$cc_verc_fail" ; then
cat <<EOF