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