From b38ca6c1d024b041ba819b645b2316022d87ff4b Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Mon, 26 May 2003 12:58:41 +0000 Subject: [PATCH] Make it really work this time... 2003/05/25 20:40:26+01:00 cantab.net!aia21 (Logical change 1.136) --- getgccver | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/getgccver b/getgccver index e69de29b..fd5bffa2 100755 --- a/getgccver +++ b/getgccver @@ -0,0 +1,10 @@ +#!/bin/sh + +if test -z "$1"; then + echo "This program is only to be run by the ./configure script." + exit 1 +fi + +# Get the gcc version. Can't do this in configure.ac as automake refuses to +# preserve the square brackets while generating the configure script. +$1 --version 2>&1 | head -1 | sed s/"egcs-"// | sed s/"gcc (GCC) \([0-9]\.[0-9]*\).*"/"\1"/