diff options
author | peter <peter@FreeBSD.org> | 1996-10-14 02:36:40 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-10-14 02:36:40 +0000 |
commit | 9adb3f908e9264c826107f92b0be4a6c8c55b9e8 (patch) | |
tree | 8663eb5143afd49f8535d14a4d84ea5c034a98b8 /comms | |
parent | 55172f1f20a491c28b8977fefa71623186e9e826 (diff) | |
download | FreeBSD-ports-9adb3f908e9264c826107f92b0be4a6c8c55b9e8.zip FreeBSD-ports-9adb3f908e9264c826107f92b0be4a6c8c55b9e8.tar.gz |
Deal with "cc -version" reporting "2.7.2.1" or any other junk that might
end up appended (eg: "2.7.2p" or the like).
Reported by: jhs@freebsd.org (who also suggested a different, larger patch)
Diffstat (limited to 'comms')
-rw-r--r-- | comms/hylafax/files/patch-ae | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/comms/hylafax/files/patch-ae b/comms/hylafax/files/patch-ae new file mode 100644 index 0000000..25d0fee --- /dev/null +++ b/comms/hylafax/files/patch-ae @@ -0,0 +1,17 @@ +Deal with cc -version reporting "2.7.2.1" or any other junk following the +third number. + +Inspired by a larger patch from <jhs@freebsd.org> and apparently +Andreas Klemm <andreas@klemm.gtn.com> + +--- configure.dist Mon Oct 14 10:17:10 1996 ++++ configure Mon Oct 14 10:18:20 1996 +@@ -446,7 +446,7 @@ + { + app=$1; shift + eval `$app -v 2>&1 | \ +- sed -n -e '/version/s/.* \([0-9]*\)\.\([0-9]*\).\([0-9]*\)/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'` ++ sed -n -e '/version/s/.* \([0-9]*\)\.\([0-9]*\).\([0-9]*\).*/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'` + GCCversion="${GCCdist}.${GCCmajor}.${GCCminor}"; export GCCversion + required="$1$2$3" + actual="${GCCdist}${GCCmajor}${GCCminor}" |