Ticket #3298: haiku_macox.patch

File haiku_macox.patch, 661 bytes (added by VinDuv, 14 years ago)

Haiku configure patch — alternative for missing realpath/readlink -e

  • configure

     
    138138    fi
    139139}
    140140
     141# real_path
     142#
     143# returns the realpath of a symbolic link.
     144#
     145real_path()
     146{
     147    perl -MCwd=realpath -e'print realpath($ARGV[0]) . qq(\n)' $1
     148}
     149
    141150# standard_gcc_settings
    142151#
    143152# Sets the variables for a GCC platform.
     
    148157        readlink="greadlink -e"
    149158    elif which realpath > /dev/null 2>&1; then
    150159        readlink=realpath
     160    elif readlink -e / > /dev/null 2>&1; then
     161        readlink="readlink -e"
    151162    else
    152         readlink="readlink -e"
     163        readlink=real_path
    153164    fi
    154165
    155166    # PLATFORM_LINKLIBS