diff options
author | Jason Merrill <jason@redhat.com> | 2000-03-30 02:19:56 +0000 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2000-03-30 02:19:56 +0000 |
commit | ade7588b1b81173943ac659b6ce491ab7151f2b1 (patch) | |
tree | abe0119520644cf1926f3628087d7cfd4c5eb8b2 /configure | |
parent | dd3a9f1254a077763d8abd311efe1750fcff95e4 (diff) | |
download | gdb-ade7588b1b81173943ac659b6ce491ab7151f2b1.tar.gz |
* configure.in: -linux-gnu*, not -linux-gnu.
* configure (gcc_version): When setting, narrow search to
lines containing `version_string'.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure index 499925a48ad..c5f02913400 100755 --- a/configure +++ b/configure @@ -587,12 +587,12 @@ esac # the gcc version number changes. if [ "${with_gcc_version_trigger+set}" = set ]; then gcc_version_trigger="$with_gcc_version_trigger" - gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${with_gcc_version_trigger}` + gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` else # If gcc's sources are available, define the trigger file. if [ -f ${topsrcdir}/gcc/version.c ] ; then gcc_version_trigger=${topsrcdir}/gcc/version.c - gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` + gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` case "$arguments" in *--with-gcc-version-trigger=$gcc_version_trigger* ) ;; |