This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


# 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]