diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-04 21:23:27 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-04 21:23:27 +0000 |
commit | 10b4ebb56b5e3d07893570debc8adbb08d0ff62d (patch) | |
tree | b26574bf42eca8a931cda201c8b5400b1993632d /Configure | |
parent | 437814ad0f8f65a68589f0a8e0f56e6034106a25 (diff) | |
download | perl-10b4ebb56b5e3d07893570debc8adbb08d0ff62d.tar.gz |
gcc versions might have (parentheses) in them.
p4raw-id: //depot/perl@6526
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Fri Aug 4 23:16:51 EET DST 2000 [metaconfig 3.0 PL70] +# Generated on Sat Aug 5 00:21:09 EET DST 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <<EOF @@ -3190,7 +3190,9 @@ case "$gccversion" in esac case "$gccversion" in '') gccosandvers='' ;; -*) gccosandvers=`$cc -v 2>&1|grep '/specs$'|sed 's!.*/[^-]*-[^-]*-\([^/]*\)/'$gccversion'/specs'$!\1!'` +*) gccshortvers=`echo "$gccversion"|sed 's/ .*//'` + gccosandvers=`$cc -v 2>&1|grep '/specs$'|sed "s!.*/[^-/]*-[^-/]*-\([^-/]*\)/$gccshortvers/specs!\1!"` + gccshortvers='' case "$gccosandvers" in $osname) gccosandvers='' ;; # linux gccs seem to have no linux osvers, grr $osname$osvers) ;; # looking good |