annotate config.rpath @ 984:2b6184fa7e4a

Updated.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 31 Mar 2013 11:43:27 +0300
parents fa9851e0da4e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #! /bin/sh
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # Output a system dependent set of variables, describing how to set the
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 # run time search path of shared libraries in an executable.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
5 # Copyright 1996-2010 Free Software Foundation, Inc.
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 # Taken from GNU libtool, 2001
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 #
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
9 # This file is free software; the Free Software Foundation gives
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
10 # unlimited permission to copy and/or distribute it, with or without
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
11 # modifications, as long as this notice is preserved.
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 #
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 # The first argument passed to this file is the canonical host specification,
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 # or
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 # should be set by the caller.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 #
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 # The set of defined variables is at the end of this script.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # Known limitations:
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 # than 256 bytes, otherwise the compiler driver will dump core. The only
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 # known workaround is to choose shorter directory names for the build
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 # directory and/or the installation directory.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
28 # All known linkers require a `.a' archive for static linking (except MSVC,
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 # which needs '.lib').
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 libext=a
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 shrext=.so
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 host="$1"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
38 # Code taken from libtool.m4's _LT_CC_BASENAME.
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
39
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
40 for cc_temp in $CC""; do
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
41 case $cc_temp in
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
42 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
43 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
44 \-*) ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
45 *) break;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
46 esac
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
47 done
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
48 cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
49
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
50 # Code taken from libtool.m4's _LT_COMPILER_PIC.
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52 wl=
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53 if test "$GCC" = yes; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54 wl='-Wl,'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
55 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56 case "$host_os" in
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57 aix*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58 wl='-Wl,'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
59 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
60 darwin*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
61 case $cc_basename in
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
62 xlc*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
63 wl='-Wl,'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
64 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
65 esac
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
66 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
67 mingw* | cygwin* | pw32* | os2* | cegcc*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
68 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
69 hpux9* | hpux10* | hpux11*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
70 wl='-Wl,'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
71 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
72 irix5* | irix6* | nonstopux*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
73 wl='-Wl,'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
74 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
75 newsos6)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
76 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
77 linux* | k*bsd*-gnu)
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
78 case $cc_basename in
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
79 ecc*)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
80 wl='-Wl,'
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
81 ;;
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
82 icc* | ifort*)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
83 wl='-Wl,'
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
84 ;;
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
85 lf95*)
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
86 wl='-Wl,'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
87 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
88 pgcc | pgf77 | pgf90)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
89 wl='-Wl,'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
90 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
91 ccc*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
92 wl='-Wl,'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
93 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
94 como)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
95 wl='-lopt='
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
96 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
97 *)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
98 case `$CC -V 2>&1 | sed 5q` in
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
99 *Sun\ C*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
100 wl='-Wl,'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
101 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
102 esac
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
103 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
104 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
105 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
106 osf3* | osf4* | osf5*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
107 wl='-Wl,'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
108 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
109 rdos*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
110 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
111 solaris*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
112 wl='-Wl,'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
113 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
114 sunos4*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
115 wl='-Qoption ld '
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
116 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
117 sysv4 | sysv4.2uw2* | sysv4.3*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
118 wl='-Wl,'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
119 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
120 sysv4*MP*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
121 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
123 wl='-Wl,'
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
124 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
125 unicos*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
126 wl='-Wl,'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
127 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
128 uts4*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
129 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
130 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
131 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
132
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
133 # Code taken from libtool.m4's _LT_LINKER_SHLIBS.
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
134
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
135 hardcode_libdir_flag_spec=
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
136 hardcode_libdir_separator=
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
137 hardcode_direct=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
138 hardcode_minus_L=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
139
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
140 case "$host_os" in
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
141 cygwin* | mingw* | pw32* | cegcc*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
143 # When not using gcc, we currently assume that we are using
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
144 # Microsoft Visual C++.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
145 if test "$GCC" != yes; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
146 with_gnu_ld=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
147 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
148 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
149 interix*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
150 # we just hope/assume this is gcc and not c89 (= MSVC++)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
151 with_gnu_ld=yes
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
152 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
153 openbsd*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
154 with_gnu_ld=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
155 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
156 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
157
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
158 ld_shlibs=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
159 if test "$with_gnu_ld" = yes; then
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
160 # Set some defaults for GNU ld with shared library support. These
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
161 # are reset later if shared libraries are not supported. Putting them
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
162 # here allows them to be overridden if necessary.
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
163 # Unlike libtool, we use -rpath here, not --rpath, since the documented
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
164 # option of GNU ld is called -rpath, not --rpath.
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
166 case "$host_os" in
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
167 aix[3-9]*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
168 # On AIX/PPC, the GNU linker is very broken
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
169 if test "$host_cpu" != ia64; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
170 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
171 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
172 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
173 amigaos*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
174 hardcode_libdir_flag_spec='-L$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
175 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
176 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
177 # that the semantics of dynamic libraries on AmigaOS, at least up
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
178 # to version 4, is to share data among multiple programs linked
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
179 # with the same dynamic library. Since this doesn't match the
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
180 # behavior of shared libraries on other platforms, we cannot use
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
181 # them.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
182 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
183 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
184 beos*)
472
3f02945a0c48 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 423
diff changeset
185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
186 :
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
187 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
188 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
189 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
190 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
191 cygwin* | mingw* | pw32* | cegcc*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
192 # hardcode_libdir_flag_spec is actually meaningless, as there is
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
193 # no search path for DLLs.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
194 hardcode_libdir_flag_spec='-L$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
195 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
196 :
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
197 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
198 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
199 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
200 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
201 interix[3-9]*)
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
202 hardcode_direct=no
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
203 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
204 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
205 gnu* | linux* | k*bsd*-gnu)
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
207 :
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
208 else
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
209 ld_shlibs=no
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
210 fi
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
211 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
212 netbsd*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
213 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
214 solaris*)
472
3f02945a0c48 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 423
diff changeset
215 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
216 ld_shlibs=no
472
3f02945a0c48 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 423
diff changeset
217 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
218 :
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
219 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
220 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
221 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
222 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
224 case `$LD -v 2>&1` in
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
225 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
226 ld_shlibs=no
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
227 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
228 *)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
230 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
231 else
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
232 ld_shlibs=no
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
233 fi
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
234 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
235 esac
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
236 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
237 sunos4*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
238 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
239 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
240 *)
472
3f02945a0c48 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 423
diff changeset
241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
242 :
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
243 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
244 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
245 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
246 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
247 esac
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
248 if test "$ld_shlibs" = no; then
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
249 hardcode_libdir_flag_spec=
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
250 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
251 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
252 case "$host_os" in
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
253 aix3*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
254 # Note: this linker hardcodes the directories in LIBPATH if there
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
255 # are no directories specified by -L.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
256 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
257 if test "$GCC" = yes; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
258 # Neither direct hardcoding nor static linking is supported with a
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
259 # broken collect2.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
260 hardcode_direct=unsupported
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
261 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
262 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
263 aix[4-9]*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
264 if test "$host_cpu" = ia64; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
265 # On IA64, the linker does run time linking by default, so we don't
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
266 # have to do anything special.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
267 aix_use_runtimelinking=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
268 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
269 aix_use_runtimelinking=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
270 # Test if we are trying to use run time linking or normal
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
272 # need to do runtime linking.
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
273 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
274 for ld_flag in $LDFLAGS; do
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
275 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
276 aix_use_runtimelinking=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
277 break
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
278 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
279 done
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
280 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
281 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
282 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
283 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
284 hardcode_libdir_separator=':'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
285 if test "$GCC" = yes; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
286 case $host_os in aix4.[012]|aix4.[012].*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
287 collect2name=`${CC} -print-prog-name=collect2`
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
288 if test -f "$collect2name" && \
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
289 strings "$collect2name" | grep resolve_lib_name >/dev/null
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
290 then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
291 # We have reworked collect2
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
292 :
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
293 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
294 # We have old collect2
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
295 hardcode_direct=unsupported
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
296 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
297 hardcode_libdir_flag_spec='-L$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
298 hardcode_libdir_separator=
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
299 fi
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
300 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
301 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
302 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
303 # Begin _LT_AC_SYS_LIBPATH_AIX.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
304 echo 'int main () { return 0; }' > conftest.c
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
305 ${CC} ${LDFLAGS} conftest.c -o conftest
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
306 aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
307 }'`
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
308 if test -z "$aix_libpath"; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
309 aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
310 }'`
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
311 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
312 if test -z "$aix_libpath"; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
313 aix_libpath="/usr/lib:/lib"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
314 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
315 rm -f conftest.c conftest
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
316 # End _LT_AC_SYS_LIBPATH_AIX.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
317 if test "$aix_use_runtimelinking" = yes; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
319 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
320 if test "$host_cpu" = ia64; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
321 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
322 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
324 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
325 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
326 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
327 amigaos*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
328 hardcode_libdir_flag_spec='-L$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
329 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
330 # see comment about different semantics on the GNU ld section
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
331 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
332 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
333 bsdi[45]*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
334 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
335 cygwin* | mingw* | pw32* | cegcc*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
336 # When not using gcc, we currently assume that we are using
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
337 # Microsoft Visual C++.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
338 # hardcode_libdir_flag_spec is actually meaningless, as there is
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
339 # no search path for DLLs.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
340 hardcode_libdir_flag_spec=' '
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
341 libext=lib
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
342 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
343 darwin* | rhapsody*)
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
344 hardcode_direct=no
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
345 if test "$GCC" = yes ; then
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
346 :
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
347 else
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
348 case $cc_basename in
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
349 xlc*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
350 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
351 *)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
352 ld_shlibs=no
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
353 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
354 esac
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
355 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
356 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
357 dgux*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
358 hardcode_libdir_flag_spec='-L$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
359 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
360 freebsd1*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
361 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
362 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
363 freebsd2.2*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
364 hardcode_libdir_flag_spec='-R$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
365 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
366 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
367 freebsd2*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
368 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
369 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
370 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
371 freebsd* | dragonfly*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
372 hardcode_libdir_flag_spec='-R$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
373 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
374 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
375 hpux9*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
377 hardcode_libdir_separator=:
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
378 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
379 # hardcode_minus_L: Not really in the search PATH,
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
380 # but as the default location of the library.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
381 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
382 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
383 hpux10*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
384 if test "$with_gnu_ld" = no; then
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
386 hardcode_libdir_separator=:
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
387 hardcode_direct=yes
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
388 # hardcode_minus_L: Not really in the search PATH,
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
389 # but as the default location of the library.
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
390 hardcode_minus_L=yes
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
391 fi
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
392 ;;
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
393 hpux11*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
394 if test "$with_gnu_ld" = no; then
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
396 hardcode_libdir_separator=:
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
397 case $host_cpu in
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
398 hppa*64*|ia64*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
399 hardcode_direct=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
400 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
401 *)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
402 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
403 # hardcode_minus_L: Not really in the search PATH,
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
404 # but as the default location of the library.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
405 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
406 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
407 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
408 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
409 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
410 irix5* | irix6* | nonstopux*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
412 hardcode_libdir_separator=:
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
413 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
414 netbsd*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
415 hardcode_libdir_flag_spec='-R$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
416 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
417 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
418 newsos6)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
419 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
421 hardcode_libdir_separator=:
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
422 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
423 openbsd*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
424 if test -f /usr/libexec/ld.so; then
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
425 hardcode_direct=yes
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
428 else
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
429 case "$host_os" in
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
430 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
431 hardcode_libdir_flag_spec='-R$libdir'
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
432 ;;
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
433 *)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
435 ;;
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
436 esac
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
437 fi
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
438 else
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
439 ld_shlibs=no
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
440 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
441 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
442 os2*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
443 hardcode_libdir_flag_spec='-L$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
444 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
445 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
446 osf3*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
448 hardcode_libdir_separator=:
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
449 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
450 osf4* | osf5*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
451 if test "$GCC" = yes; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
453 else
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
454 # Both cc and cxx compiler support -rpath directly
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
455 hardcode_libdir_flag_spec='-rpath $libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
456 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
457 hardcode_libdir_separator=:
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
458 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
459 solaris*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
460 hardcode_libdir_flag_spec='-R$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
461 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
462 sunos4*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
463 hardcode_libdir_flag_spec='-L$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
464 hardcode_direct=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
465 hardcode_minus_L=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
466 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
467 sysv4)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
468 case $host_vendor in
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
469 sni)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
470 hardcode_direct=yes # is this really true???
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
471 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
472 siemens)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
473 hardcode_direct=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
474 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
475 motorola)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
476 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
477 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
478 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
479 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
480 sysv4.3*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
481 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
482 sysv4*MP*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
483 if test -d /usr/nec; then
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
484 ld_shlibs=yes
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
485 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
486 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
487 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
488 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
489 sysv5* | sco3.2v5* | sco5v6*)
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
490 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
491 hardcode_libdir_separator=':'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
492 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
493 uts4*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
494 hardcode_libdir_flag_spec='-L$libdir'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
495 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
496 *)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
497 ld_shlibs=no
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
498 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
499 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
500 fi
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
501
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
502 # Check dynamic linker characteristics
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
503 # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
504 # Unlike libtool.m4, here we don't care about _all_ names of the library, but
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
505 # only about the one the linker finds when passed -lNAME. This is the last
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
506 # element of library_names_spec in libtool.m4, or possibly two of them if the
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
507 # linker has special search rules.
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
508 library_names_spec= # the last element of library_names_spec in libtool.m4
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
509 libname_spec='lib$name'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
510 case "$host_os" in
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
511 aix3*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
512 library_names_spec='$libname.a'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
513 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
514 aix[4-9]*)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
515 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
516 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
517 amigaos*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
518 library_names_spec='$libname.a'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
519 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
520 beos*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
521 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
522 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
523 bsdi[45]*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
524 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
525 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
526 cygwin* | mingw* | pw32* | cegcc*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
527 shrext=.dll
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
528 library_names_spec='$libname.dll.a $libname.lib'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
529 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
530 darwin* | rhapsody*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
531 shrext=.dylib
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
532 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
533 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
534 dgux*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
535 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
536 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
537 freebsd1*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
538 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
539 freebsd* | dragonfly*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
540 case "$host_os" in
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
541 freebsd[123]*)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
542 library_names_spec='$libname$shrext$versuffix' ;;
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
543 *)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
544 library_names_spec='$libname$shrext' ;;
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
545 esac
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
546 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
547 gnu*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
548 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
549 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
550 hpux9* | hpux10* | hpux11*)
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
551 case $host_cpu in
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
552 ia64*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
553 shrext=.so
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
554 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
555 hppa*64*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
556 shrext=.sl
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
557 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
558 *)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
559 shrext=.sl
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
560 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
561 esac
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
562 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
563 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
564 interix[3-9]*)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
565 library_names_spec='$libname$shrext'
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
566 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
567 irix5* | irix6* | nonstopux*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
568 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
569 case "$host_os" in
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
570 irix5* | nonstopux*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
571 libsuff= shlibsuff=
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
572 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
573 *)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
574 case $LD in
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
575 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
578 *) libsuff= shlibsuff= ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
579 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
580 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
581 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
582 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
583 linux*oldld* | linux*aout* | linux*coff*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
584 ;;
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
585 linux* | k*bsd*-gnu)
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
586 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
587 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
588 knetbsd*-gnu)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
589 library_names_spec='$libname$shrext'
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
590 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
591 netbsd*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
592 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
593 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
594 newsos6)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
595 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
596 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
597 nto-qnx*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
598 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
599 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
600 openbsd*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
601 library_names_spec='$libname$shrext$versuffix'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
602 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
603 os2*)
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
604 libname_spec='$name'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
605 shrext=.dll
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
606 library_names_spec='$libname.a'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
607 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
608 osf3* | osf4* | osf5*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
609 library_names_spec='$libname$shrext'
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
610 ;;
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
611 rdos*)
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
612 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
613 solaris*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
614 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
615 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
616 sunos4*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
617 library_names_spec='$libname$shrext$versuffix'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
618 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
619 sysv4 | sysv4.3*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
620 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
621 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
622 sysv4*MP*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
623 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
624 ;;
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
625 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
626 library_names_spec='$libname$shrext'
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
627 ;;
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
628 uts4*)
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
629 library_names_spec='$libname$shrext'
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
630 ;;
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
631 esac
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
632
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
633 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
634 escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
635 shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
636 escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
637 escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
638 escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
639
485
1aed5dfaa9ae Updated config.rpath
Matti Hamalainen <ccr@tnsp.org>
parents: 472
diff changeset
640 LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
641
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
642 # How to pass a linker flag through the compiler.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
643 wl="$escaped_wl"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
644
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
645 # Static library suffix (normally "a").
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
646 libext="$libext"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
647
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
648 # Shared library suffix (normally "so").
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
649 shlibext="$shlibext"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
650
806
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
651 # Format of library name prefix.
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
652 libname_spec="$escaped_libname_spec"
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
653
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
654 # Library names that the linker finds when passed -lNAME.
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
655 library_names_spec="$escaped_library_names_spec"
fa9851e0da4e Update gettext stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 485
diff changeset
656
315
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
657 # Flag to hardcode \$libdir into a binary during linking.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
658 # This must work even if \$libdir does not exist.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
659 hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
660
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
661 # Whether we need a single -rpath flag with a separated argument.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
662 hardcode_libdir_separator="$hardcode_libdir_separator"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
663
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
664 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
665 # resulting binary.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
666 hardcode_direct="$hardcode_direct"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
667
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
668 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
669 # resulting binary.
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
670 hardcode_minus_L="$hardcode_minus_L"
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
671
24cf384ba6db Added missing files (oops) to CVS.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
672 EOF