llvm.org GIT mirror llvm / bc9e49c
Fix PR608: Previously the script assumed the version number was the last field, now it assumes it is the first sequence of digits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22527 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 15 years ago
3 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
403403 dnl Verify that GCC is version 3.0 or higher
404404 if test "$GCC" = "yes"
405405 then
406 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
406 gccmajor=`$CC --version | head -n 1 | sed 's/[[^0-9]]*\([[0-9.]]\).*/\1/'`
407407 if test "$gccmajor" -lt "3"
408408 then
409409 AC_MSG_ERROR([gcc 3.x required, but you have a lower version])
2484124841
2484224842 if test "$GCC" = "yes"
2484324843 then
24844 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24844 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
2484524845 if test "$gccmajor" -lt "3"
2484624846 then
2484724847 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
448448 /* If using the C implementation of alloca, define if you know the
449449 direction of stack growth for your system; otherwise it will be
450450 automatically deduced at run-time.
451 STACK_DIRECTION > 0 => grows toward higher addresses
452 STACK_DIRECTION < 0 => grows toward lower addresses
453 STACK_DIRECTION = 0 => direction of growth unknown */
451 STACK_DIRECTION > 0 => grows toward higher addresses
452 STACK_DIRECTION < 0 => grows toward lower addresses
453 STACK_DIRECTION = 0 => direction of growth unknown */
454454 #undef STACK_DIRECTION
455455
456456 /* Define to 1 if the `S_IS*' macros in do not work properly. */