2010-05-17ct-ng: Add ability to configure and use some GNU tools
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 14:11:08 +0200] rev 1962
ct-ng: Add ability to configure and use some GNU tools

Make the paths to libtool, objcopy, objdump, readelf, patch configurable.

2010-05-22scripts/build/internals.sh: Always use binary wrapper under BSD/MacOS
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 17:30:44 +0200] rev 1961
scripts/build/internals.sh: Always use binary wrapper under BSD/MacOS

The shell wrapper script uses a nonportable call to readlink.
Thus, always use the binary wrapper under BSD/MacOS.

yann.morin.1998@anciens.enib.fr:
Use 'case' instead of 'if'.

2010-05-17scripts/wrapper.in: Add a comment about readlink not being portable.
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 12:27:32 +0200] rev 1960
scripts/wrapper.in: Add a comment about readlink not being portable.

Documented that the call to readlink will not work on BSD systems.

2010-05-17configure: make call to readlink portable to non-GNU (BSD) systems
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 12:23:24 +0200] rev 1959
configure: make call to readlink portable to non-GNU (BSD) systems

The argument '-e' for readlink is a GNU extension.
In setting the variable 'where' the argument '-e' is not necessary, thus eliminated.

2010-05-19scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:13:00 +0200] rev 1958
scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.

On 64bit MacOS `gcc -dumpmachine` gives i686 for the host machine.
This conflicts with the expectations of some following configure scripts
that a 64bit x86 is given as x86_64; i686 is understood as a 32 bit machine.
config.guess sets the host machine in CT_BUILD correctly.

yann.morin.1998@anciens.enib.fr:
As suggested by Khem RAJ on the ML, always use config.guess.

2010-05-17configure: Do not require stat to be of GNU coreutils
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 11:29:26 +0200] rev 1957
configure: Do not require stat to be of GNU coreutils

calls to stat have been made portable, thus it is not necessary
that the GNU version is present on the user's system.

2010-05-19scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:22:32 +0200] rev 1956
scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.

Call to get the directory mode depending on $CT_SYS_OS

yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.

2010-05-19build/internals.sh: Replace nonportable call to stat
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:08:23 +0200] rev 1955
build/internals.sh: Replace nonportable call to stat

The call to stat to find out if a file is a symlink works only on GNU systems,
and the replacing portable call to readlink is also shorter and more concise code.

yann.morin.1998@anciens.enib.fr:
Apply simpler test, after discussion with author and Arnaud LACOMBE on the ML.

2010-05-19crosstool-NG.sh: suppress failure message from uname -o
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:17:39 +0200] rev 1954
crosstool-NG.sh: suppress failure message from uname -o

On non-GNU systems (BSD/MacOS) there is no uname -o.
Suppress the failure message on these systems in the
call to set CT_SYS_OS (uname -s actually sets this variable).

yann.morin.1998@anciens.enib.fr: remove 'uname -o' altogether.

2010-05-16cc/gcc: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 May 2010 19:41:53 +0200] rev 1953
cc/gcc: add latest version

Add 4.4.4 and forward-port patchset from 4.4.3