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

Annotation of OpenXM_contrib/pari-2.2/config/locatelib, Revision 1.1

1.1     ! noro        1: for dir in $pth; do
        !             2:   case "$osname" in
        !             3:     os2)
        !             4:       try=`ls $dir/$lib.a 2> /dev/null`;;
        !             5:     *)
        !             6:       ok=`(ls $dir/lib$lib.* | head -1) 2> /dev/null`
        !             7:       if test -n "$ok"; then
        !             8:         # for .so and .sl
        !             9:         try=`ls $dir/lib$lib.s? 2> /dev/null`
        !            10:         # in case it's missing a .so, but has e.g a .so.5. Take most recent
        !            11:         if test -z "$try"; then
        !            12:           try=`(ls $dir/lib$lib.s?.* | tail -1) 2> /dev/null`
        !            13:         fi
        !            14:         if test -z "$try"; then
        !            15:           try=`ls $dir/lib$lib.a 2> /dev/null`
        !            16:         else
        !            17:           try=$ok
        !            18:         fi
        !            19:       else
        !            20:         try=
        !            21:       fi;;
        !            22:   esac
        !            23:   if test -n "$try"; then
        !            24:     echo ..."Found lib$lib in $dir";
        !            25:     eval $lib=$dir;
        !            26:     break
        !            27:   fi
        !            28: done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>