This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / libnm.U
1 ?RCS: $Id: libnm.U 1 2006-08-24 12:32:52Z rmanfredi $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 ?RCS: 
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
10 ?RCS:
11 ?RCS: $Log: libnm.U,v $
12 ?RCS: Revision 3.0.1.1  1997/02/28  16:08:26  ram
13 ?RCS: patch61: replaced .a with $_a all over the place
14 ?RCS:
15 ?RCS: Revision 3.0  1993/08/18  12:09:01  ram
16 ?RCS: Baseline for dist 3.0 netwide release.
17 ?RCS:
18 ?MAKE:libnm: test Loc libpth _a
19 ?MAKE:  -pick add $@ %<
20 ?S:libnm:
21 ?S:     This variable contains the argument to pass to the loader in order
22 ?S:     to get the new math library routines.  If there is no new math
23 ?S:     library, it is null.
24 ?S:.
25 ?T:ans
26 ?O: use libswanted='-lnm' instead (see libs.U).
27 : see if we should include -lnm
28 echo " "
29 if $test -r /usr/lib/libnm$_a || $test -r /usr/local/lib/libnm$_a ; then
30         echo "New math library found." >&4
31         libnm='-lnm'
32 else
33         ans=`./loc libnm$_a x $libpth`
34         case "$ans" in
35         x)
36                 echo "No nm library found--the normal math library will have to do." >&4
37                 libnm=''
38                 ;;
39         *)
40                 echo "New math library found in $ans." >&4
41                 libnm="$ans"
42                 ;;
43         esac
44 fi
45