Codebase list libdvbpsi / 124de24
Merge tag 'upstream/1.3.1' Upstream version 1.3.1 # gpg: Signature made 2017-02-17T22:24:29 CET # gpg: using RSA key F78CBA07817BB149A11D339069F2FC516EA71993 # gpg: issuer "sramacher@debian.org" # gpg: Good signature from "Sebastian Ramacher <sebastian@ramacher.at>" [ultimate] # gpg: aka "Sebastian Ramacher <s.ramacher@gmail.com>" [ultimate] # gpg: aka "Sebastian Ramacher <s.ramacher@gmx.at>" [ultimate] # gpg: aka "Sebastian Ramacher <s.ramacher@student.tugraz.at>" [ultimate] # gpg: aka "Sebastian Ramacher <sramacher@debian.org>" [ultimate] # gpg: aka "Sebastian Ramacher <sebastian.ramacher@iaik.tugraz.at>" [ultimate] Sebastian Ramacher 7 years ago
34 changed file(s) with 7152 addition(s) and 4686 deletion(s). Raw diff Collapse all Expand all
22
33 scriptversion=2012-10-14.11; # UTC
44
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-03-23'
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-01-01'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2323 # program. This Exception is an additional permission under section 7
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525 #
26 # Originally written by Per Bothner.
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
2929 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3030 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
31 # Please send patches to <config-patches@gnu.org>.
3232
3333
3434 me=`echo "$0" | sed -e 's,.*/,,'`
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2014 Free Software Foundation, Inc.
52 Copyright 1992-2015 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
578578 else
579579 IBM_ARCH=powerpc
580580 fi
581 if [ -x /usr/bin/oslevel ] ; then
582 IBM_REV=`/usr/bin/oslevel`
581 if [ -x /usr/bin/lslpp ] ; then
582 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
583 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
583584 else
584585 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
585586 fi
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-07-28'
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-01-01'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525
2626
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
27 # Please send patches to <config-patches@gnu.org>.
2828 #
2929 # Configuration subroutine to validate and canonicalize a configuration type.
3030 # Supply the specified configuration type as an argument.
6767 version="\
6868 GNU config.sub ($timestamp)
6969
70 Copyright 1992-2014 Free Software Foundation, Inc.
70 Copyright 1992-2015 Free Software Foundation, Inc.
7171
7272 This is free software; see the source for copying conditions. There is NO
7373 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
259259 | c4x | c8051 | clipper \
260260 | d10v | d30v | dlx | dsp16xx \
261261 | epiphany \
262 | fido | fr30 | frv \
262 | fido | fr30 | frv | ft32 \
263263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264264 | hexagon \
265265 | i370 | i860 | i960 | ia64 \
301301 | pdp10 | pdp11 | pj | pjl \
302302 | powerpc | powerpc64 | powerpc64le | powerpcle \
303303 | pyramid \
304 | riscv32 | riscv64 \
304305 | rl78 | rx \
305306 | score \
306307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
311312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
312313 | ubicom32 \
313314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
315 | visium \
314316 | we32k \
315317 | x86 | xc16x | xstormy16 | xtensa \
316318 | z8k | z80)
324326 ;;
325327 c6x)
326328 basic_machine=tic6x-unknown
329 ;;
330 leon|leon[3-9])
331 basic_machine=sparc-$basic_machine
327332 ;;
328333 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
329334 basic_machine=$basic_machine-unknown
435440 | ubicom32-* \
436441 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
437442 | vax-* \
443 | visium-* \
438444 | we32k-* \
439445 | x86-* | x86_64-* | xc16x-* | xps100-* \
440446 | xstormy16-* | xtensa*-* \
771777 isi68 | isi)
772778 basic_machine=m68k-isi
773779 os=-sysv
780 ;;
781 leon-*|leon[3-9]-*)
782 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
774783 ;;
775784 m68knommu)
776785 basic_machine=m68k-unknown
22
33 scriptversion=2013-05-30.07; # UTC
44
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-11-20.07; # UTC
3 scriptversion=2013-12-25.23; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
4040 # This script is compatible with the BSD install script, but was written
4141 # from scratch.
4242
43 tab=' '
4344 nl='
4445 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
5050 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
51 doit_exec=${doit:-exec}
5652
5753 # Put in absolute file names if you don't have them in your path;
5854 # or use environment vars.
6763 rmprog=${RMPROG-rm}
6864 stripprog=${STRIPPROG-strip}
6965
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
8166 posix_mkdir=
8267
8368 # Desired mode of installed file.
9681 dst_arg=
9782
9883 copy_on_change=false
99 no_target_directory=
84 is_target_a_directory=possibly
10085
10186 usage="\
10287 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
136121 -d) dir_arg=true;;
137122
138123 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
124 shift;;
140125
141126 --help) echo "$usage"; exit $?;;
142127
143128 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
151135
152136 -o) chowncmd="$chownprog $2"
153 shift;;
137 shift;;
154138
155139 -s) stripcmd=$stripprog;;
156140
157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
162 shift;;
163
164 -T) no_target_directory=true;;
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
165151
166152 --version) echo "$0 $scriptversion"; exit $?;;
167153
168 --) shift
169 break;;
170
171 -*) echo "$0: invalid option: $1" >&2
172 exit 1;;
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
173159
174160 *) break;;
175161 esac
176162 shift
177163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
178174
179175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
180176 # When -d is used, all remaining arguments are directories to create.
207203 fi
208204
209205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
210215 do_exit='(exit $ret); exit $ret'
211216 trap "ret=129; $do_exit" 1
212217 trap "ret=130; $do_exit" 2
222227
223228 *[0-7])
224229 if test -z "$stripcmd"; then
225 u_plus_rw=
230 u_plus_rw=
226231 else
227 u_plus_rw='% 200'
232 u_plus_rw='% 200'
228233 fi
229234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
230235 *)
231236 if test -z "$stripcmd"; then
232 u_plus_rw=
237 u_plus_rw=
233238 else
234 u_plus_rw=,u+rw
239 u_plus_rw=,u+rw
235240 fi
236241 cp_umask=$mode$u_plus_rw;;
237242 esac
268273 # If destination is a directory, append the input filename; won't work
269274 # if double slashes aren't ignored.
270275 if test -d "$dst"; then
271 if test -n "$no_target_directory"; then
272 echo "$0: $dst_arg: Is a directory" >&2
273 exit 1
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
274279 fi
275280 dstdir=$dst
276281 dst=$dstdir/`basename "$src"`
277282 dstdir_status=0
278283 else
279 # Prefer dirname, but fall back on a substitute if dirname fails.
280 dstdir=`
281 (dirname "$dst") 2>/dev/null ||
282 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
283 X"$dst" : 'X\(//\)[^/]' \| \
284 X"$dst" : 'X\(//\)$' \| \
285 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
286 echo X"$dst" |
287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
288 s//\1/
289 q
290 }
291 /^X\(\/\/\)[^/].*/{
292 s//\1/
293 q
294 }
295 /^X\(\/\/\)$/{
296 s//\1/
297 q
298 }
299 /^X\(\/\).*/{
300 s//\1/
301 q
302 }
303 s/.*/./; q'
304 `
305
284 dstdir=`dirname "$dst"`
306285 test -d "$dstdir"
307286 dstdir_status=$?
308287 fi
313292 if test $dstdir_status != 0; then
314293 case $posix_mkdir in
315294 '')
316 # Create intermediate dirs using mode 755 as modified by the umask.
317 # This is like FreeBSD 'install' as of 1997-10-28.
318 umask=`umask`
319 case $stripcmd.$umask in
320 # Optimize common cases.
321 *[2367][2367]) mkdir_umask=$umask;;
322 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
323
324 *[0-7])
325 mkdir_umask=`expr $umask + 22 \
326 - $umask % 100 % 40 + $umask % 20 \
327 - $umask % 10 % 4 + $umask % 2
328 `;;
329 *) mkdir_umask=$umask,go-w;;
330 esac
331
332 # With -d, create the new directory with the user-specified mode.
333 # Otherwise, rely on $mkdir_umask.
334 if test -n "$dir_arg"; then
335 mkdir_mode=-m$mode
336 else
337 mkdir_mode=
338 fi
339
340 posix_mkdir=false
341 case $umask in
342 *[123567][0-7][0-7])
343 # POSIX mkdir -p sets u+wx bits regardless of umask, which
344 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
345 ;;
346 *)
347 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
348 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
349
350 if (umask $mkdir_umask &&
351 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
352 then
353 if test -z "$dir_arg" || {
354 # Check for POSIX incompatibilities with -m.
355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writable bit of parent directory when it shouldn't.
357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359 case $ls_ld_tmpdir in
360 d????-?r-*) different_mode=700;;
361 d????-?--*) different_mode=755;;
362 *) false;;
363 esac &&
364 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
365 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
366 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
367 }
368 }
369 then posix_mkdir=:
370 fi
371 rmdir "$tmpdir/d" "$tmpdir"
372 else
373 # Remove any dirs left behind by ancient mkdir implementations.
374 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
375 fi
376 trap '' 0;;
377 esac;;
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
327 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
328
329 if (umask $mkdir_umask &&
330 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
331 then
332 if test -z "$dir_arg" || {
333 # Check for POSIX incompatibilities with -m.
334 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
335 # other-writable bit of parent directory when it shouldn't.
336 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
337 ls_ld_tmpdir=`ls -ld "$tmpdir"`
338 case $ls_ld_tmpdir in
339 d????-?r-*) different_mode=700;;
340 d????-?--*) different_mode=755;;
341 *) false;;
342 esac &&
343 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
344 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
345 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
346 }
347 }
348 then posix_mkdir=:
349 fi
350 rmdir "$tmpdir/d" "$tmpdir"
351 else
352 # Remove any dirs left behind by ancient mkdir implementations.
353 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
354 fi
355 trap '' 0;;
356 esac;;
378357 esac
379358
380359 if
381360 $posix_mkdir && (
382 umask $mkdir_umask &&
383 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
361 umask $mkdir_umask &&
362 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
384363 )
385364 then :
386365 else
390369 # directory the slow way, step by step, checking for races as we go.
391370
392371 case $dstdir in
393 /*) prefix='/';;
394 [-=\(\)!]*) prefix='./';;
395 *) prefix='';;
372 /*) prefix='/';;
373 [-=\(\)!]*) prefix='./';;
374 *) prefix='';;
396375 esac
397
398 eval "$initialize_posix_glob"
399376
400377 oIFS=$IFS
401378 IFS=/
402 $posix_glob set -f
379 set -f
403380 set fnord $dstdir
404381 shift
405 $posix_glob set +f
382 set +f
406383 IFS=$oIFS
407384
408385 prefixes=
409386
410387 for d
411388 do
412 test X"$d" = X && continue
413
414 prefix=$prefix$d
415 if test -d "$prefix"; then
416 prefixes=
417 else
418 if $posix_mkdir; then
419 (umask=$mkdir_umask &&
420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
421 # Don't fail if two instances are running concurrently.
422 test -d "$prefix" || exit 1
423 else
424 case $prefix in
425 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
426 *) qprefix=$prefix;;
427 esac
428 prefixes="$prefixes '$qprefix'"
429 fi
430 fi
431 prefix=$prefix/
389 test X"$d" = X && continue
390
391 prefix=$prefix$d
392 if test -d "$prefix"; then
393 prefixes=
394 else
395 if $posix_mkdir; then
396 (umask=$mkdir_umask &&
397 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
398 # Don't fail if two instances are running concurrently.
399 test -d "$prefix" || exit 1
400 else
401 case $prefix in
402 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
403 *) qprefix=$prefix;;
404 esac
405 prefixes="$prefixes '$qprefix'"
406 fi
407 fi
408 prefix=$prefix/
432409 done
433410
434411 if test -n "$prefixes"; then
435 # Don't fail if two instances are running concurrently.
436 (umask $mkdir_umask &&
437 eval "\$doit_exec \$mkdirprog $prefixes") ||
438 test -d "$dstdir" || exit 1
439 obsolete_mkdir_used=true
412 # Don't fail if two instances are running concurrently.
413 (umask $mkdir_umask &&
414 eval "\$doit_exec \$mkdirprog $prefixes") ||
415 test -d "$dstdir" || exit 1
416 obsolete_mkdir_used=true
440417 fi
441418 fi
442419 fi
471448
472449 # If -C, don't bother to copy if it wouldn't change the file.
473450 if $copy_on_change &&
474 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
475 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
476
477 eval "$initialize_posix_glob" &&
478 $posix_glob set -f &&
451 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
452 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
453 set -f &&
479454 set X $old && old=:$2:$4:$5:$6 &&
480455 set X $new && new=:$2:$4:$5:$6 &&
481 $posix_glob set +f &&
482
456 set +f &&
483457 test "$old" = "$new" &&
484458 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
485459 then
492466 # to itself, or perhaps because mv is so ancient that it does not
493467 # support -f.
494468 {
495 # Now remove or move aside any old file at destination location.
496 # We try this two ways since rm can't unlink itself on some
497 # systems and the destination file might be busy for other
498 # reasons. In this case, the final cleanup might fail but the new
499 # file should still install successfully.
500 {
501 test ! -f "$dst" ||
502 $doit $rmcmd -f "$dst" 2>/dev/null ||
503 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
504 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
505 } ||
506 { echo "$0: cannot unlink or rename $dst" >&2
507 (exit 1); exit 1
508 }
509 } &&
510
511 # Now rename the file to the real destination.
512 $doit $mvcmd "$dsttmp" "$dst"
469 # Now remove or move aside any old file at destination location.
470 # We try this two ways since rm can't unlink itself on some
471 # systems and the destination file might be busy for other
472 # reasons. In this case, the final cleanup might fail but the new
473 # file should still install successfully.
474 {
475 test ! -f "$dst" ||
476 $doit $rmcmd -f "$dst" 2>/dev/null ||
477 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
478 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
479 } ||
480 { echo "$0: cannot unlink or rename $dst" >&2
481 (exit 1); exit 1
482 }
483 } &&
484
485 # Now rename the file to the real destination.
486 $doit $mvcmd "$dsttmp" "$dst"
513487 }
514488 fi || exit 1
515489
0
1 # libtool (GNU libtool) 2.4.2
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
26 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
37
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
69 # This is free software; see the source for copying conditions. There is NO
710 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
811
2225 # General Public License for more details.
2326 #
2427 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
49 #
50 # MODE must be one of the following:
51 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
59 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
63 #
64 # When reporting a bug, please describe a test case to reproduce it and
65 # include the following information:
66 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2
73 # automake: $automake_version
74 # autoconf: $autoconf_version
75 #
76 # Report bugs to <bug-libtool@gnu.org>.
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
7930
8031 PROGRAM=libtool
8132 PACKAGE=libtool
82 VERSION=2.4.2
83 TIMESTAMP=""
84 package_revision=1.3337
85
86 # Be Bourne compatible
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33 VERSION=2.4.6
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
88118 emulate sh
89119 NULLCMD=:
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
91121 # is contrary to our usage. Disable this feature.
92122 alias -g '${1+"$@"}'='"$@"'
93123 setopt NO_GLOB_SUBST
94124 else
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
96126 fi
97 BIN_SH=xpg4; export BIN_SH # for Tru64
98 DUALCASE=1; export DUALCASE # for MKS sh
99
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
108 # NLS nuisances: We save the old values to restore during execute mode.
109 lt_user_locale=
110 lt_safe_locale=
111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
112132 do
113 eval "if test \"\${$lt_var+set}\" = set; then
114 save_$lt_var=\$$lt_var
115 $lt_var=C
116 export $lt_var
117 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
119139 fi"
120140 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124
125 $lt_unset CDPATH
126
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
127401
128402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129403 # is ksh but when the shell is invoked as "sh" and the current value of
130404 # the _XPG environment variable is not equal to 1 (one), the special
131405 # positional parameter $0, within a function call, is the name of the
132406 # function.
133 progpath="$0"
134
135
136
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${MAKE="make"}
140 : ${MKDIR="mkdir"}
141 : ${MV="mv -f"}
142 : ${RM="rm -f"}
143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144 : ${Xsed="$SED -e 1s/^X//"}
145
146 # Global variables:
147 EXIT_SUCCESS=0
148 EXIT_FAILURE=1
149 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
150 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
151
152 exit_status=$EXIT_SUCCESS
153
154 # Make sure IFS has a sensible default
155 lt_nl='
156 '
157 IFS=" $lt_nl"
158
159 dirname="s,/[^/]*$,,"
160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
163679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164680 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
182
183 # func_dirname_and_basename file append nondir_replacement
184 # perform func_basename and func_dirname in a single function
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
185692 # call:
186693 # dirname: Compute the dirname of FILE. If nonempty,
187694 # add APPEND to the result, otherwise set result
189696 # value returned in "$func_dirname_result"
190697 # basename: Compute filename of FILE.
191698 # value retuned in "$func_basename_result"
192 # Implementation must be kept synchronized with func_dirname
193 # and func_basename. For efficiency, we do not delegate to
194 # those functions but instead duplicate the functionality here.
195 func_dirname_and_basename ()
196 {
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
201898 else
202 func_dirname_result="$func_dirname_result${2}"
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
203916 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
917
918 $ECHO "$_G_tmpdir"
919 }
920
232921
233922 # func_normal_abspath PATH
923 # ------------------------
234924 # Remove doubled-up and trailing slashes, "." path components,
235925 # and cancel out any ".." path components in PATH after making
236926 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238927 func_normal_abspath ()
239928 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
287976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
337984 fi
338985 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
360 fi
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
370
371 # The name of this program:
372 func_dirname_and_basename "$progpath"
373 progname=$func_basename_result
374
375 # Make sure we have an absolute path for reexecution:
376 case $progpath in
377 [\\/]*|[A-Za-z]:\\*) ;;
378 *[\\/]*)
379 progdir=$func_dirname_result
380 progdir=`cd "$progdir" && pwd`
381 progpath="$progdir/$progname"
382 ;;
383 *)
384 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
386 for progdir in $PATH; do
387 IFS="$save_IFS"
388 test -x "$progdir/$progname" && break
389 done
390 IFS="$save_IFS"
391 test -n "$progdir" || progdir=`pwd`
392 progpath="$progdir/$progname"
393 ;;
394 esac
395
396 # Sed substitution that helps us do robust quoting. It backslashifies
397 # metacharacters that are still active within double-quoted strings.
398 Xsed="${SED}"' -e 1s/^X//'
399 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
400
401 # Same as above, but do not quote variable references.
402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
412
413 # Re-`\' parameter expansions in output of double_quote_subst that were
414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
415 # in input to double_quote_subst, that '$' was protected from expansion.
416 # Since each input `\' is now two `\'s, look for any number of runs of
417 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
418 bs='\\'
419 bs2='\\\\'
420 bs4='\\\\\\\\'
421 dollar='\$'
422 sed_double_backslash="\
423 s/$bs4/&\\
424 /g
425 s/^$bs2$dollar/$bs&/
426 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
427 s/\n//g"
428
429 # Standard options:
430 opt_dry_run=false
431 opt_help=false
432 opt_quiet=false
433 opt_verbose=false
434 opt_warning=:
435
436 # func_echo arg...
437 # Echo program name prefixed message, along with the current mode
438 # name if it has been set yet.
439 func_echo ()
440 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
442 }
443
444 # func_verbose arg...
445 # Echo program name prefixed message in verbose mode only.
446 func_verbose ()
447 {
448 $opt_verbose && func_echo ${1+"$@"}
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
4491020
4501021 # A bug in bash halts the script if the last line of a function
4511022 # fails when set -e is in force, so we need another command to
4531024 :
4541025 }
4551026
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463 # func_error arg...
464 # Echo program name prefixed message to standard error.
465 func_error ()
466 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
468 }
469
470 # func_warning arg...
471 # Echo program name prefixed warning message to standard error.
472 func_warning ()
473 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
475
476 # bash bug again:
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
4771089 :
4781090 }
4791091
480 # func_fatal_error arg...
481 # Echo program name prefixed message to standard error, and exit.
482 func_fatal_error ()
483 {
484 func_error ${1+"$@"}
485 exit $EXIT_FAILURE
486 }
487
488 # func_fatal_help arg...
489 # Echo program name prefixed message to standard error, followed by
490 # a help hint, and exit.
491 func_fatal_help ()
492 {
493 func_error ${1+"$@"}
494 func_fatal_error "$help"
495 }
496 help="Try \`$progname --help' for more information." ## default
497
498
499 # func_grep expression filename
500 # Check whether EXPRESSION matches any line of FILENAME, without output.
501 func_grep ()
502 {
503 $GREP "$1" "$2" >/dev/null 2>&1
504 }
505
506
507 # func_mkdir_p directory-path
508 # Make sure the entire path to DIRECTORY-PATH is available.
509 func_mkdir_p ()
510 {
511 my_directory_path="$1"
512 my_dir_list=
513
514 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
515
516 # Protect directory names starting with `-'
517 case $my_directory_path in
518 -*) my_directory_path="./$my_directory_path" ;;
1092
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1103 {
1104 $debug_cmd
1105
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
5191114 esac
520
521 # While some portion of DIR does not yet exist...
522 while test ! -d "$my_directory_path"; do
523 # ...make a list in topmost first order. Use a colon delimited
524 # list incase some portion of path contains whitespace.
525 my_dir_list="$my_directory_path:$my_dir_list"
526
527 # If the last portion added has no slash in it, the list is done
528 case $my_directory_path in */*) ;; *) break ;; esac
529
530 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
532 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
534
535 save_mkdir_p_IFS="$IFS"; IFS=':'
536 for my_dir in $my_dir_list; do
537 IFS="$save_mkdir_p_IFS"
538 # mkdir can fail with a `File exist' error if two processes
539 # try to create one of the directories concurrently. Don't
540 # stop in that case!
541 $MKDIR "$my_dir" 2>/dev/null || :
542 done
543 IFS="$save_mkdir_p_IFS"
544
545 # Bail out if we (or some other process) failed to create a directory.
546 test -d "$my_directory_path" || \
547 func_fatal_error "Failed to create \`$1'"
548 fi
549 }
550
551
552 # func_mktempdir [string]
553 # Make a temporary directory that won't clash with other running
554 # libtool processes, and avoids race conditions if possible. If
555 # given, STRING is the basename for that directory.
556 func_mktempdir ()
557 {
558 my_template="${TMPDIR-/tmp}/${1-$progname}"
559
560 if test "$opt_dry_run" = ":"; then
561 # Return a directory name, but don't create it in dry-run mode
562 my_tmpdir="${my_template}-$$"
563 else
564
565 # If mktemp works, use that first and foremost
566 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
567
568 if test ! -d "$my_tmpdir"; then
569 # Failing that, at least try and use $RANDOM to avoid a race
570 my_tmpdir="${my_template}-${RANDOM-0}$$"
571
572 save_mktempdir_umask=`umask`
573 umask 0077
574 $MKDIR "$my_tmpdir"
575 umask $save_mktempdir_umask
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
5761119 fi
5771120
578 # If we're not in dry-run mode, bomb out on failure
579 test -d "$my_tmpdir" || \
580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581 fi
582
583 $ECHO "$my_tmpdir"
584 }
585
586
587 # func_quote_for_eval arg
588 # Aesthetically quote ARG to be evaled later.
589 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
590 # is double-quoted, suitable for a subsequent eval, whereas
591 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
592 # which are still active within double quotes backslashified.
593 func_quote_for_eval ()
594 {
595 case $1 in
596 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
598 *)
599 func_quote_for_eval_unquoted_result="$1" ;;
600 esac
601
602 case $func_quote_for_eval_unquoted_result in
603 # Double-quote args containing shell metacharacters to delay
604 # word splitting, command substitution and and variable
605 # expansion for a subsequent eval.
606 # Many Bourne shells cannot handle close brackets correctly
607 # in scan sets, so we specify it separately.
608 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
609 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
610 ;;
611 *)
612 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
613 esac
614 }
615
616
617 # func_quote_for_expand arg
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1129 ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1133 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1137 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1139 fi
1140 shift
1141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
6181147 # Aesthetically quote ARG to be evaled later; same as above,
6191148 # but do not quote variable references.
6201149 func_quote_for_expand ()
6211150 {
1151 $debug_cmd
1152
6221153 case $1 in
6231154 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
6261157 *)
627 my_arg="$1" ;;
1158 _G_arg=$1 ;;
6281159 esac
6291160
630 case $my_arg in
1161 case $_G_arg in
6311162 # Double-quote args containing shell metacharacters to delay
6321163 # word splitting and command substitution for a subsequent eval.
6331164 # Many Bourne shells cannot handle close brackets correctly
6341165 # in scan sets, so we specify it separately.
6351166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
1167 _G_arg=\"$_G_arg\"
6371168 ;;
6381169 esac
6391170
640 func_quote_for_expand_result="$my_arg"
641 }
642
643
644 # func_show_eval cmd [fail_exp]
645 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1171 func_quote_for_expand_result=$_G_arg
1172 }
1173
1174
1175 # func_stripname PREFIX SUFFIX NAME
1176 # ---------------------------------
1177 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1178 # PREFIX and SUFFIX must not contain globbing or regex special
1179 # characters, hashes, percent signs, but SUFFIX may contain a leading
1180 # dot (in which case that matches only a dot).
1181 if test yes = "$_G_HAVE_XSI_OPS"; then
1182 eval 'func_stripname ()
1183 {
1184 $debug_cmd
1185
1186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1187 # positional parameters, so assign one to ordinary variable first.
1188 func_stripname_result=$3
1189 func_stripname_result=${func_stripname_result#"$1"}
1190 func_stripname_result=${func_stripname_result%"$2"}
1191 }'
1192 else
1193 func_stripname ()
1194 {
1195 $debug_cmd
1196
1197 case $2 in
1198 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1199 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1200 esac
1201 }
1202 fi
1203
1204
1205 # func_show_eval CMD [FAIL_EXP]
1206 # -----------------------------
1207 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6461208 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6471209 # is given, then evaluate it.
6481210 func_show_eval ()
6491211 {
650 my_cmd="$1"
651 my_fail_exp="${2-:}"
652
653 ${opt_silent-false} || {
654 func_quote_for_expand "$my_cmd"
655 eval "func_echo $func_quote_for_expand_result"
1212 $debug_cmd
1213
1214 _G_cmd=$1
1215 _G_fail_exp=${2-':'}
1216
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1219
1220 $opt_dry_run || {
1221 eval "$_G_cmd"
1222 _G_status=$?
1223 if test 0 -ne "$_G_status"; then
1224 eval "(exit $_G_status); $_G_fail_exp"
1225 fi
6561226 }
657
658 if ${opt_dry_run-false}; then :; else
659 eval "$my_cmd"
660 my_status=$?
661 if test "$my_status" -eq 0; then :; else
662 eval "(exit $my_status); $my_fail_exp"
663 fi
664 fi
665 }
666
667
668 # func_show_eval_locale cmd [fail_exp]
669 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1227 }
1228
1229
1230 # func_show_eval_locale CMD [FAIL_EXP]
1231 # ------------------------------------
1232 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6701233 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6711234 # is given, then evaluate it. Use the saved locale for evaluation.
6721235 func_show_eval_locale ()
6731236 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
1237 $debug_cmd
1238
1239 _G_cmd=$1
1240 _G_fail_exp=${2-':'}
1241
1242 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
6791244 eval "func_echo $func_quote_for_expand_result"
6801245 }
6811246
682 if ${opt_dry_run-false}; then :; else
683 eval "$lt_user_locale
684 $my_cmd"
685 my_status=$?
686 eval "$lt_safe_locale"
687 if test "$my_status" -eq 0; then :; else
688 eval "(exit $my_status); $my_fail_exp"
1247 $opt_dry_run || {
1248 eval "$_G_user_locale
1249 $_G_cmd"
1250 _G_status=$?
1251 eval "$_G_safe_locale"
1252 if test 0 -ne "$_G_status"; then
1253 eval "(exit $_G_status); $_G_fail_exp"
6891254 fi
690 fi
691 }
1255 }
1256 }
1257
6921258
6931259 # func_tr_sh
1260 # ----------
6941261 # Turn $1 into a string suitable for a shell variable name.
6951262 # Result is stored in $func_tr_sh_result. All characters
6961263 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
6971264 # if $1 begins with a digit, a '_' is prepended as well.
6981265 func_tr_sh ()
6991266 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
710
711 # func_version
712 # Echo version message to standard output and exit.
713 func_version ()
714 {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
726 s/^# //
727 s/^# *$//
728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
729 p
730 }' < "$progpath"
731 exit $?
732 }
733
734 # func_usage
735 # Echo short help message to standard output and exit.
736 func_usage ()
737 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
741 s/^# //
742 s/^# *$//
743 s/\$progname/'$progname'/
744 p
745 }' < "$progpath"
746 echo
747 $ECHO "run \`$progname --help | more' for full usage"
748 exit $?
749 }
750
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
1267 $debug_cmd
1268
1269 case $1 in
1270 [0-9]* | *[!a-zA-Z0-9_]*)
1271 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1272 ;;
1273 * )
1274 func_tr_sh_result=$1
1275 ;;
1276 esac
1277 }
1278
1279
1280 # func_verbose ARG...
1281 # -------------------
1282 # Echo program name prefixed message in verbose mode only.
1283 func_verbose ()
1284 {
1285 $debug_cmd
1286
1287 $opt_verbose && func_echo "$*"
1288
1289 :
1290 }
1291
1292
1293 # func_warn_and_continue ARG...
1294 # -----------------------------
1295 # Echo program name prefixed warning message to standard error.
1296 func_warn_and_continue ()
1297 {
1298 $debug_cmd
1299
1300 $require_term_colors
1301
1302 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1303 }
1304
1305
1306 # func_warning CATEGORY ARG...
1307 # ----------------------------
1308 # Echo program name prefixed warning message to standard error. Warning
1309 # messages can be filtered according to CATEGORY, where this function
1310 # elides messages where CATEGORY is not listed in the global variable
1311 # 'opt_warning_types'.
1312 func_warning ()
1313 {
1314 $debug_cmd
1315
1316 # CATEGORY must be in the warning_categories list!
1317 case " $warning_categories " in
1318 *" $1 "*) ;;
1319 *) func_internal_error "invalid warning category '$1'" ;;
1320 esac
1321
1322 _G_category=$1
1323 shift
1324
1325 case " $opt_warning_types " in
1326 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1327 esac
1328 }
1329
1330
1331 # func_sort_ver VER1 VER2
1332 # -----------------------
1333 # 'sort -V' is not generally available.
1334 # Note this deviates from the version comparison in automake
1335 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1336 # but this should suffice as we won't be specifying old
1337 # version formats or redundant trailing .0 in bootstrap.conf.
1338 # If we did want full compatibility then we should probably
1339 # use m4_version_compare from autoconf.
1340 func_sort_ver ()
1341 {
1342 $debug_cmd
1343
1344 printf '%s\n%s\n' "$1" "$2" \
1345 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1346 }
1347
1348 # func_lt_ver PREV CURR
1349 # ---------------------
1350 # Return true if PREV and CURR are in the correct order according to
1351 # func_sort_ver, otherwise false. Use it like this:
1352 #
1353 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1354 func_lt_ver ()
1355 {
1356 $debug_cmd
1357
1358 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1359 }
1360
1361
1362 # Local variables:
1363 # mode: shell-script
1364 # sh-indentation: 2
1365 # eval: (add-hook 'before-save-hook 'time-stamp)
1366 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1367 # time-stamp-time-zone: "UTC"
1368 # End:
1369 #! /bin/sh
1370
1371 # Set a version string for this script.
1372 scriptversion=2014-01-07.03; # UTC
1373
1374 # A portable, pluggable option parser for Bourne shell.
1375 # Written by Gary V. Vaughan, 2010
1376
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1395
1396
1397 ## ------ ##
1398 ## Usage. ##
1399 ## ------ ##
1400
1401 # This file is a library for parsing options in your shell scripts along
1402 # with assorted other useful supporting features that you can make use
1403 # of too.
1404 #
1405 # For the simplest scripts you might need only:
1406 #
1407 # #!/bin/sh
1408 # . relative/path/to/funclib.sh
1409 # . relative/path/to/options-parser
1410 # scriptversion=1.0
1411 # func_options ${1+"$@"}
1412 # eval set dummy "$func_options_result"; shift
1413 # ...rest of your script...
1414 #
1415 # In order for the '--version' option to work, you will need to have a
1416 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1418 #
1419 # For '-h' and '--help' to work, you will also need a one line
1420 # description of your script's purpose in a comment directly above the
1421 # '# Written by ' line, like the one at the top of this file.
1422 #
1423 # The default options also support '--debug', which will turn on shell
1424 # execution tracing (see the comment above debug_cmd below for another
1425 # use), and '--verbose' and the func_verbose function to allow your script
1426 # to display verbose messages only when your user has specified
1427 # '--verbose'.
1428 #
1429 # After sourcing this file, you can plug processing for additional
1430 # options by amending the variables from the 'Configuration' section
1431 # below, and following the instructions in the 'Option parsing'
1432 # section further down.
1433
1434 ## -------------- ##
1435 ## Configuration. ##
1436 ## -------------- ##
1437
1438 # You should override these variables in your script after sourcing this
1439 # file so that they reflect the customisations you have added to the
1440 # option parser.
1441
1442 # The usage line for option parsing errors and the start of '-h' and
1443 # '--help' output messages. You can embed shell variables for delayed
1444 # expansion at the time the message is displayed, but you will need to
1445 # quote other shell meta-characters carefully to prevent them being
1446 # expanded when the contents are evaled.
1447 usage='$progpath [OPTION]...'
1448
1449 # Short help message in response to '-h' and '--help'. Add to this or
1450 # override it after sourcing this library to reflect the full set of
1451 # options your script accepts.
1452 usage_message="\
1453 --debug enable verbose shell tracing
1454 -W, --warnings=CATEGORY
1455 report the warnings falling in CATEGORY [all]
1456 -v, --verbose verbosely report processing
1457 --version print version information and exit
1458 -h, --help print short or long help message and exit
1459 "
1460
1461 # Additional text appended to 'usage_message' in response to '--help'.
1462 long_help_message="
1463 Warning categories include:
1464 'all' show all warnings
1465 'none' turn off all the warnings
1466 'error' warnings are treated as fatal errors"
1467
1468 # Help message printed before fatal option parsing errors.
1469 fatal_help="Try '\$progname --help' for more information."
1470
1471
1472
1473 ## ------------------------- ##
1474 ## Hook function management. ##
1475 ## ------------------------- ##
1476
1477 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1480
1481 # func_hookable FUNC_NAME
1482 # -----------------------
1483 # Declare that FUNC_NAME will run hooks added with
1484 # 'func_add_hook FUNC_NAME ...'.
1485 func_hookable ()
1486 {
1487 $debug_cmd
1488
1489 func_append hookable_fns " $1"
1490 }
1491
1492
1493 # func_add_hook FUNC_NAME HOOK_FUNC
1494 # ---------------------------------
1495 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1496 # first have been declared "hookable" by a call to 'func_hookable'.
1497 func_add_hook ()
1498 {
1499 $debug_cmd
1500
1501 case " $hookable_fns " in
1502 *" $1 "*) ;;
1503 *) func_fatal_error "'$1' does not accept hook functions." ;;
1504 esac
1505
1506 eval func_append ${1}_hooks '" $2"'
1507 }
1508
1509
1510 # func_remove_hook FUNC_NAME HOOK_FUNC
1511 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1513 func_remove_hook ()
1514 {
1515 $debug_cmd
1516
1517 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1518 }
1519
1520
1521 # func_run_hooks FUNC_NAME [ARG]...
1522 # ---------------------------------
1523 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1525 # than a whitespace-delimited list of legal shell function names, and
1526 # no effort is wasted trying to catch shell meta-characters or preserve
1527 # whitespace.
1528 func_run_hooks ()
1529 {
1530 $debug_cmd
1531
1532 case " $hookable_fns " in
1533 *" $1 "*) ;;
1534 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1535 esac
1536
1537 eval _G_hook_fns=\$$1_hooks; shift
1538
1539 for _G_hook in $_G_hook_fns; do
1540 eval $_G_hook '"$@"'
1541
1542 # store returned options list back into positional
1543 # parameters for next 'cmd' execution.
1544 eval _G_hook_result=\$${_G_hook}_result
1545 eval set dummy "$_G_hook_result"; shift
1546 done
1547
1548 func_quote_for_eval ${1+"$@"}
1549 func_run_hooks_result=$func_quote_for_eval_result
1550 }
1551
1552
1553
1554 ## --------------- ##
1555 ## Option parsing. ##
1556 ## --------------- ##
1557
1558 # In order to add your own option parsing hooks, you must accept the
1559 # full positional parameter list in your hook function, remove any
1560 # options that you action, and then pass back the remaining unprocessed
1561 # options in '<hooked_function_name>_result', escaped suitably for
1562 # 'eval'. Like this:
1563 #
1564 # my_options_prep ()
1565 # {
1566 # $debug_cmd
1567 #
1568 # # Extend the existing usage message.
1569 # usage_message=$usage_message'
1570 # -s, --silent don'\''t print informational messages
1571 # '
1572 #
1573 # func_quote_for_eval ${1+"$@"}
1574 # my_options_prep_result=$func_quote_for_eval_result
1575 # }
1576 # func_add_hook func_options_prep my_options_prep
1577 #
1578 #
1579 # my_silent_option ()
1580 # {
1581 # $debug_cmd
1582 #
1583 # # Note that for efficiency, we parse as many options as we can
1584 # # recognise in a loop before passing the remainder back to the
1585 # # caller on the first unrecognised argument we encounter.
1586 # while test $# -gt 0; do
1587 # opt=$1; shift
1588 # case $opt in
1589 # --silent|-s) opt_silent=: ;;
1590 # # Separate non-argument short options:
1591 # -s*) func_split_short_opt "$_G_opt"
1592 # set dummy "$func_split_short_opt_name" \
1593 # "-$func_split_short_opt_arg" ${1+"$@"}
1594 # shift
1595 # ;;
1596 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1597 # esac
1598 # done
1599 #
1600 # func_quote_for_eval ${1+"$@"}
1601 # my_silent_option_result=$func_quote_for_eval_result
1602 # }
1603 # func_add_hook func_parse_options my_silent_option
1604 #
1605 #
1606 # my_option_validation ()
1607 # {
1608 # $debug_cmd
1609 #
1610 # $opt_silent && $opt_verbose && func_fatal_help "\
1611 # '--silent' and '--verbose' options are mutually exclusive."
1612 #
1613 # func_quote_for_eval ${1+"$@"}
1614 # my_option_validation_result=$func_quote_for_eval_result
1615 # }
1616 # func_add_hook func_validate_options my_option_validation
1617 #
1618 # You'll alse need to manually amend $usage_message to reflect the extra
1619 # options you parse. It's preferable to append if you can, so that
1620 # multiple option parsing hooks can be added safely.
1621
1622
1623 # func_options [ARG]...
1624 # ---------------------
1625 # All the functions called inside func_options are hookable. See the
1626 # individual implementations for details.
1627 func_hookable func_options
1628 func_options ()
1629 {
1630 $debug_cmd
1631
1632 func_options_prep ${1+"$@"}
1633 eval func_parse_options \
1634 ${func_options_prep_result+"$func_options_prep_result"}
1635 eval func_validate_options \
1636 ${func_parse_options_result+"$func_parse_options_result"}
1637
1638 eval func_run_hooks func_options \
1639 ${func_validate_options_result+"$func_validate_options_result"}
1640
1641 # save modified positional parameters for caller
1642 func_options_result=$func_run_hooks_result
1643 }
1644
1645
1646 # func_options_prep [ARG]...
1647 # --------------------------
1648 # All initialisations required before starting the option parse loop.
1649 # Note that when calling hook functions, we pass through the list of
1650 # positional parameters. If a hook function modifies that list, and
1651 # needs to propogate that back to rest of this script, then the complete
1652 # modified list must be put in 'func_run_hooks_result' before
1653 # returning.
1654 func_hookable func_options_prep
1655 func_options_prep ()
1656 {
1657 $debug_cmd
1658
1659 # Option defaults:
1660 opt_verbose=false
1661 opt_warning_types=
1662
1663 func_run_hooks func_options_prep ${1+"$@"}
1664
1665 # save modified positional parameters for caller
1666 func_options_prep_result=$func_run_hooks_result
1667 }
1668
1669
1670 # func_parse_options [ARG]...
1671 # ---------------------------
1672 # The main option parsing loop.
1673 func_hookable func_parse_options
1674 func_parse_options ()
1675 {
1676 $debug_cmd
1677
1678 func_parse_options_result=
1679
1680 # this just eases exit handling
1681 while test $# -gt 0; do
1682 # Defer to hook functions for initial option parsing, so they
1683 # get priority in the event of reusing an option name.
1684 func_run_hooks func_parse_options ${1+"$@"}
1685
1686 # Adjust func_parse_options positional parameters to match
1687 eval set dummy "$func_run_hooks_result"; shift
1688
1689 # Break out of the loop if we already parsed every option.
1690 test $# -gt 0 || break
1691
1692 _G_opt=$1
1693 shift
1694 case $_G_opt in
1695 --debug|-x) debug_cmd='set -x'
1696 func_echo "enabling shell trace mode"
1697 $debug_cmd
1698 ;;
1699
1700 --no-warnings|--no-warning|--no-warn)
1701 set dummy --warnings none ${1+"$@"}
1702 shift
1703 ;;
1704
1705 --warnings|--warning|-W)
1706 test $# = 0 && func_missing_arg $_G_opt && break
1707 case " $warning_categories $1" in
1708 *" $1 "*)
1709 # trailing space prevents matching last $1 above
1710 func_append_uniq opt_warning_types " $1"
1711 ;;
1712 *all)
1713 opt_warning_types=$warning_categories
1714 ;;
1715 *none)
1716 opt_warning_types=none
1717 warning_func=:
1718 ;;
1719 *error)
1720 opt_warning_types=$warning_categories
1721 warning_func=func_fatal_error
1722 ;;
1723 *)
1724 func_fatal_error \
1725 "unsupported warning category: '$1'"
1726 ;;
1727 esac
1728 shift
1729 ;;
1730
1731 --verbose|-v) opt_verbose=: ;;
1732 --version) func_version ;;
1733 -\?|-h) func_usage ;;
1734 --help) func_help ;;
1735
1736 # Separate optargs to long options (plugins may need this):
1737 --*=*) func_split_equals "$_G_opt"
1738 set dummy "$func_split_equals_lhs" \
1739 "$func_split_equals_rhs" ${1+"$@"}
1740 shift
1741 ;;
1742
1743 # Separate optargs to short options:
1744 -W*)
1745 func_split_short_opt "$_G_opt"
1746 set dummy "$func_split_short_opt_name" \
1747 "$func_split_short_opt_arg" ${1+"$@"}
1748 shift
1749 ;;
1750
1751 # Separate non-argument short options:
1752 -\?*|-h*|-v*|-x*)
1753 func_split_short_opt "$_G_opt"
1754 set dummy "$func_split_short_opt_name" \
1755 "-$func_split_short_opt_arg" ${1+"$@"}
1756 shift
1757 ;;
1758
1759 --) break ;;
1760 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1761 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1762 esac
1763 done
1764
1765 # save modified positional parameters for caller
1766 func_quote_for_eval ${1+"$@"}
1767 func_parse_options_result=$func_quote_for_eval_result
1768 }
1769
1770
1771 # func_validate_options [ARG]...
1772 # ------------------------------
1773 # Perform any sanity checks on option settings and/or unconsumed
1774 # arguments.
1775 func_hookable func_validate_options
1776 func_validate_options ()
1777 {
1778 $debug_cmd
1779
1780 # Display all warnings if -W was not given.
1781 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1782
1783 func_run_hooks func_validate_options ${1+"$@"}
1784
1785 # Bail if the options were screwed!
1786 $exit_cmd $EXIT_FAILURE
1787
1788 # save modified positional parameters for caller
1789 func_validate_options_result=$func_run_hooks_result
1790 }
1791
1792
1793
1794 ## ----------------- ##
1795 ## Helper functions. ##
1796 ## ----------------- ##
1797
1798 # This section contains the helper functions used by the rest of the
1799 # hookable option parser framework in ascii-betical order.
1800
1801
1802 # func_fatal_help ARG...
1803 # ----------------------
1804 # Echo program name prefixed message to standard error, followed by
1805 # a help hint, and exit.
1806 func_fatal_help ()
1807 {
1808 $debug_cmd
1809
1810 eval \$ECHO \""Usage: $usage"\"
1811 eval \$ECHO \""$fatal_help"\"
1812 func_error ${1+"$@"}
1813 exit $EXIT_FAILURE
1814 }
1815
1816
1817 # func_help
1818 # ---------
1819 # Echo long help message to standard output and exit.
7541820 func_help ()
7551821 {
756 $opt_debug
757
758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760 s/^# //
761 s/^# *$//
762 s*\$progname*'$progname'*
763 s*\$host*'"$host"'*
764 s*\$SHELL*'"$SHELL"'*
765 s*\$LTCC*'"$LTCC"'*
766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767 s*\$LD*'"$LD"'*
768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
771 p
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
781 }
782
783 # func_missing_arg argname
1822 $debug_cmd
1823
1824 func_usage_message
1825 $ECHO "$long_help_message"
1826 exit 0
1827 }
1828
1829
1830 # func_missing_arg ARGNAME
1831 # ------------------------
7841832 # Echo program name prefixed message to standard error and set global
7851833 # exit_cmd.
7861834 func_missing_arg ()
7871835 {
788 $opt_debug
789
790 func_error "missing argument for $1."
1836 $debug_cmd
1837
1838 func_error "Missing argument for '$1'."
7911839 exit_cmd=exit
7921840 }
7931841
7941842
795 # func_split_short_opt shortopt
1843 # func_split_equals STRING
1844 # ------------------------
1845 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1846 # splitting STRING at the '=' sign.
1847 test -z "$_G_HAVE_XSI_OPS" \
1848 && (eval 'x=a/b/c;
1849 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1850 && _G_HAVE_XSI_OPS=yes
1851
1852 if test yes = "$_G_HAVE_XSI_OPS"
1853 then
1854 # This is an XSI compatible shell, allowing a faster implementation...
1855 eval 'func_split_equals ()
1856 {
1857 $debug_cmd
1858
1859 func_split_equals_lhs=${1%%=*}
1860 func_split_equals_rhs=${1#*=}
1861 test "x$func_split_equals_lhs" = "x$1" \
1862 && func_split_equals_rhs=
1863 }'
1864 else
1865 # ...otherwise fall back to using expr, which is often a shell builtin.
1866 func_split_equals ()
1867 {
1868 $debug_cmd
1869
1870 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1871 func_split_equals_rhs=
1872 test "x$func_split_equals_lhs" = "x$1" \
1873 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1874 }
1875 fi #func_split_equals
1876
1877
1878 # func_split_short_opt SHORTOPT
1879 # -----------------------------
7961880 # Set func_split_short_opt_name and func_split_short_opt_arg shell
7971881 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
820 exit_cmd=:
821
822
823
824
825
826 magic="%%%MAGIC variable%%%"
827 magic_exe="%%%MAGIC EXE variable%%%"
828
829 # Global variables.
830 nonopt=
831 preserve_args=
832 lo2o="s/\\.lo\$/.${objext}/"
833 o2lo="s/\\.${objext}\$/.lo/"
834 extracted_archives=
835 extracted_serial=0
836
837 # If this variable is set in any of the actions, the command in it
838 # will be execed at the end. This prevents here-documents from being
839 # left over by shells.
840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
888 # func_fatal_configuration arg...
1882 if test yes = "$_G_HAVE_XSI_OPS"
1883 then
1884 # This is an XSI compatible shell, allowing a faster implementation...
1885 eval 'func_split_short_opt ()
1886 {
1887 $debug_cmd
1888
1889 func_split_short_opt_arg=${1#??}
1890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1891 }'
1892 else
1893 # ...otherwise fall back to using expr, which is often a shell builtin.
1894 func_split_short_opt ()
1895 {
1896 $debug_cmd
1897
1898 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1899 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1900 }
1901 fi #func_split_short_opt
1902
1903
1904 # func_usage
1905 # ----------
1906 # Echo short help message to standard output and exit.
1907 func_usage ()
1908 {
1909 $debug_cmd
1910
1911 func_usage_message
1912 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1913 exit 0
1914 }
1915
1916
1917 # func_usage_message
1918 # ------------------
1919 # Echo short help message to standard output.
1920 func_usage_message ()
1921 {
1922 $debug_cmd
1923
1924 eval \$ECHO \""Usage: $usage"\"
1925 echo
1926 $SED -n 's|^# ||
1927 /^Written by/{
1928 x;p;x
1929 }
1930 h
1931 /^Written by/q' < "$progpath"
1932 echo
1933 eval \$ECHO \""$usage_message"\"
1934 }
1935
1936
1937 # func_version
1938 # ------------
1939 # Echo version message to standard output and exit.
1940 func_version ()
1941 {
1942 $debug_cmd
1943
1944 printf '%s\n' "$progname $scriptversion"
1945 $SED -n '
1946 /(C)/!b go
1947 :more
1948 /\./!{
1949 N
1950 s|\n# | |
1951 b more
1952 }
1953 :go
1954 /^# Written by /,/# warranty; / {
1955 s|^# ||
1956 s|^# *$||
1957 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1958 p
1959 }
1960 /^# Written by / {
1961 s|^# ||
1962 p
1963 }
1964 /^warranty; /q' < "$progpath"
1965
1966 exit $?
1967 }
1968
1969
1970 # Local variables:
1971 # mode: shell-script
1972 # sh-indentation: 2
1973 # eval: (add-hook 'before-save-hook 'time-stamp)
1974 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1975 # time-stamp-time-zone: "UTC"
1976 # End:
1977
1978 # Set a version string.
1979 scriptversion='(GNU libtool) 2.4.6'
1980
1981
1982 # func_echo ARG...
1983 # ----------------
1984 # Libtool also displays the current mode in messages, so override
1985 # funclib.sh func_echo with this custom definition.
1986 func_echo ()
1987 {
1988 $debug_cmd
1989
1990 _G_message=$*
1991
1992 func_echo_IFS=$IFS
1993 IFS=$nl
1994 for _G_line in $_G_message; do
1995 IFS=$func_echo_IFS
1996 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
1997 done
1998 IFS=$func_echo_IFS
1999 }
2000
2001
2002 # func_warning ARG...
2003 # -------------------
2004 # Libtool warnings are not categorized, so override funclib.sh
2005 # func_warning with this simpler definition.
2006 func_warning ()
2007 {
2008 $debug_cmd
2009
2010 $warning_func ${1+"$@"}
2011 }
2012
2013
2014 ## ---------------- ##
2015 ## Options parsing. ##
2016 ## ---------------- ##
2017
2018 # Hook in the functions to make sure our own options are parsed during
2019 # the option parsing loop.
2020
2021 usage='$progpath [OPTION]... [MODE-ARG]...'
2022
2023 # Short help message in response to '-h'.
2024 usage_message="Options:
2025 --config show all configuration variables
2026 --debug enable verbose shell tracing
2027 -n, --dry-run display commands without modifying any files
2028 --features display basic configuration information and exit
2029 --mode=MODE use operation mode MODE
2030 --no-warnings equivalent to '-Wnone'
2031 --preserve-dup-deps don't remove duplicate dependency libraries
2032 --quiet, --silent don't print informational messages
2033 --tag=TAG use configuration variables from tag TAG
2034 -v, --verbose print more informational messages than default
2035 --version print version information
2036 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2037 -h, --help, --help-all print short, long, or detailed help message
2038 "
2039
2040 # Additional text appended to 'usage_message' in response to '--help'.
2041 func_help ()
2042 {
2043 $debug_cmd
2044
2045 func_usage_message
2046 $ECHO "$long_help_message
2047
2048 MODE must be one of the following:
2049
2050 clean remove files from the build directory
2051 compile compile a source file into a libtool object
2052 execute automatically set library path, then run a program
2053 finish complete the installation of libtool libraries
2054 install install libraries or executables
2055 link create a library or an executable
2056 uninstall remove libraries from an installed directory
2057
2058 MODE-ARGS vary depending on the MODE. When passed as first option,
2059 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2060 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2061
2062 When reporting a bug, please describe a test case to reproduce it and
2063 include the following information:
2064
2065 host-triplet: $host
2066 shell: $SHELL
2067 compiler: $LTCC
2068 compiler flags: $LTCFLAGS
2069 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname (GNU libtool) 2.4.6
2071 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2072 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2073
2074 Report bugs to <bug-libtool@gnu.org>.
2075 GNU libtool home page: <http://www.gnu.org/software/libtool/>.
2076 General help using GNU software: <http://www.gnu.org/gethelp/>."
2077 exit 0
2078 }
2079
2080
2081 # func_lo2o OBJECT-NAME
2082 # ---------------------
2083 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2084 # object suffix.
2085
2086 lo2o=s/\\.lo\$/.$objext/
2087 o2lo=s/\\.$objext\$/.lo/
2088
2089 if test yes = "$_G_HAVE_XSI_OPS"; then
2090 eval 'func_lo2o ()
2091 {
2092 case $1 in
2093 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2094 * ) func_lo2o_result=$1 ;;
2095 esac
2096 }'
2097
2098 # func_xform LIBOBJ-OR-SOURCE
2099 # ---------------------------
2100 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2101 # suffix to a '.lo' libtool-object suffix.
2102 eval 'func_xform ()
2103 {
2104 func_xform_result=${1%.*}.lo
2105 }'
2106 else
2107 # ...otherwise fall back to using sed.
2108 func_lo2o ()
2109 {
2110 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2111 }
2112
2113 func_xform ()
2114 {
2115 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2116 }
2117 fi
2118
2119
2120 # func_fatal_configuration ARG...
2121 # -------------------------------
8892122 # Echo program name prefixed message to standard error, followed by
8902123 # a configuration failure hint, and exit.
8912124 func_fatal_configuration ()
8922125 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
2126 func__fatal_error ${1+"$@"} \
2127 "See the $PACKAGE documentation for more information." \
2128 "Fatal configuration error."
8962129 }
8972130
8982131
8992132 # func_config
2133 # -----------
9002134 # Display the configuration for all the tags in this script.
9012135 func_config ()
9022136 {
9142148 exit $?
9152149 }
9162150
2151
9172152 # func_features
2153 # -------------
9182154 # Display the features supported by this script.
9192155 func_features ()
9202156 {
9212157 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
2158 if test yes = "$build_libtool_libs"; then
9232159 echo "enable shared libraries"
9242160 else
9252161 echo "disable shared libraries"
9262162 fi
927 if test "$build_old_libs" = yes; then
2163 if test yes = "$build_old_libs"; then
9282164 echo "enable static libraries"
9292165 else
9302166 echo "disable static libraries"
9332169 exit $?
9342170 }
9352171
936 # func_enable_tag tagname
2172
2173 # func_enable_tag TAGNAME
2174 # -----------------------
9372175 # Verify that TAGNAME is valid, and either flag an error and exit, or
9382176 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
9392177 # variable here.
9402178 func_enable_tag ()
9412179 {
942 # Global variable:
943 tagname="$1"
944
945 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
946 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
947 sed_extractcf="/$re_begincf/,/$re_endcf/p"
948
949 # Validate tagname.
950 case $tagname in
951 *[!-_A-Za-z0-9,/]*)
952 func_fatal_error "invalid tag name: $tagname"
953 ;;
954 esac
955
956 # Don't test for the "default" C tag, as we know it's
957 # there but not specially marked.
958 case $tagname in
959 CC) ;;
2180 # Global variable:
2181 tagname=$1
2182
2183 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2184 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2185 sed_extractcf=/$re_begincf/,/$re_endcf/p
2186
2187 # Validate tagname.
2188 case $tagname in
2189 *[!-_A-Za-z0-9,/]*)
2190 func_fatal_error "invalid tag name: $tagname"
2191 ;;
2192 esac
2193
2194 # Don't test for the "default" C tag, as we know it's
2195 # there but not specially marked.
2196 case $tagname in
2197 CC) ;;
9602198 *)
961 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
962 taglist="$taglist $tagname"
963
964 # Evaluate the configuration. Be careful to quote the path
965 # and the sed script, to avoid splitting on whitespace, but
966 # also don't use non-portable quotes within backquotes within
967 # quotes we have to do it in 2 steps:
968 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
969 eval "$extractedcf"
970 else
971 func_error "ignoring unknown tag $tagname"
972 fi
973 ;;
974 esac
975 }
2199 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2200 taglist="$taglist $tagname"
2201
2202 # Evaluate the configuration. Be careful to quote the path
2203 # and the sed script, to avoid splitting on whitespace, but
2204 # also don't use non-portable quotes within backquotes within
2205 # quotes we have to do it in 2 steps:
2206 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2207 eval "$extractedcf"
2208 else
2209 func_error "ignoring unknown tag $tagname"
2210 fi
2211 ;;
2212 esac
2213 }
2214
9762215
9772216 # func_check_version_match
2217 # ------------------------
9782218 # Ensure that we are using m4 macros, and libtool script from the same
9792219 # release of libtool.
9802220 func_check_version_match ()
9812221 {
982 if test "$package_revision" != "$macro_revision"; then
983 if test "$VERSION" != "$macro_version"; then
984 if test -z "$macro_version"; then
985 cat >&2 <<_LT_EOF
2222 if test "$package_revision" != "$macro_revision"; then
2223 if test "$VERSION" != "$macro_version"; then
2224 if test -z "$macro_version"; then
2225 cat >&2 <<_LT_EOF
9862226 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9872227 $progname: definition of this LT_INIT comes from an older release.
9882228 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9892229 $progname: and run autoconf again.
9902230 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
2231 else
2232 cat >&2 <<_LT_EOF
9932233 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9942234 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
9952235 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9962236 $progname: and run autoconf again.
9972237 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
2238 fi
2239 else
2240 cat >&2 <<_LT_EOF
10012241 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
10022242 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
10032243 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
10042244 $progname: of $PACKAGE $VERSION and run autoconf again.
10052245 _LT_EOF
2246 fi
2247
2248 exit $EXIT_MISMATCH
10062249 fi
1007
1008 exit $EXIT_MISMATCH
1009 fi
1010 }
1011
1012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
2250 }
2251
2252
2253 # libtool_options_prep [ARG]...
2254 # -----------------------------
2255 # Preparation for options parsed by libtool.
2256 libtool_options_prep ()
2257 {
2258 $debug_mode
2259
2260 # Option defaults:
2261 opt_config=false
2262 opt_dlopen=
2263 opt_dry_run=false
2264 opt_help=false
2265 opt_mode=
2266 opt_preserve_dup_deps=false
2267 opt_quiet=false
2268
2269 nonopt=
2270 preserve_args=
2271
2272 # Shorthand for --mode=foo, only valid as the first argument
2273 case $1 in
2274 clean|clea|cle|cl)
2275 shift; set dummy --mode clean ${1+"$@"}; shift
2276 ;;
2277 compile|compil|compi|comp|com|co|c)
2278 shift; set dummy --mode compile ${1+"$@"}; shift
2279 ;;
2280 execute|execut|execu|exec|exe|ex|e)
2281 shift; set dummy --mode execute ${1+"$@"}; shift
2282 ;;
2283 finish|finis|fini|fin|fi|f)
2284 shift; set dummy --mode finish ${1+"$@"}; shift
2285 ;;
2286 install|instal|insta|inst|ins|in|i)
2287 shift; set dummy --mode install ${1+"$@"}; shift
2288 ;;
2289 link|lin|li|l)
2290 shift; set dummy --mode link ${1+"$@"}; shift
2291 ;;
2292 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2293 shift; set dummy --mode uninstall ${1+"$@"}; shift
2294 ;;
11672295 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
2296
2297 # Pass back the list of options.
2298 func_quote_for_eval ${1+"$@"}
2299 libtool_options_prep_result=$func_quote_for_eval_result
2300 }
2301 func_add_hook func_options_prep libtool_options_prep
2302
2303
2304 # libtool_parse_options [ARG]...
2305 # ---------------------------------
2306 # Provide handling for libtool specific options.
2307 libtool_parse_options ()
2308 {
2309 $debug_cmd
2310
2311 # Perform our own loop to consume as many options as possible in
2312 # each iteration.
2313 while test $# -gt 0; do
2314 _G_opt=$1
2315 shift
2316 case $_G_opt in
2317 --dry-run|--dryrun|-n)
2318 opt_dry_run=:
2319 ;;
2320
2321 --config) func_config ;;
2322
2323 --dlopen|-dlopen)
2324 opt_dlopen="${opt_dlopen+$opt_dlopen
2325 }$1"
2326 shift
2327 ;;
2328
2329 --preserve-dup-deps)
2330 opt_preserve_dup_deps=: ;;
2331
2332 --features) func_features ;;
2333
2334 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2335
2336 --help) opt_help=: ;;
2337
2338 --help-all) opt_help=': help-all' ;;
2339
2340 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2341 opt_mode=$1
2342 case $1 in
2343 # Valid mode arguments:
2344 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2345
2346 # Catch anything else as an error
2347 *) func_error "invalid argument for $_G_opt"
2348 exit_cmd=exit
2349 break
2350 ;;
2351 esac
2352 shift
2353 ;;
2354
2355 --no-silent|--no-quiet)
2356 opt_quiet=false
2357 func_append preserve_args " $_G_opt"
2358 ;;
2359
2360 --no-warnings|--no-warning|--no-warn)
2361 opt_warning=false
2362 func_append preserve_args " $_G_opt"
2363 ;;
2364
2365 --no-verbose)
2366 opt_verbose=false
2367 func_append preserve_args " $_G_opt"
2368 ;;
2369
2370 --silent|--quiet)
2371 opt_quiet=:
2372 opt_verbose=false
2373 func_append preserve_args " $_G_opt"
2374 ;;
2375
2376 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2377 opt_tag=$1
2378 func_append preserve_args " $_G_opt $1"
2379 func_enable_tag "$1"
2380 shift
2381 ;;
2382
2383 --verbose|-v) opt_quiet=false
2384 opt_verbose=:
2385 func_append preserve_args " $_G_opt"
2386 ;;
2387
2388 # An option not handled by this hook function:
2389 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2390 esac
2391 done
2392
2393
2394 # save modified positional parameters for caller
2395 func_quote_for_eval ${1+"$@"}
2396 libtool_parse_options_result=$func_quote_for_eval_result
2397 }
2398 func_add_hook func_parse_options libtool_parse_options
2399
2400
2401
2402 # libtool_validate_options [ARG]...
2403 # ---------------------------------
2404 # Perform any sanity checks on option settings and/or unconsumed
2405 # arguments.
2406 libtool_validate_options ()
2407 {
2408 # save first non-option argument
2409 if test 0 -lt $#; then
2410 nonopt=$1
2411 shift
11972412 fi
11982413
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
2414 # preserve --debug
2415 test : = "$debug_cmd" || func_append preserve_args " --debug"
2416
2417 case $host in
2418 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2419 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2420 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2421 # don't eliminate duplications in $postdeps and $predeps
2422 opt_duplicate_compiler_generated_deps=:
2423 ;;
2424 *)
2425 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2426 ;;
2427 esac
2428
2429 $opt_help || {
2430 # Sanity checks first:
2431 func_check_version_match
2432
2433 test yes != "$build_libtool_libs" \
2434 && test yes != "$build_old_libs" \
2435 && func_fatal_configuration "not configured to build any kind of library"
2436
2437 # Darwin sucks
2438 eval std_shrext=\"$shrext_cmds\"
2439
2440 # Only execute mode is allowed to have -dlopen flags.
2441 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2442 func_error "unrecognized option '-dlopen'"
2443 $ECHO "$help" 1>&2
2444 exit $EXIT_FAILURE
2445 fi
2446
2447 # Change the help message to a mode-specific one.
2448 generic_help=$help
2449 help="Try '$progname --help --mode=$opt_mode' for more information."
2450 }
2451
2452 # Pass back the unparsed argument list
2453 func_quote_for_eval ${1+"$@"}
2454 libtool_validate_options_result=$func_quote_for_eval_result
2455 }
2456 func_add_hook func_validate_options libtool_validate_options
2457
2458
2459 # Process options as early as possible so that --help and --version
2460 # can return quickly.
2461 func_options ${1+"$@"}
2462 eval set dummy "$func_options_result"; shift
12192463
12202464
12212465
12232467 ## Main. ##
12242468 ## ----------- ##
12252469
2470 magic='%%%MAGIC variable%%%'
2471 magic_exe='%%%MAGIC EXE variable%%%'
2472
2473 # Global variables.
2474 extracted_archives=
2475 extracted_serial=0
2476
2477 # If this variable is set in any of the actions, the command in it
2478 # will be execed at the end. This prevents here-documents from being
2479 # left over by shells.
2480 exec_cmd=
2481
2482
2483 # A function that is used when there is no print builtin or printf.
2484 func_fallback_echo ()
2485 {
2486 eval 'cat <<_LTECHO_EOF
2487 $1
2488 _LTECHO_EOF'
2489 }
2490
2491 # func_generated_by_libtool
2492 # True iff stdin has been generated by Libtool. This function is only
2493 # a basic sanity check; it will hardly flush out determined imposters.
2494 func_generated_by_libtool_p ()
2495 {
2496 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2497 }
2498
12262499 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
2500 # True iff FILE is a libtool '.la' library or '.lo' object file.
12282501 # This function is only a basic sanity check; it will hardly flush out
12292502 # determined imposters.
12302503 func_lalib_p ()
12312504 {
12322505 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2506 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
12352507 }
12362508
12372509 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
2510 # True iff FILE is a libtool '.la' library or '.lo' object file.
12392511 # This function implements the same check as func_lalib_p without
12402512 # resorting to external programs. To this end, it redirects stdin and
12412513 # closes it afterwards, without saving the original file descriptor.
12422514 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
2515 # fatal anyway. Works if 'file' does not exist.
12442516 func_lalib_unsafe_p ()
12452517 {
12462518 lalib_p=no
12482520 for lalib_p_l in 1 2 3 4
12492521 do
12502522 read lalib_p_line
1251 case "$lalib_p_line" in
2523 case $lalib_p_line in
12522524 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
12532525 esac
12542526 done
12552527 exec 0<&5 5<&-
12562528 fi
1257 test "$lalib_p" = yes
2529 test yes = "$lalib_p"
12582530 }
12592531
12602532 # func_ltwrapper_script_p file
12632535 # determined imposters.
12642536 func_ltwrapper_script_p ()
12652537 {
1266 func_lalib_p "$1"
2538 test -f "$1" &&
2539 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
12672540 }
12682541
12692542 # func_ltwrapper_executable_p file
12882561 {
12892562 func_dirname_and_basename "$1" "" "."
12902563 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
2564 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
12922565 }
12932566
12942567 # func_ltwrapper_p file
13072580 # FAIL_CMD may read-access the current command in variable CMD!
13082581 func_execute_cmds ()
13092582 {
1310 $opt_debug
2583 $debug_cmd
2584
13112585 save_ifs=$IFS; IFS='~'
13122586 for cmd in $1; do
2587 IFS=$sp$nl
2588 eval cmd=\"$cmd\"
13132589 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
13152590 func_show_eval "$cmd" "${2-:}"
13162591 done
13172592 IFS=$save_ifs
13232598 # Note that it is not necessary on cygwin/mingw to append a dot to
13242599 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
13252600 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
2601 # 'FILE.' does not work on cygwin managed mounts.
13272602 func_source ()
13282603 {
1329 $opt_debug
2604 $debug_cmd
2605
13302606 case $1 in
13312607 */* | *\\*) . "$1" ;;
13322608 *) . "./$1" ;;
13532629 # store the result into func_replace_sysroot_result.
13542630 func_replace_sysroot ()
13552631 {
1356 case "$lt_sysroot:$1" in
2632 case $lt_sysroot:$1 in
13572633 ?*:"$lt_sysroot"*)
13582634 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
2635 func_replace_sysroot_result='='$func_stripname_result
13602636 ;;
13612637 *)
13622638 # Including no sysroot.
13732649 # arg is usually of the form 'gcc ...'
13742650 func_infer_tag ()
13752651 {
1376 $opt_debug
2652 $debug_cmd
2653
13772654 if test -n "$available_tags" && test -z "$tagname"; then
13782655 CC_quoted=
13792656 for arg in $CC; do
13922669 for z in $available_tags; do
13932670 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
13942671 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2672 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
13962673 CC_quoted=
13972674 for arg in $CC; do
13982675 # Double-quote args containing other shell metacharacters.
14172694 # line option must be used.
14182695 if test -z "$tagname"; then
14192696 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
2697 func_fatal_error "specify a tag with '--tag'"
14212698 # else
14222699 # func_verbose "using $tagname tagged configuration"
14232700 fi
14332710 # but don't create it if we're doing a dry run.
14342711 func_write_libtool_object ()
14352712 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
2713 write_libobj=$1
2714 if test yes = "$build_libtool_libs"; then
2715 write_lobj=\'$2\'
14392716 else
14402717 write_lobj=none
14412718 fi
14422719
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
2720 if test yes = "$build_old_libs"; then
2721 write_oldobj=\'$3\'
14452722 else
14462723 write_oldobj=none
14472724 fi
14492726 $opt_dry_run || {
14502727 cat >${write_libobj}T <<EOF
14512728 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2729 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
14532730 #
14542731 # Please DO NOT delete this file!
14552732 # It is necessary for linking the library.
14612738 non_pic_object=$write_oldobj
14622739
14632740 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
2741 $MV "${write_libobj}T" "$write_libobj"
14652742 }
14662743 }
14672744
14812758 # be empty on error (or when ARG is empty)
14822759 func_convert_core_file_wine_to_w32 ()
14832760 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
2761 $debug_cmd
2762
2763 func_convert_core_file_wine_to_w32_result=$1
14862764 if test -n "$1"; then
14872765 # Unfortunately, winepath does not exit with a non-zero error code, so we
14882766 # are forced to check the contents of stdout. On the other hand, if the
14902768 # *an error message* to stdout. So we must check for both error code of
14912769 # zero AND non-empty stdout, which explains the odd construction:
14922770 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
2771 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
14942772 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
2773 $SED -e "$sed_naive_backslashify"`
14962774 else
14972775 func_convert_core_file_wine_to_w32_result=
14982776 fi
15132791 # are convertible, then the result may be empty.
15142792 func_convert_core_path_wine_to_w32 ()
15152793 {
1516 $opt_debug
2794 $debug_cmd
2795
15172796 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
2797 func_convert_core_path_wine_to_w32_result=
15192798 if test -n "$1"; then
15202799 oldIFS=$IFS
15212800 IFS=:
15222801 for func_convert_core_path_wine_to_w32_f in $1; do
15232802 IFS=$oldIFS
15242803 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
2804 if test -n "$func_convert_core_file_wine_to_w32_result"; then
15262805 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
2806 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
15282807 else
15292808 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15302809 fi
15532832 # environment variable; do not put it in $PATH.
15542833 func_cygpath ()
15552834 {
1556 $opt_debug
2835 $debug_cmd
2836
15572837 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15582838 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15592839 if test "$?" -ne 0; then
15622842 fi
15632843 else
15642844 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
2845 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
15662846 fi
15672847 }
15682848 #end: func_cygpath
15732853 # result in func_convert_core_msys_to_w32_result.
15742854 func_convert_core_msys_to_w32 ()
15752855 {
1576 $opt_debug
2856 $debug_cmd
2857
15772858 # awkward: cmd appends spaces to result
15782859 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2860 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
15802861 }
15812862 #end: func_convert_core_msys_to_w32
15822863
15872868 # func_to_host_file_result to ARG1).
15882869 func_convert_file_check ()
15892870 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
2871 $debug_cmd
2872
2873 if test -z "$2" && test -n "$1"; then
15922874 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
2875 func_error " '$1'"
15942876 func_error "Continuing, but uninstalled executables may not work."
15952877 # Fallback:
1596 func_to_host_file_result="$1"
2878 func_to_host_file_result=$1
15972879 fi
15982880 }
15992881 # end func_convert_file_check
16052887 # func_to_host_file_result to a simplistic fallback value (see below).
16062888 func_convert_path_check ()
16072889 {
1608 $opt_debug
2890 $debug_cmd
2891
16092892 if test -z "$4" && test -n "$3"; then
16102893 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
2894 func_error " '$3'"
16122895 func_error "Continuing, but uninstalled executables may not work."
16132896 # Fallback. This is a deliberately simplistic "conversion" and
16142897 # should not be "improved". See libtool.info.
16172900 func_to_host_path_result=`echo "$3" |
16182901 $SED -e "$lt_replace_pathsep_chars"`
16192902 else
1620 func_to_host_path_result="$3"
2903 func_to_host_path_result=$3
16212904 fi
16222905 fi
16232906 }
16292912 # and appending REPL if ORIG matches BACKPAT.
16302913 func_convert_path_front_back_pathsep ()
16312914 {
1632 $opt_debug
2915 $debug_cmd
2916
16332917 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
2918 $1 ) func_to_host_path_result=$3$func_to_host_path_result
16352919 ;;
16362920 esac
16372921 case $4 in
16452929 ##################################################
16462930 # $build to $host FILE NAME CONVERSION FUNCTIONS #
16472931 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
2932 # invoked via '$to_host_file_cmd ARG'
16492933 #
16502934 # In each case, ARG is the path to be converted from $build to $host format.
16512935 # Result will be available in $func_to_host_file_result.
16562940 # in func_to_host_file_result.
16572941 func_to_host_file ()
16582942 {
1659 $opt_debug
2943 $debug_cmd
2944
16602945 $to_host_file_cmd "$1"
16612946 }
16622947 # end func_to_host_file
16682953 # in (the comma separated) LAZY, no conversion takes place.
16692954 func_to_tool_file ()
16702955 {
1671 $opt_debug
2956 $debug_cmd
2957
16722958 case ,$2, in
16732959 *,"$to_tool_file_cmd",*)
16742960 func_to_tool_file_result=$1
16862972 # Copy ARG to func_to_host_file_result.
16872973 func_convert_file_noop ()
16882974 {
1689 func_to_host_file_result="$1"
2975 func_to_host_file_result=$1
16902976 }
16912977 # end func_convert_file_noop
16922978
16972983 # func_to_host_file_result.
16982984 func_convert_file_msys_to_w32 ()
16992985 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
2986 $debug_cmd
2987
2988 func_to_host_file_result=$1
17022989 if test -n "$1"; then
17032990 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
2991 func_to_host_file_result=$func_convert_core_msys_to_w32_result
17052992 fi
17062993 func_convert_file_check "$1" "$func_to_host_file_result"
17072994 }
17133000 # func_to_host_file_result.
17143001 func_convert_file_cygwin_to_w32 ()
17153002 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
3003 $debug_cmd
3004
3005 func_to_host_file_result=$1
17183006 if test -n "$1"; then
17193007 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
17203008 # LT_CYGPATH in this case.
17303018 # and a working winepath. Returns result in func_to_host_file_result.
17313019 func_convert_file_nix_to_w32 ()
17323020 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
3021 $debug_cmd
3022
3023 func_to_host_file_result=$1
17353024 if test -n "$1"; then
17363025 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
3026 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
17383027 fi
17393028 func_convert_file_check "$1" "$func_to_host_file_result"
17403029 }
17463035 # Returns result in func_to_host_file_result.
17473036 func_convert_file_msys_to_cygwin ()
17483037 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
3038 $debug_cmd
3039
3040 func_to_host_file_result=$1
17513041 if test -n "$1"; then
17523042 func_convert_core_msys_to_w32 "$1"
17533043 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
3044 func_to_host_file_result=$func_cygpath_result
17553045 fi
17563046 func_convert_file_check "$1" "$func_to_host_file_result"
17573047 }
17643054 # in func_to_host_file_result.
17653055 func_convert_file_nix_to_cygwin ()
17663056 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
3057 $debug_cmd
3058
3059 func_to_host_file_result=$1
17693060 if test -n "$1"; then
17703061 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
17713062 func_convert_core_file_wine_to_w32 "$1"
17723063 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
3064 func_to_host_file_result=$func_cygpath_result
17743065 fi
17753066 func_convert_file_check "$1" "$func_to_host_file_result"
17763067 }
17803071 #############################################
17813072 # $build to $host PATH CONVERSION FUNCTIONS #
17823073 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
3074 # invoked via '$to_host_path_cmd ARG'
17843075 #
17853076 # In each case, ARG is the path to be converted from $build to $host format.
17863077 # The result will be available in $func_to_host_path_result.
18043095 to_host_path_cmd=
18053096 func_init_to_host_path_cmd ()
18063097 {
1807 $opt_debug
3098 $debug_cmd
3099
18083100 if test -z "$to_host_path_cmd"; then
18093101 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
3102 to_host_path_cmd=func_convert_path_$func_stripname_result
18113103 fi
18123104 }
18133105
18173109 # in func_to_host_path_result.
18183110 func_to_host_path ()
18193111 {
1820 $opt_debug
3112 $debug_cmd
3113
18213114 func_init_to_host_path_cmd
18223115 $to_host_path_cmd "$1"
18233116 }
18283121 # Copy ARG to func_to_host_path_result.
18293122 func_convert_path_noop ()
18303123 {
1831 func_to_host_path_result="$1"
3124 func_to_host_path_result=$1
18323125 }
18333126 # end func_convert_path_noop
18343127
18393132 # func_to_host_path_result.
18403133 func_convert_path_msys_to_w32 ()
18413134 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
3135 $debug_cmd
3136
3137 func_to_host_path_result=$1
18443138 if test -n "$1"; then
18453139 # Remove leading and trailing path separator characters from ARG. MSYS
18463140 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
18483142 func_stripname : : "$1"
18493143 func_to_host_path_tmp1=$func_stripname_result
18503144 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
3145 func_to_host_path_result=$func_convert_core_msys_to_w32_result
18523146 func_convert_path_check : ";" \
18533147 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18543148 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
18623156 # func_to_host_file_result.
18633157 func_convert_path_cygwin_to_w32 ()
18643158 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
3159 $debug_cmd
3160
3161 func_to_host_path_result=$1
18673162 if test -n "$1"; then
18683163 # See func_convert_path_msys_to_w32:
18693164 func_stripname : : "$1"
18823177 # a working winepath. Returns result in func_to_host_file_result.
18833178 func_convert_path_nix_to_w32 ()
18843179 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
3180 $debug_cmd
3181
3182 func_to_host_path_result=$1
18873183 if test -n "$1"; then
18883184 # See func_convert_path_msys_to_w32:
18893185 func_stripname : : "$1"
18903186 func_to_host_path_tmp1=$func_stripname_result
18913187 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
3188 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
18933189 func_convert_path_check : ";" \
18943190 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18953191 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
19033199 # Returns result in func_to_host_file_result.
19043200 func_convert_path_msys_to_cygwin ()
19053201 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
3202 $debug_cmd
3203
3204 func_to_host_path_result=$1
19083205 if test -n "$1"; then
19093206 # See func_convert_path_msys_to_w32:
19103207 func_stripname : : "$1"
19113208 func_to_host_path_tmp1=$func_stripname_result
19123209 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
19133210 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
3211 func_to_host_path_result=$func_cygpath_result
19153212 func_convert_path_check : : \
19163213 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19173214 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19263223 # func_to_host_file_result.
19273224 func_convert_path_nix_to_cygwin ()
19283225 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
3226 $debug_cmd
3227
3228 func_to_host_path_result=$1
19313229 if test -n "$1"; then
19323230 # Remove leading and trailing path separator characters from
19333231 # ARG. msys behavior is inconsistent here, cygpath turns them
19363234 func_to_host_path_tmp1=$func_stripname_result
19373235 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
19383236 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
3237 func_to_host_path_result=$func_cygpath_result
19403238 func_convert_path_check : : \
19413239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19423240 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19453243 # end func_convert_path_nix_to_cygwin
19463244
19473245
3246 # func_dll_def_p FILE
3247 # True iff FILE is a Windows DLL '.def' file.
3248 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3249 func_dll_def_p ()
3250 {
3251 $debug_cmd
3252
3253 func_dll_def_p_tmp=`$SED -n \
3254 -e 's/^[ ]*//' \
3255 -e '/^\(;.*\)*$/d' \
3256 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3257 -e q \
3258 "$1"`
3259 test DEF = "$func_dll_def_p_tmp"
3260 }
3261
3262
19483263 # func_mode_compile arg...
19493264 func_mode_compile ()
19503265 {
1951 $opt_debug
3266 $debug_cmd
3267
19523268 # Get the compilation command and the source file.
19533269 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
3270 srcfile=$nonopt # always keep a non-empty value in "srcfile"
19553271 suppress_opt=yes
19563272 suppress_output=
19573273 arg_mode=normal
19643280 case $arg_mode in
19653281 arg )
19663282 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
3283 lastarg=$arg
19683284 arg_mode=normal
19693285 ;;
19703286
19713287 target )
1972 libobj="$arg"
3288 libobj=$arg
19733289 arg_mode=normal
19743290 continue
19753291 ;;
19793295 case $arg in
19803296 -o)
19813297 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
3298 func_fatal_error "you cannot specify '-o' more than once"
19833299 arg_mode=target
19843300 continue
19853301 ;;
20083324 func_stripname '-Wc,' '' "$arg"
20093325 args=$func_stripname_result
20103326 lastarg=
2011 save_ifs="$IFS"; IFS=','
3327 save_ifs=$IFS; IFS=,
20123328 for arg in $args; do
2013 IFS="$save_ifs"
3329 IFS=$save_ifs
20143330 func_append_quoted lastarg "$arg"
20153331 done
2016 IFS="$save_ifs"
3332 IFS=$save_ifs
20173333 func_stripname ' ' '' "$lastarg"
20183334 lastarg=$func_stripname_result
20193335
20263342 # Accept the current argument as the source file.
20273343 # The previous "srcfile" becomes the current argument.
20283344 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
3345 lastarg=$srcfile
3346 srcfile=$arg
20313347 ;;
20323348 esac # case $arg
20333349 ;;
20423358 func_fatal_error "you must specify an argument for -Xcompile"
20433359 ;;
20443360 target)
2045 func_fatal_error "you must specify a target with \`-o'"
3361 func_fatal_error "you must specify a target with '-o'"
20463362 ;;
20473363 *)
20483364 # Get the name of the library object.
20493365 test -z "$libobj" && {
20503366 func_basename "$srcfile"
2051 libobj="$func_basename_result"
3367 libobj=$func_basename_result
20523368 }
20533369 ;;
20543370 esac
20683384 case $libobj in
20693385 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
20703386 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
3387 func_fatal_error "cannot determine name of library object from '$libobj'"
20723388 ;;
20733389 esac
20743390
20773393 for arg in $later; do
20783394 case $arg in
20793395 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
3396 test yes = "$build_libtool_libs" \
3397 || func_fatal_configuration "cannot build a shared library"
20823398 build_old_libs=no
20833399 continue
20843400 ;;
21043420 func_quote_for_eval "$libobj"
21053421 test "X$libobj" != "X$func_quote_for_eval_result" \
21063422 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
3423 && func_warning "libobj name '$libobj' may not contain shell special characters."
21083424 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
3425 objname=$func_basename_result
3426 xdir=$func_dirname_result
3427 lobj=$xdir$objdir/$objname
21123428
21133429 test -z "$base_compile" && \
21143430 func_fatal_help "you must specify a compilation command"
21153431
21163432 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
3433 if test yes = "$build_old_libs"; then
21183434 removelist="$obj $lobj $libobj ${libobj}T"
21193435 else
21203436 removelist="$lobj $libobj ${libobj}T"
21263442 pic_mode=default
21273443 ;;
21283444 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
3445 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
21303446 # non-PIC code in shared libraries is not supported
21313447 pic_mode=default
21323448 fi
21333449
21343450 # Calculate the filename of the output object if compiler does
21353451 # not support -o with -c
2136 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2138 lockfile="$output_obj.lock"
3452 if test no = "$compiler_c_o"; then
3453 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3454 lockfile=$output_obj.lock
21393455 else
21403456 output_obj=
21413457 need_locks=no
21443460
21453461 # Lock this critical section if it is needed
21463462 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
3463 if test yes = "$need_locks"; then
21483464 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
21493465 func_echo "Waiting for $lockfile to be removed"
21503466 sleep 2
21513467 done
2152 elif test "$need_locks" = warn; then
3468 elif test warn = "$need_locks"; then
21533469 if test -f "$lockfile"; then
21543470 $ECHO "\
21553471 *** ERROR, $lockfile exists and contains:
21573473
21583474 This indicates that another process is trying to use the same
21593475 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
3476 your compiler does not support '-c' and '-o' together. If you
21613477 repeat this compilation, it may succeed, by chance, but you had better
21623478 avoid parallel builds (make -j) in this platform, or get a better
21633479 compiler."
21793495 qsrcfile=$func_quote_for_eval_result
21803496
21813497 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
3498 if test yes = "$build_libtool_libs"; then
21833499 # Without this assignment, base_compile gets emptied.
21843500 fbsd_hideous_sh_bug=$base_compile
21853501
2186 if test "$pic_mode" != no; then
3502 if test no != "$pic_mode"; then
21873503 command="$base_compile $qsrcfile $pic_flag"
21883504 else
21893505 # Don't build PIC code
22003516 func_show_eval_locale "$command" \
22013517 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
22023518
2203 if test "$need_locks" = warn &&
3519 if test warn = "$need_locks" &&
22043520 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22053521 $ECHO "\
22063522 *** ERROR, $lockfile contains:
22113527
22123528 This indicates that another process is trying to use the same
22133529 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
3530 your compiler does not support '-c' and '-o' together. If you
22153531 repeat this compilation, it may succeed, by chance, but you had better
22163532 avoid parallel builds (make -j) in this platform, or get a better
22173533 compiler."
22273543 fi
22283544
22293545 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
3546 if test yes = "$suppress_opt"; then
22313547 suppress_output=' >/dev/null 2>&1'
22323548 fi
22333549 fi
22343550
22353551 # Only build a position-dependent object if we build old libraries.
2236 if test "$build_old_libs" = yes; then
2237 if test "$pic_mode" != yes; then
3552 if test yes = "$build_old_libs"; then
3553 if test yes != "$pic_mode"; then
22383554 # Don't build PIC code
22393555 command="$base_compile $qsrcfile$pie_flag"
22403556 else
22413557 command="$base_compile $qsrcfile $pic_flag"
22423558 fi
2243 if test "$compiler_c_o" = yes; then
3559 if test yes = "$compiler_c_o"; then
22443560 func_append command " -o $obj"
22453561 fi
22463562
22493565 func_show_eval_locale "$command" \
22503566 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22513567
2252 if test "$need_locks" = warn &&
3568 if test warn = "$need_locks" &&
22533569 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22543570 $ECHO "\
22553571 *** ERROR, $lockfile contains:
22603576
22613577 This indicates that another process is trying to use the same
22623578 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
3579 your compiler does not support '-c' and '-o' together. If you
22643580 repeat this compilation, it may succeed, by chance, but you had better
22653581 avoid parallel builds (make -j) in this platform, or get a better
22663582 compiler."
22803596 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
22813597
22823598 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
3599 if test no != "$need_locks"; then
22843600 removelist=$lockfile
22853601 $RM "$lockfile"
22863602 fi
22903606 }
22913607
22923608 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
3609 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
22943610 }
22953611
22963612 func_mode_help ()
23103626 Remove files from the build directory.
23113627
23123628 RM is the name of the program to use to delete files associated with each FILE
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3629 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
23143630 to RM.
23153631
23163632 If FILE is a libtool library, object or program, all the files associated
23293645 -no-suppress do not suppress compiler output for multiple passes
23303646 -prefer-pic try to build PIC objects only
23313647 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
3648 -shared do not build a '.o' file suitable for static linking
3649 -static only build a '.o' file suitable for static linking
23343650 -Wc,FLAG pass FLAG directly to the compiler
23353651
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3652 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
23373653 from the given SOURCEFILE.
23383654
23393655 The output file name is determined by removing the directory component from
2340 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2341 library object suffix, \`.lo'."
3656 SOURCEFILE, then substituting the C source code suffix '.c' with the
3657 library object suffix, '.lo'."
23423658 ;;
23433659
23443660 execute)
23513667
23523668 -dlopen FILE add the directory containing FILE to the library path
23533669
2354 This mode sets the library path environment variable according to \`-dlopen'
3670 This mode sets the library path environment variable according to '-dlopen'
23553671 flags.
23563672
23573673 If any of the ARGS are libtool executable wrappers, then they are translated
23703686 Each LIBDIR is a directory that contains libtool libraries.
23713687
23723688 The commands that this mode executes may require superuser privileges. Use
2373 the \`--dry-run' option if you just want to see what would be executed."
3689 the '--dry-run' option if you just want to see what would be executed."
23743690 ;;
23753691
23763692 install)
23803696 Install executables or libraries.
23813697
23823698 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
3699 either the 'install' or 'cp' program.
23843700
23853701 The following components of INSTALL-COMMAND are treated specially:
23863702
24063722 -avoid-version do not add a version suffix if possible
24073723 -bindir BINDIR specify path to binaries directory (for systems where
24083724 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3725 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
24103726 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24113727 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24123728 -export-symbols SYMFILE
24203736 -no-install link a not-installable executable
24213737 -no-undefined declare that a library does not refer to external symbols
24223738 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
3739 -objectlist FILE use a list of object files found in FILE to specify objects
3740 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
24243741 -precious-files-regex REGEX
24253742 don't remove output files matching REGEX
24263743 -release RELEASE specify package release information
24403757 -Xlinker FLAG pass linker-specific FLAG directly to the linker
24413758 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
24423759
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
3760 All other options (arguments beginning with '-') are ignored.
3761
3762 Every other argument is treated as a filename. Files ending in '.la' are
24463763 treated as uninstalled libtool libraries, other files are standard or library
24473764 object files.
24483765
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
3766 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3767 only library objects ('.lo' files) may be specified, and '-rpath' is
24513768 required, except when creating a convenience library.
24523769
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2454 using \`ar' and \`ranlib', or on Windows using \`lib'.
2455
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
3770 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3771 using 'ar' and 'ranlib', or on Windows using 'lib'.
3772
3773 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
24573774 is created, otherwise an executable program is created."
24583775 ;;
24593776
24643781 Remove libraries from an installation directory.
24653782
24663783 RM is the name of the program to use to delete files associated with each FILE
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3784 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
24683785 to RM.
24693786
24703787 If FILE is a libtool library, all the files associated with it are deleted.
24723789 ;;
24733790
24743791 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
3792 func_fatal_help "invalid operation mode '$opt_mode'"
24763793 ;;
24773794 esac
24783795
24793796 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
3797 $ECHO "Try '$progname --help' for more information about other modes."
24813798 }
24823799
24833800 # Now that we've collected a possible --mode arg, show help if necessary
24843801 if $opt_help; then
2485 if test "$opt_help" = :; then
3802 if test : = "$opt_help"; then
24863803 func_mode_help
24873804 else
24883805 {
24903807 for opt_mode in compile link execute install finish uninstall clean; do
24913808 func_mode_help
24923809 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
3810 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
24943811 {
24953812 func_help noexit
24963813 for opt_mode in compile link execute install finish uninstall clean; do
24983815 func_mode_help
24993816 done
25003817 } |
2501 sed '1d
3818 $SED '1d
25023819 /^When reporting/,/^Report/{
25033820 H
25043821 d
25153832 # func_mode_execute arg...
25163833 func_mode_execute ()
25173834 {
2518 $opt_debug
3835 $debug_cmd
3836
25193837 # The first argument is the command name.
2520 cmd="$nonopt"
3838 cmd=$nonopt
25213839 test -z "$cmd" && \
25223840 func_fatal_help "you must specify a COMMAND"
25233841
25243842 # Handle -dlopen flags immediately.
25253843 for file in $opt_dlopen; do
25263844 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
3845 || func_fatal_help "'$file' is not a file"
25283846
25293847 dir=
25303848 case $file in
25343852
25353853 # Check to see that this really is a libtool archive.
25363854 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
3855 || func_fatal_help "'$lib' is not a valid libtool archive"
25383856
25393857 # Read the libtool library.
25403858 dlname=
25453863 if test -z "$dlname"; then
25463864 # Warn if it was a shared library.
25473865 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
3866 func_warning "'$file' was not linked with '-export-dynamic'"
25493867 continue
25503868 fi
25513869
25523870 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
3871 dir=$func_dirname_result
25543872
25553873 if test -f "$dir/$objdir/$dlname"; then
25563874 func_append dir "/$objdir"
25573875 else
25583876 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
3877 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
25603878 fi
25613879 fi
25623880 ;;
25643882 *.lo)
25653883 # Just add the directory containing the .lo file.
25663884 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
3885 dir=$func_dirname_result
25683886 ;;
25693887
25703888 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
3889 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
25723890 continue
25733891 ;;
25743892 esac
25753893
25763894 # Get the absolute pathname.
25773895 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
3896 test -n "$absdir" && dir=$absdir
25793897
25803898 # Now add the directory to shlibpath_var.
25813899 if eval "test -z \"\$$shlibpath_var\""; then
25873905
25883906 # This variable tells wrapper scripts just to set shlibpath_var
25893907 # rather than running their programs.
2590 libtool_execute_magic="$magic"
3908 libtool_execute_magic=$magic
25913909
25923910 # Check if any of the arguments is a wrapper script.
25933911 args=
26003918 if func_ltwrapper_script_p "$file"; then
26013919 func_source "$file"
26023920 # Transform arg to wrapped name.
2603 file="$progdir/$program"
3921 file=$progdir/$program
26043922 elif func_ltwrapper_executable_p "$file"; then
26053923 func_ltwrapper_scriptname "$file"
26063924 func_source "$func_ltwrapper_scriptname_result"
26073925 # Transform arg to wrapped name.
2608 file="$progdir/$program"
3926 file=$progdir/$program
26093927 fi
26103928 ;;
26113929 esac
26133931 func_append_quoted args "$file"
26143932 done
26153933
2616 if test "X$opt_dry_run" = Xfalse; then
3934 if $opt_dry_run; then
3935 # Display what would be done.
3936 if test -n "$shlibpath_var"; then
3937 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
3938 echo "export $shlibpath_var"
3939 fi
3940 $ECHO "$cmd$args"
3941 exit $EXIT_SUCCESS
3942 else
26173943 if test -n "$shlibpath_var"; then
26183944 # Export the shlibpath_var.
26193945 eval "export $shlibpath_var"
26303956 done
26313957
26323958 # Now prepare to actually exec the command.
2633 exec_cmd="\$cmd$args"
2634 else
2635 # Display what would be done.
2636 if test -n "$shlibpath_var"; then
2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
2639 fi
2640 $ECHO "$cmd$args"
2641 exit $EXIT_SUCCESS
3959 exec_cmd=\$cmd$args
26423960 fi
26433961 }
26443962
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
3963 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
26463964
26473965
26483966 # func_mode_finish arg...
26493967 func_mode_finish ()
26503968 {
2651 $opt_debug
3969 $debug_cmd
3970
26523971 libs=
26533972 libdirs=
26543973 admincmds=
26623981 if func_lalib_unsafe_p "$opt"; then
26633982 func_append libs " $opt"
26643983 else
2665 func_warning "\`$opt' is not a valid libtool archive"
3984 func_warning "'$opt' is not a valid libtool archive"
26663985 fi
26673986
26683987 else
2669 func_fatal_error "invalid argument \`$opt'"
3988 func_fatal_error "invalid argument '$opt'"
26703989 fi
26713990 done
26723991
26814000 # Remove sysroot references
26824001 if $opt_dry_run; then
26834002 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
4003 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
26854004 done
26864005 else
26874006 tmpdir=`func_mktempdir`
26884007 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4008 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26904009 > $tmpdir/tmp-la
26914010 mv -f $tmpdir/tmp-la $lib
26924011 done
27114030 fi
27124031
27134032 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
4033 $opt_quiet && exit $EXIT_SUCCESS
27154034
27164035 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
27174036 echo "----------------------------------------------------------------------"
27224041 echo
27234042 echo "If you ever happen to want to link against installed libraries"
27244043 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
4044 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
27264045 echo "flag during linking and do at least one of the following:"
27274046 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
4047 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
27294048 echo " during execution"
27304049 fi
27314050 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
4051 echo " - add LIBDIR to the '$runpath_var' environment variable"
27334052 echo " during linking"
27344053 fi
27354054 if test -n "$hardcode_libdir_flag_spec"; then
27364055 libdir=LIBDIR
27374056 eval flag=\"$hardcode_libdir_flag_spec\"
27384057
2739 $ECHO " - use the \`$flag' linker flag"
4058 $ECHO " - use the '$flag' linker flag"
27404059 fi
27414060 if test -n "$admincmds"; then
27424061 $ECHO " - have your system administrator run these commands:$admincmds"
27434062 fi
27444063 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
4064 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
27464065 fi
27474066 echo
27484067
27614080 exit $EXIT_SUCCESS
27624081 }
27634082
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
4083 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
27654084
27664085
27674086 # func_mode_install arg...
27684087 func_mode_install ()
27694088 {
2770 $opt_debug
4089 $debug_cmd
4090
27714091 # There may be an optional sh(1) argument at the beginning of
27724092 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
4093 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
27744094 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
4095 case $nonopt in *shtool*) :;; *) false;; esac
4096 then
27764097 # Aesthetically quote it.
27774098 func_quote_for_eval "$nonopt"
27784099 install_prog="$func_quote_for_eval_result "
27994120 opts=
28004121 prev=
28014122 install_type=
2802 isdir=no
4123 isdir=false
28034124 stripme=
28044125 no_mode=:
28054126 for arg
28124133 fi
28134134
28144135 case $arg in
2815 -d) isdir=yes ;;
4136 -d) isdir=: ;;
28164137 -f)
28174138 if $install_cp; then :; else
28184139 prev=$arg
28304151 *)
28314152 # If the previous option needed an argument, then skip it.
28324153 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
4154 if test X-m = "X$prev" && test -n "$install_override_mode"; then
28344155 arg2=$install_override_mode
28354156 no_mode=false
28364157 fi
28554176 func_fatal_help "you must specify an install program"
28564177
28574178 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
4179 func_fatal_help "the '$prev' option requires an argument"
28594180
28604181 if test -n "$install_override_mode" && $no_mode; then
28614182 if $install_cp; then :; else
28774198 dest=$func_stripname_result
28784199
28794200 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
4201 test -d "$dest" && isdir=:
4202 if $isdir; then
4203 destdir=$dest
28834204 destname=
28844205 else
28854206 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
4207 destdir=$func_dirname_result
4208 destname=$func_basename_result
28884209
28894210 # Not a directory, so check to see that there is only one file specified.
28904211 set dummy $files; shift
28914212 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
4213 func_fatal_help "'$dest' is not a directory"
28934214 fi
28944215 case $destdir in
28954216 [\\/]* | [A-Za-z]:[\\/]*) ;;
28984219 case $file in
28994220 *.lo) ;;
29004221 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
4222 func_fatal_help "'$destdir' must be an absolute directory name"
29024223 ;;
29034224 esac
29044225 done
29074228
29084229 # This variable tells wrapper scripts just to set variables rather
29094230 # than running their programs.
2910 libtool_install_magic="$magic"
4231 libtool_install_magic=$magic
29114232
29124233 staticlibs=
29134234 future_libdirs=
29274248
29284249 # Check to see that this really is a libtool archive.
29294250 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
4251 || func_fatal_help "'$file' is not a valid libtool archive"
29314252
29324253 library_names=
29334254 old_library=
29494270 fi
29504271
29514272 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
4273 dir=$func_dirname_result
29534274 func_append dir "$objdir"
29544275
29554276 if test -n "$relink_command"; then
29634284 # are installed into $libdir/../bin (currently, that works fine)
29644285 # but it's something to keep an eye on.
29654286 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
4287 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
29674288
29684289 if test -n "$inst_prefix_dir"; then
29694290 # Stick the inst_prefix_dir data into the link command.
29724293 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
29734294 fi
29744295
2975 func_warning "relinking \`$file'"
4296 func_warning "relinking '$file'"
29764297 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
4298 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
29784299 fi
29794300
29804301 # See the names of the shared library.
29814302 set dummy $library_names; shift
29824303 if test -n "$1"; then
2983 realname="$1"
4304 realname=$1
29844305 shift
29854306
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
4307 srcname=$realname
4308 test -n "$relink_command" && srcname=${realname}T
29884309
29894310 # Install the shared library and build the symlinks.
29904311 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
29914312 'exit $?'
2992 tstripme="$stripme"
4313 tstripme=$stripme
29934314 case $host_os in
29944315 cygwin* | mingw* | pw32* | cegcc*)
29954316 case $realname in
29964317 *.dll.a)
2997 tstripme=""
4318 tstripme=
4319 ;;
4320 esac
4321 ;;
4322 os2*)
4323 case $realname in
4324 *_dll.a)
4325 tstripme=
29984326 ;;
29994327 esac
30004328 ;;
30054333
30064334 if test "$#" -gt 0; then
30074335 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
4336 # Try 'ln -sf' first, because the 'ln' binary might depend on
30094337 # the symlink we replace! Solaris /bin/ln does not understand -f,
30104338 # so we also need to try rm && ln -s.
30114339 for linkname
30164344 fi
30174345
30184346 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
4347 lib=$destdir/$realname
30204348 func_execute_cmds "$postinstall_cmds" 'exit $?'
30214349 fi
30224350
30234351 # Install the pseudo-library for information purposes.
30244352 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
4353 name=$func_basename_result
4354 instname=$dir/${name}i
30274355 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
30284356
30294357 # Maybe install the static library, too.
30354363
30364364 # Figure out destination file name, if it wasn't already specified.
30374365 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
4366 destfile=$destdir/$destname
30394367 else
30404368 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
4369 destfile=$func_basename_result
4370 destfile=$destdir/$destfile
30434371 fi
30444372
30454373 # Deduce the name of the destination old-style object file.
30494377 staticdest=$func_lo2o_result
30504378 ;;
30514379 *.$objext)
3052 staticdest="$destfile"
4380 staticdest=$destfile
30534381 destfile=
30544382 ;;
30554383 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
4384 func_fatal_help "cannot copy a libtool object to '$destfile'"
30574385 ;;
30584386 esac
30594387
30624390 func_show_eval "$install_prog $file $destfile" 'exit $?'
30634391
30644392 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
4393 if test yes = "$build_old_libs"; then
30664394 # Deduce the name of the old-style object file.
30674395 func_lo2o "$file"
30684396 staticobj=$func_lo2o_result
30744402 *)
30754403 # Figure out destination file name, if it wasn't already specified.
30764404 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
4405 destfile=$destdir/$destname
30784406 else
30794407 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
4408 destfile=$func_basename_result
4409 destfile=$destdir/$destfile
30824410 fi
30834411
30844412 # If the file is missing, and there is a .exe on the end, strip it
30854413 # because it is most likely a libtool script we actually want to
30864414 # install
3087 stripped_ext=""
4415 stripped_ext=
30884416 case $file in
30894417 *.exe)
30904418 if test ! -f "$file"; then
30914419 func_stripname '' '.exe' "$file"
30924420 file=$func_stripname_result
3093 stripped_ext=".exe"
4421 stripped_ext=.exe
30944422 fi
30954423 ;;
30964424 esac
31184446
31194447 # Check the variables that should have been set.
31204448 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
4449 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4450
4451 finalize=:
31244452 for lib in $notinst_deplibs; do
31254453 # Check to see that each library is installed.
31264454 libdir=
31274455 if test -f "$lib"; then
31284456 func_source "$lib"
31294457 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
4458 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
31314459 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
4460 func_warning "'$lib' has not been installed in '$libdir'"
4461 finalize=false
31344462 fi
31354463 done
31364464
31384466 func_source "$wrapper"
31394467
31404468 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
4469 if test no = "$fast_install" && test -n "$relink_command"; then
31424470 $opt_dry_run || {
3143 if test "$finalize" = yes; then
4471 if $finalize; then
31444472 tmpdir=`func_mktempdir`
31454473 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
4474 file=$func_basename_result
4475 outputname=$tmpdir/$file
31484476 # Replace the output file specification.
31494477 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
31504478
3151 $opt_silent || {
4479 $opt_quiet || {
31524480 func_quote_for_expand "$relink_command"
31534481 eval "func_echo $func_quote_for_expand_result"
31544482 }
31554483 if eval "$relink_command"; then :
31564484 else
3157 func_error "error: relink \`$file' with the above command before installing it"
4485 func_error "error: relink '$file' with the above command before installing it"
31584486 $opt_dry_run || ${RM}r "$tmpdir"
31594487 continue
31604488 fi
3161 file="$outputname"
4489 file=$outputname
31624490 else
3163 func_warning "cannot relink \`$file'"
4491 func_warning "cannot relink '$file'"
31644492 fi
31654493 }
31664494 else
31974525
31984526 for file in $staticlibs; do
31994527 func_basename "$file"
3200 name="$func_basename_result"
4528 name=$func_basename_result
32014529
32024530 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
4531 oldlib=$destdir/$name
32044532 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
32054533 tool_oldlib=$func_to_tool_file_result
32064534
32154543 done
32164544
32174545 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
4546 func_warning "remember to run '$progname --finish$future_libdirs'"
32194547
32204548 if test -n "$current_libdirs"; then
32214549 # Maybe just do a dry run.
32224550 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
4551 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
32244552 else
32254553 exit $EXIT_SUCCESS
32264554 fi
32274555 }
32284556
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
4557 test install = "$opt_mode" && func_mode_install ${1+"$@"}
32304558
32314559
32324560 # func_generate_dlsyms outputname originator pic_p
32344562 # a dlpreopen symbol table.
32354563 func_generate_dlsyms ()
32364564 {
3237 $opt_debug
3238 my_outputname="$1"
3239 my_originator="$2"
3240 my_pic_p="${3-no}"
3241 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
4565 $debug_cmd
4566
4567 my_outputname=$1
4568 my_originator=$2
4569 my_pic_p=${3-false}
4570 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
32424571 my_dlsyms=
32434572
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4573 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
32454574 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
4575 my_dlsyms=${my_outputname}S.c
32474576 else
32484577 func_error "not configured to extract global symbols from dlpreopened files"
32494578 fi
32544583 "") ;;
32554584 *.c)
32564585 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
4586 nlist=$output_objdir/$my_outputname.nm
32584587
32594588 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
32604589
32624591 func_verbose "creating $output_objdir/$my_dlsyms"
32634592
32644593 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3265 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3266 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
4594 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4595 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
32674596
32684597 #ifdef __cplusplus
32694598 extern \"C\" {
32704599 #endif
32714600
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4601 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
32734602 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
32744603 #endif
32754604
32764605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4606 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4607 /* DATA imports from DLLs on WIN32 can't be const, because runtime
32794608 relocations are performed -- see ld's documentation on pseudo-relocs. */
32804609 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
4610 #elif defined __osf__
32824611 /* This system does not cope well with relocations in const data. */
32834612 # define LT_DLSYM_CONST
32844613 #else
32854614 # define LT_DLSYM_CONST const
32864615 #endif
32874616
4617 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4618
32884619 /* External symbol declarations for the compiler. */\
32894620 "
32904621
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
4622 if test yes = "$dlself"; then
4623 func_verbose "generating symbol list for '$output'"
32934624
32944625 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32954626
32974628 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
32984629 for progfile in $progfiles; do
32994630 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
4631 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
33014632 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
33024633 done
33034634
33174648
33184649 # Prepare the list of exported symbols
33194650 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
4651 export_symbols=$output_objdir/$outputname.exp
33214652 $opt_dry_run || {
33224653 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4654 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
33244655 case $host in
33254656 *cygwin* | *mingw* | *cegcc* )
33264657 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
33304661 }
33314662 else
33324663 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4664 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
33344665 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
33354666 eval '$MV "$nlist"T "$nlist"'
33364667 case $host in
33444675 fi
33454676
33464677 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
4678 func_verbose "extracting global C symbols from '$dlprefile'"
33484679 func_basename "$dlprefile"
3349 name="$func_basename_result"
4680 name=$func_basename_result
33504681 case $host in
33514682 *cygwin* | *mingw* | *cegcc* )
33524683 # if an import library, we need to obtain dlname
33534684 if func_win32_import_lib_p "$dlprefile"; then
33544685 func_tr_sh "$dlprefile"
33554686 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
4687 dlprefile_dlbasename=
33574688 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
33584689 # Use subshell, to avoid clobbering current variable values
33594690 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
4691 if test -n "$dlprefile_dlname"; then
33614692 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
4693 dlprefile_dlbasename=$func_basename_result
33634694 else
33644695 # no lafile. user explicitly requested -dlpreopen <import library>.
33654696 $sharedlib_from_linklib_cmd "$dlprefile"
33674698 fi
33684699 fi
33694700 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
4701 if test -n "$dlprefile_dlbasename"; then
33714702 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
33724703 else
33734704 func_warning "Could not compute DLL name from $name"
34234754 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
34244755 fi
34254756
4757 func_show_eval '$RM "${nlist}I"'
4758 if test -n "$global_symbol_to_import"; then
4759 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4760 fi
4761
34264762 echo >> "$output_objdir/$my_dlsyms" "\
34274763
34284764 /* The mapping between symbol names and symbols. */
34314767 void *address;
34324768 } lt_dlsymlist;
34334769 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
4770 lt_${my_prefix}_LTX_preloaded_symbols[];\
4771 "
4772
4773 if test -s "$nlist"I; then
4774 echo >> "$output_objdir/$my_dlsyms" "\
4775 static void lt_syminit(void)
4776 {
4777 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4778 for (; symbol->name; ++symbol)
4779 {"
4780 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4781 echo >> "$output_objdir/$my_dlsyms" "\
4782 }
4783 }"
4784 fi
4785 echo >> "$output_objdir/$my_dlsyms" "\
34354786 LT_DLSYM_CONST lt_dlsymlist
34364787 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
4788 { {\"$my_originator\", (void *) 0},"
4789
4790 if test -s "$nlist"I; then
4791 echo >> "$output_objdir/$my_dlsyms" "\
4792 {\"@INIT@\", (void *) &lt_syminit},"
4793 fi
34394794
34404795 case $need_lib_prefix in
34414796 no)
34774832 *-*-hpux*)
34784833 pic_flag_for_symtable=" $pic_flag" ;;
34794834 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
4835 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
34834836 ;;
34844837 esac
34854838 ;;
34964849 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
34974850
34984851 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
4852 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
35004853
35014854 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
4855 symfileobj=$output_objdir/${my_outputname}S.$objext
35034856 case $host in
35044857 *cygwin* | *mingw* | *cegcc* )
35054858 if test -f "$output_objdir/$my_outputname.def"; then
35174870 esac
35184871 ;;
35194872 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
4873 func_fatal_error "unknown suffix for '$my_dlsyms'"
35214874 ;;
35224875 esac
35234876 else
35294882 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
35304883 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
35314884 fi
4885 }
4886
4887 # func_cygming_gnu_implib_p ARG
4888 # This predicate returns with zero status (TRUE) if
4889 # ARG is a GNU/binutils-style import library. Returns
4890 # with nonzero status (FALSE) otherwise.
4891 func_cygming_gnu_implib_p ()
4892 {
4893 $debug_cmd
4894
4895 func_to_tool_file "$1" func_convert_file_msys_to_w32
4896 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
4897 test -n "$func_cygming_gnu_implib_tmp"
4898 }
4899
4900 # func_cygming_ms_implib_p ARG
4901 # This predicate returns with zero status (TRUE) if
4902 # ARG is an MS-style import library. Returns
4903 # with nonzero status (FALSE) otherwise.
4904 func_cygming_ms_implib_p ()
4905 {
4906 $debug_cmd
4907
4908 func_to_tool_file "$1" func_convert_file_msys_to_w32
4909 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
4910 test -n "$func_cygming_ms_implib_tmp"
35324911 }
35334912
35344913 # func_win32_libid arg
35404919 # Despite the name, also deal with 64 bit binaries.
35414920 func_win32_libid ()
35424921 {
3543 $opt_debug
3544 win32_libid_type="unknown"
4922 $debug_cmd
4923
4924 win32_libid_type=unknown
35454925 win32_fileres=`file -L $1 2>/dev/null`
35464926 case $win32_fileres in
35474927 *ar\ archive\ import\ library*) # definitely import
35514931 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35524932 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
35534933 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3556 $SED -n -e '
4934 case $nm_interface in
4935 "MS dumpbin")
4936 if func_cygming_ms_implib_p "$1" ||
4937 func_cygming_gnu_implib_p "$1"
4938 then
4939 win32_nmres=import
4940 else
4941 win32_nmres=
4942 fi
4943 ;;
4944 *)
4945 func_to_tool_file "$1" func_convert_file_msys_to_w32
4946 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4947 $SED -n -e '
35574948 1,100{
35584949 / I /{
3559 s,.*,import,
4950 s|.*|import|
35604951 p
35614952 q
35624953 }
35634954 }'`
4955 ;;
4956 esac
35644957 case $win32_nmres in
35654958 import*) win32_libid_type="x86 archive import";;
35664959 *) win32_libid_type="x86 archive static";;
35924985 # $sharedlib_from_linklib_result
35934986 func_cygming_dll_for_implib ()
35944987 {
3595 $opt_debug
4988 $debug_cmd
4989
35964990 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
35974991 }
35984992
36095003 # specified import library.
36105004 func_cygming_dll_for_implib_fallback_core ()
36115005 {
3612 $opt_debug
5006 $debug_cmd
5007
36135008 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
36145009 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
36155010 $SED '/^Contents of section '"$match_literal"':/{
36455040 /./p' |
36465041 # we now have a list, one entry per line, of the stringified
36475042 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
5043 # archive that possess that section. Heuristic: eliminate
5044 # all those that have a first or second character that is
36505045 # a '.' (that is, objdump's representation of an unprintable
36515046 # character.) This should work for all archives with less than
36525047 # 0x302f exports -- but will fail for DLLs whose name actually
36555050 #
36565051 # Of those that remain, print the first one.
36575052 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
36825053 }
36835054
36845055 # func_cygming_dll_for_implib_fallback ARG
36945065 # $sharedlib_from_linklib_result
36955066 func_cygming_dll_for_implib_fallback ()
36965067 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
5068 $debug_cmd
5069
5070 if func_cygming_gnu_implib_p "$1"; then
36995071 # binutils import library
37005072 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
5073 elif func_cygming_ms_implib_p "$1"; then
37025074 # ms-generated import library
37035075 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
37045076 else
37055077 # unknown
3706 sharedlib_from_linklib_result=""
5078 sharedlib_from_linklib_result=
37075079 fi
37085080 }
37095081
37115083 # func_extract_an_archive dir oldlib
37125084 func_extract_an_archive ()
37135085 {
3714 $opt_debug
3715 f_ex_an_ar_dir="$1"; shift
3716 f_ex_an_ar_oldlib="$1"
3717 if test "$lock_old_archive_extraction" = yes; then
5086 $debug_cmd
5087
5088 f_ex_an_ar_dir=$1; shift
5089 f_ex_an_ar_oldlib=$1
5090 if test yes = "$lock_old_archive_extraction"; then
37185091 lockfile=$f_ex_an_ar_oldlib.lock
37195092 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
37205093 func_echo "Waiting for $lockfile to be removed"
37235096 fi
37245097 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
37255098 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
5099 if test yes = "$lock_old_archive_extraction"; then
37275100 $opt_dry_run || rm -f "$lockfile"
37285101 fi
37295102 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
37375110 # func_extract_archives gentop oldlib ...
37385111 func_extract_archives ()
37395112 {
3740 $opt_debug
3741 my_gentop="$1"; shift
5113 $debug_cmd
5114
5115 my_gentop=$1; shift
37425116 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
5117 my_oldobjs=
5118 my_xlib=
5119 my_xabs=
5120 my_xdir=
37475121
37485122 for my_xlib in $my_oldlibs; do
37495123 # Extract the objects.
37505124 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
5125 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
37525126 *) my_xabs=`pwd`"/$my_xlib" ;;
37535127 esac
37545128 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
5129 my_xlib=$func_basename_result
37565130 my_xlib_u=$my_xlib
37575131 while :; do
37585132 case " $extracted_archives " in
37645138 esac
37655139 done
37665140 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
5141 my_xdir=$my_gentop/$my_xlib_u
37685142
37695143 func_mkdir_p "$my_xdir"
37705144
37775151 cd $my_xdir || exit $?
37785152 darwin_archive=$my_xabs
37795153 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
5154 func_basename "$darwin_archive"
5155 darwin_base_archive=$func_basename_result
37815156 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
37825157 if test -n "$darwin_arches"; then
37835158 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
37845159 darwin_arch=
37855160 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3786 for darwin_arch in $darwin_arches ; do
3787 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3788 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3789 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
5161 for darwin_arch in $darwin_arches; do
5162 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5163 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5164 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5165 func_extract_an_archive "`pwd`" "$darwin_base_archive"
37915166 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
5167 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
37935168 done # $darwin_arches
37945169 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3795 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
5170 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
37965171 darwin_file=
37975172 darwin_files=
37985173 for darwin_file in $darwin_filelist; do
38145189 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
38155190 done
38165191
3817 func_extract_archives_result="$my_oldobjs"
5192 func_extract_archives_result=$my_oldobjs
38185193 }
38195194
38205195
38295204 #
38305205 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
38315206 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
5207 # will assume that the directory where it is stored is
38335208 # the $objdir directory. This is a cygwin/mingw-specific
38345209 # behavior.
38355210 func_emit_wrapper ()
38405215 #! $SHELL
38415216
38425217 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5218 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
38445219 #
38455220 # The $output program cannot be directly executed until all the libtool
38465221 # libraries that it depends on are installed.
38975272
38985273 # Very basic option parsing. These options are (a) specific to
38995274 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
5275 # /script/ and the wrapper /executable/ that is used only on
39015276 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
5277 # (application programs are unlikely to have options that match
39035278 # this pattern).
39045279 #
39055280 # There are only two supported options: --lt-debug and
39325307
39335308 # Print the debug banner immediately:
39345309 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
5310 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
39365311 fi
39375312 }
39385313
39435318 lt_dump_args_N=1;
39445319 for lt_arg
39455320 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
5321 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
39475322 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
39485323 done
39495324 }
39575332 *-*-mingw | *-*-os2* | *-cegcc*)
39585333 $ECHO "\
39595334 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
5335 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
39615336 func_lt_dump_args \${1+\"\$@\"} 1>&2
39625337 fi
39635338 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
39675342 *)
39685343 $ECHO "\
39695344 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
5345 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
39715346 func_lt_dump_args \${1+\"\$@\"} 1>&2
39725347 fi
39735348 exec \"\$progdir/\$program\" \${1+\"\$@\"}
40425417 test -n \"\$absdir\" && thisdir=\"\$absdir\"
40435418 "
40445419
4045 if test "$fast_install" = yes; then
5420 if test yes = "$fast_install"; then
40465421 $ECHO "\
40475422 program=lt-'$outputname'$exeext
40485423 progdir=\"\$thisdir/$objdir\"
40495424
40505425 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5426 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
40525427 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
40535428
40545429 file=\"\$\$-\$program\"
40655440 if test -n \"\$relink_command\"; then
40665441 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
40675442 else
4068 $ECHO \"\$relink_command_output\" >&2
5443 \$ECHO \"\$relink_command_output\" >&2
40695444 $RM \"\$progdir/\$file\"
40705445 exit 1
40715446 fi
41005475 fi
41015476
41025477 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5478 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
41045479 $ECHO "\
41055480 # Add our own library path to $shlibpath_var
41065481 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
41205495 fi
41215496 else
41225497 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5498 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
41245499 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
41255500 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
41265501 exit 1
41395514 cat <<EOF
41405515
41415516 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5517 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
41435518
41445519 The $output program cannot be directly executed until all the libtool
41455520 libraries that it depends on are installed.
41745549 #include <fcntl.h>
41755550 #include <sys/stat.h>
41765551
5552 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5553
41775554 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
5555 #if defined __MINGW32__
41795556 # ifdef __STRICT_ANSI__
41805557 int _putenv (const char *);
41815558 # endif
4182 #elif defined(__CYGWIN__)
5559 #elif defined __CYGWIN__
41835560 # ifdef __STRICT_ANSI__
41845561 char *realpath (const char *, char *);
41855562 int putenv (char *);
41865563 int setenv (const char *, const char *, int);
41875564 # endif
4188 /* #elif defined (other platforms) ... */
5565 /* #elif defined other_platform || defined ... */
41895566 #endif
41905567
41915568 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
5569 #if defined _MSC_VER
41935570 # define setmode _setmode
41945571 # define stat _stat
41955572 # define chmod _chmod
41965573 # define getcwd _getcwd
41975574 # define putenv _putenv
41985575 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
5576 #elif defined __MINGW32__
42045577 # define setmode _setmode
42055578 # define stat _stat
42065579 # define chmod _chmod
42075580 # define getcwd _getcwd
42085581 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
5582 #elif defined __CYGWIN__
42105583 # define HAVE_SETENV
42115584 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
5585 /* #elif defined other platforms ... */
42135586 #endif
42145587
4215 #if defined(PATH_MAX)
5588 #if defined PATH_MAX
42165589 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
5590 #elif defined MAXPATHLEN
42185591 # define LT_PATHMAX MAXPATHLEN
42195592 #else
42205593 # define LT_PATHMAX 1024
42335606 # define PATH_SEPARATOR ':'
42345607 #endif
42355608
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
5609 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5610 defined __OS2__
42385611 # define HAVE_DOS_BASED_FILE_SYSTEM
42395612 # define FOPEN_WB "wb"
42405613 # ifndef DIR_SEPARATOR_2
42675640
42685641 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
42695642 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
5643 if (stale) { free (stale); stale = 0; } \
42715644 } while (0)
42725645
4273 #if defined(LT_DEBUGWRAPPER)
5646 #if defined LT_DEBUGWRAPPER
42745647 static int lt_debug = 1;
42755648 #else
42765649 static int lt_debug = 0;
42995672 EOF
43005673
43015674 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
5675 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5676 # define externally_visible volatile
5677 #else
5678 # define externally_visible __attribute__((externally_visible)) volatile
5679 #endif
5680 externally_visible const char * MAGIC_EXE = "$magic_exe";
43035681 const char * LIB_PATH_VARNAME = "$shlibpath_var";
43045682 EOF
43055683
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5684 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
43075685 func_to_host_path "$temp_rpath"
43085686 cat <<EOF
43095687 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
43275705 EOF
43285706 fi
43295707
4330 if test "$fast_install" = yes; then
5708 if test yes = "$fast_install"; then
43315709 cat <<EOF
43325710 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
43335711 EOF
43565734 char *actual_cwrapper_name;
43575735 char *target_name;
43585736 char *lt_argv_zero;
4359 intptr_t rval = 127;
5737 int rval = 127;
43605738
43615739 int i;
43625740
43635741 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
5742 newargz = XMALLOC (char *, (size_t) argc + 1);
43655743
43665744 /* very simple arg parsing; don't want to rely on getopt
43675745 * also, copy all non cwrapper options to newargz, except
43705748 newargc=0;
43715749 for (i = 1; i < argc; i++)
43725750 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
5751 if (STREQ (argv[i], dumpscript_opt))
43745752 {
43755753 EOF
4376 case "$host" in
5754 case $host in
43775755 *mingw* | *cygwin* )
43785756 # make stdout use "unix" line endings
43795757 echo " setmode(1,_O_BINARY);"
43845762 lt_dump_script (stdout);
43855763 return 0;
43865764 }
4387 if (strcmp (argv[i], debug_opt) == 0)
5765 if (STREQ (argv[i], debug_opt))
43885766 {
43895767 lt_debug = 1;
43905768 continue;
43915769 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
5770 if (STREQ (argv[i], ltwrapper_option_prefix))
43935771 {
43945772 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
43955773 namespace, but it is not one of the ones we know about and
44125790 EOF
44135791 cat <<EOF
44145792 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
5793 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
44165794 EOF
44175795 cat <<"EOF"
44185796 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
45235901 cat <<"EOF"
45245902 /* execv doesn't actually work on mingw as expected on unix */
45255903 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5904 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
45275905 if (rval == -1)
45285906 {
45295907 /* failed to start process */
45685946 {
45695947 const char *base;
45705948
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5949 #if defined HAVE_DOS_BASED_FILE_SYSTEM
45725950 /* Skip over the disk name in MSDOS pathnames. */
45735951 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
45745952 name += 2;
46276005 const char *p_next;
46286006 /* static buffer for getcwd */
46296007 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
6008 size_t tmp_len;
46316009 char *concat_name;
46326010
46336011 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
46376015 return NULL;
46386016
46396017 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6018 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46416019 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
46426020 {
46436021 concat_name = xstrdup (wrapper);
46556033 return concat_name;
46566034 XFREE (concat_name);
46576035 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6036 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46596037 }
46606038 #endif
46616039
46786056 for (q = p; *q; q++)
46796057 if (IS_PATH_SEPARATOR (*q))
46806058 break;
4681 p_len = q - p;
6059 p_len = (size_t) (q - p);
46826060 p_next = (*q == '\0' ? q : q + 1);
46836061 if (p_len == 0)
46846062 {
47976175 if (patlen <= len)
47986176 {
47996177 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
6178 if (STREQ (str, pat))
48016179 *str = '\0';
48026180 }
48036181 return str;
48626240 char *str = xstrdup (value);
48636241 setenv (name, str, 1);
48646242 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
6243 size_t len = strlen (name) + 1 + strlen (value) + 1;
48666244 char *str = XMALLOC (char, len);
48676245 sprintf (str, "%s=%s", name, value);
48686246 if (putenv (str) != EXIT_SUCCESS)
48796257 char *new_value;
48806258 if (orig_value && *orig_value)
48816259 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
6260 size_t orig_value_len = strlen (orig_value);
6261 size_t add_len = strlen (add);
48846262 new_value = XMALLOC (char, add_len + orig_value_len + 1);
48856263 if (to_end)
48866264 {
49116289 {
49126290 char *new_value = lt_extend_str (getenv (name), value, 0);
49136291 /* some systems can't cope with a ':'-terminated path #' */
4914 int len = strlen (new_value);
4915 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6292 size_t len = strlen (new_value);
6293 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
49166294 {
4917 new_value[len-1] = '\0';
6295 new_value[--len] = '\0';
49186296 }
49196297 lt_setenv (name, new_value);
49206298 XFREE (new_value);
50816459 # True if ARG is an import lib, as indicated by $file_magic_cmd
50826460 func_win32_import_lib_p ()
50836461 {
5084 $opt_debug
6462 $debug_cmd
6463
50856464 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
50866465 *import*) : ;;
50876466 *) false ;;
50886467 esac
50896468 }
50906469
6470 # func_suncc_cstd_abi
6471 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6472 # Several compiler flags select an ABI that is incompatible with the
6473 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6474 func_suncc_cstd_abi ()
6475 {
6476 $debug_cmd
6477
6478 case " $compile_command " in
6479 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6480 suncc_use_cstd_abi=no
6481 ;;
6482 *)
6483 suncc_use_cstd_abi=yes
6484 ;;
6485 esac
6486 }
6487
50916488 # func_mode_link arg...
50926489 func_mode_link ()
50936490 {
5094 $opt_debug
6491 $debug_cmd
6492
50956493 case $host in
50966494 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
50976495 # It is impossible to link a dll without this setting, and
50986496 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
6497 # what system we are compiling for in order to pass an extra
51006498 # flag for every libtool invocation.
51016499 # allow_undefined=no
51026500
51036501 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
6502 # to make a dll that has undefined symbols, in which case not
51056503 # even a static library is built. For now, we need to specify
51066504 # -no-undefined on the libtool link line when we can be certain
51076505 # that all symbols are satisfied, otherwise we get a static library.
51456543 module=no
51466544 no_install=no
51476545 objs=
6546 os2dllname=
51486547 non_pic_objects=
51496548 precious_files_regex=
51506549 prefer_static_libs=no
5151 preload=no
6550 preload=false
51526551 prev=
51536552 prevarg=
51546553 release=
51606559 vinfo=
51616560 vinfo_number=no
51626561 weak_libs=
5163 single_module="${wl}-single_module"
6562 single_module=$wl-single_module
51646563 func_infer_tag $base_compile
51656564
51666565 # We need to know -static, to get the right output filenames.
51686567 do
51696568 case $arg in
51706569 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
6570 test yes != "$build_libtool_libs" \
6571 && func_fatal_configuration "cannot build a shared library"
51736572 build_old_libs=no
51746573 break
51756574 ;;
51766575 -all-static | -static | -static-libtool-libs)
51776576 case $arg in
51786577 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
6578 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
51806579 func_warning "complete static linking is impossible in this configuration"
51816580 fi
51826581 if test -n "$link_static_flag"; then
52096608
52106609 # Go through the arguments, transforming them on the way.
52116610 while test "$#" -gt 0; do
5212 arg="$1"
6611 arg=$1
52136612 shift
52146613 func_quote_for_eval "$arg"
52156614 qarg=$func_quote_for_eval_unquoted_result
52266625
52276626 case $prev in
52286627 bindir)
5229 bindir="$arg"
6628 bindir=$arg
52306629 prev=
52316630 continue
52326631 ;;
52336632 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
6633 $preload || {
52356634 # Add the symbol object into the linking commands.
52366635 func_append compile_command " @SYMFILE@"
52376636 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
6637 preload=:
6638 }
52406639 case $arg in
52416640 *.la | *.lo) ;; # We handle these cases below.
52426641 force)
5243 if test "$dlself" = no; then
6642 if test no = "$dlself"; then
52446643 dlself=needless
52456644 export_dynamic=yes
52466645 fi
52486647 continue
52496648 ;;
52506649 self)
5251 if test "$prev" = dlprefiles; then
6650 if test dlprefiles = "$prev"; then
52526651 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
6652 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
52546653 dlself=yes
52556654 else
52566655 dlself=needless
52606659 continue
52616660 ;;
52626661 *)
5263 if test "$prev" = dlfiles; then
6662 if test dlfiles = "$prev"; then
52646663 func_append dlfiles " $arg"
52656664 else
52666665 func_append dlprefiles " $arg"
52716670 esac
52726671 ;;
52736672 expsyms)
5274 export_symbols="$arg"
6673 export_symbols=$arg
52756674 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
6675 || func_fatal_error "symbol file '$arg' does not exist"
52776676 prev=
52786677 continue
52796678 ;;
52806679 expsyms_regex)
5281 export_symbols_regex="$arg"
6680 export_symbols_regex=$arg
52826681 prev=
52836682 continue
52846683 ;;
52966695 continue
52976696 ;;
52986697 inst_prefix)
5299 inst_prefix_dir="$arg"
6698 inst_prefix_dir=$arg
6699 prev=
6700 continue
6701 ;;
6702 mllvm)
6703 # Clang does not use LLVM to link, so we can simply discard any
6704 # '-mllvm $arg' options when doing the link step.
53006705 prev=
53016706 continue
53026707 ;;
53206725
53216726 if test -z "$pic_object" ||
53226727 test -z "$non_pic_object" ||
5323 test "$pic_object" = none &&
5324 test "$non_pic_object" = none; then
5325 func_fatal_error "cannot find name of object for \`$arg'"
6728 test none = "$pic_object" &&
6729 test none = "$non_pic_object"; then
6730 func_fatal_error "cannot find name of object for '$arg'"
53266731 fi
53276732
53286733 # Extract subdirectory from the argument.
53296734 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
6735 xdir=$func_dirname_result
6736
6737 if test none != "$pic_object"; then
53336738 # Prepend the subdirectory the object is found in.
5334 pic_object="$xdir$pic_object"
5335
5336 if test "$prev" = dlfiles; then
5337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6739 pic_object=$xdir$pic_object
6740
6741 if test dlfiles = "$prev"; then
6742 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
53386743 func_append dlfiles " $pic_object"
53396744 prev=
53406745 continue
53456750 fi
53466751
53476752 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
6753 if test dlprefiles = "$prev"; then
53496754 # Preload the old-style object.
53506755 func_append dlprefiles " $pic_object"
53516756 prev=
53536758
53546759 # A PIC object.
53556760 func_append libobjs " $pic_object"
5356 arg="$pic_object"
6761 arg=$pic_object
53576762 fi
53586763
53596764 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
6765 if test none != "$non_pic_object"; then
53616766 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
6767 non_pic_object=$xdir$non_pic_object
53636768
53646769 # A standard non-PIC object
53656770 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
6771 if test -z "$pic_object" || test none = "$pic_object"; then
6772 arg=$non_pic_object
53686773 fi
53696774 else
53706775 # If the PIC object exists, use it instead.
53716776 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
6777 non_pic_object=$pic_object
53736778 func_append non_pic_objects " $non_pic_object"
53746779 fi
53756780 else
53776782 if $opt_dry_run; then
53786783 # Extract subdirectory from the argument.
53796784 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
6785 xdir=$func_dirname_result
53816786
53826787 func_lo2o "$arg"
53836788 pic_object=$xdir$objdir/$func_lo2o_result
53856790 func_append libobjs " $pic_object"
53866791 func_append non_pic_objects " $non_pic_object"
53876792 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
6793 func_fatal_error "'$arg' is not a valid libtool object"
53896794 fi
53906795 fi
53916796 done
53926797 else
5393 func_fatal_error "link input file \`$arg' does not exist"
6798 func_fatal_error "link input file '$arg' does not exist"
53946799 fi
53956800 arg=$save_arg
53966801 prev=
53976802 continue
53986803 ;;
6804 os2dllname)
6805 os2dllname=$arg
6806 prev=
6807 continue
6808 ;;
53996809 precious_regex)
5400 precious_files_regex="$arg"
6810 precious_files_regex=$arg
54016811 prev=
54026812 continue
54036813 ;;
54046814 release)
5405 release="-$arg"
6815 release=-$arg
54066816 prev=
54076817 continue
54086818 ;;
54146824 func_fatal_error "only absolute run-paths are allowed"
54156825 ;;
54166826 esac
5417 if test "$prev" = rpath; then
6827 if test rpath = "$prev"; then
54186828 case "$rpath " in
54196829 *" $arg "*) ;;
54206830 *) func_append rpath " $arg" ;;
54296839 continue
54306840 ;;
54316841 shrext)
5432 shrext_cmds="$arg"
6842 shrext_cmds=$arg
54336843 prev=
54346844 continue
54356845 ;;
54696879 esac
54706880 fi # test -n "$prev"
54716881
5472 prevarg="$arg"
6882 prevarg=$arg
54736883
54746884 case $arg in
54756885 -all-static)
54836893
54846894 -allow-undefined)
54856895 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
6896 func_fatal_error "'-allow-undefined' must not be used because it is the default"
54876897 ;;
54886898
54896899 -avoid-version)
55156925 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
55166926 func_fatal_error "more than one -exported-symbols argument is not allowed"
55176927 fi
5518 if test "X$arg" = "X-export-symbols"; then
6928 if test X-export-symbols = "X$arg"; then
55196929 prev=expsyms
55206930 else
55216931 prev=expsyms_regex
55496959 func_stripname "-L" '' "$arg"
55506960 if test -z "$func_stripname_result"; then
55516961 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
6962 func_fatal_error "require no space between '-L' and '$1'"
55536963 else
5554 func_fatal_error "need path for \`-L' option"
6964 func_fatal_error "need path for '-L' option"
55556965 fi
55566966 fi
55576967 func_resolve_sysroot "$func_stripname_result"
55626972 *)
55636973 absdir=`cd "$dir" && pwd`
55646974 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
6975 func_fatal_error "cannot determine absolute directory name of '$dir'"
6976 dir=$absdir
55676977 ;;
55686978 esac
55696979 case "$deplibs " in
55987008 ;;
55997009
56007010 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7011 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
56027012 case $host in
56037013 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
56047014 # These systems don't actually have a C or math library (as such)
56067016 ;;
56077017 *-*-os2*)
56087018 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
7019 test X-lc = "X$arg" && continue
56107020 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7021 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56127022 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
7023 test X-lc = "X$arg" && continue
56147024 ;;
56157025 *-*-rhapsody* | *-*-darwin1.[012])
56167026 # Rhapsody C and math libraries are in the System framework
56197029 ;;
56207030 *-*-sco3.2v5* | *-*-sco5v6*)
56217031 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
7032 test X-lc = "X$arg" && continue
56237033 ;;
56247034 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
56257035 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
7036 test X-lc = "X$arg" && continue
56277037 ;;
56287038 esac
5629 elif test "X$arg" = "X-lc_r"; then
7039 elif test X-lc_r = "X$arg"; then
56307040 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7041 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56327042 # Do not include libc_r directly, use -pthread flag.
56337043 continue
56347044 ;;
56357045 esac
56367046 fi
56377047 func_append deplibs " $arg"
7048 continue
7049 ;;
7050
7051 -mllvm)
7052 prev=mllvm
56387053 continue
56397054 ;;
56407055
56677082 ;;
56687083
56697084 -multi_module)
5670 single_module="${wl}-multi_module"
7085 single_module=$wl-multi_module
56717086 continue
56727087 ;;
56737088
56817096 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
56827097 # The PATH hackery in wrapper scripts is required on Windows
56837098 # and Darwin in order for the loader to find any dlls it needs.
5684 func_warning "\`-no-install' is ignored for $host"
5685 func_warning "assuming \`-no-fast-install' instead"
7099 func_warning "'-no-install' is ignored for $host"
7100 func_warning "assuming '-no-fast-install' instead"
56867101 fast_install=no
56877102 ;;
56887103 *) no_install=yes ;;
56977112
56987113 -objectlist)
56997114 prev=objectlist
7115 continue
7116 ;;
7117
7118 -os2dllname)
7119 prev=os2dllname
57007120 continue
57017121 ;;
57027122
57877207 func_stripname '-Wc,' '' "$arg"
57887208 args=$func_stripname_result
57897209 arg=
5790 save_ifs="$IFS"; IFS=','
7210 save_ifs=$IFS; IFS=,
57917211 for flag in $args; do
5792 IFS="$save_ifs"
7212 IFS=$save_ifs
57937213 func_quote_for_eval "$flag"
57947214 func_append arg " $func_quote_for_eval_result"
57957215 func_append compiler_flags " $func_quote_for_eval_result"
57967216 done
5797 IFS="$save_ifs"
7217 IFS=$save_ifs
57987218 func_stripname ' ' '' "$arg"
57997219 arg=$func_stripname_result
58007220 ;;
58037223 func_stripname '-Wl,' '' "$arg"
58047224 args=$func_stripname_result
58057225 arg=
5806 save_ifs="$IFS"; IFS=','
7226 save_ifs=$IFS; IFS=,
58077227 for flag in $args; do
5808 IFS="$save_ifs"
7228 IFS=$save_ifs
58097229 func_quote_for_eval "$flag"
58107230 func_append arg " $wl$func_quote_for_eval_result"
58117231 func_append compiler_flags " $wl$func_quote_for_eval_result"
58127232 func_append linker_flags " $func_quote_for_eval_result"
58137233 done
5814 IFS="$save_ifs"
7234 IFS=$save_ifs
58157235 func_stripname ' ' '' "$arg"
58167236 arg=$func_stripname_result
58177237 ;;
58347254 # -msg_* for osf cc
58357255 -msg_*)
58367256 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
7257 arg=$func_quote_for_eval_result
58387258 ;;
58397259
58407260 # Flags to be passed through unchanged, with rationale:
58467266 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
58477267 # -F/path path to uninstalled frameworks, gcc on darwin
58487268 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7269 # -fstack-protector* stack protector flags for GCC
58497270 # @file GCC response files
58507271 # -tp=* Portland pgcc target processor selection
58517272 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7273 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7274 # -stdlib=* select c++ std lib with clang
58537275 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
58547276 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
7277 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
58567278 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
7279 arg=$func_quote_for_eval_result
58587280 func_append compile_command " $arg"
58597281 func_append finalize_command " $arg"
58607282 func_append compiler_flags " $arg"
58617283 continue
58627284 ;;
58637285
7286 -Z*)
7287 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7288 # OS/2 uses -Zxxx to specify OS/2-specific options
7289 compiler_flags="$compiler_flags $arg"
7290 func_append compile_command " $arg"
7291 func_append finalize_command " $arg"
7292 case $arg in
7293 -Zlinker | -Zstack)
7294 prev=xcompiler
7295 ;;
7296 esac
7297 continue
7298 else
7299 # Otherwise treat like 'Some other compiler flag' below
7300 func_quote_for_eval "$arg"
7301 arg=$func_quote_for_eval_result
7302 fi
7303 ;;
7304
58647305 # Some other compiler flag.
58657306 -* | +*)
58667307 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
7308 arg=$func_quote_for_eval_result
58687309 ;;
58697310
58707311 *.$objext)
58857326
58867327 if test -z "$pic_object" ||
58877328 test -z "$non_pic_object" ||
5888 test "$pic_object" = none &&
5889 test "$non_pic_object" = none; then
5890 func_fatal_error "cannot find name of object for \`$arg'"
7329 test none = "$pic_object" &&
7330 test none = "$non_pic_object"; then
7331 func_fatal_error "cannot find name of object for '$arg'"
58917332 fi
58927333
58937334 # Extract subdirectory from the argument.
58947335 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
7336 xdir=$func_dirname_result
7337
7338 test none = "$pic_object" || {
58987339 # Prepend the subdirectory the object is found in.
5899 pic_object="$xdir$pic_object"
5900
5901 if test "$prev" = dlfiles; then
5902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
7340 pic_object=$xdir$pic_object
7341
7342 if test dlfiles = "$prev"; then
7343 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
59037344 func_append dlfiles " $pic_object"
59047345 prev=
59057346 continue
59107351 fi
59117352
59127353 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
7354 if test dlprefiles = "$prev"; then
59147355 # Preload the old-style object.
59157356 func_append dlprefiles " $pic_object"
59167357 prev=
59187359
59197360 # A PIC object.
59207361 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
7362 arg=$pic_object
7363 }
59237364
59247365 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
7366 if test none != "$non_pic_object"; then
59267367 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
7368 non_pic_object=$xdir$non_pic_object
59287369
59297370 # A standard non-PIC object
59307371 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
7372 if test -z "$pic_object" || test none = "$pic_object"; then
7373 arg=$non_pic_object
59337374 fi
59347375 else
59357376 # If the PIC object exists, use it instead.
59367377 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
7378 non_pic_object=$pic_object
59387379 func_append non_pic_objects " $non_pic_object"
59397380 fi
59407381 else
59427383 if $opt_dry_run; then
59437384 # Extract subdirectory from the argument.
59447385 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
7386 xdir=$func_dirname_result
59467387
59477388 func_lo2o "$arg"
59487389 pic_object=$xdir$objdir/$func_lo2o_result
59507391 func_append libobjs " $pic_object"
59517392 func_append non_pic_objects " $non_pic_object"
59527393 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
7394 func_fatal_error "'$arg' is not a valid libtool object"
59547395 fi
59557396 fi
59567397 ;;
59667407 # A libtool-controlled library.
59677408
59687409 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
7410 if test dlfiles = "$prev"; then
59707411 # This library was specified with -dlopen.
59717412 func_append dlfiles " $func_resolve_sysroot_result"
59727413 prev=
5973 elif test "$prev" = dlprefiles; then
7414 elif test dlprefiles = "$prev"; then
59747415 # The library was specified with -dlpreopen.
59757416 func_append dlprefiles " $func_resolve_sysroot_result"
59767417 prev=
59857426 # Unknown arguments in both finalize_command and compile_command need
59867427 # to be aesthetically quoted because they are evaled later.
59877428 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
7429 arg=$func_quote_for_eval_result
59897430 ;;
59907431 esac # arg
59917432
59977438 done # argument parsing loop
59987439
59997440 test -n "$prev" && \
6000 func_fatal_help "the \`$prevarg' option requires an argument"
6001
6002 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
7441 func_fatal_help "the '$prevarg' option requires an argument"
7442
7443 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
60037444 eval arg=\"$export_dynamic_flag_spec\"
60047445 func_append compile_command " $arg"
60057446 func_append finalize_command " $arg"
60087449 oldlibs=
60097450 # calculate the name of the file, without its directory
60107451 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
7452 outputname=$func_basename_result
7453 libobjs_save=$libobjs
60137454
60147455 if test -n "$shlibpath_var"; then
60157456 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
7457 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
60177458 else
60187459 shlib_search_path=
60197460 fi
60207461 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
60217462 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
60227463
7464 # Definition is injected by LT_CONFIG during libtool generation.
7465 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7466
60237467 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
7468 output_objdir=$func_dirname_result$objdir
60257469 func_to_tool_file "$output_objdir/"
60267470 tool_output_objdir=$func_to_tool_file_result
60277471 # Create the object directory.
60447488 # Find all interdependent deplibs by searching for libraries
60457489 # that are linked more than once (e.g. -la -lb -la)
60467490 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
7491 if $opt_preserve_dup_deps; then
60487492 case "$libs " in
60497493 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
60507494 esac
60527496 func_append libs " $deplib"
60537497 done
60547498
6055 if test "$linkmode" = lib; then
7499 if test lib = "$linkmode"; then
60567500 libs="$predeps $libs $compiler_lib_search_path $postdeps"
60577501
60587502 # Compute libraries that are listed more than once in $predeps
60847528 case $file in
60857529 *.la) ;;
60867530 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
7531 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
60887532 ;;
60897533 esac
60907534 done
60927536 prog)
60937537 compile_deplibs=
60947538 finalize_deplibs=
6095 alldeplibs=no
7539 alldeplibs=false
60967540 newdlfiles=
60977541 newdlprefiles=
60987542 passes="conv scan dlopen dlpreopen link"
61047548 for pass in $passes; do
61057549 # The preopen pass in lib mode reverses $deplibs; put it back here
61067550 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
7551 if test lib,link = "$linkmode,$pass"; then
61087552 ## FIXME: Find the place where the list is rebuilt in the wrong
61097553 ## order, and fix it there properly
61107554 tmp_deplibs=
61117555 for deplib in $deplibs; do
61127556 tmp_deplibs="$deplib $tmp_deplibs"
61137557 done
6114 deplibs="$tmp_deplibs"
7558 deplibs=$tmp_deplibs
61157559 fi
61167560
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
7561 if test lib,link = "$linkmode,$pass" ||
7562 test prog,scan = "$linkmode,$pass"; then
7563 libs=$deplibs
61207564 deplibs=
61217565 fi
6122 if test "$linkmode" = prog; then
7566 if test prog = "$linkmode"; then
61237567 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
7568 dlopen) libs=$dlfiles ;;
7569 dlpreopen) libs=$dlprefiles ;;
61267570 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
61277571 esac
61287572 fi
6129 if test "$linkmode,$pass" = "lib,dlpreopen"; then
7573 if test lib,dlpreopen = "$linkmode,$pass"; then
61307574 # Collect and forward deplibs of preopened libtool libs
61317575 for lib in $dlprefiles; do
61327576 # Ignore non-libtool-libs
61477591 esac
61487592 done
61497593 done
6150 libs="$dlprefiles"
7594 libs=$dlprefiles
61517595 fi
6152 if test "$pass" = dlopen; then
7596 if test dlopen = "$pass"; then
61537597 # Collect dlpreopened libraries
6154 save_deplibs="$deplibs"
7598 save_deplibs=$deplibs
61557599 deplibs=
61567600 fi
61577601
61587602 for deplib in $libs; do
61597603 lib=
6160 found=no
7604 found=false
61617605 case $deplib in
61627606 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
61637607 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6164 if test "$linkmode,$pass" = "prog,link"; then
7608 if test prog,link = "$linkmode,$pass"; then
61657609 compile_deplibs="$deplib $compile_deplibs"
61667610 finalize_deplibs="$deplib $finalize_deplibs"
61677611 else
61687612 func_append compiler_flags " $deplib"
6169 if test "$linkmode" = lib ; then
7613 if test lib = "$linkmode"; then
61707614 case "$new_inherited_linker_flags " in
61717615 *" $deplib "*) ;;
61727616 * ) func_append new_inherited_linker_flags " $deplib" ;;
61767620 continue
61777621 ;;
61787622 -l*)
6179 if test "$linkmode" != lib && test "$linkmode" != prog; then
6180 func_warning "\`-l' is ignored for archives/objects"
7623 if test lib != "$linkmode" && test prog != "$linkmode"; then
7624 func_warning "'-l' is ignored for archives/objects"
61817625 continue
61827626 fi
61837627 func_stripname '-l' '' "$deplib"
61847628 name=$func_stripname_result
6185 if test "$linkmode" = lib; then
7629 if test lib = "$linkmode"; then
61867630 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
61877631 else
61887632 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
61907634 for searchdir in $searchdirs; do
61917635 for search_ext in .la $std_shrext .so .a; do
61927636 # Search the libtool library
6193 lib="$searchdir/lib${name}${search_ext}"
7637 lib=$searchdir/lib$name$search_ext
61947638 if test -f "$lib"; then
6195 if test "$search_ext" = ".la"; then
6196 found=yes
7639 if test .la = "$search_ext"; then
7640 found=:
61977641 else
6198 found=no
7642 found=false
61997643 fi
62007644 break 2
62017645 fi
62027646 done
62037647 done
6204 if test "$found" != yes; then
6205 # deplib doesn't seem to be a libtool library
6206 if test "$linkmode,$pass" = "prog,link"; then
6207 compile_deplibs="$deplib $compile_deplibs"
6208 finalize_deplibs="$deplib $finalize_deplibs"
6209 else
6210 deplibs="$deplib $deplibs"
6211 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6212 fi
6213 continue
6214 else # deplib is a libtool library
7648 if $found; then
7649 # deplib is a libtool library
62157650 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
62167651 # We need to do some special things here, and not later.
6217 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7652 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
62187653 case " $predeps $postdeps " in
62197654 *" $deplib "*)
62207655 if func_lalib_p "$lib"; then
62227657 old_library=
62237658 func_source "$lib"
62247659 for l in $old_library $library_names; do
6225 ll="$l"
7660 ll=$l
62267661 done
6227 if test "X$ll" = "X$old_library" ; then # only static version available
6228 found=no
7662 if test "X$ll" = "X$old_library"; then # only static version available
7663 found=false
62297664 func_dirname "$lib" "" "."
6230 ladir="$func_dirname_result"
7665 ladir=$func_dirname_result
62317666 lib=$ladir/$old_library
6232 if test "$linkmode,$pass" = "prog,link"; then
7667 if test prog,link = "$linkmode,$pass"; then
62337668 compile_deplibs="$deplib $compile_deplibs"
62347669 finalize_deplibs="$deplib $finalize_deplibs"
62357670 else
62367671 deplibs="$deplib $deplibs"
6237 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
7672 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
62387673 fi
62397674 continue
62407675 fi
62437678 *) ;;
62447679 esac
62457680 fi
7681 else
7682 # deplib doesn't seem to be a libtool library
7683 if test prog,link = "$linkmode,$pass"; then
7684 compile_deplibs="$deplib $compile_deplibs"
7685 finalize_deplibs="$deplib $finalize_deplibs"
7686 else
7687 deplibs="$deplib $deplibs"
7688 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7689 fi
7690 continue
62467691 fi
62477692 ;; # -l
62487693 *.ltframework)
6249 if test "$linkmode,$pass" = "prog,link"; then
7694 if test prog,link = "$linkmode,$pass"; then
62507695 compile_deplibs="$deplib $compile_deplibs"
62517696 finalize_deplibs="$deplib $finalize_deplibs"
62527697 else
62537698 deplibs="$deplib $deplibs"
6254 if test "$linkmode" = lib ; then
7699 if test lib = "$linkmode"; then
62557700 case "$new_inherited_linker_flags " in
62567701 *" $deplib "*) ;;
62577702 * ) func_append new_inherited_linker_flags " $deplib" ;;
62647709 case $linkmode in
62657710 lib)
62667711 deplibs="$deplib $deplibs"
6267 test "$pass" = conv && continue
7712 test conv = "$pass" && continue
62687713 newdependency_libs="$deplib $newdependency_libs"
62697714 func_stripname '-L' '' "$deplib"
62707715 func_resolve_sysroot "$func_stripname_result"
62717716 func_append newlib_search_path " $func_resolve_sysroot_result"
62727717 ;;
62737718 prog)
6274 if test "$pass" = conv; then
7719 if test conv = "$pass"; then
62757720 deplibs="$deplib $deplibs"
62767721 continue
62777722 fi
6278 if test "$pass" = scan; then
7723 if test scan = "$pass"; then
62797724 deplibs="$deplib $deplibs"
62807725 else
62817726 compile_deplibs="$deplib $compile_deplibs"
62867731 func_append newlib_search_path " $func_resolve_sysroot_result"
62877732 ;;
62887733 *)
6289 func_warning "\`-L' is ignored for archives/objects"
7734 func_warning "'-L' is ignored for archives/objects"
62907735 ;;
62917736 esac # linkmode
62927737 continue
62937738 ;; # -L
62947739 -R*)
6295 if test "$pass" = link; then
7740 if test link = "$pass"; then
62967741 func_stripname '-R' '' "$deplib"
62977742 func_resolve_sysroot "$func_stripname_result"
62987743 dir=$func_resolve_sysroot_result
63107755 lib=$func_resolve_sysroot_result
63117756 ;;
63127757 *.$libext)
6313 if test "$pass" = conv; then
7758 if test conv = "$pass"; then
63147759 deplibs="$deplib $deplibs"
63157760 continue
63167761 fi
63217766 case " $dlpreconveniencelibs " in
63227767 *" $deplib "*) ;;
63237768 *)
6324 valid_a_lib=no
7769 valid_a_lib=false
63257770 case $deplibs_check_method in
63267771 match_pattern*)
63277772 set dummy $deplibs_check_method; shift
63287773 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
63297774 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
63307775 | $EGREP "$match_pattern_regex" > /dev/null; then
6331 valid_a_lib=yes
7776 valid_a_lib=:
63327777 fi
63337778 ;;
63347779 pass_all)
6335 valid_a_lib=yes
7780 valid_a_lib=:
63367781 ;;
63377782 esac
6338 if test "$valid_a_lib" != yes; then
7783 if $valid_a_lib; then
7784 echo
7785 $ECHO "*** Warning: Linking the shared library $output against the"
7786 $ECHO "*** static library $deplib is not portable!"
7787 deplibs="$deplib $deplibs"
7788 else
63397789 echo
63407790 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
63417791 echo "*** I have the capability to make that library automatically link in when"
63437793 echo "*** shared version of the library, which you do not appear to have"
63447794 echo "*** because the file extensions .$libext of this argument makes me believe"
63457795 echo "*** that it is just a static archive that I should not use here."
6346 else
6347 echo
6348 $ECHO "*** Warning: Linking the shared library $output against the"
6349 $ECHO "*** static library $deplib is not portable!"
6350 deplibs="$deplib $deplibs"
63517796 fi
63527797 ;;
63537798 esac
63547799 continue
63557800 ;;
63567801 prog)
6357 if test "$pass" != link; then
7802 if test link != "$pass"; then
63587803 deplibs="$deplib $deplibs"
63597804 else
63607805 compile_deplibs="$deplib $compile_deplibs"
63657810 esac # linkmode
63667811 ;; # *.$libext
63677812 *.lo | *.$objext)
6368 if test "$pass" = conv; then
7813 if test conv = "$pass"; then
63697814 deplibs="$deplib $deplibs"
6370 elif test "$linkmode" = prog; then
6371 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
7815 elif test prog = "$linkmode"; then
7816 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
63727817 # If there is no dlopen support or we're linking statically,
63737818 # we need to preload.
63747819 func_append newdlprefiles " $deplib"
63817826 continue
63827827 ;;
63837828 %DEPLIBS%)
6384 alldeplibs=yes
7829 alldeplibs=:
63857830 continue
63867831 ;;
63877832 esac # case $deplib
63887833
6389 if test "$found" = yes || test -f "$lib"; then :
6390 else
6391 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6392 fi
7834 $found || test -f "$lib" \
7835 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
63937836
63947837 # Check to see that this really is a libtool archive.
63957838 func_lalib_unsafe_p "$lib" \
6396 || func_fatal_error "\`$lib' is not a valid libtool archive"
7839 || func_fatal_error "'$lib' is not a valid libtool archive"
63977840
63987841 func_dirname "$lib" "" "."
6399 ladir="$func_dirname_result"
7842 ladir=$func_dirname_result
64007843
64017844 dlname=
64027845 dlopen=
64267869 done
64277870 fi
64287871 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6429 if test "$linkmode,$pass" = "lib,link" ||
6430 test "$linkmode,$pass" = "prog,scan" ||
6431 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
7872 if test lib,link = "$linkmode,$pass" ||
7873 test prog,scan = "$linkmode,$pass" ||
7874 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
64327875 test -n "$dlopen" && func_append dlfiles " $dlopen"
64337876 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
64347877 fi
64357878
6436 if test "$pass" = conv; then
7879 if test conv = "$pass"; then
64377880 # Only check for convenience libraries
64387881 deplibs="$lib $deplibs"
64397882 if test -z "$libdir"; then
64407883 if test -z "$old_library"; then
6441 func_fatal_error "cannot find name of link library for \`$lib'"
7884 func_fatal_error "cannot find name of link library for '$lib'"
64427885 fi
64437886 # It is a libtool convenience library, so add in its objects.
64447887 func_append convenience " $ladir/$objdir/$old_library"
64457888 func_append old_convenience " $ladir/$objdir/$old_library"
6446 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6447 func_fatal_error "\`$lib' is not a convenience library"
7889 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7890 func_fatal_error "'$lib' is not a convenience library"
64487891 fi
64497892 tmp_libs=
64507893 for deplib in $dependency_libs; do
64517894 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
7895 if $opt_preserve_dup_deps; then
64537896 case "$tmp_libs " in
64547897 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
64557898 esac
64637906 # Get the name of the library we link against.
64647907 linklib=
64657908 if test -n "$old_library" &&
6466 { test "$prefer_static_libs" = yes ||
6467 test "$prefer_static_libs,$installed" = "built,no"; }; then
7909 { test yes = "$prefer_static_libs" ||
7910 test built,no = "$prefer_static_libs,$installed"; }; then
64687911 linklib=$old_library
64697912 else
64707913 for l in $old_library $library_names; do
6471 linklib="$l"
7914 linklib=$l
64727915 done
64737916 fi
64747917 if test -z "$linklib"; then
6475 func_fatal_error "cannot find name of link library for \`$lib'"
7918 func_fatal_error "cannot find name of link library for '$lib'"
64767919 fi
64777920
64787921 # This library was specified with -dlopen.
6479 if test "$pass" = dlopen; then
6480 if test -z "$libdir"; then
6481 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6482 fi
7922 if test dlopen = "$pass"; then
7923 test -z "$libdir" \
7924 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
64837925 if test -z "$dlname" ||
6484 test "$dlopen_support" != yes ||
6485 test "$build_libtool_libs" = no; then
7926 test yes != "$dlopen_support" ||
7927 test no = "$build_libtool_libs"
7928 then
64867929 # If there is no dlname, no dlopen support or we're linking
64877930 # statically, we need to preload. We also need to preload any
64887931 # dependent libraries so libltdl's deplib preloader doesn't
64967939
64977940 # We need an absolute path.
64987941 case $ladir in
6499 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
7942 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
65007943 *)
65017944 abs_ladir=`cd "$ladir" && pwd`
65027945 if test -z "$abs_ladir"; then
6503 func_warning "cannot determine absolute directory name of \`$ladir'"
7946 func_warning "cannot determine absolute directory name of '$ladir'"
65047947 func_warning "passing it literally to the linker, although it might fail"
6505 abs_ladir="$ladir"
7948 abs_ladir=$ladir
65067949 fi
65077950 ;;
65087951 esac
65097952 func_basename "$lib"
6510 laname="$func_basename_result"
7953 laname=$func_basename_result
65117954
65127955 # Find the relevant object directory and library name.
6513 if test "X$installed" = Xyes; then
7956 if test yes = "$installed"; then
65147957 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6515 func_warning "library \`$lib' was moved."
6516 dir="$ladir"
6517 absdir="$abs_ladir"
6518 libdir="$abs_ladir"
7958 func_warning "library '$lib' was moved."
7959 dir=$ladir
7960 absdir=$abs_ladir
7961 libdir=$abs_ladir
65197962 else
6520 dir="$lt_sysroot$libdir"
6521 absdir="$lt_sysroot$libdir"
7963 dir=$lt_sysroot$libdir
7964 absdir=$lt_sysroot$libdir
65227965 fi
6523 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
7966 test yes = "$hardcode_automatic" && avoidtemprpath=yes
65247967 else
65257968 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6526 dir="$ladir"
6527 absdir="$abs_ladir"
7969 dir=$ladir
7970 absdir=$abs_ladir
65287971 # Remove this search path later
65297972 func_append notinst_path " $abs_ladir"
65307973 else
6531 dir="$ladir/$objdir"
6532 absdir="$abs_ladir/$objdir"
7974 dir=$ladir/$objdir
7975 absdir=$abs_ladir/$objdir
65337976 # Remove this search path later
65347977 func_append notinst_path " $abs_ladir"
65357978 fi
65387981 name=$func_stripname_result
65397982
65407983 # This library was specified with -dlpreopen.
6541 if test "$pass" = dlpreopen; then
6542 if test -z "$libdir" && test "$linkmode" = prog; then
6543 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
7984 if test dlpreopen = "$pass"; then
7985 if test -z "$libdir" && test prog = "$linkmode"; then
7986 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
65447987 fi
6545 case "$host" in
7988 case $host in
65467989 # special handling for platforms with PE-DLLs.
65477990 *cygwin* | *mingw* | *cegcc* )
65487991 # Linker will automatically link against shared library if both
65868029
65878030 if test -z "$libdir"; then
65888031 # Link the convenience library
6589 if test "$linkmode" = lib; then
8032 if test lib = "$linkmode"; then
65908033 deplibs="$dir/$old_library $deplibs"
6591 elif test "$linkmode,$pass" = "prog,link"; then
8034 elif test prog,link = "$linkmode,$pass"; then
65928035 compile_deplibs="$dir/$old_library $compile_deplibs"
65938036 finalize_deplibs="$dir/$old_library $finalize_deplibs"
65948037 else
65988041 fi
65998042
66008043
6601 if test "$linkmode" = prog && test "$pass" != link; then
8044 if test prog = "$linkmode" && test link != "$pass"; then
66028045 func_append newlib_search_path " $ladir"
66038046 deplibs="$lib $deplibs"
66048047
6605 linkalldeplibs=no
6606 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6607 test "$build_libtool_libs" = no; then
6608 linkalldeplibs=yes
8048 linkalldeplibs=false
8049 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8050 test no = "$build_libtool_libs"; then
8051 linkalldeplibs=:
66098052 fi
66108053
66118054 tmp_libs=
66178060 ;;
66188061 esac
66198062 # Need to link against all dependency_libs?
6620 if test "$linkalldeplibs" = yes; then
8063 if $linkalldeplibs; then
66218064 deplibs="$deplib $deplibs"
66228065 else
66238066 # Need to hardcode shared library paths
66248067 # or/and link against static libraries
66258068 newdependency_libs="$deplib $newdependency_libs"
66268069 fi
6627 if $opt_preserve_dup_deps ; then
8070 if $opt_preserve_dup_deps; then
66288071 case "$tmp_libs " in
66298072 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
66308073 esac
66348077 continue
66358078 fi # $linkmode = prog...
66368079
6637 if test "$linkmode,$pass" = "prog,link"; then
8080 if test prog,link = "$linkmode,$pass"; then
66388081 if test -n "$library_names" &&
6639 { { test "$prefer_static_libs" = no ||
6640 test "$prefer_static_libs,$installed" = "built,yes"; } ||
8082 { { test no = "$prefer_static_libs" ||
8083 test built,yes = "$prefer_static_libs,$installed"; } ||
66418084 test -z "$old_library"; }; then
66428085 # We need to hardcode the library path
6643 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
8086 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
66448087 # Make sure the rpath contains only unique directories.
6645 case "$temp_rpath:" in
8088 case $temp_rpath: in
66468089 *"$absdir:"*) ;;
66478090 *) func_append temp_rpath "$absdir:" ;;
66488091 esac
66718114 esac
66728115 fi # $linkmode,$pass = prog,link...
66738116
6674 if test "$alldeplibs" = yes &&
6675 { test "$deplibs_check_method" = pass_all ||
6676 { test "$build_libtool_libs" = yes &&
8117 if $alldeplibs &&
8118 { test pass_all = "$deplibs_check_method" ||
8119 { test yes = "$build_libtool_libs" &&
66778120 test -n "$library_names"; }; }; then
66788121 # We only need to search for static libraries
66798122 continue
66828125
66838126 link_static=no # Whether the deplib will be linked statically
66848127 use_static_libs=$prefer_static_libs
6685 if test "$use_static_libs" = built && test "$installed" = yes; then
8128 if test built = "$use_static_libs" && test yes = "$installed"; then
66868129 use_static_libs=no
66878130 fi
66888131 if test -n "$library_names" &&
6689 { test "$use_static_libs" = no || test -z "$old_library"; }; then
8132 { test no = "$use_static_libs" || test -z "$old_library"; }; then
66908133 case $host in
6691 *cygwin* | *mingw* | *cegcc*)
8134 *cygwin* | *mingw* | *cegcc* | *os2*)
66928135 # No point in relinking DLLs because paths are not encoded
66938136 func_append notinst_deplibs " $lib"
66948137 need_relink=no
66958138 ;;
66968139 *)
6697 if test "$installed" = no; then
8140 if test no = "$installed"; then
66988141 func_append notinst_deplibs " $lib"
66998142 need_relink=yes
67008143 fi
67048147
67058148 # Warn about portability, can't link against -module's on some
67068149 # systems (darwin). Don't bleat about dlopened modules though!
6707 dlopenmodule=""
8150 dlopenmodule=
67088151 for dlpremoduletest in $dlprefiles; do
67098152 if test "X$dlpremoduletest" = "X$lib"; then
6710 dlopenmodule="$dlpremoduletest"
8153 dlopenmodule=$dlpremoduletest
67118154 break
67128155 fi
67138156 done
6714 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8157 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
67158158 echo
6716 if test "$linkmode" = prog; then
8159 if test prog = "$linkmode"; then
67178160 $ECHO "*** Warning: Linking the executable $output against the loadable module"
67188161 else
67198162 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
67208163 fi
67218164 $ECHO "*** $linklib is not portable!"
67228165 fi
6723 if test "$linkmode" = lib &&
6724 test "$hardcode_into_libs" = yes; then
8166 if test lib = "$linkmode" &&
8167 test yes = "$hardcode_into_libs"; then
67258168 # Hardcode the library path.
67268169 # Skip directories that are in the system default run-time
67278170 # search path.
67498192 # figure out the soname
67508193 set dummy $library_names
67518194 shift
6752 realname="$1"
8195 realname=$1
67538196 shift
67548197 libname=`eval "\\$ECHO \"$libname_spec\""`
67558198 # use dlname if we got it. it's perfectly good, no?
67568199 if test -n "$dlname"; then
6757 soname="$dlname"
8200 soname=$dlname
67588201 elif test -n "$soname_spec"; then
67598202 # bleh windows
67608203 case $host in
6761 *cygwin* | mingw* | *cegcc*)
8204 *cygwin* | mingw* | *cegcc* | *os2*)
67628205 func_arith $current - $age
67638206 major=$func_arith_result
6764 versuffix="-$major"
8207 versuffix=-$major
67658208 ;;
67668209 esac
67678210 eval soname=\"$soname_spec\"
67688211 else
6769 soname="$realname"
8212 soname=$realname
67708213 fi
67718214
67728215 # Make a new name for the extract_expsyms_cmds to use
6773 soroot="$soname"
8216 soroot=$soname
67748217 func_basename "$soroot"
6775 soname="$func_basename_result"
8218 soname=$func_basename_result
67768219 func_stripname 'lib' '.dll' "$soname"
67778220 newlib=libimp-$func_stripname_result.a
67788221
67798222 # If the library has no export list, then create one now
67808223 if test -f "$output_objdir/$soname-def"; then :
67818224 else
6782 func_verbose "extracting exported symbol list from \`$soname'"
8225 func_verbose "extracting exported symbol list from '$soname'"
67838226 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
67848227 fi
67858228
67868229 # Create $newlib
67878230 if test -f "$output_objdir/$newlib"; then :; else
6788 func_verbose "generating import library for \`$soname'"
8231 func_verbose "generating import library for '$soname'"
67898232 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
67908233 fi
67918234 # make sure the library variables are pointing to the new library
67938236 linklib=$newlib
67948237 fi # test -n "$old_archive_from_expsyms_cmds"
67958238
6796 if test "$linkmode" = prog || test "$opt_mode" != relink; then
8239 if test prog = "$linkmode" || test relink != "$opt_mode"; then
67978240 add_shlibpath=
67988241 add_dir=
67998242 add=
68008243 lib_linked=yes
68018244 case $hardcode_action in
68028245 immediate | unsupported)
6803 if test "$hardcode_direct" = no; then
6804 add="$dir/$linklib"
8246 if test no = "$hardcode_direct"; then
8247 add=$dir/$linklib
68058248 case $host in
6806 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6807 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
8249 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8250 *-*-sysv4*uw2*) add_dir=-L$dir ;;
68088251 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6809 *-*-unixware7*) add_dir="-L$dir" ;;
8252 *-*-unixware7*) add_dir=-L$dir ;;
68108253 *-*-darwin* )
6811 # if the lib is a (non-dlopened) module then we can not
8254 # if the lib is a (non-dlopened) module then we cannot
68128255 # link against it, someone is ignoring the earlier warnings
68138256 if /usr/bin/file -L $add 2> /dev/null |
6814 $GREP ": [^:]* bundle" >/dev/null ; then
8257 $GREP ": [^:]* bundle" >/dev/null; then
68158258 if test "X$dlopenmodule" != "X$lib"; then
68168259 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6817 if test -z "$old_library" ; then
8260 if test -z "$old_library"; then
68188261 echo
68198262 echo "*** And there doesn't seem to be a static archive available"
68208263 echo "*** The link will probably fail, sorry"
68218264 else
6822 add="$dir/$old_library"
8265 add=$dir/$old_library
68238266 fi
68248267 elif test -n "$old_library"; then
6825 add="$dir/$old_library"
8268 add=$dir/$old_library
68268269 fi
68278270 fi
68288271 esac
6829 elif test "$hardcode_minus_L" = no; then
8272 elif test no = "$hardcode_minus_L"; then
68308273 case $host in
6831 *-*-sunos*) add_shlibpath="$dir" ;;
8274 *-*-sunos*) add_shlibpath=$dir ;;
68328275 esac
6833 add_dir="-L$dir"
6834 add="-l$name"
6835 elif test "$hardcode_shlibpath_var" = no; then
6836 add_shlibpath="$dir"
6837 add="-l$name"
8276 add_dir=-L$dir
8277 add=-l$name
8278 elif test no = "$hardcode_shlibpath_var"; then
8279 add_shlibpath=$dir
8280 add=-l$name
68388281 else
68398282 lib_linked=no
68408283 fi
68418284 ;;
68428285 relink)
6843 if test "$hardcode_direct" = yes &&
6844 test "$hardcode_direct_absolute" = no; then
6845 add="$dir/$linklib"
6846 elif test "$hardcode_minus_L" = yes; then
6847 add_dir="-L$absdir"
8286 if test yes = "$hardcode_direct" &&
8287 test no = "$hardcode_direct_absolute"; then
8288 add=$dir/$linklib
8289 elif test yes = "$hardcode_minus_L"; then
8290 add_dir=-L$absdir
68488291 # Try looking first in the location we're being installed to.
68498292 if test -n "$inst_prefix_dir"; then
68508293 case $libdir in
68538296 ;;
68548297 esac
68558298 fi
6856 add="-l$name"
6857 elif test "$hardcode_shlibpath_var" = yes; then
6858 add_shlibpath="$dir"
6859 add="-l$name"
8299 add=-l$name
8300 elif test yes = "$hardcode_shlibpath_var"; then
8301 add_shlibpath=$dir
8302 add=-l$name
68608303 else
68618304 lib_linked=no
68628305 fi
68648307 *) lib_linked=no ;;
68658308 esac
68668309
6867 if test "$lib_linked" != yes; then
8310 if test yes != "$lib_linked"; then
68688311 func_fatal_configuration "unsupported hardcode properties"
68698312 fi
68708313
68748317 *) func_append compile_shlibpath "$add_shlibpath:" ;;
68758318 esac
68768319 fi
6877 if test "$linkmode" = prog; then
8320 if test prog = "$linkmode"; then
68788321 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
68798322 test -n "$add" && compile_deplibs="$add $compile_deplibs"
68808323 else
68818324 test -n "$add_dir" && deplibs="$add_dir $deplibs"
68828325 test -n "$add" && deplibs="$add $deplibs"
6883 if test "$hardcode_direct" != yes &&
6884 test "$hardcode_minus_L" != yes &&
6885 test "$hardcode_shlibpath_var" = yes; then
8326 if test yes != "$hardcode_direct" &&
8327 test yes != "$hardcode_minus_L" &&
8328 test yes = "$hardcode_shlibpath_var"; then
68868329 case :$finalize_shlibpath: in
68878330 *":$libdir:"*) ;;
68888331 *) func_append finalize_shlibpath "$libdir:" ;;
68918334 fi
68928335 fi
68938336
6894 if test "$linkmode" = prog || test "$opt_mode" = relink; then
8337 if test prog = "$linkmode" || test relink = "$opt_mode"; then
68958338 add_shlibpath=
68968339 add_dir=
68978340 add=
68988341 # Finalize command for both is simple: just hardcode it.
6899 if test "$hardcode_direct" = yes &&
6900 test "$hardcode_direct_absolute" = no; then
6901 add="$libdir/$linklib"
6902 elif test "$hardcode_minus_L" = yes; then
6903 add_dir="-L$libdir"
6904 add="-l$name"
6905 elif test "$hardcode_shlibpath_var" = yes; then
8342 if test yes = "$hardcode_direct" &&
8343 test no = "$hardcode_direct_absolute"; then
8344 add=$libdir/$linklib
8345 elif test yes = "$hardcode_minus_L"; then
8346 add_dir=-L$libdir
8347 add=-l$name
8348 elif test yes = "$hardcode_shlibpath_var"; then
69068349 case :$finalize_shlibpath: in
69078350 *":$libdir:"*) ;;
69088351 *) func_append finalize_shlibpath "$libdir:" ;;
69098352 esac
6910 add="-l$name"
6911 elif test "$hardcode_automatic" = yes; then
8353 add=-l$name
8354 elif test yes = "$hardcode_automatic"; then
69128355 if test -n "$inst_prefix_dir" &&
6913 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6914 add="$inst_prefix_dir$libdir/$linklib"
8356 test -f "$inst_prefix_dir$libdir/$linklib"; then
8357 add=$inst_prefix_dir$libdir/$linklib
69158358 else
6916 add="$libdir/$linklib"
8359 add=$libdir/$linklib
69178360 fi
69188361 else
69198362 # We cannot seem to hardcode it, guess we'll fake it.
6920 add_dir="-L$libdir"
8363 add_dir=-L$libdir
69218364 # Try looking first in the location we're being installed to.
69228365 if test -n "$inst_prefix_dir"; then
69238366 case $libdir in
69268369 ;;
69278370 esac
69288371 fi
6929 add="-l$name"
8372 add=-l$name
69308373 fi
69318374
6932 if test "$linkmode" = prog; then
8375 if test prog = "$linkmode"; then
69338376 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
69348377 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
69358378 else
69378380 test -n "$add" && deplibs="$add $deplibs"
69388381 fi
69398382 fi
6940 elif test "$linkmode" = prog; then
8383 elif test prog = "$linkmode"; then
69418384 # Here we assume that one of hardcode_direct or hardcode_minus_L
69428385 # is not unsupported. This is valid on all known static and
69438386 # shared platforms.
6944 if test "$hardcode_direct" != unsupported; then
6945 test -n "$old_library" && linklib="$old_library"
8387 if test unsupported != "$hardcode_direct"; then
8388 test -n "$old_library" && linklib=$old_library
69468389 compile_deplibs="$dir/$linklib $compile_deplibs"
69478390 finalize_deplibs="$dir/$linklib $finalize_deplibs"
69488391 else
69498392 compile_deplibs="-l$name -L$dir $compile_deplibs"
69508393 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
69518394 fi
6952 elif test "$build_libtool_libs" = yes; then
8395 elif test yes = "$build_libtool_libs"; then
69538396 # Not a shared library
6954 if test "$deplibs_check_method" != pass_all; then
8397 if test pass_all != "$deplibs_check_method"; then
69558398 # We're trying link a shared library against a static one
69568399 # but the system doesn't support it.
69578400
69588401 # Just print a warning and add the library to dependency_libs so
69598402 # that the program can be linked against the static library.
69608403 echo
6961 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8404 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
69628405 echo "*** I have the capability to make that library automatically link in when"
69638406 echo "*** you link to this library. But I can only do this if you have a"
69648407 echo "*** shared version of the library, which you do not appear to have."
6965 if test "$module" = yes; then
8408 if test yes = "$module"; then
69668409 echo "*** But as you try to build a module library, libtool will still create "
69678410 echo "*** a static module, that should work as long as the dlopening application"
69688411 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
69698412 if test -z "$global_symbol_pipe"; then
69708413 echo
69718414 echo "*** However, this would only work if libtool was able to extract symbol"
6972 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8415 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
69738416 echo "*** not find such a program. So, this module is probably useless."
6974 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8417 echo "*** 'nm' from GNU binutils and a full rebuild may help."
69758418 fi
6976 if test "$build_old_libs" = no; then
8419 if test no = "$build_old_libs"; then
69778420 build_libtool_libs=module
69788421 build_old_libs=yes
69798422 else
69868429 fi
69878430 fi # link shared/static library?
69888431
6989 if test "$linkmode" = lib; then
8432 if test lib = "$linkmode"; then
69908433 if test -n "$dependency_libs" &&
6991 { test "$hardcode_into_libs" != yes ||
6992 test "$build_old_libs" = yes ||
6993 test "$link_static" = yes; }; then
8434 { test yes != "$hardcode_into_libs" ||
8435 test yes = "$build_old_libs" ||
8436 test yes = "$link_static"; }; then
69948437 # Extract -R from dependency_libs
69958438 temp_deplibs=
69968439 for libdir in $dependency_libs; do
70048447 *) func_append temp_deplibs " $libdir";;
70058448 esac
70068449 done
7007 dependency_libs="$temp_deplibs"
8450 dependency_libs=$temp_deplibs
70088451 fi
70098452
70108453 func_append newlib_search_path " $absdir"
70118454 # Link against this library
7012 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8455 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
70138456 # ... and its dependency_libs
70148457 tmp_libs=
70158458 for deplib in $dependency_libs; do
70198462 func_resolve_sysroot "$func_stripname_result";;
70208463 *) func_resolve_sysroot "$deplib" ;;
70218464 esac
7022 if $opt_preserve_dup_deps ; then
8465 if $opt_preserve_dup_deps; then
70238466 case "$tmp_libs " in
70248467 *" $func_resolve_sysroot_result "*)
70258468 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
70288471 func_append tmp_libs " $func_resolve_sysroot_result"
70298472 done
70308473
7031 if test "$link_all_deplibs" != no; then
8474 if test no != "$link_all_deplibs"; then
70328475 # Add the search paths of all dependency libraries
70338476 for deplib in $dependency_libs; do
70348477 path=
70358478 case $deplib in
7036 -L*) path="$deplib" ;;
8479 -L*) path=$deplib ;;
70378480 *.la)
70388481 func_resolve_sysroot "$deplib"
70398482 deplib=$func_resolve_sysroot_result
70418484 dir=$func_dirname_result
70428485 # We need an absolute path.
70438486 case $dir in
7044 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
8487 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
70458488 *)
70468489 absdir=`cd "$dir" && pwd`
70478490 if test -z "$absdir"; then
7048 func_warning "cannot determine absolute directory name of \`$dir'"
7049 absdir="$dir"
8491 func_warning "cannot determine absolute directory name of '$dir'"
8492 absdir=$dir
70508493 fi
70518494 ;;
70528495 esac
70548497 case $host in
70558498 *-*-darwin*)
70568499 depdepl=
7057 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7058 if test -n "$deplibrary_names" ; then
7059 for tmp in $deplibrary_names ; do
8500 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8501 if test -n "$deplibrary_names"; then
8502 for tmp in $deplibrary_names; do
70608503 depdepl=$tmp
70618504 done
7062 if test -f "$absdir/$objdir/$depdepl" ; then
7063 depdepl="$absdir/$objdir/$depdepl"
7064 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8505 if test -f "$absdir/$objdir/$depdepl"; then
8506 depdepl=$absdir/$objdir/$depdepl
8507 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70658508 if test -z "$darwin_install_name"; then
7066 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8509 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70678510 fi
7068 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7069 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
8511 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8512 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
70708513 path=
70718514 fi
70728515 fi
70738516 ;;
70748517 *)
7075 path="-L$absdir/$objdir"
8518 path=-L$absdir/$objdir
70768519 ;;
70778520 esac
70788521 else
7079 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8522 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
70808523 test -z "$libdir" && \
7081 func_fatal_error "\`$deplib' is not a valid libtool archive"
8524 func_fatal_error "'$deplib' is not a valid libtool archive"
70828525 test "$absdir" != "$libdir" && \
7083 func_warning "\`$deplib' seems to be moved"
7084
7085 path="-L$absdir"
8526 func_warning "'$deplib' seems to be moved"
8527
8528 path=-L$absdir
70868529 fi
70878530 ;;
70888531 esac
70948537 fi # link_all_deplibs != no
70958538 fi # linkmode = lib
70968539 done # for deplib in $libs
7097 if test "$pass" = link; then
7098 if test "$linkmode" = "prog"; then
8540 if test link = "$pass"; then
8541 if test prog = "$linkmode"; then
70998542 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
71008543 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
71018544 else
71028545 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
71038546 fi
71048547 fi
7105 dependency_libs="$newdependency_libs"
7106 if test "$pass" = dlpreopen; then
8548 dependency_libs=$newdependency_libs
8549 if test dlpreopen = "$pass"; then
71078550 # Link the dlpreopened libraries before other libraries
71088551 for deplib in $save_deplibs; do
71098552 deplibs="$deplib $deplibs"
71108553 done
71118554 fi
7112 if test "$pass" != dlopen; then
7113 if test "$pass" != conv; then
8555 if test dlopen != "$pass"; then
8556 test conv = "$pass" || {
71148557 # Make sure lib_search_path contains only unique directories.
71158558 lib_search_path=
71168559 for dir in $newlib_search_path; do
71208563 esac
71218564 done
71228565 newlib_search_path=
7123 fi
7124
7125 if test "$linkmode,$pass" != "prog,link"; then
7126 vars="deplibs"
8566 }
8567
8568 if test prog,link = "$linkmode,$pass"; then
8569 vars="compile_deplibs finalize_deplibs"
71278570 else
7128 vars="compile_deplibs finalize_deplibs"
8571 vars=deplibs
71298572 fi
71308573 for var in $vars dependency_libs; do
71318574 # Add libraries to $var in reverse order
71838626 eval $var=\"$tmp_libs\"
71848627 done # for var
71858628 fi
8629
8630 # Add Sun CC postdeps if required:
8631 test CXX = "$tagname" && {
8632 case $host_os in
8633 linux*)
8634 case `$CC -V 2>&1 | sed 5q` in
8635 *Sun\ C*) # Sun C++ 5.9
8636 func_suncc_cstd_abi
8637
8638 if test no != "$suncc_use_cstd_abi"; then
8639 func_append postdeps ' -library=Cstd -library=Crun'
8640 fi
8641 ;;
8642 esac
8643 ;;
8644
8645 solaris*)
8646 func_cc_basename "$CC"
8647 case $func_cc_basename_result in
8648 CC* | sunCC*)
8649 func_suncc_cstd_abi
8650
8651 if test no != "$suncc_use_cstd_abi"; then
8652 func_append postdeps ' -library=Cstd -library=Crun'
8653 fi
8654 ;;
8655 esac
8656 ;;
8657 esac
8658 }
8659
71868660 # Last step: remove runtime libs from dependency_libs
71878661 # (they stay in deplibs)
71888662 tmp_libs=
7189 for i in $dependency_libs ; do
8663 for i in $dependency_libs; do
71908664 case " $predeps $postdeps $compiler_lib_search_path " in
71918665 *" $i "*)
7192 i=""
8666 i=
71938667 ;;
71948668 esac
7195 if test -n "$i" ; then
8669 if test -n "$i"; then
71968670 func_append tmp_libs " $i"
71978671 fi
71988672 done
71998673 dependency_libs=$tmp_libs
72008674 done # for pass
7201 if test "$linkmode" = prog; then
7202 dlfiles="$newdlfiles"
8675 if test prog = "$linkmode"; then
8676 dlfiles=$newdlfiles
72038677 fi
7204 if test "$linkmode" = prog || test "$linkmode" = lib; then
7205 dlprefiles="$newdlprefiles"
8678 if test prog = "$linkmode" || test lib = "$linkmode"; then
8679 dlprefiles=$newdlprefiles
72068680 fi
72078681
72088682 case $linkmode in
72098683 oldlib)
7210 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7211 func_warning "\`-dlopen' is ignored for archives"
8684 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8685 func_warning "'-dlopen' is ignored for archives"
72128686 fi
72138687
72148688 case " $deplibs" in
72158689 *\ -l* | *\ -L*)
7216 func_warning "\`-l' and \`-L' are ignored for archives" ;;
8690 func_warning "'-l' and '-L' are ignored for archives" ;;
72178691 esac
72188692
72198693 test -n "$rpath" && \
7220 func_warning "\`-rpath' is ignored for archives"
8694 func_warning "'-rpath' is ignored for archives"
72218695
72228696 test -n "$xrpath" && \
7223 func_warning "\`-R' is ignored for archives"
8697 func_warning "'-R' is ignored for archives"
72248698
72258699 test -n "$vinfo" && \
7226 func_warning "\`-version-info/-version-number' is ignored for archives"
8700 func_warning "'-version-info/-version-number' is ignored for archives"
72278701
72288702 test -n "$release" && \
7229 func_warning "\`-release' is ignored for archives"
8703 func_warning "'-release' is ignored for archives"
72308704
72318705 test -n "$export_symbols$export_symbols_regex" && \
7232 func_warning "\`-export-symbols' is ignored for archives"
8706 func_warning "'-export-symbols' is ignored for archives"
72338707
72348708 # Now set the variables for building old libraries.
72358709 build_libtool_libs=no
7236 oldlibs="$output"
8710 oldlibs=$output
72378711 func_append objs "$old_deplibs"
72388712 ;;
72398713
72408714 lib)
7241 # Make sure we only generate libraries of the form `libNAME.la'.
8715 # Make sure we only generate libraries of the form 'libNAME.la'.
72428716 case $outputname in
72438717 lib*)
72448718 func_stripname 'lib' '.la' "$outputname"
72478721 eval libname=\"$libname_spec\"
72488722 ;;
72498723 *)
7250 test "$module" = no && \
7251 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7252
7253 if test "$need_lib_prefix" != no; then
8724 test no = "$module" \
8725 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8726
8727 if test no != "$need_lib_prefix"; then
72548728 # Add the "lib" prefix for modules if required
72558729 func_stripname '' '.la' "$outputname"
72568730 name=$func_stripname_result
72648738 esac
72658739
72668740 if test -n "$objs"; then
7267 if test "$deplibs_check_method" != pass_all; then
7268 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
8741 if test pass_all != "$deplibs_check_method"; then
8742 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
72698743 else
72708744 echo
72718745 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72748748 fi
72758749 fi
72768750
7277 test "$dlself" != no && \
7278 func_warning "\`-dlopen self' is ignored for libtool libraries"
8751 test no = "$dlself" \
8752 || func_warning "'-dlopen self' is ignored for libtool libraries"
72798753
72808754 set dummy $rpath
72818755 shift
7282 test "$#" -gt 1 && \
7283 func_warning "ignoring multiple \`-rpath's for a libtool library"
7284
7285 install_libdir="$1"
8756 test 1 -lt "$#" \
8757 && func_warning "ignoring multiple '-rpath's for a libtool library"
8758
8759 install_libdir=$1
72868760
72878761 oldlibs=
72888762 if test -z "$rpath"; then
7289 if test "$build_libtool_libs" = yes; then
8763 if test yes = "$build_libtool_libs"; then
72908764 # Building a libtool convenience library.
7291 # Some compilers have problems with a `.al' extension so
8765 # Some compilers have problems with a '.al' extension so
72928766 # convenience libraries should have the same extension an
72938767 # archive normally would.
72948768 oldlibs="$output_objdir/$libname.$libext $oldlibs"
72978771 fi
72988772
72998773 test -n "$vinfo" && \
7300 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
8774 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
73018775
73028776 test -n "$release" && \
7303 func_warning "\`-release' is ignored for convenience libraries"
8777 func_warning "'-release' is ignored for convenience libraries"
73048778 else
73058779
73068780 # Parse the version information argument.
7307 save_ifs="$IFS"; IFS=':'
8781 save_ifs=$IFS; IFS=:
73088782 set dummy $vinfo 0 0 0
73098783 shift
7310 IFS="$save_ifs"
8784 IFS=$save_ifs
73118785
73128786 test -n "$7" && \
7313 func_fatal_help "too many parameters to \`-version-info'"
8787 func_fatal_help "too many parameters to '-version-info'"
73148788
73158789 # convert absolute version numbers to libtool ages
73168790 # this retains compatibility with .la files and attempts
73188792
73198793 case $vinfo_number in
73208794 yes)
7321 number_major="$1"
7322 number_minor="$2"
7323 number_revision="$3"
8795 number_major=$1
8796 number_minor=$2
8797 number_revision=$3
73248798 #
73258799 # There are really only two kinds -- those that
73268800 # use the current revision as the major version
73278801 # and those that subtract age and use age as
73288802 # a minor version. But, then there is irix
7329 # which has an extra 1 added just for fun
8803 # that has an extra 1 added just for fun
73308804 #
73318805 case $version_type in
73328806 # correct linux to gnu/linux during the next big refactor
7333 darwin|linux|osf|windows|none)
8807 darwin|freebsd-elf|linux|osf|windows|none)
73348808 func_arith $number_major + $number_minor
73358809 current=$func_arith_result
7336 age="$number_minor"
7337 revision="$number_revision"
8810 age=$number_minor
8811 revision=$number_revision
73388812 ;;
7339 freebsd-aout|freebsd-elf|qnx|sunos)
7340 current="$number_major"
7341 revision="$number_minor"
7342 age="0"
8813 freebsd-aout|qnx|sunos)
8814 current=$number_major
8815 revision=$number_minor
8816 age=0
73438817 ;;
73448818 irix|nonstopux)
73458819 func_arith $number_major + $number_minor
73468820 current=$func_arith_result
7347 age="$number_minor"
7348 revision="$number_minor"
8821 age=$number_minor
8822 revision=$number_minor
73498823 lt_irix_increment=no
73508824 ;;
73518825 esac
73528826 ;;
73538827 no)
7354 current="$1"
7355 revision="$2"
7356 age="$3"
8828 current=$1
8829 revision=$2
8830 age=$3
73578831 ;;
73588832 esac
73598833
73618835 case $current in
73628836 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73638837 *)
7364 func_error "CURRENT \`$current' must be a nonnegative integer"
7365 func_fatal_error "\`$vinfo' is not valid version information"
8838 func_error "CURRENT '$current' must be a nonnegative integer"
8839 func_fatal_error "'$vinfo' is not valid version information"
73668840 ;;
73678841 esac
73688842
73698843 case $revision in
73708844 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73718845 *)
7372 func_error "REVISION \`$revision' must be a nonnegative integer"
7373 func_fatal_error "\`$vinfo' is not valid version information"
8846 func_error "REVISION '$revision' must be a nonnegative integer"
8847 func_fatal_error "'$vinfo' is not valid version information"
73748848 ;;
73758849 esac
73768850
73778851 case $age in
73788852 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73798853 *)
7380 func_error "AGE \`$age' must be a nonnegative integer"
7381 func_fatal_error "\`$vinfo' is not valid version information"
8854 func_error "AGE '$age' must be a nonnegative integer"
8855 func_fatal_error "'$vinfo' is not valid version information"
73828856 ;;
73838857 esac
73848858
73858859 if test "$age" -gt "$current"; then
7386 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7387 func_fatal_error "\`$vinfo' is not valid version information"
8860 func_error "AGE '$age' is greater than the current interface number '$current'"
8861 func_fatal_error "'$vinfo' is not valid version information"
73888862 fi
73898863
73908864 # Calculate the version variables.
73998873 # verstring for coding it into the library header
74008874 func_arith $current - $age
74018875 major=.$func_arith_result
7402 versuffix="$major.$age.$revision"
8876 versuffix=$major.$age.$revision
74038877 # Darwin ld doesn't like 0 for these options...
74048878 func_arith $current + 1
74058879 minor_current=$func_arith_result
7406 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8880 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
74078881 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8882 # On Darwin other compilers
8883 case $CC in
8884 nagfor*)
8885 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8886 ;;
8887 *)
8888 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8889 ;;
8890 esac
74088891 ;;
74098892
74108893 freebsd-aout)
7411 major=".$current"
7412 versuffix=".$current.$revision";
8894 major=.$current
8895 versuffix=.$current.$revision
74138896 ;;
74148897
74158898 freebsd-elf)
7416 major=".$current"
7417 versuffix=".$current"
8899 func_arith $current - $age
8900 major=.$func_arith_result
8901 versuffix=$major.$age.$revision
74188902 ;;
74198903
74208904 irix | nonstopux)
7421 if test "X$lt_irix_increment" = "Xno"; then
8905 if test no = "$lt_irix_increment"; then
74228906 func_arith $current - $age
74238907 else
74248908 func_arith $current - $age + 1
74298913 nonstopux) verstring_prefix=nonstopux ;;
74308914 *) verstring_prefix=sgi ;;
74318915 esac
7432 verstring="$verstring_prefix$major.$revision"
8916 verstring=$verstring_prefix$major.$revision
74338917
74348918 # Add in all the interfaces that we are compatible with.
74358919 loop=$revision
7436 while test "$loop" -ne 0; do
8920 while test 0 -ne "$loop"; do
74378921 func_arith $revision - $loop
74388922 iface=$func_arith_result
74398923 func_arith $loop - 1
74408924 loop=$func_arith_result
7441 verstring="$verstring_prefix$major.$iface:$verstring"
8925 verstring=$verstring_prefix$major.$iface:$verstring
74428926 done
74438927
7444 # Before this point, $major must not contain `.'.
8928 # Before this point, $major must not contain '.'.
74458929 major=.$major
7446 versuffix="$major.$revision"
8930 versuffix=$major.$revision
74478931 ;;
74488932
74498933 linux) # correct to gnu/linux during the next big refactor
74508934 func_arith $current - $age
74518935 major=.$func_arith_result
7452 versuffix="$major.$age.$revision"
8936 versuffix=$major.$age.$revision
74538937 ;;
74548938
74558939 osf)
74568940 func_arith $current - $age
74578941 major=.$func_arith_result
7458 versuffix=".$current.$age.$revision"
7459 verstring="$current.$age.$revision"
8942 versuffix=.$current.$age.$revision
8943 verstring=$current.$age.$revision
74608944
74618945 # Add in all the interfaces that we are compatible with.
74628946 loop=$age
7463 while test "$loop" -ne 0; do
8947 while test 0 -ne "$loop"; do
74648948 func_arith $current - $loop
74658949 iface=$func_arith_result
74668950 func_arith $loop - 1
74678951 loop=$func_arith_result
7468 verstring="$verstring:${iface}.0"
8952 verstring=$verstring:$iface.0
74698953 done
74708954
74718955 # Make executables depend on our current version.
7472 func_append verstring ":${current}.0"
8956 func_append verstring ":$current.0"
74738957 ;;
74748958
74758959 qnx)
7476 major=".$current"
7477 versuffix=".$current"
8960 major=.$current
8961 versuffix=.$current
74788962 ;;
74798963
8964 sco)
8965 major=.$current
8966 versuffix=.$current
8967 ;;
8968
74808969 sunos)
7481 major=".$current"
7482 versuffix=".$current.$revision"
8970 major=.$current
8971 versuffix=.$current.$revision
74838972 ;;
74848973
74858974 windows)
74868975 # Use '-' rather than '.', since we only want one
7487 # extension on DOS 8.3 filesystems.
8976 # extension on DOS 8.3 file systems.
74888977 func_arith $current - $age
74898978 major=$func_arith_result
7490 versuffix="-$major"
8979 versuffix=-$major
74918980 ;;
74928981
74938982 *)
7494 func_fatal_configuration "unknown library version type \`$version_type'"
8983 func_fatal_configuration "unknown library version type '$version_type'"
74958984 ;;
74968985 esac
74978986
75058994 verstring=
75068995 ;;
75078996 *)
7508 verstring="0.0"
8997 verstring=0.0
75098998 ;;
75108999 esac
7511 if test "$need_version" = no; then
9000 if test no = "$need_version"; then
75129001 versuffix=
75139002 else
7514 versuffix=".0.0"
9003 versuffix=.0.0
75159004 fi
75169005 fi
75179006
75189007 # Remove version info from name if versioning should be avoided
7519 if test "$avoid_version" = yes && test "$need_version" = no; then
9008 if test yes,no = "$avoid_version,$need_version"; then
75209009 major=
75219010 versuffix=
7522 verstring=""
9011 verstring=
75239012 fi
75249013
75259014 # Check to see if the archive will have undefined symbols.
7526 if test "$allow_undefined" = yes; then
7527 if test "$allow_undefined_flag" = unsupported; then
7528 func_warning "undefined symbols not allowed in $host shared libraries"
7529 build_libtool_libs=no
7530 build_old_libs=yes
9015 if test yes = "$allow_undefined"; then
9016 if test unsupported = "$allow_undefined_flag"; then
9017 if test yes = "$build_old_libs"; then
9018 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9019 build_libtool_libs=no
9020 else
9021 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9022 fi
75319023 fi
75329024 else
75339025 # Don't allow undefined symbols.
7534 allow_undefined_flag="$no_undefined_flag"
9026 allow_undefined_flag=$no_undefined_flag
75359027 fi
75369028
75379029 fi
75389030
7539 func_generate_dlsyms "$libname" "$libname" "yes"
9031 func_generate_dlsyms "$libname" "$libname" :
75409032 func_append libobjs " $symfileobj"
7541 test "X$libobjs" = "X " && libobjs=
7542
7543 if test "$opt_mode" != relink; then
9033 test " " = "$libobjs" && libobjs=
9034
9035 if test relink != "$opt_mode"; then
75449036 # Remove our outputs, but don't remove object files since they
75459037 # may have been created when compiling PIC objects.
75469038 removelist=
75499041 case $p in
75509042 *.$objext | *.gcno)
75519043 ;;
7552 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7553 if test "X$precious_files_regex" != "X"; then
9044 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9045 if test -n "$precious_files_regex"; then
75549046 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
75559047 then
75569048 continue
75669058 fi
75679059
75689060 # Now set the variables for building old libraries.
7569 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
9061 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
75709062 func_append oldlibs " $output_objdir/$libname.$libext"
75719063
75729064 # Transform .lo files to .o files.
7573 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
9065 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
75749066 fi
75759067
75769068 # Eliminate all temporary directories.
75919083 *) func_append finalize_rpath " $libdir" ;;
75929084 esac
75939085 done
7594 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
9086 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
75959087 dependency_libs="$temp_xrpath $dependency_libs"
75969088 fi
75979089 fi
75989090
75999091 # Make sure dlfiles contains only unique files that won't be dlpreopened
7600 old_dlfiles="$dlfiles"
9092 old_dlfiles=$dlfiles
76019093 dlfiles=
76029094 for lib in $old_dlfiles; do
76039095 case " $dlprefiles $dlfiles " in
76079099 done
76089100
76099101 # Make sure dlprefiles contains only unique files
7610 old_dlprefiles="$dlprefiles"
9102 old_dlprefiles=$dlprefiles
76119103 dlprefiles=
76129104 for lib in $old_dlprefiles; do
76139105 case "$dlprefiles " in
76169108 esac
76179109 done
76189110
7619 if test "$build_libtool_libs" = yes; then
9111 if test yes = "$build_libtool_libs"; then
76209112 if test -n "$rpath"; then
76219113 case $host in
76229114 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
76409132 ;;
76419133 *)
76429134 # Add libc to deplibs on all other systems if necessary.
7643 if test "$build_libtool_need_lc" = "yes"; then
9135 if test yes = "$build_libtool_need_lc"; then
76449136 func_append deplibs " -lc"
76459137 fi
76469138 ;;
76569148 # I'm not sure if I'm treating the release correctly. I think
76579149 # release should show up in the -l (ie -lgmp5) so we don't want to
76589150 # add it in twice. Is that correct?
7659 release=""
7660 versuffix=""
7661 major=""
9151 release=
9152 versuffix=
9153 major=
76629154 newdeplibs=
76639155 droppeddeps=no
76649156 case $deplibs_check_method in
76879179 -l*)
76889180 func_stripname -l '' "$i"
76899181 name=$func_stripname_result
7690 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9182 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
76919183 case " $predeps $postdeps " in
76929184 *" $i "*)
76939185 func_append newdeplibs " $i"
7694 i=""
9186 i=
76959187 ;;
76969188 esac
76979189 fi
7698 if test -n "$i" ; then
9190 if test -n "$i"; then
76999191 libname=`eval "\\$ECHO \"$libname_spec\""`
77009192 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77019193 set dummy $deplib_matches; shift
77029194 deplib_match=$1
7703 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9195 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77049196 func_append newdeplibs " $i"
77059197 else
77069198 droppeddeps=yes
77309222 $opt_dry_run || $RM conftest
77319223 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
77329224 ldd_output=`ldd conftest`
7733 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9225 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77349226 case " $predeps $postdeps " in
77359227 *" $i "*)
77369228 func_append newdeplibs " $i"
7737 i=""
9229 i=
77389230 ;;
77399231 esac
77409232 fi
7741 if test -n "$i" ; then
9233 if test -n "$i"; then
77429234 libname=`eval "\\$ECHO \"$libname_spec\""`
77439235 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77449236 set dummy $deplib_matches; shift
77459237 deplib_match=$1
7746 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9238 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77479239 func_append newdeplibs " $i"
77489240 else
77499241 droppeddeps=yes
77809272 -l*)
77819273 func_stripname -l '' "$a_deplib"
77829274 name=$func_stripname_result
7783 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9275 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77849276 case " $predeps $postdeps " in
77859277 *" $a_deplib "*)
77869278 func_append newdeplibs " $a_deplib"
7787 a_deplib=""
9279 a_deplib=
77889280 ;;
77899281 esac
77909282 fi
7791 if test -n "$a_deplib" ; then
9283 if test -n "$a_deplib"; then
77929284 libname=`eval "\\$ECHO \"$libname_spec\""`
77939285 if test -n "$file_magic_glob"; then
77949286 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
77959287 else
77969288 libnameglob=$libname
77979289 fi
7798 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
9290 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
77999291 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7800 if test "$want_nocaseglob" = yes; then
9292 if test yes = "$want_nocaseglob"; then
78019293 shopt -s nocaseglob
78029294 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
78039295 $nocaseglob
78159307 # We might still enter an endless loop, since a link
78169308 # loop can be closed while we follow links,
78179309 # but so what?
7818 potlib="$potent_lib"
9310 potlib=$potent_lib
78199311 while test -h "$potlib" 2>/dev/null; do
7820 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
9312 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
78219313 case $potliblink in
7822 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7823 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
9314 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9315 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
78249316 esac
78259317 done
78269318 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78279319 $SED -e 10q |
78289320 $EGREP "$file_magic_regex" > /dev/null; then
78299321 func_append newdeplibs " $a_deplib"
7830 a_deplib=""
9322 a_deplib=
78319323 break 2
78329324 fi
78339325 done
78349326 done
78359327 fi
7836 if test -n "$a_deplib" ; then
9328 if test -n "$a_deplib"; then
78379329 droppeddeps=yes
78389330 echo
78399331 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78419333 echo "*** you link to this library. But I can only do this if you have a"
78429334 echo "*** shared version of the library, which you do not appear to have"
78439335 echo "*** because I did check the linker path looking for a file starting"
7844 if test -z "$potlib" ; then
9336 if test -z "$potlib"; then
78459337 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78469338 else
78479339 $ECHO "*** with $libname and none of the candidates passed a file format test"
78649356 -l*)
78659357 func_stripname -l '' "$a_deplib"
78669358 name=$func_stripname_result
7867 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9359 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
78689360 case " $predeps $postdeps " in
78699361 *" $a_deplib "*)
78709362 func_append newdeplibs " $a_deplib"
7871 a_deplib=""
9363 a_deplib=
78729364 ;;
78739365 esac
78749366 fi
7875 if test -n "$a_deplib" ; then
9367 if test -n "$a_deplib"; then
78769368 libname=`eval "\\$ECHO \"$libname_spec\""`
78779369 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
78789370 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78799371 for potent_lib in $potential_libs; do
7880 potlib="$potent_lib" # see symlink-check above in file_magic test
9372 potlib=$potent_lib # see symlink-check above in file_magic test
78819373 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
78829374 $EGREP "$match_pattern_regex" > /dev/null; then
78839375 func_append newdeplibs " $a_deplib"
7884 a_deplib=""
9376 a_deplib=
78859377 break 2
78869378 fi
78879379 done
78889380 done
78899381 fi
7890 if test -n "$a_deplib" ; then
9382 if test -n "$a_deplib"; then
78919383 droppeddeps=yes
78929384 echo
78939385 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78959387 echo "*** you link to this library. But I can only do this if you have a"
78969388 echo "*** shared version of the library, which you do not appear to have"
78979389 echo "*** because I did check the linker path looking for a file starting"
7898 if test -z "$potlib" ; then
9390 if test -z "$potlib"; then
78999391 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
79009392 else
79019393 $ECHO "*** with $libname and none of the candidates passed a file format test"
79119403 done # Gone through all deplibs.
79129404 ;;
79139405 none | unknown | *)
7914 newdeplibs=""
9406 newdeplibs=
79159407 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7916 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7917 for i in $predeps $postdeps ; do
9408 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9409 for i in $predeps $postdeps; do
79189410 # can't use Xsed below, because $i might contain '/'
7919 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
9411 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
79209412 done
79219413 fi
79229414 case $tmp_deplibs in
79239415 *[!\ \ ]*)
79249416 echo
7925 if test "X$deplibs_check_method" = "Xnone"; then
9417 if test none = "$deplibs_check_method"; then
79269418 echo "*** Warning: inter-library dependencies are not supported in this platform."
79279419 else
79289420 echo "*** Warning: inter-library dependencies are not known to be supported."
79469438 ;;
79479439 esac
79489440
7949 if test "$droppeddeps" = yes; then
7950 if test "$module" = yes; then
9441 if test yes = "$droppeddeps"; then
9442 if test yes = "$module"; then
79519443 echo
79529444 echo "*** Warning: libtool could not satisfy all declared inter-library"
79539445 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
79569448 if test -z "$global_symbol_pipe"; then
79579449 echo
79589450 echo "*** However, this would only work if libtool was able to extract symbol"
7959 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
9451 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
79609452 echo "*** not find such a program. So, this module is probably useless."
7961 echo "*** \`nm' from GNU binutils and a full rebuild may help."
9453 echo "*** 'nm' from GNU binutils and a full rebuild may help."
79629454 fi
7963 if test "$build_old_libs" = no; then
7964 oldlibs="$output_objdir/$libname.$libext"
9455 if test no = "$build_old_libs"; then
9456 oldlibs=$output_objdir/$libname.$libext
79659457 build_libtool_libs=module
79669458 build_old_libs=yes
79679459 else
79729464 echo "*** automatically added whenever a program is linked with this library"
79739465 echo "*** or is declared to -dlopen it."
79749466
7975 if test "$allow_undefined" = no; then
9467 if test no = "$allow_undefined"; then
79769468 echo
79779469 echo "*** Since this library must not contain undefined symbols,"
79789470 echo "*** because either the platform does not support them or"
79799471 echo "*** it was explicitly requested with -no-undefined,"
79809472 echo "*** libtool will only create a static version of it."
7981 if test "$build_old_libs" = no; then
7982 oldlibs="$output_objdir/$libname.$libext"
9473 if test no = "$build_old_libs"; then
9474 oldlibs=$output_objdir/$libname.$libext
79839475 build_libtool_libs=module
79849476 build_old_libs=yes
79859477 else
80259517 *) func_append new_libs " $deplib" ;;
80269518 esac
80279519 done
8028 deplibs="$new_libs"
9520 deplibs=$new_libs
80299521
80309522 # All the library-specific variables (install_libdir is set above).
80319523 library_names=
80339525 dlname=
80349526
80359527 # Test again, we may have decided not to build it any more
8036 if test "$build_libtool_libs" = yes; then
8037 # Remove ${wl} instances when linking with ld.
9528 if test yes = "$build_libtool_libs"; then
9529 # Remove $wl instances when linking with ld.
80389530 # FIXME: should test the right _cmds variable.
80399531 case $archive_cmds in
80409532 *\$LD\ *) wl= ;;
80419533 esac
8042 if test "$hardcode_into_libs" = yes; then
9534 if test yes = "$hardcode_into_libs"; then
80439535 # Hardcode the library paths
80449536 hardcode_libdirs=
80459537 dep_rpath=
8046 rpath="$finalize_rpath"
8047 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
9538 rpath=$finalize_rpath
9539 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
80489540 for libdir in $rpath; do
80499541 if test -n "$hardcode_libdir_flag_spec"; then
80509542 if test -n "$hardcode_libdir_separator"; then
80519543 func_replace_sysroot "$libdir"
80529544 libdir=$func_replace_sysroot_result
80539545 if test -z "$hardcode_libdirs"; then
8054 hardcode_libdirs="$libdir"
9546 hardcode_libdirs=$libdir
80559547 else
80569548 # Just accumulate the unique libdirs.
80579549 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
80769568 # Substitute the hardcoded libdirs into the rpath.
80779569 if test -n "$hardcode_libdir_separator" &&
80789570 test -n "$hardcode_libdirs"; then
8079 libdir="$hardcode_libdirs"
9571 libdir=$hardcode_libdirs
80809572 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80819573 fi
80829574 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80909582 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
80919583 fi
80929584
8093 shlibpath="$finalize_shlibpath"
8094 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
9585 shlibpath=$finalize_shlibpath
9586 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
80959587 if test -n "$shlibpath"; then
80969588 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
80979589 fi
81019593 eval library_names=\"$library_names_spec\"
81029594 set dummy $library_names
81039595 shift
8104 realname="$1"
9596 realname=$1
81059597 shift
81069598
81079599 if test -n "$soname_spec"; then
81089600 eval soname=\"$soname_spec\"
81099601 else
8110 soname="$realname"
9602 soname=$realname
81119603 fi
81129604 if test -z "$dlname"; then
81139605 dlname=$soname
81149606 fi
81159607
8116 lib="$output_objdir/$realname"
9608 lib=$output_objdir/$realname
81179609 linknames=
81189610 for link
81199611 do
81279619 delfiles=
81289620 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81299621 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8130 export_symbols="$output_objdir/$libname.uexp"
9622 export_symbols=$output_objdir/$libname.uexp
81319623 func_append delfiles " $export_symbols"
81329624 fi
81339625
81369628 cygwin* | mingw* | cegcc*)
81379629 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
81389630 # exporting using user supplied symfile
8139 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
9631 func_dll_def_p "$export_symbols" || {
81409632 # and it's NOT already a .def file. Must figure out
81419633 # which of the given symbols are data symbols and tag
81429634 # them as such. So, trigger use of export_symbols_cmds.
81439635 # export_symbols gets reassigned inside the "prepare
81449636 # the list of exported symbols" if statement, so the
81459637 # include_expsyms logic still works.
8146 orig_export_symbols="$export_symbols"
9638 orig_export_symbols=$export_symbols
81479639 export_symbols=
81489640 always_export_symbols=yes
8149 fi
9641 }
81509642 fi
81519643 ;;
81529644 esac
81539645
81549646 # Prepare the list of exported symbols
81559647 if test -z "$export_symbols"; then
8156 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8157 func_verbose "generating symbol list for \`$libname.la'"
8158 export_symbols="$output_objdir/$libname.exp"
9648 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9649 func_verbose "generating symbol list for '$libname.la'"
9650 export_symbols=$output_objdir/$libname.exp
81599651 $opt_dry_run || $RM $export_symbols
81609652 cmds=$export_symbols_cmds
8161 save_ifs="$IFS"; IFS='~'
9653 save_ifs=$IFS; IFS='~'
81629654 for cmd1 in $cmds; do
8163 IFS="$save_ifs"
9655 IFS=$save_ifs
81649656 # Take the normal branch if the nm_file_list_spec branch
81659657 # doesn't work or if tool conversion is not needed.
81669658 case $nm_file_list_spec~$to_tool_file_cmd in
81749666 try_normal_branch=no
81759667 ;;
81769668 esac
8177 if test "$try_normal_branch" = yes \
9669 if test yes = "$try_normal_branch" \
81789670 && { test "$len" -lt "$max_cmd_len" \
81799671 || test "$max_cmd_len" -le -1; }
81809672 then
81859677 output_la=$func_basename_result
81869678 save_libobjs=$libobjs
81879679 save_output=$output
8188 output=${output_objdir}/${output_la}.nm
9680 output=$output_objdir/$output_la.nm
81899681 func_to_tool_file "$output"
81909682 libobjs=$nm_file_list_spec$func_to_tool_file_result
81919683 func_append delfiles " $output"
82089700 break
82099701 fi
82109702 done
8211 IFS="$save_ifs"
8212 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
9703 IFS=$save_ifs
9704 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
82139705 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
82149706 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
82159707 fi
82179709 fi
82189710
82199711 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8220 tmp_export_symbols="$export_symbols"
8221 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9712 tmp_export_symbols=$export_symbols
9713 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
82229714 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
82239715 fi
82249716
8225 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
9717 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
82269718 # The given exports_symbols file has to be filtered, so filter it.
8227 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9719 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
82289720 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8229 # 's' commands which not all seds can handle. GNU sed should be fine
9721 # 's' commands, which not all seds can handle. GNU sed should be fine
82309722 # though. Also, the filter scales superlinearly with the number of
82319723 # global variables. join(1) would be nice here, but unfortunately
82329724 # isn't a blessed tool.
82459737 ;;
82469738 esac
82479739 done
8248 deplibs="$tmp_deplibs"
9740 deplibs=$tmp_deplibs
82499741
82509742 if test -n "$convenience"; then
82519743 if test -n "$whole_archive_flag_spec" &&
8252 test "$compiler_needs_object" = yes &&
9744 test yes = "$compiler_needs_object" &&
82539745 test -z "$libobjs"; then
82549746 # extract the archives, so we have objects to list.
82559747 # TODO: could optimize this to just extract one archive.
82609752 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
82619753 test "X$libobjs" = "X " && libobjs=
82629754 else
8263 gentop="$output_objdir/${outputname}x"
9755 gentop=$output_objdir/${outputname}x
82649756 func_append generated " $gentop"
82659757
82669758 func_extract_archives $gentop $convenience
82699761 fi
82709762 fi
82719763
8272 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
9764 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
82739765 eval flag=\"$thread_safe_flag_spec\"
82749766 func_append linker_flags " $flag"
82759767 fi
82769768
82779769 # Make a backup of the uninstalled library when relinking
8278 if test "$opt_mode" = relink; then
9770 if test relink = "$opt_mode"; then
82799771 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82809772 fi
82819773
82829774 # Do each of the archive commands.
8283 if test "$module" = yes && test -n "$module_cmds" ; then
9775 if test yes = "$module" && test -n "$module_cmds"; then
82849776 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
82859777 eval test_cmds=\"$module_expsym_cmds\"
82869778 cmds=$module_expsym_cmds
82989790 fi
82999791 fi
83009792
8301 if test "X$skipped_export" != "X:" &&
9793 if test : != "$skipped_export" &&
83029794 func_len " $test_cmds" &&
83039795 len=$func_len_result &&
83049796 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
83319823 last_robj=
83329824 k=1
83339825
8334 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8335 output=${output_objdir}/${output_la}.lnkscript
9826 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9827 output=$output_objdir/$output_la.lnkscript
83369828 func_verbose "creating GNU ld script: $output"
83379829 echo 'INPUT (' > $output
83389830 for obj in $save_libobjs
83449836 func_append delfiles " $output"
83459837 func_to_tool_file "$output"
83469838 output=$func_to_tool_file_result
8347 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8348 output=${output_objdir}/${output_la}.lnk
9839 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9840 output=$output_objdir/$output_la.lnk
83499841 func_verbose "creating linker input file list: $output"
83509842 : > $output
83519843 set x $save_libobjs
83529844 shift
83539845 firstobj=
8354 if test "$compiler_needs_object" = yes; then
9846 if test yes = "$compiler_needs_object"; then
83559847 firstobj="$1 "
83569848 shift
83579849 fi
83669858 else
83679859 if test -n "$save_libobjs"; then
83689860 func_verbose "creating reloadable object files..."
8369 output=$output_objdir/$output_la-${k}.$objext
9861 output=$output_objdir/$output_la-$k.$objext
83709862 eval test_cmds=\"$reload_cmds\"
83719863 func_len " $test_cmds"
83729864 len0=$func_len_result
83789870 func_len " $obj"
83799871 func_arith $len + $func_len_result
83809872 len=$func_arith_result
8381 if test "X$objlist" = X ||
9873 if test -z "$objlist" ||
83829874 test "$len" -lt "$max_cmd_len"; then
83839875 func_append objlist " $obj"
83849876 else
83859877 # The command $test_cmds is almost too long, add a
83869878 # command to the queue.
8387 if test "$k" -eq 1 ; then
9879 if test 1 -eq "$k"; then
83889880 # The first file doesn't have a previous command to add.
83899881 reload_objs=$objlist
83909882 eval concat_cmds=\"$reload_cmds\"
83949886 reload_objs="$objlist $last_robj"
83959887 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
83969888 fi
8397 last_robj=$output_objdir/$output_la-${k}.$objext
9889 last_robj=$output_objdir/$output_la-$k.$objext
83989890 func_arith $k + 1
83999891 k=$func_arith_result
8400 output=$output_objdir/$output_la-${k}.$objext
9892 output=$output_objdir/$output_la-$k.$objext
84019893 objlist=" $obj"
84029894 func_len " $last_robj"
84039895 func_arith $len0 + $func_len_result
84099901 # files will link in the last one created.
84109902 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
84119903 reload_objs="$objlist $last_robj"
8412 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
9904 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
84139905 if test -n "$last_robj"; then
8414 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
9906 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84159907 fi
84169908 func_append delfiles " $output"
84179909
84199911 output=
84209912 fi
84219913
8422 if ${skipped_export-false}; then
8423 func_verbose "generating symbol list for \`$libname.la'"
8424 export_symbols="$output_objdir/$libname.exp"
9914 ${skipped_export-false} && {
9915 func_verbose "generating symbol list for '$libname.la'"
9916 export_symbols=$output_objdir/$libname.exp
84259917 $opt_dry_run || $RM $export_symbols
84269918 libobjs=$output
84279919 # Append the command to create the export file.
84309922 if test -n "$last_robj"; then
84319923 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84329924 fi
8433 fi
9925 }
84349926
84359927 test -n "$save_libobjs" &&
84369928 func_verbose "creating a temporary reloadable object file: $output"
84379929
84389930 # Loop through the commands generated above and execute them.
8439 save_ifs="$IFS"; IFS='~'
9931 save_ifs=$IFS; IFS='~'
84409932 for cmd in $concat_cmds; do
8441 IFS="$save_ifs"
8442 $opt_silent || {
9933 IFS=$save_ifs
9934 $opt_quiet || {
84439935 func_quote_for_expand "$cmd"
84449936 eval "func_echo $func_quote_for_expand_result"
84459937 }
84479939 lt_exit=$?
84489940
84499941 # Restore the uninstalled library and exit
8450 if test "$opt_mode" = relink; then
9942 if test relink = "$opt_mode"; then
84519943 ( cd "$output_objdir" && \
84529944 $RM "${realname}T" && \
84539945 $MV "${realname}U" "$realname" )
84569948 exit $lt_exit
84579949 }
84589950 done
8459 IFS="$save_ifs"
9951 IFS=$save_ifs
84609952
84619953 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
84629954 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
84649956 fi
84659957 fi
84669958
8467 if ${skipped_export-false}; then
9959 ${skipped_export-false} && {
84689960 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8469 tmp_export_symbols="$export_symbols"
8470 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9961 tmp_export_symbols=$export_symbols
9962 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
84719963 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
84729964 fi
84739965
84749966 if test -n "$orig_export_symbols"; then
84759967 # The given exports_symbols file has to be filtered, so filter it.
8476 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9968 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
84779969 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8478 # 's' commands which not all seds can handle. GNU sed should be fine
9970 # 's' commands, which not all seds can handle. GNU sed should be fine
84799971 # though. Also, the filter scales superlinearly with the number of
84809972 # global variables. join(1) would be nice here, but unfortunately
84819973 # isn't a blessed tool.
84849976 export_symbols=$output_objdir/$libname.def
84859977 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
84869978 fi
8487 fi
9979 }
84889980
84899981 libobjs=$output
84909982 # Restore the value of output.
84989990 # value of $libobjs for piecewise linking.
84999991
85009992 # Do each of the archive commands.
8501 if test "$module" = yes && test -n "$module_cmds" ; then
9993 if test yes = "$module" && test -n "$module_cmds"; then
85029994 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
85039995 cmds=$module_expsym_cmds
85049996 else
852010012
852110013 # Add any objects from preloaded convenience libraries
852210014 if test -n "$dlprefiles"; then
8523 gentop="$output_objdir/${outputname}x"
10015 gentop=$output_objdir/${outputname}x
852410016 func_append generated " $gentop"
852510017
852610018 func_extract_archives $gentop $dlprefiles
852810020 test "X$libobjs" = "X " && libobjs=
852910021 fi
853010022
8531 save_ifs="$IFS"; IFS='~'
10023 save_ifs=$IFS; IFS='~'
853210024 for cmd in $cmds; do
8533 IFS="$save_ifs"
10025 IFS=$sp$nl
853410026 eval cmd=\"$cmd\"
8535 $opt_silent || {
10027 IFS=$save_ifs
10028 $opt_quiet || {
853610029 func_quote_for_expand "$cmd"
853710030 eval "func_echo $func_quote_for_expand_result"
853810031 }
854010033 lt_exit=$?
854110034
854210035 # Restore the uninstalled library and exit
8543 if test "$opt_mode" = relink; then
10036 if test relink = "$opt_mode"; then
854410037 ( cd "$output_objdir" && \
854510038 $RM "${realname}T" && \
854610039 $MV "${realname}U" "$realname" )
854910042 exit $lt_exit
855010043 }
855110044 done
8552 IFS="$save_ifs"
10045 IFS=$save_ifs
855310046
855410047 # Restore the uninstalled library and exit
8555 if test "$opt_mode" = relink; then
10048 if test relink = "$opt_mode"; then
855610049 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
855710050
855810051 if test -n "$convenience"; then
857210065 done
857310066
857410067 # If -module or -export-dynamic was specified, set the dlname.
8575 if test "$module" = yes || test "$export_dynamic" = yes; then
10068 if test yes = "$module" || test yes = "$export_dynamic"; then
857610069 # On all known operating systems, these are identical.
8577 dlname="$soname"
10070 dlname=$soname
857810071 fi
857910072 fi
858010073 ;;
858110074
858210075 obj)
8583 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8584 func_warning "\`-dlopen' is ignored for objects"
10076 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10077 func_warning "'-dlopen' is ignored for objects"
858510078 fi
858610079
858710080 case " $deplibs" in
858810081 *\ -l* | *\ -L*)
8589 func_warning "\`-l' and \`-L' are ignored for objects" ;;
10082 func_warning "'-l' and '-L' are ignored for objects" ;;
859010083 esac
859110084
859210085 test -n "$rpath" && \
8593 func_warning "\`-rpath' is ignored for objects"
10086 func_warning "'-rpath' is ignored for objects"
859410087
859510088 test -n "$xrpath" && \
8596 func_warning "\`-R' is ignored for objects"
10089 func_warning "'-R' is ignored for objects"
859710090
859810091 test -n "$vinfo" && \
8599 func_warning "\`-version-info' is ignored for objects"
10092 func_warning "'-version-info' is ignored for objects"
860010093
860110094 test -n "$release" && \
8602 func_warning "\`-release' is ignored for objects"
10095 func_warning "'-release' is ignored for objects"
860310096
860410097 case $output in
860510098 *.lo)
860610099 test -n "$objs$old_deplibs" && \
8607 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
10100 func_fatal_error "cannot build library object '$output' from non-libtool objects"
860810101
860910102 libobj=$output
861010103 func_lo2o "$libobj"
861210105 ;;
861310106 *)
861410107 libobj=
8615 obj="$output"
10108 obj=$output
861610109 ;;
861710110 esac
861810111
862510118 # the extraction.
862610119 reload_conv_objs=
862710120 gentop=
8628 # reload_cmds runs $LD directly, so let us get rid of
8629 # -Wl from whole_archive_flag_spec and hope we can get by with
8630 # turning comma into space..
8631 wl=
8632
10121 # if reload_cmds runs $LD directly, get rid of -Wl from
10122 # whole_archive_flag_spec and hope we can get by with turning comma
10123 # into space.
10124 case $reload_cmds in
10125 *\$LD[\ \$]*) wl= ;;
10126 esac
863310127 if test -n "$convenience"; then
863410128 if test -n "$whole_archive_flag_spec"; then
863510129 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8636 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10130 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10131 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
863710132 else
8638 gentop="$output_objdir/${obj}x"
10133 gentop=$output_objdir/${obj}x
863910134 func_append generated " $gentop"
864010135
864110136 func_extract_archives $gentop $convenience
864410139 fi
864510140
864610141 # If we're not building shared, we need to use non_pic_objs
8647 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
10142 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
864810143
864910144 # Create the old-style object.
8650 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8651
8652 output="$obj"
10145 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10146
10147 output=$obj
865310148 func_execute_cmds "$reload_cmds" 'exit $?'
865410149
865510150 # Exit if we aren't doing a library object file.
866110156 exit $EXIT_SUCCESS
866210157 fi
866310158
8664 if test "$build_libtool_libs" != yes; then
10159 test yes = "$build_libtool_libs" || {
866510160 if test -n "$gentop"; then
866610161 func_show_eval '${RM}r "$gentop"'
866710162 fi
867110166 # $show "echo timestamp > $libobj"
867210167 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
867310168 exit $EXIT_SUCCESS
8674 fi
8675
8676 if test -n "$pic_flag" || test "$pic_mode" != default; then
10169 }
10170
10171 if test -n "$pic_flag" || test default != "$pic_mode"; then
867710172 # Only do commands if we really have different PIC objects.
867810173 reload_objs="$libobjs $reload_conv_objs"
8679 output="$libobj"
10174 output=$libobj
868010175 func_execute_cmds "$reload_cmds" 'exit $?'
868110176 fi
868210177
869310188 output=$func_stripname_result.exe;;
869410189 esac
869510190 test -n "$vinfo" && \
8696 func_warning "\`-version-info' is ignored for programs"
10191 func_warning "'-version-info' is ignored for programs"
869710192
869810193 test -n "$release" && \
8699 func_warning "\`-release' is ignored for programs"
8700
8701 test "$preload" = yes \
8702 && test "$dlopen_support" = unknown \
8703 && test "$dlopen_self" = unknown \
8704 && test "$dlopen_self_static" = unknown && \
8705 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
10194 func_warning "'-release' is ignored for programs"
10195
10196 $preload \
10197 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10198 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
870610199
870710200 case $host in
870810201 *-*-rhapsody* | *-*-darwin1.[012])
871610209 *-*-darwin*)
871710210 # Don't allow lazy linking, it breaks C++ global constructors
871810211 # But is supposedly fixed on 10.4 or later (yay!).
8719 if test "$tagname" = CXX ; then
10212 if test CXX = "$tagname"; then
872010213 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
872110214 10.[0123])
8722 func_append compile_command " ${wl}-bind_at_load"
8723 func_append finalize_command " ${wl}-bind_at_load"
10215 func_append compile_command " $wl-bind_at_load"
10216 func_append finalize_command " $wl-bind_at_load"
872410217 ;;
872510218 esac
872610219 fi
875610249 *) func_append new_libs " $deplib" ;;
875710250 esac
875810251 done
8759 compile_deplibs="$new_libs"
10252 compile_deplibs=$new_libs
876010253
876110254
876210255 func_append compile_command " $compile_deplibs"
878010273 if test -n "$hardcode_libdir_flag_spec"; then
878110274 if test -n "$hardcode_libdir_separator"; then
878210275 if test -z "$hardcode_libdirs"; then
8783 hardcode_libdirs="$libdir"
10276 hardcode_libdirs=$libdir
878410277 else
878510278 # Just accumulate the unique libdirs.
878610279 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
880310296 fi
880410297 case $host in
880510298 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8806 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
10299 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
880710300 case :$dllsearchpath: in
880810301 *":$libdir:"*) ;;
880910302 ::) dllsearchpath=$libdir;;
882010313 # Substitute the hardcoded libdirs into the rpath.
882110314 if test -n "$hardcode_libdir_separator" &&
882210315 test -n "$hardcode_libdirs"; then
8823 libdir="$hardcode_libdirs"
10316 libdir=$hardcode_libdirs
882410317 eval rpath=\" $hardcode_libdir_flag_spec\"
882510318 fi
8826 compile_rpath="$rpath"
10319 compile_rpath=$rpath
882710320
882810321 rpath=
882910322 hardcode_libdirs=
883110324 if test -n "$hardcode_libdir_flag_spec"; then
883210325 if test -n "$hardcode_libdir_separator"; then
883310326 if test -z "$hardcode_libdirs"; then
8834 hardcode_libdirs="$libdir"
10327 hardcode_libdirs=$libdir
883510328 else
883610329 # Just accumulate the unique libdirs.
883710330 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
885610349 # Substitute the hardcoded libdirs into the rpath.
885710350 if test -n "$hardcode_libdir_separator" &&
885810351 test -n "$hardcode_libdirs"; then
8859 libdir="$hardcode_libdirs"
10352 libdir=$hardcode_libdirs
886010353 eval rpath=\" $hardcode_libdir_flag_spec\"
886110354 fi
8862 finalize_rpath="$rpath"
8863
8864 if test -n "$libobjs" && test "$build_old_libs" = yes; then
10355 finalize_rpath=$rpath
10356
10357 if test -n "$libobjs" && test yes = "$build_old_libs"; then
886510358 # Transform all the library objects into standard objects.
886610359 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
886710360 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
886810361 fi
886910362
8870 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
10363 func_generate_dlsyms "$outputname" "@PROGRAM@" false
887110364
887210365 # template prelinking step
887310366 if test -n "$prelink_cmds"; then
887410367 func_execute_cmds "$prelink_cmds" 'exit $?'
887510368 fi
887610369
8877 wrappers_required=yes
10370 wrappers_required=:
887810371 case $host in
887910372 *cegcc* | *mingw32ce*)
888010373 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8881 wrappers_required=no
10374 wrappers_required=false
888210375 ;;
888310376 *cygwin* | *mingw* )
8884 if test "$build_libtool_libs" != yes; then
8885 wrappers_required=no
8886 fi
10377 test yes = "$build_libtool_libs" || wrappers_required=false
888710378 ;;
888810379 *)
8889 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8890 wrappers_required=no
10380 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10381 wrappers_required=false
889110382 fi
889210383 ;;
889310384 esac
8894 if test "$wrappers_required" = no; then
10385 $wrappers_required || {
889510386 # Replace the output file specification.
889610387 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8897 link_command="$compile_command$compile_rpath"
10388 link_command=$compile_command$compile_rpath
889810389
889910390 # We have no uninstalled library dependencies, so finalize right now.
890010391 exit_status=0
890710398 fi
890810399
890910400 # Delete the generated files.
8910 if test -f "$output_objdir/${outputname}S.${objext}"; then
8911 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
10401 if test -f "$output_objdir/${outputname}S.$objext"; then
10402 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
891210403 fi
891310404
891410405 exit $exit_status
8915 fi
10406 }
891610407
891710408 if test -n "$compile_shlibpath$finalize_shlibpath"; then
891810409 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
894210433 fi
894310434 fi
894410435
8945 if test "$no_install" = yes; then
10436 if test yes = "$no_install"; then
894610437 # We don't need to create a wrapper script.
8947 link_command="$compile_var$compile_command$compile_rpath"
10438 link_command=$compile_var$compile_command$compile_rpath
894810439 # Replace the output file specification.
894910440 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
895010441 # Delete the old output file.
896110452 exit $EXIT_SUCCESS
896210453 fi
896310454
8964 if test "$hardcode_action" = relink; then
8965 # Fast installation is not supported
8966 link_command="$compile_var$compile_command$compile_rpath"
8967 relink_command="$finalize_var$finalize_command$finalize_rpath"
8968
8969 func_warning "this platform does not like uninstalled shared libraries"
8970 func_warning "\`$output' will be relinked during installation"
8971 else
8972 if test "$fast_install" != no; then
8973 link_command="$finalize_var$compile_command$finalize_rpath"
8974 if test "$fast_install" = yes; then
8975 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8976 else
8977 # fast_install is set to needless
8978 relink_command=
8979 fi
8980 else
8981 link_command="$compile_var$compile_command$compile_rpath"
8982 relink_command="$finalize_var$finalize_command$finalize_rpath"
8983 fi
8984 fi
10455 case $hardcode_action,$fast_install in
10456 relink,*)
10457 # Fast installation is not supported
10458 link_command=$compile_var$compile_command$compile_rpath
10459 relink_command=$finalize_var$finalize_command$finalize_rpath
10460
10461 func_warning "this platform does not like uninstalled shared libraries"
10462 func_warning "'$output' will be relinked during installation"
10463 ;;
10464 *,yes)
10465 link_command=$finalize_var$compile_command$finalize_rpath
10466 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10467 ;;
10468 *,no)
10469 link_command=$compile_var$compile_command$compile_rpath
10470 relink_command=$finalize_var$finalize_command$finalize_rpath
10471 ;;
10472 *,needless)
10473 link_command=$finalize_var$compile_command$finalize_rpath
10474 relink_command=
10475 ;;
10476 esac
898510477
898610478 # Replace the output file specification.
898710479 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
903810530 func_dirname_and_basename "$output" "" "."
903910531 output_name=$func_basename_result
904010532 output_path=$func_dirname_result
9041 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9042 cwrapper="$output_path/$output_name.exe"
10533 cwrappersource=$output_path/$objdir/lt-$output_name.c
10534 cwrapper=$output_path/$output_name.exe
904310535 $RM $cwrappersource $cwrapper
904410536 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
904510537
906010552 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
906110553 $opt_dry_run || {
906210554 # note: this script will not be executed, so do not chmod.
9063 if test "x$build" = "x$host" ; then
10555 if test "x$build" = "x$host"; then
906410556 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
906510557 else
906610558 func_emit_wrapper no > $func_ltwrapper_scriptname_result
908310575 # See if we need to build an old-fashioned archive.
908410576 for oldlib in $oldlibs; do
908510577
9086 if test "$build_libtool_libs" = convenience; then
9087 oldobjs="$libobjs_save $symfileobj"
9088 addlibs="$convenience"
9089 build_libtool_libs=no
9090 else
9091 if test "$build_libtool_libs" = module; then
9092 oldobjs="$libobjs_save"
10578 case $build_libtool_libs in
10579 convenience)
10580 oldobjs="$libobjs_save $symfileobj"
10581 addlibs=$convenience
909310582 build_libtool_libs=no
9094 else
10583 ;;
10584 module)
10585 oldobjs=$libobjs_save
10586 addlibs=$old_convenience
10587 build_libtool_libs=no
10588 ;;
10589 *)
909510590 oldobjs="$old_deplibs $non_pic_objects"
9096 if test "$preload" = yes && test -f "$symfileobj"; then
9097 func_append oldobjs " $symfileobj"
9098 fi
9099 fi
9100 addlibs="$old_convenience"
9101 fi
10591 $preload && test -f "$symfileobj" \
10592 && func_append oldobjs " $symfileobj"
10593 addlibs=$old_convenience
10594 ;;
10595 esac
910210596
910310597 if test -n "$addlibs"; then
9104 gentop="$output_objdir/${outputname}x"
10598 gentop=$output_objdir/${outputname}x
910510599 func_append generated " $gentop"
910610600
910710601 func_extract_archives $gentop $addlibs
910910603 fi
911010604
911110605 # Do each command in the archive commands.
9112 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
10606 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
911310607 cmds=$old_archive_from_new_cmds
911410608 else
911510609
911610610 # Add any objects from preloaded convenience libraries
911710611 if test -n "$dlprefiles"; then
9118 gentop="$output_objdir/${outputname}x"
10612 gentop=$output_objdir/${outputname}x
911910613 func_append generated " $gentop"
912010614
912110615 func_extract_archives $gentop $dlprefiles
913610630 :
913710631 else
913810632 echo "copying selected object files to avoid basename conflicts..."
9139 gentop="$output_objdir/${outputname}x"
10633 gentop=$output_objdir/${outputname}x
914010634 func_append generated " $gentop"
914110635 func_mkdir_p "$gentop"
914210636 save_oldobjs=$oldobjs
914510639 for obj in $save_oldobjs
914610640 do
914710641 func_basename "$obj"
9148 objbase="$func_basename_result"
10642 objbase=$func_basename_result
914910643 case " $oldobjs " in
915010644 " ") oldobjs=$obj ;;
915110645 *[\ /]"$objbase "*)
921410708 else
921510709 # the above command should be used before it gets too long
921610710 oldobjs=$objlist
9217 if test "$obj" = "$last_oldobj" ; then
10711 if test "$obj" = "$last_oldobj"; then
921810712 RANLIB=$save_RANLIB
921910713 fi
922010714 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9221 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
10715 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
922210716 objlist=
922310717 len=$len0
922410718 fi
922510719 done
922610720 RANLIB=$save_RANLIB
922710721 oldobjs=$objlist
9228 if test "X$oldobjs" = "X" ; then
10722 if test -z "$oldobjs"; then
922910723 eval cmds=\"\$concat_cmds\"
923010724 else
923110725 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
924210736 case $output in
924310737 *.la)
924410738 old_library=
9245 test "$build_old_libs" = yes && old_library="$libname.$libext"
10739 test yes = "$build_old_libs" && old_library=$libname.$libext
924610740 func_verbose "creating $output"
924710741
924810742 # Preserve any variables that may affect compiler behavior
925710751 fi
925810752 done
925910753 # Quote the link command for shipping.
9260 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10754 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
926110755 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9262 if test "$hardcode_automatic" = yes ; then
10756 if test yes = "$hardcode_automatic"; then
926310757 relink_command=
926410758 fi
926510759
926610760 # Only create the output if not a dry run.
926710761 $opt_dry_run || {
926810762 for installed in no yes; do
9269 if test "$installed" = yes; then
10763 if test yes = "$installed"; then
927010764 if test -z "$install_libdir"; then
927110765 break
927210766 fi
9273 output="$output_objdir/$outputname"i
10767 output=$output_objdir/${outputname}i
927410768 # Replace all uninstalled libtool libraries with the installed ones
927510769 newdependency_libs=
927610770 for deplib in $dependency_libs; do
927710771 case $deplib in
927810772 *.la)
927910773 func_basename "$deplib"
9280 name="$func_basename_result"
10774 name=$func_basename_result
928110775 func_resolve_sysroot "$deplib"
9282 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10776 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
928310777 test -z "$libdir" && \
9284 func_fatal_error "\`$deplib' is not a valid libtool archive"
10778 func_fatal_error "'$deplib' is not a valid libtool archive"
928510779 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
928610780 ;;
928710781 -L*)
929710791 *) func_append newdependency_libs " $deplib" ;;
929810792 esac
929910793 done
9300 dependency_libs="$newdependency_libs"
10794 dependency_libs=$newdependency_libs
930110795 newdlfiles=
930210796
930310797 for lib in $dlfiles; do
930410798 case $lib in
930510799 *.la)
930610800 func_basename "$lib"
9307 name="$func_basename_result"
9308 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10801 name=$func_basename_result
10802 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
930910803 test -z "$libdir" && \
9310 func_fatal_error "\`$lib' is not a valid libtool archive"
10804 func_fatal_error "'$lib' is not a valid libtool archive"
931110805 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
931210806 ;;
931310807 *) func_append newdlfiles " $lib" ;;
931410808 esac
931510809 done
9316 dlfiles="$newdlfiles"
10810 dlfiles=$newdlfiles
931710811 newdlprefiles=
931810812 for lib in $dlprefiles; do
931910813 case $lib in
932310817 # didn't already link the preopened objects directly into
932410818 # the library:
932510819 func_basename "$lib"
9326 name="$func_basename_result"
9327 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10820 name=$func_basename_result
10821 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
932810822 test -z "$libdir" && \
9329 func_fatal_error "\`$lib' is not a valid libtool archive"
10823 func_fatal_error "'$lib' is not a valid libtool archive"
933010824 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
933110825 ;;
933210826 esac
933310827 done
9334 dlprefiles="$newdlprefiles"
10828 dlprefiles=$newdlprefiles
933510829 else
933610830 newdlfiles=
933710831 for lib in $dlfiles; do
933810832 case $lib in
9339 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10833 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934010834 *) abs=`pwd`"/$lib" ;;
934110835 esac
934210836 func_append newdlfiles " $abs"
934310837 done
9344 dlfiles="$newdlfiles"
10838 dlfiles=$newdlfiles
934510839 newdlprefiles=
934610840 for lib in $dlprefiles; do
934710841 case $lib in
9348 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10842 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934910843 *) abs=`pwd`"/$lib" ;;
935010844 esac
935110845 func_append newdlprefiles " $abs"
935210846 done
9353 dlprefiles="$newdlprefiles"
10847 dlprefiles=$newdlprefiles
935410848 fi
935510849 $RM $output
935610850 # place dlname in correct position for cygwin
936610860 case $host,$output,$installed,$module,$dlname in
936710861 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
936810862 # If a -bindir argument was supplied, place the dll there.
9369 if test "x$bindir" != x ;
9370 then
10863 if test -n "$bindir"; then
937110864 func_relative_path "$install_libdir" "$bindir"
9372 tdlname=$func_relative_path_result$dlname
10865 tdlname=$func_relative_path_result/$dlname
937310866 else
937410867 # Otherwise fall back on heuristic.
937510868 tdlname=../bin/$dlname
937810871 esac
937910872 $ECHO > $output "\
938010873 # $outputname - a libtool library file
9381 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10874 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
938210875 #
938310876 # Please DO NOT delete this file!
938410877 # It is necessary for linking the library.
939210885 # The name of the static archive.
939310886 old_library='$old_library'
939410887
9395 # Linker flags that can not go in dependency_libs.
10888 # Linker flags that cannot go in dependency_libs.
939610889 inherited_linker_flags='$new_inherited_linker_flags'
939710890
939810891 # Libraries that this one depends upon.
941810911
941910912 # Directory that this library needs to be installed in:
942010913 libdir='$install_libdir'"
9421 if test "$installed" = no && test "$need_relink" = yes; then
10914 if test no,yes = "$installed,$need_relink"; then
942210915 $ECHO >> $output "\
942310916 relink_command=\"$relink_command\""
942410917 fi
943310926 exit $EXIT_SUCCESS
943410927 }
943510928
9436 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9437 func_mode_link ${1+"$@"}
10929 if test link = "$opt_mode" || test relink = "$opt_mode"; then
10930 func_mode_link ${1+"$@"}
10931 fi
943810932
943910933
944010934 # func_mode_uninstall arg...
944110935 func_mode_uninstall ()
944210936 {
9443 $opt_debug
9444 RM="$nonopt"
10937 $debug_cmd
10938
10939 RM=$nonopt
944510940 files=
9446 rmforce=
10941 rmforce=false
944710942 exit_status=0
944810943
944910944 # This variable tells wrapper scripts just to set variables rather
945010945 # than running their programs.
9451 libtool_install_magic="$magic"
10946 libtool_install_magic=$magic
945210947
945310948 for arg
945410949 do
945510950 case $arg in
9456 -f) func_append RM " $arg"; rmforce=yes ;;
10951 -f) func_append RM " $arg"; rmforce=: ;;
945710952 -*) func_append RM " $arg" ;;
945810953 *) func_append files " $arg" ;;
945910954 esac
946610961
946710962 for file in $files; do
946810963 func_dirname "$file" "" "."
9469 dir="$func_dirname_result"
9470 if test "X$dir" = X.; then
9471 odir="$objdir"
10964 dir=$func_dirname_result
10965 if test . = "$dir"; then
10966 odir=$objdir
947210967 else
9473 odir="$dir/$objdir"
10968 odir=$dir/$objdir
947410969 fi
947510970 func_basename "$file"
9476 name="$func_basename_result"
9477 test "$opt_mode" = uninstall && odir="$dir"
10971 name=$func_basename_result
10972 test uninstall = "$opt_mode" && odir=$dir
947810973
947910974 # Remember odir for removal later, being careful to avoid duplicates
9480 if test "$opt_mode" = clean; then
10975 if test clean = "$opt_mode"; then
948110976 case " $rmdirs " in
948210977 *" $odir "*) ;;
948310978 *) func_append rmdirs " $odir" ;;
949210987 elif test -d "$file"; then
949310988 exit_status=1
949410989 continue
9495 elif test "$rmforce" = yes; then
10990 elif $rmforce; then
949610991 continue
949710992 fi
949810993
9499 rmfiles="$file"
10994 rmfiles=$file
950010995
950110996 case $name in
950210997 *.la)
951011005 done
951111006 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
951211007
9513 case "$opt_mode" in
11008 case $opt_mode in
951411009 clean)
951511010 case " $library_names " in
951611011 *" $dlname "*) ;;
952111016 uninstall)
952211017 if test -n "$library_names"; then
952311018 # Do each command in the postuninstall commands.
9524 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11019 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
952511020 fi
952611021
952711022 if test -n "$old_library"; then
952811023 # Do each command in the old_postuninstall commands.
9529 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11024 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
953011025 fi
953111026 # FIXME: should reinstall the best remaining shared library.
953211027 ;;
954211037 func_source $dir/$name
954311038
954411039 # Add PIC object to the list of files to remove.
9545 if test -n "$pic_object" &&
9546 test "$pic_object" != none; then
11040 if test -n "$pic_object" && test none != "$pic_object"; then
954711041 func_append rmfiles " $dir/$pic_object"
954811042 fi
954911043
955011044 # Add non-PIC object to the list of files to remove.
9551 if test -n "$non_pic_object" &&
9552 test "$non_pic_object" != none; then
11045 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
955311046 func_append rmfiles " $dir/$non_pic_object"
955411047 fi
955511048 fi
955611049 ;;
955711050
955811051 *)
9559 if test "$opt_mode" = clean ; then
11052 if test clean = "$opt_mode"; then
956011053 noexename=$name
956111054 case $file in
956211055 *.exe)
958311076
958411077 # note $name still contains .exe if it was in $file originally
958511078 # as does the version of $file that was added into $rmfiles
9586 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9587 if test "$fast_install" = yes && test -n "$relink_command"; then
11079 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11080 if test yes = "$fast_install" && test -n "$relink_command"; then
958811081 func_append rmfiles " $odir/lt-$name"
958911082 fi
9590 if test "X$noexename" != "X$name" ; then
9591 func_append rmfiles " $odir/lt-${noexename}.c"
11083 if test "X$noexename" != "X$name"; then
11084 func_append rmfiles " $odir/lt-$noexename.c"
959211085 fi
959311086 fi
959411087 fi
959711090 func_show_eval "$RM $rmfiles" 'exit_status=1'
959811091 done
959911092
9600 # Try to remove the ${objdir}s in the directories where we deleted files
11093 # Try to remove the $objdir's in the directories where we deleted files
960111094 for dir in $rmdirs; do
960211095 if test -d "$dir"; then
960311096 func_show_eval "rmdir $dir >/dev/null 2>&1"
960711100 exit $exit_status
960811101 }
960911102
9610 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9611 func_mode_uninstall ${1+"$@"}
11103 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11104 func_mode_uninstall ${1+"$@"}
11105 fi
961211106
961311107 test -z "$opt_mode" && {
9614 help="$generic_help"
11108 help=$generic_help
961511109 func_fatal_help "you must specify a MODE"
961611110 }
961711111
961811112 test -z "$exec_cmd" && \
9619 func_fatal_help "invalid operation mode \`$opt_mode'"
11113 func_fatal_help "invalid operation mode '$opt_mode'"
962011114
962111115 if test -n "$exec_cmd"; then
962211116 eval exec "$exec_cmd"
962711121
962811122
962911123 # The TAGs below are defined such that we never get into a situation
9630 # in which we disable both kinds of libraries. Given conflicting
11124 # where we disable both kinds of libraries. Given conflicting
963111125 # choices, we go for a static library, that is the most portable,
963211126 # since we can't tell whether shared libraries were disabled because
963311127 # the user asked for that or because the platform doesn't support
965011144 # mode:shell-script
965111145 # sh-indentation:2
965211146 # End:
9653 # vi:sw=2
9654
00 #! /bin/sh
11 # Common wrapper for a few potentially missing GNU programs.
22
3 scriptversion=2012-06-26.16; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
159159 ;;
160160 autom4te*)
161161 echo "You might have modified some maintainer files that require"
162 echo "the 'automa4te' program to be rebuilt."
162 echo "the 'autom4te' program to be rebuilt."
163163 program_details 'autom4te'
164164 ;;
165165 bison*|yacc*)
2424 sed -e 's/^[^0-9]/ /' -e 's/^ *$$//' -e 's/^ \* / /g' | \
2525 grep -v '^ \*$$' | uniq >| ChangeLog
2626
27 dist-checksum: $(DIST_TARGETS)
27 dist-checksum: $(DIST_ARCHIVES)
2828 rm -f *.md5 *.sha256
2929 for sum in $(DIST_ARCHIVES); do \
3030 md5sum $$sum > $$sum.md5 && \
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
7989 host_triplet = @host@
8090 target_triplet = @target@
8191 subdir = .
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/configure $(am__configure_deps) \
84 $(srcdir)/config.h.in $(srcdir)/libdvbpsi.pc.in \
85 $(srcdir)/libdvbpsi.spec.in AUTHORS COPYING ChangeLog INSTALL \
86 NEWS README TODO .auto/compile .auto/config.guess \
87 .auto/config.sub .auto/install-sh .auto/missing \
88 .auto/ltmain.sh $(top_srcdir)/.auto/compile \
89 $(top_srcdir)/.auto/config.guess \
90 $(top_srcdir)/.auto/config.sub $(top_srcdir)/.auto/install-sh \
91 $(top_srcdir)/.auto/ltmain.sh $(top_srcdir)/.auto/missing
9292 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
9393 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
9494 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
9696 $(top_srcdir)/configure.ac
9797 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9898 $(ACLOCAL_M4)
99 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
100 $(am__configure_deps) $(am__DIST_COMMON)
99101 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
100102 configure.lineno config.status.lineno
101103 mkinstalldirs = $(install_sh) -d
187189 ETAGS = etags
188190 CTAGS = ctags
189191 CSCOPE = cscope
192 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
193 $(srcdir)/libdvbpsi.pc.in $(srcdir)/libdvbpsi.spec.in \
194 $(top_srcdir)/.auto/compile $(top_srcdir)/.auto/config.guess \
195 $(top_srcdir)/.auto/config.sub $(top_srcdir)/.auto/install-sh \
196 $(top_srcdir)/.auto/ltmain.sh $(top_srcdir)/.auto/missing \
197 .auto/compile .auto/config.guess .auto/config.sub \
198 .auto/install-sh .auto/ltmain.sh .auto/missing AUTHORS COPYING \
199 ChangeLog INSTALL NEWS README
190200 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
191201 distdir = $(PACKAGE)-$(VERSION)
192202 top_distdir = $(distdir)
269279 LIPO = @LIPO@
270280 LN_S = @LN_S@
271281 LTLIBOBJS = @LTLIBOBJS@
282 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
272283 MAKEINFO = @MAKEINFO@
273284 MANIFEST_TOOL = @MANIFEST_TOOL@
274285 MKDIR_P = @MKDIR_P@
374385 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
375386 $(am__cd) $(top_srcdir) && \
376387 $(AUTOMAKE) --foreign Makefile
377 .PRECIOUS: Makefile
378388 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
379389 @case '$?' in \
380390 *config.status*) \
395405 $(am__aclocal_m4_deps):
396406
397407 config.h: stamp-h1
398 @if test ! -f $@; then rm -f stamp-h1; else :; fi
399 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
408 @test -f $@ || rm -f stamp-h1
409 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
400410
401411 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
402412 @rm -f stamp-h1
629639 $(am__post_remove_distdir)
630640
631641 dist-tarZ: distdir
642 @echo WARNING: "Support for distribution archives compressed with" \
643 "legacy program 'compress' is deprecated." >&2
644 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
632645 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
633646 $(am__post_remove_distdir)
634647
635648 dist-shar: distdir
649 @echo WARNING: "Support for shar distribution archives is" \
650 "deprecated." >&2
651 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
636652 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
637653 $(am__post_remove_distdir)
638654
667683 esac
668684 chmod -R a-w $(distdir)
669685 chmod u+w $(distdir)
670 mkdir $(distdir)/_build $(distdir)/_inst
686 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
671687 chmod a-w $(distdir)
672688 test -d $(distdir)/_build || exit 0; \
673689 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
674690 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
675691 && am__cwd=`pwd` \
676 && $(am__cd) $(distdir)/_build \
677 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
692 && $(am__cd) $(distdir)/_build/sub \
693 && ../../configure \
678694 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
679695 $(DISTCHECK_CONFIGURE_FLAGS) \
696 --srcdir=../.. --prefix="$$dc_install_base" \
680697 && $(MAKE) $(AM_MAKEFLAGS) \
681698 && $(MAKE) $(AM_MAKEFLAGS) dvi \
682699 && $(MAKE) $(AM_MAKEFLAGS) check \
856873 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
857874 uninstall-am uninstall-pkgconfigDATA
858875
876 .PRECIOUS: Makefile
877
859878
860879 doc-dummy:
861880
870889 sed -e 's/^[^0-9]/ /' -e 's/^ *$$//' -e 's/^ \* / /g' | \
871890 grep -v '^ \*$$' | uniq >| ChangeLog
872891
873 dist-checksum: $(DIST_TARGETS)
892 dist-checksum: $(DIST_ARCHIVES)
874893 rm -f *.md5 *.sha256
875894 for sum in $(DIST_ARCHIVES); do \
876895 md5sum $$sum > $$sum.md5 && \
0 Changes between 1.3.0 and 1.3.1:
1 --------------------------------
2
3 * Fix bugs in table: EIT
4 * Fix test_dr
5
06 Changes between 1.2.0 and 1.3.0:
17 --------------------------------
28
+0
-13
TODO less more
0 TODO:
1
2 - Implement:
3 void dvbpsi_set_context(dvbpsi_t *p_dvbpsi, void *data);
4 void *dvbpsi_get_context(dvbpsi_t *p_dvbpsi);
5 - simplify chaining decoders in demux functions, eg:
6 implement:
7 bool dvbpsi_chain_decoder_add(dvbpsi_t *p_dvbpsi, dvbspi_decoder_t *p_decoder);
8 void dvbpsi_chain_decoder_del(dvbpsi_t *p_dvbpsi, dvbspi_decoder_t *p_decoder);
9 bool dvbpsi_chain_decoder_find(dvbpsi_t *p_dvbpsi, const uint16_t table_id, const uint16_t extension);
10 - simplify PSI table attach functions "dvbpsi_XXX_attach()"
11 + remove first argument void * callback data (probably not needed)
12 + use dvbpsi_t::p_sys to pass private application data around (iso decoder_t::p_cb_data)
0 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3131 # generated from the m4 files accompanying Automake X.Y.
3232 # (This private macro should not be called outside this file.)
3333 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.13'
34 [am__api_version='1.15'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.13.4], [],
37 m4_if([$1], [1.15], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.13.4])dnl
53 [AM_AUTOMAKE_VERSION([1.15])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
102102 # configured tree to be moved without reconfiguration.
103103
104104 AC_DEFUN([AM_AUX_DIR_EXPAND],
105 [dnl Rely on autoconf to set up CDPATH properly.
106 AC_PREREQ([2.50])dnl
107 # expand $ac_aux_dir to an absolute path
108 am_aux_dir=`cd $ac_aux_dir && pwd`
105 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
106 # Expand $ac_aux_dir to an absolute path.
107 am_aux_dir=`cd "$ac_aux_dir" && pwd`
109108 ])
110109
111110 # AM_CONDITIONAL -*- Autoconf -*-
112111
113 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
112 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
114113 #
115114 # This file is free software; the Free Software Foundation
116115 # gives unlimited permission to copy and/or distribute it,
141140 Usually this means the macro was only invoked conditionally.]])
142141 fi])])
143142
144 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
143 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
145144 #
146145 # This file is free software; the Free Software Foundation
147146 # gives unlimited permission to copy and/or distribute it,
332331
333332 # Generate code to set up dependency tracking. -*- Autoconf -*-
334333
335 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
334 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
336335 #
337336 # This file is free software; the Free Software Foundation
338337 # gives unlimited permission to copy and/or distribute it,
408407
409408 # Do all the work for Automake. -*- Autoconf -*-
410409
411 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
410 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
412411 #
413412 # This file is free software; the Free Software Foundation
414413 # gives unlimited permission to copy and/or distribute it,
416415
417416 # This macro actually does too much. Some checks are only needed if
418417 # your package does certain things. But this isn't really a big deal.
418
419 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
420 m4_define([AC_PROG_CC],
421 m4_defn([AC_PROG_CC])
422 [_AM_PROG_CC_C_O
423 ])
419424
420425 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
421426 # AM_INIT_AUTOMAKE([OPTIONS])
492497 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
493498 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
494499 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
495 # We need awk for the "check" target. The system "awk" is bad on
496 # some platforms.
500 # We need awk for the "check" target (and possibly the TAP driver). The
501 # system "awk" is bad on some platforms.
497502 AC_REQUIRE([AC_PROG_AWK])dnl
498503 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
499504 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
525530 AC_CONFIG_COMMANDS_PRE(dnl
526531 [m4_provide_if([_AM_COMPILER_EXEEXT],
527532 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
533
534 # POSIX will say in a future version that running "rm -f" with no argument
535 # is OK; and we want to be able to make that assumption in our Makefile
536 # recipes. So use an aggressive probe to check that the usage we want is
537 # actually supported "in the wild" to an acceptable degree.
538 # See automake bug#10828.
539 # To make any issue more visible, cause the running configure to be aborted
540 # by default if the 'rm' program in use doesn't match our expectations; the
541 # user can still override this though.
542 if rm -f && rm -fr && rm -rf; then : OK; else
543 cat >&2 <<'END'
544 Oops!
545
546 Your 'rm' program seems unable to run without file operands specified
547 on the command line, even when the '-f' option is present. This is contrary
548 to the behaviour of most rm programs out there, and not conforming with
549 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
550
551 Please tell bug-automake@gnu.org about your system, including the value
552 of your $PATH and any error possibly output before this message. This
553 can help us improve future automake versions.
554
555 END
556 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
557 echo 'Configuration will proceed anyway, since you have set the' >&2
558 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
559 echo >&2
560 else
561 cat >&2 <<'END'
562 Aborting the configuration process, to ensure you take notice of the issue.
563
564 You can download and install GNU coreutils to get an 'rm' implementation
565 that behaves properly: <http://www.gnu.org/software/coreutils/>.
566
567 If you want to complete the configuration process using your problematic
568 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
569 to "yes", and re-run configure.
570
571 END
572 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
573 fi
574 fi
575 dnl The trailing newline in this macro's definition is deliberate, for
576 dnl backward compatibility and to allow trailing 'dnl'-style comments
577 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
528578 ])
529579
530580 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
532582 dnl mangled by Autoconf and run in a shell conditional statement.
533583 m4_define([_AC_COMPILER_EXEEXT],
534584 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
535
536585
537586 # When config.status generates a header, we must update the stamp-h file.
538587 # This file resides in the same directory as the config header
555604 done
556605 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
557606
558 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
607 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
559608 #
560609 # This file is free software; the Free Software Foundation
561610 # gives unlimited permission to copy and/or distribute it,
566615 # Define $install_sh.
567616 AC_DEFUN([AM_PROG_INSTALL_SH],
568617 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
569 if test x"${install_sh}" != xset; then
618 if test x"${install_sh+set}" != xset; then
570619 case $am_aux_dir in
571620 *\ * | *\ *)
572621 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
576625 fi
577626 AC_SUBST([install_sh])])
578627
579 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
628 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
580629 #
581630 # This file is free software; the Free Software Foundation
582631 # gives unlimited permission to copy and/or distribute it,
597646
598647 # Check to see how 'make' treats includes. -*- Autoconf -*-
599648
600 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
649 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
601650 #
602651 # This file is free software; the Free Software Foundation
603652 # gives unlimited permission to copy and/or distribute it,
645694 rm -f confinc confmf
646695 ])
647696
648 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
649 #
650 # This file is free software; the Free Software Foundation
651 # gives unlimited permission to copy and/or distribute it,
652 # with or without modifications, as long as this notice is preserved.
653
654 # AM_PROG_CC_C_O
655 # --------------
656 # Like AC_PROG_CC_C_O, but changed for automake.
657 AC_DEFUN([AM_PROG_CC_C_O],
658 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
659 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
660 AC_REQUIRE_AUX_FILE([compile])dnl
661 # FIXME: we rely on the cache variable name because
662 # there is no other way.
663 set dummy $CC
664 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
665 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
666 if test "$am_t" != yes; then
667 # Losing compiler, so override with the script.
668 # FIXME: It is wrong to rewrite CC.
669 # But if we don't then we get into trouble of one sort or another.
670 # A longer-term fix would be to have automake use am__CC in this case,
671 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
672 CC="$am_aux_dir/compile $CC"
673 fi
674 dnl Make sure AC_PROG_CC is never called again, or it will override our
675 dnl setting of CC.
676 m4_define([AC_PROG_CC],
677 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
678 ])
679
680697 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
681698
682 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
699 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
683700 #
684701 # This file is free software; the Free Software Foundation
685702 # gives unlimited permission to copy and/or distribute it,
718735
719736 # Helper functions for option handling. -*- Autoconf -*-
720737
721 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
738 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
722739 #
723740 # This file is free software; the Free Software Foundation
724741 # gives unlimited permission to copy and/or distribute it,
747764 AC_DEFUN([_AM_IF_OPTION],
748765 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
749766
767 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
768 #
769 # This file is free software; the Free Software Foundation
770 # gives unlimited permission to copy and/or distribute it,
771 # with or without modifications, as long as this notice is preserved.
772
773 # _AM_PROG_CC_C_O
774 # ---------------
775 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
776 # to automatically call this.
777 AC_DEFUN([_AM_PROG_CC_C_O],
778 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
779 AC_REQUIRE_AUX_FILE([compile])dnl
780 AC_LANG_PUSH([C])dnl
781 AC_CACHE_CHECK(
782 [whether $CC understands -c and -o together],
783 [am_cv_prog_cc_c_o],
784 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
785 # Make sure it works both with $CC and with simple cc.
786 # Following AC_PROG_CC_C_O, we do the test twice because some
787 # compilers refuse to overwrite an existing .o file with -o,
788 # though they will create one.
789 am_cv_prog_cc_c_o=yes
790 for am_i in 1 2; do
791 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
792 && test -f conftest2.$ac_objext; then
793 : OK
794 else
795 am_cv_prog_cc_c_o=no
796 break
797 fi
798 done
799 rm -f core conftest*
800 unset am_i])
801 if test "$am_cv_prog_cc_c_o" != yes; then
802 # Losing compiler, so override with the script.
803 # FIXME: It is wrong to rewrite CC.
804 # But if we don't then we get into trouble of one sort or another.
805 # A longer-term fix would be to have automake use am__CC in this case,
806 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
807 CC="$am_aux_dir/compile $CC"
808 fi
809 AC_LANG_POP([C])])
810
811 # For backward compatibility.
812 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
813
814 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
815 #
816 # This file is free software; the Free Software Foundation
817 # gives unlimited permission to copy and/or distribute it,
818 # with or without modifications, as long as this notice is preserved.
819
820 # AM_RUN_LOG(COMMAND)
821 # -------------------
822 # Run COMMAND, save the exit status in ac_status, and log it.
823 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
824 AC_DEFUN([AM_RUN_LOG],
825 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
826 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
827 ac_status=$?
828 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
829 (exit $ac_status); }])
830
750831 # Check to make sure that the build environment is sane. -*- Autoconf -*-
751832
752 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
833 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
753834 #
754835 # This file is free software; the Free Software Foundation
755836 # gives unlimited permission to copy and/or distribute it,
830911 rm -f conftest.file
831912 ])
832913
833 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
914 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
834915 #
835916 # This file is free software; the Free Software Foundation
836917 # gives unlimited permission to copy and/or distribute it,
890971 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
891972 ])
892973
893 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
974 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
894975 #
895976 # This file is free software; the Free Software Foundation
896977 # gives unlimited permission to copy and/or distribute it,
918999 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9191000 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9201001
921 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1002 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
9221003 #
9231004 # This file is free software; the Free Software Foundation
9241005 # gives unlimited permission to copy and/or distribute it,
9371018
9381019 # Check how to create a tarball. -*- Autoconf -*-
9391020
940 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1021 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
9411022 #
9421023 # This file is free software; the Free Software Foundation
9431024 # gives unlimited permission to copy and/or distribute it,
5050 /* Support for variadic macros */
5151 #undef HAVE_VARIADIC_MACROS
5252
53 /* Define to the sub-directory in which libtool stores uninstalled libraries.
54 */
53 /* Define to the sub-directory where libtool stores uninstalled libraries. */
5554 #undef LT_OBJDIR
56
57 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
58 #undef NO_MINUS_C_MINUS_O
5955
6056 /* Name of package */
6157 #undef PACKAGE
+1386
-1003
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libdvbpsi 1.3.0.
2 # Generated by GNU Autoconf 2.69 for libdvbpsi 1.3.1.
33 #
44 #
55 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
586586 # Identity of this package.
587587 PACKAGE_NAME='libdvbpsi'
588588 PACKAGE_TARNAME='libdvbpsi'
589 PACKAGE_VERSION='1.3.0'
590 PACKAGE_STRING='libdvbpsi 1.3.0'
589 PACKAGE_VERSION='1.3.1'
590 PACKAGE_STRING='libdvbpsi 1.3.1'
591591 PACKAGE_BUGREPORT=''
592592 PACKAGE_URL=''
593593
634634 LIBOBJS
635635 HAVE_SYS_SOCKET_H_FALSE
636636 HAVE_SYS_SOCKET_H_TRUE
637 LT_SYS_LIBRARY_PATH
637638 OTOOL64
638639 OTOOL
639640 LIPO
760761 enable_static
761762 with_pic
762763 enable_fast_install
764 with_aix_soname
763765 with_gnu_ld
764766 with_sysroot
765767 enable_libtool_lock
775777 LDFLAGS
776778 LIBS
777779 CPPFLAGS
778 CPP'
780 CPP
781 LT_SYS_LIBRARY_PATH'
779782
780783
781784 # Initialize some variables set by options.
13161319 # Omit some internal or obsolete options to make the list less imposing.
13171320 # This message is too long to be a string in the A/UX 3.1 sh.
13181321 cat <<_ACEOF
1319 \`configure' configures libdvbpsi 1.3.0 to adapt to many kinds of systems.
1322 \`configure' configures libdvbpsi 1.3.1 to adapt to many kinds of systems.
13201323
13211324 Usage: $0 [OPTION]... [VAR=VALUE]...
13221325
13871390
13881391 if test -n "$ac_init_help"; then
13891392 case $ac_init_help in
1390 short | recursive ) echo "Configuration of libdvbpsi 1.3.0:";;
1393 short | recursive ) echo "Configuration of libdvbpsi 1.3.1:";;
13911394 esac
13921395 cat <<\_ACEOF
13931396
14151418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
14161419 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14171420 both]
1421 --with-aix-soname=aix|svr4|both
1422 shared library versioning (aka "SONAME") variant to
1423 provide on AIX, [default=aix].
14181424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 --with-sysroot=DIR Search for dependent libraries within DIR
1420 (or the compiler's sysroot if not specified).
1425 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1426 compiler's sysroot if not specified).
14211427
14221428 Some influential environment variables:
14231429 CC C compiler command
14281434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14291435 you have headers in a nonstandard directory <include dir>
14301436 CPP C preprocessor
1437 LT_SYS_LIBRARY_PATH
1438 User-defined run-time library search path.
14311439
14321440 Use these variables to override the choices made by `configure' or to help
14331441 it to find libraries and programs with nonstandard names/locations.
14951503 test -n "$ac_init_help" && exit $ac_status
14961504 if $ac_init_version; then
14971505 cat <<\_ACEOF
1498 libdvbpsi configure 1.3.0
1506 libdvbpsi configure 1.3.1
14991507 generated by GNU Autoconf 2.69
15001508
15011509 Copyright (C) 2012 Free Software Foundation, Inc.
18601868 This file contains any messages produced by compilers while
18611869 running configure, to aid debugging if configure makes a mistake.
18621870
1863 It was created by libdvbpsi $as_me 1.3.0, which was
1871 It was created by libdvbpsi $as_me 1.3.1, which was
18641872 generated by GNU Autoconf 2.69. Invocation command line was
18651873
18661874 $ $0 $@
23522360
23532361
23542362
2355 am__api_version='1.13'
2363 am__api_version='1.15'
23562364
23572365 # Find a good install program. We prefer a C program (faster),
23582366 # so one script is as good as another. But avoid the broken or
25242532 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
25252533 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
25262534
2527 # expand $ac_aux_dir to an absolute path
2528 am_aux_dir=`cd $ac_aux_dir && pwd`
2535 # Expand $ac_aux_dir to an absolute path.
2536 am_aux_dir=`cd "$ac_aux_dir" && pwd`
25292537
25302538 if test x"${MISSING+set}" != xset; then
25312539 case $am_aux_dir in
25442552 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
25452553 fi
25462554
2547 if test x"${install_sh}" != xset; then
2555 if test x"${install_sh+set}" != xset; then
25482556 case $am_aux_dir in
25492557 *\ * | *\ *)
25502558 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
28382846
28392847 # Define the identity of the package.
28402848 PACKAGE='libdvbpsi'
2841 VERSION='1.3.0'
2849 VERSION='1.3.1'
28422850
28432851
28442852 cat >>confdefs.h <<_ACEOF
28722880 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
28732881 mkdir_p='$(MKDIR_P)'
28742882
2875 # We need awk for the "check" target. The system "awk" is bad on
2876 # some platforms.
2883 # We need awk for the "check" target (and possibly the TAP driver). The
2884 # system "awk" is bad on some platforms.
28772885 # Always define AMTAR for backward compatibility. Yes, it's still used
28782886 # in the wild :-( We should find a proper way to deprecate it ...
28792887 AMTAR='$${TAR-tar}'
28882896
28892897
28902898
2899
2900 # POSIX will say in a future version that running "rm -f" with no argument
2901 # is OK; and we want to be able to make that assumption in our Makefile
2902 # recipes. So use an aggressive probe to check that the usage we want is
2903 # actually supported "in the wild" to an acceptable degree.
2904 # See automake bug#10828.
2905 # To make any issue more visible, cause the running configure to be aborted
2906 # by default if the 'rm' program in use doesn't match our expectations; the
2907 # user can still override this though.
2908 if rm -f && rm -fr && rm -rf; then : OK; else
2909 cat >&2 <<'END'
2910 Oops!
2911
2912 Your 'rm' program seems unable to run without file operands specified
2913 on the command line, even when the '-f' option is present. This is contrary
2914 to the behaviour of most rm programs out there, and not conforming with
2915 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2916
2917 Please tell bug-automake@gnu.org about your system, including the value
2918 of your $PATH and any error possibly output before this message. This
2919 can help us improve future automake versions.
2920
2921 END
2922 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2923 echo 'Configuration will proceed anyway, since you have set the' >&2
2924 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2925 echo >&2
2926 else
2927 cat >&2 <<'END'
2928 Aborting the configuration process, to ensure you take notice of the issue.
2929
2930 You can download and install GNU coreutils to get an 'rm' implementation
2931 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2932
2933 If you want to complete the configuration process using your problematic
2934 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2935 to "yes", and re-run configure.
2936
2937 END
2938 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2939 fi
2940 fi
28912941
28922942 ac_config_headers="$ac_config_headers config.h"
28932943
36813731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36823732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36833733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735 ac_ext=c
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3741 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3742 if ${am_cv_prog_cc_c_o+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 # Make sure it works both with $CC and with simple cc.
3757 # Following AC_PROG_CC_C_O, we do the test twice because some
3758 # compilers refuse to overwrite an existing .o file with -o,
3759 # though they will create one.
3760 am_cv_prog_cc_c_o=yes
3761 for am_i in 1 2; do
3762 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3763 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } \
3767 && test -f conftest2.$ac_objext; then
3768 : OK
3769 else
3770 am_cv_prog_cc_c_o=no
3771 break
3772 fi
3773 done
3774 rm -f core conftest*
3775 unset am_i
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3778 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3779 if test "$am_cv_prog_cc_c_o" != yes; then
3780 # Losing compiler, so override with the script.
3781 # FIXME: It is wrong to rewrite CC.
3782 # But if we don't then we get into trouble of one sort or another.
3783 # A longer-term fix would be to have automake use am__CC in this case,
3784 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3785 CC="$am_aux_dir/compile $CC"
3786 fi
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
36843793 DEPDIR="${am__leading_dot}deps"
36853794
36863795 ac_config_commands="$ac_config_commands depfiles"
42974406 esac
42984407
42994408
4300 if test "x$CC" != xcc; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4302 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4305 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4306 fi
4307 set dummy $CC; ac_cc=`$as_echo "$2" |
4308 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4309 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314
4315 int
4316 main ()
4317 {
4318
4319 ;
4320 return 0;
4321 }
4322 _ACEOF
4323 # Make sure it works both with $CC and with simple cc.
4324 # We do the test twice because some compilers refuse to overwrite an
4325 # existing .o file with -o, though they will create one.
4326 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4327 rm -f conftest2.*
4328 if { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; } &&
4338 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4345 ac_status=$?
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; };
4348 then
4349 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4350 if test "x$CC" != xcc; then
4351 # Test first that cc exists at all.
4352 if { ac_try='cc -c conftest.$ac_ext >&5'
4353 { { case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356 esac
4357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4358 $as_echo "$ac_try_echo"; } >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362 test $ac_status = 0; }; }; then
4363 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4364 rm -f conftest2.*
4365 if { { case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371 (eval "$ac_try") 2>&5
4372 ac_status=$?
4373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374 test $ac_status = 0; } &&
4375 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_try") 2>&5
4382 ac_status=$?
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; };
4385 then
4386 # cc works too.
4387 :
4388 else
4389 # cc exists but doesn't like -o.
4390 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4391 fi
4392 fi
4393 fi
4394 else
4395 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4396 fi
4397 rm -f core conftest*
4398
4399 fi
4400 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406
4407 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4408
4409 fi
4410
4411 # FIXME: we rely on the cache variable name because
4412 # there is no other way.
4413 set dummy $CC
4414 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4415 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4416 if test "$am_t" != yes; then
4417 # Losing compiler, so override with the script.
4418 # FIXME: It is wrong to rewrite CC.
4419 # But if we don't then we get into trouble of one sort or another.
4420 # A longer-term fix would be to have automake use am__CC in this case,
4421 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4422 CC="$am_aux_dir/compile $CC"
4423 fi
4424
44254409
44264410
44274411 enable_win32_dll=yes
47354719
47364720
47374721
4738 macro_version='2.4.2'
4739 macro_revision='1.3337'
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753 ltmain="$ac_aux_dir/ltmain.sh"
4722 macro_version='2.4.6'
4723 macro_revision='2.4.6'
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 ltmain=$ac_aux_dir/ltmain.sh
47544738
47554739 # Backslashify metacharacters that are still active within
47564740 # double-quoted strings.
47994783 $ECHO ""
48004784 }
48014785
4802 case "$ECHO" in
4786 case $ECHO in
48034787 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
48044788 $as_echo "printf" >&6; } ;;
48054789 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
49924976
49934977 # Check whether --with-gnu-ld was given.
49944978 if test "${with_gnu_ld+set}" = set; then :
4995 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4979 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
49964980 else
49974981 with_gnu_ld=no
49984982 fi
49994983
50004984 ac_prog=ld
5001 if test "$GCC" = yes; then
4985 if test yes = "$GCC"; then
50024986 # Check if gcc -print-prog-name=ld gives a path.
50034987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
50044988 $as_echo_n "checking for ld used by $CC... " >&6; }
50054989 case $host in
50064990 *-*-mingw*)
5007 # gcc leaves a trailing carriage return which upsets mingw
4991 # gcc leaves a trailing carriage return, which upsets mingw
50084992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
50094993 *)
50104994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
50185002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
50195003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
50205004 done
5021 test -z "$LD" && LD="$ac_prog"
5005 test -z "$LD" && LD=$ac_prog
50225006 ;;
50235007 "")
50245008 # If it fails, then pretend we aren't using GCC.
50295013 with_gnu_ld=unknown
50305014 ;;
50315015 esac
5032 elif test "$with_gnu_ld" = yes; then
5016 elif test yes = "$with_gnu_ld"; then
50335017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
50345018 $as_echo_n "checking for GNU ld... " >&6; }
50355019 else
50405024 $as_echo_n "(cached) " >&6
50415025 else
50425026 if test -z "$LD"; then
5043 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5027 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
50445028 for ac_dir in $PATH; do
5045 IFS="$lt_save_ifs"
5029 IFS=$lt_save_ifs
50465030 test -z "$ac_dir" && ac_dir=.
50475031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5048 lt_cv_path_LD="$ac_dir/$ac_prog"
5032 lt_cv_path_LD=$ac_dir/$ac_prog
50495033 # Check to see if the program is GNU ld. I'd rather use --version,
50505034 # but apparently some variants of GNU ld only accept -v.
50515035 # Break only if it was the GNU/non-GNU ld that we prefer.
50525036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
50535037 *GNU* | *'with BFD'*)
5054 test "$with_gnu_ld" != no && break
5038 test no != "$with_gnu_ld" && break
50555039 ;;
50565040 *)
5057 test "$with_gnu_ld" != yes && break
5041 test yes != "$with_gnu_ld" && break
50585042 ;;
50595043 esac
50605044 fi
50615045 done
5062 IFS="$lt_save_ifs"
5063 else
5064 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5065 fi
5066 fi
5067
5068 LD="$lt_cv_path_LD"
5046 IFS=$lt_save_ifs
5047 else
5048 lt_cv_path_LD=$LD # Let the user override the test with a path.
5049 fi
5050 fi
5051
5052 LD=$lt_cv_path_LD
50695053 if test -n "$LD"; then
50705054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
50715055 $as_echo "$LD" >&6; }
51085092 else
51095093 if test -n "$NM"; then
51105094 # Let the user override the test.
5111 lt_cv_path_NM="$NM"
5112 else
5113 lt_nm_to_check="${ac_tool_prefix}nm"
5095 lt_cv_path_NM=$NM
5096 else
5097 lt_nm_to_check=${ac_tool_prefix}nm
51145098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
51155099 lt_nm_to_check="$lt_nm_to_check nm"
51165100 fi
51175101 for lt_tmp_nm in $lt_nm_to_check; do
5118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
51195103 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5120 IFS="$lt_save_ifs"
5104 IFS=$lt_save_ifs
51215105 test -z "$ac_dir" && ac_dir=.
5122 tmp_nm="$ac_dir/$lt_tmp_nm"
5123 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5106 tmp_nm=$ac_dir/$lt_tmp_nm
5107 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
51245108 # Check to see if the nm accepts a BSD-compat flag.
5125 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5109 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
51265110 # nm: unknown option "B" ignored
51275111 # Tru64's nm complains that /dev/null is an invalid object file
5128 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5129 */dev/null* | *'Invalid file or object type'*)
5112 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5113 case $build_os in
5114 mingw*) lt_bad_file=conftest.nm/nofile ;;
5115 *) lt_bad_file=/dev/null ;;
5116 esac
5117 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5118 *$lt_bad_file* | *'Invalid file or object type'*)
51305119 lt_cv_path_NM="$tmp_nm -B"
5131 break
5120 break 2
51325121 ;;
51335122 *)
51345123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
51355124 */dev/null*)
51365125 lt_cv_path_NM="$tmp_nm -p"
5137 break
5126 break 2
51385127 ;;
51395128 *)
51405129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
51455134 esac
51465135 fi
51475136 done
5148 IFS="$lt_save_ifs"
5137 IFS=$lt_save_ifs
51495138 done
51505139 : ${lt_cv_path_NM=no}
51515140 fi
51525141 fi
51535142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
51545143 $as_echo "$lt_cv_path_NM" >&6; }
5155 if test "$lt_cv_path_NM" != "no"; then
5156 NM="$lt_cv_path_NM"
5144 if test no != "$lt_cv_path_NM"; then
5145 NM=$lt_cv_path_NM
51575146 else
51585147 # Didn't find any BSD compatible name lister, look for dumpbin.
51595148 if test -n "$DUMPBIN"; then :
52595248 fi
52605249 fi
52615250
5262 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5251 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
52635252 *COFF*)
5264 DUMPBIN="$DUMPBIN -symbols"
5253 DUMPBIN="$DUMPBIN -symbols -headers"
52655254 ;;
52665255 *)
52675256 DUMPBIN=:
52695258 esac
52705259 fi
52715260
5272 if test "$DUMPBIN" != ":"; then
5273 NM="$DUMPBIN"
5261 if test : != "$DUMPBIN"; then
5262 NM=$DUMPBIN
52745263 fi
52755264 fi
52765265 test -z "$NM" && NM=nm
53215310 $as_echo_n "(cached) " >&6
53225311 else
53235312 i=0
5324 teststring="ABCD"
5313 teststring=ABCD
53255314
53265315 case $build_os in
53275316 msdosdjgpp*)
53615350 lt_cv_sys_max_cmd_len=8192;
53625351 ;;
53635352
5364 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5353 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
53655354 # This has been around since 386BSD, at least. Likely further.
53665355 if test -x /sbin/sysctl; then
53675356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
54115400 ;;
54125401 *)
54135402 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5414 if test -n "$lt_cv_sys_max_cmd_len"; then
5403 if test -n "$lt_cv_sys_max_cmd_len" && \
5404 test undefined != "$lt_cv_sys_max_cmd_len"; then
54155405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
54165406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
54175407 else
54185408 # Make teststring a little bigger before we do anything with it.
54195409 # a 1K string should be a reasonable start.
5420 for i in 1 2 3 4 5 6 7 8 ; do
5410 for i in 1 2 3 4 5 6 7 8; do
54215411 teststring=$teststring$teststring
54225412 done
54235413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
54245414 # If test is not a shell built-in, we'll probably end up computing a
54255415 # maximum length that is only half of the actual maximum length, but
54265416 # we can't tell.
5427 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5417 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
54285418 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5429 test $i != 17 # 1/2 MB should be enough
5419 test 17 != "$i" # 1/2 MB should be enough
54305420 do
54315421 i=`expr $i + 1`
54325422 teststring=$teststring$teststring
54445434
54455435 fi
54465436
5447 if test -n $lt_cv_sys_max_cmd_len ; then
5437 if test -n "$lt_cv_sys_max_cmd_len"; then
54485438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
54495439 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
54505440 else
54615451 : ${CP="cp -f"}
54625452 : ${MV="mv -f"}
54635453 : ${RM="rm -f"}
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5466 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5467 # Try some XSI features
5468 xsi_shell=no
5469 ( _lt_dummy="a/b/c"
5470 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5471 = c,a/b,b/c, \
5472 && eval 'test $(( 1 + 1 )) -eq 2 \
5473 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5474 && xsi_shell=yes
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5476 $as_echo "$xsi_shell" >&6; }
5477
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5480 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5481 lt_shell_append=no
5482 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5483 >/dev/null 2>&1 \
5484 && lt_shell_append=yes
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5486 $as_echo "$lt_shell_append" >&6; }
5487
54885454
54895455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54905456 lt_unset=unset
56085574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
56095575 case $host_os in
56105576 cygwin* | mingw* | pw32* | cegcc*)
5611 if test "$GCC" != yes; then
5577 if test yes != "$GCC"; then
56125578 reload_cmds=false
56135579 fi
56145580 ;;
56155581 darwin*)
5616 if test "$GCC" = yes; then
5617 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5582 if test yes = "$GCC"; then
5583 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
56185584 else
56195585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
56205586 fi
57395705 # Need to set the preceding variable on all platforms that support
57405706 # interlibrary dependencies.
57415707 # 'none' -- dependencies not supported.
5742 # `unknown' -- same as none, but documents that we really don't know.
5708 # 'unknown' -- same as none, but documents that we really don't know.
57435709 # 'pass_all' -- all dependencies passed with no checks.
57445710 # 'test_compile' -- check by making test program.
57455711 # 'file_magic [[regex]]' -- check by looking for files in library path
5746 # which responds to the $file_magic_cmd with a given extended regex.
5747 # If you have `file' or equivalent on your system and you're not sure
5748 # whether `pass_all' will *always* work, you probably want this one.
5712 # that responds to the $file_magic_cmd with a given extended regex.
5713 # If you have 'file' or equivalent on your system and you're not sure
5714 # whether 'pass_all' will *always* work, you probably want this one.
57495715
57505716 case $host_os in
57515717 aix[4-9]*)
57725738 # Base MSYS/MinGW do not provide the 'file' command needed by
57735739 # func_win32_libid shell function, so use a weaker test based on 'objdump',
57745740 # unless we find 'file', for example because we are cross-compiling.
5775 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5776 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5741 if ( file / ) >/dev/null 2>&1; then
57775742 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
57785743 lt_cv_file_magic_cmd='func_win32_libid'
57795744 else
58075772 else
58085773 lt_cv_deplibs_check_method=pass_all
58095774 fi
5810 ;;
5811
5812 gnu*)
5813 lt_cv_deplibs_check_method=pass_all
58145775 ;;
58155776
58165777 haiku*)
58515812 ;;
58525813
58535814 # This must be glibc/ELF.
5854 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5815 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
58555816 lt_cv_deplibs_check_method=pass_all
58565817 ;;
58575818
58735834 lt_cv_deplibs_check_method=pass_all
58745835 ;;
58755836
5876 openbsd*)
5877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5837 openbsd* | bitrig*)
5838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
58785839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
58795840 else
58805841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
59275888 tpf*)
59285889 lt_cv_deplibs_check_method=pass_all
59295890 ;;
5891 os2*)
5892 lt_cv_deplibs_check_method=pass_all
5893 ;;
59305894 esac
59315895
59325896 fi
60816045
60826046 case $host_os in
60836047 cygwin* | mingw* | pw32* | cegcc*)
6084 # two different shell functions defined in ltmain.sh
6085 # decide which to use based on capabilities of $DLLTOOL
6048 # two different shell functions defined in ltmain.sh;
6049 # decide which one to use based on capabilities of $DLLTOOL
60866050 case `$DLLTOOL --help 2>&1` in
60876051 *--identify-strict*)
60886052 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
60946058 ;;
60956059 *)
60966060 # fallback: assume linklib IS sharedlib
6097 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6061 lt_cv_sharedlib_from_linklib_cmd=$ECHO
60986062 ;;
60996063 esac
61006064
62486212 ac_status=$?
62496213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62506214 test $ac_status = 0; }
6251 if test "$ac_status" -eq 0; then
6215 if test 0 -eq "$ac_status"; then
62526216 # Ensure the archiver fails upon bogus file names.
62536217 rm -f conftest.$ac_objext libconftest.a
62546218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
62566220 ac_status=$?
62576221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62586222 test $ac_status = 0; }
6259 if test "$ac_status" -ne 0; then
6223 if test 0 -ne "$ac_status"; then
62606224 lt_cv_ar_at_file=@
62616225 fi
62626226 fi
62696233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
62706234 $as_echo "$lt_cv_ar_at_file" >&6; }
62716235
6272 if test "x$lt_cv_ar_at_file" = xno; then
6236 if test no = "$lt_cv_ar_at_file"; then
62736237 archiver_list_spec=
62746238 else
62756239 archiver_list_spec=$lt_cv_ar_at_file
64866450
64876451 if test -n "$RANLIB"; then
64886452 case $host_os in
6489 openbsd*)
6453 bitrig* | openbsd*)
64906454 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
64916455 ;;
64926456 *)
65766540 symcode='[ABCDGISTW]'
65776541 ;;
65786542 hpux*)
6579 if test "$host_cpu" = ia64; then
6543 if test ia64 = "$host_cpu"; then
65806544 symcode='[ABCDEGRST]'
65816545 fi
65826546 ;;
66096573 symcode='[ABCDGIRSTW]' ;;
66106574 esac
66116575
6576 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6577 # Gets list of data symbols to import.
6578 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6579 # Adjust the below global symbol transforms to fixup imported variables.
6580 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6581 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6582 lt_c_name_lib_hook="\
6583 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6584 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6585 else
6586 # Disable hooks by default.
6587 lt_cv_sys_global_symbol_to_import=
6588 lt_cdecl_hook=
6589 lt_c_name_hook=
6590 lt_c_name_lib_hook=
6591 fi
6592
66126593 # Transform an extracted symbol line into a proper C declaration.
66136594 # Some systems (esp. on ia64) link data and code symbols differently,
66146595 # so use this general approach.
6615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6596 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6597 $lt_cdecl_hook\
6598 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6599 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
66166600
66176601 # Transform an extracted symbol line into symbol name and symbol address
6618 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6619 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6602 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6603 $lt_c_name_hook\
6604 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6605 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6606
6607 # Transform an extracted symbol line into symbol name with lib prefix and
6608 # symbol address.
6609 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6610 $lt_c_name_lib_hook\
6611 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6612 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6613 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
66206614
66216615 # Handle CRLF in mingw tool chain
66226616 opt_cr=
66346628
66356629 # Write the raw and C identifiers.
66366630 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6637 # Fake it for dumpbin and say T for any non-static function
6638 # and D for any global variable.
6631 # Fake it for dumpbin and say T for any non-static function,
6632 # D for any global variable and I for any imported variable.
66396633 # Also find C++ and __fastcall symbols from MSVC++,
66406634 # which start with @ or ?.
66416635 lt_cv_sys_global_symbol_pipe="$AWK '"\
66426636 " {last_section=section; section=\$ 3};"\
66436637 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
66446638 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6639 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6640 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6641 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
66456642 " \$ 0!~/External *\|/{next};"\
66466643 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
66476644 " {if(hide[section]) next};"\
6648 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6649 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6650 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6651 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6645 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6646 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6647 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6648 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
66526649 " ' prfx=^$ac_symprfx"
66536650 else
66546651 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
66966693 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
66976694 cat <<_LT_EOF > conftest.$ac_ext
66986695 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6699 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6700 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6696 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6697 /* DATA imports from DLLs on WIN32 can't be const, because runtime
67016698 relocations are performed -- see ld's documentation on pseudo-relocs. */
67026699 # define LT_DLSYM_CONST
6703 #elif defined(__osf__)
6700 #elif defined __osf__
67046701 /* This system does not cope well with relocations in const data. */
67056702 # define LT_DLSYM_CONST
67066703 #else
67266723 {
67276724 { "@PROGRAM@", (void *) 0 },
67286725 _LT_EOF
6729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6726 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
67306727 cat <<\_LT_EOF >> conftest.$ac_ext
67316728 {0, (void *) 0}
67326729 };
67466743 mv conftest.$ac_objext conftstm.$ac_objext
67476744 lt_globsym_save_LIBS=$LIBS
67486745 lt_globsym_save_CFLAGS=$CFLAGS
6749 LIBS="conftstm.$ac_objext"
6746 LIBS=conftstm.$ac_objext
67506747 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
67516748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
67526749 (eval $ac_link) 2>&5
67536750 ac_status=$?
67546751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6752 test $ac_status = 0; } && test -s conftest$ac_exeext; then
67566753 pipe_works=yes
67576754 fi
67586755 LIBS=$lt_globsym_save_LIBS
67736770 rm -rf conftest* conftst*
67746771
67756772 # Do not use the global_symbol_pipe unless it works.
6776 if test "$pipe_works" = yes; then
6773 if test yes = "$pipe_works"; then
67776774 break
67786775 else
67796776 lt_cv_sys_global_symbol_pipe=
68266823
68276824
68286825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
68296836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
68306837 $as_echo_n "checking for sysroot... " >&6; }
68316838
68386845
68396846
68406847 lt_sysroot=
6841 case ${with_sysroot} in #(
6848 case $with_sysroot in #(
68426849 yes)
6843 if test "$GCC" = yes; then
6850 if test yes = "$GCC"; then
68446851 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
68456852 fi
68466853 ;; #(
68506857 no|'')
68516858 ;; #(
68526859 *)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6854 $as_echo "${with_sysroot}" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6861 $as_echo "$with_sysroot" >&6; }
68556862 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
68566863 ;;
68576864 esac
68636870
68646871
68656872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6874 $as_echo_n "checking for a working dd... " >&6; }
6875 if ${ac_cv_path_lt_DD+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 printf 0123456789abcdef0123456789abcdef >conftest.i
6879 cat conftest.i conftest.i >conftest2.i
6880 : ${lt_DD:=$DD}
6881 if test -z "$lt_DD"; then
6882 ac_path_lt_DD_found=false
6883 # Loop through the user's path and test for each of PROGNAME-LIST
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_prog in dd; do
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6892 as_fn_executable_p "$ac_path_lt_DD" || continue
6893 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6894 cmp -s conftest.i conftest.out \
6895 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6896 fi
6897 $ac_path_lt_DD_found && break 3
6898 done
6899 done
6900 done
6901 IFS=$as_save_IFS
6902 if test -z "$ac_cv_path_lt_DD"; then
6903 :
6904 fi
6905 else
6906 ac_cv_path_lt_DD=$lt_DD
6907 fi
6908
6909 rm -f conftest.i conftest2.i conftest.out
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6912 $as_echo "$ac_cv_path_lt_DD" >&6; }
6913
6914
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6916 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6917 if ${lt_cv_truncate_bin+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 printf 0123456789abcdef0123456789abcdef >conftest.i
6921 cat conftest.i conftest.i >conftest2.i
6922 lt_cv_truncate_bin=
6923 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6924 cmp -s conftest.i conftest.out \
6925 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6926 fi
6927 rm -f conftest.i conftest2.i conftest.out
6928 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6931 $as_echo "$lt_cv_truncate_bin" >&6; }
6932
6933
6934
6935
6936
6937
6938
6939 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6940 func_cc_basename ()
6941 {
6942 for cc_temp in $*""; do
6943 case $cc_temp in
6944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6946 \-*) ;;
6947 *) break;;
6948 esac
6949 done
6950 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6951 }
6952
68666953 # Check whether --enable-libtool-lock was given.
68676954 if test "${enable_libtool_lock+set}" = set; then :
68686955 enableval=$enable_libtool_lock;
68696956 fi
68706957
6871 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6958 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
68726959
68736960 # Some flags need to be propagated to the compiler or linker for good
68746961 # libtool support.
68756962 case $host in
68766963 ia64-*-hpux*)
6877 # Find out which ABI we are using.
6964 # Find out what ABI is being produced by ac_compile, and set mode
6965 # options accordingly.
68786966 echo 'int i;' > conftest.$ac_ext
68796967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68806968 (eval $ac_compile) 2>&5
68836971 test $ac_status = 0; }; then
68846972 case `/usr/bin/file conftest.$ac_objext` in
68856973 *ELF-32*)
6886 HPUX_IA64_MODE="32"
6974 HPUX_IA64_MODE=32
68876975 ;;
68886976 *ELF-64*)
6889 HPUX_IA64_MODE="64"
6977 HPUX_IA64_MODE=64
68906978 ;;
68916979 esac
68926980 fi
68936981 rm -rf conftest*
68946982 ;;
68956983 *-*-irix6*)
6896 # Find out which ABI we are using.
6984 # Find out what ABI is being produced by ac_compile, and set linker
6985 # options accordingly.
68976986 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
68986987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68996988 (eval $ac_compile) 2>&5
69006989 ac_status=$?
69016990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69026991 test $ac_status = 0; }; then
6903 if test "$lt_cv_prog_gnu_ld" = yes; then
6992 if test yes = "$lt_cv_prog_gnu_ld"; then
69046993 case `/usr/bin/file conftest.$ac_objext` in
69056994 *32-bit*)
69066995 LD="${LD-ld} -melf32bsmip"
69297018 rm -rf conftest*
69307019 ;;
69317020
7021 mips64*-*linux*)
7022 # Find out what ABI is being produced by ac_compile, and set linker
7023 # options accordingly.
7024 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7026 (eval $ac_compile) 2>&5
7027 ac_status=$?
7028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029 test $ac_status = 0; }; then
7030 emul=elf
7031 case `/usr/bin/file conftest.$ac_objext` in
7032 *32-bit*)
7033 emul="${emul}32"
7034 ;;
7035 *64-bit*)
7036 emul="${emul}64"
7037 ;;
7038 esac
7039 case `/usr/bin/file conftest.$ac_objext` in
7040 *MSB*)
7041 emul="${emul}btsmip"
7042 ;;
7043 *LSB*)
7044 emul="${emul}ltsmip"
7045 ;;
7046 esac
7047 case `/usr/bin/file conftest.$ac_objext` in
7048 *N32*)
7049 emul="${emul}n32"
7050 ;;
7051 esac
7052 LD="${LD-ld} -m $emul"
7053 fi
7054 rm -rf conftest*
7055 ;;
7056
69327057 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
69337058 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6934 # Find out which ABI we are using.
7059 # Find out what ABI is being produced by ac_compile, and set linker
7060 # options accordingly. Note that the listed cases only cover the
7061 # situations where additional linker options are needed (such as when
7062 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7063 # vice versa); the common cases where no linker options are needed do
7064 # not appear in the list.
69357065 echo 'int i;' > conftest.$ac_ext
69367066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
69377067 (eval $ac_compile) 2>&5
69457075 LD="${LD-ld} -m elf_i386_fbsd"
69467076 ;;
69477077 x86_64-*linux*)
6948 LD="${LD-ld} -m elf_i386"
7078 case `/usr/bin/file conftest.o` in
7079 *x86-64*)
7080 LD="${LD-ld} -m elf32_x86_64"
7081 ;;
7082 *)
7083 LD="${LD-ld} -m elf_i386"
7084 ;;
7085 esac
69497086 ;;
69507087 powerpc64le-*linux*)
69517088 LD="${LD-ld} -m elf32lppclinux"
69907127
69917128 *-*-sco3.2v5*)
69927129 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6993 SAVE_CFLAGS="$CFLAGS"
7130 SAVE_CFLAGS=$CFLAGS
69947131 CFLAGS="$CFLAGS -belf"
69957132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
69967133 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
70307167 fi
70317168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
70327169 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7033 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7170 if test yes != "$lt_cv_cc_needs_belf"; then
70347171 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7035 CFLAGS="$SAVE_CFLAGS"
7172 CFLAGS=$SAVE_CFLAGS
70367173 fi
70377174 ;;
70387175 *-*solaris*)
7039 # Find out which ABI we are using.
7176 # Find out what ABI is being produced by ac_compile, and set linker
7177 # options accordingly.
70407178 echo 'int i;' > conftest.$ac_ext
70417179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
70427180 (eval $ac_compile) 2>&5
70487186 case $lt_cv_prog_gnu_ld in
70497187 yes*)
70507188 case $host in
7051 i?86-*-solaris*)
7189 i?86-*-solaris*|x86_64-*-solaris*)
70527190 LD="${LD-ld} -m elf_x86_64"
70537191 ;;
70547192 sparc*-*-solaris*)
70577195 esac
70587196 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
70597197 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7060 LD="${LD-ld}_sol2"
7198 LD=${LD-ld}_sol2
70617199 fi
70627200 ;;
70637201 *)
70737211 ;;
70747212 esac
70757213
7076 need_locks="$enable_libtool_lock"
7214 need_locks=$enable_libtool_lock
70777215
70787216 if test -n "$ac_tool_prefix"; then
70797217 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
71847322 fi
71857323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
71867324 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7187 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7325 if test yes != "$lt_cv_path_mainfest_tool"; then
71887326 MANIFEST_TOOL=:
71897327 fi
71907328
76877825 $as_echo_n "(cached) " >&6
76887826 else
76897827 lt_cv_apple_cc_single_mod=no
7690 if test -z "${LT_MULTI_MODULE}"; then
7828 if test -z "$LT_MULTI_MODULE"; then
76917829 # By default we will add the -single_module flag. You can override
76927830 # by either setting the environment variable LT_MULTI_MODULE
76937831 # non-empty at configure time, or by adding -multi_module to the
77057843 cat conftest.err >&5
77067844 # Otherwise, if the output was created with a 0 exit code from
77077845 # the compiler, it worked.
7708 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7846 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
77097847 lt_cv_apple_cc_single_mod=yes
77107848 else
77117849 cat conftest.err >&5
77447882 fi
77457883 rm -f core conftest.err conftest.$ac_objext \
77467884 conftest$ac_exeext conftest.$ac_ext
7747 LDFLAGS="$save_LDFLAGS"
7885 LDFLAGS=$save_LDFLAGS
77487886
77497887 fi
77507888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
77737911 _lt_result=$?
77747912 if test -s conftest.err && $GREP force_load conftest.err; then
77757913 cat conftest.err >&5
7776 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7914 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
77777915 lt_cv_ld_force_load=yes
77787916 else
77797917 cat conftest.err >&5
77867924 $as_echo "$lt_cv_ld_force_load" >&6; }
77877925 case $host_os in
77887926 rhapsody* | darwin1.[012])
7789 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7927 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
77907928 darwin1.*)
7791 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7929 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
77927930 darwin*) # darwin 5.x on
77937931 # if running on 10.5 or later, the deployment target defaults
77947932 # to the OS version, if on x86, and 10.4, the deployment
77957933 # target defaults to 10.4. Don't you love it?
77967934 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
77977935 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7799 10.[012]*)
7800 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7936 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7937 10.[012][,.]*)
7938 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
78017939 10.*)
7802 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7940 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
78037941 esac
78047942 ;;
78057943 esac
7806 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7944 if test yes = "$lt_cv_apple_cc_single_mod"; then
78077945 _lt_dar_single_mod='$single_module'
78087946 fi
7809 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7810 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7947 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7948 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
78117949 else
7812 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7950 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
78137951 fi
7814 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7952 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
78157953 _lt_dsymutil='~$DSYMUTIL $lib || :'
78167954 else
78177955 _lt_dsymutil=
78187956 fi
78197957 ;;
78207958 esac
7959
7960 # func_munge_path_list VARIABLE PATH
7961 # -----------------------------------
7962 # VARIABLE is name of variable containing _space_ separated list of
7963 # directories to be munged by the contents of PATH, which is string
7964 # having a format:
7965 # "DIR[:DIR]:"
7966 # string "DIR[ DIR]" will be prepended to VARIABLE
7967 # ":DIR[:DIR]"
7968 # string "DIR[ DIR]" will be appended to VARIABLE
7969 # "DIRP[:DIRP]::[DIRA:]DIRA"
7970 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7971 # "DIRA[ DIRA]" will be appended to VARIABLE
7972 # "DIR[:DIR]"
7973 # VARIABLE will be replaced by "DIR[ DIR]"
7974 func_munge_path_list ()
7975 {
7976 case x$2 in
7977 x)
7978 ;;
7979 *:)
7980 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7981 ;;
7982 x:*)
7983 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7984 ;;
7985 *::*)
7986 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7987 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7988 ;;
7989 *)
7990 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7991 ;;
7992 esac
7993 }
78217994
78227995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
78237996 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
78708043 *)
78718044 enable_shared=no
78728045 # Look at the argument we got. We use all the common list separators.
7873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
78748047 for pkg in $enableval; do
7875 IFS="$lt_save_ifs"
8048 IFS=$lt_save_ifs
78768049 if test "X$pkg" = "X$p"; then
78778050 enable_shared=yes
78788051 fi
78798052 done
7880 IFS="$lt_save_ifs"
8053 IFS=$lt_save_ifs
78818054 ;;
78828055 esac
78838056 else
79018074 *)
79028075 enable_static=no
79038076 # Look at the argument we got. We use all the common list separators.
7904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
79058078 for pkg in $enableval; do
7906 IFS="$lt_save_ifs"
8079 IFS=$lt_save_ifs
79078080 if test "X$pkg" = "X$p"; then
79088081 enable_static=yes
79098082 fi
79108083 done
7911 IFS="$lt_save_ifs"
8084 IFS=$lt_save_ifs
79128085 ;;
79138086 esac
79148087 else
79328105 *)
79338106 pic_mode=default
79348107 # Look at the argument we got. We use all the common list separators.
7935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8108 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
79368109 for lt_pkg in $withval; do
7937 IFS="$lt_save_ifs"
8110 IFS=$lt_save_ifs
79388111 if test "X$lt_pkg" = "X$lt_p"; then
79398112 pic_mode=yes
79408113 fi
79418114 done
7942 IFS="$lt_save_ifs"
8115 IFS=$lt_save_ifs
79438116 ;;
79448117 esac
79458118 else
79468119 pic_mode=default
79478120 fi
79488121
7949
7950 test -z "$pic_mode" && pic_mode=default
79518122
79528123
79538124
79648135 *)
79658136 enable_fast_install=no
79668137 # Look at the argument we got. We use all the common list separators.
7967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8138 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
79688139 for pkg in $enableval; do
7969 IFS="$lt_save_ifs"
8140 IFS=$lt_save_ifs
79708141 if test "X$pkg" = "X$p"; then
79718142 enable_fast_install=yes
79728143 fi
79738144 done
7974 IFS="$lt_save_ifs"
8145 IFS=$lt_save_ifs
79758146 ;;
79768147 esac
79778148 else
79858156
79868157
79878158
8159 shared_archive_member_spec=
8160 case $host,$enable_shared in
8161 power*-*-aix[5-9]*,yes)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8163 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8164
8165 # Check whether --with-aix-soname was given.
8166 if test "${with_aix_soname+set}" = set; then :
8167 withval=$with_aix_soname; case $withval in
8168 aix|svr4|both)
8169 ;;
8170 *)
8171 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8172 ;;
8173 esac
8174 lt_cv_with_aix_soname=$with_aix_soname
8175 else
8176 if ${lt_cv_with_aix_soname+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 lt_cv_with_aix_soname=aix
8180 fi
8181
8182 with_aix_soname=$lt_cv_with_aix_soname
8183 fi
8184
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8186 $as_echo "$with_aix_soname" >&6; }
8187 if test aix != "$with_aix_soname"; then
8188 # For the AIX way of multilib, we name the shared archive member
8189 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8190 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8191 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8192 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8193 if test 64 = "${OBJECT_MODE-32}"; then
8194 shared_archive_member_spec=shr_64
8195 else
8196 shared_archive_member_spec=shr
8197 fi
8198 fi
8199 ;;
8200 *)
8201 with_aix_soname=aix
8202 ;;
8203 esac
8204
8205
8206
8207
8208
8209
8210
79888211
79898212
79908213
79918214 # This can be used to rebuild libtool when needed
7992 LIBTOOL_DEPS="$ltmain"
8215 LIBTOOL_DEPS=$ltmain
79938216
79948217 # Always use our own libtool.
79958218 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
80388261
80398262
80408263
8041 if test -n "${ZSH_VERSION+set}" ; then
8264 if test -n "${ZSH_VERSION+set}"; then
80428265 setopt NO_GLOB_SUBST
80438266 fi
80448267
80778300 # AIX sometimes has problems with the GCC collect2 program. For some
80788301 # reason, if we set the COLLECT_NAMES environment variable, the problems
80798302 # vanish in a puff of smoke.
8080 if test "X${COLLECT_NAMES+set}" != Xset; then
8303 if test set != "${COLLECT_NAMES+set}"; then
80818304 COLLECT_NAMES=
80828305 export COLLECT_NAMES
80838306 fi
80888311 ofile=libtool
80898312 can_build_shared=yes
80908313
8091 # All known linkers require a `.a' archive for static linking (except MSVC,
8314 # All known linkers require a '.a' archive for static linking (except MSVC,
80928315 # which needs '.lib').
80938316 libext=a
80948317
8095 with_gnu_ld="$lt_cv_prog_gnu_ld"
8096
8097 old_CC="$CC"
8098 old_CFLAGS="$CFLAGS"
8318 with_gnu_ld=$lt_cv_prog_gnu_ld
8319
8320 old_CC=$CC
8321 old_CFLAGS=$CFLAGS
80998322
81008323 # Set sane defaults for various variables
81018324 test -z "$CC" && CC=cc
81048327 test -z "$LD" && LD=ld
81058328 test -z "$ac_objext" && ac_objext=o
81068329
8107 for cc_temp in $compiler""; do
8108 case $cc_temp in
8109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8111 \-*) ;;
8112 *) break;;
8113 esac
8114 done
8115 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8330 func_cc_basename $compiler
8331 cc_basename=$func_cc_basename_result
81168332
81178333
81188334 # Only perform the check for file, if the check method requires it
81278343 else
81288344 case $MAGIC_CMD in
81298345 [\\/*] | ?:[\\/]*)
8130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8346 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
81318347 ;;
81328348 *)
8133 lt_save_MAGIC_CMD="$MAGIC_CMD"
8134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8349 lt_save_MAGIC_CMD=$MAGIC_CMD
8350 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
81358351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
81368352 for ac_dir in $ac_dummy; do
8137 IFS="$lt_save_ifs"
8353 IFS=$lt_save_ifs
81388354 test -z "$ac_dir" && ac_dir=.
8139 if test -f $ac_dir/${ac_tool_prefix}file; then
8140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8355 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8356 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
81418357 if test -n "$file_magic_test_file"; then
81428358 case $deplibs_check_method in
81438359 "file_magic "*)
81448360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8361 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
81468362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
81478363 $EGREP "$file_magic_regex" > /dev/null; then
81488364 :
81658381 break
81668382 fi
81678383 done
8168 IFS="$lt_save_ifs"
8169 MAGIC_CMD="$lt_save_MAGIC_CMD"
8384 IFS=$lt_save_ifs
8385 MAGIC_CMD=$lt_save_MAGIC_CMD
81708386 ;;
81718387 esac
81728388 fi
81738389
8174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8390 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
81758391 if test -n "$MAGIC_CMD"; then
81768392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
81778393 $as_echo "$MAGIC_CMD" >&6; }
81938409 else
81948410 case $MAGIC_CMD in
81958411 [\\/*] | ?:[\\/]*)
8196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8412 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
81978413 ;;
81988414 *)
8199 lt_save_MAGIC_CMD="$MAGIC_CMD"
8200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8415 lt_save_MAGIC_CMD=$MAGIC_CMD
8416 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
82018417 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
82028418 for ac_dir in $ac_dummy; do
8203 IFS="$lt_save_ifs"
8419 IFS=$lt_save_ifs
82048420 test -z "$ac_dir" && ac_dir=.
8205 if test -f $ac_dir/file; then
8206 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8421 if test -f "$ac_dir/file"; then
8422 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
82078423 if test -n "$file_magic_test_file"; then
82088424 case $deplibs_check_method in
82098425 "file_magic "*)
82108426 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
82128428 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
82138429 $EGREP "$file_magic_regex" > /dev/null; then
82148430 :
82318447 break
82328448 fi
82338449 done
8234 IFS="$lt_save_ifs"
8235 MAGIC_CMD="$lt_save_MAGIC_CMD"
8450 IFS=$lt_save_ifs
8451 MAGIC_CMD=$lt_save_MAGIC_CMD
82368452 ;;
82378453 esac
82388454 fi
82398455
8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8456 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
82418457 if test -n "$MAGIC_CMD"; then
82428458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
82438459 $as_echo "$MAGIC_CMD" >&6; }
82588474
82598475 # Use C for the default configuration in the libtool script
82608476
8261 lt_save_CC="$CC"
8477 lt_save_CC=$CC
82628478 ac_ext=c
82638479 ac_cpp='$CPP $CPPFLAGS'
82648480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
83208536
83218537 lt_prog_compiler_no_builtin_flag=
83228538
8323 if test "$GCC" = yes; then
8539 if test yes = "$GCC"; then
83248540 case $cc_basename in
83258541 nvcc*)
83268542 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
83368552 lt_cv_prog_compiler_rtti_exceptions=no
83378553 ac_outfile=conftest.$ac_objext
83388554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339 lt_compiler_flag="-fno-rtti -fno-exceptions"
8555 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
83408556 # Insert the option either (1) after the last *FLAGS variable, or
83418557 # (2) before a word containing "conftest.", or (3) at the end.
83428558 # Note that $ac_compile itself does not contain backslashes and begins
83668582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
83678583 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
83688584
8369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8585 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
83708586 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
83718587 else
83728588 :
83848600 lt_prog_compiler_static=
83858601
83868602
8387 if test "$GCC" = yes; then
8603 if test yes = "$GCC"; then
83888604 lt_prog_compiler_wl='-Wl,'
83898605 lt_prog_compiler_static='-static'
83908606
83918607 case $host_os in
83928608 aix*)
83938609 # All AIX code is PIC.
8394 if test "$host_cpu" = ia64; then
8610 if test ia64 = "$host_cpu"; then
83958611 # AIX 5 now supports IA64 processor
83968612 lt_prog_compiler_static='-Bstatic'
83978613 fi
8614 lt_prog_compiler_pic='-fPIC'
83988615 ;;
83998616
84008617 amigaos*)
84058622 ;;
84068623 m68k)
84078624 # FIXME: we need at least 68020 code to build shared libraries, but
8408 # adding the `-m68020' flag to GCC prevents building anything better,
8409 # like `-m68040'.
8625 # adding the '-m68020' flag to GCC prevents building anything better,
8626 # like '-m68040'.
84108627 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
84118628 ;;
84128629 esac
84228639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
84238640 # (--disable-auto-import) libraries
84248641 lt_prog_compiler_pic='-DDLL_EXPORT'
8642 case $host_os in
8643 os2*)
8644 lt_prog_compiler_static='$wl-static'
8645 ;;
8646 esac
84258647 ;;
84268648
84278649 darwin* | rhapsody*)
84928714 case $host_os in
84938715 aix*)
84948716 lt_prog_compiler_wl='-Wl,'
8495 if test "$host_cpu" = ia64; then
8717 if test ia64 = "$host_cpu"; then
84968718 # AIX 5 now supports IA64 processor
84978719 lt_prog_compiler_static='-Bstatic'
84988720 else
85008722 fi
85018723 ;;
85028724
8725 darwin* | rhapsody*)
8726 # PIC is the default on this platform
8727 # Common symbols not allowed in MH_DYLIB files
8728 lt_prog_compiler_pic='-fno-common'
8729 case $cc_basename in
8730 nagfor*)
8731 # NAG Fortran compiler
8732 lt_prog_compiler_wl='-Wl,-Wl,,'
8733 lt_prog_compiler_pic='-PIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 ;;
8736 esac
8737 ;;
8738
85038739 mingw* | cygwin* | pw32* | os2* | cegcc*)
85048740 # This hack is so that the source file can tell whether it is being
85058741 # built for inclusion in a dll (and should export symbols for example).
85068742 lt_prog_compiler_pic='-DDLL_EXPORT'
8743 case $host_os in
8744 os2*)
8745 lt_prog_compiler_static='$wl-static'
8746 ;;
8747 esac
85078748 ;;
85088749
85098750 hpux9* | hpux10* | hpux11*)
85198760 ;;
85208761 esac
85218762 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8522 lt_prog_compiler_static='${wl}-a ${wl}archive'
8763 lt_prog_compiler_static='$wl-a ${wl}archive'
85238764 ;;
85248765
85258766 irix5* | irix6* | nonstopux*)
85288769 lt_prog_compiler_static='-non_shared'
85298770 ;;
85308771
8531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8772 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
85328773 case $cc_basename in
8533 # old Intel for x86_64 which still supported -KPIC.
8774 # old Intel for x86_64, which still supported -KPIC.
85348775 ecc*)
85358776 lt_prog_compiler_wl='-Wl,'
85368777 lt_prog_compiler_pic='-KPIC'
85548795 lt_prog_compiler_wl='-Wl,-Wl,,'
85558796 lt_prog_compiler_pic='-PIC'
85568797 lt_prog_compiler_static='-Bstatic'
8798 ;;
8799 tcc*)
8800 # Fabrice Bellard et al's Tiny C Compiler
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_pic='-fPIC'
8803 lt_prog_compiler_static='-static'
85578804 ;;
85588805 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
85598806 # Portland Group compilers (*not* the Pentium gcc compiler,
86528899 ;;
86538900
86548901 sysv4*MP*)
8655 if test -d /usr/nec ;then
8902 if test -d /usr/nec; then
86568903 lt_prog_compiler_pic='-Kconform_pic'
86578904 lt_prog_compiler_static='-Bstatic'
86588905 fi
86818928 fi
86828929
86838930 case $host_os in
8684 # For platforms which do not support PIC, -DPIC is meaningless:
8931 # For platforms that do not support PIC, -DPIC is meaningless:
86858932 *djgpp*)
86868933 lt_prog_compiler_pic=
86878934 ;;
87138960 lt_cv_prog_compiler_pic_works=no
87148961 ac_outfile=conftest.$ac_objext
87158962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8716 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8963 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
87178964 # Insert the option either (1) after the last *FLAGS variable, or
87188965 # (2) before a word containing "conftest.", or (3) at the end.
87198966 # Note that $ac_compile itself does not contain backslashes and begins
87438990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
87448991 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
87458992
8746 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8993 if test yes = "$lt_cv_prog_compiler_pic_works"; then
87478994 case $lt_prog_compiler_pic in
87488995 "" | " "*) ;;
87498996 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
87759022 $as_echo_n "(cached) " >&6
87769023 else
87779024 lt_cv_prog_compiler_static_works=no
8778 save_LDFLAGS="$LDFLAGS"
9025 save_LDFLAGS=$LDFLAGS
87799026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
87809027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
87819028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
87949041 fi
87959042 fi
87969043 $RM -r conftest*
8797 LDFLAGS="$save_LDFLAGS"
9044 LDFLAGS=$save_LDFLAGS
87989045
87999046 fi
88009047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
88019048 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
88029049
8803 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9050 if test yes = "$lt_cv_prog_compiler_static_works"; then
88049051 :
88059052 else
88069053 lt_prog_compiler_static=
89209167
89219168
89229169
8923 hard_links="nottested"
8924 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9170 hard_links=nottested
9171 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
89259172 # do not overwrite the value of need_locks provided by the user
89269173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
89279174 $as_echo_n "checking if we can lock with hard links... " >&6; }
89339180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
89349181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
89359182 $as_echo "$hard_links" >&6; }
8936 if test "$hard_links" = no; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8938 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9183 if test no = "$hard_links"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9185 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
89399186 need_locks=warn
89409187 fi
89419188 else
89789225 # included in the symbol list
89799226 include_expsyms=
89809227 # exclude_expsyms can be an extended regexp of symbols to exclude
8981 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8982 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8983 # as well as any symbol that contains `d'.
9228 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9229 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9230 # as well as any symbol that contains 'd'.
89849231 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
89859232 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
89869233 # platforms (ab)use it in PIC code, but their linkers get confused if
89959242 # FIXME: the MSVC++ port hasn't been tested in a loooong time
89969243 # When not using gcc, we currently assume that we are using
89979244 # Microsoft Visual C++.
8998 if test "$GCC" != yes; then
9245 if test yes != "$GCC"; then
89999246 with_gnu_ld=no
90009247 fi
90019248 ;;
90039250 # we just hope/assume this is gcc and not c89 (= MSVC++)
90049251 with_gnu_ld=yes
90059252 ;;
9006 openbsd*)
9253 openbsd* | bitrig*)
90079254 with_gnu_ld=no
90089255 ;;
90099256 esac
90139260 # On some targets, GNU ld is compatible enough with the native linker
90149261 # that we're better off using the native interface for both.
90159262 lt_use_gnu_ld_interface=no
9016 if test "$with_gnu_ld" = yes; then
9263 if test yes = "$with_gnu_ld"; then
90179264 case $host_os in
90189265 aix*)
90199266 # The AIX port of GNU ld has always aspired to compatibility
90359282 esac
90369283 fi
90379284
9038 if test "$lt_use_gnu_ld_interface" = yes; then
9285 if test yes = "$lt_use_gnu_ld_interface"; then
90399286 # If archive_cmds runs LD, not CC, wlarc should be empty
9040 wlarc='${wl}'
9287 wlarc='$wl'
90419288
90429289 # Set some defaults for GNU ld with shared library support. These
90439290 # are reset later if shared libraries are not supported. Putting them
90449291 # here allows them to be overridden if necessary.
90459292 runpath_var=LD_RUN_PATH
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047 export_dynamic_flag_spec='${wl}--export-dynamic'
9293 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9294 export_dynamic_flag_spec='$wl--export-dynamic'
90489295 # ancient GNU ld didn't support --whole-archive et. al.
90499296 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9050 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9297 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
90519298 else
90529299 whole_archive_flag_spec=
90539300 fi
90549301 supports_anon_versioning=no
9055 case `$LD -v 2>&1` in
9302 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
90569303 *GNU\ gold*) supports_anon_versioning=yes ;;
90579304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
90589305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
90659312 case $host_os in
90669313 aix[3-9]*)
90679314 # On AIX/PPC, the GNU linker is very broken
9068 if test "$host_cpu" != ia64; then
9315 if test ia64 != "$host_cpu"; then
90699316 ld_shlibs=no
90709317 cat <<_LT_EOF 1>&2
90719318
90849331 case $host_cpu in
90859332 powerpc)
90869333 # see comment about AmigaOS4 .so support
9087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
90889335 archive_expsym_cmds=''
90899336 ;;
90909337 m68k)
91009347 allow_undefined_flag=unsupported
91019348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
91029349 # support --undefined. This deserves some investigation. FIXME
9103 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
91049351 else
91059352 ld_shlibs=no
91069353 fi
91109357 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
91119358 # as there is no search path for DLLs.
91129359 hardcode_libdir_flag_spec='-L$libdir'
9113 export_dynamic_flag_spec='${wl}--export-all-symbols'
9360 export_dynamic_flag_spec='$wl--export-all-symbols'
91149361 allow_undefined_flag=unsupported
91159362 always_export_symbols=no
91169363 enable_shared_with_static_runtimes=yes
91189365 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
91199366
91209367 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9122 # If the export-symbols file already is a .def file (1st line
9123 # is EXPORTS), use it as is; otherwise, prepend...
9124 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9125 cp $export_symbols $output_objdir/$soname.def;
9126 else
9127 echo EXPORTS > $output_objdir/$soname.def;
9128 cat $export_symbols >> $output_objdir/$soname.def;
9129 fi~
9130 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9369 # If the export-symbols file already is a .def file, use it as
9370 # is; otherwise, prepend EXPORTS...
9371 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9372 cp $export_symbols $output_objdir/$soname.def;
9373 else
9374 echo EXPORTS > $output_objdir/$soname.def;
9375 cat $export_symbols >> $output_objdir/$soname.def;
9376 fi~
9377 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
91319378 else
91329379 ld_shlibs=no
91339380 fi
91349381 ;;
91359382
91369383 haiku*)
9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
91389385 link_all_deplibs=yes
9386 ;;
9387
9388 os2*)
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_minus_L=yes
9391 allow_undefined_flag=unsupported
9392 shrext_cmds=.dll
9393 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9394 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9395 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9396 $ECHO EXPORTS >> $output_objdir/$libname.def~
9397 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9399 emximp -o $lib $output_objdir/$libname.def'
9400 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9401 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9402 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9403 $ECHO EXPORTS >> $output_objdir/$libname.def~
9404 prefix_cmds="$SED"~
9405 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9406 prefix_cmds="$prefix_cmds -e 1d";
9407 fi~
9408 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9409 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9410 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9411 emximp -o $lib $output_objdir/$libname.def'
9412 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9413 enable_shared_with_static_runtimes=yes
91399414 ;;
91409415
91419416 interix[3-9]*)
91429417 hardcode_direct=no
91439418 hardcode_shlibpath_var=no
9144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9145 export_dynamic_flag_spec='${wl}-E'
9419 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9420 export_dynamic_flag_spec='$wl-E'
91469421 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
91479422 # Instead, shared libraries are loaded at an image base (0x10000000 by
91489423 # default) and relocated if they conflict, which is a slow very memory
91499424 # consuming and fragmenting process. To avoid this, we pick a random,
91509425 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
91519426 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9152 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9153 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9428 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
91549429 ;;
91559430
91569431 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
91579432 tmp_diet=no
9158 if test "$host_os" = linux-dietlibc; then
9433 if test linux-dietlibc = "$host_os"; then
91599434 case $cc_basename in
91609435 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
91619436 esac
91629437 fi
91639438 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9164 && test "$tmp_diet" = no
9439 && test no = "$tmp_diet"
91659440 then
91669441 tmp_addflag=' $pic_flag'
91679442 tmp_sharedflag='-shared'
91689443 case $cc_basename,$host_cpu in
91699444 pgcc*) # Portland Group C compiler
9170 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9445 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
91719446 tmp_addflag=' $pic_flag'
91729447 ;;
91739448 pgf77* | pgf90* | pgf95* | pgfortran*)
91749449 # Portland Group f77 and f90 compilers
9175 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9450 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
91769451 tmp_addflag=' $pic_flag -Mnomain' ;;
91779452 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
91789453 tmp_addflag=' -i_dynamic' ;;
91839458 lf95*) # Lahey Fortran 8.1
91849459 whole_archive_flag_spec=
91859460 tmp_sharedflag='--shared' ;;
9461 nagfor*) # NAGFOR 5.3
9462 tmp_sharedflag='-Wl,-shared' ;;
91869463 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
91879464 tmp_sharedflag='-qmkshrobj'
91889465 tmp_addflag= ;;
91899466 nvcc*) # Cuda Compiler Driver 2.2
9190 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9467 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
91919468 compiler_needs_object=yes
91929469 ;;
91939470 esac
91949471 case `$CC -V 2>&1 | sed 5q` in
91959472 *Sun\ C*) # Sun C 5.9
9196 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9473 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
91979474 compiler_needs_object=yes
91989475 tmp_sharedflag='-G' ;;
91999476 *Sun\ F*) # Sun Fortran 8.3
92009477 tmp_sharedflag='-G' ;;
92019478 esac
9202 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9203
9204 if test "x$supports_anon_versioning" = xyes; then
9479 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9480
9481 if test yes = "$supports_anon_versioning"; then
92059482 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9207 echo "local: *; };" >> $output_objdir/$libname.ver~
9208 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9484 echo "local: *; };" >> $output_objdir/$libname.ver~
9485 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
92099486 fi
92109487
92119488 case $cc_basename in
9489 tcc*)
9490 export_dynamic_flag_spec='-rdynamic'
9491 ;;
92129492 xlf* | bgf* | bgxlf* | mpixlf*)
92139493 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
92149494 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9495 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
92169496 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9217 if test "x$supports_anon_versioning" = xyes; then
9497 if test yes = "$supports_anon_versioning"; then
92189498 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9220 echo "local: *; };" >> $output_objdir/$libname.ver~
9221 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9500 echo "local: *; };" >> $output_objdir/$libname.ver~
9501 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
92229502 fi
92239503 ;;
92249504 esac
92329512 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
92339513 wlarc=
92349514 else
9235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9515 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9516 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
92379517 fi
92389518 ;;
92399519
92519531
92529532 _LT_EOF
92539533 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9534 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9535 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
92569536 else
92579537 ld_shlibs=no
92589538 fi
92649544 ld_shlibs=no
92659545 cat <<_LT_EOF 1>&2
92669546
9267 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9547 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
92689548 *** reliably create shared libraries on SCO systems. Therefore, libtool
92699549 *** is disabling shared libraries support. We urge you to upgrade GNU
92709550 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
92799559 # DT_RUNPATH tag from executables and libraries. But doing so
92809560 # requires that you compile everything twice, which is a pain.
92819561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9562 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
92859565 else
92869566 ld_shlibs=no
92879567 fi
92989578
92999579 *)
93009580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9581 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9582 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
93039583 else
93049584 ld_shlibs=no
93059585 fi
93069586 ;;
93079587 esac
93089588
9309 if test "$ld_shlibs" = no; then
9589 if test no = "$ld_shlibs"; then
93109590 runpath_var=
93119591 hardcode_libdir_flag_spec=
93129592 export_dynamic_flag_spec=
93229602 # Note: this linker hardcodes the directories in LIBPATH if there
93239603 # are no directories specified by -L.
93249604 hardcode_minus_L=yes
9325 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9605 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
93269606 # Neither direct hardcoding nor static linking is supported with a
93279607 # broken collect2.
93289608 hardcode_direct=unsupported
93309610 ;;
93319611
93329612 aix[4-9]*)
9333 if test "$host_cpu" = ia64; then
9613 if test ia64 = "$host_cpu"; then
93349614 # On IA64, the linker does run time linking by default, so we don't
93359615 # have to do anything special.
93369616 aix_use_runtimelinking=no
93379617 exp_sym_flag='-Bexport'
9338 no_entry_flag=""
9618 no_entry_flag=
93399619 else
93409620 # If we're using GNU nm, then we don't want the "-C" option.
9341 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9342 # Also, AIX nm treats weak defined symbols like other global
9343 # defined symbols, whereas GNU nm marks them as "W".
9621 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9622 # Without the "-l" option, or with the "-B" option, AIX nm treats
9623 # weak defined symbols like other global defined symbols, whereas
9624 # GNU nm marks them as "W".
9625 # While the 'weak' keyword is ignored in the Export File, we need
9626 # it in the Import File for the 'aix-soname' feature, so we have
9627 # to replace the "-B" option with "-P" for AIX nm.
93449628 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9345 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9629 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
93469630 else
9347 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9631 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
93489632 fi
93499633 aix_use_runtimelinking=no
93509634
93519635 # Test if we are trying to use run time linking or normal
93529636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9353 # need to do runtime linking.
9637 # have runtime linking enabled, and use it for executables.
9638 # For shared libraries, we enable/disable runtime linking
9639 # depending on the kind of the shared library created -
9640 # when "with_aix_soname,aix_use_runtimelinking" is:
9641 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9642 # "aix,yes" lib.so shared, rtl:yes, for executables
9643 # lib.a static archive
9644 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9645 # lib.a(lib.so.V) shared, rtl:no, for executables
9646 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9647 # lib.a(lib.so.V) shared, rtl:no
9648 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9649 # lib.a static archive
93549650 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
93559651 for ld_flag in $LDFLAGS; do
9356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9652 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
93579653 aix_use_runtimelinking=yes
93589654 break
93599655 fi
93609656 done
9657 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9658 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9659 # so we don't have lib.a shared libs to link our executables.
9660 # We have to force runtime linking in this case.
9661 aix_use_runtimelinking=yes
9662 LDFLAGS="$LDFLAGS -Wl,-brtl"
9663 fi
93619664 ;;
93629665 esac
93639666
93769679 hardcode_direct_absolute=yes
93779680 hardcode_libdir_separator=':'
93789681 link_all_deplibs=yes
9379 file_list_spec='${wl}-f,'
9380
9381 if test "$GCC" = yes; then
9682 file_list_spec='$wl-f,'
9683 case $with_aix_soname,$aix_use_runtimelinking in
9684 aix,*) ;; # traditional, no import file
9685 svr4,* | *,yes) # use import file
9686 # The Import File defines what to hardcode.
9687 hardcode_direct=no
9688 hardcode_direct_absolute=no
9689 ;;
9690 esac
9691
9692 if test yes = "$GCC"; then
93829693 case $host_os in aix4.[012]|aix4.[012].*)
93839694 # We only want to do this on AIX 4.2 and lower, the check
93849695 # below for broken collect2 doesn't work under 4.3+
9385 collect2name=`${CC} -print-prog-name=collect2`
9696 collect2name=`$CC -print-prog-name=collect2`
93869697 if test -f "$collect2name" &&
93879698 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
93889699 then
94019712 ;;
94029713 esac
94039714 shared_flag='-shared'
9404 if test "$aix_use_runtimelinking" = yes; then
9405 shared_flag="$shared_flag "'${wl}-G'
9715 if test yes = "$aix_use_runtimelinking"; then
9716 shared_flag="$shared_flag "'$wl-G'
94069717 fi
9718 # Need to ensure runtime linking is disabled for the traditional
9719 # shared library, or the linker may eventually find shared libraries
9720 # /with/ Import File - we do not want to mix them.
9721 shared_flag_aix='-shared'
9722 shared_flag_svr4='-shared $wl-G'
94079723 else
94089724 # not using gcc
9409 if test "$host_cpu" = ia64; then
9725 if test ia64 = "$host_cpu"; then
94109726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
94119727 # chokes on -Wl,-G. The following line is correct:
94129728 shared_flag='-G'
94139729 else
9414 if test "$aix_use_runtimelinking" = yes; then
9415 shared_flag='${wl}-G'
9730 if test yes = "$aix_use_runtimelinking"; then
9731 shared_flag='$wl-G'
94169732 else
9417 shared_flag='${wl}-bM:SRE'
9733 shared_flag='$wl-bM:SRE'
94189734 fi
9735 shared_flag_aix='$wl-bM:SRE'
9736 shared_flag_svr4='$wl-G'
94199737 fi
94209738 fi
94219739
9422 export_dynamic_flag_spec='${wl}-bexpall'
9740 export_dynamic_flag_spec='$wl-bexpall'
94239741 # It seems that -bexpall does not export symbols beginning with
94249742 # underscore (_), so it is better to generate a list of symbols to export.
94259743 always_export_symbols=yes
9426 if test "$aix_use_runtimelinking" = yes; then
9744 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
94279745 # Warning - without using the other runtime loading flags (-brtl),
94289746 # -berok will link without error, but may produce a broken library.
94299747 allow_undefined_flag='-berok'
94309748 # Determine the default libpath from the value encoded in an
94319749 # empty executable.
9432 if test "${lt_cv_aix_libpath+set}" = set; then
9750 if test set = "${lt_cv_aix_libpath+set}"; then
94339751 aix_libpath=$lt_cv_aix_libpath
94349752 else
94359753 if ${lt_cv_aix_libpath_+:} false; then :
94649782 rm -f core conftest.err conftest.$ac_objext \
94659783 conftest$ac_exeext conftest.$ac_ext
94669784 if test -z "$lt_cv_aix_libpath_"; then
9467 lt_cv_aix_libpath_="/usr/lib:/lib"
9785 lt_cv_aix_libpath_=/usr/lib:/lib
94689786 fi
94699787
94709788 fi
94729790 aix_libpath=$lt_cv_aix_libpath_
94739791 fi
94749792
9475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9476 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9793 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9794 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
94779795 else
9478 if test "$host_cpu" = ia64; then
9479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9796 if test ia64 = "$host_cpu"; then
9797 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
94809798 allow_undefined_flag="-z nodefs"
9481 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9799 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
94829800 else
94839801 # Determine the default libpath from the value encoded in an
94849802 # empty executable.
9485 if test "${lt_cv_aix_libpath+set}" = set; then
9803 if test set = "${lt_cv_aix_libpath+set}"; then
94869804 aix_libpath=$lt_cv_aix_libpath
94879805 else
94889806 if ${lt_cv_aix_libpath_+:} false; then :
95179835 rm -f core conftest.err conftest.$ac_objext \
95189836 conftest$ac_exeext conftest.$ac_ext
95199837 if test -z "$lt_cv_aix_libpath_"; then
9520 lt_cv_aix_libpath_="/usr/lib:/lib"
9838 lt_cv_aix_libpath_=/usr/lib:/lib
95219839 fi
95229840
95239841 fi
95259843 aix_libpath=$lt_cv_aix_libpath_
95269844 fi
95279845
9528 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9846 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
95299847 # Warning - without using the other run time loading flags,
95309848 # -berok will link without error, but may produce a broken library.
9531 no_undefined_flag=' ${wl}-bernotok'
9532 allow_undefined_flag=' ${wl}-berok'
9533 if test "$with_gnu_ld" = yes; then
9849 no_undefined_flag=' $wl-bernotok'
9850 allow_undefined_flag=' $wl-berok'
9851 if test yes = "$with_gnu_ld"; then
95349852 # We only use this code for GNU lds that support --whole-archive.
9535 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9853 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
95369854 else
95379855 # Exported symbols can be pulled into shared objects from archives
95389856 whole_archive_flag_spec='$convenience'
95399857 fi
95409858 archive_cmds_need_lc=yes
9541 # This is similar to how AIX traditionally builds its shared libraries.
9542 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9859 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9860 # -brtl affects multiple linker settings, -berok does not and is overridden later
9861 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9862 if test svr4 != "$with_aix_soname"; then
9863 # This is similar to how AIX traditionally builds its shared libraries.
9864 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9865 fi
9866 if test aix != "$with_aix_soname"; then
9867 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9868 else
9869 # used by -dlpreopen to get the symbols
9870 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9871 fi
9872 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
95439873 fi
95449874 fi
95459875 ;;
95489878 case $host_cpu in
95499879 powerpc)
95509880 # see comment about AmigaOS4 .so support
9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
95529882 archive_expsym_cmds=''
95539883 ;;
95549884 m68k)
95789908 # Tell ltmain to make .lib files, not .a files.
95799909 libext=lib
95809910 # Tell ltmain to make .dll files, not .so files.
9581 shrext_cmds=".dll"
9911 shrext_cmds=.dll
95829912 # FIXME: Setting linknames here is a bad hack.
9583 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9584 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9585 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9586 else
9587 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9588 fi~
9589 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9590 linknames='
9913 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9914 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9915 cp "$export_symbols" "$output_objdir/$soname.def";
9916 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9917 else
9918 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9919 fi~
9920 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9921 linknames='
95919922 # The linker will not automatically build a static lib if we build a DLL.
95929923 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
95939924 enable_shared_with_static_runtimes=yes
95969927 # Don't use ranlib
95979928 old_postinstall_cmds='chmod 644 $oldlib'
95989929 postlink_cmds='lt_outputfile="@OUTPUT@"~
9599 lt_tool_outputfile="@TOOL_OUTPUT@"~
9600 case $lt_outputfile in
9601 *.exe|*.EXE) ;;
9602 *)
9603 lt_outputfile="$lt_outputfile.exe"
9604 lt_tool_outputfile="$lt_tool_outputfile.exe"
9605 ;;
9606 esac~
9607 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9608 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9609 $RM "$lt_outputfile.manifest";
9610 fi'
9930 lt_tool_outputfile="@TOOL_OUTPUT@"~
9931 case $lt_outputfile in
9932 *.exe|*.EXE) ;;
9933 *)
9934 lt_outputfile=$lt_outputfile.exe
9935 lt_tool_outputfile=$lt_tool_outputfile.exe
9936 ;;
9937 esac~
9938 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9939 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9940 $RM "$lt_outputfile.manifest";
9941 fi'
96119942 ;;
96129943 *)
96139944 # Assume MSVC wrapper
96169947 # Tell ltmain to make .lib files, not .a files.
96179948 libext=lib
96189949 # Tell ltmain to make .dll files, not .so files.
9619 shrext_cmds=".dll"
9950 shrext_cmds=.dll
96209951 # FIXME: Setting linknames here is a bad hack.
96219952 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
96229953 # The linker will automatically build a .lib file if we build a DLL.
96359966 hardcode_direct=no
96369967 hardcode_automatic=yes
96379968 hardcode_shlibpath_var=unsupported
9638 if test "$lt_cv_ld_force_load" = "yes"; then
9639 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9969 if test yes = "$lt_cv_ld_force_load"; then
9970 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
96409971
96419972 else
96429973 whole_archive_flag_spec=''
96439974 fi
96449975 link_all_deplibs=yes
9645 allow_undefined_flag="$_lt_dar_allow_undefined"
9976 allow_undefined_flag=$_lt_dar_allow_undefined
96469977 case $cc_basename in
9647 ifort*) _lt_dar_can_shared=yes ;;
9978 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
96489979 *) _lt_dar_can_shared=$GCC ;;
96499980 esac
9650 if test "$_lt_dar_can_shared" = "yes"; then
9981 if test yes = "$_lt_dar_can_shared"; then
96519982 output_verbose_link_cmd=func_echo_all
9652 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9653 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9654 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9655 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9983 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9984 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9985 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9986 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
96569987
96579988 else
96589989 ld_shlibs=no
969410025 ;;
969510026
969610027 hpux9*)
9697 if test "$GCC" = yes; then
9698 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10028 if test yes = "$GCC"; then
10029 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
969910030 else
9700 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10031 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
970110032 fi
9702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10033 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
970310034 hardcode_libdir_separator=:
970410035 hardcode_direct=yes
970510036
970610037 # hardcode_minus_L: Not really in the search PATH,
970710038 # but as the default location of the library.
970810039 hardcode_minus_L=yes
9709 export_dynamic_flag_spec='${wl}-E'
10040 export_dynamic_flag_spec='$wl-E'
971010041 ;;
971110042
971210043 hpux10*)
9713 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9714 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10044 if test yes,no = "$GCC,$with_gnu_ld"; then
10045 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
971510046 else
971610047 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
971710048 fi
9718 if test "$with_gnu_ld" = no; then
9719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10049 if test no = "$with_gnu_ld"; then
10050 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
972010051 hardcode_libdir_separator=:
972110052 hardcode_direct=yes
972210053 hardcode_direct_absolute=yes
9723 export_dynamic_flag_spec='${wl}-E'
10054 export_dynamic_flag_spec='$wl-E'
972410055 # hardcode_minus_L: Not really in the search PATH,
972510056 # but as the default location of the library.
972610057 hardcode_minus_L=yes
972810059 ;;
972910060
973010061 hpux11*)
9731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10062 if test yes,no = "$GCC,$with_gnu_ld"; then
973210063 case $host_cpu in
973310064 hppa*64*)
9734 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
973510066 ;;
973610067 ia64*)
9737 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
973810069 ;;
973910070 *)
9740 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
974110072 ;;
974210073 esac
974310074 else
974410075 case $host_cpu in
974510076 hppa*64*)
9746 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10077 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
974710078 ;;
974810079 ia64*)
9749 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
975010081 ;;
975110082 *)
975210083
975810089 $as_echo_n "(cached) " >&6
975910090 else
976010091 lt_cv_prog_compiler__b=no
9761 save_LDFLAGS="$LDFLAGS"
10092 save_LDFLAGS=$LDFLAGS
976210093 LDFLAGS="$LDFLAGS -b"
976310094 echo "$lt_simple_link_test_code" > conftest.$ac_ext
976410095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
977710108 fi
977810109 fi
977910110 $RM -r conftest*
9780 LDFLAGS="$save_LDFLAGS"
10111 LDFLAGS=$save_LDFLAGS
978110112
978210113 fi
978310114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
978410115 $as_echo "$lt_cv_prog_compiler__b" >&6; }
978510116
9786 if test x"$lt_cv_prog_compiler__b" = xyes; then
9787 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10117 if test yes = "$lt_cv_prog_compiler__b"; then
10118 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
978810119 else
978910120 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
979010121 fi
979210123 ;;
979310124 esac
979410125 fi
9795 if test "$with_gnu_ld" = no; then
9796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10126 if test no = "$with_gnu_ld"; then
10127 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
979710128 hardcode_libdir_separator=:
979810129
979910130 case $host_cpu in
980410135 *)
980510136 hardcode_direct=yes
980610137 hardcode_direct_absolute=yes
9807 export_dynamic_flag_spec='${wl}-E'
10138 export_dynamic_flag_spec='$wl-E'
980810139
980910140 # hardcode_minus_L: Not really in the search PATH,
981010141 # but as the default location of the library.
981510146 ;;
981610147
981710148 irix5* | irix6* | nonstopux*)
9818 if test "$GCC" = yes; then
9819 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10149 if test yes = "$GCC"; then
10150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
982010151 # Try to use the -exported_symbol ld option, if it does not
982110152 # work, assume that -exports_file does not work either and
982210153 # implicitly export all symbols.
982610157 if ${lt_cv_irix_exported_symbol+:} false; then :
982710158 $as_echo_n "(cached) " >&6
982810159 else
9829 save_LDFLAGS="$LDFLAGS"
9830 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10160 save_LDFLAGS=$LDFLAGS
10161 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
983110162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
983210163 /* end confdefs.h. */
983310164 int foo (void) { return 0; }
983910170 fi
984010171 rm -f core conftest.err conftest.$ac_objext \
984110172 conftest$ac_exeext conftest.$ac_ext
9842 LDFLAGS="$save_LDFLAGS"
10173 LDFLAGS=$save_LDFLAGS
984310174 fi
984410175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
984510176 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9846 if test "$lt_cv_irix_exported_symbol" = yes; then
9847 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10177 if test yes = "$lt_cv_irix_exported_symbol"; then
10178 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
984810179 fi
984910180 else
9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
985210183 fi
985310184 archive_cmds_need_lc='no'
9854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
985510186 hardcode_libdir_separator=:
985610187 inherit_rpath=yes
985710188 link_all_deplibs=yes
10189 ;;
10190
10191 linux*)
10192 case $cc_basename in
10193 tcc*)
10194 # Fabrice Bellard et al's Tiny C Compiler
10195 ld_shlibs=yes
10196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10197 ;;
10198 esac
985810199 ;;
985910200
986010201 netbsd*)
987110212 newsos6)
987210213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
987310214 hardcode_direct=yes
9874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10215 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
987510216 hardcode_libdir_separator=:
987610217 hardcode_shlibpath_var=no
987710218 ;;
987910220 *nto* | *qnx*)
988010221 ;;
988110222
9882 openbsd*)
10223 openbsd* | bitrig*)
988310224 if test -f /usr/libexec/ld.so; then
988410225 hardcode_direct=yes
988510226 hardcode_shlibpath_var=no
988610227 hardcode_direct_absolute=yes
9887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
988810229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9889 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9891 export_dynamic_flag_spec='${wl}-E'
10230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10231 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10232 export_dynamic_flag_spec='$wl-E'
989210233 else
9893 case $host_os in
9894 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_libdir_flag_spec='-R$libdir'
9897 ;;
9898 *)
9899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9900 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9901 ;;
9902 esac
10234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10235 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
990310236 fi
990410237 else
990510238 ld_shlibs=no
991010243 hardcode_libdir_flag_spec='-L$libdir'
991110244 hardcode_minus_L=yes
991210245 allow_undefined_flag=unsupported
9913 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9914 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10246 shrext_cmds=.dll
10247 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10248 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10249 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10250 $ECHO EXPORTS >> $output_objdir/$libname.def~
10251 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10252 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10253 emximp -o $lib $output_objdir/$libname.def'
10254 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10255 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10256 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10257 $ECHO EXPORTS >> $output_objdir/$libname.def~
10258 prefix_cmds="$SED"~
10259 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10260 prefix_cmds="$prefix_cmds -e 1d";
10261 fi~
10262 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10263 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10264 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10265 emximp -o $lib $output_objdir/$libname.def'
10266 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10267 enable_shared_with_static_runtimes=yes
991510268 ;;
991610269
991710270 osf3*)
9918 if test "$GCC" = yes; then
9919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9920 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10271 if test yes = "$GCC"; then
10272 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10273 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
992110274 else
992210275 allow_undefined_flag=' -expect_unresolved \*'
9923 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10276 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
992410277 fi
992510278 archive_cmds_need_lc='no'
9926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10279 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
992710280 hardcode_libdir_separator=:
992810281 ;;
992910282
993010283 osf4* | osf5*) # as osf3* with the addition of -msym flag
9931 if test "$GCC" = yes; then
9932 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9933 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10284 if test yes = "$GCC"; then
10285 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10286 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10287 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
993510288 else
993610289 allow_undefined_flag=' -expect_unresolved \*'
9937 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10290 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
993810291 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9939 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10292 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
994010293
994110294 # Both c and cxx compiler support -rpath directly
994210295 hardcode_libdir_flag_spec='-rpath $libdir'
994710300
994810301 solaris*)
994910302 no_undefined_flag=' -z defs'
9950 if test "$GCC" = yes; then
9951 wlarc='${wl}'
9952 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 if test yes = "$GCC"; then
10304 wlarc='$wl'
10305 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
995310306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9954 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10307 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
995510308 else
995610309 case `$CC -V 2>&1` in
995710310 *"Compilers 5.0"*)
995810311 wlarc=''
9959 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
996010313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9961 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10314 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
996210315 ;;
996310316 *)
9964 wlarc='${wl}'
9965 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10317 wlarc='$wl'
10318 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
996610319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9967 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10320 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
996810321 ;;
996910322 esac
997010323 fi
997410327 solaris2.[0-5] | solaris2.[0-5].*) ;;
997510328 *)
997610329 # The compiler driver will combine and reorder linker options,
9977 # but understands `-z linker_flag'. GCC discards it without `$wl',
10330 # but understands '-z linker_flag'. GCC discards it without '$wl',
997810331 # but is careful enough not to reorder.
997910332 # Supported since Solaris 2.6 (maybe 2.5.1?)
9980 if test "$GCC" = yes; then
9981 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10333 if test yes = "$GCC"; then
10334 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
998210335 else
998310336 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
998410337 fi
998810341 ;;
998910342
999010343 sunos4*)
9991 if test "x$host_vendor" = xsequent; then
10344 if test sequent = "$host_vendor"; then
999210345 # Use $CC to link under sequent, because it throws in some extra .o
999310346 # files that make .init and .fini sections work.
9994 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10347 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
999510348 else
999610349 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
999710350 fi
1004010393 ;;
1004110394
1004210395 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10043 no_undefined_flag='${wl}-z,text'
10396 no_undefined_flag='$wl-z,text'
1004410397 archive_cmds_need_lc=no
1004510398 hardcode_shlibpath_var=no
1004610399 runpath_var='LD_RUN_PATH'
1004710400
10048 if test "$GCC" = yes; then
10049 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10401 if test yes = "$GCC"; then
10402 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1005110404 else
10052 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10405 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1005410407 fi
1005510408 ;;
1005610409
1005710410 sysv5* | sco3.2v5* | sco5v6*)
10058 # Note: We can NOT use -z defs as we might desire, because we do not
10411 # Note: We CANNOT use -z defs as we might desire, because we do not
1005910412 # link with -lc, and that would cause any symbols used from libc to
1006010413 # always be unresolved, which means just about no library would
1006110414 # ever link correctly. If we're not using GNU ld we use -z text
1006210415 # though, which does catch some bad symbols but isn't as heavy-handed
1006310416 # as -z defs.
10064 no_undefined_flag='${wl}-z,text'
10065 allow_undefined_flag='${wl}-z,nodefs'
10417 no_undefined_flag='$wl-z,text'
10418 allow_undefined_flag='$wl-z,nodefs'
1006610419 archive_cmds_need_lc=no
1006710420 hardcode_shlibpath_var=no
10068 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10421 hardcode_libdir_flag_spec='$wl-R,$libdir'
1006910422 hardcode_libdir_separator=':'
1007010423 link_all_deplibs=yes
10071 export_dynamic_flag_spec='${wl}-Bexport'
10424 export_dynamic_flag_spec='$wl-Bexport'
1007210425 runpath_var='LD_RUN_PATH'
1007310426
10074 if test "$GCC" = yes; then
10075 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 if test yes = "$GCC"; then
10428 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1007710430 else
10078 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1008010433 fi
1008110434 ;;
1008210435
1009110444 ;;
1009210445 esac
1009310446
10094 if test x$host_vendor = xsni; then
10447 if test sni = "$host_vendor"; then
1009510448 case $host in
1009610449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10097 export_dynamic_flag_spec='${wl}-Blargedynsym'
10450 export_dynamic_flag_spec='$wl-Blargedynsym'
1009810451 ;;
1009910452 esac
1010010453 fi
1010210455
1010310456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
1010410457 $as_echo "$ld_shlibs" >&6; }
10105 test "$ld_shlibs" = no && can_build_shared=no
10458 test no = "$ld_shlibs" && can_build_shared=no
1010610459
1010710460 with_gnu_ld=$with_gnu_ld
1010810461
1012810481 # Assume -lc should be added
1012910482 archive_cmds_need_lc=yes
1013010483
10131 if test "$enable_shared" = yes && test "$GCC" = yes; then
10484 if test yes,yes = "$GCC,$enable_shared"; then
1013210485 case $archive_cmds in
1013310486 *'~'*)
1013410487 # FIXME: we may have to deal with multi-command sequences.
1034310696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1034410697 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1034510698
10346 if test "$GCC" = yes; then
10699 if test yes = "$GCC"; then
1034710700 case $host_os in
10348 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10349 *) lt_awk_arg="/^libraries:/" ;;
10701 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10702 *) lt_awk_arg='/^libraries:/' ;;
1035010703 esac
1035110704 case $host_os in
10352 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10353 *) lt_sed_strip_eq="s,=/,/,g" ;;
10705 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10706 *) lt_sed_strip_eq='s|=/|/|g' ;;
1035410707 esac
1035510708 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
1035610709 case $lt_search_path_spec in
1036610719 ;;
1036710720 esac
1036810721 # Ok, now we have the path, separated by spaces, we can step through it
10369 # and add multilib dir if necessary.
10722 # and add multilib dir if necessary...
1037010723 lt_tmp_lt_search_path_spec=
10371 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10724 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10725 # ...but if some path component already ends with the multilib dir we assume
10726 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10727 case "$lt_multi_os_dir; $lt_search_path_spec " in
10728 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10729 lt_multi_os_dir=
10730 ;;
10731 esac
1037210732 for lt_sys_path in $lt_search_path_spec; do
10373 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10374 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10375 else
10733 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10734 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10735 elif test -n "$lt_multi_os_dir"; then
1037610736 test -d "$lt_sys_path" && \
1037710737 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1037810738 fi
1037910739 done
1038010740 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10381 BEGIN {RS=" "; FS="/|\n";} {
10382 lt_foo="";
10383 lt_count=0;
10741 BEGIN {RS = " "; FS = "/|\n";} {
10742 lt_foo = "";
10743 lt_count = 0;
1038410744 for (lt_i = NF; lt_i > 0; lt_i--) {
1038510745 if ($lt_i != "" && $lt_i != ".") {
1038610746 if ($lt_i == "..") {
1038710747 lt_count++;
1038810748 } else {
1038910749 if (lt_count == 0) {
10390 lt_foo="/" $lt_i lt_foo;
10750 lt_foo = "/" $lt_i lt_foo;
1039110751 } else {
1039210752 lt_count--;
1039310753 }
1040110761 # for these hosts.
1040210762 case $host_os in
1040310763 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10404 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10764 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1040510765 esac
1040610766 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1040710767 else
1041010770 library_names_spec=
1041110771 libname_spec='lib$name'
1041210772 soname_spec=
10413 shrext_cmds=".so"
10773 shrext_cmds=.so
1041410774 postinstall_cmds=
1041510775 postuninstall_cmds=
1041610776 finish_cmds=
1042710787 # flags to be left without arguments
1042810788 need_version=unknown
1042910789
10790
10791
1043010792 case $host_os in
1043110793 aix3*)
1043210794 version_type=linux # correct to gnu/linux during the next big refactor
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10795 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1043410796 shlibpath_var=LIBPATH
1043510797
1043610798 # AIX 3 has no versioning support, so we append a major version to the name.
10437 soname_spec='${libname}${release}${shared_ext}$major'
10799 soname_spec='$libname$release$shared_ext$major'
1043810800 ;;
1043910801
1044010802 aix[4-9]*)
1044210804 need_lib_prefix=no
1044310805 need_version=no
1044410806 hardcode_into_libs=yes
10445 if test "$host_cpu" = ia64; then
10807 if test ia64 = "$host_cpu"; then
1044610808 # AIX 5 supports IA64
10447 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10809 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1044810810 shlibpath_var=LD_LIBRARY_PATH
1044910811 else
1045010812 # With GCC up to 2.95.x, collect2 would create an import file
1045110813 # for dependence libraries. The import file would start with
10452 # the line `#! .'. This would cause the generated library to
10453 # depend on `.', always an invalid library. This was fixed in
10814 # the line '#! .'. This would cause the generated library to
10815 # depend on '.', always an invalid library. This was fixed in
1045410816 # development snapshots of GCC prior to 3.0.
1045510817 case $host_os in
1045610818 aix4 | aix4.[01] | aix4.[01].*)
1045710819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1045810820 echo ' yes '
10459 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10821 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1046010822 :
1046110823 else
1046210824 can_build_shared=no
1046310825 fi
1046410826 ;;
1046510827 esac
10466 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10828 # Using Import Files as archive members, it is possible to support
10829 # filename-based versioning of shared library archives on AIX. While
10830 # this would work for both with and without runtime linking, it will
10831 # prevent static linking of such archives. So we do filename-based
10832 # shared library versioning with .so extension only, which is used
10833 # when both runtime linking and shared linking is enabled.
10834 # Unfortunately, runtime linking may impact performance, so we do
10835 # not want this to be the default eventually. Also, we use the
10836 # versioned .so libs for executables only if there is the -brtl
10837 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10838 # To allow for filename-based versioning support, we need to create
10839 # libNAME.so.V as an archive file, containing:
10840 # *) an Import File, referring to the versioned filename of the
10841 # archive as well as the shared archive member, telling the
10842 # bitwidth (32 or 64) of that shared object, and providing the
10843 # list of exported symbols of that shared object, eventually
10844 # decorated with the 'weak' keyword
10845 # *) the shared object with the F_LOADONLY flag set, to really avoid
10846 # it being seen by the linker.
10847 # At run time we better use the real file rather than another symlink,
10848 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10849
10850 case $with_aix_soname,$aix_use_runtimelinking in
10851 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1046710852 # soname into executable. Probably we can add versioning support to
1046810853 # collect2, so additional links can be useful in future.
10469 if test "$aix_use_runtimelinking" = yes; then
10854 aix,yes) # traditional libtool
10855 dynamic_linker='AIX unversionable lib.so'
1047010856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1047110857 # instead of lib<name>.a to let people know that these are not
1047210858 # typical AIX shared libraries.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 else
10859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10860 ;;
10861 aix,no) # traditional AIX only
10862 dynamic_linker='AIX lib.a(lib.so.V)'
1047510863 # We preserve .a as extension for shared libraries through AIX4.2
1047610864 # and later when we are not doing run time linking.
10477 library_names_spec='${libname}${release}.a $libname.a'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 fi
10865 library_names_spec='$libname$release.a $libname.a'
10866 soname_spec='$libname$release$shared_ext$major'
10867 ;;
10868 svr4,*) # full svr4 only
10869 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10870 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10871 # We do not specify a path in Import Files, so LIBPATH fires.
10872 shlibpath_overrides_runpath=yes
10873 ;;
10874 *,yes) # both, prefer svr4
10875 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10876 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10877 # unpreferred sharedlib libNAME.a needs extra handling
10878 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10879 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10880 # We do not specify a path in Import Files, so LIBPATH fires.
10881 shlibpath_overrides_runpath=yes
10882 ;;
10883 *,no) # both, prefer aix
10884 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10885 library_names_spec='$libname$release.a $libname.a'
10886 soname_spec='$libname$release$shared_ext$major'
10887 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10888 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10889 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10890 ;;
10891 esac
1048010892 shlibpath_var=LIBPATH
1048110893 fi
1048210894 ;;
1048610898 powerpc)
1048710899 # Since July 2007 AmigaOS4 officially supports .so libraries.
1048810900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1049010902 ;;
1049110903 m68k)
1049210904 library_names_spec='$libname.ixlibrary $libname.a'
1049310905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10494 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10906 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1049510907 ;;
1049610908 esac
1049710909 ;;
1049810910
1049910911 beos*)
10500 library_names_spec='${libname}${shared_ext}'
10912 library_names_spec='$libname$shared_ext'
1050110913 dynamic_linker="$host_os ld.so"
1050210914 shlibpath_var=LIBRARY_PATH
1050310915 ;;
1050510917 bsdi[45]*)
1050610918 version_type=linux # correct to gnu/linux during the next big refactor
1050710919 need_version=no
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10921 soname_spec='$libname$release$shared_ext$major'
1051010922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1051110923 shlibpath_var=LD_LIBRARY_PATH
1051210924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1051810930
1051910931 cygwin* | mingw* | pw32* | cegcc*)
1052010932 version_type=windows
10521 shrext_cmds=".dll"
10933 shrext_cmds=.dll
1052210934 need_version=no
1052310935 need_lib_prefix=no
1052410936
1052710939 # gcc
1052810940 library_names_spec='$libname.dll.a'
1052910941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10530 postinstall_cmds='base_file=`basename \${file}`~
10531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10942 postinstall_cmds='base_file=`basename \$file`~
10943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1053210944 dldir=$destdir/`dirname \$dlpath`~
1053310945 test -d \$dldir || mkdir -p \$dldir~
1053410946 $install_prog $dir/$dlname \$dldir/$dlname~
1054410956 case $host_os in
1054510957 cygwin*)
1054610958 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10547 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10959 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1054810960
1054910961 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1055010962 ;;
1055110963 mingw* | cegcc*)
1055210964 # MinGW DLLs use traditional 'lib' prefix
10553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10965 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1055410966 ;;
1055510967 pw32*)
1055610968 # pw32 DLLs use 'pw' prefix rather than 'lib'
10557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10969 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1055810970 ;;
1055910971 esac
1056010972 dynamic_linker='Win32 ld.exe'
1056310975 *,cl*)
1056410976 # Native MSVC
1056510977 libname_spec='$name'
10566 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10567 library_names_spec='${libname}.dll.lib'
10978 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10979 library_names_spec='$libname.dll.lib'
1056810980
1056910981 case $build_os in
1057010982 mingw*)
1059111003 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1059211004 ;;
1059311005 *)
10594 sys_lib_search_path_spec="$LIB"
11006 sys_lib_search_path_spec=$LIB
1059511007 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1059611008 # It is most probably a Windows format PATH.
1059711009 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1060411016 esac
1060511017
1060611018 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10607 postinstall_cmds='base_file=`basename \${file}`~
10608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11019 postinstall_cmds='base_file=`basename \$file`~
11020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1060911021 dldir=$destdir/`dirname \$dlpath`~
1061011022 test -d \$dldir || mkdir -p \$dldir~
1061111023 $install_prog $dir/$dlname \$dldir/$dlname'
1061811030
1061911031 *)
1062011032 # Assume MSVC wrapper
10621 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11033 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1062211034 dynamic_linker='Win32 ld.exe'
1062311035 ;;
1062411036 esac
1063111043 version_type=darwin
1063211044 need_lib_prefix=no
1063311045 need_version=no
10634 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10635 soname_spec='${libname}${release}${major}$shared_ext'
11046 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11047 soname_spec='$libname$release$major$shared_ext'
1063611048 shlibpath_overrides_runpath=yes
1063711049 shlibpath_var=DYLD_LIBRARY_PATH
1063811050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1064511057 version_type=linux # correct to gnu/linux during the next big refactor
1064611058 need_lib_prefix=no
1064711059 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10649 soname_spec='${libname}${release}${shared_ext}$major'
11060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061 soname_spec='$libname$release$shared_ext$major'
1065011062 shlibpath_var=LD_LIBRARY_PATH
1065111063 ;;
1065211064
1066411076 version_type=freebsd-$objformat
1066511077 case $version_type in
1066611078 freebsd-elf*)
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11080 soname_spec='$libname$release$shared_ext$major'
1066811081 need_version=no
1066911082 need_lib_prefix=no
1067011083 ;;
1067111084 freebsd-*)
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1067311086 need_version=yes
1067411087 ;;
1067511088 esac
1069411107 esac
1069511108 ;;
1069611109
10697 gnu*)
10698 version_type=linux # correct to gnu/linux during the next big refactor
10699 need_lib_prefix=no
10700 need_version=no
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 shlibpath_overrides_runpath=no
10705 hardcode_into_libs=yes
10706 ;;
10707
1070811110 haiku*)
1070911111 version_type=linux # correct to gnu/linux during the next big refactor
1071011112 need_lib_prefix=no
1071111113 need_version=no
1071211114 dynamic_linker="$host_os runtime_loader"
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
11115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11116 soname_spec='$libname$release$shared_ext$major'
1071511117 shlibpath_var=LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes
11118 shlibpath_overrides_runpath=no
1071711119 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1071811120 hardcode_into_libs=yes
1071911121 ;;
1073111133 dynamic_linker="$host_os dld.so"
1073211134 shlibpath_var=LD_LIBRARY_PATH
1073311135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735 soname_spec='${libname}${release}${shared_ext}$major'
10736 if test "X$HPUX_IA64_MODE" = X32; then
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec='$libname$release$shared_ext$major'
11138 if test 32 = "$HPUX_IA64_MODE"; then
1073711139 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11140 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1073811141 else
1073911142 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11143 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1074011144 fi
10741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1074211145 ;;
1074311146 hppa*64*)
1074411147 shrext_cmds='.sl'
1074611149 dynamic_linker="$host_os dld.sl"
1074711150 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1074811151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 soname_spec='$libname$release$shared_ext$major'
1075111154 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1075211155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1075311156 ;;
1075611159 dynamic_linker="$host_os dld.sl"
1075711160 shlibpath_var=SHLIB_PATH
1075811161 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11163 soname_spec='$libname$release$shared_ext$major'
1076111164 ;;
1076211165 esac
1076311166 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1077011173 version_type=linux # correct to gnu/linux during the next big refactor
1077111174 need_lib_prefix=no
1077211175 need_version=no
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11177 soname_spec='$libname$release$shared_ext$major'
1077511178 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1077611179 shlibpath_var=LD_LIBRARY_PATH
1077711180 shlibpath_overrides_runpath=no
1078211185 case $host_os in
1078311186 nonstopux*) version_type=nonstopux ;;
1078411187 *)
10785 if test "$lt_cv_prog_gnu_ld" = yes; then
11188 if test yes = "$lt_cv_prog_gnu_ld"; then
1078611189 version_type=linux # correct to gnu/linux during the next big refactor
1078711190 else
1078811191 version_type=irix
1079011193 esac
1079111194 need_lib_prefix=no
1079211195 need_version=no
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11196 soname_spec='$libname$release$shared_ext$major'
11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1079511198 case $host_os in
1079611199 irix5* | nonstopux*)
1079711200 libsuff= shlibsuff=
1081011213 esac
1081111214 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1081211215 shlibpath_overrides_runpath=no
10813 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10814 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11216 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11217 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1081511218 hardcode_into_libs=yes
1081611219 ;;
1081711220
1082011223 dynamic_linker=no
1082111224 ;;
1082211225
11226 linux*android*)
11227 version_type=none # Android doesn't support versioned libraries.
11228 need_lib_prefix=no
11229 need_version=no
11230 library_names_spec='$libname$release$shared_ext'
11231 soname_spec='$libname$release$shared_ext'
11232 finish_cmds=
11233 shlibpath_var=LD_LIBRARY_PATH
11234 shlibpath_overrides_runpath=yes
11235
11236 # This implies no fast_install, which is unacceptable.
11237 # Some rework will be needed to allow for fast_install
11238 # before this can be enabled.
11239 hardcode_into_libs=yes
11240
11241 dynamic_linker='Android linker'
11242 # Don't embed -rpath directories since the linker doesn't support them.
11243 hardcode_libdir_flag_spec='-L$libdir'
11244 ;;
11245
1082311246 # This must be glibc/ELF.
10824 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11247 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1082511248 version_type=linux # correct to gnu/linux during the next big refactor
1082611249 need_lib_prefix=no
1082711250 need_version=no
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 soname_spec='${libname}${release}${shared_ext}$major'
11251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252 soname_spec='$libname$release$shared_ext$major'
1083011253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1083111254 shlibpath_var=LD_LIBRARY_PATH
1083211255 shlibpath_overrides_runpath=no
1087311296 # Add ABI-specific directories to the system library path.
1087411297 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
1087511298
10876 # Append ld.so.conf contents to the search path
11299 # Ideally, we could use ldconfig to report *all* directores which are
11300 # searched for libraries, however this is still not possible. Aside from not
11301 # being certain /sbin/ldconfig is available, command
11302 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11303 # even though it is searched at run-time. Try to do the best guess by
11304 # appending ld.so.conf contents (and includes) to the search path.
1087711305 if test -f /etc/ld.so.conf; then
1087811306 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1087911307 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10880
1088111308 fi
1088211309
1088311310 # We used to test for /lib/ld.so.1 and disable shared libraries on
1089411321 need_lib_prefix=no
1089511322 need_version=no
1089611323 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1089811325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1089911326 dynamic_linker='NetBSD (a.out) ld.so'
1090011327 else
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11329 soname_spec='$libname$release$shared_ext$major'
1090311330 dynamic_linker='NetBSD ld.elf_so'
1090411331 fi
1090511332 shlibpath_var=LD_LIBRARY_PATH
1090911336
1091011337 newsos6)
1091111338 version_type=linux # correct to gnu/linux during the next big refactor
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1091311340 shlibpath_var=LD_LIBRARY_PATH
1091411341 shlibpath_overrides_runpath=yes
1091511342 ;;
1091811345 version_type=qnx
1091911346 need_lib_prefix=no
1092011347 need_version=no
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
11348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11349 soname_spec='$libname$release$shared_ext$major'
1092311350 shlibpath_var=LD_LIBRARY_PATH
1092411351 shlibpath_overrides_runpath=no
1092511352 hardcode_into_libs=yes
1092611353 dynamic_linker='ldqnx.so'
1092711354 ;;
1092811355
10929 openbsd*)
11356 openbsd* | bitrig*)
1093011357 version_type=sunos
10931 sys_lib_dlsearch_path_spec="/usr/lib"
11358 sys_lib_dlsearch_path_spec=/usr/lib
1093211359 need_lib_prefix=no
10933 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10934 case $host_os in
10935 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10936 *) need_version=no ;;
10937 esac
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11360 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11361 need_version=no
11362 else
11363 need_version=yes
11364 fi
11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1093911366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1094011367 shlibpath_var=LD_LIBRARY_PATH
10941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10942 case $host_os in
10943 openbsd2.[89] | openbsd2.[89].*)
10944 shlibpath_overrides_runpath=no
10945 ;;
10946 *)
10947 shlibpath_overrides_runpath=yes
10948 ;;
10949 esac
10950 else
10951 shlibpath_overrides_runpath=yes
10952 fi
11368 shlibpath_overrides_runpath=yes
1095311369 ;;
1095411370
1095511371 os2*)
1095611372 libname_spec='$name'
10957 shrext_cmds=".dll"
11373 version_type=windows
11374 shrext_cmds=.dll
11375 need_version=no
1095811376 need_lib_prefix=no
10959 library_names_spec='$libname${shared_ext} $libname.a'
11377 # OS/2 can only load a DLL with a base name of 8 characters or less.
11378 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11379 v=$($ECHO $release$versuffix | tr -d .-);
11380 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11381 $ECHO $n$v`$shared_ext'
11382 library_names_spec='${libname}_dll.$libext'
1096011383 dynamic_linker='OS/2 ld.exe'
10961 shlibpath_var=LIBPATH
11384 shlibpath_var=BEGINLIBPATH
11385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11387 postinstall_cmds='base_file=`basename \$file`~
11388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11389 dldir=$destdir/`dirname \$dlpath`~
11390 test -d \$dldir || mkdir -p \$dldir~
11391 $install_prog $dir/$dlname \$dldir/$dlname~
11392 chmod a+x \$dldir/$dlname~
11393 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11394 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11395 fi'
11396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11397 dlpath=$dir/\$dldll~
11398 $RM \$dlpath'
1096211399 ;;
1096311400
1096411401 osf3* | osf4* | osf5*)
1096511402 version_type=osf
1096611403 need_lib_prefix=no
1096711404 need_version=no
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405 soname_spec='$libname$release$shared_ext$major'
11406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1097011407 shlibpath_var=LD_LIBRARY_PATH
1097111408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1097311410 ;;
1097411411
1097511412 rdos*)
1098011417 version_type=linux # correct to gnu/linux during the next big refactor
1098111418 need_lib_prefix=no
1098211419 need_version=no
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
11420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421 soname_spec='$libname$release$shared_ext$major'
1098511422 shlibpath_var=LD_LIBRARY_PATH
1098611423 shlibpath_overrides_runpath=yes
1098711424 hardcode_into_libs=yes
1099111428
1099211429 sunos4*)
1099311430 version_type=sunos
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11431 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1099511432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1099611433 shlibpath_var=LD_LIBRARY_PATH
1099711434 shlibpath_overrides_runpath=yes
10998 if test "$with_gnu_ld" = yes; then
11435 if test yes = "$with_gnu_ld"; then
1099911436 need_lib_prefix=no
1100011437 fi
1100111438 need_version=yes
1100311440
1100411441 sysv4 | sysv4.3*)
1100511442 version_type=linux # correct to gnu/linux during the next big refactor
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444 soname_spec='$libname$release$shared_ext$major'
1100811445 shlibpath_var=LD_LIBRARY_PATH
1100911446 case $host_vendor in
1101011447 sni)
1102511462 ;;
1102611463
1102711464 sysv4*MP*)
11028 if test -d /usr/nec ;then
11465 if test -d /usr/nec; then
1102911466 version_type=linux # correct to gnu/linux during the next big refactor
11030 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11031 soname_spec='$libname${shared_ext}.$major'
11467 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11468 soname_spec='$libname$shared_ext.$major'
1103211469 shlibpath_var=LD_LIBRARY_PATH
1103311470 fi
1103411471 ;;
1103511472
1103611473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11037 version_type=freebsd-elf
11474 version_type=sco
1103811475 need_lib_prefix=no
1103911476 need_version=no
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11478 soname_spec='$libname$release$shared_ext$major'
1104211479 shlibpath_var=LD_LIBRARY_PATH
1104311480 shlibpath_overrides_runpath=yes
1104411481 hardcode_into_libs=yes
11045 if test "$with_gnu_ld" = yes; then
11482 if test yes = "$with_gnu_ld"; then
1104611483 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1104711484 else
1104811485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1106011497 version_type=linux # correct to gnu/linux during the next big refactor
1106111498 need_lib_prefix=no
1106211499 need_version=no
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1106411501 shlibpath_var=LD_LIBRARY_PATH
1106511502 shlibpath_overrides_runpath=no
1106611503 hardcode_into_libs=yes
1106811505
1106911506 uts4*)
1107011507 version_type=linux # correct to gnu/linux during the next big refactor
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072 soname_spec='${libname}${release}${shared_ext}$major'
11508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11509 soname_spec='$libname$release$shared_ext$major'
1107311510 shlibpath_var=LD_LIBRARY_PATH
1107411511 ;;
1107511512
1107911516 esac
1108011517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1108111518 $as_echo "$dynamic_linker" >&6; }
11082 test "$dynamic_linker" = no && can_build_shared=no
11519 test no = "$dynamic_linker" && can_build_shared=no
1108311520
1108411521 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11085 if test "$GCC" = yes; then
11522 if test yes = "$GCC"; then
1108611523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1108711524 fi
1108811525
11089 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11090 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11091 fi
11092 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11093 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11094 fi
11526 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11527 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11528 fi
11529
11530 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11531 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11532 fi
11533
11534 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11535 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11536
11537 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11538 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11539
11540 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11541 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11542
11543
11544
11545
11546
1109511547
1109611548
1109711549
1118911641 hardcode_action=
1119011642 if test -n "$hardcode_libdir_flag_spec" ||
1119111643 test -n "$runpath_var" ||
11192 test "X$hardcode_automatic" = "Xyes" ; then
11644 test yes = "$hardcode_automatic"; then
1119311645
1119411646 # We can hardcode non-existent directories.
11195 if test "$hardcode_direct" != no &&
11647 if test no != "$hardcode_direct" &&
1119611648 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1119711649 # have to relink, otherwise we might link with an installed library
1119811650 # when we should be linking with a yet-to-be-installed one
11199 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11200 test "$hardcode_minus_L" != no; then
11651 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11652 test no != "$hardcode_minus_L"; then
1120111653 # Linking always hardcodes the temporary library directory.
1120211654 hardcode_action=relink
1120311655 else
1121211664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1121311665 $as_echo "$hardcode_action" >&6; }
1121411666
11215 if test "$hardcode_action" = relink ||
11216 test "$inherit_rpath" = yes; then
11667 if test relink = "$hardcode_action" ||
11668 test yes = "$inherit_rpath"; then
1121711669 # Fast installation is not supported
1121811670 enable_fast_install=no
11219 elif test "$shlibpath_overrides_runpath" = yes ||
11220 test "$enable_shared" = no; then
11671 elif test yes = "$shlibpath_overrides_runpath" ||
11672 test no = "$enable_shared"; then
1122111673 # Fast installation is not necessary
1122211674 enable_fast_install=needless
1122311675 fi
1122711679
1122811680
1122911681
11230 if test "x$enable_dlopen" != xyes; then
11682 if test yes != "$enable_dlopen"; then
1123111683 enable_dlopen=unknown
1123211684 enable_dlopen_self=unknown
1123311685 enable_dlopen_self_static=unknown
1123711689
1123811690 case $host_os in
1123911691 beos*)
11240 lt_cv_dlopen="load_add_on"
11692 lt_cv_dlopen=load_add_on
1124111693 lt_cv_dlopen_libs=
1124211694 lt_cv_dlopen_self=yes
1124311695 ;;
1124411696
1124511697 mingw* | pw32* | cegcc*)
11246 lt_cv_dlopen="LoadLibrary"
11698 lt_cv_dlopen=LoadLibrary
1124711699 lt_cv_dlopen_libs=
1124811700 ;;
1124911701
1125011702 cygwin*)
11251 lt_cv_dlopen="dlopen"
11703 lt_cv_dlopen=dlopen
1125211704 lt_cv_dlopen_libs=
1125311705 ;;
1125411706
1125511707 darwin*)
11256 # if libdl is installed we need to link against it
11708 # if libdl is installed we need to link against it
1125711709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1125811710 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1125911711 if ${ac_cv_lib_dl_dlopen+:} false; then :
1129111743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1129211744 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1129311745 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11295 else
11296
11297 lt_cv_dlopen="dyld"
11746 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11747 else
11748
11749 lt_cv_dlopen=dyld
1129811750 lt_cv_dlopen_libs=
1129911751 lt_cv_dlopen_self=yes
1130011752
1130111753 fi
1130211754
11755 ;;
11756
11757 tpf*)
11758 # Don't try to run any link tests for TPF. We know it's impossible
11759 # because TPF is a cross-compiler, and we know how we open DSOs.
11760 lt_cv_dlopen=dlopen
11761 lt_cv_dlopen_libs=
11762 lt_cv_dlopen_self=no
1130311763 ;;
1130411764
1130511765 *)
1130611766 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1130711767 if test "x$ac_cv_func_shl_load" = xyes; then :
11308 lt_cv_dlopen="shl_load"
11768 lt_cv_dlopen=shl_load
1130911769 else
1131011770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1131111771 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1134411804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1134511805 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1134611806 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11347 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11807 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1134811808 else
1134911809 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1135011810 if test "x$ac_cv_func_dlopen" = xyes; then :
11351 lt_cv_dlopen="dlopen"
11811 lt_cv_dlopen=dlopen
1135211812 else
1135311813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1135411814 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1138711847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1138811848 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1138911849 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11390 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11850 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1139111851 else
1139211852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1139311853 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1142611886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1142711887 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1142811888 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11889 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1143011890 else
1143111891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1143211892 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1146511925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1146611926 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1146711927 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11468 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11928 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1146911929 fi
1147011930
1147111931
1148611946 ;;
1148711947 esac
1148811948
11489 if test "x$lt_cv_dlopen" != xno; then
11949 if test no = "$lt_cv_dlopen"; then
11950 enable_dlopen=no
11951 else
1149011952 enable_dlopen=yes
11491 else
11492 enable_dlopen=no
1149311953 fi
1149411954
1149511955 case $lt_cv_dlopen in
1149611956 dlopen)
11497 save_CPPFLAGS="$CPPFLAGS"
11498 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11499
11500 save_LDFLAGS="$LDFLAGS"
11957 save_CPPFLAGS=$CPPFLAGS
11958 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11959
11960 save_LDFLAGS=$LDFLAGS
1150111961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1150211962
11503 save_LIBS="$LIBS"
11963 save_LIBS=$LIBS
1150411964 LIBS="$lt_cv_dlopen_libs $LIBS"
1150511965
1150611966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1150811968 if ${lt_cv_dlopen_self+:} false; then :
1150911969 $as_echo_n "(cached) " >&6
1151011970 else
11511 if test "$cross_compiling" = yes; then :
11971 if test yes = "$cross_compiling"; then :
1151211972 lt_cv_dlopen_self=cross
1151311973 else
1151411974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1155512015 # endif
1155612016 #endif
1155712017
11558 /* When -fvisbility=hidden is used, assume the code has been annotated
12018 /* When -fvisibility=hidden is used, assume the code has been annotated
1155912019 correspondingly for the symbols needed. */
11560 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12020 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1156112021 int fnord () __attribute__((visibility("default")));
1156212022 #endif
1156312023
1158712047 (eval $ac_link) 2>&5
1158812048 ac_status=$?
1158912049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11590 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12050 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1159112051 (./conftest; exit; ) >&5 2>/dev/null
1159212052 lt_status=$?
1159312053 case x$lt_status in
1160712067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1160812068 $as_echo "$lt_cv_dlopen_self" >&6; }
1160912069
11610 if test "x$lt_cv_dlopen_self" = xyes; then
12070 if test yes = "$lt_cv_dlopen_self"; then
1161112071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1161212072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1161312073 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1161412074 if ${lt_cv_dlopen_self_static+:} false; then :
1161512075 $as_echo_n "(cached) " >&6
1161612076 else
11617 if test "$cross_compiling" = yes; then :
12077 if test yes = "$cross_compiling"; then :
1161812078 lt_cv_dlopen_self_static=cross
1161912079 else
1162012080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1166112121 # endif
1166212122 #endif
1166312123
11664 /* When -fvisbility=hidden is used, assume the code has been annotated
12124 /* When -fvisibility=hidden is used, assume the code has been annotated
1166512125 correspondingly for the symbols needed. */
11666 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12126 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1166712127 int fnord () __attribute__((visibility("default")));
1166812128 #endif
1166912129
1169312153 (eval $ac_link) 2>&5
1169412154 ac_status=$?
1169512155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11696 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12156 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1169712157 (./conftest; exit; ) >&5 2>/dev/null
1169812158 lt_status=$?
1169912159 case x$lt_status in
1171412174 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1171512175 fi
1171612176
11717 CPPFLAGS="$save_CPPFLAGS"
11718 LDFLAGS="$save_LDFLAGS"
11719 LIBS="$save_LIBS"
12177 CPPFLAGS=$save_CPPFLAGS
12178 LDFLAGS=$save_LDFLAGS
12179 LIBS=$save_LIBS
1172012180 ;;
1172112181 esac
1172212182
1176012220 # FIXME - insert some real tests, host_os isn't really good enough
1176112221 case $host_os in
1176212222 darwin*)
11763 if test -n "$STRIP" ; then
12223 if test -n "$STRIP"; then
1176412224 striplib="$STRIP -x"
1176512225 old_striplib="$STRIP -S"
1176612226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1178812248
1178912249
1179012250
11791 # Report which library types will actually be built
12251 # Report what library types will actually be built
1179212252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1179312253 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1179412254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1179612256
1179712257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1179812258 $as_echo_n "checking whether to build shared libraries... " >&6; }
11799 test "$can_build_shared" = "no" && enable_shared=no
12259 test no = "$can_build_shared" && enable_shared=no
1180012260
1180112261 # On AIX, shared libraries and static libraries use the same namespace, and
1180212262 # are all built from PIC.
1180312263 case $host_os in
1180412264 aix3*)
11805 test "$enable_shared" = yes && enable_static=no
12265 test yes = "$enable_shared" && enable_static=no
1180612266 if test -n "$RANLIB"; then
1180712267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
1180812268 postinstall_cmds='$RANLIB $lib'
1181012270 ;;
1181112271
1181212272 aix[4-9]*)
11813 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11814 test "$enable_shared" = yes && enable_static=no
12273 if test ia64 != "$host_cpu"; then
12274 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12275 yes,aix,yes) ;; # shared object as lib.so file only
12276 yes,svr4,*) ;; # shared object as lib.so archive member only
12277 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12278 esac
1181512279 fi
1181612280 ;;
1181712281 esac
1182112285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1182212286 $as_echo_n "checking whether to build static libraries... " >&6; }
1182312287 # Make sure either enable_shared or enable_static is yes.
11824 test "$enable_shared" = yes || enable_static=yes
12288 test yes = "$enable_shared" || enable_static=yes
1182512289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1182612290 $as_echo "$enable_static" >&6; }
1182712291
1183512299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1183612300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1183712301
11838 CC="$lt_save_CC"
12302 CC=$lt_save_CC
1183912303
1184012304
1184112305
1258613050 # report actual input values of CONFIG_FILES etc. instead of their
1258713051 # values after options handling.
1258813052 ac_log="
12589 This file was extended by libdvbpsi $as_me 1.3.0, which was
13053 This file was extended by libdvbpsi $as_me 1.3.1, which was
1259013054 generated by GNU Autoconf 2.69. Invocation command line was
1259113055
1259213056 CONFIG_FILES = $CONFIG_FILES
1265213116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1265313117 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1265413118 ac_cs_version="\\
12655 libdvbpsi config.status 1.3.0
13119 libdvbpsi config.status 1.3.1
1265613120 configured by $0, generated by GNU Autoconf 2.69,
1265713121 with options \\"\$ac_cs_config\\"
1265813122
1279013254 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1279113255 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1279213256 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13257 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1279313258 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1279413259 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1279513260 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1283713302 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1283813303 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1283913304 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13305 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1284013306 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1284113307 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13308 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1284213309 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1284313310 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13311 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1284413312 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1284513313 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1284613314 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1290513373 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1290613374 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1290713375 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12908 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13376 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13377 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1290913378 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1291013379 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1291113380 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1295713426 compiler \
1295813427 lt_cv_sys_global_symbol_pipe \
1295913428 lt_cv_sys_global_symbol_to_cdecl \
13429 lt_cv_sys_global_symbol_to_import \
1296013430 lt_cv_sys_global_symbol_to_c_name_address \
1296113431 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13432 lt_cv_nm_interface \
1296213433 nm_file_list_spec \
13434 lt_cv_truncate_bin \
1296313435 lt_prog_compiler_no_builtin_flag \
1296413436 lt_prog_compiler_pic \
1296513437 lt_prog_compiler_wl \
1299413466 striplib; do
1299513467 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1299613468 *[\\\\\\\`\\"\\\$]*)
12997 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1299813470 ;;
1299913471 *)
1300013472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1302113493 postuninstall_cmds \
1302213494 finish_cmds \
1302313495 sys_lib_search_path_spec \
13024 sys_lib_dlsearch_path_spec; do
13496 configure_time_dlsearch_path \
13497 configure_time_lt_sys_library_path; do
1302513498 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1302613499 *[\\\\\\\`\\"\\\$]*)
13027 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1302813501 ;;
1302913502 *)
1303013503 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1303313506 done
1303413507
1303513508 ac_aux_dir='$ac_aux_dir'
13036 xsi_shell='$xsi_shell'
13037 lt_shell_append='$lt_shell_append'
13038
13039 # See if we are running on zsh, and set the options which allow our
13509
13510 # See if we are running on zsh, and set the options that allow our
1304013511 # commands through without removal of \ escapes INIT.
13041 if test -n "\${ZSH_VERSION+set}" ; then
13512 if test -n "\${ZSH_VERSION+set}"; then
1304213513 setopt NO_GLOB_SUBST
1304313514 fi
1304413515
1304513516
1304613517 PACKAGE='$PACKAGE'
1304713518 VERSION='$VERSION'
13048 TIMESTAMP='$TIMESTAMP'
1304913519 RM='$RM'
1305013520 ofile='$ofile'
1305113521
1376214232 ;;
1376314233 "libtool":C)
1376414234
13765 # See if we are running on zsh, and set the options which allow our
14235 # See if we are running on zsh, and set the options that allow our
1376614236 # commands through without removal of \ escapes.
13767 if test -n "${ZSH_VERSION+set}" ; then
14237 if test -n "${ZSH_VERSION+set}"; then
1376814238 setopt NO_GLOB_SUBST
1376914239 fi
1377014240
13771 cfgfile="${ofile}T"
14241 cfgfile=${ofile}T
1377214242 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1377314243 $RM "$cfgfile"
1377414244
1377514245 cat <<_LT_EOF >> "$cfgfile"
1377614246 #! $SHELL
13777
13778 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13779 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14247 # Generated automatically by $as_me ($PACKAGE) $VERSION
1378014248 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1378114249 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14250
14251 # Provide generalized library-building support services.
14252 # Written by Gordon Matzigkeit, 1996
14253
14254 # Copyright (C) 2014 Free Software Foundation, Inc.
14255 # This is free software; see the source for copying conditions. There is NO
14256 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14257
14258 # GNU Libtool is free software; you can redistribute it and/or modify
14259 # it under the terms of the GNU General Public License as published by
14260 # the Free Software Foundation; either version 2 of of the License, or
14261 # (at your option) any later version.
1378214262 #
13783 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13784 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13785 # Foundation, Inc.
13786 # Written by Gordon Matzigkeit, 1996
14263 # As a special exception to the GNU General Public License, if you
14264 # distribute this file as part of a program or library that is built
14265 # using GNU Libtool, you may include this file under the same
14266 # distribution terms that you use for the rest of that program.
1378714267 #
13788 # This file is part of GNU Libtool.
13789 #
13790 # GNU Libtool is free software; you can redistribute it and/or
13791 # modify it under the terms of the GNU General Public License as
13792 # published by the Free Software Foundation; either version 2 of
13793 # the License, or (at your option) any later version.
13794 #
13795 # As a special exception to the GNU General Public License,
13796 # if you distribute this file as part of a program or library that
13797 # is built using GNU Libtool, you may include this file under the
13798 # same distribution terms that you use for the rest of that program.
13799 #
13800 # GNU Libtool is distributed in the hope that it will be useful,
13801 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14268 # GNU Libtool is distributed in the hope that it will be useful, but
14269 # WITHOUT ANY WARRANTY; without even the implied warranty of
1380214270 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1380314271 # GNU General Public License for more details.
1380414272 #
1380514273 # You should have received a copy of the GNU General Public License
13806 # along with GNU Libtool; see the file COPYING. If not, a copy
13807 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13808 # obtained by writing to the Free Software Foundation, Inc.,
13809 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14274 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1381014275
1381114276
1381214277 # The names of the tagged configurations supported by this script.
13813 available_tags=""
14278 available_tags=''
14279
14280 # Configured defaults for sys_lib_dlsearch_path munging.
14281 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1381414282
1381514283 # ### BEGIN LIBTOOL CONFIG
1381614284
1383814306
1383914307 # Whether or not to optimize for fast installation.
1384014308 fast_install=$enable_fast_install
14309
14310 # Shared archive member basename,for filename based shared library versioning on AIX.
14311 shared_archive_member_spec=$shared_archive_member_spec
1384114312
1384214313 # Shell to use when invoking shell scripts.
1384314314 SHELL=$lt_SHELL
1395014421 # Transform the output of nm in a proper C declaration.
1395114422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1395214423
14424 # Transform the output of nm into a list of symbols to manually relocate.
14425 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14426
1395314427 # Transform the output of nm in a C name address pair.
1395414428 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1395514429
1395614430 # Transform the output of nm in a C name address pair when lib prefix is needed.
1395714431 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1395814432
14433 # The name lister interface.
14434 nm_interface=$lt_lt_cv_nm_interface
14435
1395914436 # Specify filename containing input files for \$NM.
1396014437 nm_file_list_spec=$lt_nm_file_list_spec
1396114438
13962 # The root where to search for dependent libraries,and in which our libraries should be installed.
14439 # The root where to search for dependent libraries,and where our libraries should be installed.
1396314440 lt_sysroot=$lt_sysroot
14441
14442 # Command to truncate a binary pipe.
14443 lt_truncate_bin=$lt_lt_cv_truncate_bin
1396414444
1396514445 # The name of the directory that contains temporary libtool files.
1396614446 objdir=$objdir
1405214532 # Compile-time system search path for libraries.
1405314533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1405414534
14055 # Run-time system search path for libraries.
14056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14535 # Detected run-time system search path for libraries.
14536 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14537
14538 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14539 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1405714540
1405814541 # Whether dlopen is supported.
1405914542 dlopen_support=$enable_dlopen
1414614629 # Whether we need a single "-rpath" flag with a separated argument.
1414714630 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1414814631
14149 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14632 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1415014633 # DIR into the resulting binary.
1415114634 hardcode_direct=$hardcode_direct
1415214635
14153 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14636 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1415414637 # DIR into the resulting binary and the resulting library dependency is
14155 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14638 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1415614639 # library is relocated.
1415714640 hardcode_direct_absolute=$hardcode_direct_absolute
1415814641
1420114684 hardcode_action=$hardcode_action
1420214685
1420314686 # ### END LIBTOOL CONFIG
14687
14688 _LT_EOF
14689
14690 cat <<'_LT_EOF' >> "$cfgfile"
14691
14692 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14693
14694 # func_munge_path_list VARIABLE PATH
14695 # -----------------------------------
14696 # VARIABLE is name of variable containing _space_ separated list of
14697 # directories to be munged by the contents of PATH, which is string
14698 # having a format:
14699 # "DIR[:DIR]:"
14700 # string "DIR[ DIR]" will be prepended to VARIABLE
14701 # ":DIR[:DIR]"
14702 # string "DIR[ DIR]" will be appended to VARIABLE
14703 # "DIRP[:DIRP]::[DIRA:]DIRA"
14704 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14705 # "DIRA[ DIRA]" will be appended to VARIABLE
14706 # "DIR[:DIR]"
14707 # VARIABLE will be replaced by "DIR[ DIR]"
14708 func_munge_path_list ()
14709 {
14710 case x$2 in
14711 x)
14712 ;;
14713 *:)
14714 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14715 ;;
14716 x:*)
14717 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14718 ;;
14719 *::*)
14720 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14721 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14722 ;;
14723 *)
14724 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14725 ;;
14726 esac
14727 }
14728
14729
14730 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14731 func_cc_basename ()
14732 {
14733 for cc_temp in $*""; do
14734 case $cc_temp in
14735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14737 \-*) ;;
14738 *) break;;
14739 esac
14740 done
14741 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14742 }
14743
14744
14745 # ### END FUNCTIONS SHARED WITH CONFIGURE
1420414746
1420514747 _LT_EOF
1420614748
1421014752 # AIX sometimes has problems with the GCC collect2 program. For some
1421114753 # reason, if we set the COLLECT_NAMES environment variable, the problems
1421214754 # vanish in a puff of smoke.
14213 if test "X${COLLECT_NAMES+set}" != Xset; then
14755 if test set != "${COLLECT_NAMES+set}"; then
1421414756 COLLECT_NAMES=
1421514757 export COLLECT_NAMES
1421614758 fi
1421914761 esac
1422014762
1422114763
14222 ltmain="$ac_aux_dir/ltmain.sh"
14764 ltmain=$ac_aux_dir/ltmain.sh
1422314765
1422414766
1422514767 # We use sed instead of cat because bash on DJGPP gets confused if
1422814770 # is reportedly fixed, but why not run on old versions too?
1422914771 sed '$q' "$ltmain" >> "$cfgfile" \
1423014772 || (rm -f "$cfgfile"; exit 1)
14231
14232 if test x"$xsi_shell" = xyes; then
14233 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14234 func_dirname ()\
14235 {\
14236 \ case ${1} in\
14237 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14238 \ * ) func_dirname_result="${3}" ;;\
14239 \ esac\
14240 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14241 && mv -f "$cfgfile.tmp" "$cfgfile" \
14242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14243 test 0 -eq $? || _lt_function_replace_fail=:
14244
14245
14246 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14247 func_basename ()\
14248 {\
14249 \ func_basename_result="${1##*/}"\
14250 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14251 && mv -f "$cfgfile.tmp" "$cfgfile" \
14252 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14253 test 0 -eq $? || _lt_function_replace_fail=:
14254
14255
14256 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14257 func_dirname_and_basename ()\
14258 {\
14259 \ case ${1} in\
14260 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14261 \ * ) func_dirname_result="${3}" ;;\
14262 \ esac\
14263 \ func_basename_result="${1##*/}"\
14264 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14265 && mv -f "$cfgfile.tmp" "$cfgfile" \
14266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14267 test 0 -eq $? || _lt_function_replace_fail=:
14268
14269
14270 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14271 func_stripname ()\
14272 {\
14273 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14274 \ # positional parameters, so assign one to ordinary parameter first.\
14275 \ func_stripname_result=${3}\
14276 \ func_stripname_result=${func_stripname_result#"${1}"}\
14277 \ func_stripname_result=${func_stripname_result%"${2}"}\
14278 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14279 && mv -f "$cfgfile.tmp" "$cfgfile" \
14280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14281 test 0 -eq $? || _lt_function_replace_fail=:
14282
14283
14284 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14285 func_split_long_opt ()\
14286 {\
14287 \ func_split_long_opt_name=${1%%=*}\
14288 \ func_split_long_opt_arg=${1#*=}\
14289 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14290 && mv -f "$cfgfile.tmp" "$cfgfile" \
14291 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14292 test 0 -eq $? || _lt_function_replace_fail=:
14293
14294
14295 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14296 func_split_short_opt ()\
14297 {\
14298 \ func_split_short_opt_arg=${1#??}\
14299 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14300 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14301 && mv -f "$cfgfile.tmp" "$cfgfile" \
14302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14303 test 0 -eq $? || _lt_function_replace_fail=:
14304
14305
14306 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14307 func_lo2o ()\
14308 {\
14309 \ case ${1} in\
14310 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14311 \ *) func_lo2o_result=${1} ;;\
14312 \ esac\
14313 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14314 && mv -f "$cfgfile.tmp" "$cfgfile" \
14315 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14316 test 0 -eq $? || _lt_function_replace_fail=:
14317
14318
14319 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14320 func_xform ()\
14321 {\
14322 func_xform_result=${1%.*}.lo\
14323 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14324 && mv -f "$cfgfile.tmp" "$cfgfile" \
14325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14326 test 0 -eq $? || _lt_function_replace_fail=:
14327
14328
14329 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14330 func_arith ()\
14331 {\
14332 func_arith_result=$(( $* ))\
14333 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14334 && mv -f "$cfgfile.tmp" "$cfgfile" \
14335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14336 test 0 -eq $? || _lt_function_replace_fail=:
14337
14338
14339 sed -e '/^func_len ()$/,/^} # func_len /c\
14340 func_len ()\
14341 {\
14342 func_len_result=${#1}\
14343 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14344 && mv -f "$cfgfile.tmp" "$cfgfile" \
14345 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14346 test 0 -eq $? || _lt_function_replace_fail=:
14347
14348 fi
14349
14350 if test x"$lt_shell_append" = xyes; then
14351 sed -e '/^func_append ()$/,/^} # func_append /c\
14352 func_append ()\
14353 {\
14354 eval "${1}+=\\${2}"\
14355 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14356 && mv -f "$cfgfile.tmp" "$cfgfile" \
14357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14358 test 0 -eq $? || _lt_function_replace_fail=:
14359
14360
14361 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14362 func_append_quoted ()\
14363 {\
14364 \ func_quote_for_eval "${2}"\
14365 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14366 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14367 && mv -f "$cfgfile.tmp" "$cfgfile" \
14368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14369 test 0 -eq $? || _lt_function_replace_fail=:
14370
14371
14372 # Save a `func_append' function call where possible by direct use of '+='
14373 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14374 && mv -f "$cfgfile.tmp" "$cfgfile" \
14375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14376 test 0 -eq $? || _lt_function_replace_fail=:
14377 else
14378 # Save a `func_append' function call even when '+=' is not available
14379 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14380 && mv -f "$cfgfile.tmp" "$cfgfile" \
14381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14382 test 0 -eq $? || _lt_function_replace_fail=:
14383 fi
14384
14385 if test x"$_lt_function_replace_fail" = x":"; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14387 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14388 fi
14389
1439014773
1439114774 mv -f "$cfgfile" "$ofile" ||
1439214775 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
0 AC_INIT([libdvbpsi], [1.3.0])
0 AC_INIT([libdvbpsi], [1.3.1])
11
22 AC_PREREQ([2.50])
33 AC_CONFIG_AUX_DIR([.auto])
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1313
1414 @SET_MAKE@
1515 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
16 am__is_gnu_make = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
1727 am__make_running_with_option = \
1828 case $${target_option-} in \
1929 ?) ;; \
7888 host_triplet = @host@
7989 target_triplet = @target@
8090 subdir = doc
81 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8291 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8392 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
8493 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
8695 $(top_srcdir)/configure.ac
8796 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8897 $(ACLOCAL_M4)
98 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
8999 mkinstalldirs = $(install_sh) -d
90100 CONFIG_HEADER = $(top_builddir)/config.h
91101 CONFIG_CLEAN_FILES =
110120 *) (install-info --version) >/dev/null 2>&1;; \
111121 esac
112122 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
123 am__DIST_COMMON = $(srcdir)/Makefile.in
113124 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
114125 ACLOCAL = @ACLOCAL@
115126 AMTAR = @AMTAR@
151162 LIPO = @LIPO@
152163 LN_S = @LN_S@
153164 LTLIBOBJS = @LTLIBOBJS@
165 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
154166 MAKEINFO = @MAKEINFO@
155167 MANIFEST_TOOL = @MANIFEST_TOOL@
156168 MKDIR_P = @MKDIR_P@
250262 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
251263 $(am__cd) $(top_srcdir) && \
252264 $(AUTOMAKE) --foreign doc/Makefile
253 .PRECIOUS: Makefile
254265 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
255266 @case '$?' in \
256267 *config.status*) \
426437 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
427438 tags-am uninstall uninstall-am
428439
440 .PRECIOUS: Makefile
441
429442
430443 doc: decoder.png
431444 doxygen doxygen.cfg
3737 # could be handy for archiving the generated documentation or if some version
3838 # control system is used.
3939
40 PROJECT_NUMBER = 1.3.0
40 PROJECT_NUMBER = 1.3.1
4141
4242 # Using the PROJECT_BRIEF tag one can provide an optional one line description
4343 # for a project that appears at the top of each page and should give viewer a
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
8393 decode_bat$(EXEEXT) dump_pids$(EXEEXT) check_cc_pid$(EXEEXT)
8494 @HAVE_SYS_SOCKET_H_TRUE@am__append_1 = connect.c connect.h
8595 subdir = examples
86 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
87 $(top_srcdir)/.auto/depcomp
8896 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8997 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
9098 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
92100 $(top_srcdir)/configure.ac
93101 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94102 $(ACLOCAL_M4)
103 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
95104 mkinstalldirs = $(install_sh) -d
96105 CONFIG_HEADER = $(top_builddir)/config.h
97106 CONFIG_CLEAN_FILES =
234243 done | $(am__uniquify_input)`
235244 ETAGS = etags
236245 CTAGS = ctags
246 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/.auto/depcomp
237247 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
238248 am__relativize = \
239249 dir0=`pwd`; \
300310 LIPO = @LIPO@
301311 LN_S = @LN_S@
302312 LTLIBOBJS = @LTLIBOBJS@
313 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
303314 MAKEINFO = @MAKEINFO@
304315 MANIFEST_TOOL = @MANIFEST_TOOL@
305316 MKDIR_P = @MKDIR_P@
421432 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \
422433 $(am__cd) $(top_srcdir) && \
423434 $(AUTOMAKE) --foreign examples/Makefile
424 .PRECIOUS: Makefile
425435 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
426436 @case '$?' in \
427437 *config.status*) \
930940 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
931941 uninstall-am
932942
943 .PRECIOUS: Makefile
944
933945
934946 # Tell versions [3.59,3.63) of GNU make to not export all variables.
935947 # Otherwise a system limit (for SysV at least) may be exceeded.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
8191 noinst_PROGRAMS = dvbinfo$(EXEEXT)
8292 @HAVE_SYS_SOCKET_H_TRUE@am__append_1 = tcp.c tcp.h udp.c udp.h
8393 subdir = examples/dvbinfo
84 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
85 $(top_srcdir)/.auto/depcomp
8694 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8795 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
8896 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
9098 $(top_srcdir)/configure.ac
9199 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
92100 $(ACLOCAL_M4)
101 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
93102 mkinstalldirs = $(install_sh) -d
94103 CONFIG_HEADER = $(top_builddir)/config.h
95104 CONFIG_CLEAN_FILES =
171180 done | $(am__uniquify_input)`
172181 ETAGS = etags
173182 CTAGS = ctags
183 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/.auto/depcomp
174184 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
175185 ACLOCAL = @ACLOCAL@
176186 AMTAR = @AMTAR@
212222 LIPO = @LIPO@
213223 LN_S = @LN_S@
214224 LTLIBOBJS = @LTLIBOBJS@
225 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
215226 MAKEINFO = @MAKEINFO@
216227 MANIFEST_TOOL = @MANIFEST_TOOL@
217228 MKDIR_P = @MKDIR_P@
311322 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/dvbinfo/Makefile'; \
312323 $(am__cd) $(top_srcdir) && \
313324 $(AUTOMAKE) --foreign examples/dvbinfo/Makefile
314 .PRECIOUS: Makefile
315325 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
316326 @case '$?' in \
317327 *config.status*) \
658668 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
659669 tags tags-am uninstall uninstall-am
660670
671 .PRECIOUS: Makefile
672
661673
662674 # Tell versions [3.59,3.63) of GNU make to not export all variables.
663675 # Otherwise a system limit (for SysV at least) may be exceeded.
00 %define name libdvbpsi
1 %define version 1.3.0
1 %define version 1.3.1
22 %define release 1
33
44 %define lib_name %{name}
7777 %{_includedir}/*
7878
7979 %changelog
80 * Tue Feb 7 2017 Jean-Paul Saman <jpsaman@videolan.org - 1.3.1
81 - bugfixes
82
8083 * Thu Mar 26 2015 Jean-Paul Saman <jpsaman@videolan.org> - 1.3.0
8184 - bugfixes and new descriptors
8285
7777 %{_includedir}/*
7878
7979 %changelog
80 * Tue Feb 7 2017 Jean-Paul Saman <jpsaman@videolan.org - 1.3.1
81 - bugfixes
82
8083 * Thu Mar 26 2015 Jean-Paul Saman <jpsaman@videolan.org> - 1.3.0
8184 - bugfixes and new descriptors
8285
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
53 # Written by Gordon Matzigkeit, 1996
64 #
75 # This file is free software; the Free Software Foundation gives
97 # modifications, as long as this notice is preserved.
108
119 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
10 # Copyright (C) 2014 Free Software Foundation, Inc.
11 # This is free software; see the source for copying conditions. There is NO
12 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 # GNU Libtool is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of of the License, or
17 # (at your option) any later version.
1618 #
17 # This file is part of GNU Libtool.
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program or library that is built
21 # using GNU Libtool, you may include this file under the same
22 # distribution terms that you use for the rest of that program.
1823 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24 # GNU Libtool is distributed in the hope that it will be useful, but
25 # WITHOUT ANY WARRANTY; without even the implied warranty of
3126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3227 # GNU General Public License for more details.
3328 #
3429 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30 # along with this program. If not, see <http://www.gnu.org/licenses/>.
3931 ])
4032
41 # serial 57 LT_INIT
33 # serial 58 LT_INIT
4234
4335
4436 # LT_PREREQ(VERSION)
6658 # LT_INIT([OPTIONS])
6759 # ------------------
6860 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
61 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
7062 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
7163 AC_BEFORE([$0], [LT_LANG])dnl
7264 AC_BEFORE([$0], [LT_OUTPUT])dnl
9082 _LT_SET_OPTIONS([$0], [$1])
9183
9284 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
85 LIBTOOL_DEPS=$ltmain
9486
9587 # Always use our own libtool.
9688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
110102 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111103
112104
105 # _LT_PREPARE_CC_BASENAME
106 # -----------------------
107 m4_defun([_LT_PREPARE_CC_BASENAME], [
108 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
109 func_cc_basename ()
110 {
111 for cc_temp in @S|@*""; do
112 case $cc_temp in
113 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
114 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
115 \-*) ;;
116 *) break;;
117 esac
118 done
119 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
120 }
121 ])# _LT_PREPARE_CC_BASENAME
122
123
113124 # _LT_CC_BASENAME(CC)
114125 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
126 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
127 # but that macro is also expanded into generated libtool script, which
128 # arranges for $SED and $ECHO to be set by different means.
116129 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
130 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
131 AC_REQUIRE([_LT_DECL_SED])dnl
132 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
133 func_cc_basename $1
134 cc_basename=$func_cc_basename_result
126135 ])
127136
128137
129138 # _LT_FILEUTILS_DEFAULTS
130139 # ----------------------
131140 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
141 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
133142 m4_defun([_LT_FILEUTILS_DEFAULTS],
134143 [: ${CP="cp -f"}
135144 : ${MV="mv -f"}
176185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178187 m4_require([_LT_WITH_SYSROOT])dnl
188 m4_require([_LT_CMD_TRUNCATE])dnl
179189
180190 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
191 # See if we are running on zsh, and set the options that allow our
182192 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
193 if test -n "\${ZSH_VERSION+set}"; then
184194 setopt NO_GLOB_SUBST
185195 fi
186196 ])
187 if test -n "${ZSH_VERSION+set}" ; then
197 if test -n "${ZSH_VERSION+set}"; then
188198 setopt NO_GLOB_SUBST
189199 fi
190200
197207 # AIX sometimes has problems with the GCC collect2 program. For some
198208 # reason, if we set the COLLECT_NAMES environment variable, the problems
199209 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
210 if test set != "${COLLECT_NAMES+set}"; then
201211 COLLECT_NAMES=
202212 export COLLECT_NAMES
203213 fi
208218 ofile=libtool
209219 can_build_shared=yes
210220
211 # All known linkers require a `.a' archive for static linking (except MSVC,
221 # All known linkers require a '.a' archive for static linking (except MSVC,
212222 # which needs '.lib').
213223 libext=a
214224
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
225 with_gnu_ld=$lt_cv_prog_gnu_ld
226
227 old_CC=$CC
228 old_CFLAGS=$CFLAGS
219229
220230 # Set sane defaults for various variables
221231 test -z "$CC" && CC=cc
268278
269279 # _LT_PROG_LTMAIN
270280 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
281 # Note that this code is called both from 'configure', and 'config.status'
272282 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
283 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
274284 # so we pass a copy along to make sure it has a sensible value anyway.
275285 m4_defun([_LT_PROG_LTMAIN],
276286 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277287 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
288 ltmain=$ac_aux_dir/ltmain.sh
279289 ])# _LT_PROG_LTMAIN
280290
281291
285295
286296 # So that we can recreate a full libtool script including additional
287297 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
298 # in macros and then make a single call at the end using the 'libtool'
289299 # label.
290300
291301
420430
421431 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422432 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
433 # Quote a variable value, and forward it to 'config.status' so that its
434 # declaration there will have the same value as in 'configure'. VARNAME
425435 # must have a single quote delimited value for this to work.
426436 m4_define([_LT_CONFIG_STATUS_DECLARE],
427437 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
445455 # Output comment and list of tags supported by the script
446456 m4_defun([_LT_LIBTOOL_TAGS],
447457 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
458 available_tags='_LT_TAGS'dnl
449459 ])
450460
451461
473483 # _LT_LIBTOOL_CONFIG_VARS
474484 # -----------------------
475485 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
486 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
477487 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478488 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479489 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
499509 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500510 # variables for single and double quote escaping we saved from calls
501511 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
512 # into 'config.status', and then the shell code to quote escape them in
513 # for loops in 'config.status'. Finally, any additional code accumulated
504514 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505515 m4_defun([_LT_CONFIG_COMMANDS],
506516 [AC_PROVIDE_IFELSE([LT_OUTPUT],
546556 ]], lt_decl_quote_varnames); do
547557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548558 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
550560 ;;
551561 *)
552562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
559569 ]], lt_decl_dquote_varnames); do
560570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561571 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
563573 ;;
564574 *)
565575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
575585 # Generate a child script FILE with all initialization necessary to
576586 # reuse the environment learned by the parent script, and make the
577587 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
588 # '#!' sequence but before initialization text begins. After this
579589 # macro, additional text can be appended to FILE to form the body of
580590 # the child script. The macro ends with non-zero status if the
581591 # file could not be fully written (such as if the disk is full).
597607 _AS_PREPARE
598608 exec AS_MESSAGE_FD>&1
599609 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
610 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
601611 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602612
603613 # LT_OUTPUT
620630 } >&AS_MESSAGE_LOG_FD
621631
622632 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
633 '$as_me' creates a local libtool stub from the current configuration,
624634 for use in further configure time tests before the real libtool is
625635 generated.
626636
642652 This config.lt script is free software; the Free Software Foundation
643653 gives unlimited permision to copy, distribute and modify it."
644654
645 while test $[#] != 0
655 while test 0 != $[#]
646656 do
647657 case $[1] in
648658 --version | --v* | -V )
655665 lt_cl_silent=: ;;
656666
657667 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
668 Try '$[0] --help' for more information.]) ;;
659669
660670 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
671 Try '$[0] --help' for more information.]) ;;
662672 esac
663673 shift
664674 done
684694 # open by configure. Here we exec the FD to /dev/null, effectively closing
685695 # config.log, so it can be properly (re)opened and appended to by config.lt.
686696 lt_cl_success=:
687 test "$silent" = yes &&
697 test yes = "$silent" &&
688698 lt_config_lt_args="$lt_config_lt_args --quiet"
689699 exec AS_MESSAGE_LOG_FD>/dev/null
690700 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
704714 _LT_CONFIG_SAVE_COMMANDS([
705715 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706716 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
717 # See if we are running on zsh, and set the options that allow our
708718 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
719 if test -n "${ZSH_VERSION+set}"; then
710720 setopt NO_GLOB_SUBST
711721 fi
712722
713 cfgfile="${ofile}T"
723 cfgfile=${ofile}T
714724 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715725 $RM "$cfgfile"
716726
717727 cat <<_LT_EOF >> "$cfgfile"
718728 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
729 # Generated automatically by $as_me ($PACKAGE) $VERSION
722730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723731 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
732
733 # Provide generalized library-building support services.
734 # Written by Gordon Matzigkeit, 1996
735
725736 _LT_COPYING
726737 _LT_LIBTOOL_TAGS
738
739 # Configured defaults for sys_lib_dlsearch_path munging.
740 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
727741
728742 # ### BEGIN LIBTOOL CONFIG
729743 _LT_LIBTOOL_CONFIG_VARS
730744 _LT_LIBTOOL_TAG_VARS
731745 # ### END LIBTOOL CONFIG
746
747 _LT_EOF
748
749 cat <<'_LT_EOF' >> "$cfgfile"
750
751 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
752
753 _LT_PREPARE_MUNGE_PATH_LIST
754 _LT_PREPARE_CC_BASENAME
755
756 # ### END FUNCTIONS SHARED WITH CONFIGURE
732757
733758 _LT_EOF
734759
738763 # AIX sometimes has problems with the GCC collect2 program. For some
739764 # reason, if we set the COLLECT_NAMES environment variable, the problems
740765 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
766 if test set != "${COLLECT_NAMES+set}"; then
742767 COLLECT_NAMES=
743768 export COLLECT_NAMES
744769 fi
754779 # is reportedly fixed, but why not run on old versions too?
755780 sed '$q' "$ltmain" >> "$cfgfile" \
756781 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759782
760783 mv -f "$cfgfile" "$ofile" ||
761784 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
774797 [m4_if([$1], [], [
775798 PACKAGE='$PACKAGE'
776799 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778800 RM='$RM'
779801 ofile='$ofile'], [])
780802 ])dnl /_LT_CONFIG_SAVE_COMMANDS
973995
974996 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975997 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
998 if test -z "$LT_MULTI_MODULE"; then
977999 # By default we will add the -single_module flag. You can override
9781000 # by either setting the environment variable LT_MULTI_MODULE
9791001 # non-empty at configure time, or by adding -multi_module to the
9911013 cat conftest.err >&AS_MESSAGE_LOG_FD
9921014 # Otherwise, if the output was created with a 0 exit code from
9931015 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1016 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9951017 lt_cv_apple_cc_single_mod=yes
9961018 else
9971019 cat conftest.err >&AS_MESSAGE_LOG_FD
10091031 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
10101032 [lt_cv_ld_exported_symbols_list=yes],
10111033 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1034 LDFLAGS=$save_LDFLAGS
10131035 ])
10141036
10151037 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
10311053 _lt_result=$?
10321054 if test -s conftest.err && $GREP force_load conftest.err; then
10331055 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1056 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10351057 lt_cv_ld_force_load=yes
10361058 else
10371059 cat conftest.err >&AS_MESSAGE_LOG_FD
10411063 ])
10421064 case $host_os in
10431065 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1066 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10451067 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1068 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10471069 darwin*) # darwin 5.x on
10481070 # if running on 10.5 or later, the deployment target defaults
10491071 # to the OS version, if on x86, and 10.4, the deployment
10501072 # target defaults to 10.4. Don't you love it?
10511073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10521074 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1076 10.[[012]][[,.]]*)
1077 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10561078 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1079 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10581080 esac
10591081 ;;
10601082 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1083 if test yes = "$lt_cv_apple_cc_single_mod"; then
10621084 _lt_dar_single_mod='$single_module'
10631085 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1086 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1087 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10661088 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10681090 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1091 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10701092 _lt_dsymutil='~$DSYMUTIL $lib || :'
10711093 else
10721094 _lt_dsymutil=
10861108 _LT_TAGVAR(hardcode_direct, $1)=no
10871109 _LT_TAGVAR(hardcode_automatic, $1)=yes
10881110 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1111 if test yes = "$lt_cv_ld_force_load"; then
1112 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10911113 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
10921114 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
10931115 else
10941116 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
10951117 fi
10961118 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1119 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
10981120 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1121 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11001122 *) _lt_dar_can_shared=$GCC ;;
11011123 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1124 if test yes = "$_lt_dar_can_shared"; then
11031125 output_verbose_link_cmd=func_echo_all
1104 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1107 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1126 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1127 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1128 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1129 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11081130 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1111 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1131 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1132 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1133 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
11121134 fi
11131135 ],[])
11141136 else
11281150 # Allow to override them for all tags through lt_cv_aix_libpath.
11291151 m4_defun([_LT_SYS_MODULE_PATH_AIX],
11301152 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1153 if test set = "${lt_cv_aix_libpath+set}"; then
11321154 aix_libpath=$lt_cv_aix_libpath
11331155 else
11341156 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
11461168 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471169 fi],[])
11481170 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1171 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
11501172 fi
11511173 ])
11521174 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
11661188 # -----------------------
11671189 # Find how we can fake an echo command that does not interpret backslash.
11681190 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1191 # of the generated configure script that will find a shell with a builtin
1192 # printf (that we can use as an echo command).
11711193 m4_defun([_LT_PROG_ECHO_BACKSLASH],
11721194 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11731195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11951217 # Invoke $ECHO with all args, space-separated.
11961218 func_echo_all ()
11971219 {
1198 $ECHO "$*"
1220 $ECHO "$*"
11991221 }
12001222
1201 case "$ECHO" in
1223 case $ECHO in
12021224 printf*) AC_MSG_RESULT([printf]) ;;
12031225 print*) AC_MSG_RESULT([print -r]) ;;
12041226 *) AC_MSG_RESULT([cat]) ;;
12241246 AC_DEFUN([_LT_WITH_SYSROOT],
12251247 [AC_MSG_CHECKING([for sysroot])
12261248 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1249 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1250 [Search for dependent libraries within DIR (or the compiler's sysroot
1251 if not specified).])],
12291252 [], [with_sysroot=no])
12301253
12311254 dnl lt_sysroot will always be passed unquoted. We quote it here
12321255 dnl in case the user passed a directory name.
12331256 lt_sysroot=
1234 case ${with_sysroot} in #(
1257 case $with_sysroot in #(
12351258 yes)
1236 if test "$GCC" = yes; then
1259 if test yes = "$GCC"; then
12371260 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12381261 fi
12391262 ;; #(
12431266 no|'')
12441267 ;; #(
12451268 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1269 AC_MSG_RESULT([$with_sysroot])
12471270 AC_MSG_ERROR([The sysroot must be an absolute path.])
12481271 ;;
12491272 esac
12501273
12511274 AC_MSG_RESULT([${lt_sysroot:-no}])
12521275 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1276 [dependent libraries, and where our libraries should be installed.])])
12541277
12551278 # _LT_ENABLE_LOCK
12561279 # ---------------
12581281 [AC_ARG_ENABLE([libtool-lock],
12591282 [AS_HELP_STRING([--disable-libtool-lock],
12601283 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1284 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12621285
12631286 # Some flags need to be propagated to the compiler or linker for good
12641287 # libtool support.
12651288 case $host in
12661289 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1290 # Find out what ABI is being produced by ac_compile, and set mode
1291 # options accordingly.
12681292 echo 'int i;' > conftest.$ac_ext
12691293 if AC_TRY_EVAL(ac_compile); then
12701294 case `/usr/bin/file conftest.$ac_objext` in
12711295 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1296 HPUX_IA64_MODE=32
12731297 ;;
12741298 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1299 HPUX_IA64_MODE=64
12761300 ;;
12771301 esac
12781302 fi
12791303 rm -rf conftest*
12801304 ;;
12811305 *-*-irix6*)
1282 # Find out which ABI we are using.
1306 # Find out what ABI is being produced by ac_compile, and set linker
1307 # options accordingly.
12831308 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12841309 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1310 if test yes = "$lt_cv_prog_gnu_ld"; then
12861311 case `/usr/bin/file conftest.$ac_objext` in
12871312 *32-bit*)
12881313 LD="${LD-ld} -melf32bsmip"
13111336 rm -rf conftest*
13121337 ;;
13131338
1339 mips64*-*linux*)
1340 # Find out what ABI is being produced by ac_compile, and set linker
1341 # options accordingly.
1342 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1343 if AC_TRY_EVAL(ac_compile); then
1344 emul=elf
1345 case `/usr/bin/file conftest.$ac_objext` in
1346 *32-bit*)
1347 emul="${emul}32"
1348 ;;
1349 *64-bit*)
1350 emul="${emul}64"
1351 ;;
1352 esac
1353 case `/usr/bin/file conftest.$ac_objext` in
1354 *MSB*)
1355 emul="${emul}btsmip"
1356 ;;
1357 *LSB*)
1358 emul="${emul}ltsmip"
1359 ;;
1360 esac
1361 case `/usr/bin/file conftest.$ac_objext` in
1362 *N32*)
1363 emul="${emul}n32"
1364 ;;
1365 esac
1366 LD="${LD-ld} -m $emul"
1367 fi
1368 rm -rf conftest*
1369 ;;
1370
13141371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13151372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1373 # Find out what ABI is being produced by ac_compile, and set linker
1374 # options accordingly. Note that the listed cases only cover the
1375 # situations where additional linker options are needed (such as when
1376 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1377 # vice versa); the common cases where no linker options are needed do
1378 # not appear in the list.
13171379 echo 'int i;' > conftest.$ac_ext
13181380 if AC_TRY_EVAL(ac_compile); then
13191381 case `/usr/bin/file conftest.o` in
13231385 LD="${LD-ld} -m elf_i386_fbsd"
13241386 ;;
13251387 x86_64-*linux*)
1326 LD="${LD-ld} -m elf_i386"
1388 case `/usr/bin/file conftest.o` in
1389 *x86-64*)
1390 LD="${LD-ld} -m elf32_x86_64"
1391 ;;
1392 *)
1393 LD="${LD-ld} -m elf_i386"
1394 ;;
1395 esac
13271396 ;;
13281397 powerpc64le-*linux*)
13291398 LD="${LD-ld} -m elf32lppclinux"
13681437
13691438 *-*-sco3.2v5*)
13701439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1371 SAVE_CFLAGS="$CFLAGS"
1440 SAVE_CFLAGS=$CFLAGS
13721441 CFLAGS="$CFLAGS -belf"
13731442 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13741443 [AC_LANG_PUSH(C)
13751444 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13761445 AC_LANG_POP])
1377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1446 if test yes != "$lt_cv_cc_needs_belf"; then
13781447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1379 CFLAGS="$SAVE_CFLAGS"
1448 CFLAGS=$SAVE_CFLAGS
13801449 fi
13811450 ;;
13821451 *-*solaris*)
1383 # Find out which ABI we are using.
1452 # Find out what ABI is being produced by ac_compile, and set linker
1453 # options accordingly.
13841454 echo 'int i;' > conftest.$ac_ext
13851455 if AC_TRY_EVAL(ac_compile); then
13861456 case `/usr/bin/file conftest.o` in
13881458 case $lt_cv_prog_gnu_ld in
13891459 yes*)
13901460 case $host in
1391 i?86-*-solaris*)
1461 i?86-*-solaris*|x86_64-*-solaris*)
13921462 LD="${LD-ld} -m elf_x86_64"
13931463 ;;
13941464 sparc*-*-solaris*)
13971467 esac
13981468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13991469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1400 LD="${LD-ld}_sol2"
1470 LD=${LD-ld}_sol2
14011471 fi
14021472 ;;
14031473 *)
14131483 ;;
14141484 esac
14151485
1416 need_locks="$enable_libtool_lock"
1486 need_locks=$enable_libtool_lock
14171487 ])# _LT_ENABLE_LOCK
14181488
14191489
14321502 [echo conftest.$ac_objext > conftest.lst
14331503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
14341504 AC_TRY_EVAL([lt_ar_try])
1435 if test "$ac_status" -eq 0; then
1505 if test 0 -eq "$ac_status"; then
14361506 # Ensure the archiver fails upon bogus file names.
14371507 rm -f conftest.$ac_objext libconftest.a
14381508 AC_TRY_EVAL([lt_ar_try])
1439 if test "$ac_status" -ne 0; then
1509 if test 0 -ne "$ac_status"; then
14401510 lt_cv_ar_at_file=@
14411511 fi
14421512 fi
14441514 ])
14451515 ])
14461516
1447 if test "x$lt_cv_ar_at_file" = xno; then
1517 if test no = "$lt_cv_ar_at_file"; then
14481518 archiver_list_spec=
14491519 else
14501520 archiver_list_spec=$lt_cv_ar_at_file
14751545
14761546 if test -n "$RANLIB"; then
14771547 case $host_os in
1478 openbsd*)
1548 bitrig* | openbsd*)
14791549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14801550 ;;
14811551 *)
15111581 [$2=no
15121582 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15131583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1514 lt_compiler_flag="$3"
1584 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
15151585 # Insert the option either (1) after the last *FLAGS variable, or
15161586 # (2) before a word containing "conftest.", or (3) at the end.
15171587 # Note that $ac_compile itself does not contain backslashes and begins
15381608 $RM conftest*
15391609 ])
15401610
1541 if test x"[$]$2" = xyes; then
1611 if test yes = "[$]$2"; then
15421612 m4_if([$5], , :, [$5])
15431613 else
15441614 m4_if([$6], , :, [$6])
15601630 m4_require([_LT_DECL_SED])dnl
15611631 AC_CACHE_CHECK([$1], [$2],
15621632 [$2=no
1563 save_LDFLAGS="$LDFLAGS"
1633 save_LDFLAGS=$LDFLAGS
15641634 LDFLAGS="$LDFLAGS $3"
15651635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15661636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15791649 fi
15801650 fi
15811651 $RM -r conftest*
1582 LDFLAGS="$save_LDFLAGS"
1652 LDFLAGS=$save_LDFLAGS
15831653 ])
15841654
1585 if test x"[$]$2" = xyes; then
1655 if test yes = "[$]$2"; then
15861656 m4_if([$4], , :, [$4])
15871657 else
15881658 m4_if([$5], , :, [$5])
16031673 AC_MSG_CHECKING([the maximum length of command line arguments])
16041674 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
16051675 i=0
1606 teststring="ABCD"
1676 teststring=ABCD
16071677
16081678 case $build_os in
16091679 msdosdjgpp*)
16431713 lt_cv_sys_max_cmd_len=8192;
16441714 ;;
16451715
1646 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1716 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
16471717 # This has been around since 386BSD, at least. Likely further.
16481718 if test -x /sbin/sysctl; then
16491719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16931763 ;;
16941764 *)
16951765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1696 if test -n "$lt_cv_sys_max_cmd_len"; then
1766 if test -n "$lt_cv_sys_max_cmd_len" && \
1767 test undefined != "$lt_cv_sys_max_cmd_len"; then
16971768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16981769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16991770 else
17001771 # Make teststring a little bigger before we do anything with it.
17011772 # a 1K string should be a reasonable start.
1702 for i in 1 2 3 4 5 6 7 8 ; do
1773 for i in 1 2 3 4 5 6 7 8; do
17031774 teststring=$teststring$teststring
17041775 done
17051776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
17061777 # If test is not a shell built-in, we'll probably end up computing a
17071778 # maximum length that is only half of the actual maximum length, but
17081779 # we can't tell.
1709 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1780 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
17101781 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1711 test $i != 17 # 1/2 MB should be enough
1782 test 17 != "$i" # 1/2 MB should be enough
17121783 do
17131784 i=`expr $i + 1`
17141785 teststring=$teststring$teststring
17241795 ;;
17251796 esac
17261797 ])
1727 if test -n $lt_cv_sys_max_cmd_len ; then
1798 if test -n "$lt_cv_sys_max_cmd_len"; then
17281799 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
17291800 else
17301801 AC_MSG_RESULT(none)
17521823 # ----------------------------------------------------------------
17531824 m4_defun([_LT_TRY_DLOPEN_SELF],
17541825 [m4_require([_LT_HEADER_DLFCN])dnl
1755 if test "$cross_compiling" = yes; then :
1826 if test yes = "$cross_compiling"; then :
17561827 [$4]
17571828 else
17581829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17991870 # endif
18001871 #endif
18011872
1802 /* When -fvisbility=hidden is used, assume the code has been annotated
1873 /* When -fvisibility=hidden is used, assume the code has been annotated
18031874 correspondingly for the symbols needed. */
1804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1875 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18051876 int fnord () __attribute__((visibility("default")));
18061877 #endif
18071878
18271898 return status;
18281899 }]
18291900 _LT_EOF
1830 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1901 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
18311902 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
18321903 lt_status=$?
18331904 case x$lt_status in
18481919 # ------------------
18491920 AC_DEFUN([LT_SYS_DLOPEN_SELF],
18501921 [m4_require([_LT_HEADER_DLFCN])dnl
1851 if test "x$enable_dlopen" != xyes; then
1922 if test yes != "$enable_dlopen"; then
18521923 enable_dlopen=unknown
18531924 enable_dlopen_self=unknown
18541925 enable_dlopen_self_static=unknown
18581929
18591930 case $host_os in
18601931 beos*)
1861 lt_cv_dlopen="load_add_on"
1932 lt_cv_dlopen=load_add_on
18621933 lt_cv_dlopen_libs=
18631934 lt_cv_dlopen_self=yes
18641935 ;;
18651936
18661937 mingw* | pw32* | cegcc*)
1867 lt_cv_dlopen="LoadLibrary"
1938 lt_cv_dlopen=LoadLibrary
18681939 lt_cv_dlopen_libs=
18691940 ;;
18701941
18711942 cygwin*)
1872 lt_cv_dlopen="dlopen"
1943 lt_cv_dlopen=dlopen
18731944 lt_cv_dlopen_libs=
18741945 ;;
18751946
18761947 darwin*)
1877 # if libdl is installed we need to link against it
1948 # if libdl is installed we need to link against it
18781949 AC_CHECK_LIB([dl], [dlopen],
1879 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1880 lt_cv_dlopen="dyld"
1950 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1951 lt_cv_dlopen=dyld
18811952 lt_cv_dlopen_libs=
18821953 lt_cv_dlopen_self=yes
18831954 ])
18841955 ;;
18851956
1957 tpf*)
1958 # Don't try to run any link tests for TPF. We know it's impossible
1959 # because TPF is a cross-compiler, and we know how we open DSOs.
1960 lt_cv_dlopen=dlopen
1961 lt_cv_dlopen_libs=
1962 lt_cv_dlopen_self=no
1963 ;;
1964
18861965 *)
18871966 AC_CHECK_FUNC([shl_load],
1888 [lt_cv_dlopen="shl_load"],
1967 [lt_cv_dlopen=shl_load],
18891968 [AC_CHECK_LIB([dld], [shl_load],
1890 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1969 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
18911970 [AC_CHECK_FUNC([dlopen],
1892 [lt_cv_dlopen="dlopen"],
1971 [lt_cv_dlopen=dlopen],
18931972 [AC_CHECK_LIB([dl], [dlopen],
1894 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1973 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
18951974 [AC_CHECK_LIB([svld], [dlopen],
1896 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1975 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
18971976 [AC_CHECK_LIB([dld], [dld_link],
1898 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1977 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
18991978 ])
19001979 ])
19011980 ])
19041983 ;;
19051984 esac
19061985
1907 if test "x$lt_cv_dlopen" != xno; then
1986 if test no = "$lt_cv_dlopen"; then
1987 enable_dlopen=no
1988 else
19081989 enable_dlopen=yes
1909 else
1910 enable_dlopen=no
19111990 fi
19121991
19131992 case $lt_cv_dlopen in
19141993 dlopen)
1915 save_CPPFLAGS="$CPPFLAGS"
1916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1917
1918 save_LDFLAGS="$LDFLAGS"
1994 save_CPPFLAGS=$CPPFLAGS
1995 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1996
1997 save_LDFLAGS=$LDFLAGS
19191998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19201999
1921 save_LIBS="$LIBS"
2000 save_LIBS=$LIBS
19222001 LIBS="$lt_cv_dlopen_libs $LIBS"
19232002
19242003 AC_CACHE_CHECK([whether a program can dlopen itself],
19282007 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
19292008 ])
19302009
1931 if test "x$lt_cv_dlopen_self" = xyes; then
2010 if test yes = "$lt_cv_dlopen_self"; then
19322011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19332012 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
19342013 lt_cv_dlopen_self_static, [dnl
19382017 ])
19392018 fi
19402019
1941 CPPFLAGS="$save_CPPFLAGS"
1942 LDFLAGS="$save_LDFLAGS"
1943 LIBS="$save_LIBS"
2020 CPPFLAGS=$save_CPPFLAGS
2021 LDFLAGS=$save_LDFLAGS
2022 LIBS=$save_LIBS
19442023 ;;
19452024 esac
19462025
20322111 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20332112 _LT_COMPILER_C_O([$1])
20342113
2035 hard_links="nottested"
2036 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2114 hard_links=nottested
2115 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
20372116 # do not overwrite the value of need_locks provided by the user
20382117 AC_MSG_CHECKING([if we can lock with hard links])
20392118 hard_links=yes
20432122 ln conftest.a conftest.b 2>&5 || hard_links=no
20442123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20452124 AC_MSG_RESULT([$hard_links])
2046 if test "$hard_links" = no; then
2047 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2125 if test no = "$hard_links"; then
2126 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
20482127 need_locks=warn
20492128 fi
20502129 else
20712150 _LT_DECL([], [objdir], [0],
20722151 [The name of the directory that contains temporary libtool files])dnl
20732152 m4_pattern_allow([LT_OBJDIR])dnl
2074 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2075 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2153 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2154 [Define to the sub-directory where libtool stores uninstalled libraries.])
20762155 ])# _LT_CHECK_OBJDIR
20772156
20782157
20842163 _LT_TAGVAR(hardcode_action, $1)=
20852164 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
20862165 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2087 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2166 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
20882167
20892168 # We can hardcode non-existent directories.
2090 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2169 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
20912170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20922171 # have to relink, otherwise we might link with an installed library
20932172 # when we should be linking with a yet-to-be-installed one
2094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2095 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2173 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2174 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
20962175 # Linking always hardcodes the temporary library directory.
20972176 _LT_TAGVAR(hardcode_action, $1)=relink
20982177 else
21062185 fi
21072186 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
21082187
2109 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2110 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2188 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2189 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
21112190 # Fast installation is not supported
21122191 enable_fast_install=no
2113 elif test "$shlibpath_overrides_runpath" = yes ||
2114 test "$enable_shared" = no; then
2192 elif test yes = "$shlibpath_overrides_runpath" ||
2193 test no = "$enable_shared"; then
21152194 # Fast installation is not necessary
21162195 enable_fast_install=needless
21172196 fi
21352214 # FIXME - insert some real tests, host_os isn't really good enough
21362215 case $host_os in
21372216 darwin*)
2138 if test -n "$STRIP" ; then
2217 if test -n "$STRIP"; then
21392218 striplib="$STRIP -x"
21402219 old_striplib="$STRIP -S"
21412220 AC_MSG_RESULT([yes])
21532232 ])# _LT_CMD_STRIPLIB
21542233
21552234
2235 # _LT_PREPARE_MUNGE_PATH_LIST
2236 # ---------------------------
2237 # Make sure func_munge_path_list() is defined correctly.
2238 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2239 [[# func_munge_path_list VARIABLE PATH
2240 # -----------------------------------
2241 # VARIABLE is name of variable containing _space_ separated list of
2242 # directories to be munged by the contents of PATH, which is string
2243 # having a format:
2244 # "DIR[:DIR]:"
2245 # string "DIR[ DIR]" will be prepended to VARIABLE
2246 # ":DIR[:DIR]"
2247 # string "DIR[ DIR]" will be appended to VARIABLE
2248 # "DIRP[:DIRP]::[DIRA:]DIRA"
2249 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2250 # "DIRA[ DIRA]" will be appended to VARIABLE
2251 # "DIR[:DIR]"
2252 # VARIABLE will be replaced by "DIR[ DIR]"
2253 func_munge_path_list ()
2254 {
2255 case x@S|@2 in
2256 x)
2257 ;;
2258 *:)
2259 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2260 ;;
2261 x:*)
2262 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2263 ;;
2264 *::*)
2265 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2266 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2267 ;;
2268 *)
2269 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2270 ;;
2271 esac
2272 }
2273 ]])# _LT_PREPARE_PATH_LIST
2274
2275
21562276 # _LT_SYS_DYNAMIC_LINKER([TAG])
21572277 # -----------------------------
21582278 # PORTME Fill in your ld.so characteristics
21632283 m4_require([_LT_DECL_OBJDUMP])dnl
21642284 m4_require([_LT_DECL_SED])dnl
21652285 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2286 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
21662287 AC_MSG_CHECKING([dynamic linker characteristics])
21672288 m4_if([$1],
21682289 [], [
2169 if test "$GCC" = yes; then
2290 if test yes = "$GCC"; then
21702291 case $host_os in
2171 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2172 *) lt_awk_arg="/^libraries:/" ;;
2292 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2293 *) lt_awk_arg='/^libraries:/' ;;
21732294 esac
21742295 case $host_os in
2175 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2176 *) lt_sed_strip_eq="s,=/,/,g" ;;
2296 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2297 *) lt_sed_strip_eq='s|=/|/|g' ;;
21772298 esac
21782299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21792300 case $lt_search_path_spec in
21892310 ;;
21902311 esac
21912312 # Ok, now we have the path, separated by spaces, we can step through it
2192 # and add multilib dir if necessary.
2313 # and add multilib dir if necessary...
21932314 lt_tmp_lt_search_path_spec=
2194 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2315 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2316 # ...but if some path component already ends with the multilib dir we assume
2317 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2318 case "$lt_multi_os_dir; $lt_search_path_spec " in
2319 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2320 lt_multi_os_dir=
2321 ;;
2322 esac
21952323 for lt_sys_path in $lt_search_path_spec; do
2196 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2197 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2198 else
2324 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2326 elif test -n "$lt_multi_os_dir"; then
21992327 test -d "$lt_sys_path" && \
22002328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
22012329 fi
22022330 done
22032331 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2204 BEGIN {RS=" "; FS="/|\n";} {
2205 lt_foo="";
2206 lt_count=0;
2332 BEGIN {RS = " "; FS = "/|\n";} {
2333 lt_foo = "";
2334 lt_count = 0;
22072335 for (lt_i = NF; lt_i > 0; lt_i--) {
22082336 if ($lt_i != "" && $lt_i != ".") {
22092337 if ($lt_i == "..") {
22102338 lt_count++;
22112339 } else {
22122340 if (lt_count == 0) {
2213 lt_foo="/" $lt_i lt_foo;
2341 lt_foo = "/" $lt_i lt_foo;
22142342 } else {
22152343 lt_count--;
22162344 }
22242352 # for these hosts.
22252353 case $host_os in
22262354 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2227 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2355 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
22282356 esac
22292357 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
22302358 else
22332361 library_names_spec=
22342362 libname_spec='lib$name'
22352363 soname_spec=
2236 shrext_cmds=".so"
2364 shrext_cmds=.so
22372365 postinstall_cmds=
22382366 postuninstall_cmds=
22392367 finish_cmds=
22502378 # flags to be left without arguments
22512379 need_version=unknown
22522380
2381 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2382 [User-defined run-time library search path.])
2383
22532384 case $host_os in
22542385 aix3*)
22552386 version_type=linux # correct to gnu/linux during the next big refactor
2256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2387 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22572388 shlibpath_var=LIBPATH
22582389
22592390 # AIX 3 has no versioning support, so we append a major version to the name.
2260 soname_spec='${libname}${release}${shared_ext}$major'
2391 soname_spec='$libname$release$shared_ext$major'
22612392 ;;
22622393
22632394 aix[[4-9]]*)
22652396 need_lib_prefix=no
22662397 need_version=no
22672398 hardcode_into_libs=yes
2268 if test "$host_cpu" = ia64; then
2399 if test ia64 = "$host_cpu"; then
22692400 # AIX 5 supports IA64
2270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2401 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22712402 shlibpath_var=LD_LIBRARY_PATH
22722403 else
22732404 # With GCC up to 2.95.x, collect2 would create an import file
22742405 # for dependence libraries. The import file would start with
2275 # the line `#! .'. This would cause the generated library to
2276 # depend on `.', always an invalid library. This was fixed in
2406 # the line '#! .'. This would cause the generated library to
2407 # depend on '.', always an invalid library. This was fixed in
22772408 # development snapshots of GCC prior to 3.0.
22782409 case $host_os in
22792410 aix4 | aix4.[[01]] | aix4.[[01]].*)
22802411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22812412 echo ' yes '
2282 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2413 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22832414 :
22842415 else
22852416 can_build_shared=no
22862417 fi
22872418 ;;
22882419 esac
2289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2420 # Using Import Files as archive members, it is possible to support
2421 # filename-based versioning of shared library archives on AIX. While
2422 # this would work for both with and without runtime linking, it will
2423 # prevent static linking of such archives. So we do filename-based
2424 # shared library versioning with .so extension only, which is used
2425 # when both runtime linking and shared linking is enabled.
2426 # Unfortunately, runtime linking may impact performance, so we do
2427 # not want this to be the default eventually. Also, we use the
2428 # versioned .so libs for executables only if there is the -brtl
2429 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2430 # To allow for filename-based versioning support, we need to create
2431 # libNAME.so.V as an archive file, containing:
2432 # *) an Import File, referring to the versioned filename of the
2433 # archive as well as the shared archive member, telling the
2434 # bitwidth (32 or 64) of that shared object, and providing the
2435 # list of exported symbols of that shared object, eventually
2436 # decorated with the 'weak' keyword
2437 # *) the shared object with the F_LOADONLY flag set, to really avoid
2438 # it being seen by the linker.
2439 # At run time we better use the real file rather than another symlink,
2440 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2441
2442 case $with_aix_soname,$aix_use_runtimelinking in
2443 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22902444 # soname into executable. Probably we can add versioning support to
22912445 # collect2, so additional links can be useful in future.
2292 if test "$aix_use_runtimelinking" = yes; then
2446 aix,yes) # traditional libtool
2447 dynamic_linker='AIX unversionable lib.so'
22932448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22942449 # instead of lib<name>.a to let people know that these are not
22952450 # typical AIX shared libraries.
2296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2297 else
2451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2452 ;;
2453 aix,no) # traditional AIX only
2454 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
22982455 # We preserve .a as extension for shared libraries through AIX4.2
22992456 # and later when we are not doing run time linking.
2300 library_names_spec='${libname}${release}.a $libname.a'
2301 soname_spec='${libname}${release}${shared_ext}$major'
2302 fi
2457 library_names_spec='$libname$release.a $libname.a'
2458 soname_spec='$libname$release$shared_ext$major'
2459 ;;
2460 svr4,*) # full svr4 only
2461 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2462 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2463 # We do not specify a path in Import Files, so LIBPATH fires.
2464 shlibpath_overrides_runpath=yes
2465 ;;
2466 *,yes) # both, prefer svr4
2467 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2468 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2469 # unpreferred sharedlib libNAME.a needs extra handling
2470 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2471 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2472 # We do not specify a path in Import Files, so LIBPATH fires.
2473 shlibpath_overrides_runpath=yes
2474 ;;
2475 *,no) # both, prefer aix
2476 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2477 library_names_spec='$libname$release.a $libname.a'
2478 soname_spec='$libname$release$shared_ext$major'
2479 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2480 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2481 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2482 ;;
2483 esac
23032484 shlibpath_var=LIBPATH
23042485 fi
23052486 ;;
23092490 powerpc)
23102491 # Since July 2007 AmigaOS4 officially supports .so libraries.
23112492 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23132494 ;;
23142495 m68k)
23152496 library_names_spec='$libname.ixlibrary $libname.a'
23162497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2317 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2498 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
23182499 ;;
23192500 esac
23202501 ;;
23212502
23222503 beos*)
2323 library_names_spec='${libname}${shared_ext}'
2504 library_names_spec='$libname$shared_ext'
23242505 dynamic_linker="$host_os ld.so"
23252506 shlibpath_var=LIBRARY_PATH
23262507 ;;
23282509 bsdi[[45]]*)
23292510 version_type=linux # correct to gnu/linux during the next big refactor
23302511 need_version=no
2331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2332 soname_spec='${libname}${release}${shared_ext}$major'
2512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2513 soname_spec='$libname$release$shared_ext$major'
23332514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23342515 shlibpath_var=LD_LIBRARY_PATH
23352516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23412522
23422523 cygwin* | mingw* | pw32* | cegcc*)
23432524 version_type=windows
2344 shrext_cmds=".dll"
2525 shrext_cmds=.dll
23452526 need_version=no
23462527 need_lib_prefix=no
23472528
23502531 # gcc
23512532 library_names_spec='$libname.dll.a'
23522533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2353 postinstall_cmds='base_file=`basename \${file}`~
2354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2534 postinstall_cmds='base_file=`basename \$file`~
2535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23552536 dldir=$destdir/`dirname \$dlpath`~
23562537 test -d \$dldir || mkdir -p \$dldir~
23572538 $install_prog $dir/$dlname \$dldir/$dlname~
23672548 case $host_os in
23682549 cygwin*)
23692550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2370 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2551 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23712552 m4_if([$1], [],[
23722553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
23732554 ;;
23742555 mingw* | cegcc*)
23752556 # MinGW DLLs use traditional 'lib' prefix
2376 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2557 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23772558 ;;
23782559 pw32*)
23792560 # pw32 DLLs use 'pw' prefix rather than 'lib'
2380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2561 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23812562 ;;
23822563 esac
23832564 dynamic_linker='Win32 ld.exe'
23862567 *,cl*)
23872568 # Native MSVC
23882569 libname_spec='$name'
2389 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2390 library_names_spec='${libname}.dll.lib'
2570 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2571 library_names_spec='$libname.dll.lib'
23912572
23922573 case $build_os in
23932574 mingw*)
24142595 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24152596 ;;
24162597 *)
2417 sys_lib_search_path_spec="$LIB"
2598 sys_lib_search_path_spec=$LIB
24182599 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
24192600 # It is most probably a Windows format PATH.
24202601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24272608 esac
24282609
24292610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2430 postinstall_cmds='base_file=`basename \${file}`~
2431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2611 postinstall_cmds='base_file=`basename \$file`~
2612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
24322613 dldir=$destdir/`dirname \$dlpath`~
24332614 test -d \$dldir || mkdir -p \$dldir~
24342615 $install_prog $dir/$dlname \$dldir/$dlname'
24412622
24422623 *)
24432624 # Assume MSVC wrapper
2444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2625 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
24452626 dynamic_linker='Win32 ld.exe'
24462627 ;;
24472628 esac
24542635 version_type=darwin
24552636 need_lib_prefix=no
24562637 need_version=no
2457 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2458 soname_spec='${libname}${release}${major}$shared_ext'
2638 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2639 soname_spec='$libname$release$major$shared_ext'
24592640 shlibpath_overrides_runpath=yes
24602641 shlibpath_var=DYLD_LIBRARY_PATH
24612642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24682649 version_type=linux # correct to gnu/linux during the next big refactor
24692650 need_lib_prefix=no
24702651 need_version=no
2471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2472 soname_spec='${libname}${release}${shared_ext}$major'
2652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2653 soname_spec='$libname$release$shared_ext$major'
24732654 shlibpath_var=LD_LIBRARY_PATH
24742655 ;;
24752656
24872668 version_type=freebsd-$objformat
24882669 case $version_type in
24892670 freebsd-elf*)
2490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2672 soname_spec='$libname$release$shared_ext$major'
24912673 need_version=no
24922674 need_lib_prefix=no
24932675 ;;
24942676 freebsd-*)
2495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24962678 need_version=yes
24972679 ;;
24982680 esac
25172699 esac
25182700 ;;
25192701
2520 gnu*)
2521 version_type=linux # correct to gnu/linux during the next big refactor
2522 need_lib_prefix=no
2523 need_version=no
2524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2525 soname_spec='${libname}${release}${shared_ext}$major'
2526 shlibpath_var=LD_LIBRARY_PATH
2527 shlibpath_overrides_runpath=no
2528 hardcode_into_libs=yes
2529 ;;
2530
25312702 haiku*)
25322703 version_type=linux # correct to gnu/linux during the next big refactor
25332704 need_lib_prefix=no
25342705 need_version=no
25352706 dynamic_linker="$host_os runtime_loader"
2536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2537 soname_spec='${libname}${release}${shared_ext}$major'
2707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2708 soname_spec='$libname$release$shared_ext$major'
25382709 shlibpath_var=LIBRARY_PATH
2539 shlibpath_overrides_runpath=yes
2710 shlibpath_overrides_runpath=no
25402711 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
25412712 hardcode_into_libs=yes
25422713 ;;
25542725 dynamic_linker="$host_os dld.so"
25552726 shlibpath_var=LD_LIBRARY_PATH
25562727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2558 soname_spec='${libname}${release}${shared_ext}$major'
2559 if test "X$HPUX_IA64_MODE" = X32; then
2728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2729 soname_spec='$libname$release$shared_ext$major'
2730 if test 32 = "$HPUX_IA64_MODE"; then
25602731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2732 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
25612733 else
25622734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2735 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
25632736 fi
2564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25652737 ;;
25662738 hppa*64*)
25672739 shrext_cmds='.sl'
25692741 dynamic_linker="$host_os dld.sl"
25702742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25712743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2573 soname_spec='${libname}${release}${shared_ext}$major'
2744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2745 soname_spec='$libname$release$shared_ext$major'
25742746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25752747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25762748 ;;
25792751 dynamic_linker="$host_os dld.sl"
25802752 shlibpath_var=SHLIB_PATH
25812753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2583 soname_spec='${libname}${release}${shared_ext}$major'
2754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2755 soname_spec='$libname$release$shared_ext$major'
25842756 ;;
25852757 esac
25862758 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
25932765 version_type=linux # correct to gnu/linux during the next big refactor
25942766 need_lib_prefix=no
25952767 need_version=no
2596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2597 soname_spec='${libname}${release}${shared_ext}$major'
2768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2769 soname_spec='$libname$release$shared_ext$major'
25982770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25992771 shlibpath_var=LD_LIBRARY_PATH
26002772 shlibpath_overrides_runpath=no
26052777 case $host_os in
26062778 nonstopux*) version_type=nonstopux ;;
26072779 *)
2608 if test "$lt_cv_prog_gnu_ld" = yes; then
2780 if test yes = "$lt_cv_prog_gnu_ld"; then
26092781 version_type=linux # correct to gnu/linux during the next big refactor
26102782 else
26112783 version_type=irix
26132785 esac
26142786 need_lib_prefix=no
26152787 need_version=no
2616 soname_spec='${libname}${release}${shared_ext}$major'
2617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2788 soname_spec='$libname$release$shared_ext$major'
2789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
26182790 case $host_os in
26192791 irix5* | nonstopux*)
26202792 libsuff= shlibsuff=
26332805 esac
26342806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26352807 shlibpath_overrides_runpath=no
2636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2808 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2809 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
26382810 hardcode_into_libs=yes
26392811 ;;
26402812
26432815 dynamic_linker=no
26442816 ;;
26452817
2818 linux*android*)
2819 version_type=none # Android doesn't support versioned libraries.
2820 need_lib_prefix=no
2821 need_version=no
2822 library_names_spec='$libname$release$shared_ext'
2823 soname_spec='$libname$release$shared_ext'
2824 finish_cmds=
2825 shlibpath_var=LD_LIBRARY_PATH
2826 shlibpath_overrides_runpath=yes
2827
2828 # This implies no fast_install, which is unacceptable.
2829 # Some rework will be needed to allow for fast_install
2830 # before this can be enabled.
2831 hardcode_into_libs=yes
2832
2833 dynamic_linker='Android linker'
2834 # Don't embed -rpath directories since the linker doesn't support them.
2835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2836 ;;
2837
26462838 # This must be glibc/ELF.
2647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2839 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
26482840 version_type=linux # correct to gnu/linux during the next big refactor
26492841 need_lib_prefix=no
26502842 need_version=no
2651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2652 soname_spec='${libname}${release}${shared_ext}$major'
2843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2844 soname_spec='$libname$release$shared_ext$major'
26532845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26542846 shlibpath_var=LD_LIBRARY_PATH
26552847 shlibpath_overrides_runpath=no
26772869 # Add ABI-specific directories to the system library path.
26782870 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
26792871
2680 # Append ld.so.conf contents to the search path
2872 # Ideally, we could use ldconfig to report *all* directores which are
2873 # searched for libraries, however this is still not possible. Aside from not
2874 # being certain /sbin/ldconfig is available, command
2875 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2876 # even though it is searched at run-time. Try to do the best guess by
2877 # appending ld.so.conf contents (and includes) to the search path.
26812878 if test -f /etc/ld.so.conf; then
26822879 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
26832880 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2684
26852881 fi
26862882
26872883 # We used to test for /lib/ld.so.1 and disable shared libraries on
26982894 need_lib_prefix=no
26992895 need_version=no
27002896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2897 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27022898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27032899 dynamic_linker='NetBSD (a.out) ld.so'
27042900 else
2705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2706 soname_spec='${libname}${release}${shared_ext}$major'
2901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2902 soname_spec='$libname$release$shared_ext$major'
27072903 dynamic_linker='NetBSD ld.elf_so'
27082904 fi
27092905 shlibpath_var=LD_LIBRARY_PATH
27132909
27142910 newsos6)
27152911 version_type=linux # correct to gnu/linux during the next big refactor
2716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27172913 shlibpath_var=LD_LIBRARY_PATH
27182914 shlibpath_overrides_runpath=yes
27192915 ;;
27222918 version_type=qnx
27232919 need_lib_prefix=no
27242920 need_version=no
2725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2726 soname_spec='${libname}${release}${shared_ext}$major'
2921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2922 soname_spec='$libname$release$shared_ext$major'
27272923 shlibpath_var=LD_LIBRARY_PATH
27282924 shlibpath_overrides_runpath=no
27292925 hardcode_into_libs=yes
27302926 dynamic_linker='ldqnx.so'
27312927 ;;
27322928
2733 openbsd*)
2929 openbsd* | bitrig*)
27342930 version_type=sunos
2735 sys_lib_dlsearch_path_spec="/usr/lib"
2931 sys_lib_dlsearch_path_spec=/usr/lib
27362932 need_lib_prefix=no
2737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2738 case $host_os in
2739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2740 *) need_version=no ;;
2741 esac
2742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2934 need_version=no
2935 else
2936 need_version=yes
2937 fi
2938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27432939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27442940 shlibpath_var=LD_LIBRARY_PATH
2745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2746 case $host_os in
2747 openbsd2.[[89]] | openbsd2.[[89]].*)
2748 shlibpath_overrides_runpath=no
2749 ;;
2750 *)
2751 shlibpath_overrides_runpath=yes
2752 ;;
2753 esac
2754 else
2755 shlibpath_overrides_runpath=yes
2756 fi
2941 shlibpath_overrides_runpath=yes
27572942 ;;
27582943
27592944 os2*)
27602945 libname_spec='$name'
2761 shrext_cmds=".dll"
2946 version_type=windows
2947 shrext_cmds=.dll
2948 need_version=no
27622949 need_lib_prefix=no
2763 library_names_spec='$libname${shared_ext} $libname.a'
2950 # OS/2 can only load a DLL with a base name of 8 characters or less.
2951 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2952 v=$($ECHO $release$versuffix | tr -d .-);
2953 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2954 $ECHO $n$v`$shared_ext'
2955 library_names_spec='${libname}_dll.$libext'
27642956 dynamic_linker='OS/2 ld.exe'
2765 shlibpath_var=LIBPATH
2957 shlibpath_var=BEGINLIBPATH
2958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2960 postinstall_cmds='base_file=`basename \$file`~
2961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2962 dldir=$destdir/`dirname \$dlpath`~
2963 test -d \$dldir || mkdir -p \$dldir~
2964 $install_prog $dir/$dlname \$dldir/$dlname~
2965 chmod a+x \$dldir/$dlname~
2966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2968 fi'
2969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2970 dlpath=$dir/\$dldll~
2971 $RM \$dlpath'
27662972 ;;
27672973
27682974 osf3* | osf4* | osf5*)
27692975 version_type=osf
27702976 need_lib_prefix=no
27712977 need_version=no
2772 soname_spec='${libname}${release}${shared_ext}$major'
2773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2978 soname_spec='$libname$release$shared_ext$major'
2979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27742980 shlibpath_var=LD_LIBRARY_PATH
27752981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27772983 ;;
27782984
27792985 rdos*)
27842990 version_type=linux # correct to gnu/linux during the next big refactor
27852991 need_lib_prefix=no
27862992 need_version=no
2787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2788 soname_spec='${libname}${release}${shared_ext}$major'
2993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2994 soname_spec='$libname$release$shared_ext$major'
27892995 shlibpath_var=LD_LIBRARY_PATH
27902996 shlibpath_overrides_runpath=yes
27912997 hardcode_into_libs=yes
27953001
27963002 sunos4*)
27973003 version_type=sunos
2798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3004 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27993005 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28003006 shlibpath_var=LD_LIBRARY_PATH
28013007 shlibpath_overrides_runpath=yes
2802 if test "$with_gnu_ld" = yes; then
3008 if test yes = "$with_gnu_ld"; then
28033009 need_lib_prefix=no
28043010 fi
28053011 need_version=yes
28073013
28083014 sysv4 | sysv4.3*)
28093015 version_type=linux # correct to gnu/linux during the next big refactor
2810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2811 soname_spec='${libname}${release}${shared_ext}$major'
3016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3017 soname_spec='$libname$release$shared_ext$major'
28123018 shlibpath_var=LD_LIBRARY_PATH
28133019 case $host_vendor in
28143020 sni)
28293035 ;;
28303036
28313037 sysv4*MP*)
2832 if test -d /usr/nec ;then
3038 if test -d /usr/nec; then
28333039 version_type=linux # correct to gnu/linux during the next big refactor
2834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2835 soname_spec='$libname${shared_ext}.$major'
3040 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3041 soname_spec='$libname$shared_ext.$major'
28363042 shlibpath_var=LD_LIBRARY_PATH
28373043 fi
28383044 ;;
28393045
28403046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2841 version_type=freebsd-elf
3047 version_type=sco
28423048 need_lib_prefix=no
28433049 need_version=no
2844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2845 soname_spec='${libname}${release}${shared_ext}$major'
3050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3051 soname_spec='$libname$release$shared_ext$major'
28463052 shlibpath_var=LD_LIBRARY_PATH
28473053 shlibpath_overrides_runpath=yes
28483054 hardcode_into_libs=yes
2849 if test "$with_gnu_ld" = yes; then
3055 if test yes = "$with_gnu_ld"; then
28503056 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28513057 else
28523058 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28643070 version_type=linux # correct to gnu/linux during the next big refactor
28653071 need_lib_prefix=no
28663072 need_version=no
2867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
28683074 shlibpath_var=LD_LIBRARY_PATH
28693075 shlibpath_overrides_runpath=no
28703076 hardcode_into_libs=yes
28723078
28733079 uts4*)
28743080 version_type=linux # correct to gnu/linux during the next big refactor
2875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2876 soname_spec='${libname}${release}${shared_ext}$major'
3081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3082 soname_spec='$libname$release$shared_ext$major'
28773083 shlibpath_var=LD_LIBRARY_PATH
28783084 ;;
28793085
28823088 ;;
28833089 esac
28843090 AC_MSG_RESULT([$dynamic_linker])
2885 test "$dynamic_linker" = no && can_build_shared=no
3091 test no = "$dynamic_linker" && can_build_shared=no
28863092
28873093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2888 if test "$GCC" = yes; then
3094 if test yes = "$GCC"; then
28893095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28903096 fi
28913097
2892 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2893 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3098 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3099 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
28943100 fi
2895 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2896 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3101
3102 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3103 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
28973104 fi
3105
3106 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3107 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3108
3109 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3110 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3111
3112 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3113 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
28983114
28993115 _LT_DECL([], [variables_saved_for_relink], [1],
29003116 [Variables whose values should be saved in libtool wrapper scripts and
29283144 [Whether we should hardcode library paths into libraries])
29293145 _LT_DECL([], [sys_lib_search_path_spec], [2],
29303146 [Compile-time system search path for libraries])
2931 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2932 [Run-time system search path for libraries])
3147 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3148 [Detected run-time system search path for libraries])
3149 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3150 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
29333151 ])# _LT_SYS_DYNAMIC_LINKER
29343152
29353153
29363154 # _LT_PATH_TOOL_PREFIX(TOOL)
29373155 # --------------------------
2938 # find a file program which can recognize shared library
3156 # find a file program that can recognize shared library
29393157 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
29403158 [m4_require([_LT_DECL_EGREP])dnl
29413159 AC_MSG_CHECKING([for $1])
29423160 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
29433161 [case $MAGIC_CMD in
29443162 [[\\/*] | ?:[\\/]*])
2945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3163 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
29463164 ;;
29473165 *)
2948 lt_save_MAGIC_CMD="$MAGIC_CMD"
2949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3166 lt_save_MAGIC_CMD=$MAGIC_CMD
3167 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
29503168 dnl $ac_dummy forces splitting on constant user-supplied paths.
29513169 dnl POSIX.2 word splitting is done only on the output of word expansions,
29523170 dnl not every word. This closes a longstanding sh security hole.
29533171 ac_dummy="m4_if([$2], , $PATH, [$2])"
29543172 for ac_dir in $ac_dummy; do
2955 IFS="$lt_save_ifs"
3173 IFS=$lt_save_ifs
29563174 test -z "$ac_dir" && ac_dir=.
2957 if test -f $ac_dir/$1; then
2958 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3175 if test -f "$ac_dir/$1"; then
3176 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
29593177 if test -n "$file_magic_test_file"; then
29603178 case $deplibs_check_method in
29613179 "file_magic "*)
29623180 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3181 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29643182 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
29653183 $EGREP "$file_magic_regex" > /dev/null; then
29663184 :
29833201 break
29843202 fi
29853203 done
2986 IFS="$lt_save_ifs"
2987 MAGIC_CMD="$lt_save_MAGIC_CMD"
3204 IFS=$lt_save_ifs
3205 MAGIC_CMD=$lt_save_MAGIC_CMD
29883206 ;;
29893207 esac])
2990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3208 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29913209 if test -n "$MAGIC_CMD"; then
29923210 AC_MSG_RESULT($MAGIC_CMD)
29933211 else
30053223
30063224 # _LT_PATH_MAGIC
30073225 # --------------
3008 # find a file program which can recognize a shared library
3226 # find a file program that can recognize a shared library
30093227 m4_defun([_LT_PATH_MAGIC],
30103228 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
30113229 if test -z "$lt_cv_path_MAGIC_CMD"; then
30323250 AC_ARG_WITH([gnu-ld],
30333251 [AS_HELP_STRING([--with-gnu-ld],
30343252 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3035 [test "$withval" = no || with_gnu_ld=yes],
3253 [test no = "$withval" || with_gnu_ld=yes],
30363254 [with_gnu_ld=no])dnl
30373255
30383256 ac_prog=ld
3039 if test "$GCC" = yes; then
3257 if test yes = "$GCC"; then
30403258 # Check if gcc -print-prog-name=ld gives a path.
30413259 AC_MSG_CHECKING([for ld used by $CC])
30423260 case $host in
30433261 *-*-mingw*)
3044 # gcc leaves a trailing carriage return which upsets mingw
3262 # gcc leaves a trailing carriage return, which upsets mingw
30453263 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
30463264 *)
30473265 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
30553273 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
30563274 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
30573275 done
3058 test -z "$LD" && LD="$ac_prog"
3276 test -z "$LD" && LD=$ac_prog
30593277 ;;
30603278 "")
30613279 # If it fails, then pretend we aren't using GCC.
30663284 with_gnu_ld=unknown
30673285 ;;
30683286 esac
3069 elif test "$with_gnu_ld" = yes; then
3287 elif test yes = "$with_gnu_ld"; then
30703288 AC_MSG_CHECKING([for GNU ld])
30713289 else
30723290 AC_MSG_CHECKING([for non-GNU ld])
30733291 fi
30743292 AC_CACHE_VAL(lt_cv_path_LD,
30753293 [if test -z "$LD"; then
3076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3294 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
30773295 for ac_dir in $PATH; do
3078 IFS="$lt_save_ifs"
3296 IFS=$lt_save_ifs
30793297 test -z "$ac_dir" && ac_dir=.
30803298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3081 lt_cv_path_LD="$ac_dir/$ac_prog"
3299 lt_cv_path_LD=$ac_dir/$ac_prog
30823300 # Check to see if the program is GNU ld. I'd rather use --version,
30833301 # but apparently some variants of GNU ld only accept -v.
30843302 # Break only if it was the GNU/non-GNU ld that we prefer.
30853303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
30863304 *GNU* | *'with BFD'*)
3087 test "$with_gnu_ld" != no && break
3305 test no != "$with_gnu_ld" && break
30883306 ;;
30893307 *)
3090 test "$with_gnu_ld" != yes && break
3308 test yes != "$with_gnu_ld" && break
30913309 ;;
30923310 esac
30933311 fi
30943312 done
3095 IFS="$lt_save_ifs"
3313 IFS=$lt_save_ifs
30963314 else
3097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3315 lt_cv_path_LD=$LD # Let the user override the test with a path.
30983316 fi])
3099 LD="$lt_cv_path_LD"
3317 LD=$lt_cv_path_LD
31003318 if test -n "$LD"; then
31013319 AC_MSG_RESULT($LD)
31023320 else
31503368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31513369 case $host_os in
31523370 cygwin* | mingw* | pw32* | cegcc*)
3153 if test "$GCC" != yes; then
3371 if test yes != "$GCC"; then
31543372 reload_cmds=false
31553373 fi
31563374 ;;
31573375 darwin*)
3158 if test "$GCC" = yes; then
3159 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3376 if test yes = "$GCC"; then
3377 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
31603378 else
31613379 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31623380 fi
31653383 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
31663384 _LT_TAGDECL([], [reload_cmds], [2])dnl
31673385 ])# _LT_CMD_RELOAD
3386
3387
3388 # _LT_PATH_DD
3389 # -----------
3390 # find a working dd
3391 m4_defun([_LT_PATH_DD],
3392 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3393 [printf 0123456789abcdef0123456789abcdef >conftest.i
3394 cat conftest.i conftest.i >conftest2.i
3395 : ${lt_DD:=$DD}
3396 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3397 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3398 cmp -s conftest.i conftest.out \
3399 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3400 fi])
3401 rm -f conftest.i conftest2.i conftest.out])
3402 ])# _LT_PATH_DD
3403
3404
3405 # _LT_CMD_TRUNCATE
3406 # ----------------
3407 # find command to truncate a binary pipe
3408 m4_defun([_LT_CMD_TRUNCATE],
3409 [m4_require([_LT_PATH_DD])
3410 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3411 [printf 0123456789abcdef0123456789abcdef >conftest.i
3412 cat conftest.i conftest.i >conftest2.i
3413 lt_cv_truncate_bin=
3414 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3415 cmp -s conftest.i conftest.out \
3416 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3417 fi
3418 rm -f conftest.i conftest2.i conftest.out
3419 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3420 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3421 [Command to truncate a binary pipe])
3422 ])# _LT_CMD_TRUNCATE
31683423
31693424
31703425 # _LT_CHECK_MAGIC_METHOD
31823437 # Need to set the preceding variable on all platforms that support
31833438 # interlibrary dependencies.
31843439 # 'none' -- dependencies not supported.
3185 # `unknown' -- same as none, but documents that we really don't know.
3440 # 'unknown' -- same as none, but documents that we really don't know.
31863441 # 'pass_all' -- all dependencies passed with no checks.
31873442 # 'test_compile' -- check by making test program.
31883443 # 'file_magic [[regex]]' -- check by looking for files in library path
3189 # which responds to the $file_magic_cmd with a given extended regex.
3190 # If you have `file' or equivalent on your system and you're not sure
3191 # whether `pass_all' will *always* work, you probably want this one.
3444 # that responds to the $file_magic_cmd with a given extended regex.
3445 # If you have 'file' or equivalent on your system and you're not sure
3446 # whether 'pass_all' will *always* work, you probably want this one.
31923447
31933448 case $host_os in
31943449 aix[[4-9]]*)
32153470 # Base MSYS/MinGW do not provide the 'file' command needed by
32163471 # func_win32_libid shell function, so use a weaker test based on 'objdump',
32173472 # unless we find 'file', for example because we are cross-compiling.
3218 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3219 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3473 if ( file / ) >/dev/null 2>&1; then
32203474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32213475 lt_cv_file_magic_cmd='func_win32_libid'
32223476 else
32503504 else
32513505 lt_cv_deplibs_check_method=pass_all
32523506 fi
3253 ;;
3254
3255 gnu*)
3256 lt_cv_deplibs_check_method=pass_all
32573507 ;;
32583508
32593509 haiku*)
32943544 ;;
32953545
32963546 # This must be glibc/ELF.
3297 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3547 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
32983548 lt_cv_deplibs_check_method=pass_all
32993549 ;;
33003550
33163566 lt_cv_deplibs_check_method=pass_all
33173567 ;;
33183568
3319 openbsd*)
3320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3569 openbsd* | bitrig*)
3570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
33213571 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
33223572 else
33233573 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
33703620 tpf*)
33713621 lt_cv_deplibs_check_method=pass_all
33723622 ;;
3623 os2*)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
33733626 esac
33743627 ])
33753628
34103663 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
34113664 [if test -n "$NM"; then
34123665 # Let the user override the test.
3413 lt_cv_path_NM="$NM"
3666 lt_cv_path_NM=$NM
34143667 else
3415 lt_nm_to_check="${ac_tool_prefix}nm"
3668 lt_nm_to_check=${ac_tool_prefix}nm
34163669 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
34173670 lt_nm_to_check="$lt_nm_to_check nm"
34183671 fi
34193672 for lt_tmp_nm in $lt_nm_to_check; do
3420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3673 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
34213674 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3422 IFS="$lt_save_ifs"
3675 IFS=$lt_save_ifs
34233676 test -z "$ac_dir" && ac_dir=.
3424 tmp_nm="$ac_dir/$lt_tmp_nm"
3425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3677 tmp_nm=$ac_dir/$lt_tmp_nm
3678 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
34263679 # Check to see if the nm accepts a BSD-compat flag.
3427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3680 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
34283681 # nm: unknown option "B" ignored
34293682 # Tru64's nm complains that /dev/null is an invalid object file
3430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3431 */dev/null* | *'Invalid file or object type'*)
3683 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3684 case $build_os in
3685 mingw*) lt_bad_file=conftest.nm/nofile ;;
3686 *) lt_bad_file=/dev/null ;;
3687 esac
3688 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3689 *$lt_bad_file* | *'Invalid file or object type'*)
34323690 lt_cv_path_NM="$tmp_nm -B"
3433 break
3691 break 2
34343692 ;;
34353693 *)
34363694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34373695 */dev/null*)
34383696 lt_cv_path_NM="$tmp_nm -p"
3439 break
3697 break 2
34403698 ;;
34413699 *)
34423700 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34473705 esac
34483706 fi
34493707 done
3450 IFS="$lt_save_ifs"
3708 IFS=$lt_save_ifs
34513709 done
34523710 : ${lt_cv_path_NM=no}
34533711 fi])
3454 if test "$lt_cv_path_NM" != "no"; then
3455 NM="$lt_cv_path_NM"
3712 if test no != "$lt_cv_path_NM"; then
3713 NM=$lt_cv_path_NM
34563714 else
34573715 # Didn't find any BSD compatible name lister, look for dumpbin.
34583716 if test -n "$DUMPBIN"; then :
34593717 # Let the user override the test.
34603718 else
34613719 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3462 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3720 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
34633721 *COFF*)
3464 DUMPBIN="$DUMPBIN -symbols"
3722 DUMPBIN="$DUMPBIN -symbols -headers"
34653723 ;;
34663724 *)
34673725 DUMPBIN=:
34693727 esac
34703728 fi
34713729 AC_SUBST([DUMPBIN])
3472 if test "$DUMPBIN" != ":"; then
3473 NM="$DUMPBIN"
3730 if test : != "$DUMPBIN"; then
3731 NM=$DUMPBIN
34743732 fi
34753733 fi
34763734 test -z "$NM" && NM=nm
35163774
35173775 case $host_os in
35183776 cygwin* | mingw* | pw32* | cegcc*)
3519 # two different shell functions defined in ltmain.sh
3520 # decide which to use based on capabilities of $DLLTOOL
3777 # two different shell functions defined in ltmain.sh;
3778 # decide which one to use based on capabilities of $DLLTOOL
35213779 case `$DLLTOOL --help 2>&1` in
35223780 *--identify-strict*)
35233781 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
35293787 ;;
35303788 *)
35313789 # fallback: assume linklib IS sharedlib
3532 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3790 lt_cv_sharedlib_from_linklib_cmd=$ECHO
35333791 ;;
35343792 esac
35353793 ])
35563814 lt_cv_path_mainfest_tool=yes
35573815 fi
35583816 rm -f conftest*])
3559 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3817 if test yes != "$lt_cv_path_mainfest_tool"; then
35603818 MANIFEST_TOOL=:
35613819 fi
35623820 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
35633821 ])# _LT_PATH_MANIFEST_TOOL
3822
3823
3824 # _LT_DLL_DEF_P([FILE])
3825 # ---------------------
3826 # True iff FILE is a Windows DLL '.def' file.
3827 # Keep in sync with func_dll_def_p in the libtool script
3828 AC_DEFUN([_LT_DLL_DEF_P],
3829 [dnl
3830 test DEF = "`$SED -n dnl
3831 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3832 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3833 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3834 -e q dnl Only consider the first "real" line
3835 $1`" dnl
3836 ])# _LT_DLL_DEF_P
35643837
35653838
35663839 # LT_LIB_M
35743847 # These system don't have libm, or don't need it
35753848 ;;
35763849 *-ncr-sysv4.3*)
3577 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3850 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
35783851 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
35793852 ;;
35803853 *)
3581 AC_CHECK_LIB(m, cos, LIBM="-lm")
3854 AC_CHECK_LIB(m, cos, LIBM=-lm)
35823855 ;;
35833856 esac
35843857 AC_SUBST([LIBM])
35973870
35983871 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
35993872
3600 if test "$GCC" = yes; then
3873 if test yes = "$GCC"; then
36013874 case $cc_basename in
36023875 nvcc*)
36033876 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
36493922 symcode='[[ABCDGISTW]]'
36503923 ;;
36513924 hpux*)
3652 if test "$host_cpu" = ia64; then
3925 if test ia64 = "$host_cpu"; then
36533926 symcode='[[ABCDEGRST]]'
36543927 fi
36553928 ;;
36823955 symcode='[[ABCDGIRSTW]]' ;;
36833956 esac
36843957
3958 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3959 # Gets list of data symbols to import.
3960 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3961 # Adjust the below global symbol transforms to fixup imported variables.
3962 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3963 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3964 lt_c_name_lib_hook="\
3965 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3966 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3967 else
3968 # Disable hooks by default.
3969 lt_cv_sys_global_symbol_to_import=
3970 lt_cdecl_hook=
3971 lt_c_name_hook=
3972 lt_c_name_lib_hook=
3973 fi
3974
36853975 # Transform an extracted symbol line into a proper C declaration.
36863976 # Some systems (esp. on ia64) link data and code symbols differently,
36873977 # so use this general approach.
3688 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3978 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3979 $lt_cdecl_hook\
3980 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3981 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
36893982
36903983 # Transform an extracted symbol line into symbol name and symbol address
3691 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3692 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3984 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
3985 $lt_c_name_hook\
3986 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3987 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3988
3989 # Transform an extracted symbol line into symbol name with lib prefix and
3990 # symbol address.
3991 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
3992 $lt_c_name_lib_hook\
3993 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3994 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
3995 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
36933996
36943997 # Handle CRLF in mingw tool chain
36953998 opt_cr=
37074010
37084011 # Write the raw and C identifiers.
37094012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3710 # Fake it for dumpbin and say T for any non-static function
3711 # and D for any global variable.
4013 # Fake it for dumpbin and say T for any non-static function,
4014 # D for any global variable and I for any imported variable.
37124015 # Also find C++ and __fastcall symbols from MSVC++,
37134016 # which start with @ or ?.
37144017 lt_cv_sys_global_symbol_pipe="$AWK ['"\
37154018 " {last_section=section; section=\$ 3};"\
37164019 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37174020 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4021 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4022 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4023 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
37184024 " \$ 0!~/External *\|/{next};"\
37194025 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37204026 " {if(hide[section]) next};"\
3721 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3722 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3723 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3724 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4027 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4028 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4029 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4030 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
37254031 " ' prfx=^$ac_symprfx]"
37264032 else
37274033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37614067 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37624068 cat <<_LT_EOF > conftest.$ac_ext
37634069 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3764 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3765 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4070 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4071 /* DATA imports from DLLs on WIN32 can't be const, because runtime
37664072 relocations are performed -- see ld's documentation on pseudo-relocs. */
37674073 # define LT@&t@_DLSYM_CONST
3768 #elif defined(__osf__)
4074 #elif defined __osf__
37694075 /* This system does not cope well with relocations in const data. */
37704076 # define LT@&t@_DLSYM_CONST
37714077 #else
37914097 {
37924098 { "@PROGRAM@", (void *) 0 },
37934099 _LT_EOF
3794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4100 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37954101 cat <<\_LT_EOF >> conftest.$ac_ext
37964102 {0, (void *) 0}
37974103 };
38114117 mv conftest.$ac_objext conftstm.$ac_objext
38124118 lt_globsym_save_LIBS=$LIBS
38134119 lt_globsym_save_CFLAGS=$CFLAGS
3814 LIBS="conftstm.$ac_objext"
4120 LIBS=conftstm.$ac_objext
38154121 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3816 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4122 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
38174123 pipe_works=yes
38184124 fi
38194125 LIBS=$lt_globsym_save_LIBS
38344140 rm -rf conftest* conftst*
38354141
38364142 # Do not use the global_symbol_pipe unless it works.
3837 if test "$pipe_works" = yes; then
4143 if test yes = "$pipe_works"; then
38384144 break
38394145 else
38404146 lt_cv_sys_global_symbol_pipe=
38614167 [Take the output of nm and produce a listing of raw symbols and C names])
38624168 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
38634169 [Transform the output of nm in a proper C declaration])
4170 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4171 [Transform the output of nm into a list of symbols to manually relocate])
38644172 _LT_DECL([global_symbol_to_c_name_address],
38654173 [lt_cv_sys_global_symbol_to_c_name_address], [1],
38664174 [Transform the output of nm in a C name address pair])
38674175 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
38684176 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
38694177 [Transform the output of nm in a C name address pair when lib prefix is needed])
4178 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4179 [The name lister interface])
38704180 _LT_DECL([], [nm_file_list_spec], [1],
38714181 [Specify filename containing input files for $NM])
38724182 ]) # _LT_CMD_GLOBAL_SYMBOLS
38824192
38834193 m4_if([$1], [CXX], [
38844194 # C++ specific cases for pic, static, wl, etc.
3885 if test "$GXX" = yes; then
4195 if test yes = "$GXX"; then
38864196 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38874197 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38884198
38894199 case $host_os in
38904200 aix*)
38914201 # All AIX code is PIC.
3892 if test "$host_cpu" = ia64; then
4202 if test ia64 = "$host_cpu"; then
38934203 # AIX 5 now supports IA64 processor
38944204 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38954205 fi
4206 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38964207 ;;
38974208
38984209 amigaos*)
39034214 ;;
39044215 m68k)
39054216 # FIXME: we need at least 68020 code to build shared libraries, but
3906 # adding the `-m68020' flag to GCC prevents building anything better,
3907 # like `-m68040'.
4217 # adding the '-m68020' flag to GCC prevents building anything better,
4218 # like '-m68040'.
39084219 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
39094220 ;;
39104221 esac
39204231 # (--disable-auto-import) libraries
39214232 m4_if([$1], [GCJ], [],
39224233 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4234 case $host_os in
4235 os2*)
4236 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4237 ;;
4238 esac
39234239 ;;
39244240 darwin* | rhapsody*)
39254241 # PIC is the default on this platform
39694285 case $host_os in
39704286 aix[[4-9]]*)
39714287 # All AIX code is PIC.
3972 if test "$host_cpu" = ia64; then
4288 if test ia64 = "$host_cpu"; then
39734289 # AIX 5 now supports IA64 processor
39744290 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39754291 else
40104326 case $cc_basename in
40114327 CC*)
40124328 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4013 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4014 if test "$host_cpu" != ia64; then
4329 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4330 if test ia64 != "$host_cpu"; then
40154331 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
40164332 fi
40174333 ;;
40184334 aCC*)
40194335 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4020 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4336 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
40214337 case $host_cpu in
40224338 hppa*64*|ia64*)
40234339 # +Z the default
40464362 ;;
40474363 esac
40484364 ;;
4049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4365 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
40504366 case $cc_basename in
40514367 KCC*)
40524368 # KAI C++ Compiler
40544370 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
40554371 ;;
40564372 ecpc* )
4057 # old Intel C++ for x86_64 which still supported -KPIC.
4373 # old Intel C++ for x86_64, which still supported -KPIC.
40584374 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40594375 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40604376 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
41994515 fi
42004516 ],
42014517 [
4202 if test "$GCC" = yes; then
4518 if test yes = "$GCC"; then
42034519 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42044520 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42054521
42064522 case $host_os in
42074523 aix*)
42084524 # All AIX code is PIC.
4209 if test "$host_cpu" = ia64; then
4525 if test ia64 = "$host_cpu"; then
42104526 # AIX 5 now supports IA64 processor
42114527 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42124528 fi
4529 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42134530 ;;
42144531
42154532 amigaos*)
42204537 ;;
42214538 m68k)
42224539 # FIXME: we need at least 68020 code to build shared libraries, but
4223 # adding the `-m68020' flag to GCC prevents building anything better,
4224 # like `-m68040'.
4540 # adding the '-m68020' flag to GCC prevents building anything better,
4541 # like '-m68040'.
42254542 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
42264543 ;;
42274544 esac
42384555 # (--disable-auto-import) libraries
42394556 m4_if([$1], [GCJ], [],
42404557 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4558 case $host_os in
4559 os2*)
4560 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4561 ;;
4562 esac
42414563 ;;
42424564
42434565 darwin* | rhapsody*)
43084630 case $host_os in
43094631 aix*)
43104632 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4311 if test "$host_cpu" = ia64; then
4633 if test ia64 = "$host_cpu"; then
43124634 # AIX 5 now supports IA64 processor
43134635 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43144636 else
43164638 fi
43174639 ;;
43184640
4641 darwin* | rhapsody*)
4642 # PIC is the default on this platform
4643 # Common symbols not allowed in MH_DYLIB files
4644 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4645 case $cc_basename in
4646 nagfor*)
4647 # NAG Fortran compiler
4648 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4649 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4650 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4651 ;;
4652 esac
4653 ;;
4654
43194655 mingw* | cygwin* | pw32* | os2* | cegcc*)
43204656 # This hack is so that the source file can tell whether it is being
43214657 # built for inclusion in a dll (and should export symbols for example).
43224658 m4_if([$1], [GCJ], [],
43234659 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4660 case $host_os in
4661 os2*)
4662 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4663 ;;
4664 esac
43244665 ;;
43254666
43264667 hpux9* | hpux10* | hpux11*)
43364677 ;;
43374678 esac
43384679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4339 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4680 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
43404681 ;;
43414682
43424683 irix5* | irix6* | nonstopux*)
43454686 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
43464687 ;;
43474688
4348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4689 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
43494690 case $cc_basename in
4350 # old Intel for x86_64 which still supported -KPIC.
4691 # old Intel for x86_64, which still supported -KPIC.
43514692 ecc*)
43524693 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
43534694 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43714712 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
43724713 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
43734714 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4715 ;;
4716 tcc*)
4717 # Fabrice Bellard et al's Tiny C Compiler
4718 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4719 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4720 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
43744721 ;;
43754722 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
43764723 # Portland Group compilers (*not* the Pentium gcc compiler,
44694816 ;;
44704817
44714818 sysv4*MP*)
4472 if test -d /usr/nec ;then
4819 if test -d /usr/nec; then
44734820 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
44744821 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44754822 fi
44984845 fi
44994846 ])
45004847 case $host_os in
4501 # For platforms which do not support PIC, -DPIC is meaningless:
4848 # For platforms that do not support PIC, -DPIC is meaningless:
45024849 *djgpp*)
45034850 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
45044851 ;;
45644911 case $host_os in
45654912 aix[[4-9]]*)
45664913 # If we're using GNU nm, then we don't want the "-C" option.
4567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4568 # Also, AIX nm treats weak defined symbols like other global defined
4569 # symbols, whereas GNU nm marks them as "W".
4914 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4915 # Without the "-l" option, or with the "-B" option, AIX nm treats
4916 # weak defined symbols like other global defined symbols, whereas
4917 # GNU nm marks them as "W".
4918 # While the 'weak' keyword is ignored in the Export File, we need
4919 # it in the Import File for the 'aix-soname' feature, so we have
4920 # to replace the "-B" option with "-P" for AIX nm.
45704921 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4571 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4922 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
45724923 else
4573 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4924 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
45744925 fi
45754926 ;;
45764927 pw32*)
4577 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4928 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
45784929 ;;
45794930 cygwin* | mingw* | cegcc*)
45804931 case $cc_basename in
46204971 # included in the symbol list
46214972 _LT_TAGVAR(include_expsyms, $1)=
46224973 # exclude_expsyms can be an extended regexp of symbols to exclude
4623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4625 # as well as any symbol that contains `d'.
4974 # it will be wrapped by ' (' and ')$', so one must not match beginning or
4975 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4976 # as well as any symbol that contains 'd'.
46264977 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
46274978 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46284979 # platforms (ab)use it in PIC code, but their linkers get confused if
46384989 # FIXME: the MSVC++ port hasn't been tested in a loooong time
46394990 # When not using gcc, we currently assume that we are using
46404991 # Microsoft Visual C++.
4641 if test "$GCC" != yes; then
4992 if test yes != "$GCC"; then
46424993 with_gnu_ld=no
46434994 fi
46444995 ;;
46464997 # we just hope/assume this is gcc and not c89 (= MSVC++)
46474998 with_gnu_ld=yes
46484999 ;;
4649 openbsd*)
5000 openbsd* | bitrig*)
46505001 with_gnu_ld=no
46515002 ;;
46525003 esac
46565007 # On some targets, GNU ld is compatible enough with the native linker
46575008 # that we're better off using the native interface for both.
46585009 lt_use_gnu_ld_interface=no
4659 if test "$with_gnu_ld" = yes; then
5010 if test yes = "$with_gnu_ld"; then
46605011 case $host_os in
46615012 aix*)
46625013 # The AIX port of GNU ld has always aspired to compatibility
46785029 esac
46795030 fi
46805031
4681 if test "$lt_use_gnu_ld_interface" = yes; then
5032 if test yes = "$lt_use_gnu_ld_interface"; then
46825033 # If archive_cmds runs LD, not CC, wlarc should be empty
4683 wlarc='${wl}'
5034 wlarc='$wl'
46845035
46855036 # Set some defaults for GNU ld with shared library support. These
46865037 # are reset later if shared libraries are not supported. Putting them
46875038 # here allows them to be overridden if necessary.
46885039 runpath_var=LD_RUN_PATH
4689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5040 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
46915042 # ancient GNU ld didn't support --whole-archive et. al.
46925043 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4693 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5044 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
46945045 else
46955046 _LT_TAGVAR(whole_archive_flag_spec, $1)=
46965047 fi
46975048 supports_anon_versioning=no
4698 case `$LD -v 2>&1` in
5049 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
46995050 *GNU\ gold*) supports_anon_versioning=yes ;;
47005051 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
47015052 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47085059 case $host_os in
47095060 aix[[3-9]]*)
47105061 # On AIX/PPC, the GNU linker is very broken
4711 if test "$host_cpu" != ia64; then
5062 if test ia64 != "$host_cpu"; then
47125063 _LT_TAGVAR(ld_shlibs, $1)=no
47135064 cat <<_LT_EOF 1>&2
47145065
47275078 case $host_cpu in
47285079 powerpc)
47295080 # see comment about AmigaOS4 .so support
4730 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5081 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47315082 _LT_TAGVAR(archive_expsym_cmds, $1)=''
47325083 ;;
47335084 m68k)
47435094 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47445095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47455096 # support --undefined. This deserves some investigation. FIXME
4746 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5097 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47475098 else
47485099 _LT_TAGVAR(ld_shlibs, $1)=no
47495100 fi
47535104 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
47545105 # as there is no search path for DLLs.
47555106 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5107 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
47575108 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47585109 _LT_TAGVAR(always_export_symbols, $1)=no
47595110 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47615112 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
47625113
47635114 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4764 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4765 # If the export-symbols file already is a .def file (1st line
4766 # is EXPORTS), use it as is; otherwise, prepend...
4767 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4768 cp $export_symbols $output_objdir/$soname.def;
4769 else
4770 echo EXPORTS > $output_objdir/$soname.def;
4771 cat $export_symbols >> $output_objdir/$soname.def;
4772 fi~
4773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5115 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5116 # If the export-symbols file already is a .def file, use it as
5117 # is; otherwise, prepend EXPORTS...
5118 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5119 cp $export_symbols $output_objdir/$soname.def;
5120 else
5121 echo EXPORTS > $output_objdir/$soname.def;
5122 cat $export_symbols >> $output_objdir/$soname.def;
5123 fi~
5124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
47745125 else
47755126 _LT_TAGVAR(ld_shlibs, $1)=no
47765127 fi
47775128 ;;
47785129
47795130 haiku*)
4780 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5131 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47815132 _LT_TAGVAR(link_all_deplibs, $1)=yes
5133 ;;
5134
5135 os2*)
5136 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5137 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5138 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5139 shrext_cmds=.dll
5140 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5141 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5142 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5143 $ECHO EXPORTS >> $output_objdir/$libname.def~
5144 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5145 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5146 emximp -o $lib $output_objdir/$libname.def'
5147 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5148 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5149 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5150 $ECHO EXPORTS >> $output_objdir/$libname.def~
5151 prefix_cmds="$SED"~
5152 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5153 prefix_cmds="$prefix_cmds -e 1d";
5154 fi~
5155 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5156 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5157 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5158 emximp -o $lib $output_objdir/$libname.def'
5159 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5160 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47825161 ;;
47835162
47845163 interix[[3-9]]*)
47855164 _LT_TAGVAR(hardcode_direct, $1)=no
47865165 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4788 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5166 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5167 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
47895168 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
47905169 # Instead, shared libraries are loaded at an image base (0x10000000 by
47915170 # default) and relocated if they conflict, which is a slow very memory
47925171 # consuming and fragmenting process. To avoid this, we pick a random,
47935172 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
47945173 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4796 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5174 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5175 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
47975176 ;;
47985177
47995178 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
48005179 tmp_diet=no
4801 if test "$host_os" = linux-dietlibc; then
5180 if test linux-dietlibc = "$host_os"; then
48025181 case $cc_basename in
48035182 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
48045183 esac
48055184 fi
48065185 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4807 && test "$tmp_diet" = no
5186 && test no = "$tmp_diet"
48085187 then
48095188 tmp_addflag=' $pic_flag'
48105189 tmp_sharedflag='-shared'
48115190 case $cc_basename,$host_cpu in
48125191 pgcc*) # Portland Group C compiler
4813 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5192 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48145193 tmp_addflag=' $pic_flag'
48155194 ;;
48165195 pgf77* | pgf90* | pgf95* | pgfortran*)
48175196 # Portland Group f77 and f90 compilers
4818 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5197 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48195198 tmp_addflag=' $pic_flag -Mnomain' ;;
48205199 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
48215200 tmp_addflag=' -i_dynamic' ;;
48265205 lf95*) # Lahey Fortran 8.1
48275206 _LT_TAGVAR(whole_archive_flag_spec, $1)=
48285207 tmp_sharedflag='--shared' ;;
5208 nagfor*) # NAGFOR 5.3
5209 tmp_sharedflag='-Wl,-shared' ;;
48295210 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
48305211 tmp_sharedflag='-qmkshrobj'
48315212 tmp_addflag= ;;
48325213 nvcc*) # Cuda Compiler Driver 2.2
4833 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5214 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48345215 _LT_TAGVAR(compiler_needs_object, $1)=yes
48355216 ;;
48365217 esac
48375218 case `$CC -V 2>&1 | sed 5q` in
48385219 *Sun\ C*) # Sun C 5.9
4839 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5220 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48405221 _LT_TAGVAR(compiler_needs_object, $1)=yes
48415222 tmp_sharedflag='-G' ;;
48425223 *Sun\ F*) # Sun Fortran 8.3
48435224 tmp_sharedflag='-G' ;;
48445225 esac
4845 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4846
4847 if test "x$supports_anon_versioning" = xyes; then
5226 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5227
5228 if test yes = "$supports_anon_versioning"; then
48485229 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4850 echo "local: *; };" >> $output_objdir/$libname.ver~
4851 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5231 echo "local: *; };" >> $output_objdir/$libname.ver~
5232 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
48525233 fi
48535234
48545235 case $cc_basename in
5236 tcc*)
5237 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5238 ;;
48555239 xlf* | bgf* | bgxlf* | mpixlf*)
48565240 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48575241 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5242 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
48595243 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4860 if test "x$supports_anon_versioning" = xyes; then
5244 if test yes = "$supports_anon_versioning"; then
48615245 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4863 echo "local: *; };" >> $output_objdir/$libname.ver~
4864 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5247 echo "local: *; };" >> $output_objdir/$libname.ver~
5248 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48655249 fi
48665250 ;;
48675251 esac
48755259 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48765260 wlarc=
48775261 else
4878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4879 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5262 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5263 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
48805264 fi
48815265 ;;
48825266
48945278
48955279 _LT_EOF
48965280 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4898 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5281 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5282 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
48995283 else
49005284 _LT_TAGVAR(ld_shlibs, $1)=no
49015285 fi
49075291 _LT_TAGVAR(ld_shlibs, $1)=no
49085292 cat <<_LT_EOF 1>&2
49095293
4910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5294 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
49115295 *** reliably create shared libraries on SCO systems. Therefore, libtool
49125296 *** is disabling shared libraries support. We urge you to upgrade GNU
49135297 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
49225306 # DT_RUNPATH tag from executables and libraries. But doing so
49235307 # requires that you compile everything twice, which is a pain.
49245308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4927 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5309 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5310 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5311 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
49285312 else
49295313 _LT_TAGVAR(ld_shlibs, $1)=no
49305314 fi
49415325
49425326 *)
49435327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4944 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4945 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5328 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5329 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
49465330 else
49475331 _LT_TAGVAR(ld_shlibs, $1)=no
49485332 fi
49495333 ;;
49505334 esac
49515335
4952 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5336 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
49535337 runpath_var=
49545338 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
49555339 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
49655349 # Note: this linker hardcodes the directories in LIBPATH if there
49665350 # are no directories specified by -L.
49675351 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5352 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
49695353 # Neither direct hardcoding nor static linking is supported with a
49705354 # broken collect2.
49715355 _LT_TAGVAR(hardcode_direct, $1)=unsupported
49735357 ;;
49745358
49755359 aix[[4-9]]*)
4976 if test "$host_cpu" = ia64; then
5360 if test ia64 = "$host_cpu"; then
49775361 # On IA64, the linker does run time linking by default, so we don't
49785362 # have to do anything special.
49795363 aix_use_runtimelinking=no
49805364 exp_sym_flag='-Bexport'
4981 no_entry_flag=""
5365 no_entry_flag=
49825366 else
49835367 # If we're using GNU nm, then we don't want the "-C" option.
4984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4985 # Also, AIX nm treats weak defined symbols like other global
4986 # defined symbols, whereas GNU nm marks them as "W".
5368 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5369 # Without the "-l" option, or with the "-B" option, AIX nm treats
5370 # weak defined symbols like other global defined symbols, whereas
5371 # GNU nm marks them as "W".
5372 # While the 'weak' keyword is ignored in the Export File, we need
5373 # it in the Import File for the 'aix-soname' feature, so we have
5374 # to replace the "-B" option with "-P" for AIX nm.
49875375 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4988 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5376 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
49895377 else
4990 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5378 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
49915379 fi
49925380 aix_use_runtimelinking=no
49935381
49945382 # Test if we are trying to use run time linking or normal
49955383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4996 # need to do runtime linking.
5384 # have runtime linking enabled, and use it for executables.
5385 # For shared libraries, we enable/disable runtime linking
5386 # depending on the kind of the shared library created -
5387 # when "with_aix_soname,aix_use_runtimelinking" is:
5388 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5389 # "aix,yes" lib.so shared, rtl:yes, for executables
5390 # lib.a static archive
5391 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5392 # lib.a(lib.so.V) shared, rtl:no, for executables
5393 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5394 # lib.a(lib.so.V) shared, rtl:no
5395 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5396 # lib.a static archive
49975397 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
49985398 for ld_flag in $LDFLAGS; do
4999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5399 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
50005400 aix_use_runtimelinking=yes
50015401 break
50025402 fi
50035403 done
5404 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5405 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5406 # so we don't have lib.a shared libs to link our executables.
5407 # We have to force runtime linking in this case.
5408 aix_use_runtimelinking=yes
5409 LDFLAGS="$LDFLAGS -Wl,-brtl"
5410 fi
50045411 ;;
50055412 esac
50065413
50195426 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
50205427 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
50215428 _LT_TAGVAR(link_all_deplibs, $1)=yes
5022 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5023
5024 if test "$GCC" = yes; then
5429 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5430 case $with_aix_soname,$aix_use_runtimelinking in
5431 aix,*) ;; # traditional, no import file
5432 svr4,* | *,yes) # use import file
5433 # The Import File defines what to hardcode.
5434 _LT_TAGVAR(hardcode_direct, $1)=no
5435 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5436 ;;
5437 esac
5438
5439 if test yes = "$GCC"; then
50255440 case $host_os in aix4.[[012]]|aix4.[[012]].*)
50265441 # We only want to do this on AIX 4.2 and lower, the check
50275442 # below for broken collect2 doesn't work under 4.3+
5028 collect2name=`${CC} -print-prog-name=collect2`
5443 collect2name=`$CC -print-prog-name=collect2`
50295444 if test -f "$collect2name" &&
50305445 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50315446 then
50445459 ;;
50455460 esac
50465461 shared_flag='-shared'
5047 if test "$aix_use_runtimelinking" = yes; then
5048 shared_flag="$shared_flag "'${wl}-G'
5462 if test yes = "$aix_use_runtimelinking"; then
5463 shared_flag="$shared_flag "'$wl-G'
50495464 fi
5465 # Need to ensure runtime linking is disabled for the traditional
5466 # shared library, or the linker may eventually find shared libraries
5467 # /with/ Import File - we do not want to mix them.
5468 shared_flag_aix='-shared'
5469 shared_flag_svr4='-shared $wl-G'
50505470 else
50515471 # not using gcc
5052 if test "$host_cpu" = ia64; then
5472 if test ia64 = "$host_cpu"; then
50535473 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50545474 # chokes on -Wl,-G. The following line is correct:
50555475 shared_flag='-G'
50565476 else
5057 if test "$aix_use_runtimelinking" = yes; then
5058 shared_flag='${wl}-G'
5477 if test yes = "$aix_use_runtimelinking"; then
5478 shared_flag='$wl-G'
50595479 else
5060 shared_flag='${wl}-bM:SRE'
5480 shared_flag='$wl-bM:SRE'
50615481 fi
5482 shared_flag_aix='$wl-bM:SRE'
5483 shared_flag_svr4='$wl-G'
50625484 fi
50635485 fi
50645486
5065 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5487 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
50665488 # It seems that -bexpall does not export symbols beginning with
50675489 # underscore (_), so it is better to generate a list of symbols to export.
50685490 _LT_TAGVAR(always_export_symbols, $1)=yes
5069 if test "$aix_use_runtimelinking" = yes; then
5491 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
50705492 # Warning - without using the other runtime loading flags (-brtl),
50715493 # -berok will link without error, but may produce a broken library.
50725494 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
50735495 # Determine the default libpath from the value encoded in an
50745496 # empty executable.
50755497 _LT_SYS_MODULE_PATH_AIX([$1])
5076 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5077 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5498 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5499 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
50785500 else
5079 if test "$host_cpu" = ia64; then
5080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5501 if test ia64 = "$host_cpu"; then
5502 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
50815503 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5082 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5504 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
50835505 else
50845506 # Determine the default libpath from the value encoded in an
50855507 # empty executable.
50865508 _LT_SYS_MODULE_PATH_AIX([$1])
5087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5509 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
50885510 # Warning - without using the other run time loading flags,
50895511 # -berok will link without error, but may produce a broken library.
5090 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5091 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5092 if test "$with_gnu_ld" = yes; then
5512 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5513 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5514 if test yes = "$with_gnu_ld"; then
50935515 # We only use this code for GNU lds that support --whole-archive.
5094 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5516 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
50955517 else
50965518 # Exported symbols can be pulled into shared objects from archives
50975519 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
50985520 fi
50995521 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5100 # This is similar to how AIX traditionally builds its shared libraries.
5101 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5522 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5523 # -brtl affects multiple linker settings, -berok does not and is overridden later
5524 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5525 if test svr4 != "$with_aix_soname"; then
5526 # This is similar to how AIX traditionally builds its shared libraries.
5527 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5528 fi
5529 if test aix != "$with_aix_soname"; then
5530 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5531 else
5532 # used by -dlpreopen to get the symbols
5533 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5534 fi
5535 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
51025536 fi
51035537 fi
51045538 ;;
51075541 case $host_cpu in
51085542 powerpc)
51095543 # see comment about AmigaOS4 .so support
5110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5544 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
51115545 _LT_TAGVAR(archive_expsym_cmds, $1)=''
51125546 ;;
51135547 m68k)
51375571 # Tell ltmain to make .lib files, not .a files.
51385572 libext=lib
51395573 # Tell ltmain to make .dll files, not .so files.
5140 shrext_cmds=".dll"
5574 shrext_cmds=.dll
51415575 # FIXME: Setting linknames here is a bad hack.
5142 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5143 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5144 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5145 else
5146 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5147 fi~
5148 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5149 linknames='
5576 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5577 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5578 cp "$export_symbols" "$output_objdir/$soname.def";
5579 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5580 else
5581 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5582 fi~
5583 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5584 linknames='
51505585 # The linker will not automatically build a static lib if we build a DLL.
51515586 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
51525587 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
51555590 # Don't use ranlib
51565591 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
51575592 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5158 lt_tool_outputfile="@TOOL_OUTPUT@"~
5159 case $lt_outputfile in
5160 *.exe|*.EXE) ;;
5161 *)
5162 lt_outputfile="$lt_outputfile.exe"
5163 lt_tool_outputfile="$lt_tool_outputfile.exe"
5164 ;;
5165 esac~
5166 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5167 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5168 $RM "$lt_outputfile.manifest";
5169 fi'
5593 lt_tool_outputfile="@TOOL_OUTPUT@"~
5594 case $lt_outputfile in
5595 *.exe|*.EXE) ;;
5596 *)
5597 lt_outputfile=$lt_outputfile.exe
5598 lt_tool_outputfile=$lt_tool_outputfile.exe
5599 ;;
5600 esac~
5601 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5602 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5603 $RM "$lt_outputfile.manifest";
5604 fi'
51705605 ;;
51715606 *)
51725607 # Assume MSVC wrapper
51755610 # Tell ltmain to make .lib files, not .a files.
51765611 libext=lib
51775612 # Tell ltmain to make .dll files, not .so files.
5178 shrext_cmds=".dll"
5613 shrext_cmds=.dll
51795614 # FIXME: Setting linknames here is a bad hack.
51805615 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
51815616 # The linker will automatically build a .lib file if we build a DLL.
52255660 ;;
52265661
52275662 hpux9*)
5228 if test "$GCC" = yes; then
5229 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5663 if test yes = "$GCC"; then
5664 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
52305665 else
5231 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5666 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
52325667 fi
5233 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5668 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52345669 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52355670 _LT_TAGVAR(hardcode_direct, $1)=yes
52365671
52375672 # hardcode_minus_L: Not really in the search PATH,
52385673 # but as the default location of the library.
52395674 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5240 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5675 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52415676 ;;
52425677
52435678 hpux10*)
5244 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5245 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5679 if test yes,no = "$GCC,$with_gnu_ld"; then
5680 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52465681 else
52475682 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
52485683 fi
5249 if test "$with_gnu_ld" = no; then
5250 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5684 if test no = "$with_gnu_ld"; then
5685 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52515686 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52525687 _LT_TAGVAR(hardcode_direct, $1)=yes
52535688 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5254 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5689 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52555690 # hardcode_minus_L: Not really in the search PATH,
52565691 # but as the default location of the library.
52575692 _LT_TAGVAR(hardcode_minus_L, $1)=yes
52595694 ;;
52605695
52615696 hpux11*)
5262 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5697 if test yes,no = "$GCC,$with_gnu_ld"; then
52635698 case $host_cpu in
52645699 hppa*64*)
5265 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5700 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52665701 ;;
52675702 ia64*)
5268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5703 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52695704 ;;
52705705 *)
5271 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5706 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52725707 ;;
52735708 esac
52745709 else
52755710 case $host_cpu in
52765711 hppa*64*)
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5712 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52785713 ;;
52795714 ia64*)
5280 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5715 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52815716 ;;
52825717 *)
52835718 m4_if($1, [], [
52855720 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
52865721 _LT_LINKER_OPTION([if $CC understands -b],
52875722 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5288 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5723 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
52895724 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5290 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5725 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
52915726 ;;
52925727 esac
52935728 fi
5294 if test "$with_gnu_ld" = no; then
5295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5729 if test no = "$with_gnu_ld"; then
5730 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52965731 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52975732
52985733 case $host_cpu in
53035738 *)
53045739 _LT_TAGVAR(hardcode_direct, $1)=yes
53055740 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5306 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5741 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53075742
53085743 # hardcode_minus_L: Not really in the search PATH,
53095744 # but as the default location of the library.
53145749 ;;
53155750
53165751 irix5* | irix6* | nonstopux*)
5317 if test "$GCC" = yes; then
5318 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5752 if test yes = "$GCC"; then
5753 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
53195754 # Try to use the -exported_symbol ld option, if it does not
53205755 # work, assume that -exports_file does not work either and
53215756 # implicitly export all symbols.
53225757 # This should be the same for all languages, so no per-tag cache variable.
53235758 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
53245759 [lt_cv_irix_exported_symbol],
5325 [save_LDFLAGS="$LDFLAGS"
5326 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5760 [save_LDFLAGS=$LDFLAGS
5761 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
53275762 AC_LINK_IFELSE(
53285763 [AC_LANG_SOURCE(
53295764 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
53365771 end]])])],
53375772 [lt_cv_irix_exported_symbol=yes],
53385773 [lt_cv_irix_exported_symbol=no])
5339 LDFLAGS="$save_LDFLAGS"])
5340 if test "$lt_cv_irix_exported_symbol" = yes; then
5341 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5774 LDFLAGS=$save_LDFLAGS])
5775 if test yes = "$lt_cv_irix_exported_symbol"; then
5776 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
53425777 fi
53435778 else
5344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5779 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5780 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
53465781 fi
53475782 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5348 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5783 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53495784 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53505785 _LT_TAGVAR(inherit_rpath, $1)=yes
53515786 _LT_TAGVAR(link_all_deplibs, $1)=yes
5787 ;;
5788
5789 linux*)
5790 case $cc_basename in
5791 tcc*)
5792 # Fabrice Bellard et al's Tiny C Compiler
5793 _LT_TAGVAR(ld_shlibs, $1)=yes
5794 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5795 ;;
5796 esac
53525797 ;;
53535798
53545799 netbsd*)
53655810 newsos6)
53665811 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
53675812 _LT_TAGVAR(hardcode_direct, $1)=yes
5368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5813 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53695814 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53705815 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53715816 ;;
53735818 *nto* | *qnx*)
53745819 ;;
53755820
5376 openbsd*)
5821 openbsd* | bitrig*)
53775822 if test -f /usr/libexec/ld.so; then
53785823 _LT_TAGVAR(hardcode_direct, $1)=yes
53795824 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53805825 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
53825827 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5383 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5384 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5385 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5828 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5829 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5830 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53865831 else
5387 case $host_os in
5388 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5389 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5391 ;;
5392 *)
5393 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5394 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5395 ;;
5396 esac
5832 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5833 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
53975834 fi
53985835 else
53995836 _LT_TAGVAR(ld_shlibs, $1)=no
54045841 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
54055842 _LT_TAGVAR(hardcode_minus_L, $1)=yes
54065843 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5407 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5408 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5844 shrext_cmds=.dll
5845 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5846 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5847 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5848 $ECHO EXPORTS >> $output_objdir/$libname.def~
5849 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5850 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5851 emximp -o $lib $output_objdir/$libname.def'
5852 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5855 $ECHO EXPORTS >> $output_objdir/$libname.def~
5856 prefix_cmds="$SED"~
5857 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5858 prefix_cmds="$prefix_cmds -e 1d";
5859 fi~
5860 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5861 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5862 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5863 emximp -o $lib $output_objdir/$libname.def'
5864 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5865 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54095866 ;;
54105867
54115868 osf3*)
5412 if test "$GCC" = yes; then
5413 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5414 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5869 if test yes = "$GCC"; then
5870 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5871 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
54155872 else
54165873 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5417 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5874 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
54185875 fi
54195876 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5877 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54215878 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
54225879 ;;
54235880
54245881 osf4* | osf5*) # as osf3* with the addition of -msym flag
5425 if test "$GCC" = yes; then
5426 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5427 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5882 if test yes = "$GCC"; then
5883 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5884 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5885 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54295886 else
54305887 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5431 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5888 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
54325889 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5433 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5890 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
54345891
54355892 # Both c and cxx compiler support -rpath directly
54365893 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
54415898
54425899 solaris*)
54435900 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5444 if test "$GCC" = yes; then
5445 wlarc='${wl}'
5446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5901 if test yes = "$GCC"; then
5902 wlarc='$wl'
5903 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
54475904 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5448 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5905 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54495906 else
54505907 case `$CC -V 2>&1` in
54515908 *"Compilers 5.0"*)
54525909 wlarc=''
5453 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5910 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
54545911 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5912 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
54565913 ;;
54575914 *)
5458 wlarc='${wl}'
5459 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5915 wlarc='$wl'
5916 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
54605917 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5461 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5918 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54625919 ;;
54635920 esac
54645921 fi
54685925 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
54695926 *)
54705927 # The compiler driver will combine and reorder linker options,
5471 # but understands `-z linker_flag'. GCC discards it without `$wl',
5928 # but understands '-z linker_flag'. GCC discards it without '$wl',
54725929 # but is careful enough not to reorder.
54735930 # Supported since Solaris 2.6 (maybe 2.5.1?)
5474 if test "$GCC" = yes; then
5475 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5931 if test yes = "$GCC"; then
5932 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
54765933 else
54775934 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
54785935 fi
54825939 ;;
54835940
54845941 sunos4*)
5485 if test "x$host_vendor" = xsequent; then
5942 if test sequent = "$host_vendor"; then
54865943 # Use $CC to link under sequent, because it throws in some extra .o
54875944 # files that make .init and .fini sections work.
5488 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5945 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
54895946 else
54905947 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
54915948 fi
55345991 ;;
55355992
55365993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5537 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5994 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
55385995 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55395996 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55405997 runpath_var='LD_RUN_PATH'
55415998
5542 if test "$GCC" = yes; then
5543 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5544 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5999 if test yes = "$GCC"; then
6000 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6001 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55456002 else
5546 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5547 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6003 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6004 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55486005 fi
55496006 ;;
55506007
55516008 sysv5* | sco3.2v5* | sco5v6*)
5552 # Note: We can NOT use -z defs as we might desire, because we do not
6009 # Note: We CANNOT use -z defs as we might desire, because we do not
55536010 # link with -lc, and that would cause any symbols used from libc to
55546011 # always be unresolved, which means just about no library would
55556012 # ever link correctly. If we're not using GNU ld we use -z text
55566013 # though, which does catch some bad symbols but isn't as heavy-handed
55576014 # as -z defs.
5558 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5559 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6015 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6016 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
55606017 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55616018 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6019 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
55636020 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
55646021 _LT_TAGVAR(link_all_deplibs, $1)=yes
5565 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6022 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
55666023 runpath_var='LD_RUN_PATH'
55676024
5568 if test "$GCC" = yes; then
5569 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5570 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6025 if test yes = "$GCC"; then
6026 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6027 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55716028 else
5572 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5573 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6029 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6030 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55746031 fi
55756032 ;;
55766033
55856042 ;;
55866043 esac
55876044
5588 if test x$host_vendor = xsni; then
6045 if test sni = "$host_vendor"; then
55896046 case $host in
55906047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5591 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6048 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
55926049 ;;
55936050 esac
55946051 fi
55956052 fi
55966053 ])
55976054 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5598 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6055 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
55996056
56006057 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
56016058
56126069 # Assume -lc should be added
56136070 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56146071
5615 if test "$enable_shared" = yes && test "$GCC" = yes; then
6072 if test yes,yes = "$GCC,$enable_shared"; then
56166073 case $_LT_TAGVAR(archive_cmds, $1) in
56176074 *'~'*)
56186075 # FIXME: we may have to deal with multi-command sequences.
56926149 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
56936150 [Whether we need a single "-rpath" flag with a separated argument])
56946151 _LT_TAGDECL([], [hardcode_direct], [0],
5695 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6152 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
56966153 DIR into the resulting binary])
56976154 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5698 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6155 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
56996156 DIR into the resulting binary and the resulting library dependency is
5700 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6157 "absolute", i.e impossible to change by setting $shlibpath_var if the
57016158 library is relocated])
57026159 _LT_TAGDECL([], [hardcode_minus_L], [0],
57036160 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57386195 # ------------------------
57396196 # Ensure that the configuration variables for a C compiler are suitably
57406197 # defined. These variables are subsequently used by _LT_CONFIG to write
5741 # the compiler configuration to `libtool'.
6198 # the compiler configuration to 'libtool'.
57426199 m4_defun([_LT_LANG_C_CONFIG],
57436200 [m4_require([_LT_DECL_EGREP])dnl
5744 lt_save_CC="$CC"
6201 lt_save_CC=$CC
57456202 AC_LANG_PUSH(C)
57466203
57476204 # Source file extension for C test sources.
57816238 LT_SYS_DLOPEN_SELF
57826239 _LT_CMD_STRIPLIB
57836240
5784 # Report which library types will actually be built
6241 # Report what library types will actually be built
57856242 AC_MSG_CHECKING([if libtool supports shared libraries])
57866243 AC_MSG_RESULT([$can_build_shared])
57876244
57886245 AC_MSG_CHECKING([whether to build shared libraries])
5789 test "$can_build_shared" = "no" && enable_shared=no
6246 test no = "$can_build_shared" && enable_shared=no
57906247
57916248 # On AIX, shared libraries and static libraries use the same namespace, and
57926249 # are all built from PIC.
57936250 case $host_os in
57946251 aix3*)
5795 test "$enable_shared" = yes && enable_static=no
6252 test yes = "$enable_shared" && enable_static=no
57966253 if test -n "$RANLIB"; then
57976254 archive_cmds="$archive_cmds~\$RANLIB \$lib"
57986255 postinstall_cmds='$RANLIB $lib'
58006257 ;;
58016258
58026259 aix[[4-9]]*)
5803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5804 test "$enable_shared" = yes && enable_static=no
6260 if test ia64 != "$host_cpu"; then
6261 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6262 yes,aix,yes) ;; # shared object as lib.so file only
6263 yes,svr4,*) ;; # shared object as lib.so archive member only
6264 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6265 esac
58056266 fi
58066267 ;;
58076268 esac
58096270
58106271 AC_MSG_CHECKING([whether to build static libraries])
58116272 # Make sure either enable_shared or enable_static is yes.
5812 test "$enable_shared" = yes || enable_static=yes
6273 test yes = "$enable_shared" || enable_static=yes
58136274 AC_MSG_RESULT([$enable_static])
58146275
58156276 _LT_CONFIG($1)
58166277 fi
58176278 AC_LANG_POP
5818 CC="$lt_save_CC"
6279 CC=$lt_save_CC
58196280 ])# _LT_LANG_C_CONFIG
58206281
58216282
58236284 # --------------------------
58246285 # Ensure that the configuration variables for a C++ compiler are suitably
58256286 # defined. These variables are subsequently used by _LT_CONFIG to write
5826 # the compiler configuration to `libtool'.
6287 # the compiler configuration to 'libtool'.
58276288 m4_defun([_LT_LANG_CXX_CONFIG],
58286289 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
58296290 m4_require([_LT_DECL_EGREP])dnl
58306291 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5831 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5832 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5833 (test "X$CXX" != "Xg++"))) ; then
6292 if test -n "$CXX" && ( test no != "$CXX" &&
6293 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6294 (test g++ != "$CXX"))); then
58346295 AC_PROG_CXXCPP
58356296 else
58366297 _lt_caught_CXX_error=yes
58726333 # the CXX compiler isn't working. Some variables (like enable_shared)
58736334 # are currently assumed to apply to all compilers on this platform,
58746335 # and will be corrupted by setting them based on a non-working compiler.
5875 if test "$_lt_caught_CXX_error" != yes; then
6336 if test yes != "$_lt_caught_CXX_error"; then
58766337 # Code to be used in simple compile tests
58776338 lt_simple_compile_test_code="int some_variable = 0;"
58786339
59146375 if test -n "$compiler"; then
59156376 # We don't want -fno-exception when compiling C++ code, so set the
59166377 # no_builtin_flag separately
5917 if test "$GXX" = yes; then
6378 if test yes = "$GXX"; then
59186379 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
59196380 else
59206381 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
59216382 fi
59226383
5923 if test "$GXX" = yes; then
6384 if test yes = "$GXX"; then
59246385 # Set up default GNU C++ configuration
59256386
59266387 LT_PATH_LD
59276388
59286389 # Check if GNU C++ uses GNU ld as the underlying linker, since the
59296390 # archiving commands below assume that GNU ld is being used.
5930 if test "$with_gnu_ld" = yes; then
5931 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5932 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5933
5934 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5935 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6391 if test yes = "$with_gnu_ld"; then
6392 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6393 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6394
6395 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6396 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
59366397
59376398 # If archive_cmds runs LD, not CC, wlarc should be empty
59386399 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
59396400 # investigate it a little bit more. (MM)
5940 wlarc='${wl}'
6401 wlarc='$wl'
59416402
59426403 # ancient GNU ld didn't support --whole-archive et. al.
59436404 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
59446405 $GREP 'no-whole-archive' > /dev/null; then
5945 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6406 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
59466407 else
59476408 _LT_TAGVAR(whole_archive_flag_spec, $1)=
59486409 fi
59786439 _LT_TAGVAR(ld_shlibs, $1)=no
59796440 ;;
59806441 aix[[4-9]]*)
5981 if test "$host_cpu" = ia64; then
6442 if test ia64 = "$host_cpu"; then
59826443 # On IA64, the linker does run time linking by default, so we don't
59836444 # have to do anything special.
59846445 aix_use_runtimelinking=no
59856446 exp_sym_flag='-Bexport'
5986 no_entry_flag=""
6447 no_entry_flag=
59876448 else
59886449 aix_use_runtimelinking=no
59896450
59906451 # Test if we are trying to use run time linking or normal
59916452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5992 # need to do runtime linking.
6453 # have runtime linking enabled, and use it for executables.
6454 # For shared libraries, we enable/disable runtime linking
6455 # depending on the kind of the shared library created -
6456 # when "with_aix_soname,aix_use_runtimelinking" is:
6457 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6458 # "aix,yes" lib.so shared, rtl:yes, for executables
6459 # lib.a static archive
6460 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6461 # lib.a(lib.so.V) shared, rtl:no, for executables
6462 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6463 # lib.a(lib.so.V) shared, rtl:no
6464 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6465 # lib.a static archive
59936466 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
59946467 for ld_flag in $LDFLAGS; do
59956468 case $ld_flag in
59996472 ;;
60006473 esac
60016474 done
6475 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6476 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6477 # so we don't have lib.a shared libs to link our executables.
6478 # We have to force runtime linking in this case.
6479 aix_use_runtimelinking=yes
6480 LDFLAGS="$LDFLAGS -Wl,-brtl"
6481 fi
60026482 ;;
60036483 esac
60046484
60176497 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
60186498 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
60196499 _LT_TAGVAR(link_all_deplibs, $1)=yes
6020 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6021
6022 if test "$GXX" = yes; then
6500 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6501 case $with_aix_soname,$aix_use_runtimelinking in
6502 aix,*) ;; # no import file
6503 svr4,* | *,yes) # use import file
6504 # The Import File defines what to hardcode.
6505 _LT_TAGVAR(hardcode_direct, $1)=no
6506 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6507 ;;
6508 esac
6509
6510 if test yes = "$GXX"; then
60236511 case $host_os in aix4.[[012]]|aix4.[[012]].*)
60246512 # We only want to do this on AIX 4.2 and lower, the check
60256513 # below for broken collect2 doesn't work under 4.3+
6026 collect2name=`${CC} -print-prog-name=collect2`
6514 collect2name=`$CC -print-prog-name=collect2`
60276515 if test -f "$collect2name" &&
60286516 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
60296517 then
60416529 fi
60426530 esac
60436531 shared_flag='-shared'
6044 if test "$aix_use_runtimelinking" = yes; then
6045 shared_flag="$shared_flag "'${wl}-G'
6532 if test yes = "$aix_use_runtimelinking"; then
6533 shared_flag=$shared_flag' $wl-G'
60466534 fi
6535 # Need to ensure runtime linking is disabled for the traditional
6536 # shared library, or the linker may eventually find shared libraries
6537 # /with/ Import File - we do not want to mix them.
6538 shared_flag_aix='-shared'
6539 shared_flag_svr4='-shared $wl-G'
60476540 else
60486541 # not using gcc
6049 if test "$host_cpu" = ia64; then
6542 if test ia64 = "$host_cpu"; then
60506543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
60516544 # chokes on -Wl,-G. The following line is correct:
60526545 shared_flag='-G'
60536546 else
6054 if test "$aix_use_runtimelinking" = yes; then
6055 shared_flag='${wl}-G'
6547 if test yes = "$aix_use_runtimelinking"; then
6548 shared_flag='$wl-G'
60566549 else
6057 shared_flag='${wl}-bM:SRE'
6550 shared_flag='$wl-bM:SRE'
60586551 fi
6552 shared_flag_aix='$wl-bM:SRE'
6553 shared_flag_svr4='$wl-G'
60596554 fi
60606555 fi
60616556
6062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6557 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
60636558 # It seems that -bexpall does not export symbols beginning with
60646559 # underscore (_), so it is better to generate a list of symbols to
60656560 # export.
60666561 _LT_TAGVAR(always_export_symbols, $1)=yes
6067 if test "$aix_use_runtimelinking" = yes; then
6562 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
60686563 # Warning - without using the other runtime loading flags (-brtl),
60696564 # -berok will link without error, but may produce a broken library.
6070 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6565 # The "-G" linker flag allows undefined symbols.
6566 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
60716567 # Determine the default libpath from the value encoded in an empty
60726568 # executable.
60736569 _LT_SYS_MODULE_PATH_AIX([$1])
6074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6075
6076 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6571
6572 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
60776573 else
6078 if test "$host_cpu" = ia64; then
6079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6574 if test ia64 = "$host_cpu"; then
6575 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
60806576 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6081 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6577 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
60826578 else
60836579 # Determine the default libpath from the value encoded in an
60846580 # empty executable.
60856581 _LT_SYS_MODULE_PATH_AIX([$1])
6086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6582 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
60876583 # Warning - without using the other run time loading flags,
60886584 # -berok will link without error, but may produce a broken library.
6089 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6090 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6091 if test "$with_gnu_ld" = yes; then
6585 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6586 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6587 if test yes = "$with_gnu_ld"; then
60926588 # We only use this code for GNU lds that support --whole-archive.
6093 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6589 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
60946590 else
60956591 # Exported symbols can be pulled into shared objects from archives
60966592 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
60976593 fi
60986594 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6099 # This is similar to how AIX traditionally builds its shared
6100 # libraries.
6101 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6595 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6596 # -brtl affects multiple linker settings, -berok does not and is overridden later
6597 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6598 if test svr4 != "$with_aix_soname"; then
6599 # This is similar to how AIX traditionally builds its shared
6600 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6601 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6602 fi
6603 if test aix != "$with_aix_soname"; then
6604 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6605 else
6606 # used by -dlpreopen to get the symbols
6607 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6608 fi
6609 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
61026610 fi
61036611 fi
61046612 ;;
61086616 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61096617 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
61106618 # support --undefined. This deserves some investigation. FIXME
6111 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6619 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
61126620 else
61136621 _LT_TAGVAR(ld_shlibs, $1)=no
61146622 fi
61366644 # Tell ltmain to make .lib files, not .a files.
61376645 libext=lib
61386646 # Tell ltmain to make .dll files, not .so files.
6139 shrext_cmds=".dll"
6647 shrext_cmds=.dll
61406648 # FIXME: Setting linknames here is a bad hack.
6141 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6142 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6143 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6144 else
6145 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6146 fi~
6147 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6148 linknames='
6649 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6650 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6651 cp "$export_symbols" "$output_objdir/$soname.def";
6652 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6653 else
6654 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6655 fi~
6656 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6657 linknames='
61496658 # The linker will not automatically build a static lib if we build a DLL.
61506659 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
61516660 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61526661 # Don't use ranlib
61536662 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
61546663 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6155 lt_tool_outputfile="@TOOL_OUTPUT@"~
6156 case $lt_outputfile in
6157 *.exe|*.EXE) ;;
6158 *)
6159 lt_outputfile="$lt_outputfile.exe"
6160 lt_tool_outputfile="$lt_tool_outputfile.exe"
6161 ;;
6162 esac~
6163 func_to_tool_file "$lt_outputfile"~
6164 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6166 $RM "$lt_outputfile.manifest";
6167 fi'
6664 lt_tool_outputfile="@TOOL_OUTPUT@"~
6665 case $lt_outputfile in
6666 *.exe|*.EXE) ;;
6667 *)
6668 lt_outputfile=$lt_outputfile.exe
6669 lt_tool_outputfile=$lt_tool_outputfile.exe
6670 ;;
6671 esac~
6672 func_to_tool_file "$lt_outputfile"~
6673 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6674 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6675 $RM "$lt_outputfile.manifest";
6676 fi'
61686677 ;;
61696678 *)
61706679 # g++
61716680 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
61726681 # as there is no search path for DLLs.
61736682 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6174 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6683 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
61756684 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61766685 _LT_TAGVAR(always_export_symbols, $1)=no
61776686 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61786687
61796688 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6181 # If the export-symbols file already is a .def file (1st line
6182 # is EXPORTS), use it as is; otherwise, prepend...
6183 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6184 cp $export_symbols $output_objdir/$soname.def;
6185 else
6186 echo EXPORTS > $output_objdir/$soname.def;
6187 cat $export_symbols >> $output_objdir/$soname.def;
6188 fi~
6189 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6689 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6690 # If the export-symbols file already is a .def file, use it as
6691 # is; otherwise, prepend EXPORTS...
6692 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6693 cp $export_symbols $output_objdir/$soname.def;
6694 else
6695 echo EXPORTS > $output_objdir/$soname.def;
6696 cat $export_symbols >> $output_objdir/$soname.def;
6697 fi~
6698 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
61906699 else
61916700 _LT_TAGVAR(ld_shlibs, $1)=no
61926701 fi
61956704 ;;
61966705 darwin* | rhapsody*)
61976706 _LT_DARWIN_LINKER_FEATURES($1)
6707 ;;
6708
6709 os2*)
6710 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6711 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6712 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6713 shrext_cmds=.dll
6714 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6717 $ECHO EXPORTS >> $output_objdir/$libname.def~
6718 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6720 emximp -o $lib $output_objdir/$libname.def'
6721 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6722 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6723 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6724 $ECHO EXPORTS >> $output_objdir/$libname.def~
6725 prefix_cmds="$SED"~
6726 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6727 prefix_cmds="$prefix_cmds -e 1d";
6728 fi~
6729 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6730 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6732 emximp -o $lib $output_objdir/$libname.def'
6733 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6734 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61986735 ;;
61996736
62006737 dgux*)
62316768 _LT_TAGVAR(ld_shlibs, $1)=yes
62326769 ;;
62336770
6234 gnu*)
6235 ;;
6236
62376771 haiku*)
6238 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62396773 _LT_TAGVAR(link_all_deplibs, $1)=yes
62406774 ;;
62416775
62426776 hpux9*)
6243 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62446778 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6779 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62466780 _LT_TAGVAR(hardcode_direct, $1)=yes
62476781 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
62486782 # but as the default
62546788 _LT_TAGVAR(ld_shlibs, $1)=no
62556789 ;;
62566790 aCC*)
6257 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6791 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62586792 # Commands to make compiler produce verbose output that lists
62596793 # what "hidden" libraries, object files and flags are used when
62606794 # linking a shared library.
62636797 # explicitly linking system object files so we need to strip them
62646798 # from the output so that they don't get included in the library
62656799 # dependencies.
6266 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6800 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
62676801 ;;
62686802 *)
6269 if test "$GXX" = yes; then
6270 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6803 if test yes = "$GXX"; then
6804 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62716805 else
62726806 # FIXME: insert proper C++ library support
62736807 _LT_TAGVAR(ld_shlibs, $1)=no
62776811 ;;
62786812
62796813 hpux10*|hpux11*)
6280 if test $with_gnu_ld = no; then
6281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6814 if test no = "$with_gnu_ld"; then
6815 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62826816 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62836817
62846818 case $host_cpu in
62856819 hppa*64*|ia64*)
62866820 ;;
62876821 *)
6288 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6822 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62896823 ;;
62906824 esac
62916825 fi
63116845 aCC*)
63126846 case $host_cpu in
63136847 hppa*64*)
6314 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6848 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63156849 ;;
63166850 ia64*)
6317 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6851 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63186852 ;;
63196853 *)
6320 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6854 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63216855 ;;
63226856 esac
63236857 # Commands to make compiler produce verbose output that lists
63286862 # explicitly linking system object files so we need to strip them
63296863 # from the output so that they don't get included in the library
63306864 # dependencies.
6331 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6865 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
63326866 ;;
63336867 *)
6334 if test "$GXX" = yes; then
6335 if test $with_gnu_ld = no; then
6868 if test yes = "$GXX"; then
6869 if test no = "$with_gnu_ld"; then
63366870 case $host_cpu in
63376871 hppa*64*)
6338 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6872 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63396873 ;;
63406874 ia64*)
6341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6875 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63426876 ;;
63436877 *)
6344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63456879 ;;
63466880 esac
63476881 fi
63566890 interix[[3-9]]*)
63576891 _LT_TAGVAR(hardcode_direct, $1)=no
63586892 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6360 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6893 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6894 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63616895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
63626896 # Instead, shared libraries are loaded at an image base (0x10000000 by
63636897 # default) and relocated if they conflict, which is a slow very memory
63646898 # consuming and fragmenting process. To avoid this, we pick a random,
63656899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
63666900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6368 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6902 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
63696903 ;;
63706904 irix5* | irix6*)
63716905 case $cc_basename in
63726906 CC*)
63736907 # SGI C++
6374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6908 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
63756909
63766910 # Archives containing C++ object files must be created using
63776911 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
63806914 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
63816915 ;;
63826916 *)
6383 if test "$GXX" = yes; then
6384 if test "$with_gnu_ld" = no; then
6385 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6917 if test yes = "$GXX"; then
6918 if test no = "$with_gnu_ld"; then
6919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
63866920 else
6387 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6921 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
63886922 fi
63896923 fi
63906924 _LT_TAGVAR(link_all_deplibs, $1)=yes
63916925 ;;
63926926 esac
6393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6927 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
63946928 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
63956929 _LT_TAGVAR(inherit_rpath, $1)=yes
63966930 ;;
63976931
6398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6932 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
63996933 case $cc_basename in
64006934 KCC*)
64016935 # Kuck and Associates, Inc. (KAI) C++ Compiler
64036937 # KCC will only create a shared library if the output file
64046938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
64056939 # to its proper name (with version) after linking.
6406 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6407 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6940 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6941 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
64086942 # Commands to make compiler produce verbose output that lists
64096943 # what "hidden" libraries, object files and flags are used when
64106944 # linking a shared library.
64136947 # explicitly linking system object files so we need to strip them
64146948 # from the output so that they don't get included in the library
64156949 # dependencies.
6416 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6417
6418 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6419 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6950 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6951
6952 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6953 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
64206954
64216955 # Archives containing C++ object files must be created using
64226956 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
64306964 # earlier do not add the objects themselves.
64316965 case `$CC -V 2>&1` in
64326966 *"Version 7."*)
6433 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6434 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6967 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6968 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64356969 ;;
64366970 *) # Version 8.0 or newer
64376971 tmp_idyn=
64386972 case $host_cpu in
64396973 ia64*) tmp_idyn=' -i_dynamic';;
64406974 esac
6441 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6442 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6975 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6976 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64436977 ;;
64446978 esac
64456979 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6446 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6447 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6448 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6980 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6981 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6982 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
64496983 ;;
64506984 pgCC* | pgcpp*)
64516985 # Portland Group C++ compiler
64526986 case `$CC -V` in
64536987 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
64546988 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6455 rm -rf $tpldir~
6456 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6457 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6989 rm -rf $tpldir~
6990 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6991 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
64586992 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6459 rm -rf $tpldir~
6460 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6461 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6462 $RANLIB $oldlib'
6993 rm -rf $tpldir~
6994 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6995 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6996 $RANLIB $oldlib'
64636997 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6464 rm -rf $tpldir~
6465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6466 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6998 rm -rf $tpldir~
6999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7000 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
64677001 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6468 rm -rf $tpldir~
6469 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6470 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7002 rm -rf $tpldir~
7003 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7004 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64717005 ;;
64727006 *) # Version 6 and above use weak symbols
6473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6474 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7007 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7008 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64757009 ;;
64767010 esac
64777011
6478 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6479 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6480 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7012 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7013 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7014 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
64817015 ;;
64827016 cxx*)
64837017 # Compaq C++
6484 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6485 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7018 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7019 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
64867020
64877021 runpath_var=LD_RUN_PATH
64887022 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
64967030 # explicitly linking system object files so we need to strip them
64977031 # from the output so that they don't get included in the library
64987032 # dependencies.
6499 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
7033 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
65007034 ;;
65017035 xl* | mpixl* | bgxl*)
65027036 # IBM XL 8.0 on PPC, with GNU ld
6503 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6504 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6505 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6506 if test "x$supports_anon_versioning" = xyes; then
7037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7038 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7039 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7040 if test yes = "$supports_anon_versioning"; then
65077041 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6509 echo "local: *; };" >> $output_objdir/$libname.ver~
6510 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7043 echo "local: *; };" >> $output_objdir/$libname.ver~
7044 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
65117045 fi
65127046 ;;
65137047 *)
65157049 *Sun\ C*)
65167050 # Sun C++ 5.9
65177051 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6518 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6519 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
7052 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7053 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
65207054 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6521 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7055 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
65227056 _LT_TAGVAR(compiler_needs_object, $1)=yes
65237057
65247058 # Not sure whether something based on
65767110 _LT_TAGVAR(ld_shlibs, $1)=yes
65777111 ;;
65787112
6579 openbsd2*)
6580 # C++ shared libraries are fairly broken
6581 _LT_TAGVAR(ld_shlibs, $1)=no
6582 ;;
6583
6584 openbsd*)
7113 openbsd* | bitrig*)
65857114 if test -f /usr/libexec/ld.so; then
65867115 _LT_TAGVAR(hardcode_direct, $1)=yes
65877116 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
65887117 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
65897118 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6592 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6593 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6594 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7119 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7121 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
7122 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7123 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
65957124 fi
65967125 output_verbose_link_cmd=func_echo_all
65977126 else
66077136 # KCC will only create a shared library if the output file
66087137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
66097138 # to its proper name (with version) after linking.
6610 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6611
6612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7139 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7140
7141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
66137142 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66147143
66157144 # Archives containing C++ object files must be created using
66277156 cxx*)
66287157 case $host in
66297158 osf3*)
6630 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6631 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7159 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7160 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66337162 ;;
66347163 *)
66357164 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6636 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7165 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
66377166 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6638 echo "-hidden">> $lib.exp~
6639 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6640 $RM $lib.exp'
7167 echo "-hidden">> $lib.exp~
7168 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
7169 $RM $lib.exp'
66417170 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
66427171 ;;
66437172 esac
66527181 # explicitly linking system object files so we need to strip them
66537182 # from the output so that they don't get included in the library
66547183 # dependencies.
6655 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7184 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
66567185 ;;
66577186 *)
6658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6659 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7187 if test yes,no = "$GXX,$with_gnu_ld"; then
7188 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
66607189 case $host in
66617190 osf3*)
6662 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7191 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
66637192 ;;
66647193 *)
6665 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7194 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
66667195 ;;
66677196 esac
66687197
6669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7198 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66707199 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66717200
66727201 # Commands to make compiler produce verbose output that lists
67127241 # Sun C++ 4.2, 5.x and Centerline C++
67137242 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
67147243 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6715 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7244 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67167245 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6717 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7246 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67187247
67197248 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
67207249 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67227251 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67237252 *)
67247253 # The compiler driver will combine and reorder linker options,
6725 # but understands `-z linker_flag'.
7254 # but understands '-z linker_flag'.
67267255 # Supported since Solaris 2.6 (maybe 2.5.1?)
67277256 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
67287257 ;;
67397268 ;;
67407269 gcx*)
67417270 # Green Hills C++ Compiler
6742 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7271 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67437272
67447273 # The C++ compiler must be used to create the archive.
67457274 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
67467275 ;;
67477276 *)
67487277 # GNU C++ compiler with Solaris linker
6749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6750 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7278 if test yes,no = "$GXX,$with_gnu_ld"; then
7279 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
67517280 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7281 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67537282 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6754 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7283 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67557284
67567285 # Commands to make compiler produce verbose output that lists
67577286 # what "hidden" libraries, object files and flags are used when
67587287 # linking a shared library.
67597288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67607289 else
6761 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7290 # g++ 2.7 appears to require '-G' NOT '-shared' on this
67627291 # platform.
6763 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7292 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67647293 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6765 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7294 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67667295
67677296 # Commands to make compiler produce verbose output that lists
67687297 # what "hidden" libraries, object files and flags are used when
67707299 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67717300 fi
67727301
6773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7302 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
67747303 case $host_os in
67757304 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67767305 *)
6777 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7306 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
67787307 ;;
67797308 esac
67807309 fi
67837312 ;;
67847313
67857314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6786 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7315 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
67877316 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67887317 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67897318 runpath_var='LD_RUN_PATH'
67907319
67917320 case $cc_basename in
67927321 CC*)
6793 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6794 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7322 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7323 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
67957324 ;;
67967325 *)
6797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6798 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7326 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7327 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
67997328 ;;
68007329 esac
68017330 ;;
68027331
68037332 sysv5* | sco3.2v5* | sco5v6*)
6804 # Note: We can NOT use -z defs as we might desire, because we do not
7333 # Note: We CANNOT use -z defs as we might desire, because we do not
68057334 # link with -lc, and that would cause any symbols used from libc to
68067335 # always be unresolved, which means just about no library would
68077336 # ever link correctly. If we're not using GNU ld we use -z text
68087337 # though, which does catch some bad symbols but isn't as heavy-handed
68097338 # as -z defs.
6810 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6811 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7339 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7340 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
68127341 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68137342 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6814 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7343 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
68157344 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
68167345 _LT_TAGVAR(link_all_deplibs, $1)=yes
6817 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7346 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
68187347 runpath_var='LD_RUN_PATH'
68197348
68207349 case $cc_basename in
68217350 CC*)
6822 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6823 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7351 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7352 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68247353 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6825 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7354 '"$_LT_TAGVAR(old_archive_cmds, $1)"
68267355 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6827 '"$_LT_TAGVAR(reload_cmds, $1)"
7356 '"$_LT_TAGVAR(reload_cmds, $1)"
68287357 ;;
68297358 *)
6830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6831 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7359 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7360 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68327361 ;;
68337362 esac
68347363 ;;
68597388 esac
68607389
68617390 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6862 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6863
6864 _LT_TAGVAR(GCC, $1)="$GXX"
6865 _LT_TAGVAR(LD, $1)="$LD"
7391 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7392
7393 _LT_TAGVAR(GCC, $1)=$GXX
7394 _LT_TAGVAR(LD, $1)=$LD
68667395
68677396 ## CAVEAT EMPTOR:
68687397 ## There is no encapsulation within the following macros, do not change
68897418 lt_cv_path_LD=$lt_save_path_LD
68907419 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
68917420 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6892 fi # test "$_lt_caught_CXX_error" != yes
7421 fi # test yes != "$_lt_caught_CXX_error"
68937422
68947423 AC_LANG_POP
68957424 ])# _LT_LANG_CXX_CONFIG
69117440 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
69127441 func_stripname_cnf ()
69137442 {
6914 case ${2} in
6915 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6916 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7443 case @S|@2 in
7444 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7445 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
69177446 esac
69187447 } # func_stripname_cnf
69197448 ])# _LT_FUNC_STRIPNAME_CNF
7449
69207450
69217451 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
69227452 # ---------------------------------
70017531 pre_test_object_deps_done=no
70027532
70037533 for p in `eval "$output_verbose_link_cmd"`; do
7004 case ${prev}${p} in
7534 case $prev$p in
70057535
70067536 -L* | -R* | -l*)
70077537 # Some compilers place space between "-{L,R}" and the path.
70087538 # Remove the space.
7009 if test $p = "-L" ||
7010 test $p = "-R"; then
7539 if test x-L = "$p" ||
7540 test x-R = "$p"; then
70117541 prev=$p
70127542 continue
70137543 fi
70237553 case $p in
70247554 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
70257555 esac
7026 if test "$pre_test_object_deps_done" = no; then
7027 case ${prev} in
7556 if test no = "$pre_test_object_deps_done"; then
7557 case $prev in
70287558 -L | -R)
70297559 # Internal compiler library paths should come after those
70307560 # provided the user. The postdeps already come after the
70317561 # user supplied libs so there is no need to process them.
70327562 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7033 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7563 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
70347564 else
7035 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7565 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
70367566 fi
70377567 ;;
70387568 # The "-l" case would never come before the object being
70407570 esac
70417571 else
70427572 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7043 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7573 _LT_TAGVAR(postdeps, $1)=$prev$p
70447574 else
7045 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7575 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
70467576 fi
70477577 fi
70487578 prev=
70577587 continue
70587588 fi
70597589
7060 if test "$pre_test_object_deps_done" = no; then
7590 if test no = "$pre_test_object_deps_done"; then
70617591 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7062 _LT_TAGVAR(predep_objects, $1)="$p"
7592 _LT_TAGVAR(predep_objects, $1)=$p
70637593 else
70647594 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
70657595 fi
70667596 else
70677597 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7068 _LT_TAGVAR(postdep_objects, $1)="$p"
7598 _LT_TAGVAR(postdep_objects, $1)=$p
70697599 else
70707600 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
70717601 fi
70967626 _LT_TAGVAR(postdep_objects,$1)=
70977627 _LT_TAGVAR(postdeps,$1)=
70987628 ;;
7099
7100 linux*)
7101 case `$CC -V 2>&1 | sed 5q` in
7102 *Sun\ C*)
7103 # Sun C++ 5.9
7104
7105 # The more standards-conforming stlport4 library is
7106 # incompatible with the Cstd library. Avoid specifying
7107 # it if it's in CXXFLAGS. Ignore libCrun as
7108 # -library=stlport4 depends on it.
7109 case " $CXX $CXXFLAGS " in
7110 *" -library=stlport4 "*)
7111 solaris_use_stlport4=yes
7112 ;;
7113 esac
7114
7115 if test "$solaris_use_stlport4" != yes; then
7116 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7117 fi
7118 ;;
7119 esac
7120 ;;
7121
7122 solaris*)
7123 case $cc_basename in
7124 CC* | sunCC*)
7125 # The more standards-conforming stlport4 library is
7126 # incompatible with the Cstd library. Avoid specifying
7127 # it if it's in CXXFLAGS. Ignore libCrun as
7128 # -library=stlport4 depends on it.
7129 case " $CXX $CXXFLAGS " in
7130 *" -library=stlport4 "*)
7131 solaris_use_stlport4=yes
7132 ;;
7133 esac
7134
7135 # Adding this requires a known-good setup of shared libraries for
7136 # Sun compiler versions before 5.6, else PIC objects from an old
7137 # archive will be linked into the output, leading to subtle bugs.
7138 if test "$solaris_use_stlport4" != yes; then
7139 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7140 fi
7141 ;;
7142 esac
7143 ;;
71447629 esac
71457630 ])
71467631
71497634 esac
71507635 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
71517636 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7152 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7637 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
71537638 fi
71547639 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
71557640 [The directories searched by this compiler when creating a shared library])
71697654 # --------------------------
71707655 # Ensure that the configuration variables for a Fortran 77 compiler are
71717656 # suitably defined. These variables are subsequently used by _LT_CONFIG
7172 # to write the compiler configuration to `libtool'.
7657 # to write the compiler configuration to 'libtool'.
71737658 m4_defun([_LT_LANG_F77_CONFIG],
71747659 [AC_LANG_PUSH(Fortran 77)
7175 if test -z "$F77" || test "X$F77" = "Xno"; then
7660 if test -z "$F77" || test no = "$F77"; then
71767661 _lt_disable_F77=yes
71777662 fi
71787663
72097694 # the F77 compiler isn't working. Some variables (like enable_shared)
72107695 # are currently assumed to apply to all compilers on this platform,
72117696 # and will be corrupted by setting them based on a non-working compiler.
7212 if test "$_lt_disable_F77" != yes; then
7697 if test yes != "$_lt_disable_F77"; then
72137698 # Code to be used in simple compile tests
72147699 lt_simple_compile_test_code="\
72157700 subroutine t
72317716 _LT_LINKER_BOILERPLATE
72327717
72337718 # Allow CC to be a program name with arguments.
7234 lt_save_CC="$CC"
7719 lt_save_CC=$CC
72357720 lt_save_GCC=$GCC
72367721 lt_save_CFLAGS=$CFLAGS
72377722 CC=${F77-"f77"}
72457730 AC_MSG_RESULT([$can_build_shared])
72467731
72477732 AC_MSG_CHECKING([whether to build shared libraries])
7248 test "$can_build_shared" = "no" && enable_shared=no
7733 test no = "$can_build_shared" && enable_shared=no
72497734
72507735 # On AIX, shared libraries and static libraries use the same namespace, and
72517736 # are all built from PIC.
72527737 case $host_os in
72537738 aix3*)
7254 test "$enable_shared" = yes && enable_static=no
7739 test yes = "$enable_shared" && enable_static=no
72557740 if test -n "$RANLIB"; then
72567741 archive_cmds="$archive_cmds~\$RANLIB \$lib"
72577742 postinstall_cmds='$RANLIB $lib'
72587743 fi
72597744 ;;
72607745 aix[[4-9]]*)
7261 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7262 test "$enable_shared" = yes && enable_static=no
7746 if test ia64 != "$host_cpu"; then
7747 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7748 yes,aix,yes) ;; # shared object as lib.so file only
7749 yes,svr4,*) ;; # shared object as lib.so archive member only
7750 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7751 esac
72637752 fi
72647753 ;;
72657754 esac
72677756
72687757 AC_MSG_CHECKING([whether to build static libraries])
72697758 # Make sure either enable_shared or enable_static is yes.
7270 test "$enable_shared" = yes || enable_static=yes
7759 test yes = "$enable_shared" || enable_static=yes
72717760 AC_MSG_RESULT([$enable_static])
72727761
7273 _LT_TAGVAR(GCC, $1)="$G77"
7274 _LT_TAGVAR(LD, $1)="$LD"
7762 _LT_TAGVAR(GCC, $1)=$G77
7763 _LT_TAGVAR(LD, $1)=$LD
72757764
72767765 ## CAVEAT EMPTOR:
72777766 ## There is no encapsulation within the following macros, do not change
72887777 fi # test -n "$compiler"
72897778
72907779 GCC=$lt_save_GCC
7291 CC="$lt_save_CC"
7292 CFLAGS="$lt_save_CFLAGS"
7293 fi # test "$_lt_disable_F77" != yes
7780 CC=$lt_save_CC
7781 CFLAGS=$lt_save_CFLAGS
7782 fi # test yes != "$_lt_disable_F77"
72947783
72957784 AC_LANG_POP
72967785 ])# _LT_LANG_F77_CONFIG
73007789 # -------------------------
73017790 # Ensure that the configuration variables for a Fortran compiler are
73027791 # suitably defined. These variables are subsequently used by _LT_CONFIG
7303 # to write the compiler configuration to `libtool'.
7792 # to write the compiler configuration to 'libtool'.
73047793 m4_defun([_LT_LANG_FC_CONFIG],
73057794 [AC_LANG_PUSH(Fortran)
73067795
7307 if test -z "$FC" || test "X$FC" = "Xno"; then
7796 if test -z "$FC" || test no = "$FC"; then
73087797 _lt_disable_FC=yes
73097798 fi
73107799
73417830 # the FC compiler isn't working. Some variables (like enable_shared)
73427831 # are currently assumed to apply to all compilers on this platform,
73437832 # and will be corrupted by setting them based on a non-working compiler.
7344 if test "$_lt_disable_FC" != yes; then
7833 if test yes != "$_lt_disable_FC"; then
73457834 # Code to be used in simple compile tests
73467835 lt_simple_compile_test_code="\
73477836 subroutine t
73637852 _LT_LINKER_BOILERPLATE
73647853
73657854 # Allow CC to be a program name with arguments.
7366 lt_save_CC="$CC"
7855 lt_save_CC=$CC
73677856 lt_save_GCC=$GCC
73687857 lt_save_CFLAGS=$CFLAGS
73697858 CC=${FC-"f95"}
73797868 AC_MSG_RESULT([$can_build_shared])
73807869
73817870 AC_MSG_CHECKING([whether to build shared libraries])
7382 test "$can_build_shared" = "no" && enable_shared=no
7871 test no = "$can_build_shared" && enable_shared=no
73837872
73847873 # On AIX, shared libraries and static libraries use the same namespace, and
73857874 # are all built from PIC.
73867875 case $host_os in
73877876 aix3*)
7388 test "$enable_shared" = yes && enable_static=no
7877 test yes = "$enable_shared" && enable_static=no
73897878 if test -n "$RANLIB"; then
73907879 archive_cmds="$archive_cmds~\$RANLIB \$lib"
73917880 postinstall_cmds='$RANLIB $lib'
73927881 fi
73937882 ;;
73947883 aix[[4-9]]*)
7395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7396 test "$enable_shared" = yes && enable_static=no
7884 if test ia64 != "$host_cpu"; then
7885 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7886 yes,aix,yes) ;; # shared object as lib.so file only
7887 yes,svr4,*) ;; # shared object as lib.so archive member only
7888 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7889 esac
73977890 fi
73987891 ;;
73997892 esac
74017894
74027895 AC_MSG_CHECKING([whether to build static libraries])
74037896 # Make sure either enable_shared or enable_static is yes.
7404 test "$enable_shared" = yes || enable_static=yes
7897 test yes = "$enable_shared" || enable_static=yes
74057898 AC_MSG_RESULT([$enable_static])
74067899
7407 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7408 _LT_TAGVAR(LD, $1)="$LD"
7900 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7901 _LT_TAGVAR(LD, $1)=$LD
74097902
74107903 ## CAVEAT EMPTOR:
74117904 ## There is no encapsulation within the following macros, do not change
74257918 GCC=$lt_save_GCC
74267919 CC=$lt_save_CC
74277920 CFLAGS=$lt_save_CFLAGS
7428 fi # test "$_lt_disable_FC" != yes
7921 fi # test yes != "$_lt_disable_FC"
74297922
74307923 AC_LANG_POP
74317924 ])# _LT_LANG_FC_CONFIG
74357928 # --------------------------
74367929 # Ensure that the configuration variables for the GNU Java Compiler compiler
74377930 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7438 # to write the compiler configuration to `libtool'.
7931 # to write the compiler configuration to 'libtool'.
74397932 m4_defun([_LT_LANG_GCJ_CONFIG],
74407933 [AC_REQUIRE([LT_PROG_GCJ])dnl
74417934 AC_LANG_SAVE
74697962 CFLAGS=$GCJFLAGS
74707963 compiler=$CC
74717964 _LT_TAGVAR(compiler, $1)=$CC
7472 _LT_TAGVAR(LD, $1)="$LD"
7965 _LT_TAGVAR(LD, $1)=$LD
74737966 _LT_CC_BASENAME([$compiler])
74747967
74757968 # GCJ did not exist at the time GCC didn't implicitly link libc in.
75067999 # --------------------------
75078000 # Ensure that the configuration variables for the GNU Go compiler
75088001 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7509 # to write the compiler configuration to `libtool'.
8002 # to write the compiler configuration to 'libtool'.
75108003 m4_defun([_LT_LANG_GO_CONFIG],
75118004 [AC_REQUIRE([LT_PROG_GO])dnl
75128005 AC_LANG_SAVE
75408033 CFLAGS=$GOFLAGS
75418034 compiler=$CC
75428035 _LT_TAGVAR(compiler, $1)=$CC
7543 _LT_TAGVAR(LD, $1)="$LD"
8036 _LT_TAGVAR(LD, $1)=$LD
75448037 _LT_CC_BASENAME([$compiler])
75458038
75468039 # Go did not exist at the time GCC didn't implicitly link libc in.
75778070 # -------------------------
75788071 # Ensure that the configuration variables for the Windows resource compiler
75798072 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7580 # to write the compiler configuration to `libtool'.
8073 # to write the compiler configuration to 'libtool'.
75818074 m4_defun([_LT_LANG_RC_CONFIG],
75828075 [AC_REQUIRE([LT_PROG_RC])dnl
75838076 AC_LANG_SAVE
75938086 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
75948087
75958088 # Code to be used in simple link tests
7596 lt_simple_link_test_code="$lt_simple_compile_test_code"
8089 lt_simple_link_test_code=$lt_simple_compile_test_code
75978090
75988091 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
75998092 _LT_TAG_COMPILER
76038096 _LT_LINKER_BOILERPLATE
76048097
76058098 # Allow CC to be a program name with arguments.
7606 lt_save_CC="$CC"
8099 lt_save_CC=$CC
76078100 lt_save_CFLAGS=$CFLAGS
76088101 lt_save_GCC=$GCC
76098102 GCC=
76328125 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
76338126 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
76348127 [AC_CHECK_TOOL(GCJ, gcj,)
7635 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8128 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
76368129 AC_SUBST(GCJFLAGS)])])[]dnl
76378130 ])
76388131
77438236 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
77448237 # along with /bin/sed that truncates output.
77458238 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7746 test ! -f $lt_ac_sed && continue
8239 test ! -f "$lt_ac_sed" && continue
77478240 cat /dev/null > conftest.in
77488241 lt_ac_count=0
77498242 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
77608253 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
77618254 cmp -s conftest.out conftest.nl || break
77628255 # 10000 chars as input seems more than enough
7763 test $lt_ac_count -gt 10 && break
8256 test 10 -lt "$lt_ac_count" && break
77648257 lt_ac_count=`expr $lt_ac_count + 1`
7765 if test $lt_ac_count -gt $lt_ac_max; then
8258 if test "$lt_ac_count" -gt "$lt_ac_max"; then
77668259 lt_ac_max=$lt_ac_count
77678260 lt_cv_path_SED=$lt_ac_sed
77688261 fi
77868279 # Find out whether the shell is Bourne or XSI compatible,
77878280 # or has some other useful features.
77888281 m4_defun([_LT_CHECK_SHELL_FEATURES],
7789 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7790 # Try some XSI features
7791 xsi_shell=no
7792 ( _lt_dummy="a/b/c"
7793 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7794 = c,a/b,b/c, \
7795 && eval 'test $(( 1 + 1 )) -eq 2 \
7796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7797 && xsi_shell=yes
7798 AC_MSG_RESULT([$xsi_shell])
7799 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7800
7801 AC_MSG_CHECKING([whether the shell understands "+="])
7802 lt_shell_append=no
7803 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7804 >/dev/null 2>&1 \
7805 && lt_shell_append=yes
7806 AC_MSG_RESULT([$lt_shell_append])
7807 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7808
7809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8282 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
78108283 lt_unset=unset
78118284 else
78128285 lt_unset=false
78308303 ])# _LT_CHECK_SHELL_FEATURES
78318304
78328305
7833 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7834 # ------------------------------------------------------
7835 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7836 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7837 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7838 [dnl {
7839 sed -e '/^$1 ()$/,/^} # $1 /c\
7840 $1 ()\
7841 {\
7842 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7843 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7844 && mv -f "$cfgfile.tmp" "$cfgfile" \
7845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7846 test 0 -eq $? || _lt_function_replace_fail=:
7847 ])
7848
7849
7850 # _LT_PROG_REPLACE_SHELLFNS
7851 # -------------------------
7852 # Replace existing portable implementations of several shell functions with
7853 # equivalent extended shell implementations where those features are available..
7854 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7855 [if test x"$xsi_shell" = xyes; then
7856 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7857 case ${1} in
7858 */*) func_dirname_result="${1%/*}${2}" ;;
7859 * ) func_dirname_result="${3}" ;;
7860 esac])
7861
7862 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7863 func_basename_result="${1##*/}"])
7864
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac
7870 func_basename_result="${1##*/}"])
7871
7872 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7873 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7874 # positional parameters, so assign one to ordinary parameter first.
7875 func_stripname_result=${3}
7876 func_stripname_result=${func_stripname_result#"${1}"}
7877 func_stripname_result=${func_stripname_result%"${2}"}])
7878
7879 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7880 func_split_long_opt_name=${1%%=*}
7881 func_split_long_opt_arg=${1#*=}])
7882
7883 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7884 func_split_short_opt_arg=${1#??}
7885 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7886
7887 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7888 case ${1} in
7889 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7890 *) func_lo2o_result=${1} ;;
7891 esac])
7892
7893 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7894
7895 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7896
7897 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7898 fi
7899
7900 if test x"$lt_shell_append" = xyes; then
7901 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7902
7903 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7904 func_quote_for_eval "${2}"
7905 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7906 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7907
7908 # Save a `func_append' function call where possible by direct use of '+='
7909 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7910 && mv -f "$cfgfile.tmp" "$cfgfile" \
7911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7912 test 0 -eq $? || _lt_function_replace_fail=:
7913 else
7914 # Save a `func_append' function call even when '+=' is not available
7915 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7916 && mv -f "$cfgfile.tmp" "$cfgfile" \
7917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7918 test 0 -eq $? || _lt_function_replace_fail=:
7919 fi
7920
7921 if test x"$_lt_function_replace_fail" = x":"; then
7922 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7923 fi
7924 ])
7925
79268306 # _LT_PATH_CONVERSION_FUNCTIONS
79278307 # -----------------------------
7928 # Determine which file name conversion functions should be used by
8308 # Determine what file name conversion functions should be used by
79298309 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
79308310 # for certain cross-compile configurations and native mingw.
79318311 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
3 # Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
66 # This file is free software; the Free Software Foundation gives
77 # unlimited permission to copy and/or distribute it, with or without
88 # modifications, as long as this notice is preserved.
99
10 # serial 7 ltoptions.m4
10 # serial 8 ltoptions.m4
1111
1212 # This is to help aclocal find these macros, as it can't see m4_define.
1313 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
2828 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
2929 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
3030 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
31 [m4_warning([Unknown $1 option '$2'])])[]dnl
3232 ])
3333
3434
7474 dnl
7575 dnl If no reference was made to various pairs of opposing options, then
7676 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
77 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
7878 dnl archives by default:
7979 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8080 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8181 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8282 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
83 [_LT_ENABLE_FAST_INSTALL])
84 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
85 [_LT_WITH_AIX_SONAME([aix])])
8486 ])
8587 ])# _LT_SET_OPTIONS
8688
111113 [_LT_SET_OPTION([LT_INIT], [dlopen])
112114 AC_DIAGNOSE([obsolete],
113115 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
116 put the 'dlopen' option into LT_INIT's first parameter.])
115117 ])
116118
117119 dnl aclocal-1.4 backwards compatibility:
147149 _LT_SET_OPTION([LT_INIT], [win32-dll])
148150 AC_DIAGNOSE([obsolete],
149151 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
152 put the 'win32-dll' option into LT_INIT's first parameter.])
151153 ])
152154
153155 dnl aclocal-1.4 backwards compatibility:
156158
157159 # _LT_ENABLE_SHARED([DEFAULT])
158160 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
161 # implement the --enable-shared flag, and supports the 'shared' and
162 # 'disable-shared' LT_INIT options.
163 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
162164 m4_define([_LT_ENABLE_SHARED],
163165 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164166 AC_ARG_ENABLE([shared],
171173 *)
172174 enable_shared=no
173175 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
175177 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
178 IFS=$lt_save_ifs
177179 if test "X$pkg" = "X$p"; then
178180 enable_shared=yes
179181 fi
180182 done
181 IFS="$lt_save_ifs"
183 IFS=$lt_save_ifs
182184 ;;
183185 esac],
184186 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
210212
211213 # _LT_ENABLE_STATIC([DEFAULT])
212214 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
215 # implement the --enable-static flag, and support the 'static' and
216 # 'disable-static' LT_INIT options.
217 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
216218 m4_define([_LT_ENABLE_STATIC],
217219 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218220 AC_ARG_ENABLE([static],
225227 *)
226228 enable_static=no
227229 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
230 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
229231 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
232 IFS=$lt_save_ifs
231233 if test "X$pkg" = "X$p"; then
232234 enable_static=yes
233235 fi
234236 done
235 IFS="$lt_save_ifs"
237 IFS=$lt_save_ifs
236238 ;;
237239 esac],
238240 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
264266
265267 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266268 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
269 # implement the --enable-fast-install flag, and support the 'fast-install'
270 # and 'disable-fast-install' LT_INIT options.
271 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
270272 m4_define([_LT_ENABLE_FAST_INSTALL],
271273 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272274 AC_ARG_ENABLE([fast-install],
279281 *)
280282 enable_fast_install=no
281283 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
283285 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
286 IFS=$lt_save_ifs
285287 if test "X$pkg" = "X$p"; then
286288 enable_fast_install=yes
287289 fi
288290 done
289 IFS="$lt_save_ifs"
291 IFS=$lt_save_ifs
290292 ;;
291293 esac],
292294 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
303305 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304306 AC_DIAGNOSE([obsolete],
305307 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
308 the 'fast-install' option into LT_INIT's first parameter.])
307309 ])
308310
309311 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310312 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311313 AC_DIAGNOSE([obsolete],
312314 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
315 the 'disable-fast-install' option into LT_INIT's first parameter.])
314316 ])
315317
316318 dnl aclocal-1.4 backwards compatibility:
318320 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319321
320322
323 # _LT_WITH_AIX_SONAME([DEFAULT])
324 # ----------------------------------
325 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
326 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
327 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
328 m4_define([_LT_WITH_AIX_SONAME],
329 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
330 shared_archive_member_spec=
331 case $host,$enable_shared in
332 power*-*-aix[[5-9]]*,yes)
333 AC_MSG_CHECKING([which variant of shared library versioning to provide])
334 AC_ARG_WITH([aix-soname],
335 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
336 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
337 [case $withval in
338 aix|svr4|both)
339 ;;
340 *)
341 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
342 ;;
343 esac
344 lt_cv_with_aix_soname=$with_aix_soname],
345 [AC_CACHE_VAL([lt_cv_with_aix_soname],
346 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
347 with_aix_soname=$lt_cv_with_aix_soname])
348 AC_MSG_RESULT([$with_aix_soname])
349 if test aix != "$with_aix_soname"; then
350 # For the AIX way of multilib, we name the shared archive member
351 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
352 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
353 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
354 # the AIX toolchain works better with OBJECT_MODE set (default 32).
355 if test 64 = "${OBJECT_MODE-32}"; then
356 shared_archive_member_spec=shr_64
357 else
358 shared_archive_member_spec=shr
359 fi
360 fi
361 ;;
362 *)
363 with_aix_soname=aix
364 ;;
365 esac
366
367 _LT_DECL([], [shared_archive_member_spec], [0],
368 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
369 ])# _LT_WITH_AIX_SONAME
370
371 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
374
375
321376 # _LT_WITH_PIC([MODE])
322377 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
378 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
324379 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
380 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
326381 m4_define([_LT_WITH_PIC],
327382 [AC_ARG_WITH([pic],
328383 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
333388 *)
334389 pic_mode=default
335390 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
391 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
337392 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
393 IFS=$lt_save_ifs
339394 if test "X$lt_pkg" = "X$lt_p"; then
340395 pic_mode=yes
341396 fi
342397 done
343 IFS="$lt_save_ifs"
398 IFS=$lt_save_ifs
344399 ;;
345400 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
401 [pic_mode=m4_default([$1], [default])])
349402
350403 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351404 ])# _LT_WITH_PIC
358411 [_LT_SET_OPTION([LT_INIT], [pic-only])
359412 AC_DIAGNOSE([obsolete],
360413 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
414 put the 'pic-only' option into LT_INIT's first parameter.])
362415 ])
363416
364417 dnl aclocal-1.4 backwards compatibility:
00 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
3 # Foundation, Inc.
34 # Written by Gary V. Vaughan, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
3233 # ------------
3334 # Manipulate m4 lists.
3435 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 # Autoconf-2.59, which quotes differently.
3637 m4_define([lt_car], [[$1]])
3738 m4_define([lt_cdr],
3839 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
4344
4445 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
4546 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
4748 # Note that neither SEPARATOR nor STRING are expanded; they are appended
4849 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4950 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
00 # ltversion.m4 -- version numbers -*- Autoconf -*-
11 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
33 # Written by Scott James Remnant, 2004
44 #
55 # This file is free software; the Free Software Foundation gives
88
99 # @configure_input@
1010
11 # serial 3337 ltversion.m4
11 # serial 4179 ltversion.m4
1212 # This file is part of GNU Libtool
1313
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
14 m4_define([LT_PACKAGE_VERSION], [2.4.6])
15 m4_define([LT_PACKAGE_REVISION], [2.4.6])
1616
1717 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
18 [macro_version='2.4.6'
19 macro_revision='2.4.6'
2020 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2121 _LT_DECL(, macro_revision, 0)
2222 ])
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
3 # Foundation, Inc.
34 # Written by Scott James Remnant, 2004.
45 #
56 # This file is free software; the Free Software Foundation gives
1011
1112 # These exist entirely to fool aclocal when bootstrapping libtool.
1213 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
1415 # which have later been changed to m4_define as they aren't part of the
1516 # exported API, or moved to Autoconf or Automake where they belong.
1617 #
2425 # included after everything else. This provides aclocal with the
2526 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
2627 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
2829 #
2930 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3031 # Yes, that means every name once taken will need to remain here until
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616
1717 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
1929 am__make_running_with_option = \
2030 case $${target_option-} in \
2131 ?) ;; \
8292 noinst_PROGRAMS = gen_crc$(EXEEXT) gen_pat$(EXEEXT) gen_pmt$(EXEEXT) \
8393 test_dr$(EXEEXT)
8494 subdir = misc
85 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
86 $(top_srcdir)/.auto/depcomp $(noinst_HEADERS)
8795 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8896 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
8997 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
9199 $(top_srcdir)/configure.ac
92100 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
93101 $(ACLOCAL_M4)
102 DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
103 $(am__DIST_COMMON)
94104 mkinstalldirs = $(install_sh) -d
95105 CONFIG_HEADER = $(top_builddir)/config.h
96106 CONFIG_CLEAN_FILES =
184194 done | $(am__uniquify_input)`
185195 ETAGS = etags
186196 CTAGS = ctags
197 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/.auto/depcomp
187198 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
188199 ACLOCAL = @ACLOCAL@
189200 AMTAR = @AMTAR@
225236 LIPO = @LIPO@
226237 LN_S = @LN_S@
227238 LTLIBOBJS = @LTLIBOBJS@
239 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
228240 MAKEINFO = @MAKEINFO@
229241 MANIFEST_TOOL = @MANIFEST_TOOL@
230242 MKDIR_P = @MKDIR_P@
332344 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign misc/Makefile'; \
333345 $(am__cd) $(top_srcdir) && \
334346 $(AUTOMAKE) --foreign misc/Makefile
335 .PRECIOUS: Makefile
336347 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
337348 @case '$?' in \
338349 *config.status*) \
662673 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
663674 tags tags-am uninstall uninstall-am
664675
676 .PRECIOUS: Makefile
677
665678
666679 test_dr.c: dr.dtd dr.xml dr.xsl
667680 xsltproc -o test_dr.c dr.xsl dr.xml
66 <integer name="i_frame_rate_code" bitcount="4" default="0" />
77 <insert>
88 <begin>
9 s_decoded.b_mpeg2 = 0;</begin>
9 s_decoded.b_mpeg2 = false;</begin>
1010 </insert>
1111 <boolean name="b_constrained_parameter" default="0" />
1212 <boolean name="b_still_picture" default="0" />
1717 <integer name="i_frame_rate_code" bitcount="4" default="0" />
1818 <insert>
1919 <begin>
20 s_decoded.b_mpeg2 = 12;</begin>
20 s_decoded.b_mpeg2 = true;</begin>
2121 </insert>
2222 <boolean name="b_constrained_parameter" default="0" />
2323 <boolean name="b_still_picture" default="0" />
2020 #elif defined(HAVE_STDINT_H)
2121 #include &lt;stdint.h&gt;
2222 #endif
23
24 #include &lt;sys/types.h&gt;
2325
2426 /* the libdvbpsi distribution defines DVBPSI_DIST */
2527 #ifdef DVBPSI_DIST
3838 /* check b_multiple_frame_rate */
3939 BOZO_init_boolean(b_multiple_frame_rate, 0);
4040 BOZO_init_integer(i_frame_rate_code, 0);
41 s_decoded.b_mpeg2 = 0;
41 s_decoded.b_mpeg2 = false;
4242 BOZO_init_boolean(b_constrained_parameter, 0);
4343 BOZO_init_boolean(b_still_picture, 0);
4444 BOZO_begin_boolean(b_multiple_frame_rate)
5050 /* check i_frame_rate_code */
5151 BOZO_init_boolean(b_multiple_frame_rate, 0);
5252 BOZO_init_integer(i_frame_rate_code, 0);
53 s_decoded.b_mpeg2 = 0;
53 s_decoded.b_mpeg2 = false;
5454 BOZO_init_boolean(b_constrained_parameter, 0);
5555 BOZO_init_boolean(b_still_picture, 0);
5656 BOZO_begin_integer(i_frame_rate_code, 4)
6262 /* check b_constrained_parameter */
6363 BOZO_init_boolean(b_multiple_frame_rate, 0);
6464 BOZO_init_integer(i_frame_rate_code, 0);
65 s_decoded.b_mpeg2 = 0;
65 s_decoded.b_mpeg2 = false;
6666 BOZO_init_boolean(b_constrained_parameter, 0);
6767 BOZO_init_boolean(b_still_picture, 0);
6868 BOZO_begin_boolean(b_constrained_parameter)
7474 /* check b_still_picture */
7575 BOZO_init_boolean(b_multiple_frame_rate, 0);
7676 BOZO_init_integer(i_frame_rate_code, 0);
77 s_decoded.b_mpeg2 = 0;
77 s_decoded.b_mpeg2 = false;
7878 BOZO_init_boolean(b_constrained_parameter, 0);
7979 BOZO_init_boolean(b_still_picture, 0);
8080 BOZO_begin_boolean(b_still_picture)
9999 /* check b_multiple_frame_rate */
100100 BOZO_init_boolean(b_multiple_frame_rate, 0);
101101 BOZO_init_integer(i_frame_rate_code, 0);
102 s_decoded.b_mpeg2 = 12;
102 s_decoded.b_mpeg2 = true;
103103 BOZO_init_boolean(b_constrained_parameter, 0);
104104 BOZO_init_boolean(b_still_picture, 0);
105105 BOZO_init_integer(i_profile_level_indication, 0);
114114 /* check i_frame_rate_code */
115115 BOZO_init_boolean(b_multiple_frame_rate, 0);
116116 BOZO_init_integer(i_frame_rate_code, 0);
117 s_decoded.b_mpeg2 = 12;
117 s_decoded.b_mpeg2 = true;
118118 BOZO_init_boolean(b_constrained_parameter, 0);
119119 BOZO_init_boolean(b_still_picture, 0);
120120 BOZO_init_integer(i_profile_level_indication, 0);
129129 /* check b_constrained_parameter */
130130 BOZO_init_boolean(b_multiple_frame_rate, 0);
131131 BOZO_init_integer(i_frame_rate_code, 0);
132 s_decoded.b_mpeg2 = 12;
132 s_decoded.b_mpeg2 = true;
133133 BOZO_init_boolean(b_constrained_parameter, 0);
134134 BOZO_init_boolean(b_still_picture, 0);
135135 BOZO_init_integer(i_profile_level_indication, 0);
144144 /* check b_still_picture */
145145 BOZO_init_boolean(b_multiple_frame_rate, 0);
146146 BOZO_init_integer(i_frame_rate_code, 0);
147 s_decoded.b_mpeg2 = 12;
147 s_decoded.b_mpeg2 = true;
148148 BOZO_init_boolean(b_constrained_parameter, 0);
149149 BOZO_init_boolean(b_still_picture, 0);
150150 BOZO_init_integer(i_profile_level_indication, 0);
159159 /* check i_profile_level_indication */
160160 BOZO_init_boolean(b_multiple_frame_rate, 0);
161161 BOZO_init_integer(i_frame_rate_code, 0);
162 s_decoded.b_mpeg2 = 12;
162 s_decoded.b_mpeg2 = true;
163163 BOZO_init_boolean(b_constrained_parameter, 0);
164164 BOZO_init_boolean(b_still_picture, 0);
165165 BOZO_init_integer(i_profile_level_indication, 0);
174174 /* check i_chroma_format */
175175 BOZO_init_boolean(b_multiple_frame_rate, 0);
176176 BOZO_init_integer(i_frame_rate_code, 0);
177 s_decoded.b_mpeg2 = 12;
177 s_decoded.b_mpeg2 = true;
178178 BOZO_init_boolean(b_constrained_parameter, 0);
179179 BOZO_init_boolean(b_still_picture, 0);
180180 BOZO_init_integer(i_profile_level_indication, 0);
189189 /* check b_frame_rate_extension */
190190 BOZO_init_boolean(b_multiple_frame_rate, 0);
191191 BOZO_init_integer(i_frame_rate_code, 0);
192 s_decoded.b_mpeg2 = 12;
192 s_decoded.b_mpeg2 = true;
193193 BOZO_init_boolean(b_constrained_parameter, 0);
194194 BOZO_init_boolean(b_still_picture, 0);
195195 BOZO_init_integer(i_profile_level_indication, 0);
9696 { \
9797 fprintf(stdout, " \"%s\" boolean check\n", #name); \
9898 i_loop_count = 0; \
99 s_decoded.name = 0; \
99 s_decoded.name = false; \
100100 do \
101101 {
102102
103103 #define BOZO_end_boolean(name) \
104 s_decoded.name += 12; \
105 } while(!i_err && (s_decoded.name <= 12)); \
106 fprintf(stdout, "\r iteration count: %22"PRI64d, i_loop_count); \
104 s_decoded.name ^= true; \
105 } while(!i_err && (s_decoded.name)); \
106 fprintf(stdout, "\r iteration count: %22"PRI64d, i_loop_count); \
107107 if(i_err) \
108108 fprintf(stdout, " FAILED !!!\n"); \
109109 else \
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616
1717 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
1929 am__make_running_with_option = \
2030 case $${target_option-} in \
2131 ?) ;; \
7989 host_triplet = @host@
8090 target_triplet = @target@
8191 subdir = src
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/.auto/depcomp $(pkginclude_HEADERS)
8492 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8593 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
8694 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
8896 $(top_srcdir)/configure.ac
8997 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9098 $(ACLOCAL_M4)
99 DIST_COMMON = $(srcdir)/Makefile.am $(pkginclude_HEADERS) \
100 $(am__DIST_COMMON)
91101 mkinstalldirs = $(install_sh) -d
92102 CONFIG_HEADER = $(top_builddir)/config.h
93103 CONFIG_CLEAN_FILES =
219229 done | $(am__uniquify_input)`
220230 ETAGS = etags
221231 CTAGS = ctags
232 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/.auto/depcomp
222233 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
223234 pkgincludedir = $(includedir)/dvbpsi
224235 ACLOCAL = @ACLOCAL@
261272 LIPO = @LIPO@
262273 LN_S = @LN_S@
263274 LTLIBOBJS = @LTLIBOBJS@
275 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
264276 MAKEINFO = @MAKEINFO@
265277 MANIFEST_TOOL = @MANIFEST_TOOL@
266278 MKDIR_P = @MKDIR_P@
506518 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
507519 $(am__cd) $(top_srcdir) && \
508520 $(AUTOMAKE) --foreign src/Makefile
509 .PRECIOUS: Makefile
510521 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
511522 @case '$?' in \
512523 *config.status*) \
10641075 uninstall-libLTLIBRARIES uninstall-local \
10651076 uninstall-pkgincludeHEADERS
10661077
1078 .PRECIOUS: Makefile
1079
10671080
10681081 install-data-local:
10691082 mkdir -p $(DESTDIR)$(pkgincludedir)/types
472472 }
473473 }
474474
475 bool b_complete = dvbpsi_IsCompleteEIT(p_eit_decoder, p_section);
476
475477 /* Add section to EIT */
476478 if (!dvbpsi_AddSectionEIT(p_dvbpsi, p_eit_decoder, p_section))
477479 {
482484 }
483485
484486 /* Check if we have all the sections */
485 /* FIXME: p_section has just been added to the p_eit_decoder,
486 * Why do we have to explicitly check against it in dvbpsi_IsCompleteEIT() ?
487 */
488 if (dvbpsi_IsCompleteEIT(p_eit_decoder, p_section))
487 if (b_complete)
489488 {
490489 assert(p_eit_decoder->pf_eit_callback);
491490
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1313
1414 @SET_MAKE@
1515 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
16 am__is_gnu_make = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
1727 am__make_running_with_option = \
1828 case $${target_option-} in \
1929 ?) ;; \
7888 host_triplet = @host@
7989 target_triplet = @target@
8090 subdir = wince
81 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8291 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8392 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
8493 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
8695 $(top_srcdir)/configure.ac
8796 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8897 $(ACLOCAL_M4)
98 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
8999 mkinstalldirs = $(install_sh) -d
90100 CONFIG_HEADER = $(top_builddir)/config.h
91101 CONFIG_CLEAN_FILES =
110120 *) (install-info --version) >/dev/null 2>&1;; \
111121 esac
112122 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
123 am__DIST_COMMON = $(srcdir)/Makefile.in
113124 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
114125 ACLOCAL = @ACLOCAL@
115126 AMTAR = @AMTAR@
151162 LIPO = @LIPO@
152163 LN_S = @LN_S@
153164 LTLIBOBJS = @LTLIBOBJS@
165 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
154166 MAKEINFO = @MAKEINFO@
155167 MANIFEST_TOOL = @MANIFEST_TOOL@
156168 MKDIR_P = @MKDIR_P@
252264 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign wince/Makefile'; \
253265 $(am__cd) $(top_srcdir) && \
254266 $(AUTOMAKE) --foreign wince/Makefile
255 .PRECIOUS: Makefile
256267 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
257268 @case '$?' in \
258269 *config.status*) \
427438 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
428439 tags-am uninstall uninstall-am
429440
441 .PRECIOUS: Makefile
442
430443
431444 # Tell versions [3.59,3.63) of GNU make to not export all variables.
432445 # Otherwise a system limit (for SysV at least) may be exceeded.