mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
Fix PR608:
Previously the script assumed the version number was the last field, now it assumes it is the first sequence of digits. llvm-svn: 22527
This commit is contained in:
parent
bd51ec7461
commit
e82a9e2218
@ -404,7 +404,7 @@ fi
|
|||||||
dnl Verify that GCC is version 3.0 or higher
|
dnl Verify that GCC is version 3.0 or higher
|
||||||
if test "$GCC" = "yes"
|
if test "$GCC" = "yes"
|
||||||
then
|
then
|
||||||
gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
|
gccmajor=`$CC --version | head -n 1 | sed 's/[[^0-9]]*\([[0-9.]]\).*/\1/'`
|
||||||
if test "$gccmajor" -lt "3"
|
if test "$gccmajor" -lt "3"
|
||||||
then
|
then
|
||||||
AC_MSG_ERROR([gcc 3.x required, but you have a lower version])
|
AC_MSG_ERROR([gcc 3.x required, but you have a lower version])
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -24842,7 +24842,7 @@ fi
|
|||||||
|
|
||||||
if test "$GCC" = "yes"
|
if test "$GCC" = "yes"
|
||||||
then
|
then
|
||||||
gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
|
gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
|
||||||
if test "$gccmajor" -lt "3"
|
if test "$gccmajor" -lt "3"
|
||||||
then
|
then
|
||||||
{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
|
{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
|
||||||
|
@ -449,9 +449,9 @@
|
|||||||
/* If using the C implementation of alloca, define if you know the
|
/* If using the C implementation of alloca, define if you know the
|
||||||
direction of stack growth for your system; otherwise it will be
|
direction of stack growth for your system; otherwise it will be
|
||||||
automatically deduced at run-time.
|
automatically deduced at run-time.
|
||||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||||
#undef STACK_DIRECTION
|
#undef STACK_DIRECTION
|
||||||
|
|
||||||
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||||
|
Loading…
Reference in New Issue
Block a user