configure: make call to readlink portable to non-GNU (BSD) systems
authorTitus von Boxberg <titus@v9g.de>
Mon May 17 12:23:24 2010 +0200 (2010-05-17)
changeset 1959a86d3c6ad7fe
parent 1958 b9ffc1ef43df
child 1960 8307ceabe5c0
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.
configure
     1.1 --- a/configure	Wed May 19 18:13:00 2010 +0200
     1.2 +++ b/configure	Mon May 17 12:23:24 2010 +0200
     1.3 @@ -160,7 +160,7 @@
     1.4                  printf "Checking for '${item}'... "
     1.5                  where="$( gcc -print-file-name="${item}" )"
     1.6                  if [ "${where}" != "${item}" ]; then
     1.7 -                    where="$( readlink -e "${where}" )"
     1.8 +                    where="$( readlink "${where}" )"
     1.9                      status=yes
    1.10                      break;
    1.11                  fi