From 8813f847cc8c6c5f2a27a59bd98fc98cc32f7bd8 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Thu, 18 Dec 2008 13:20:35 +1100 Subject: [PATCH] * config.guess (i86pc:SunOS:5.*:*, i86xen:SunOS:5.*:*): Remove the need for /usr/bin/echo by improving shell portability. Thanks to Ralf Wildenhues for the suggestion. --- ChangeLog | 6 ++++++ config.guess | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4c99769..4ac6a02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-18 Ben Elliston + + * config.guess (i86pc:SunOS:5.*:*, i86xen:SunOS:5.*:*): Remove the + need for /usr/bin/echo by improving shell portability. Thanks to + Ralf Wildenhues for the suggestion. + 2008-12-11 Ben Elliston * config.guess (i86pc:SunOS:5.*:*, i86xen:SunOS:5.*:*): The full diff --git a/config.guess b/config.guess index c466aa7..aeb5323 100755 --- a/config.guess +++ b/config.guess @@ -4,7 +4,7 @@ # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. -timestamp='2008-12-11' +timestamp='2008-12-18' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -335,11 +335,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. - # This test works for both compilers. Note that the full path to - # /usr/bin/echo is necessary to work around the shell builtins for - # echo that do not handle newlines. + # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if /usr/bin/echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \ + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then