forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce and use config/gcc-version.m4.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91625 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
rsandifo
committed
Dec 2, 2004
1 parent
fcb1328
commit 14ac914
Showing
48 changed files
with
558 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
dnl Usage: TL_AC_GCC_VERSION(TOPSRCDIR) | ||
dnl | ||
dnl Set up the variables: | ||
dnl | ||
dnl gcc_version_trigger: pathname of gcc's version.c, if available | ||
dnl gcc_version_full: full gcc version string | ||
dnl gcc_version: the first "word" in $gcc_version_full | ||
dnl | ||
dnl TOPSRCDIR is the top-level source directory. | ||
AC_DEFUN([TL_AC_GCC_VERSION], | ||
[ | ||
changequote(,)dnl | ||
if test "${with_gcc_version_trigger+set}" = set; then | ||
gcc_version_trigger=$with_gcc_version_trigger | ||
else | ||
gcc_version_trigger=$1/gcc/version.c | ||
fi | ||
if test -f "${gcc_version_trigger}"; then | ||
gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'` | ||
else | ||
gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'` | ||
fi | ||
gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'` | ||
changequote([,])dnl | ||
AC_SUBST(gcc_version_trigger) | ||
AC_SUBST(gcc_version_full) | ||
AC_SUBST(gcc_version) | ||
])dnl |
Oops, something went wrong.