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

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

Revision 1.2, Wed Sep 11 07:26:40 2002 UTC (21 years, 8 months ago) by noro
Branch: MAIN
CVS Tags: RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2
Changes since 1.1: +14 -4 lines

Upgraded pari-2.2 to pari-2.2.4.

_pb= # to detect missing .so when .so.x is found
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
        _pb="$ok"
        # for .so and .sl
        try=`ls $dir/lib$lib.s? 2> /dev/null` 
        # for .dylib
        if test -z "$try"; then
          try=`ls $dir/lib$lib.dylib 2> /dev/null`
        fi
        # for .a
        if test -z "$try"; then
          try=`ls $dir/lib$lib.a 2> /dev/null`
        fi
      else
        try=
      fi;;
  esac
  if test -n "$try"; then
    echo ..."Found lib$lib in $dir";
    eval $lib=$dir;
    break
  fi
done
# not found? detect missing lib*.so (missing *-devel package)
if test -z "$try"; then
  if test "$osname" = linux -a  -n "$_pb"; then
    echo "###"
    echo "### lib$lib.so not found. Please install $lib development files."
    echo "### They usually come in $lib-devel (RPM) or lib$lib-dev (Debian) packages"
    echo "###"
  fi
fi