A further refinement to support realpath when available.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36364 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matt Madia 2010-04-20 03:16:36 +00:00
parent b4b6d83c5a
commit b29b48b116

14
configure vendored
View File

@ -145,9 +145,11 @@ assertparams()
standard_gcc_settings()
{
if [ `which greadlink` ]; then
readlink=greadlink
readlink="greadlink -e"
elif [ `which realpath` ]; then
readlink=realpath
else
readlink=readlink
readlink="readlink -e"
fi
# PLATFORM_LINKLIBS
gcclib=`$HAIKU_CC -print-libgcc-file-name`
@ -197,25 +199,25 @@ standard_gcc_settings()
if [ $HAIKU_STATIC_LIBSTDCXX = libstdc++.a ]; then
HAIKU_STATIC_LIBSTDCXX=
else
HAIKU_STATIC_LIBSTDCXX=`$readlink -e $HAIKU_STATIC_LIBSTDCXX`
HAIKU_STATIC_LIBSTDCXX=`$readlink $HAIKU_STATIC_LIBSTDCXX`
fi
if [ $HAIKU_SHARED_LIBSTDCXX = libstdc++.so ]; then
HAIKU_SHARED_LIBSTDCXX=
else
HAIKU_SHARED_LIBSTDCXX=`$readlink -e $HAIKU_SHARED_LIBSTDCXX`
HAIKU_SHARED_LIBSTDCXX=`$readlink $HAIKU_SHARED_LIBSTDCXX`
fi
if [ $HAIKU_STATIC_LIBSUPCXX = libsupc++.a ]; then
HAIKU_STATIC_LIBSUPCXX=
else
HAIKU_STATIC_LIBSUPCXX=`$readlink -e $HAIKU_STATIC_LIBSUPCXX`
HAIKU_STATIC_LIBSUPCXX=`$readlink $HAIKU_STATIC_LIBSUPCXX`
fi
if [ $HAIKU_SHARED_LIBSUPCXX = libsupc++.so ]; then
HAIKU_SHARED_LIBSUPCXX=
else
HAIKU_SHARED_LIBSUPCXX=`$readlink -e $HAIKU_SHARED_LIBSUPCXX`
HAIKU_SHARED_LIBSUPCXX=`$readlink $HAIKU_SHARED_LIBSUPCXX`
fi
;;
2.9*)