Annotation of embedaddon/libiconv/libcharset/build-aux/config.libpath, revision 1.1.1.2
1.1 misho 1: #! /bin/sh
2: # Output a system dependent set of variables, describing how to set the
3: # run time search path of shared libraries in an executable at run time.
4: #
1.1.1.2 ! misho 5: # Copyright 1996-2019 Free Software Foundation, Inc.
1.1 misho 6: # Taken from GNU libtool, 2003
7: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8: #
1.1.1.2 ! misho 9: # This program is free software: you can redistribute it and/or modify
1.1 misho 10: # it under the terms of the GNU General Public License as published by
1.1.1.2 ! misho 11: # the Free Software Foundation; either version 3 of the License, or
1.1 misho 12: # (at your option) any later version.
13: #
1.1.1.2 ! misho 14: # This program is distributed in the hope that it will be useful,
! 15: # but WITHOUT ANY WARRANTY; without even the implied warranty of
! 16: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 17: # GNU General Public License for more details.
1.1 misho 18: #
19: # You should have received a copy of the GNU General Public License
1.1.1.2 ! misho 20: # along with this program. If not, see <https://www.gnu.org/licenses/>.
1.1 misho 21: #
22: # As a special exception to the GNU General Public License, if you
23: # distribute this file as part of a program that contains a
24: # configuration script generated by Autoconf, you may include it under
25: # the same distribution terms that you use for the rest of that program.
26: #
27: # The first argument passed to this file is the canonical host specification,
28: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
29: # or
30: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
31: # The environment variable LD should be set by the caller.
32: #
33: # The set of defined variables is at the end of this script.
34:
35: host="$1"
36: host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
37: host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
38: host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
39:
40: shlibpath_var=
41: case $host_os in
42: aix3*)
43: shlibpath_var=LIBPATH
44: ;;
1.1.1.2 ! misho 45: aix[4-9]*)
1.1 misho 46: if test "$host_cpu" = ia64; then
47: # AIX 5 supports IA64
48: shlibpath_var=LD_LIBRARY_PATH
49: else
50: shlibpath_var=LIBPATH
51: fi
52: ;;
53: beos*)
54: shlibpath_var=LIBRARY_PATH
55: ;;
1.1.1.2 ! misho 56: bsdi[45]*)
1.1 misho 57: shlibpath_var=LD_LIBRARY_PATH
58: ;;
1.1.1.2 ! misho 59: cygwin* | mingw* | pw32* | cegcc*)
1.1 misho 60: # FIXME: first we should search . and the directory the executable is in
61: shlibpath_var=PATH
62: ;;
63: darwin* | rhapsody*)
64: shlibpath_var=DYLD_LIBRARY_PATH
65: ;;
1.1.1.2 ! misho 66: dgux*)
1.1 misho 67: shlibpath_var=LD_LIBRARY_PATH
68: ;;
1.1.1.2 ! misho 69: freebsd* | dragonfly*)
1.1 misho 70: shlibpath_var=LD_LIBRARY_PATH
71: ;;
72: gnu*)
73: shlibpath_var=LD_LIBRARY_PATH
74: ;;
75: hpux9* | hpux10* | hpux11*)
1.1.1.2 ! misho 76: case "$host_cpu" in
! 77: ia64* | hppa*64*) shlibpath_var=LD_LIBRARY_PATH ;;
! 78: *) shlibpath_var=SHLIB_PATH ;;
! 79: esac
! 80: ;;
! 81: interix[3-9]*)
! 82: shlibpath_var=LD_LIBRARY_PATH
1.1 misho 83: ;;
84: irix5* | irix6* | nonstopux*)
85: case $host_os in
86: irix5* | nonstopux*)
87: shlibsuff=
88: ;;
89: *)
90: case $LD in # libtool.m4 will add one of these switches to LD
91: *-32|*"-32 ") shlibsuff= ;;
92: *-n32|*"-n32 ") shlibsuff=N32 ;;
93: *-64|*"-64 ") shlibsuff=64 ;;
94: *) shlibsuff= ;;
95: esac
96: ;;
97: esac
98: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
99: ;;
1.1.1.2 ! misho 100: linux*oldld* | linux*aout* | linux*coff*)
1.1 misho 101: ;;
1.1.1.2 ! misho 102: linux* | k*bsd*-gnu)
1.1 misho 103: shlibpath_var=LD_LIBRARY_PATH
104: ;;
105: netbsd*)
106: shlibpath_var=LD_LIBRARY_PATH
107: ;;
108: newsos6)
109: shlibpath_var=LD_LIBRARY_PATH
110: ;;
1.1.1.2 ! misho 111: nto-qnx*)
! 112: shlibpath_var=LD_LIBRARY_PATH
! 113: ;;
1.1 misho 114: openbsd*)
115: shlibpath_var=LD_LIBRARY_PATH
116: ;;
117: os2*)
118: shlibpath_var=LIBPATH
119: ;;
120: osf3* | osf4* | osf5*)
121: shlibpath_var=LD_LIBRARY_PATH
122: ;;
1.1.1.2 ! misho 123: rdos*)
1.1 misho 124: ;;
125: solaris*)
126: shlibpath_var=LD_LIBRARY_PATH
127: ;;
128: sunos4*)
129: shlibpath_var=LD_LIBRARY_PATH
130: ;;
1.1.1.2 ! misho 131: sysv4 | sysv4.3*)
1.1 misho 132: shlibpath_var=LD_LIBRARY_PATH
133: ;;
134: sysv4*MP*)
135: if test -d /usr/nec ;then
136: shlibpath_var=LD_LIBRARY_PATH
137: fi
138: ;;
1.1.1.2 ! misho 139: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 140: shlibpath_var=LD_LIBRARY_PATH
! 141: ;;
! 142: uts4*)
! 143: shlibpath_var=LD_LIBRARY_PATH
! 144: ;;
1.1 misho 145: esac
146:
147: LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
148:
149: # This is the shared library path variable.
150: shlibpath_var=$shlibpath_var
151:
152: EOF
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>