[PATCH 6 of 9] configure: make call to readlink portable to non-GNU (BSD) systems

Titus von Boxberg titus@v9g.de
Mon May 17 12:36:00 GMT 2010


# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1274091804 -7200
# Node ID 193c8b8e4b7adab64c33016293b809197084af12
# Parent  8a7da2f309b5cb00bcdf78c53100891d4ec2aafb
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.

diff -r 8a7da2f309b5 -r 193c8b8e4b7a configure
--- a/configure	Mon May 17 12:16:09 2010 +0200
+++ b/configure	Mon May 17 12:23:24 2010 +0200
@@ -160,7 +160,7 @@
                 printf "Checking for '${item}'... "
                 where="$( gcc -print-file-name="${item}" )"
                 if [ "${where}" != "${item}" ]; then
-                    where="$( readlink -e "${where}" )"
+                    where="$( readlink "${where}" )"
                     status=yes
                     break;
                 fi

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list