[BACK]Return to locatelib CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari / config

File: [local] / OpenXM_contrib / pari / config / Attic / locatelib (download)

Revision 1.1.1.1 (vendor branch), Sun Jan 9 17:35:29 2000 UTC (24 years, 5 months ago) by maekawa
Branch: PARI_GP
CVS Tags: maekawa-ipv6, VERSION_2_0_17_BETA, RELEASE_20000124, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3, RELEASE_1_1_2
Changes since 1.1: +0 -0 lines

Import PARI/GP 2.0.17 beta.

for dir in $pth; do
  case "$osname" in
    os2)
      try=`ls $dir/$lib.a 2> /dev/null`;;
    *)
      ok=`(ls $dir/lib$lib.* | head -1) 2> /dev/null`
      if test -n "$ok"; then
        # for .so and .sl
        try=`ls $dir/lib$lib.s? 2> /dev/null` 
        if test -z "$try"; then
          try=`ls $dir/lib$lib.a 2> /dev/null`
        else 
          try=$ok
        fi
      else
        try=
      fi;;
  esac
  if test -n "$try"; then
    echo ..."Found lib$lib in $dir";
    eval $lib=$dir;
    break
  fi
done