summaryrefslogtreecommitdiff
path: root/mcon/U/libpth.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/libpth.U')
-rw-r--r--mcon/U/libpth.U42
1 files changed, 24 insertions, 18 deletions
diff --git a/mcon/U/libpth.U b/mcon/U/libpth.U
index a152695..d80bb00 100644
--- a/mcon/U/libpth.U
+++ b/mcon/U/libpth.U
@@ -1,12 +1,12 @@
-?RCS: $Id: libpth.U,v 3.0.1.6 1997/02/28 16:08:49 ram Exp $
+?RCS: $Id$
?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
+?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: libpth.U,v $
?RCS: Revision 3.0.1.6 1997/02/28 16:08:49 ram
@@ -35,16 +35,26 @@
?X: This unit initializes the path for C library lookup.
?X:
?MAKE:libpth glibpth xlibpth plibpth loclibpth: \
- usrinc mips incpath test cat Myread Oldconfig
+ usrinc incpath test cat Myread Oldconfig
?MAKE: -pick add $@ %<
?S:libpth:
-?S: This variable holds the general path used to find libraries. It is
-?S: intended to be used by other units.
+?S: This variable holds the general path (space-separated) used to find
+?S: libraries. It is intended to be used by other units.
+?S:.
+?S:glibpth:
+?S: This variable holds the general path (space-separated) used to
+?S: find libraries. It may contain directories that do not exist on
+?S: this platform, libpth is the cleaned-up version.
+?S:.
+?S:xlibpth:
+?S: This variable holds extra path (space-separated) used to find
+?S: libraries on this platform, for example CPU-specific libraries
+?S: (on multi-CPU platforms) may be listed here.
?S:.
?S:loclibpth:
-?S: This variable holds the paths used to find local libraries. It is
-?S: prepended to libpth, and is intended to be easily set from the
-?S: command line.
+?S: This variable holds the paths (space-separated) used to find local
+?S: libraries. It is prepended to libpth, and is intended to be easily
+?S: set from the command line.
?S:.
?S:plibpth:
?S: Holds the private path used by Configure to find out the libraries.
@@ -52,30 +62,26 @@
?S: machines, like the mips. Usually, it should be empty.
?S:.
?T: xxx dlist
+?LINT:use usrinc
?INIT:: change the next line if compiling for Xenix/286 on Xenix/386
?INIT:xlibpth='/usr/lib/386 /lib/386'
-?INIT:
?INIT:: Possible local library directories to search.
?INIT:loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
?INIT:loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
?INIT:
?INIT:: general looking path for locating libraries
-?X: /lib/pa1.1 is for HP-UX specially tuned PA-RISC libraries.
+?INIT:glibpth="/lib /usr/lib $xlibpth"
+?INIT:glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
?X: /shlib is for Digital Unix 4.0
?X: /usr/shlib is for OSF/1 systems.
-?X: I don't know why the large & small libraries are in this order.
-?INIT:glibpth="/shlib /usr/shlib /lib/pa1.1 /usr/lib/large"
-?INIT:glibpth="$glibpth /lib /usr/lib $xlibpth"
-?INIT:glibpth="$glibpth /lib/large /usr/lib/small /lib/small"
-?INIT:glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
+?INIT:test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
+?INIT:test -f /shlib/libc.so && glibpth="/shlib $glibpth"
?INIT:
?INIT:: Private path used by Configure to find libraries. Its value
?INIT:: is prepended to libpth. This variable takes care of special
?INIT:: machines, like the mips. Usually, it should be empty.
?INIT:plibpth=''
?INIT:
-?LINT:describe xlibpth glibpth
-?LINT:use mips usrinc
: Set private lib path
case "$plibpth" in
'') if ./mips; then