3 # libtoolT - Provide generalized library-building support services.
4 # Generated automatically by (GNU libvorbis 1.2.3)
5 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
8 # Free Software Foundation, Inc.
10 # This file is part of GNU Libtool:
11 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13 # This program is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation; either version 2 of the License, or
16 # (at your option) any later version.
18 # This program is distributed in the hope that it will be useful, but
19 # WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 # General Public License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
32 # A sed program that does not truncate output.
35 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36 Xsed
="/bin/sed -e 1s/^X//"
38 # The HP-UX ksh and POSIX shell print the target directory to stdout
40 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
42 # The names of the tagged configurations supported by this script.
45 # ### BEGIN LIBTOOL CONFIG
47 # Libtool was configured on host vicente-P5K-E:
49 # Shell to use when invoking shell scripts.
52 # Whether or not to build shared libraries.
53 build_libtool_libs
=yes
55 # Whether or not to build static libraries.
58 # Whether or not to add -lc for building shared libraries.
59 build_libtool_need_lc
=no
61 # Whether or not to disallow shared libs when runtime libs are static
62 allow_libtool_libs_with_static_runtimes
=no
64 # Whether or not to optimize for fast installation.
68 host_alias
=mipsel-linux
69 host=mipsel-unknown-linux-gnu
73 build_alias
=x86_64-linux-gnu
74 build
=x86_64-pc-linux-gnu
77 # An echo program that does not interpret backslashes.
85 LTCC
="mipsel-uclibc-gcc"
87 # LTCC compiler flags.
88 LTCFLAGS
="-Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 -fPIC -ffunction-sections -fdata-sections"
90 # A language-specific compiler.
91 CC
="mipsel-uclibc-gcc"
93 # Is the compiler the GNU C compiler?
99 # The linker used to build libraries.
100 LD
="mipsel-uclibc-ld"
102 # Whether we need hard or soft links.
105 # A BSD-compatible nm program.
106 NM
="mipsel-uclibc-nm"
108 # A symbol stripping program
109 STRIP
="mipsel-uclibc-strip -R .note -R .comment"
111 # Used to examine libraries when file_magic_cmd begins "file"
114 # Used on cygwin: DLL creation program.
117 # Used on cygwin: object dumper.
120 # Used on cygwin: assembler.
121 AS
="mipsel-uclibc-as"
123 # The name of the directory that contains temporary libtool files.
126 # How to create reloadable object files.
128 reload_cmds
="\$LD\$reload_flag -o \$output\$reload_objs"
130 # How to pass a linker flag through the compiler.
133 # Object file suffix (normally "o").
136 # Old archive suffix (normally "a").
139 # Shared library suffix (normally ".so").
142 # Executable file suffix (normally "").
145 # Additional compiler flags for building library objects.
146 pic_flag
=" -fPIC -DPIC"
149 # What is the maximum length of a command?
150 max_cmd_len
=3458764513820540925
152 # Does compiler simultaneously support -c and -o options?
155 # Must we lock files when doing compilation?
158 # Do we need the lib prefix for modules?
161 # Do we need a version for libraries?
164 # Whether dlopen is supported.
165 dlopen_support
=unknown
167 # Whether dlopen of programs is supported.
170 # Whether dlopen of statically linked programs is supported.
171 dlopen_self_static
=unknown
173 # Compiler flag to prevent dynamic linking.
174 link_static_flag
="-static"
176 # Compiler flag to turn off builtin functions.
177 no_builtin_flag
=" -fno-builtin"
179 # Compiler flag to allow reflexive dlopens.
180 export_dynamic_flag_spec
="\${wl}--export-dynamic"
182 # Compiler flag to generate shared objects directly from archives.
183 whole_archive_flag_spec
="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
185 # Compiler flag to generate thread-safe objects.
186 thread_safe_flag_spec
=""
188 # Library versioning type.
191 # Format of library name prefix.
192 libname_spec
="lib\$name"
194 # List of archive names. First name is the real one, the rest are links.
195 # The last name is the one that the linker finds with -lNAME.
196 library_names_spec
="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"
198 # The coded name of the library, if different from the real name.
199 soname_spec
="\${libname}\${release}\${shared_ext}\$major"
201 # Commands used to build and install an old-style archive.
202 RANLIB
="mipsel-uclibc-ranlib"
203 old_archive_cmds
="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"
204 old_postinstall_cmds
="chmod 644 \$oldlib~\$RANLIB \$oldlib"
205 old_postuninstall_cmds
=""
207 # Create an old-style archive from a shared archive.
208 old_archive_from_new_cmds
=""
210 # Create a temporary old-style archive to link instead of a shared archive.
211 old_archive_from_expsyms_cmds
=""
213 # Commands used to build and install a shared archive.
214 archive_cmds
="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
215 archive_expsym_cmds
="\$echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~
216 cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~
217 \$echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~
218 \$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib"
220 postuninstall_cmds
=""
222 # Commands used to build a loadable module (assumed same as above if empty)
224 module_expsym_cmds
=""
226 # Commands to strip libraries.
227 old_striplib
="mipsel-uclibc-strip -R .note -R .comment --strip-debug"
228 striplib
="mipsel-uclibc-strip -R .note -R .comment --strip-unneeded"
230 # Dependencies to place before the objects being linked to create a
234 # Dependencies to place after the objects being linked to create a
238 # Dependencies to place before the objects being linked to create a
242 # Dependencies to place after the objects being linked to create a
246 # The directories searched by this compiler when creating a shared
248 compiler_lib_search_dirs
=""
250 # The library search path used internally by the compiler when linking
252 compiler_lib_search_path
=""
254 # Method to check whether dependent libraries are shared objects.
255 deplibs_check_method
="pass_all"
257 # Command to use when deplibs_check_method == file_magic.
258 file_magic_cmd
="\$MAGIC_CMD"
260 # Flag that allows shared libraries with undefined symbols to be built.
261 allow_undefined_flag
=""
263 # Flag that forces no undefined symbols.
266 # Commands used to finish a libtool library installation in a directory.
267 finish_cmds
="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
269 # Same as above, but a single script fragment to be evaled but not shown.
272 # Take the output of nm and produce a listing of raw symbols and C names.
273 global_symbol_pipe
="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
275 # Transform the output of nm in a proper C declaration
276 global_symbol_to_cdecl
="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'"
278 # Transform the output of nm in a C name address pair
279 global_symbol_to_c_name_address
="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'"
281 # This is the shared library runtime path variable.
282 runpath_var
=LD_RUN_PATH
284 # This is the shared library path variable.
285 shlibpath_var
=LD_LIBRARY_PATH
287 # Is shlibpath searched before the hard-coded library search path?
288 shlibpath_overrides_runpath
=no
290 # How to hardcode a shared library path into an executable.
291 hardcode_action
=immediate
293 # Whether we should hardcode library paths into libraries.
294 hardcode_into_libs
=yes
296 # Flag to hardcode $libdir into a binary during linking.
297 # This must work even if $libdir does not exist.
298 hardcode_libdir_flag_spec
="\${wl}--rpath \${wl}\$libdir"
300 # If ld is used when linking, flag to hardcode $libdir into
301 # a binary during linking. This must work even if $libdir does
303 hardcode_libdir_flag_spec_ld
=""
305 # Whether we need a single -rpath flag with a separated argument.
306 hardcode_libdir_separator
=""
308 # Set to yes if using DIR/libNAME during linking hardcodes DIR into the
312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
317 # the resulting binary.
318 hardcode_shlibpath_var
=unsupported
320 # Set to yes if building a shared library automatically hardcodes DIR into the library
321 # and all subsequent libraries and executables linked against it.
322 hardcode_automatic
=no
324 # Variables whose values should be saved in libtool wrapper scripts and
325 # restored at relink time.
326 variables_saved_for_relink
="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
328 # Whether libtool must link a program against all its dependency libraries.
331 # Compile-time system search path for libraries
332 sys_lib_search_path_spec
="/home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/lib/gcc/mipsel-linux-uclibc/4.2.4 /home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/lib/gcc /home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/mipsel-linux-uclibc/lib"
334 # Run-time system search path for libraries
335 sys_lib_dlsearch_path_spec
="/lib /usr/lib /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i686-linux-gnu /usr/lib/i686-linux-gnu /usr/local/lib /usr/lib/nvidia-settings /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/nvidia-current /usr/lib32/nvidia-current /lib32 /usr/lib32 "
337 # Fix the shell variable $srcfile for the compiler.
340 # Set to yes if exported symbols are required.
341 always_export_symbols
=no
343 # The commands to list exported symbols.
344 export_symbols_cmds
="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
346 # The commands to extract the exported symbol list from a shared archive.
347 extract_expsyms_cmds
=""
349 # Symbols that should not be listed in the preloaded symbols.
350 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*"
352 # Symbols that must always be exported.
355 # ### END LIBTOOL CONFIG
357 # ltmain.sh - Provide generalized library-building support services.
358 # NOTE: Changing this file will not affect anything until you rerun configure.
360 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
361 # 2007, 2008 Free Software Foundation, Inc.
362 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
364 # This program is free software; you can redistribute it and/or modify
365 # it under the terms of the GNU General Public License as published by
366 # the Free Software Foundation; either version 2 of the License, or
367 # (at your option) any later version.
369 # This program is distributed in the hope that it will be useful, but
370 # WITHOUT ANY WARRANTY; without even the implied warranty of
371 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
372 # General Public License for more details.
374 # You should have received a copy of the GNU General Public License
375 # along with this program; if not, write to the Free Software
376 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
378 # As a special exception to the GNU General Public License, if you
379 # distribute this file as part of a program that contains a
380 # configuration script generated by Autoconf, you may include it under
381 # the same distribution terms that you use for the rest of that program.
385 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
386 # is ksh but when the shell is invoked as "sh" and the current value of
387 # the _XPG environment variable is not equal to 1 (one), the special
388 # positional parameter $0, within a function call, is the name of the
392 # The name of this program:
393 progname
=`echo "$progpath" | $SED $basename`
402 VERSION
="1.5.26 Debian 1.5.26-4"
403 TIMESTAMP
=" (1.1220.2.493 2008/02/01 16:58:18)"
405 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
406 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
409 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
410 # is contrary to our usage. Disable this feature.
411 alias -g '${1+"$@"}'='"$@"'
414 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
416 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
417 DUALCASE
=1; export DUALCASE
# for MKS sh
419 # Check that we have a working $echo.
420 if test "X$1" = X--no-reexec
; then
421 # Discard the --no-reexec flag, and continue.
423 elif test "X$1" = X--fallback-echo
; then
424 # Avoid inline document here, it may be left over
426 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
427 # Yippee, $echo works!
430 # Restart under the correct shell, and then maybe $echo will work.
431 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
434 if test "X$1" = X--fallback-echo
; then
435 # used as fallback echo
444 help="Try \`$progname --help' for more information."
445 magic
="%%%MAGIC variable%%%"
450 # Sed substitution that helps us do robust quoting. It backslashifies
451 # metacharacters that are still active within double-quoted strings.
452 Xsed
="${SED}"' -e 1s/^X//'
453 sed_quote_subst
='s/\([\\`\\"$\\\\]\)/\\\1/g'
454 # test EBCDIC or ASCII
455 case `echo X|tr X '\101'` in
456 A
) # ASCII based system
457 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
459 NL2SP
='tr \015\012 \040\040'
461 *) # EBCDIC based system
463 NL2SP
='tr \r\n \100\100'
468 # Only set LANG and LC_ALL to C if already set.
469 # These must not be set unconditionally because not all systems understand
470 # e.g. LANG=C (notably SCO).
471 # We save the old values to restore during execute mode.
473 for lt_var
in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
475 eval "if test \"\${$lt_var+set}\" = set; then
476 save_$lt_var=\$$lt_var
477 lt_env=\"$lt_var=\$$lt_var \$lt_env\"
483 if test -n "$lt_env"; then
487 # Make sure IFS has a sensible default
492 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
493 $echo "$modename: not configured to build any kind of library" 1>&2
494 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
509 lo2o
="s/\\.lo\$/.${objext}/"
510 o2lo
="s/\\.${objext}\$/.lo/"
514 #####################################
515 # Shell function definitions:
516 # This seems to be the best place for them
518 # func_mktempdir [string]
519 # Make a temporary directory that won't clash with other running
520 # libtool processes, and avoids race conditions if possible. If
521 # given, STRING is the basename for that directory.
524 my_template
="${TMPDIR-/tmp}/${1-$progname}"
526 if test "$run" = ":"; then
527 # Return a directory name, but don't create it in dry-run mode
528 my_tmpdir
="${my_template}-$$"
531 # If mktemp works, use that first and foremost
532 my_tmpdir
=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
534 if test ! -d "$my_tmpdir"; then
535 # Failing that, at least try and use $RANDOM to avoid a race
536 my_tmpdir
="${my_template}-${RANDOM-0}$$"
538 save_mktempdir_umask
=`umask`
541 umask $save_mktempdir_umask
544 # If we're not in dry-run mode, bomb out on failure
545 test -d "$my_tmpdir" ||
{
546 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
551 $echo "X$my_tmpdir" |
$Xsed
555 # func_win32_libid arg
556 # return the library type of file 'arg'
558 # Need a lot of goo to handle *both* DLLs and import libs
559 # Has to be a shell function in order to 'eat' the argument
560 # that is supplied when $file_magic_command is called.
563 win32_libid_type
="unknown"
564 win32_fileres
=`file -L $1 2>/dev/null`
565 case $win32_fileres in
566 *ar\ archive\ import\ library
*) # definitely import
567 win32_libid_type
="x86 archive import"
569 *ar\ archive
*) # could be an import, or static
570 if eval $OBJDUMP -f $1 |
$SED -e '10q' 2>/dev
/null | \
571 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev
/null
; then
572 win32_nmres
=`eval $NM -f posix -A $1 | \
581 import
*) win32_libid_type
="x86 archive import";;
582 *) win32_libid_type
="x86 archive static";;
587 win32_libid_type
="x86 DLL"
589 *executable
*) # but shell scripts are "executable" too...
590 case $win32_fileres in
591 *MS\ Windows\ PE\ Intel
*)
592 win32_libid_type
="x86 DLL"
597 $echo $win32_libid_type
602 # Infer tagged configuration to use if any are available and
603 # if one wasn't chosen via the "--tag" command line option.
604 # Only attempt this if the compiler in the base compile
605 # command doesn't match the default compiler.
606 # arg is usually of the form 'gcc ...'
609 if test -n "$available_tags" && test -z "$tagname"; then
613 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
617 CC_quoted
="$CC_quoted $arg"
620 # Blanks in the command may have been stripped by the calling shell,
621 # but not from the CC environment variable when configure was run.
622 " $CC "* |
"$CC "* |
" `$echo $CC` "* |
"`$echo $CC` "* |
" $CC_quoted"* |
"$CC_quoted "* |
" `$echo $CC_quoted` "* |
"`$echo $CC_quoted` "*) ;;
623 # Blanks at the start of $base_compile will cause this to fail
624 # if we don't check for them as well.
626 for z
in $available_tags; do
627 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev
/null
; then
628 # Evaluate the configuration.
629 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
632 # Double-quote args containing other shell metacharacters.
634 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
638 CC_quoted
="$CC_quoted $arg"
641 " $CC "* |
"$CC "* |
" `$echo $CC` "* |
"`$echo $CC` "* |
" $CC_quoted"* |
"$CC_quoted "* |
" `$echo $CC_quoted` "* |
"`$echo $CC_quoted` "*)
642 # The compiler in the base compile command matches
643 # the one in the tagged configuration.
644 # Assume this is the tagged configuration we want.
651 # If $tagname still isn't set, then no tagged configuration
652 # was found and let the user know that the "--tag" command
653 # line option must be used.
654 if test -z "$tagname"; then
655 $echo "$modename: unable to infer tagged configuration"
656 $echo "$modename: specify a tag with \`--tag'" 1>&2
659 # $echo "$modename: using $tagname tagged configuration"
667 # func_extract_an_archive dir oldlib
668 func_extract_an_archive
()
670 f_ex_an_ar_dir
="$1"; shift
671 f_ex_an_ar_oldlib
="$1"
673 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
674 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" ||
exit $?
675 if ($AR t
"$f_ex_an_ar_oldlib" |
sort |
sort -uc >/dev
/null
2>&1); then
678 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
683 # func_extract_archives gentop oldlib ...
684 func_extract_archives
()
686 my_gentop
="$1"; shift
694 $show "${rm}r $my_gentop"
695 $run ${rm}r
"$my_gentop"
696 $show "$mkdir $my_gentop"
697 $run $mkdir "$my_gentop"
699 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
703 for my_xlib
in $my_oldlibs; do
704 # Extract the objects.
706 [\\/]* |
[A-Za-z
]:[\\/]*) my_xabs
="$my_xlib" ;;
707 *) my_xabs
=`pwd`"/$my_xlib" ;;
709 my_xlib
=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
712 case " $extracted_archives " in
714 extracted_serial
=`expr $extracted_serial + 1`
715 my_xlib_u
=lt
$extracted_serial-$my_xlib ;;
719 extracted_archives
="$extracted_archives $my_xlib_u"
720 my_xdir
="$my_gentop/$my_xlib_u"
722 $show "${rm}r $my_xdir"
723 $run ${rm}r
"$my_xdir"
724 $show "$mkdir $my_xdir"
725 $run $mkdir "$my_xdir"
727 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
732 $show "Extracting $my_xabs"
733 # Do not bother doing anything if just a dry run
734 if test -z "$run"; then
735 darwin_orig_dir
=`pwd`
736 cd $my_xdir ||
exit $?
737 darwin_archive
=$my_xabs
739 darwin_base_archive
=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
740 darwin_arches
=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
741 if test -n "$darwin_arches"; then
742 darwin_arches
=`echo "$darwin_arches" | $SED -e 's/.*are://'`
744 $show "$darwin_base_archive has multiple architectures $darwin_arches"
745 for darwin_arch
in $darwin_arches ; do
746 mkdir
-p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
747 lipo
-thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
748 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
749 func_extract_an_archive
"`pwd`" "${darwin_base_archive}"
751 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
752 done # $darwin_arches
753 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
754 darwin_filelist
=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
757 for darwin_file
in $darwin_filelist; do
758 darwin_files
=`find unfat-$$ -name $darwin_file -print | $NL2SP`
759 lipo
-create -output "$darwin_file" $darwin_files
760 done # $darwin_filelist
762 cd "$darwin_orig_dir"
764 cd "$darwin_orig_dir"
765 func_extract_an_archive
"$my_xdir" "$my_xabs"
770 func_extract_an_archive
"$my_xdir" "$my_xabs"
773 my_oldobjs
="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
775 func_extract_archives_result
="$my_oldobjs"
777 # End of Shell function definitions
778 #####################################
781 eval std_shrext
=\"$shrext_cmds\"
785 # Parse our command line options once, thoroughly.
786 while test "$#" -gt 0
792 -*=*) optarg
=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
796 # If the previous option needs an argument, assign it.
797 if test -n "$prev"; then
800 execute_dlfiles
="$execute_dlfiles $arg"
804 preserve_args
="${preserve_args}=$arg"
806 # Check whether tagname contains only valid characters
809 $echo "$progname: invalid tag name: $tagname" 1>&2
816 # Don't test for the "default" C tag, as we know, it's there, but
817 # not specially marked.
820 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev
/null
; then
821 taglist
="$taglist $tagname"
822 # Evaluate the configuration.
823 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
825 $echo "$progname: ignoring unknown tag $tagname" 1>&2
840 # Have we seen a non-optional argument yet?
848 $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
850 Copyright (C) 2008 Free Software Foundation, Inc.
851 This is free software; see the source for copying conditions. There is NO
852 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
857 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
858 # Now print the configurations for the tags.
859 for tagname
in $taglist; do
860 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
866 $echo "$progname: enabling shell trace mode"
868 preserve_args
="$preserve_args $arg"
877 if test "$build_libtool_libs" = yes; then
878 $echo "enable shared libraries"
880 $echo "disable shared libraries"
882 if test "$build_old_libs" = yes; then
883 $echo "enable static libraries"
885 $echo "disable static libraries"
890 --finish) mode
="finish" ;;
892 --mode) prevopt
="--mode" prev
=mode
;;
893 --mode=*) mode
="$optarg" ;;
895 --preserve-dup-deps) duplicate_deps
="yes" ;;
899 preserve_args
="$preserve_args $arg"
905 preserve_args
="$preserve_args --tag"
908 set tag
"$optarg" ${1+"$@"}
911 preserve_args
="$preserve_args --tag"
920 $echo "$modename: unrecognized option \`$arg'" 1>&2
932 if test -n "$prevopt"; then
933 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
938 case $disable_libs in
942 build_libtool_libs
=no
946 build_old_libs
=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
950 # If this variable is set in any of the actions, the command in it
951 # will be execed at the end. This prevents here-documents from being
952 # left over by shells.
955 if test -z "$show_help"; then
957 # Infer the operation mode.
958 if test -z "$mode"; then
959 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
960 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
962 *cc | cc
* |
*++ | gcc
* |
*-gcc* | g
++* | xlc
*)
974 *db |
*dbx |
*strace |
*truss
)
984 # If we have no mode, but dlfiles were specified, then do execute mode.
985 test -n "$execute_dlfiles" && mode
=execute
987 # Just use the default operation mode.
988 if test -z "$mode"; then
989 if test -n "$nonopt"; then
990 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
992 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
999 # Only execute mode is allowed to have -dlopen flags.
1000 if test -n "$execute_dlfiles" && test "$mode" != execute
; then
1001 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
1006 # Change the help message to a mode-specific one.
1007 generic_help
="$help"
1008 help="Try \`$modename --help --mode=$mode' for more information."
1010 # These modes are in order of execution frequency so that they run quickly.
1012 # libtool compile mode
1014 modename
="$modename: compile"
1015 # Get the compilation command and the source file.
1017 srcfile
="$nonopt" # always keep a non-empty value in "srcfile"
1028 # do not "continue". Instead, add this to base_compile
1040 # Accept any command-line options.
1043 if test -n "$libobj" ; then
1044 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
1051 -static |
-prefer-pic |
-prefer-non-pic)
1062 arg_mode
=arg
# the next one goes into the "base_compile" arg list
1063 continue # The current "srcfile" will either be retained or
1064 ;; # replaced later. I would guess that would be a bug.
1067 args
=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
1069 save_ifs
="$IFS"; IFS
=','
1070 for arg
in $args; do
1073 # Double-quote args containing other shell metacharacters.
1074 # Many Bourne shells cannot handle close brackets correctly
1075 # in scan sets, so we specify it separately.
1077 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1081 lastarg
="$lastarg $arg"
1084 lastarg
=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
1086 # Add the arguments to base_compile.
1087 base_compile
="$base_compile $lastarg"
1092 # Accept the current argument as the source file.
1093 # The previous "srcfile" becomes the current argument.
1100 esac # case $arg_mode
1102 # Aesthetically quote the previous argument.
1103 lastarg
=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
1106 # Double-quote args containing other shell metacharacters.
1107 # Many Bourne shells cannot handle close brackets correctly
1108 # in scan sets, and some SunOS ksh mistreat backslash-escaping
1109 # in scan sets (worked around with variable expansion),
1110 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
1111 # at all, so we specify them separately.
1112 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1113 lastarg
="\"$lastarg\""
1117 base_compile
="$base_compile $lastarg"
1122 $echo "$modename: you must specify an argument for -Xcompile"
1126 $echo "$modename: you must specify a target with \`-o'" 1>&2
1130 # Get the name of the library object.
1131 [ -z "$libobj" ] && libobj
=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
1135 # Recognize several different file suffixes.
1136 # If the user specifies -o file.o, it is replaced with file.lo
1146 *.class
) xform
=class
;;
1149 *.
[fF
][09]?
) xform
=[fF
][09].
;;
1151 *.java
) xform
=java
;;
1156 libobj
=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
1159 *.lo
) obj
=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
1161 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
1166 func_infer_tag
$base_compile
1168 for arg
in $later; do
1187 qlibobj
=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
1189 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1190 qlibobj
="\"$qlibobj\"" ;;
1192 test "X$libobj" != "X$qlibobj" \
1193 && $echo "X$libobj" |
grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
1194 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
1195 objname
=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
1196 xdir
=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
1197 if test "X$xdir" = "X$obj"; then
1202 lobj
=${xdir}$objdir/$objname
1204 if test -z "$base_compile"; then
1205 $echo "$modename: you must specify a compilation command" 1>&2
1210 # Delete any leftover library objects.
1211 if test "$build_old_libs" = yes; then
1212 removelist
="$obj $lobj $libobj ${libobj}T"
1214 removelist
="$lobj $libobj ${libobj}T"
1217 $run $rm $removelist
1218 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
1220 # On Cygwin there's no "real" PIC flag so we must build both object types
1222 cygwin
* | mingw
* | pw32
* | os2
*)
1226 if test "$pic_mode" = no
&& test "$deplibs_check_method" != pass_all
; then
1227 # non-PIC code in shared libraries is not supported
1231 # Calculate the filename of the output object if compiler does
1232 # not support -o with -c
1233 if test "$compiler_c_o" = no
; then
1234 output_obj
=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.
${objext}
1235 lockfile
="$output_obj.lock"
1236 removelist
="$removelist $output_obj $lockfile"
1237 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
1244 # Lock this critical section if it is needed
1245 # We use this script file to make the link, it avoids creating a new file
1246 if test "$need_locks" = yes; then
1247 until $run ln "$progpath" "$lockfile" 2>/dev
/null
; do
1248 $show "Waiting for $lockfile to be removed"
1251 elif test "$need_locks" = warn
; then
1252 if test -f "$lockfile"; then
1254 *** ERROR, $lockfile exists and contains:
1255 `cat $lockfile 2>/dev/null`
1257 This indicates that another process is trying to use the same
1258 temporary object file, and libtool could not work around it because
1259 your compiler does not support \`-c' and \`-o' together. If you
1260 repeat this compilation, it may succeed, by chance, but you had better
1261 avoid parallel builds (make -j) in this platform, or get a better
1264 $run $rm $removelist
1267 $echo "$srcfile" > "$lockfile"
1270 if test -n "$fix_srcfile_path"; then
1271 eval srcfile
=\"$fix_srcfile_path\"
1273 qsrcfile
=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
1275 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1276 qsrcfile
="\"$qsrcfile\"" ;;
1279 $run $rm "$libobj" "${libobj}T"
1281 # Create a libtool object file (analogous to a ".la" file),
1282 # but don't create it if we're doing a dry run.
1283 test -z "$run" && cat > ${libobj}T
<<EOF
1284 # $libobj - a libtool object file
1285 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
1287 # Please DO NOT delete this file!
1288 # It is necessary for linking the library.
1290 # Name of the PIC object.
1293 # Only build a PIC object if we are building libtool libraries.
1294 if test "$build_libtool_libs" = yes; then
1295 # Without this assignment, base_compile gets emptied.
1296 fbsd_hideous_sh_bug
=$base_compile
1298 if test "$pic_mode" != no
; then
1299 command="$base_compile $qsrcfile $pic_flag"
1301 # Don't build PIC code
1302 command="$base_compile $qsrcfile"
1305 if test ! -d "${xdir}$objdir"; then
1306 $show "$mkdir ${xdir}$objdir"
1307 $run $mkdir ${xdir}$objdir
1309 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
1314 if test -z "$output_obj"; then
1315 # Place PIC objects in $objdir
1316 command="$command -o $lobj"
1319 $run $rm "$lobj" "$output_obj"
1322 if $run eval $lt_env "$command"; then :
1324 test -n "$output_obj" && $run $rm $removelist
1328 if test "$need_locks" = warn
&&
1329 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1331 *** ERROR, $lockfile contains:
1332 `cat $lockfile 2>/dev/null`
1334 but it should contain:
1337 This indicates that another process is trying to use the same
1338 temporary object file, and libtool could not work around it because
1339 your compiler does not support \`-c' and \`-o' together. If you
1340 repeat this compilation, it may succeed, by chance, but you had better
1341 avoid parallel builds (make -j) in this platform, or get a better
1344 $run $rm $removelist
1348 # Just move the object if needed, then go on to compile the next one
1349 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
1350 $show "$mv $output_obj $lobj"
1351 if $run $mv $output_obj $lobj; then :
1354 $run $rm $removelist
1359 # Append the name of the PIC object to the libtool object file.
1360 test -z "$run" && cat >> ${libobj}T
<<EOF
1361 pic_object='$objdir/$objname'
1365 # Allow error messages only from the first compilation.
1366 if test "$suppress_opt" = yes; then
1367 suppress_output
=' >/dev/null 2>&1'
1370 # No PIC object so indicate it doesn't exist in the libtool
1372 test -z "$run" && cat >> ${libobj}T
<<EOF
1378 # Only build a position-dependent object if we build old libraries.
1379 if test "$build_old_libs" = yes; then
1380 if test "$pic_mode" != yes; then
1381 # Don't build PIC code
1382 command="$base_compile $qsrcfile"
1384 command="$base_compile $qsrcfile $pic_flag"
1386 if test "$compiler_c_o" = yes; then
1387 command="$command -o $obj"
1390 # Suppress compiler output if we already did a PIC compilation.
1391 command="$command$suppress_output"
1392 $run $rm "$obj" "$output_obj"
1394 if $run eval $lt_env "$command"; then :
1396 $run $rm $removelist
1400 if test "$need_locks" = warn
&&
1401 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1403 *** ERROR, $lockfile contains:
1404 `cat $lockfile 2>/dev/null`
1406 but it should contain:
1409 This indicates that another process is trying to use the same
1410 temporary object file, and libtool could not work around it because
1411 your compiler does not support \`-c' and \`-o' together. If you
1412 repeat this compilation, it may succeed, by chance, but you had better
1413 avoid parallel builds (make -j) in this platform, or get a better
1416 $run $rm $removelist
1420 # Just move the object if needed
1421 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1422 $show "$mv $output_obj $obj"
1423 if $run $mv $output_obj $obj; then :
1426 $run $rm $removelist
1431 # Append the name of the non-PIC object the libtool object file.
1432 # Only append if the libtool object file exists.
1433 test -z "$run" && cat >> ${libobj}T
<<EOF
1434 # Name of the non-PIC object.
1435 non_pic_object='$objname'
1439 # Append the name of the non-PIC object the libtool object file.
1440 # Only append if the libtool object file exists.
1441 test -z "$run" && cat >> ${libobj}T
<<EOF
1442 # Name of the non-PIC object.
1448 $run $mv "${libobj}T" "${libobj}"
1450 # Unlock the critical section if it was locked
1451 if test "$need_locks" != no
; then
1452 $run $rm "$lockfile"
1460 modename
="$modename: link"
1462 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-os2*)
1463 # It is impossible to link a dll without this setting, and
1464 # we shouldn't force the makefile maintainer to figure out
1465 # which system we are compiling for in order to pass an extra
1466 # flag for every libtool invocation.
1467 # allow_undefined=no
1469 # FIXME: Unfortunately, there are problems with the above when trying
1470 # to make a dll which has undefined symbols, in which case not
1471 # even a static library is built. For now, we need to specify
1472 # -no-undefined on the libtool link line when we can be certain
1473 # that all symbols are satisfied, otherwise we get a static library.
1480 libtool_args
="$nonopt"
1481 base_compile
="$nonopt $@"
1482 compile_command
="$nonopt"
1483 finalize_command
="$nonopt"
1496 lib_search_path
=`pwd`
1505 export_symbols_regex
=
1513 notinst_path
= # paths that contain not-installed libtool libraries
1514 precious_files_regex
=
1515 prefer_static_libs
=no
1527 single_module
="${wl}-single_module"
1529 func_infer_tag
$base_compile
1531 # We need to know -static, to get the right output filenames.
1535 -all-static |
-static |
-static-libtool-libs)
1538 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1539 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1541 if test -n "$link_static_flag"; then
1542 dlopen_self
=$dlopen_self_static
1544 prefer_static_libs
=yes
1547 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1548 dlopen_self
=$dlopen_self_static
1550 prefer_static_libs
=built
1552 -static-libtool-libs)
1553 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1554 dlopen_self
=$dlopen_self_static
1556 prefer_static_libs
=yes
1559 build_libtool_libs
=no
1566 # See if our shared archives depend on static archives.
1567 test -n "$old_archive_from_new_cmds" && build_old_libs
=yes
1569 # Go through the arguments, transforming them on the way.
1570 while test "$#" -gt 0; do
1574 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1575 qarg
=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1579 libtool_args
="$libtool_args $qarg"
1581 # If the previous option needs an argument, assign it.
1582 if test -n "$prev"; then
1585 compile_command
="$compile_command @OUTPUT@"
1586 finalize_command
="$finalize_command @OUTPUT@"
1592 if test "$preload" = no
; then
1593 # Add the symbol object into the linking commands.
1594 compile_command
="$compile_command @SYMFILE@"
1595 finalize_command
="$finalize_command @SYMFILE@"
1599 *.la |
*.lo
) ;; # We handle these cases below.
1601 if test "$dlself" = no
; then
1609 if test "$prev" = dlprefiles
; then
1611 elif test "$prev" = dlfiles
&& test "$dlopen_self" != yes; then
1621 if test "$prev" = dlfiles
; then
1622 dlfiles
="$dlfiles $arg"
1624 dlprefiles
="$dlprefiles $arg"
1632 export_symbols
="$arg"
1633 if test ! -f "$arg"; then
1634 $echo "$modename: symbol file \`$arg' does not exist"
1641 export_symbols_regex
="$arg"
1646 inst_prefix_dir
="$arg"
1651 precious_files_regex
="$arg"
1661 if test -f "$arg"; then
1664 for fil
in `cat $save_arg`
1666 # moreargs="$moreargs $fil"
1668 # A libtool-controlled object.
1670 # Check to see that this really is a libtool object.
1671 if (${SED} -e '2q' $arg |
grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then
1676 # If there is no directory component, then add one.
1678 */* |
*\\*) .
$arg ;;
1682 if test -z "$pic_object" || \
1683 test -z "$non_pic_object" ||
1684 test "$pic_object" = none
&& \
1685 test "$non_pic_object" = none
; then
1686 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1690 # Extract subdirectory from the argument.
1691 xdir
=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1692 if test "X$xdir" = "X$arg"; then
1698 if test "$pic_object" != none
; then
1699 # Prepend the subdirectory the object is found in.
1700 pic_object
="$xdir$pic_object"
1702 if test "$prev" = dlfiles
; then
1703 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1704 dlfiles
="$dlfiles $pic_object"
1708 # If libtool objects are unsupported, then we need to preload.
1713 # CHECK ME: I think I busted this. -Ossama
1714 if test "$prev" = dlprefiles
; then
1715 # Preload the old-style object.
1716 dlprefiles
="$dlprefiles $pic_object"
1721 libobjs
="$libobjs $pic_object"
1726 if test "$non_pic_object" != none
; then
1727 # Prepend the subdirectory the object is found in.
1728 non_pic_object
="$xdir$non_pic_object"
1730 # A standard non-PIC object
1731 non_pic_objects
="$non_pic_objects $non_pic_object"
1732 if test -z "$pic_object" ||
test "$pic_object" = none
; then
1733 arg
="$non_pic_object"
1736 # If the PIC object exists, use it instead.
1737 # $xdir was prepended to $pic_object above.
1738 non_pic_object
="$pic_object"
1739 non_pic_objects
="$non_pic_objects $non_pic_object"
1742 # Only an error if not doing a dry-run.
1743 if test -z "$run"; then
1744 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1749 # Extract subdirectory from the argument.
1750 xdir
=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1751 if test "X$xdir" = "X$arg"; then
1757 pic_object
=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1758 non_pic_object
=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1759 libobjs
="$libobjs $pic_object"
1760 non_pic_objects
="$non_pic_objects $non_pic_object"
1765 $echo "$modename: link input file \`$save_arg' does not exist"
1773 # We need an absolute path.
1775 [\\/]* |
[A-Za-z
]:[\\/]*) ;;
1777 $echo "$modename: only absolute run-paths are allowed" 1>&2
1781 if test "$prev" = rpath
; then
1784 *) rpath
="$rpath $arg" ;;
1789 *) xrpath
="$xrpath $arg" ;;
1796 compiler_flags
="$compiler_flags $qarg"
1798 compile_command
="$compile_command $qarg"
1799 finalize_command
="$finalize_command $qarg"
1803 linker_flags
="$linker_flags $qarg"
1804 compiler_flags
="$compiler_flags $wl$qarg"
1806 compile_command
="$compile_command $wl$qarg"
1807 finalize_command
="$finalize_command $wl$qarg"
1811 linker_flags
="$linker_flags $qarg"
1812 compiler_flags
="$compiler_flags $qarg"
1814 compile_command
="$compile_command $qarg"
1815 finalize_command
="$finalize_command $qarg"
1823 darwin_framework|darwin_framework_skip
)
1824 test "$prev" = "darwin_framework" && compiler_flags
="$compiler_flags $arg"
1825 compile_command
="$compile_command $arg"
1826 finalize_command
="$finalize_command $arg"
1831 eval "$prev=\"\$arg\""
1836 fi # test -n "$prev"
1842 if test -n "$link_static_flag"; then
1843 compile_command
="$compile_command $link_static_flag"
1844 finalize_command
="$finalize_command $link_static_flag"
1850 # FIXME: remove this flag sometime in the future.
1851 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1875 -export-symbols |
-export-symbols-regex)
1876 if test -n "$export_symbols" ||
test -n "$export_symbols_regex"; then
1877 $echo "$modename: more than one -exported-symbols argument is not allowed"
1880 if test "X$arg" = "X-export-symbols"; then
1888 -framework|
-arch|
-isysroot)
1890 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1891 prev
=darwin_framework_skip
;;
1892 *) compiler_flags
="$compiler_flags $arg"
1893 prev
=darwin_framework
;;
1895 compile_command
="$compile_command $arg"
1896 finalize_command
="$finalize_command $arg"
1905 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1906 # so, if we see these flags be careful not to treat them like -L
1908 case $with_gcc/$host in
1909 no
/*-*-irix* |
/*-*-irix*)
1910 compile_command
="$compile_command $arg"
1911 finalize_command
="$finalize_command $arg"
1918 dir
=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1919 # We need an absolute path.
1921 [\\/]* |
[A-Za-z
]:[\\/]*) ;;
1923 absdir
=`cd "$dir" && pwd`
1924 if test -z "$absdir"; then
1925 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1927 notinst_path
="$notinst_path $dir"
1935 deplibs
="$deplibs -L$dir"
1936 lib_search_path
="$lib_search_path $dir"
1940 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-os2*)
1941 testbindir
=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1942 case :$dllsearchpath: in
1944 *) dllsearchpath
="$dllsearchpath:$dir";;
1946 case :$dllsearchpath: in
1947 *":$testbindir:"*) ;;
1948 *) dllsearchpath
="$dllsearchpath:$testbindir";;
1956 if test "X$arg" = "X-lc" ||
test "X$arg" = "X-lm"; then
1958 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-beos*)
1959 # These systems don't actually have a C or math library (as such)
1963 # These systems don't actually have a C library (as such)
1964 test "X$arg" = "X-lc" && continue
1966 *-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly*)
1967 # Do not include libc due to us having libc/libc_r.
1968 test "X$arg" = "X-lc" && continue
1970 *-*-rhapsody* |
*-*-darwin1.
[012])
1971 # Rhapsody C and math libraries are in the System framework
1972 deplibs
="$deplibs -framework System"
1975 *-*-sco3.2v5
* |
*-*-sco5v6*)
1976 # Causes problems with __ctype
1977 test "X$arg" = "X-lc" && continue
1979 *-*-sysv4.2uw2
* |
*-*-sysv5* |
*-*-unixware* |
*-*-OpenUNIX*)
1980 # Compiler inserts libc in the correct place for threads to work
1981 test "X$arg" = "X-lc" && continue
1984 elif test "X$arg" = "X-lc_r"; then
1986 *-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly*)
1987 # Do not include libc_r directly, use -pthread flag.
1992 deplibs
="$deplibs $arg"
1996 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1997 # classes, name mangling, and exception handling.
1999 compile_command
="$compile_command $arg"
2000 compiler_flags
="$compiler_flags $arg"
2001 finalize_command
="$finalize_command $arg"
2006 -mt|
-mthreads|
-kthread|
-Kthread|
-pthread|
-pthreads|
--thread-safe|
-threads)
2007 compiler_flags
="$compiler_flags $arg"
2008 compile_command
="$compile_command $arg"
2009 finalize_command
="$finalize_command $arg"
2014 single_module
="${wl}-multi_module"
2023 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
2024 # -r[0-9][0-9]* specifies the processor on the SGI compiler
2025 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
2026 # +DA*, +DD* enable 64-bit mode on the HP compiler
2027 # -q* pass through compiler args for the IBM compiler
2028 # -m* pass through architecture-specific compiler args for GCC
2029 # -m*, -t[45]*, -txscale* pass through architecture-specific
2030 # compiler args for GCC
2031 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
2032 # -F/path gives path to uninstalled frameworks, gcc on darwin
2033 # @file GCC response files
2034 -64|
-mips[0-9]|
-r[0-9][0-9]*|
-xarch=*|
-xtarget=*|
+DA
*|
+DD
*|
-q*|
-m*| \
2035 -t[45]*|
-txscale*|
-p|
-pg|
--coverage|
-fprofile-*|
-F*|@
*)
2037 # Unknown arguments in both finalize_command and compile_command need
2038 # to be aesthetically quoted because they are evaled later.
2039 arg
=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
2041 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
2045 compile_command
="$compile_command $arg"
2046 finalize_command
="$finalize_command $arg"
2047 compiler_flags
="$compiler_flags $arg"
2063 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-os2* |
*-*-darwin*)
2064 # The PATH hackery in wrapper scripts is required on Windows
2065 # and Darwin in order for the loader to find any dlls it needs.
2066 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
2067 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
2070 *) no_install
=yes ;;
2087 -precious-files-regex)
2108 dir
=`$echo "X$arg" | $Xsed -e 's/^-R//'`
2109 # We need an absolute path.
2111 [\\/]* |
[A-Za-z
]:[\\/]*) ;;
2113 $echo "$modename: only absolute run-paths are allowed" 1>&2
2119 *) xrpath
="$xrpath $dir" ;;
2124 -static |
-static-libtool-libs)
2125 # The effects of -static are defined in a previous loop.
2126 # We used to do the same as -all-static on platforms that
2127 # didn't have a PIC flag, but the assumption that the effects
2128 # would be equivalent was wrong. It would break on at least
2129 # Digital Unix and AIX.
2149 args
=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
2151 save_ifs
="$IFS"; IFS
=','
2152 for flag
in $args; do
2155 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
2160 compiler_flags
="$compiler_flags $flag"
2163 arg
=`$echo "X$arg" | $Xsed -e "s/^ //"`
2167 args
=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
2169 save_ifs
="$IFS"; IFS
=','
2170 for flag
in $args; do
2173 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
2178 compiler_flags
="$compiler_flags $wl$flag"
2179 linker_flags
="$linker_flags $flag"
2182 arg
=`$echo "X$arg" | $Xsed -e "s/^ //"`
2200 # Some other compiler flag.
2202 # Unknown arguments in both finalize_command and compile_command need
2203 # to be aesthetically quoted because they are evaled later.
2204 arg
=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
2206 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
2213 # A standard object.
2218 # A libtool-controlled object.
2220 # Check to see that this really is a libtool object.
2221 if (${SED} -e '2q' $arg |
grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then
2226 # If there is no directory component, then add one.
2228 */* |
*\\*) .
$arg ;;
2232 if test -z "$pic_object" || \
2233 test -z "$non_pic_object" ||
2234 test "$pic_object" = none
&& \
2235 test "$non_pic_object" = none
; then
2236 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
2240 # Extract subdirectory from the argument.
2241 xdir
=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
2242 if test "X$xdir" = "X$arg"; then
2248 if test "$pic_object" != none
; then
2249 # Prepend the subdirectory the object is found in.
2250 pic_object
="$xdir$pic_object"
2252 if test "$prev" = dlfiles
; then
2253 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
2254 dlfiles
="$dlfiles $pic_object"
2258 # If libtool objects are unsupported, then we need to preload.
2263 # CHECK ME: I think I busted this. -Ossama
2264 if test "$prev" = dlprefiles
; then
2265 # Preload the old-style object.
2266 dlprefiles
="$dlprefiles $pic_object"
2271 libobjs
="$libobjs $pic_object"
2276 if test "$non_pic_object" != none
; then
2277 # Prepend the subdirectory the object is found in.
2278 non_pic_object
="$xdir$non_pic_object"
2280 # A standard non-PIC object
2281 non_pic_objects
="$non_pic_objects $non_pic_object"
2282 if test -z "$pic_object" ||
test "$pic_object" = none
; then
2283 arg
="$non_pic_object"
2286 # If the PIC object exists, use it instead.
2287 # $xdir was prepended to $pic_object above.
2288 non_pic_object
="$pic_object"
2289 non_pic_objects
="$non_pic_objects $non_pic_object"
2292 # Only an error if not doing a dry-run.
2293 if test -z "$run"; then
2294 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
2299 # Extract subdirectory from the argument.
2300 xdir
=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
2301 if test "X$xdir" = "X$arg"; then
2307 pic_object
=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
2308 non_pic_object
=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
2309 libobjs
="$libobjs $pic_object"
2310 non_pic_objects
="$non_pic_objects $non_pic_object"
2317 deplibs
="$deplibs $arg"
2318 old_deplibs
="$old_deplibs $arg"
2323 # A libtool-controlled library.
2325 if test "$prev" = dlfiles
; then
2326 # This library was specified with -dlopen.
2327 dlfiles
="$dlfiles $arg"
2329 elif test "$prev" = dlprefiles
; then
2330 # The library was specified with -dlpreopen.
2331 dlprefiles
="$dlprefiles $arg"
2334 deplibs
="$deplibs $arg"
2339 # Some other compiler argument.
2341 # Unknown arguments in both finalize_command and compile_command need
2342 # to be aesthetically quoted because they are evaled later.
2343 arg
=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
2345 *[\
[\~\
#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
2352 # Now actually substitute the argument into the commands.
2353 if test -n "$arg"; then
2354 compile_command
="$compile_command $arg"
2355 finalize_command
="$finalize_command $arg"
2357 done # argument parsing loop
2359 if test -n "$prev"; then
2360 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
2365 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
2366 eval arg
=\"$export_dynamic_flag_spec\"
2367 compile_command
="$compile_command $arg"
2368 finalize_command
="$finalize_command $arg"
2372 # calculate the name of the file, without its directory
2373 outputname
=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
2374 libobjs_save
="$libobjs"
2376 if test -n "$shlibpath_var"; then
2377 # get the directories listed in $shlibpath_var
2378 eval shlib_search_path
=\
`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
2382 eval sys_lib_search_path
=\"$sys_lib_search_path_spec\"
2383 eval sys_lib_dlsearch_path
=\"$sys_lib_dlsearch_path_spec\"
2385 output_objdir
=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2386 if test "X$output_objdir" = "X$output"; then
2387 output_objdir
="$objdir"
2389 output_objdir
="$output_objdir/$objdir"
2391 # Create the object directory.
2392 if test ! -d "$output_objdir"; then
2393 $show "$mkdir $output_objdir"
2394 $run $mkdir $output_objdir
2396 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2401 # Determine the type of output
2404 $echo "$modename: you must specify an output file" 1>&2
2408 *.
$libext) linkmode
=oldlib
;;
2409 *.lo |
*.
$objext) linkmode
=obj
;;
2410 *.la
) linkmode
=lib
;;
2411 *) linkmode
=prog
;; # Anything else should be a program.
2415 *cygwin
* |
*mingw
* |
*pw32
*)
2416 # don't eliminate duplications in $postdeps and $predeps
2417 duplicate_compiler_generated_deps
=yes
2420 duplicate_compiler_generated_deps
=$duplicate_deps
2426 # Find all interdependent deplibs by searching for libraries
2427 # that are linked more than once (e.g. -la -lb -la)
2428 for deplib
in $deplibs; do
2429 if test "X$duplicate_deps" = "Xyes" ; then
2431 *" $deplib "*) specialdeplibs
="$specialdeplibs $deplib" ;;
2434 libs
="$libs $deplib"
2437 if test "$linkmode" = lib
; then
2438 libs
="$predeps $libs $compiler_lib_search_path $postdeps"
2440 # Compute libraries that are listed more than once in $predeps
2441 # $postdeps and mark them as special (i.e., whose duplicates are
2442 # not to be eliminated).
2444 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
2445 for pre_post_dep
in $predeps $postdeps; do
2446 case "$pre_post_deps " in
2447 *" $pre_post_dep "*) specialdeplibs
="$specialdeplibs $pre_post_deps" ;;
2449 pre_post_deps
="$pre_post_deps $pre_post_dep"
2458 need_relink
=no
# whether we're linking any uninstalled libtool libraries
2459 notinst_deplibs
= # not-installed libtool libraries
2463 for file in $dlfiles $dlprefiles; do
2467 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2479 passes
="conv scan dlopen dlpreopen link"
2484 for pass
in $passes; do
2485 if test "$linkmode,$pass" = "lib,link" ||
2486 test "$linkmode,$pass" = "prog,scan"; then
2490 if test "$linkmode" = prog
; then
2492 dlopen
) libs
="$dlfiles" ;;
2493 dlpreopen
) libs
="$dlprefiles" ;;
2495 libs
="$deplibs %DEPLIBS%"
2496 test "X$link_all_deplibs" != Xno
&& libs
="$libs $dependency_libs"
2500 if test "$pass" = dlopen
; then
2501 # Collect dlpreopened libraries
2502 save_deplibs
="$deplibs"
2505 for deplib
in $libs; do
2509 -mt|
-mthreads|
-kthread|
-Kthread|
-pthread|
-pthreads|
--thread-safe|
-threads)
2510 if test "$linkmode,$pass" = "prog,link"; then
2511 compile_deplibs
="$deplib $compile_deplibs"
2512 finalize_deplibs
="$deplib $finalize_deplibs"
2514 compiler_flags
="$compiler_flags $deplib"
2519 if test "$linkmode" != lib
&& test "$linkmode" != prog
; then
2520 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2523 name
=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2524 if test "$linkmode" = lib
; then
2525 searchdirs
="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
2527 searchdirs
="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
2529 for searchdir
in $searchdirs; do
2530 for search_ext
in .la
$std_shrext .so .a
; do
2531 # Search the libtool library
2532 lib
="$searchdir/lib${name}${search_ext}"
2533 if test -f "$lib"; then
2534 if test "$search_ext" = ".la"; then
2543 if test "$found" != yes; then
2544 # deplib doesn't seem to be a libtool library
2545 if test "$linkmode,$pass" = "prog,link"; then
2546 compile_deplibs
="$deplib $compile_deplibs"
2547 finalize_deplibs
="$deplib $finalize_deplibs"
2549 deplibs
="$deplib $deplibs"
2550 test "$linkmode" = lib
&& newdependency_libs
="$deplib $newdependency_libs"
2553 else # deplib is a libtool library
2554 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2555 # We need to do some special things here, and not later.
2556 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2557 case " $predeps $postdeps " in
2559 if (${SED} -e '2q' $lib |
2560 grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then
2564 */* |
*\\*) .
$lib ;;
2567 for l
in $old_library $library_names; do
2570 if test "X$ll" = "X$old_library" ; then # only static version available
2572 ladir
=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2573 test "X$ladir" = "X$lib" && ladir
="."
2574 lib
=$ladir/$old_library
2575 if test "$linkmode,$pass" = "prog,link"; then
2576 compile_deplibs
="$deplib $compile_deplibs"
2577 finalize_deplibs
="$deplib $finalize_deplibs"
2579 deplibs
="$deplib $deplibs"
2580 test "$linkmode" = lib
&& newdependency_libs
="$deplib $newdependency_libs"
2594 deplibs
="$deplib $deplibs"
2595 test "$pass" = conv
&& continue
2596 newdependency_libs
="$deplib $newdependency_libs"
2597 newlib_search_path
="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2600 if test "$pass" = conv
; then
2601 deplibs
="$deplib $deplibs"
2604 if test "$pass" = scan
; then
2605 deplibs
="$deplib $deplibs"
2607 compile_deplibs
="$deplib $compile_deplibs"
2608 finalize_deplibs
="$deplib $finalize_deplibs"
2610 newlib_search_path
="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2613 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2619 if test "$pass" = link
; then
2620 dir
=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
2621 # Make sure the xrpath contains only unique directories.
2624 *) xrpath
="$xrpath $dir" ;;
2627 deplibs
="$deplib $deplibs"
2630 *.la
) lib
="$deplib" ;;
2632 if test "$pass" = conv
; then
2633 deplibs
="$deplib $deplibs"
2639 case $deplibs_check_method in
2641 set dummy
$deplibs_check_method
2642 match_pattern_regex
=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2643 if eval $echo \"$deplib\" 2>/dev
/null \
2645 |
$EGREP "$match_pattern_regex" > /dev
/null
; then
2653 if test "$valid_a_lib" != yes; then
2655 $echo "*** Warning: Trying to link with static lib archive $deplib."
2656 $echo "*** I have the capability to make that library automatically link in when"
2657 $echo "*** you link to this library. But I can only do this if you have a"
2658 $echo "*** shared version of the library, which you do not appear to have"
2659 $echo "*** because the file extensions .$libext of this argument makes me believe"
2660 $echo "*** that it is just a static archive that I should not used here."
2663 $echo "*** Warning: Linking the shared library $output against the"
2664 $echo "*** static library $deplib is not portable!"
2665 deplibs
="$deplib $deplibs"
2670 if test "$pass" != link
; then
2671 deplibs
="$deplib $deplibs"
2673 compile_deplibs
="$deplib $compile_deplibs"
2674 finalize_deplibs
="$deplib $finalize_deplibs"
2681 if test "$pass" = conv
; then
2682 deplibs
="$deplib $deplibs"
2683 elif test "$linkmode" = prog
; then
2684 if test "$pass" = dlpreopen ||
test "$dlopen_support" != yes ||
test "$build_libtool_libs" = no
; then
2685 # If there is no dlopen support or we're linking statically,
2686 # we need to preload.
2687 newdlprefiles
="$newdlprefiles $deplib"
2688 compile_deplibs
="$deplib $compile_deplibs"
2689 finalize_deplibs
="$deplib $finalize_deplibs"
2691 newdlfiles
="$newdlfiles $deplib"
2701 if test "$found" = yes ||
test -f "$lib"; then :
2703 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2707 # Check to see that this really is a libtool archive.
2708 if (${SED} -e '2q' $lib |
grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then :
2710 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2714 ladir
=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2715 test "X$ladir" = "X$lib" && ladir
="."
2723 # If the library was installed with an old release of libtool,
2724 # it will not redefine variables installed, or shouldnotlink
2732 */* |
*\\*) .
$lib ;;
2736 if test "$linkmode,$pass" = "lib,link" ||
2737 test "$linkmode,$pass" = "prog,scan" ||
2738 { test "$linkmode" != prog
&& test "$linkmode" != lib
; }; then
2739 test -n "$dlopen" && dlfiles
="$dlfiles $dlopen"
2740 test -n "$dlpreopen" && dlprefiles
="$dlprefiles $dlpreopen"
2743 if test "$pass" = conv
; then
2744 # Only check for convenience libraries
2745 deplibs
="$lib $deplibs"
2746 if test -z "$libdir"; then
2747 if test -z "$old_library"; then
2748 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2751 # It is a libtool convenience library, so add in its objects.
2752 convenience
="$convenience $ladir/$objdir/$old_library"
2753 old_convenience
="$old_convenience $ladir/$objdir/$old_library"
2755 for deplib
in $dependency_libs; do
2756 deplibs
="$deplib $deplibs"
2757 if test "X$duplicate_deps" = "Xyes" ; then
2758 case "$tmp_libs " in
2759 *" $deplib "*) specialdeplibs
="$specialdeplibs $deplib" ;;
2762 tmp_libs
="$tmp_libs $deplib"
2764 elif test "$linkmode" != prog
&& test "$linkmode" != lib
; then
2765 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2772 # Get the name of the library we link against.
2774 for l
in $old_library $library_names; do
2777 if test -z "$linklib"; then
2778 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2782 # This library was specified with -dlopen.
2783 if test "$pass" = dlopen
; then
2784 if test -z "$libdir"; then
2785 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2788 if test -z "$dlname" ||
2789 test "$dlopen_support" != yes ||
2790 test "$build_libtool_libs" = no
; then
2791 # If there is no dlname, no dlopen support or we're linking
2792 # statically, we need to preload. We also need to preload any
2793 # dependent libraries so libltdl's deplib preloader doesn't
2794 # bomb out in the load deplibs phase.
2795 dlprefiles
="$dlprefiles $lib $dependency_libs"
2797 newdlfiles
="$newdlfiles $lib"
2802 # We need an absolute path.
2804 [\\/]* |
[A-Za-z
]:[\\/]*) abs_ladir
="$ladir" ;;
2806 abs_ladir
=`cd "$ladir" && pwd`
2807 if test -z "$abs_ladir"; then
2808 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2809 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2814 laname
=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2816 # Find the relevant object directory and library name.
2817 if test "X$installed" = Xyes
; then
2818 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2819 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2827 test "X$hardcode_automatic" = Xyes
&& avoidtemprpath
=yes
2829 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2832 # Remove this search path later
2833 notinst_path
="$notinst_path $abs_ladir"
2835 dir
="$ladir/$objdir"
2836 absdir
="$abs_ladir/$objdir"
2837 # Remove this search path later
2838 notinst_path
="$notinst_path $abs_ladir"
2840 fi # $installed = yes
2841 name
=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2843 # This library was specified with -dlpreopen.
2844 if test "$pass" = dlpreopen
; then
2845 if test -z "$libdir"; then
2846 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2849 # Prefer using a static library (so that no silly _DYNAMIC symbols
2850 # are required to link).
2851 if test -n "$old_library"; then
2852 newdlprefiles
="$newdlprefiles $dir/$old_library"
2853 # Otherwise, use the dlname, so that lt_dlopen finds it.
2854 elif test -n "$dlname"; then
2855 newdlprefiles
="$newdlprefiles $dir/$dlname"
2857 newdlprefiles
="$newdlprefiles $dir/$linklib"
2859 fi # $pass = dlpreopen
2861 if test -z "$libdir"; then
2862 # Link the convenience library
2863 if test "$linkmode" = lib
; then
2864 deplibs
="$dir/$old_library $deplibs"
2865 elif test "$linkmode,$pass" = "prog,link"; then
2866 compile_deplibs
="$dir/$old_library $compile_deplibs"
2867 finalize_deplibs
="$dir/$old_library $finalize_deplibs"
2869 deplibs
="$lib $deplibs" # used for prog,scan pass
2875 if test "$linkmode" = prog
&& test "$pass" != link
; then
2876 newlib_search_path
="$newlib_search_path $ladir"
2877 deplibs
="$lib $deplibs"
2880 if test "$link_all_deplibs" != no ||
test -z "$library_names" ||
2881 test "$build_libtool_libs" = no
; then
2886 for deplib
in $dependency_libs; do
2888 -L*) newlib_search_path
="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2890 # Need to link against all dependency_libs?
2891 if test "$linkalldeplibs" = yes; then
2892 deplibs
="$deplib $deplibs"
2894 # Need to hardcode shared library paths
2895 # or/and link against static libraries
2896 newdependency_libs
="$deplib $newdependency_libs"
2898 if test "X$duplicate_deps" = "Xyes" ; then
2899 case "$tmp_libs " in
2900 *" $deplib "*) specialdeplibs
="$specialdeplibs $deplib" ;;
2903 tmp_libs
="$tmp_libs $deplib"
2906 fi # $linkmode = prog...
2908 if test "$linkmode,$pass" = "prog,link"; then
2909 if test -n "$library_names" &&
2910 { { test "$prefer_static_libs" = no ||
2911 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2912 test -z "$old_library"; }; then
2913 # We need to hardcode the library path
2914 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2915 # Make sure the rpath contains only unique directories.
2916 case "$temp_rpath " in
2919 *) temp_rpath
="$temp_rpath $absdir" ;;
2923 # Hardcode the library path.
2924 # Skip directories that are in the system default run-time
2926 case " $sys_lib_dlsearch_path " in
2929 case "$compile_rpath " in
2931 *) compile_rpath
="$compile_rpath $absdir"
2935 case " $sys_lib_dlsearch_path " in
2938 case "$finalize_rpath " in
2940 *) finalize_rpath
="$finalize_rpath $libdir"
2944 fi # $linkmode,$pass = prog,link...
2946 if test "$alldeplibs" = yes &&
2947 { test "$deplibs_check_method" = pass_all ||
2948 { test "$build_libtool_libs" = yes &&
2949 test -n "$library_names"; }; }; then
2950 # We only need to search for static libraries
2955 link_static
=no
# Whether the deplib will be linked statically
2956 use_static_libs
=$prefer_static_libs
2957 if test "$use_static_libs" = built
&& test "$installed" = yes ; then
2960 if test -n "$library_names" &&
2961 { test "$use_static_libs" = no ||
test -z "$old_library"; }; then
2962 if test "$installed" = no
; then
2963 notinst_deplibs
="$notinst_deplibs $lib"
2966 # This is a shared library
2968 # Warn about portability, can't link against -module's on
2969 # some systems (darwin)
2970 if test "$shouldnotlink" = yes && test "$pass" = link
; then
2972 if test "$linkmode" = prog
; then
2973 $echo "*** Warning: Linking the executable $output against the loadable module"
2975 $echo "*** Warning: Linking the shared library $output against the loadable module"
2977 $echo "*** $linklib is not portable!"
2979 if test "$linkmode" = lib
&&
2980 test "$hardcode_into_libs" = yes; then
2981 # Hardcode the library path.
2982 # Skip directories that are in the system default run-time
2984 case " $sys_lib_dlsearch_path " in
2987 case "$compile_rpath " in
2989 *) compile_rpath
="$compile_rpath $absdir"
2993 case " $sys_lib_dlsearch_path " in
2996 case "$finalize_rpath " in
2998 *) finalize_rpath
="$finalize_rpath $libdir"
3004 if test -n "$old_archive_from_expsyms_cmds"; then
3005 # figure out the soname
3006 set dummy
$library_names
3009 libname
=`eval \\$echo \"$libname_spec\"`
3010 # use dlname if we got it. it's perfectly good, no?
3011 if test -n "$dlname"; then
3013 elif test -n "$soname_spec"; then
3017 major
=`expr $current - $age`
3021 eval soname
=\"$soname_spec\"
3026 # Make a new name for the extract_expsyms_cmds to use
3028 soname
=`$echo $soroot | ${SED} -e 's/^.*\///'`
3029 newlib
="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
3031 # If the library has no export list, then create one now
3032 if test -f "$output_objdir/$soname-def"; then :
3034 $show "extracting exported symbol list from \`$soname'"
3035 save_ifs
="$IFS"; IFS
='~'
3036 cmds
=$extract_expsyms_cmds
3037 for cmd
in $cmds; do
3041 $run eval "$cmd" ||
exit $?
3047 if test -f "$output_objdir/$newlib"; then :; else
3048 $show "generating import library for \`$soname'"
3049 save_ifs
="$IFS"; IFS
='~'
3050 cmds
=$old_archive_from_expsyms_cmds
3051 for cmd
in $cmds; do
3055 $run eval "$cmd" ||
exit $?
3059 # make sure the library variables are pointing to the new library
3062 fi # test -n "$old_archive_from_expsyms_cmds"
3064 if test "$linkmode" = prog ||
test "$mode" != relink
; then
3069 case $hardcode_action in
3070 immediate | unsupported
)
3071 if test "$hardcode_direct" = no
; then
3074 *-*-sco3.2v5.0.
[024]*) add_dir
="-L$dir" ;;
3075 *-*-sysv4*uw2
*) add_dir
="-L$dir" ;;
3076 *-*-sysv5OpenUNIX* |
*-*-sysv5UnixWare7.
[01].
[10]* | \
3077 *-*-unixware7*) add_dir
="-L$dir" ;;
3079 # if the lib is a module then we can not link against
3080 # it, someone is ignoring the new warnings I added
3081 if /usr
/bin
/file -L $add 2> /dev
/null |
3082 $EGREP ": [^:]* bundle" >/dev
/null
; then
3083 $echo "** Warning, lib $linklib is a module, not a shared library"
3084 if test -z "$old_library" ; then
3086 $echo "** And there doesn't seem to be a static archive available"
3087 $echo "** The link will probably fail, sorry"
3089 add
="$dir/$old_library"
3093 elif test "$hardcode_minus_L" = no
; then
3095 *-*-sunos*) add_shlibpath
="$dir" ;;
3099 elif test "$hardcode_shlibpath_var" = no
; then
3100 add_shlibpath
="$dir"
3107 if test "$hardcode_direct" = yes; then
3109 elif test "$hardcode_minus_L" = yes; then
3111 # Try looking first in the location we're being installed to.
3112 if test -n "$inst_prefix_dir"; then
3115 add_dir
="$add_dir -L$inst_prefix_dir$libdir"
3120 elif test "$hardcode_shlibpath_var" = yes; then
3121 add_shlibpath
="$dir"
3130 if test "$lib_linked" != yes; then
3131 $echo "$modename: configuration error: unsupported hardcode properties"
3135 if test -n "$add_shlibpath"; then
3136 case :$compile_shlibpath: in
3137 *":$add_shlibpath:"*) ;;
3138 *) compile_shlibpath
="$compile_shlibpath$add_shlibpath:" ;;
3141 if test "$linkmode" = prog
; then
3142 test -n "$add_dir" && compile_deplibs
="$add_dir $compile_deplibs"
3143 test -n "$add" && compile_deplibs
="$add $compile_deplibs"
3145 test -n "$add_dir" && deplibs
="$add_dir $deplibs"
3146 test -n "$add" && deplibs
="$add $deplibs"
3147 if test "$hardcode_direct" != yes && \
3148 test "$hardcode_minus_L" != yes && \
3149 test "$hardcode_shlibpath_var" = yes; then
3150 case :$finalize_shlibpath: in
3152 *) finalize_shlibpath
="$finalize_shlibpath$libdir:" ;;
3158 if test "$linkmode" = prog ||
test "$mode" = relink
; then
3162 # Finalize command for both is simple: just hardcode it.
3163 if test "$hardcode_direct" = yes; then
3164 add
="$libdir/$linklib"
3165 elif test "$hardcode_minus_L" = yes; then
3168 elif test "$hardcode_shlibpath_var" = yes; then
3169 case :$finalize_shlibpath: in
3171 *) finalize_shlibpath
="$finalize_shlibpath$libdir:" ;;
3174 elif test "$hardcode_automatic" = yes; then
3175 if test -n "$inst_prefix_dir" &&
3176 test -f "$inst_prefix_dir$libdir/$linklib" ; then
3177 add
="$inst_prefix_dir$libdir/$linklib"
3179 add
="$libdir/$linklib"
3182 # We cannot seem to hardcode it, guess we'll fake it.
3184 # Try looking first in the location we're being installed to.
3185 if test -n "$inst_prefix_dir"; then
3188 add_dir
="$add_dir -L$inst_prefix_dir$libdir"
3195 if test "$linkmode" = prog
; then
3196 test -n "$add_dir" && finalize_deplibs
="$add_dir $finalize_deplibs"
3197 test -n "$add" && finalize_deplibs
="$add $finalize_deplibs"
3199 test -n "$add_dir" && deplibs
="$add_dir $deplibs"
3200 test -n "$add" && deplibs
="$add $deplibs"
3203 elif test "$linkmode" = prog
; then
3204 # Here we assume that one of hardcode_direct or hardcode_minus_L
3205 # is not unsupported. This is valid on all known static and
3207 if test "$hardcode_direct" != unsupported
; then
3208 test -n "$old_library" && linklib
="$old_library"
3209 compile_deplibs
="$dir/$linklib $compile_deplibs"
3210 finalize_deplibs
="$dir/$linklib $finalize_deplibs"
3212 compile_deplibs
="-l$name -L$dir $compile_deplibs"
3213 finalize_deplibs
="-l$name -L$dir $finalize_deplibs"
3215 elif test "$build_libtool_libs" = yes; then
3216 # Not a shared library
3217 if test "$deplibs_check_method" != pass_all
; then
3218 # We're trying link a shared library against a static one
3219 # but the system doesn't support it.
3221 # Just print a warning and add the library to dependency_libs so
3222 # that the program can be linked against the static library.
3224 $echo "*** Warning: This system can not link to static lib archive $lib."
3225 $echo "*** I have the capability to make that library automatically link in when"
3226 $echo "*** you link to this library. But I can only do this if you have a"
3227 $echo "*** shared version of the library, which you do not appear to have."
3228 if test "$module" = yes; then
3229 $echo "*** But as you try to build a module library, libtool will still create "
3230 $echo "*** a static module, that should work as long as the dlopening application"
3231 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
3232 if test -z "$global_symbol_pipe"; then
3234 $echo "*** However, this would only work if libtool was able to extract symbol"
3235 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3236 $echo "*** not find such a program. So, this module is probably useless."
3237 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3239 if test "$build_old_libs" = no
; then
3240 build_libtool_libs
=module
3243 build_libtool_libs
=no
3247 deplibs
="$dir/$old_library $deplibs"
3250 fi # link shared/static library?
3252 if test "$linkmode" = lib
; then
3253 if test -n "$dependency_libs" &&
3254 { test "$hardcode_into_libs" != yes ||
3255 test "$build_old_libs" = yes ||
3256 test "$link_static" = yes; }; then
3257 # Extract -R from dependency_libs
3259 for libdir
in $dependency_libs; do
3261 -R*) temp_xrpath
=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
3263 *" $temp_xrpath "*) ;;
3264 *) xrpath
="$xrpath $temp_xrpath";;
3266 *) temp_deplibs
="$temp_deplibs $libdir";;
3269 dependency_libs
="$temp_deplibs"
3272 newlib_search_path
="$newlib_search_path $absdir"
3273 # Link against this library
3274 test "$link_static" = no
&& newdependency_libs
="$abs_ladir/$laname $newdependency_libs"
3275 # ... and its dependency_libs
3277 for deplib
in $dependency_libs; do
3278 newdependency_libs
="$deplib $newdependency_libs"
3279 if test "X$duplicate_deps" = "Xyes" ; then
3280 case "$tmp_libs " in
3281 *" $deplib "*) specialdeplibs
="$specialdeplibs $deplib" ;;
3284 tmp_libs
="$tmp_libs $deplib"
3287 if test "$link_all_deplibs" != no
; then
3288 # Add the search paths of all dependency libraries
3289 for deplib
in $dependency_libs; do
3291 -L*) path
="$deplib" ;;
3293 dir
=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
3294 test "X$dir" = "X$deplib" && dir
="."
3295 # We need an absolute path.
3297 [\\/]* |
[A-Za-z
]:[\\/]*) absdir
="$dir" ;;
3299 absdir
=`cd "$dir" && pwd`
3300 if test -z "$absdir"; then
3301 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
3306 if grep "^installed=no" $deplib > /dev
/null
; then
3307 path
="$absdir/$objdir"
3309 eval libdir
=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
3310 if test -z "$libdir"; then
3311 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
3314 if test "$absdir" != "$libdir"; then
3315 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
3322 # we do not want to link against static libs,
3323 # but need to link against shared
3324 eval deplibrary_names
=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
3325 eval deplibdir
=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
3326 if test -n "$deplibrary_names" ; then
3327 for tmp
in $deplibrary_names ; do
3330 if test -f "$deplibdir/$depdepl" ; then
3331 depdepl
="$deplibdir/$depdepl"
3332 elif test -f "$path/$depdepl" ; then
3333 depdepl
="$path/$depdepl"
3335 # Can't find it, oh well...
3338 # do not add paths which are already there
3339 case " $newlib_search_path " in
3341 *) newlib_search_path
="$newlib_search_path $path";;
3354 # Again, we only want to link against shared libraries
3355 eval tmp_libs
=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
3356 for tmp
in $newlib_search_path ; do
3357 if test -f "$tmp/lib$tmp_libs.dylib" ; then
3358 eval depdepl
="$tmp/lib$tmp_libs.dylib"
3369 case " $deplibs " in
3371 *) deplibs
="$path $deplibs" ;;
3373 case " $deplibs " in
3375 *) deplibs
="$depdepl $deplibs" ;;
3378 fi # link_all_deplibs != no
3380 done # for deplib in $libs
3381 dependency_libs
="$newdependency_libs"
3382 if test "$pass" = dlpreopen
; then
3383 # Link the dlpreopened libraries before other libraries
3384 for deplib
in $save_deplibs; do
3385 deplibs
="$deplib $deplibs"
3388 if test "$pass" != dlopen
; then
3389 if test "$pass" != conv
; then
3390 # Make sure lib_search_path contains only unique directories.
3392 for dir
in $newlib_search_path; do
3393 case "$lib_search_path " in
3395 *) lib_search_path
="$lib_search_path $dir" ;;
3401 if test "$linkmode,$pass" != "prog,link"; then
3404 vars
="compile_deplibs finalize_deplibs"
3406 for var
in $vars dependency_libs
; do
3407 # Add libraries to $var in reverse order
3408 eval tmp_libs
=\"\$
$var\"
3410 for deplib
in $tmp_libs; do
3411 # FIXME: Pedantically, this is the right thing to do, so
3412 # that some nasty dependency loop isn't accidentally
3414 #new_libs="$deplib $new_libs"
3415 # Pragmatically, this seems to cause very few problems in
3418 -L*) new_libs
="$deplib $new_libs" ;;
3421 # And here is the reason: when a library appears more
3422 # than once as an explicit dependence of a library, or
3423 # is implicitly linked in more than once by the
3424 # compiler, it is considered special, and multiple
3425 # occurrences thereof are not removed. Compare this
3426 # with having the same library being listed as a
3427 # dependency of multiple other libraries: in this case,
3428 # we know (pedantically, we assume) the library does not
3429 # need to be listed more than once, so we keep only the
3430 # last copy. This is not always right, but it is rare
3431 # enough that we require users that really mean to play
3432 # such unportable linking tricks to link the library
3433 # using -Wl,-lname, so that libtool does not consider it
3434 # for duplicate removal.
3435 case " $specialdeplibs " in
3436 *" $deplib "*) new_libs
="$deplib $new_libs" ;;
3438 case " $new_libs " in
3440 *) new_libs
="$deplib $new_libs" ;;
3448 for deplib
in $new_libs; do
3451 case " $tmp_libs " in
3453 *) tmp_libs
="$tmp_libs $deplib" ;;
3456 *) tmp_libs
="$tmp_libs $deplib" ;;
3459 eval $var=\"$tmp_libs\"
3462 # Last step: remove runtime libs from dependency_libs
3463 # (they stay in deplibs)
3465 for i
in $dependency_libs ; do
3466 case " $predeps $postdeps $compiler_lib_search_path " in
3471 if test -n "$i" ; then
3472 tmp_libs
="$tmp_libs $i"
3475 dependency_libs
=$tmp_libs
3477 if test "$linkmode" = prog
; then
3478 dlfiles
="$newdlfiles"
3479 dlprefiles
="$newdlprefiles"
3486 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
3489 if test -n "$dlfiles$dlprefiles" ||
test "$dlself" != no
; then
3490 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3493 if test -n "$rpath"; then
3494 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3497 if test -n "$xrpath"; then
3498 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3501 if test -n "$vinfo"; then
3502 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3505 if test -n "$release"; then
3506 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3509 if test -n "$export_symbols" ||
test -n "$export_symbols_regex"; then
3510 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3513 # Now set the variables for building old libraries.
3514 build_libtool_libs
=no
3516 objs
="$objs$old_deplibs"
3520 # Make sure we only generate libraries of the form `libNAME.la'.
3523 name
=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3524 eval shared_ext
=\"$shrext_cmds\"
3525 eval libname
=\"$libname_spec\"
3528 if test "$module" = no
; then
3529 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3533 if test "$need_lib_prefix" != no
; then
3534 # Add the "lib" prefix for modules if required
3535 name
=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3536 eval shared_ext
=\"$shrext_cmds\"
3537 eval libname
=\"$libname_spec\"
3539 libname
=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3544 if test -n "$objs"; then
3545 if test "$deplibs_check_method" != pass_all
; then
3546 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3550 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3551 $echo "*** objects $objs is not portable!"
3552 libobjs
="$libobjs $objs"
3556 if test "$dlself" != no
; then
3557 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3561 if test "$#" -gt 2; then
3562 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3567 if test -z "$rpath"; then
3568 if test "$build_libtool_libs" = yes; then
3569 # Building a libtool convenience library.
3570 # Some compilers have problems with a `.al' extension so
3571 # convenience libraries should have the same extension an
3572 # archive normally would.
3573 oldlibs
="$output_objdir/$libname.$libext $oldlibs"
3574 build_libtool_libs
=convenience
3578 if test -n "$vinfo"; then
3579 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3582 if test -n "$release"; then
3583 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3587 # Parse the version information argument.
3588 save_ifs
="$IFS"; IFS
=':'
3589 set dummy
$vinfo 0 0 0
3592 if test -n "$8"; then
3593 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3598 # convert absolute version numbers to libtool ages
3599 # this retains compatibility with .la files and attempts
3600 # to make the code below a bit more comprehensible
3602 case $vinfo_number in
3606 number_revision
="$4"
3608 # There are really only two kinds -- those that
3609 # use the current revision as the major version
3610 # and those that subtract age and use age as
3611 # a minor version. But, then there is irix
3612 # which has an extra 1 added just for fun
3614 case $version_type in
3615 darwin|linux|osf|windows|none
)
3616 current
=`expr $number_major + $number_minor`
3618 revision
="$number_revision"
3620 freebsd-aout|freebsd-elf|sunos
)
3621 current
="$number_major"
3622 revision
="$number_minor"
3626 current
=`expr $number_major + $number_minor`
3628 revision
="$number_minor"
3629 lt_irix_increment
=no
3632 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3633 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3645 # Check that each of the things are valid numbers.
3647 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]) ;;
3649 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3650 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3656 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]) ;;
3658 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3659 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3665 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]) ;;
3667 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3668 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3673 if test "$age" -gt "$current"; then
3674 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3675 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3679 # Calculate the version variables.
3683 case $version_type in
3687 # Like Linux, but with the current version available in
3688 # verstring for coding it into the library header
3689 major
=.
`expr $current - $age`
3690 versuffix
="$major.$age.$revision"
3691 # Darwin ld doesn't like 0 for these options...
3692 minor_current
=`expr $current + 1`
3693 xlcverstring
="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3694 verstring
="-compatibility_version $minor_current -current_version $minor_current.$revision"
3699 versuffix
=".$current.$revision";
3704 versuffix
=".$current";
3708 if test "X$lt_irix_increment" = "Xno"; then
3709 major
=`expr $current - $age`
3711 major
=`expr $current - $age + 1`
3713 case $version_type in
3714 nonstopux
) verstring_prefix
=nonstopux
;;
3715 *) verstring_prefix
=sgi
;;
3717 verstring
="$verstring_prefix$major.$revision"
3719 # Add in all the interfaces that we are compatible with.
3721 while test "$loop" -ne 0; do
3722 iface
=`expr $revision - $loop`
3723 loop
=`expr $loop - 1`
3724 verstring
="$verstring_prefix$major.$iface:$verstring"
3727 # Before this point, $major must not contain `.'.
3729 versuffix
="$major.$revision"
3733 major
=.
`expr $current - $age`
3734 versuffix
="$major.$age.$revision"
3738 major
=.
`expr $current - $age`
3739 versuffix
=".$current.$age.$revision"
3740 verstring
="$current.$age.$revision"
3742 # Add in all the interfaces that we are compatible with.
3744 while test "$loop" -ne 0; do
3745 iface
=`expr $current - $loop`
3746 loop
=`expr $loop - 1`
3747 verstring
="$verstring:${iface}.0"
3750 # Make executables depend on our current version.
3751 verstring
="$verstring:${current}.0"
3756 versuffix
=".$current.$revision"
3760 # Use '-' rather than '.', since we only want one
3761 # extension on DOS 8.3 filesystems.
3762 major
=`expr $current - $age`
3767 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3768 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3773 # Clear the version info if we defaulted, and they specified a release.
3774 if test -z "$vinfo" && test -n "$release"; then
3776 case $version_type in
3778 # we can't check for "0.0" in archive_cmds due to quoting
3779 # problems, so we reset it completely
3786 if test "$need_version" = no
; then
3793 # Remove version info from name if versioning should be avoided
3794 if test "$avoid_version" = yes && test "$need_version" = no
; then
3800 # Check to see if the archive will have undefined symbols.
3801 if test "$allow_undefined" = yes; then
3802 if test "$allow_undefined_flag" = unsupported
; then
3803 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3804 build_libtool_libs
=no
3808 # Don't allow undefined symbols.
3809 allow_undefined_flag
="$no_undefined_flag"
3813 if test "$mode" != relink
; then
3814 # Remove our outputs, but don't remove object files since they
3815 # may have been created when compiling PIC objects.
3817 tempremovelist
=`$echo "$output_objdir/*"`
3818 for p
in $tempremovelist; do
3822 $output_objdir/$outputname |
$output_objdir/$libname.
* |
$output_objdir/${libname}${release}.
*)
3823 if test "X$precious_files_regex" != "X"; then
3824 if echo $p |
$EGREP -e "$precious_files_regex" >/dev
/null
2>&1
3829 removelist
="$removelist $p"
3834 if test -n "$removelist"; then
3835 $show "${rm}r $removelist"
3836 $run ${rm}r
$removelist
3840 # Now set the variables for building old libraries.
3841 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience
; then
3842 oldlibs
="$oldlibs $output_objdir/$libname.$libext"
3844 # Transform .lo files to .o files.
3845 oldobjs
="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3848 # Eliminate all temporary directories.
3849 #for path in $notinst_path; do
3850 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3851 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3852 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3855 if test -n "$xrpath"; then
3856 # If the user specified any rpath flags, then add them.
3858 for libdir
in $xrpath; do
3859 temp_xrpath
="$temp_xrpath -R$libdir"
3860 case "$finalize_rpath " in
3862 *) finalize_rpath
="$finalize_rpath $libdir" ;;
3865 if test "$hardcode_into_libs" != yes ||
test "$build_old_libs" = yes; then
3866 dependency_libs
="$temp_xrpath $dependency_libs"
3870 # Make sure dlfiles contains only unique files that won't be dlpreopened
3871 old_dlfiles
="$dlfiles"
3873 for lib
in $old_dlfiles; do
3874 case " $dlprefiles $dlfiles " in
3876 *) dlfiles
="$dlfiles $lib" ;;
3880 # Make sure dlprefiles contains only unique files
3881 old_dlprefiles
="$dlprefiles"
3883 for lib
in $old_dlprefiles; do
3884 case "$dlprefiles " in
3886 *) dlprefiles
="$dlprefiles $lib" ;;
3890 if test "$build_libtool_libs" = yes; then
3891 if test -n "$rpath"; then
3893 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-os2* |
*-*-beos*)
3894 # these systems don't actually have a c library (as such)!
3896 *-*-rhapsody* |
*-*-darwin1.
[012])
3897 # Rhapsody C library is in the System framework
3898 deplibs
="$deplibs -framework System"
3901 # Don't link with libc until the a.out ld.so is fixed.
3903 *-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly*)
3904 # Do not include libc due to us having libc/libc_r.
3906 *-*-sco3.2v5
* |
*-*-sco5v6*)
3907 # Causes problems with __ctype
3909 *-*-sysv4.2uw2
* |
*-*-sysv5* |
*-*-unixware* |
*-*-OpenUNIX*)
3910 # Compiler inserts libc in the correct place for threads to work
3913 # Add libc to deplibs on all other systems if necessary.
3914 if test "$build_libtool_need_lc" = "yes"; then
3915 deplibs
="$deplibs -lc"
3921 # Transform deplibs into only deplibs that can be linked in shared.
3923 libname_save
=$libname
3924 release_save
=$release
3925 versuffix_save
=$versuffix
3927 # I'm not sure if I'm treating the release correctly. I think
3928 # release should show up in the -l (ie -lgmp5) so we don't want to
3929 # add it in twice. Is that correct?
3935 case $deplibs_check_method in
3937 # Don't check for shared/static. Everything works.
3938 # This might be a little naive. We might want to check
3939 # whether the library exists or not. But this is on
3940 # osf3 & osf4 and I'm not really sure... Just
3941 # implementing what was already the behavior.
3945 # This code stresses the "libraries are programs" paradigm to its
3946 # limits. Maybe even breaks it. We compile a program, linking it
3947 # against the deplibs as a proxy for the library. Then we can check
3948 # whether they linked in statically or dynamically with ldd.
3950 cat > conftest.c
<<EOF
3951 int main() { return 0; }
3954 if $LTCC $LTCFLAGS -o conftest conftest.c
$deplibs; then
3955 ldd_output
=`ldd conftest`
3956 for i
in $deplibs; do
3957 name
=`expr $i : '-l\(.*\)'`
3958 # If $name is empty we are operating on a -L argument.
3959 if test "$name" != "" && test "$name" != "0"; then
3960 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3961 case " $predeps $postdeps " in
3963 newdeplibs
="$newdeplibs $i"
3968 if test -n "$i" ; then
3969 libname
=`eval \\$echo \"$libname_spec\"`
3970 deplib_matches
=`eval \\$echo \"$library_names_spec\"`
3971 set dummy
$deplib_matches
3973 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3974 newdeplibs
="$newdeplibs $i"
3978 $echo "*** Warning: dynamic linker does not accept needed library $i."
3979 $echo "*** I have the capability to make that library automatically link in when"
3980 $echo "*** you link to this library. But I can only do this if you have a"
3981 $echo "*** shared version of the library, which I believe you do not have"
3982 $echo "*** because a test_compile did reveal that the linker did not use it for"
3983 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3987 newdeplibs
="$newdeplibs $i"
3991 # Error occurred in the first compile. Let's try to salvage
3992 # the situation: Compile a separate program for each library.
3993 for i
in $deplibs; do
3994 name
=`expr $i : '-l\(.*\)'`
3995 # If $name is empty we are operating on a -L argument.
3996 if test "$name" != "" && test "$name" != "0"; then
3998 if $LTCC $LTCFLAGS -o conftest conftest.c
$i; then
3999 ldd_output
=`ldd conftest`
4000 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
4001 case " $predeps $postdeps " in
4003 newdeplibs
="$newdeplibs $i"
4008 if test -n "$i" ; then
4009 libname
=`eval \\$echo \"$libname_spec\"`
4010 deplib_matches
=`eval \\$echo \"$library_names_spec\"`
4011 set dummy
$deplib_matches
4013 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
4014 newdeplibs
="$newdeplibs $i"
4018 $echo "*** Warning: dynamic linker does not accept needed library $i."
4019 $echo "*** I have the capability to make that library automatically link in when"
4020 $echo "*** you link to this library. But I can only do this if you have a"
4021 $echo "*** shared version of the library, which you do not appear to have"
4022 $echo "*** because a test_compile did reveal that the linker did not use this one"
4023 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
4029 $echo "*** Warning! Library $i is needed by this library but I was not able to"
4030 $echo "*** make it link in! You will probably need to install it or some"
4031 $echo "*** library that it depends on before this library will be fully"
4032 $echo "*** functional. Installing it before continuing would be even better."
4035 newdeplibs
="$newdeplibs $i"
4041 set dummy
$deplibs_check_method
4042 file_magic_regex
=`expr "$deplibs_check_method" : "$2 \(.*\)"`
4043 for a_deplib
in $deplibs; do
4044 name
=`expr $a_deplib : '-l\(.*\)'`
4045 # If $name is empty we are operating on a -L argument.
4046 if test "$name" != "" && test "$name" != "0"; then
4047 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
4048 case " $predeps $postdeps " in
4050 newdeplibs
="$newdeplibs $a_deplib"
4055 if test -n "$a_deplib" ; then
4056 libname
=`eval \\$echo \"$libname_spec\"`
4057 for i
in $lib_search_path $sys_lib_search_path $shlib_search_path; do
4058 potential_libs
=`ls $i/$libname[.-]* 2>/dev/null`
4059 for potent_lib
in $potential_libs; do
4060 # Follow soft links.
4061 if ls -lLd "$potent_lib" 2>/dev
/null \
4062 |
grep " -> " >/dev
/null
; then
4065 # The statement above tries to avoid entering an
4066 # endless loop below, in case of cyclic links.
4067 # We might still enter an endless loop, since a link
4068 # loop can be closed while we follow links,
4070 potlib
="$potent_lib"
4071 while test -h "$potlib" 2>/dev
/null
; do
4072 potliblink
=`ls -ld $potlib | ${SED} 's/.* -> //'`
4074 [\\/]* |
[A-Za-z
]:[\\/]*) potlib
="$potliblink";;
4075 *) potlib
=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
4078 if eval $file_magic_cmd \"\
$potlib\" 2>/dev
/null \
4080 |
$EGREP "$file_magic_regex" > /dev
/null
; then
4081 newdeplibs
="$newdeplibs $a_deplib"
4088 if test -n "$a_deplib" ; then
4091 $echo "*** Warning: linker path does not have real file for library $a_deplib."
4092 $echo "*** I have the capability to make that library automatically link in when"
4093 $echo "*** you link to this library. But I can only do this if you have a"
4094 $echo "*** shared version of the library, which you do not appear to have"
4095 $echo "*** because I did check the linker path looking for a file starting"
4096 if test -z "$potlib" ; then
4097 $echo "*** with $libname but no candidates were found. (...for file magic test)"
4099 $echo "*** with $libname and none of the candidates passed a file format test"
4100 $echo "*** using a file magic. Last file checked: $potlib"
4104 # Add a -L argument.
4105 newdeplibs
="$newdeplibs $a_deplib"
4107 done # Gone through all deplibs.
4110 set dummy
$deplibs_check_method
4111 match_pattern_regex
=`expr "$deplibs_check_method" : "$2 \(.*\)"`
4112 for a_deplib
in $deplibs; do
4113 name
=`expr $a_deplib : '-l\(.*\)'`
4114 # If $name is empty we are operating on a -L argument.
4115 if test -n "$name" && test "$name" != "0"; then
4116 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
4117 case " $predeps $postdeps " in
4119 newdeplibs
="$newdeplibs $a_deplib"
4124 if test -n "$a_deplib" ; then
4125 libname
=`eval \\$echo \"$libname_spec\"`
4126 for i
in $lib_search_path $sys_lib_search_path $shlib_search_path; do
4127 potential_libs
=`ls $i/$libname[.-]* 2>/dev/null`
4128 for potent_lib
in $potential_libs; do
4129 potlib
="$potent_lib" # see symlink-check above in file_magic test
4130 if eval $echo \"$potent_lib\" 2>/dev
/null \
4132 |
$EGREP "$match_pattern_regex" > /dev
/null
; then
4133 newdeplibs
="$newdeplibs $a_deplib"
4140 if test -n "$a_deplib" ; then
4143 $echo "*** Warning: linker path does not have real file for library $a_deplib."
4144 $echo "*** I have the capability to make that library automatically link in when"
4145 $echo "*** you link to this library. But I can only do this if you have a"
4146 $echo "*** shared version of the library, which you do not appear to have"
4147 $echo "*** because I did check the linker path looking for a file starting"
4148 if test -z "$potlib" ; then
4149 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
4151 $echo "*** with $libname and none of the candidates passed a file format test"
4152 $echo "*** using a regex pattern. Last file checked: $potlib"
4156 # Add a -L argument.
4157 newdeplibs
="$newdeplibs $a_deplib"
4159 done # Gone through all deplibs.
4163 tmp_deplibs
=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
4164 -e 's/ -[LR][^ ]*//g'`
4165 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
4166 for i
in $predeps $postdeps ; do
4167 # can't use Xsed below, because $i might contain '/'
4168 tmp_deplibs
=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
4171 if $echo "X $tmp_deplibs" |
$Xsed -e 's/[ ]//g' \
4172 |
grep .
>/dev
/null
; then
4174 if test "X$deplibs_check_method" = "Xnone"; then
4175 $echo "*** Warning: inter-library dependencies are not supported in this platform."
4177 $echo "*** Warning: inter-library dependencies are not known to be supported."
4179 $echo "*** All declared inter-library dependencies are being dropped."
4184 versuffix
=$versuffix_save
4186 release
=$release_save
4187 libname
=$libname_save
4191 *-*-rhapsody* |
*-*-darwin1.
[012])
4192 # On Rhapsody replace the C library is the System framework
4193 newdeplibs
=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
4197 if test "$droppeddeps" = yes; then
4198 if test "$module" = yes; then
4200 $echo "*** Warning: libtool could not satisfy all declared inter-library"
4201 $echo "*** dependencies of module $libname. Therefore, libtool will create"
4202 $echo "*** a static module, that should work as long as the dlopening"
4203 $echo "*** application is linked with the -dlopen flag."
4204 if test -z "$global_symbol_pipe"; then
4206 $echo "*** However, this would only work if libtool was able to extract symbol"
4207 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
4208 $echo "*** not find such a program. So, this module is probably useless."
4209 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
4211 if test "$build_old_libs" = no
; then
4212 oldlibs
="$output_objdir/$libname.$libext"
4213 build_libtool_libs
=module
4216 build_libtool_libs
=no
4219 $echo "*** The inter-library dependencies that have been dropped here will be"
4220 $echo "*** automatically added whenever a program is linked with this library"
4221 $echo "*** or is declared to -dlopen it."
4223 if test "$allow_undefined" = no
; then
4225 $echo "*** Since this library must not contain undefined symbols,"
4226 $echo "*** because either the platform does not support them or"
4227 $echo "*** it was explicitly requested with -no-undefined,"
4228 $echo "*** libtool will only create a static version of it."
4229 if test "$build_old_libs" = no
; then
4230 oldlibs
="$output_objdir/$libname.$libext"
4231 build_libtool_libs
=module
4234 build_libtool_libs
=no
4239 # Done checking deplibs!
4244 # move library search paths that coincide with paths to not yet
4245 # installed libraries to the beginning of the library search list
4247 for path
in $notinst_path; do
4248 case " $new_libs " in
4249 *" -L$path/$objdir "*) ;;
4251 case " $deplibs " in
4252 *" -L$path/$objdir "*)
4253 new_libs
="$new_libs -L$path/$objdir" ;;
4258 for deplib
in $deplibs; do
4261 case " $new_libs " in
4263 *) new_libs
="$new_libs $deplib" ;;
4266 *) new_libs
="$new_libs $deplib" ;;
4272 # All the library-specific variables (install_libdir is set above).
4277 # Test again, we may have decided not to build it any more
4278 if test "$build_libtool_libs" = yes; then
4279 if test "$hardcode_into_libs" = yes; then
4280 # Hardcode the library paths
4283 rpath
="$finalize_rpath"
4284 test "$mode" != relink
&& rpath
="$compile_rpath$rpath"
4285 for libdir
in $rpath; do
4286 if test -n "$hardcode_libdir_flag_spec"; then
4287 if test -n "$hardcode_libdir_separator"; then
4288 if test -z "$hardcode_libdirs"; then
4289 hardcode_libdirs
="$libdir"
4291 # Just accumulate the unique libdirs.
4292 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4293 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4296 hardcode_libdirs
="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4301 eval flag
=\"$hardcode_libdir_flag_spec\"
4302 dep_rpath
="$dep_rpath $flag"
4304 elif test -n "$runpath_var"; then
4305 case "$perm_rpath " in
4307 *) perm_rpath
="$perm_rpath $libdir" ;;
4311 # Substitute the hardcoded libdirs into the rpath.
4312 if test -n "$hardcode_libdir_separator" &&
4313 test -n "$hardcode_libdirs"; then
4314 libdir
="$hardcode_libdirs"
4315 if test -n "$hardcode_libdir_flag_spec_ld"; then
4316 case $archive_cmds in
4317 *\
$LD*) eval dep_rpath
=\"$hardcode_libdir_flag_spec_ld\" ;;
4318 *) eval dep_rpath
=\"$hardcode_libdir_flag_spec\" ;;
4321 eval dep_rpath
=\"$hardcode_libdir_flag_spec\"
4324 if test -n "$runpath_var" && test -n "$perm_rpath"; then
4325 # We should set the runpath_var.
4327 for dir
in $perm_rpath; do
4330 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
4332 test -n "$dep_rpath" && deplibs
="$dep_rpath $deplibs"
4335 shlibpath
="$finalize_shlibpath"
4336 test "$mode" != relink
&& shlibpath
="$compile_shlibpath$shlibpath"
4337 if test -n "$shlibpath"; then
4338 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
4341 # Get the real and link names of the library.
4342 eval shared_ext
=\"$shrext_cmds\"
4343 eval library_names
=\"$library_names_spec\"
4344 set dummy
$library_names
4348 if test -n "$soname_spec"; then
4349 eval soname
=\"$soname_spec\"
4353 if test -z "$dlname"; then
4357 lib
="$output_objdir/$realname"
4361 linknames
="$linknames $link"
4364 # Use standard objects if they are pic
4365 test -z "$pic_flag" && libobjs
=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4367 # Prepare the list of exported symbols
4368 if test -z "$export_symbols"; then
4369 if test "$always_export_symbols" = yes ||
test -n "$export_symbols_regex"; then
4370 $show "generating symbol list for \`$libname.la'"
4371 export_symbols
="$output_objdir/$libname.exp"
4372 $run $rm $export_symbols
4373 cmds
=$export_symbols_cmds
4374 save_ifs
="$IFS"; IFS
='~'
4375 for cmd
in $cmds; do
4378 if len
=`expr "X$cmd" : ".*"` &&
4379 test "$len" -le "$max_cmd_len" ||
test "$max_cmd_len" -le -1; then
4381 $run eval "$cmd" ||
exit $?
4382 skipped_export
=false
4384 # The command line is too long to execute in one step.
4385 $show "using reloadable object file for export list..."
4387 # Break out early, otherwise skipped_export may be
4388 # set to false by a later but shorter cmd.
4393 if test -n "$export_symbols_regex"; then
4394 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4395 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4396 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4397 $run eval '$mv "${export_symbols}T" "$export_symbols"'
4402 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4403 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
4407 for test_deplib
in $deplibs; do
4408 case " $convenience " in
4409 *" $test_deplib "*) ;;
4411 tmp_deplibs
="$tmp_deplibs $test_deplib"
4415 deplibs
="$tmp_deplibs"
4417 if test -n "$convenience"; then
4418 if test -n "$whole_archive_flag_spec"; then
4419 save_libobjs
=$libobjs
4420 eval libobjs
=\"\
$libobjs $whole_archive_flag_spec\"
4422 gentop
="$output_objdir/${outputname}x"
4423 generated
="$generated $gentop"
4425 func_extract_archives
$gentop $convenience
4426 libobjs
="$libobjs $func_extract_archives_result"
4430 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4431 eval flag
=\"$thread_safe_flag_spec\"
4432 linker_flags
="$linker_flags $flag"
4435 # Make a backup of the uninstalled library when relinking
4436 if test "$mode" = relink
; then
4437 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' ||
exit $?
4440 # Do each of the archive commands.
4441 if test "$module" = yes && test -n "$module_cmds" ; then
4442 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4443 eval test_cmds
=\"$module_expsym_cmds\"
4444 cmds
=$module_expsym_cmds
4446 eval test_cmds
=\"$module_cmds\"
4450 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4451 eval test_cmds
=\"$archive_expsym_cmds\"
4452 cmds
=$archive_expsym_cmds
4454 eval test_cmds
=\"$archive_cmds\"
4459 if test "X$skipped_export" != "X:" &&
4460 len
=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4461 test "$len" -le "$max_cmd_len" ||
test "$max_cmd_len" -le -1; then
4464 # The command line is too long to link in one step, link piecewise.
4465 $echo "creating reloadable object files..."
4467 # Save the value of $output and $libobjs because we want to
4468 # use them later. If we have whole_archive_flag_spec, we
4469 # want to use save_libobjs as it was before
4470 # whole_archive_flag_spec was expanded, because we can't
4471 # assume the linker understands whole_archive_flag_spec.
4472 # This may have to be revisited, in case too many
4473 # convenience libraries get linked in and end up exceeding
4475 if test -z "$convenience" ||
test -z "$whole_archive_flag_spec"; then
4476 save_libobjs
=$libobjs
4479 output_la
=`$echo "X$output" | $Xsed -e "$basename"`
4481 # Clear the reloadable object creation command queue and
4482 # initialize k to one.
4489 output
=$output_objdir/$output_la-${k}.
$objext
4490 # Loop over the list of objects to be linked.
4491 for obj
in $save_libobjs
4493 eval test_cmds
=\"$reload_cmds $objlist $last_robj\"
4494 if test "X$objlist" = X ||
4495 { len
=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4496 test "$len" -le "$max_cmd_len"; }; then
4497 objlist
="$objlist $obj"
4499 # The command $test_cmds is almost too long, add a
4500 # command to the queue.
4501 if test "$k" -eq 1 ; then
4502 # The first file doesn't have a previous command to add.
4503 eval concat_cmds
=\"$reload_cmds $objlist $last_robj\"
4505 # All subsequent reloadable object files will link in
4506 # the last one created.
4507 eval concat_cmds
=\"\
$concat_cmds~
$reload_cmds $objlist $last_robj\"
4509 last_robj
=$output_objdir/$output_la-${k}.
$objext
4511 output
=$output_objdir/$output_la-${k}.
$objext
4516 # Handle the remaining objects by creating one last
4517 # reloadable object file. All subsequent reloadable object
4518 # files will link in the last one created.
4519 test -z "$concat_cmds" || concat_cmds
=$concat_cmds~
4520 eval concat_cmds
=\"\
${concat_cmds}$reload_cmds $objlist $last_robj\"
4522 if ${skipped_export-false}; then
4523 $show "generating symbol list for \`$libname.la'"
4524 export_symbols
="$output_objdir/$libname.exp"
4525 $run $rm $export_symbols
4527 # Append the command to create the export file.
4528 eval concat_cmds
=\"\
$concat_cmds~
$export_symbols_cmds\"
4531 # Set up a command to remove the reloadable object files
4532 # after they are used.
4534 while test "$i" -lt "$k"
4537 delfiles
="$delfiles $output_objdir/$output_la-${i}.$objext"
4540 $echo "creating a temporary reloadable object file: $output"
4542 # Loop through the commands generated above and execute them.
4543 save_ifs
="$IFS"; IFS
='~'
4544 for cmd
in $concat_cmds; do
4547 $run eval "$cmd" ||
exit $?
4552 # Restore the value of output.
4555 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
4556 eval libobjs
=\"\
$libobjs $whole_archive_flag_spec\"
4558 # Expand the library linking commands again to reset the
4559 # value of $libobjs for piecewise linking.
4561 # Do each of the archive commands.
4562 if test "$module" = yes && test -n "$module_cmds" ; then
4563 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4564 cmds
=$module_expsym_cmds
4569 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4570 cmds
=$archive_expsym_cmds
4576 # Append the command to remove the reloadable object files
4577 # to the just-reset $cmds.
4578 eval cmds
=\"\
$cmds~\
$rm $delfiles\"
4580 save_ifs
="$IFS"; IFS
='~'
4581 for cmd
in $cmds; do
4585 $run eval "$cmd" ||
{
4588 # Restore the uninstalled library and exit
4589 if test "$mode" = relink
; then
4590 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4598 # Restore the uninstalled library and exit
4599 if test "$mode" = relink
; then
4600 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' ||
exit $?
4602 if test -n "$convenience"; then
4603 if test -z "$whole_archive_flag_spec"; then
4604 $show "${rm}r $gentop"
4605 $run ${rm}r
"$gentop"
4612 # Create links to the real library.
4613 for linkname
in $linknames; do
4614 if test "$realname" != "$linkname"; then
4615 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4616 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' ||
exit $?
4620 # If -module or -export-dynamic was specified, set the dlname.
4621 if test "$module" = yes ||
test "$export_dynamic" = yes; then
4622 # On all known operating systems, these are identical.
4631 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
4634 if test -n "$dlfiles$dlprefiles" ||
test "$dlself" != no
; then
4635 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4638 if test -n "$rpath"; then
4639 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4642 if test -n "$xrpath"; then
4643 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4646 if test -n "$vinfo"; then
4647 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4650 if test -n "$release"; then
4651 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4656 if test -n "$objs$old_deplibs"; then
4657 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4661 obj
=`$echo "X$output" | $Xsed -e "$lo2o"`
4669 # Delete the old objects.
4670 $run $rm $obj $libobj
4672 # Objects from convenience libraries. This assumes
4673 # single-version convenience libraries. Whenever we create
4674 # different ones for PIC/non-PIC, this we'll have to duplicate
4678 # reload_cmds runs $LD directly, so let us get rid of
4679 # -Wl from whole_archive_flag_spec and hope we can get by with
4680 # turning comma into space..
4683 if test -n "$convenience"; then
4684 if test -n "$whole_archive_flag_spec"; then
4685 eval tmp_whole_archive_flags
=\"$whole_archive_flag_spec\"
4686 reload_conv_objs
=$reload_objs\
`$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4688 gentop
="$output_objdir/${obj}x"
4689 generated
="$generated $gentop"
4691 func_extract_archives
$gentop $convenience
4692 reload_conv_objs
="$reload_objs $func_extract_archives_result"
4696 # Create the old-style object.
4697 reload_objs
="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
4701 save_ifs
="$IFS"; IFS
='~'
4702 for cmd
in $cmds; do
4706 $run eval "$cmd" ||
exit $?
4710 # Exit if we aren't doing a library object file.
4711 if test -z "$libobj"; then
4712 if test -n "$gentop"; then
4713 $show "${rm}r $gentop"
4720 if test "$build_libtool_libs" != yes; then
4721 if test -n "$gentop"; then
4722 $show "${rm}r $gentop"
4726 # Create an invalid libtool object if no PIC, so that we don't
4727 # accidentally link it into a program.
4728 # $show "echo timestamp > $libobj"
4729 # $run eval "echo timestamp > $libobj" || exit $?
4733 if test -n "$pic_flag" ||
test "$pic_mode" != default
; then
4734 # Only do commands if we really have different PIC objects.
4735 reload_objs
="$libobjs $reload_conv_objs"
4738 save_ifs
="$IFS"; IFS
='~'
4739 for cmd
in $cmds; do
4743 $run eval "$cmd" ||
exit $?
4748 if test -n "$gentop"; then
4749 $show "${rm}r $gentop"
4758 *cygwin
*) output
=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4760 if test -n "$vinfo"; then
4761 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4764 if test -n "$release"; then
4765 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4768 if test "$preload" = yes; then
4769 if test "$dlopen_support" = unknown
&& test "$dlopen_self" = unknown
&&
4770 test "$dlopen_self_static" = unknown
; then
4771 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4776 *-*-rhapsody* |
*-*-darwin1.
[012])
4777 # On Rhapsody replace the C library is the System framework
4778 compile_deplibs
=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4779 finalize_deplibs
=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4785 # Don't allow lazy linking, it breaks C++ global constructors
4786 if test "$tagname" = CXX
; then
4787 compile_command
="$compile_command ${wl}-bind_at_load"
4788 finalize_command
="$finalize_command ${wl}-bind_at_load"
4794 # move library search paths that coincide with paths to not yet
4795 # installed libraries to the beginning of the library search list
4797 for path
in $notinst_path; do
4798 case " $new_libs " in
4799 *" -L$path/$objdir "*) ;;
4801 case " $compile_deplibs " in
4802 *" -L$path/$objdir "*)
4803 new_libs
="$new_libs -L$path/$objdir" ;;
4808 for deplib
in $compile_deplibs; do
4811 case " $new_libs " in
4813 *) new_libs
="$new_libs $deplib" ;;
4816 *) new_libs
="$new_libs $deplib" ;;
4819 compile_deplibs
="$new_libs"
4822 compile_command
="$compile_command $compile_deplibs"
4823 finalize_command
="$finalize_command $finalize_deplibs"
4825 if test -n "$rpath$xrpath"; then
4826 # If the user specified any rpath flags, then add them.
4827 for libdir
in $rpath $xrpath; do
4828 # This is the magic to use -rpath.
4829 case "$finalize_rpath " in
4831 *) finalize_rpath
="$finalize_rpath $libdir" ;;
4836 # Now hardcode the library paths
4839 for libdir
in $compile_rpath $finalize_rpath; do
4840 if test -n "$hardcode_libdir_flag_spec"; then
4841 if test -n "$hardcode_libdir_separator"; then
4842 if test -z "$hardcode_libdirs"; then
4843 hardcode_libdirs
="$libdir"
4845 # Just accumulate the unique libdirs.
4846 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4847 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4850 hardcode_libdirs
="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4855 eval flag
=\"$hardcode_libdir_flag_spec\"
4856 rpath
="$rpath $flag"
4858 elif test -n "$runpath_var"; then
4859 case "$perm_rpath " in
4861 *) perm_rpath
="$perm_rpath $libdir" ;;
4865 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-os2*)
4866 testbindir
=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4867 case :$dllsearchpath: in
4869 *) dllsearchpath
="$dllsearchpath:$libdir";;
4871 case :$dllsearchpath: in
4872 *":$testbindir:"*) ;;
4873 *) dllsearchpath
="$dllsearchpath:$testbindir";;
4878 # Substitute the hardcoded libdirs into the rpath.
4879 if test -n "$hardcode_libdir_separator" &&
4880 test -n "$hardcode_libdirs"; then
4881 libdir
="$hardcode_libdirs"
4882 eval rpath
=\" $hardcode_libdir_flag_spec\"
4884 compile_rpath
="$rpath"
4888 for libdir
in $finalize_rpath; do
4889 if test -n "$hardcode_libdir_flag_spec"; then
4890 if test -n "$hardcode_libdir_separator"; then
4891 if test -z "$hardcode_libdirs"; then
4892 hardcode_libdirs
="$libdir"
4894 # Just accumulate the unique libdirs.
4895 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4896 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4899 hardcode_libdirs
="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4904 eval flag
=\"$hardcode_libdir_flag_spec\"
4905 rpath
="$rpath $flag"
4907 elif test -n "$runpath_var"; then
4908 case "$finalize_perm_rpath " in
4910 *) finalize_perm_rpath
="$finalize_perm_rpath $libdir" ;;
4914 # Substitute the hardcoded libdirs into the rpath.
4915 if test -n "$hardcode_libdir_separator" &&
4916 test -n "$hardcode_libdirs"; then
4917 libdir
="$hardcode_libdirs"
4918 eval rpath
=\" $hardcode_libdir_flag_spec\"
4920 finalize_rpath
="$rpath"
4922 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4923 # Transform all the library objects into standard objects.
4924 compile_command
=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4925 finalize_command
=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4929 if test -n "$dlfiles$dlprefiles" ||
test "$dlself" != no
; then
4930 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4931 dlsyms
="${outputname}S.c"
4933 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4937 if test -n "$dlsyms"; then
4941 # Discover the nlist of each of the dlfiles.
4942 nlist
="$output_objdir/${outputname}.nm"
4944 $show "$rm $nlist ${nlist}S ${nlist}T"
4945 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4947 # Parse the name list into a source file.
4948 $show "creating $output_objdir/$dlsyms"
4950 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4951 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4952 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4958 /* Prevent the only kind of declaration conflicts we can make. */
4959 #define lt_preloaded_symbols some_other_symbol
4961 /* External symbol declarations for the compiler. */\
4964 if test "$dlself" = yes; then
4965 $show "generating symbol list for \`$output'"
4967 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4969 # Add our own program objects to the symbol list.
4970 progfiles
=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4971 for arg
in $progfiles; do
4972 $show "extracting global C symbols from \`$arg'"
4973 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4976 if test -n "$exclude_expsyms"; then
4977 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4978 $run eval '$mv "$nlist"T "$nlist"'
4981 if test -n "$export_symbols_regex"; then
4982 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4983 $run eval '$mv "$nlist"T "$nlist"'
4986 # Prepare the list of exported symbols
4987 if test -z "$export_symbols"; then
4988 export_symbols
="$output_objdir/$outputname.exp"
4989 $run $rm $export_symbols
4990 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4992 *cygwin
* |
*mingw
* )
4993 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4994 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4998 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4999 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
5000 $run eval 'mv "$nlist"T "$nlist"'
5002 *cygwin
* |
*mingw
* )
5003 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
5004 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
5010 for arg
in $dlprefiles; do
5011 $show "extracting global C symbols from \`$arg'"
5012 name
=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
5013 $run eval '$echo ": $name " >> "$nlist"'
5014 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
5017 if test -z "$run"; then
5018 # Make sure we have at least an empty file.
5019 test -f "$nlist" ||
: > "$nlist"
5021 if test -n "$exclude_expsyms"; then
5022 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
5023 $mv "$nlist"T
"$nlist"
5026 # Try sorting and uniquifying the output.
5027 if grep -v "^: " < "$nlist" |
5028 if sort -k 3 </dev
/null
>/dev
/null
2>&1; then
5033 uniq > "$nlist"S
; then
5036 grep -v "^: " < "$nlist" > "$nlist"S
5039 if test -f "$nlist"S
; then
5040 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
5042 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
5045 $echo >> "$output_objdir/$dlsyms" "\
5047 #undef lt_preloaded_symbols
5049 #if defined (__STDC__) && __STDC__
5050 # define lt_ptr void *
5052 # define lt_ptr char *
5056 /* The mapping between symbol names and symbols. */
5060 *cygwin
* |
*mingw
* )
5061 $echo >> "$output_objdir/$dlsyms" "\
5062 /* DATA imports from DLLs on WIN32 can't be const, because
5063 runtime relocations are performed -- see ld's documentation
5069 $echo >> "$output_objdir/$dlsyms" "\
5076 $echo >> "$output_objdir/$dlsyms" "\
5080 lt_preloaded_symbols[] =
5084 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
5086 $echo >> "$output_objdir/$dlsyms" "\
5090 /* This works around a problem in FreeBSD linker */
5091 #ifdef FREEBSD_WORKAROUND
5092 static const void *lt_preloaded_setup() {
5093 return lt_preloaded_symbols;
5103 pic_flag_for_symtable
=
5105 # compiling the symbol table file with pic_flag works around
5106 # a FreeBSD bug that causes programs to crash when -lm is
5107 # linked before any other PIC object. But we must not use
5108 # pic_flag when linking with -static. The problem exists in
5109 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
5110 *-*-freebsd2*|
*-*-freebsd3.0
*|
*-*-freebsdelf3.0
*)
5111 case "$compile_command " in
5113 *) pic_flag_for_symtable
=" $pic_flag -DFREEBSD_WORKAROUND";;
5116 case "$compile_command " in
5118 *) pic_flag_for_symtable
=" $pic_flag";;
5122 # Now compile the dynamic symbol file.
5123 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
5124 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' ||
exit $?
5126 # Clean up the generated files.
5127 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
5128 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
5130 # Transform the symbol file into the correct name.
5132 *cygwin
* |
*mingw
* )
5133 if test -f "$output_objdir/${outputname}.def" ; then
5134 compile_command
=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
5135 finalize_command
=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
5137 compile_command
=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
5138 finalize_command
=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
5142 compile_command
=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
5143 finalize_command
=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
5148 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
5153 # We keep going just in case the user didn't refer to
5154 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
5155 # really was required.
5157 # Nullify the symbol file.
5158 compile_command
=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
5159 finalize_command
=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
5162 if test "$need_relink" = no ||
test "$build_libtool_libs" != yes; then
5163 # Replace the output file specification.
5164 compile_command
=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
5165 link_command
="$compile_command$compile_rpath"
5167 # We have no uninstalled library dependencies, so finalize right now.
5168 $show "$link_command"
5169 $run eval "$link_command"
5172 # Delete the generated files.
5173 if test -n "$dlsyms"; then
5174 $show "$rm $output_objdir/${outputname}S.${objext}"
5175 $run $rm "$output_objdir/${outputname}S.${objext}"
5181 if test -n "$shlibpath_var"; then
5182 # We should set the shlibpath_var
5184 for dir
in $temp_rpath; do
5186 [\\/]* |
[A-Za-z
]:[\\/]*)
5191 # Relative path: add a thisdir entry.
5192 rpath
="$rpath\$thisdir/$dir:"
5199 if test -n "$compile_shlibpath$finalize_shlibpath"; then
5200 compile_command
="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
5202 if test -n "$finalize_shlibpath"; then
5203 finalize_command
="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
5208 if test -n "$runpath_var"; then
5209 if test -n "$perm_rpath"; then
5210 # We should set the runpath_var.
5212 for dir
in $perm_rpath; do
5215 compile_var
="$runpath_var=\"$rpath\$$runpath_var\" "
5217 if test -n "$finalize_perm_rpath"; then
5218 # We should set the runpath_var.
5220 for dir
in $finalize_perm_rpath; do
5223 finalize_var
="$runpath_var=\"$rpath\$$runpath_var\" "
5227 if test "$no_install" = yes; then
5228 # We don't need to create a wrapper script.
5229 link_command
="$compile_var$compile_command$compile_rpath"
5230 # Replace the output file specification.
5231 link_command
=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
5232 # Delete the old output file.
5234 # Link the executable and exit
5235 $show "$link_command"
5236 $run eval "$link_command" ||
exit $?
5240 if test "$hardcode_action" = relink
; then
5241 # Fast installation is not supported
5242 link_command
="$compile_var$compile_command$compile_rpath"
5243 relink_command
="$finalize_var$finalize_command$finalize_rpath"
5245 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
5246 $echo "$modename: \`$output' will be relinked during installation" 1>&2
5248 if test "$fast_install" != no
; then
5249 link_command
="$finalize_var$compile_command$finalize_rpath"
5250 if test "$fast_install" = yes; then
5251 relink_command
=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
5253 # fast_install is set to needless
5257 link_command
="$compile_var$compile_command$compile_rpath"
5258 relink_command
="$finalize_var$finalize_command$finalize_rpath"
5262 # Replace the output file specification.
5263 link_command
=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
5265 # Delete the old output files.
5266 $run $rm $output $output_objdir/$outputname $output_objdir/lt-
$outputname
5268 $show "$link_command"
5269 $run eval "$link_command" ||
exit $?
5271 # Now create the wrapper script.
5272 $show "creating $output"
5274 # Quote the relink command for shipping.
5275 if test -n "$relink_command"; then
5276 # Preserve any variables that may affect compiler behavior
5277 for var
in $variables_saved_for_relink; do
5278 if eval test -z \"\
${$var+set}\"; then
5279 relink_command
="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5280 elif eval var_value
=\$
$var; test -z "$var_value"; then
5281 relink_command
="$var=; export $var; $relink_command"
5283 var_value
=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5284 relink_command
="$var=\"$var_value\"; export $var; $relink_command"
5287 relink_command
="(cd `pwd`; $relink_command)"
5288 relink_command
=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5291 # Quote $echo for shipping.
5292 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
5294 [\\/]* |
[A-Za-z
]:[\\/]*) qecho
="$SHELL $progpath --fallback-echo";;
5295 *) qecho
="$SHELL `pwd`/$progpath --fallback-echo";;
5297 qecho
=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
5299 qecho
=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
5302 # Only actually do things if our run command is non-null.
5303 if test -z "$run"; then
5304 # win32 will think the script is a binary if it has
5305 # a .exe suffix, so we strip it off here.
5307 *.exe
) output
=`$echo $output|${SED} 's,.exe$,,'` ;;
5309 # test for cygwin because mv fails w/o .exe extensions
5313 outputname
=`$echo $outputname|${SED} 's,.exe$,,'` ;;
5317 *cygwin
* |
*mingw
* )
5318 output_name
=`basename $output`
5319 output_path
=`dirname $output`
5320 cwrappersource
="$output_path/$objdir/lt-$output_name.c"
5321 cwrapper
="$output_path/$output_name.exe"
5322 $rm $cwrappersource $cwrapper
5323 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
5325 cat > $cwrappersource <<EOF
5327 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5328 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5330 The $output program cannot be directly executed until all the libtool
5331 libraries that it depends on are installed.
5333 This wrapper executable should never be moved out of the build directory.
5334 If it is, it will not operate correctly.
5336 Currently, it simply execs the wrapper *script* "/bin/sh $output",
5337 but could eventually absorb all of the scripts functionality and
5338 exec $objdir/$outputname directly.
5341 cat >> $cwrappersource<<"EOF"
5350 #include <sys/stat.h>
5352 #if defined(PATH_MAX)
5353 # define LT_PATHMAX PATH_MAX
5354 #elif defined(MAXPATHLEN)
5355 # define LT_PATHMAX MAXPATHLEN
5357 # define LT_PATHMAX 1024
5360 #ifndef DIR_SEPARATOR
5361 # define DIR_SEPARATOR '/'
5362 # define PATH_SEPARATOR ':'
5365 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
5367 # define HAVE_DOS_BASED_FILE_SYSTEM
5368 # ifndef DIR_SEPARATOR_2
5369 # define DIR_SEPARATOR_2 '\\'
5371 # ifndef PATH_SEPARATOR_2
5372 # define PATH_SEPARATOR_2 ';'
5376 #ifndef DIR_SEPARATOR_2
5377 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5378 #else /* DIR_SEPARATOR_2 */
5379 # define IS_DIR_SEPARATOR(ch) \
5380 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5381 #endif /* DIR_SEPARATOR_2 */
5383 #ifndef PATH_SEPARATOR_2
5384 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5385 #else /* PATH_SEPARATOR_2 */
5386 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5387 #endif /* PATH_SEPARATOR_2 */
5389 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5390 #define XFREE(stale) do { \
5391 if (stale) { free ((void *) stale); stale = 0; } \
5394 /* -DDEBUG is fairly common in CFLAGS. */
5396 #if defined DEBUGWRAPPER
5397 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5399 # define DEBUG(format, ...)
5402 const char *program_name = NULL;
5404 void * xmalloc (size_t num);
5405 char * xstrdup (const char *string);
5406 const char * base_name (const char *name);
5407 char * find_executable(const char *wrapper);
5408 int check_executable(const char *path);
5409 char * strendzap(char *str, const char *pat);
5410 void lt_fatal (const char *message, ...);
5413 main (int argc, char *argv[])
5418 program_name = (char *) xstrdup (base_name (argv[0]));
5419 DEBUG("(main) argv[0] : %s\n",argv[0]);
5420 DEBUG("(main) program_name : %s\n",program_name);
5421 newargz = XMALLOC(char *, argc+2);
5424 cat >> $cwrappersource <<EOF
5425 newargz[0] = (char *) xstrdup("$SHELL");
5428 cat >> $cwrappersource <<"EOF"
5429 newargz
[1] = find_executable
(argv
[0]);
5430 if (newargz
[1] == NULL
)
5431 lt_fatal
("Couldn't find %s", argv
[0]);
5432 DEBUG
("(main) found exe at : %s\n",newargz
[1]);
5433 /* we know the
script has the same name
, without the .exe
*/
5434 /* so
make sure newargz
[1] doesn
't end in .exe */
5435 strendzap(newargz[1],".exe");
5436 for (i = 1; i < argc; i++)
5437 newargz[i+1] = xstrdup(argv[i]);
5438 newargz[argc+1] = NULL;
5440 for (i=0; i<argc+1; i++)
5442 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5450 cat >> $cwrappersource <<EOF
5451 execv("$SHELL",(char const **)newargz);
5455 cat >> $cwrappersource <<EOF
5456 execv("$SHELL",newargz);
5461 cat >> $cwrappersource <<"EOF"
5466 xmalloc (size_t num)
5468 void * p = (void *) malloc (num);
5470 lt_fatal ("Memory exhausted");
5476 xstrdup (const char *string)
5478 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5483 base_name (const char *name)
5487 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5488 /* Skip over the disk name in MSDOS pathnames. */
5489 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5493 for (base = name; *name; name++)
5494 if (IS_DIR_SEPARATOR (*name))
5500 check_executable(const char * path)
5504 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5505 if ((!path) || (!*path))
5508 if ((stat (path, &st) >= 0) &&
5510 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5511 #if defined (S_IXOTH)
5512 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5514 #if defined (S_IXGRP)
5515 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5517 ((st.st_mode & S_IXUSR) == S_IXUSR))
5524 /* Searches for the full path of the wrapper. Returns
5525 newly allocated full path name if found, NULL otherwise */
5527 find_executable (const char* wrapper)
5532 /* static buffer for getcwd */
5533 char tmp[LT_PATHMAX + 1];
5537 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5539 if ((wrapper == NULL) || (*wrapper == '\
0'))
5542 /* Absolute path? */
5543 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5544 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5546 concat_name = xstrdup (wrapper);
5547 if (check_executable(concat_name))
5554 if (IS_DIR_SEPARATOR (wrapper[0]))
5556 concat_name = xstrdup (wrapper);
5557 if (check_executable(concat_name))
5561 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5565 for (p = wrapper; *p; p++)
5573 /* no slashes; search PATH */
5574 const char* path = getenv ("PATH");
5577 for (p = path; *p; p = p_next)
5581 for (q = p; *q; q++)
5582 if (IS_PATH_SEPARATOR(*q))
5585 p_next = (*q == '\
0' ? q : q + 1);
5588 /* empty path: current directory */
5589 if (getcwd (tmp, LT_PATHMAX) == NULL)
5590 lt_fatal ("getcwd failed");
5591 tmp_len = strlen(tmp);
5592 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5593 memcpy (concat_name, tmp, tmp_len);
5594 concat_name[tmp_len] = '/';
5595 strcpy (concat_name + tmp_len + 1, wrapper);
5599 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5600 memcpy (concat_name, p, p_len);
5601 concat_name[p_len] = '/';
5602 strcpy (concat_name + p_len + 1, wrapper);
5604 if (check_executable(concat_name))
5609 /* not found in PATH; assume curdir */
5611 /* Relative path | not found in path: prepend cwd */
5612 if (getcwd (tmp, LT_PATHMAX) == NULL)
5613 lt_fatal ("getcwd failed");
5614 tmp_len = strlen(tmp);
5615 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5616 memcpy (concat_name, tmp, tmp_len);
5617 concat_name[tmp_len] = '/';
5618 strcpy (concat_name + tmp_len + 1, wrapper);
5620 if (check_executable(concat_name))
5627 strendzap(char *str, const char *pat)
5631 assert(str != NULL);
5632 assert(pat != NULL);
5635 patlen = strlen(pat);
5639 str += len - patlen;
5640 if (strcmp(str, pat) == 0)
5647 lt_error_core (int exit_status, const char * mode,
5648 const char * message, va_list ap)
5650 fprintf (stderr, "%s: %s: ", program_name, mode);
5651 vfprintf (stderr, message, ap);
5652 fprintf (stderr, ".\n");
5654 if (exit_status >= 0)
5659 lt_fatal (const char *message, ...)
5662 va_start (ap, message);
5663 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5667 # we should really use a build-platform specific compiler
5668 # here, but OTOH, the wrappers (shell script and this C one)
5669 # are only useful if you want to execute the "real" binary.
5670 # Since the "real" binary is built for $host, then this
5671 # wrapper might as well be built for $host, too.
5672 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5676 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5681 # $output - temporary wrapper script for $objdir/$outputname
5682 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5684 # The $output program cannot be directly executed until all the libtool
5685 # libraries that it depends on are installed.
5687 # This wrapper script should never be moved out of the build directory.
5688 # If it is, it will not operate correctly.
5690 # Sed substitution that helps us do robust quoting. It backslashifies
5691 # metacharacters that are still active within double-quoted strings.
5692 Xsed='${SED} -e 1s
/^X
//'
5693 sed_quote_subst='$sed_quote_subst'
5695 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5696 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5699 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5700 # is contrary to our usage. Disable this feature.
5701 alias -g '\
${1+\"\$@\"}'='\"\$@
\"'
5702 setopt NO_GLOB_SUBST
5704 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5706 BIN_SH=xpg4; export BIN_SH # for Tru64
5707 DUALCASE=1; export DUALCASE # for MKS sh
5709 # The HP-UX ksh and POSIX shell print the target directory to stdout
5711 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5713 relink_command=\"$relink_command\"
5715 # This environment variable determines our operation mode.
5716 if test \"\$libtool_install_magic\" = \"$magic\"; then
5717 # install mode needs the following variable:
5718 notinst_deplibs='$notinst_deplibs'
5720 # When we are sourced in execute mode, \$file and \$echo are already set.
5721 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5724 # Make sure echo works.
5725 if test \"X\$1\" = X--no-reexec; then
5726 # Discard the --no-reexec flag, and continue.
5728 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X
\t'; then
5729 # Yippee, \$echo works!
5732 # Restart under the correct shell, and then maybe \$echo will work.
5733 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5739 # Find the directory that this script lives in.
5740 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's
%/[^
/]*$
%%'\`
5741 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5743 # Follow symbolic links until we get to the real thisdir.
5744 file=\`ls -ld \"\$file\" | ${SED} -n 's
/.
*-> //p
'\`
5745 while test -n \"\$file\"; do
5746 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's
%/[^
/]*\$
%%'\`
5748 # If there was a directory component, then change thisdir.
5749 if test \"x\$destdir\" != \"x\$file\"; then
5750 case \"\$destdir\" in
5751 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5752 *) thisdir=\"\$thisdir/\$destdir\" ;;
5756 file=\`\$echo \"X\$file\" | \$Xsed -e 's
%^.
*/%%'\`
5757 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's
/.
*-> //p
'\`
5760 # Try to get the absolute directory name.
5761 absdir=\`cd \"\$thisdir\" && pwd\`
5762 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5765 if test "$fast_install" = yes; then
5767 program=lt-'$outputname'$exeext
5768 progdir=\"\$thisdir/$objdir\"
5770 if test ! -f \"\$progdir/\$program\" || \\
5771 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5772 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5774 file=\"\$\$-\$program\"
5776 if test ! -d \"\$progdir\"; then
5777 $mkdir \"\$progdir\"
5779 $rm \"\$progdir/\$file\"
5784 # relink executable if necessary
5785 if test -n \"\$relink_command\"; then
5786 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5788 $echo \"\$relink_command_output\" >&2
5789 $rm \"\$progdir/\$file\"
5794 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5795 { $rm \"\$progdir/\$program\";
5796 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5797 $rm \"\$progdir/\$file\"
5801 program='$outputname'
5802 progdir=\"\$thisdir/$objdir\"
5808 if test -f \"\$progdir/\$program\"; then"
5810 # Export our shlibpath_var if we have one.
5811 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5813 # Add our own library path to $shlibpath_var
5814 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5816 # Some systems cannot cope with colon-terminated $shlibpath_var
5817 # The second colon is a workaround for a bug in BeOS R4 sed
5818 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's
/::*\$
//'\`
5820 export $shlibpath_var
5824 # fixup the dll searchpath if we need to.
5825 if test -n "$dllsearchpath"; then
5827 # Add the dll search path components to the executable PATH
5828 PATH=$dllsearchpath:\$PATH
5833 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5834 # Run the actual program with our arguments.
5837 # Backslashes separate directories on plain windows
5838 *-*-mingw | *-*-os2*)
5840 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5846 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5851 \$echo \"\$0: cannot exec \$program \$*\"
5855 # The program doesn't exist.
5856 \
$echo \"\
$0: error
: \\\
`\$progdir/\$program' does not exist\" 1>&2
5857 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5858 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5869 # See if we need to build an old-fashioned archive.
5870 for oldlib in $oldlibs; do
5872 if test "$build_libtool_libs" = convenience; then
5873 oldobjs="$libobjs_save"
5874 addlibs="$convenience"
5875 build_libtool_libs=no
5877 if test "$build_libtool_libs" = module; then
5878 oldobjs="$libobjs_save"
5879 build_libtool_libs=no
5881 oldobjs="$old_deplibs $non_pic_objects"
5883 addlibs="$old_convenience"
5886 if test -n "$addlibs"; then
5887 gentop="$output_objdir/${outputname}x"
5888 generated="$generated $gentop"
5890 func_extract_archives $gentop $addlibs
5891 oldobjs="$oldobjs $func_extract_archives_result"
5894 # Do each command in the archive commands.
5895 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5896 cmds=$old_archive_from_new_cmds
5898 # POSIX demands no paths to be encoded in archives. We have
5899 # to avoid creating archives with duplicate basenames if we
5900 # might have to extract them afterwards, e.g., when creating a
5901 # static archive out of a convenience library, or when linking
5902 # the entirety of a libtool archive into another (currently
5903 # not supported by libtool).
5904 if (for obj in $oldobjs
5906 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5907 done | sort | sort -uc >/dev/null 2>&1); then
5910 $echo "copying selected object files to avoid basename conflicts..."
5912 if test -z "$gentop"; then
5913 gentop="$output_objdir/${outputname}x"
5914 generated="$generated $gentop"
5916 $show "${rm}r $gentop"
5917 $run ${rm}r "$gentop"
5918 $show "$mkdir $gentop"
5919 $run $mkdir "$gentop"
5921 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5926 save_oldobjs=$oldobjs
5929 for obj in $save_oldobjs
5931 objbase=`$echo "X$obj" |
$Xsed -e 's%^.*/%%'`
5932 case " $oldobjs " in
5933 " ") oldobjs=$obj ;;
5936 # Make sure we don't pick an alternate name that also
5938 newobj=lt$counter-$objbase
5939 counter=`expr $counter + 1`
5940 case " $oldobjs " in
5941 *[\ /]"$newobj "*) ;;
5942 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5945 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5946 $run ln "$obj" "$gentop/$newobj" ||
5947 $run cp "$obj" "$gentop/$newobj"
5948 oldobjs="$oldobjs $gentop/$newobj"
5950 *) oldobjs="$oldobjs $obj" ;;
5955 eval cmds=\"$old_archive_cmds\"
5957 if len=`expr "X$cmds" : ".*"` &&
5958 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5959 cmds=$old_archive_cmds
5961 # the command line is too long to link in one step, link in parts
5962 $echo "using piecewise archive linking..."
5967 save_oldobjs=$oldobjs
5969 # Is there a better way of finding the last object in the list?
5970 for obj in $save_oldobjs
5974 for obj in $save_oldobjs
5976 oldobjs="$objlist $obj"
5977 objlist="$objlist $obj"
5978 eval test_cmds=\"$old_archive_cmds\"
5979 if len=`expr "X$test_cmds" : ".*" 2>/dev
/null
` &&
5980 test "$len" -le "$max_cmd_len"; then
5983 # the above command should be used before it gets too long
5985 if test "$obj" = "$last_oldobj" ; then
5988 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5989 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5995 if test "X$oldobjs" = "X" ; then
5996 eval cmds=\"\$concat_cmds\"
5998 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
6002 save_ifs="$IFS"; IFS='~'
6003 for cmd in $cmds; do
6007 $run eval "$cmd" || exit $?
6012 if test -n "$generated"; then
6013 $show "${rm}r$generated"
6014 $run ${rm}r$generated
6017 # Now create the libtool archive.
6021 test "$build_old_libs" = yes && old_library="$libname.$libext"
6022 $show "creating $output"
6024 # Preserve any variables that may affect compiler behavior
6025 for var in $variables_saved_for_relink; do
6026 if eval test -z \"\${$var+set}\"; then
6027 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
6028 elif eval var_value=\$$var; test -z "$var_value"; then
6029 relink_command="$var=; export $var; $relink_command"
6031 var_value=`$echo "X$var_value" |
$Xsed -e "$sed_quote_subst"`
6032 relink_command="$var=\"$var_value\"; export $var; $relink_command"
6035 # Quote the link command for shipping.
6036 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
6037 relink_command=`$echo "X$relink_command" |
$SP2NL |
$Xsed -e "$sed_quote_subst" |
$NL2SP`
6038 if test "$hardcode_automatic" = yes ; then
6043 # Only create the output if not a dry run.
6044 if test -z "$run"; then
6045 for installed in no yes; do
6046 if test "$installed" = yes; then
6047 if test -z "$install_libdir"; then
6050 output="$output_objdir/$outputname"i
6051 # Replace all uninstalled libtool libraries with the installed ones
6053 for deplib in $dependency_libs; do
6056 name=`$echo "X$deplib" |
$Xsed -e 's%^.*/%%'`
6057 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
6058 if test -z "$libdir"; then
6059 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
6062 newdependency_libs="$newdependency_libs $libdir/$name"
6064 *) newdependency_libs="$newdependency_libs $deplib" ;;
6067 dependency_libs="$newdependency_libs"
6069 for lib in $dlfiles; do
6070 name=`$echo "X$lib" | $Xsed -e 's
%^.
*/%%'`
6071 eval libdir=`${SED} -n -e 's
/^libdir
=\
(.
*\
)$
/\
1/p
' $lib`
6072 if test -z "$libdir"; then
6073 $echo "$modename: \`$lib' is not a valid libtool archive
" 1>&2
6076 newdlfiles="$newdlfiles $libdir/$name"
6078 dlfiles="$newdlfiles"
6080 for lib in $dlprefiles; do
6081 name=`$echo "X
$lib" | $Xsed -e 's%^.*/%%'`
6082 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
6083 if test -z "$libdir"; then
6084 $echo "$modename: \
`$lib' is not a valid libtool archive" 1>&2
6087 newdlprefiles="$newdlprefiles $libdir/$name"
6089 dlprefiles="$newdlprefiles"
6092 for lib in $dlfiles; do
6094 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
6095 *) abs=`pwd`"/$lib" ;;
6097 newdlfiles="$newdlfiles $abs"
6099 dlfiles="$newdlfiles"
6101 for lib in $dlprefiles; do
6103 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
6104 *) abs=`pwd`"/$lib" ;;
6106 newdlprefiles="$newdlprefiles $abs"
6108 dlprefiles="$newdlprefiles"
6111 # place dlname in correct position for cygwin
6113 case $host,$output,$installed,$module,$dlname in
6114 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
6117 # $outputname - a libtool library file
6118 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
6120 # Please DO NOT delete this file!
6121 # It is necessary for linking the library.
6123 # The name that we can dlopen(3).
6126 # Names of this library.
6127 library_names='$library_names'
6129 # The name of the static archive.
6130 old_library='$old_library'
6132 # Libraries that this one depends upon.
6133 dependency_libs='$dependency_libs'
6135 # Version information for $libname.
6140 # Is this an already installed library?
6141 installed=$installed
6143 # Should we warn about portability when linking against -modules?
6144 shouldnotlink=$module
6146 # Files to dlopen/dlpreopen
6148 dlpreopen='$dlprefiles'
6150 # Directory that this library needs to be installed in:
6151 libdir='$install_libdir'"
6152 if test "$installed" = no && test "$need_relink" = yes; then
6154 relink_command=\"$relink_command\""
6159 # Do a symbolic link so that the libtool archive can be found in
6160 # LD_LIBRARY_PATH before the program is installed.
6161 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
6162 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
6168 # libtool install mode
6170 modename="$modename: install"
6172 # There may be an optional sh(1) argument at the beginning of
6173 # install_prog (especially on Windows NT).
6174 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
6175 # Allow the use of GNU shtool's install command.
6176 $echo "X$nonopt" | grep shtool > /dev/null; then
6177 # Aesthetically quote it.
6178 arg=`$echo "X$nonopt" |
$Xsed -e "$sed_quote_subst"`
6180 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
6184 install_prog="$arg "
6192 # The real first argument should be the name of the installation program.
6193 # Aesthetically quote it.
6194 arg=`$echo "X$arg" |
$Xsed -e "$sed_quote_subst"`
6196 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
6200 install_prog="$install_prog$arg"
6202 # We need to accept at least all the BSD install flags.
6212 if test -n "$dest"; then
6213 files="$files $dest"
6221 case " $install_prog " in
6226 -g | -m | -o) prev=$arg ;;
6234 # If the previous option needed an argument, then skip it.
6235 if test -n "$prev"; then
6244 # Aesthetically quote the argument.
6245 arg=`$echo "X$arg" |
$Xsed -e "$sed_quote_subst"`
6247 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
6251 install_prog="$install_prog $arg"
6254 if test -z "$install_prog"; then
6255 $echo "$modename: you must specify an install program" 1>&2
6260 if test -n "$prev"; then
6261 $echo "$modename: the \`$prev' option requires an argument" 1>&2
6266 if test -z "$files"; then
6267 if test -z "$dest"; then
6268 $echo "$modename: no file or destination specified" 1>&2
6270 $echo "$modename: you must specify a destination" 1>&2
6276 # Strip any trailing slash from the destination.
6277 dest=`$echo "X$dest" | $Xsed -e 's
%/$
%%'`
6279 # Check to see that the destination is a directory.
6280 test -d "$dest" && isdir=yes
6281 if test "$isdir" = yes; then
6285 destdir=`$echo "X$dest" | $Xsed -e 's
%/[^
/]*$
%%'`
6286 test "X$destdir" = "X$dest" && destdir=.
6287 destname=`$echo "X$dest" | $Xsed -e 's
%^.
*/%%'`
6289 # Not a directory, so check to see that there is only one file specified.
6291 if test "$#" -gt 2; then
6292 $echo "$modename: \`$dest' is not a directory
" 1>&2
6298 [\\/]* | [A-Za-z]:[\\/]*) ;;
6300 for file in $files; do
6304 $echo "$modename: \
`$destdir' must be an absolute directory name" 1>&2
6313 # This variable tells wrapper scripts just to set variables rather
6314 # than running their programs.
6315 libtool_install_magic="$magic"
6320 for file in $files; do
6322 # Do each installation.
6325 # Do the static libraries later.
6326 staticlibs="$staticlibs $file"
6330 # Check to see that this really is a libtool archive.
6331 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6333 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
6341 # If there is no directory component, then add one.
6343 */* | *\\*) . $file ;;
6347 # Add the libdir to current_libdirs if it is the destination.
6348 if test "X$destdir" = "X$libdir"; then
6349 case "$current_libdirs " in
6351 *) current_libdirs="$current_libdirs $libdir" ;;
6354 # Note the libdir as a future libdir.
6355 case "$future_libdirs " in
6357 *) future_libdirs="$future_libdirs $libdir" ;;
6361 dir=`$echo "X$file" | $Xsed -e 's
%/[^
/]*$
%%'`/
6362 test "X$dir" = "X$file/" && dir=
6365 if test -n "$relink_command"; then
6366 # Determine the prefix the user has applied to our future dir.
6367 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
6369 # Don't allow the user to place us outside of our expected
6370 # location b/c this prevents finding dependent libraries that
6371 # are installed to the same prefix.
6372 # At present, this check doesn't affect windows .dll's that
6373 # are installed into $libdir/../bin (currently, that works fine)
6374 # but it's something to keep an eye on.
6375 if test "$inst_prefix_dir" = "$destdir"; then
6376 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
6380 if test -n "$inst_prefix_dir"; then
6381 # Stick the inst_prefix_dir data into the link command.
6382 relink_command
=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6384 relink_command
=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6387 $echo "$modename: warning: relinking \`$file'" 1>&2
6388 $show "$relink_command"
6389 if $run eval "$relink_command"; then :
6391 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6396 # See the names of the shared library.
6397 set dummy
$library_names
6398 if test -n "$2"; then
6404 test -n "$relink_command" && srcname
="$realname"T
6406 # Install the shared library and build the symlinks.
6407 $show "$install_prog $dir/$srcname $destdir/$realname"
6408 $run eval "$install_prog $dir/$srcname $destdir/$realname" ||
exit $?
6409 if test -n "$stripme" && test -n "$striplib"; then
6410 $show "$striplib $destdir/$realname"
6411 $run eval "$striplib $destdir/$realname" ||
exit $?
6414 if test "$#" -gt 0; then
6415 # Delete the old symlinks, and create new ones.
6416 # Try `ln -sf' first, because the `ln' binary might depend on
6417 # the symlink we replace! Solaris /bin/ln does not understand -f,
6418 # so we also need to try rm && ln -s.
6421 if test "$linkname" != "$realname"; then
6422 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6423 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6428 # Do each command in the postinstall commands.
6429 lib
="$destdir/$realname"
6430 cmds
=$postinstall_cmds
6431 save_ifs
="$IFS"; IFS
='~'
6432 for cmd
in $cmds; do
6436 $run eval "$cmd" ||
{
6439 # Restore the uninstalled library and exit
6440 if test "$mode" = relink
; then
6441 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6450 # Install the pseudo-library for information purposes.
6451 name
=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6452 instname
="$dir/$name"i
6453 $show "$install_prog $instname $destdir/$name"
6454 $run eval "$install_prog $instname $destdir/$name" ||
exit $?
6456 # Maybe install the static library, too.
6457 test -n "$old_library" && staticlibs
="$staticlibs $dir/$old_library"
6461 # Install (i.e. copy) a libtool object.
6463 # Figure out destination file name, if it wasn't already specified.
6464 if test -n "$destname"; then
6465 destfile
="$destdir/$destname"
6467 destfile
=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6468 destfile
="$destdir/$destfile"
6471 # Deduce the name of the destination old-style object file.
6474 staticdest
=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6477 staticdest
="$destfile"
6481 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6487 # Install the libtool object if requested.
6488 if test -n "$destfile"; then
6489 $show "$install_prog $file $destfile"
6490 $run eval "$install_prog $file $destfile" ||
exit $?
6493 # Install the old object if enabled.
6494 if test "$build_old_libs" = yes; then
6495 # Deduce the name of the old-style object file.
6496 staticobj
=`$echo "X$file" | $Xsed -e "$lo2o"`
6498 $show "$install_prog $staticobj $staticdest"
6499 $run eval "$install_prog \$staticobj \$staticdest" ||
exit $?
6505 # Figure out destination file name, if it wasn't already specified.
6506 if test -n "$destname"; then
6507 destfile
="$destdir/$destname"
6509 destfile
=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6510 destfile
="$destdir/$destfile"
6513 # If the file is missing, and there is a .exe on the end, strip it
6514 # because it is most likely a libtool script we actually want to
6519 if test ! -f "$file"; then
6520 file=`$echo $file|${SED} 's,.exe$,,'`
6526 # Do a test to see if this is really a libtool program.
6529 wrapper
=`$echo $file | ${SED} -e 's,.exe$,,'`
6535 if (${SED} -e '4q' $wrapper |
grep "^# Generated by .*$PACKAGE")>/dev
/null
2>&1; then
6539 # Note that it is not necessary on cygwin/mingw to append a dot to
6540 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6541 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6542 # `FILE.' does not work on cygwin managed mounts.
6544 # If there is no directory component, then add one.
6546 */* |
*\\*) .
${wrapper} ;;
6547 *) . .
/${wrapper} ;;
6550 # Check the variables that should have been set.
6551 if test -z "$notinst_deplibs"; then
6552 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6557 for lib
in $notinst_deplibs; do
6558 # Check to see that each library is installed.
6560 if test -f "$lib"; then
6561 # If there is no directory component, then add one.
6563 */* |
*\\*) .
$lib ;;
6567 libfile
="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6568 if test -n "$libdir" && test ! -f "$libfile"; then
6569 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6575 # Note that it is not necessary on cygwin/mingw to append a dot to
6576 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6577 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6578 # `FILE.' does not work on cygwin managed mounts.
6580 # If there is no directory component, then add one.
6582 */* |
*\\*) .
${wrapper} ;;
6583 *) . .
/${wrapper} ;;
6587 if test "$fast_install" = no
&& test -n "$relink_command"; then
6588 if test "$finalize" = yes && test -z "$run"; then
6589 tmpdir
=`func_mktempdir`
6590 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6591 outputname
="$tmpdir/$file"
6592 # Replace the output file specification.
6593 relink_command
=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6595 $show "$relink_command"
6596 if $run eval "$relink_command"; then :
6598 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6604 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6607 # Install the binary that we compiled earlier.
6608 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6612 # remove .exe since cygwin /usr/bin/install will append another
6614 case $install_prog,$host in
6615 */usr
/bin
/install*,*cygwin
*)
6616 case $file:$destfile in
6621 destfile
=$destfile.exe
6624 destfile
=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6629 $show "$install_prog$stripme $file $destfile"
6630 $run eval "$install_prog\$stripme \$file \$destfile" ||
exit $?
6631 test -n "$outputname" && ${rm}r
"$tmpdir"
6636 for file in $staticlibs; do
6637 name
=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6639 # Set up the ranlib parameters.
6640 oldlib
="$destdir/$name"
6642 $show "$install_prog $file $oldlib"
6643 $run eval "$install_prog \$file \$oldlib" ||
exit $?
6645 if test -n "$stripme" && test -n "$old_striplib"; then
6646 $show "$old_striplib $oldlib"
6647 $run eval "$old_striplib $oldlib" ||
exit $?
6650 # Do each command in the postinstall commands.
6651 cmds
=$old_postinstall_cmds
6652 save_ifs
="$IFS"; IFS
='~'
6653 for cmd
in $cmds; do
6657 $run eval "$cmd" ||
exit $?
6662 if test -n "$future_libdirs"; then
6663 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6666 if test -n "$current_libdirs"; then
6667 # Maybe just do a dry run.
6668 test -n "$run" && current_libdirs
=" -n$current_libdirs"
6669 exec_cmd
='$SHELL $progpath $preserve_args --finish$current_libdirs'
6675 # libtool finish mode
6677 modename
="$modename: finish"
6681 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6684 libdirs
="$libdirs $dir"
6687 for libdir
in $libdirs; do
6688 if test -n "$finish_cmds"; then
6689 # Do each command in the finish commands.
6691 save_ifs
="$IFS"; IFS
='~'
6692 for cmd
in $cmds; do
6696 $run eval "$cmd" || admincmds
="$admincmds
6701 if test -n "$finish_eval"; then
6702 # Do the single finish_eval.
6703 eval cmds
=\"$finish_eval\"
6704 $run eval "$cmds" || admincmds
="$admincmds
6710 # Exit here if they wanted silent mode.
6711 test "$show" = : && exit $EXIT_SUCCESS
6713 $echo "X----------------------------------------------------------------------" |
$Xsed
6714 $echo "Libraries have been installed in:"
6715 for libdir
in $libdirs; do
6719 $echo "If you ever happen to want to link against installed libraries"
6720 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6721 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6722 $echo "flag during linking and do at least one of the following:"
6723 if test -n "$shlibpath_var"; then
6724 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6725 $echo " during execution"
6727 if test -n "$runpath_var"; then
6728 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6729 $echo " during linking"
6731 if test -n "$hardcode_libdir_flag_spec"; then
6733 eval flag
=\"$hardcode_libdir_flag_spec\"
6735 $echo " - use the \`$flag' linker flag"
6737 if test -n "$admincmds"; then
6738 $echo " - have your system administrator run these commands:$admincmds"
6740 if test -f /etc
/ld.so.conf
; then
6741 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6744 $echo "See any operating system documentation about shared libraries for"
6745 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6746 $echo "X----------------------------------------------------------------------" |
$Xsed
6750 # libtool execute mode
6752 modename
="$modename: execute"
6754 # The first argument is the command name.
6756 if test -z "$cmd"; then
6757 $echo "$modename: you must specify a COMMAND" 1>&2
6762 # Handle -dlopen flags immediately.
6763 for file in $execute_dlfiles; do
6764 if test ! -f "$file"; then
6765 $echo "$modename: \`$file' is not a file" 1>&2
6773 # Check to see that this really is a libtool archive.
6774 if (${SED} -e '2q' $file |
grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then :
6776 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6781 # Read the libtool library.
6785 # If there is no directory component, then add one.
6787 */* |
*\\*) .
$file ;;
6791 # Skip this library if it cannot be dlopened.
6792 if test -z "$dlname"; then
6793 # Warn if it was a shared library.
6794 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6798 dir
=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6799 test "X$dir" = "X$file" && dir
=.
6801 if test -f "$dir/$objdir/$dlname"; then
6804 if test ! -f "$dir/$dlname"; then
6805 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6812 # Just add the directory containing the .lo file.
6813 dir
=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6814 test "X$dir" = "X$file" && dir
=.
6818 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6823 # Get the absolute pathname.
6824 absdir
=`cd "$dir" && pwd`
6825 test -n "$absdir" && dir
="$absdir"
6827 # Now add the directory to shlibpath_var.
6828 if eval "test -z \"\$$shlibpath_var\""; then
6829 eval "$shlibpath_var=\"\$dir\""
6831 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6835 # This variable tells wrapper scripts just to set shlibpath_var
6836 # rather than running their programs.
6837 libtool_execute_magic
="$magic"
6839 # Check if any of the arguments is a wrapper script.
6846 # Do a test to see if this is really a libtool program.
6847 if (${SED} -e '4q' $file |
grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then
6848 # If there is no directory component, then add one.
6850 */* |
*\\*) .
$file ;;
6854 # Transform arg to wrapped name.
6855 file="$progdir/$program"
6859 # Quote arguments (to preserve shell metacharacters).
6860 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6861 args
="$args \"$file\""
6864 if test -z "$run"; then
6865 if test -n "$shlibpath_var"; then
6866 # Export the shlibpath_var.
6867 eval "export $shlibpath_var"
6870 # Restore saved environment variables
6871 for lt_var
in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6873 eval "if test \"\${save_$lt_var+set}\" = set; then
6874 $lt_var=\$save_$lt_var; export $lt_var
6878 # Now prepare to actually exec the command.
6879 exec_cmd
="\$cmd$args"
6881 # Display what would be done.
6882 if test -n "$shlibpath_var"; then
6883 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6884 $echo "export $shlibpath_var"
6891 # libtool clean and uninstall mode
6893 modename
="$modename: $mode"
6899 # This variable tells wrapper scripts just to set variables rather
6900 # than running their programs.
6901 libtool_install_magic
="$magic"
6906 -f) rm="$rm $arg"; rmforce
=yes ;;
6907 -*) rm="$rm $arg" ;;
6908 *) files
="$files $arg" ;;
6912 if test -z "$rm"; then
6913 $echo "$modename: you must specify an RM program" 1>&2
6920 origobjdir
="$objdir"
6921 for file in $files; do
6922 dir
=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6923 if test "X$dir" = "X$file"; then
6925 objdir
="$origobjdir"
6927 objdir
="$dir/$origobjdir"
6929 name
=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6930 test "$mode" = uninstall
&& objdir
="$dir"
6932 # Remember objdir for removal later, being careful to avoid duplicates
6933 if test "$mode" = clean
; then
6936 *) rmdirs
="$rmdirs $objdir" ;;
6940 # Don't error if the file doesn't exist and rm -f was used.
6941 if (test -L "$file") >/dev
/null
2>&1 \
6942 ||
(test -h "$file") >/dev
/null
2>&1 \
6943 ||
test -f "$file"; then
6945 elif test -d "$file"; then
6948 elif test "$rmforce" = yes; then
6956 # Possibly a libtool archive, so verify it.
6957 if (${SED} -e '2q' $file |
grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then
6960 # Delete the libtool libraries and symlinks.
6961 for n
in $library_names; do
6962 rmfiles
="$rmfiles $objdir/$n"
6964 test -n "$old_library" && rmfiles
="$rmfiles $objdir/$old_library"
6968 case " $library_names " in
6969 # " " in the beginning catches empty $dlname
6971 *) rmfiles
="$rmfiles $objdir/$dlname" ;;
6973 test -n "$libdir" && rmfiles
="$rmfiles $objdir/$name $objdir/${name}i"
6976 if test -n "$library_names"; then
6977 # Do each command in the postuninstall commands.
6978 cmds
=$postuninstall_cmds
6979 save_ifs
="$IFS"; IFS
='~'
6980 for cmd
in $cmds; do
6985 if test "$?" -ne 0 && test "$rmforce" != yes; then
6992 if test -n "$old_library"; then
6993 # Do each command in the old_postuninstall commands.
6994 cmds
=$old_postuninstall_cmds
6995 save_ifs
="$IFS"; IFS
='~'
6996 for cmd
in $cmds; do
7001 if test "$?" -ne 0 && test "$rmforce" != yes; then
7007 # FIXME: should reinstall the best remaining shared library.
7014 # Possibly a libtool object, so verify it.
7015 if (${SED} -e '2q' $file |
grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then
7020 # Add PIC object to the list of files to remove.
7021 if test -n "$pic_object" \
7022 && test "$pic_object" != none
; then
7023 rmfiles
="$rmfiles $dir/$pic_object"
7026 # Add non-PIC object to the list of files to remove.
7027 if test -n "$non_pic_object" \
7028 && test "$non_pic_object" != none
; then
7029 rmfiles
="$rmfiles $dir/$non_pic_object"
7035 if test "$mode" = clean
; then
7039 file=`$echo $file|${SED} 's,.exe$,,'`
7040 noexename
=`$echo $name|${SED} 's,.exe$,,'`
7041 # $file with .exe has already been added to rmfiles,
7042 # add $file without .exe
7043 rmfiles
="$rmfiles $file"
7046 # Do a test to see if this is a libtool program.
7047 if (${SED} -e '4q' $file |
grep "^# Generated by .*$PACKAGE") >/dev
/null
2>&1; then
7051 # note $name still contains .exe if it was in $file originally
7052 # as does the version of $file that was added into $rmfiles
7053 rmfiles
="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
7054 if test "$fast_install" = yes && test -n "$relink_command"; then
7055 rmfiles
="$rmfiles $objdir/lt-$name"
7057 if test "X$noexename" != "X$name" ; then
7058 rmfiles
="$rmfiles $objdir/lt-${noexename}.c"
7064 $show "$rm $rmfiles"
7065 $run $rm $rmfiles || exit_status
=1
7067 objdir
="$origobjdir"
7069 # Try to remove the ${objdir}s in the directories where we deleted files
7070 for dir
in $rmdirs; do
7071 if test -d "$dir"; then
7073 $run rmdir $dir >/dev
/null
2>&1
7081 $echo "$modename: you must specify a MODE" 1>&2
7082 $echo "$generic_help" 1>&2
7087 if test -z "$exec_cmd"; then
7088 $echo "$modename: invalid operation mode \`$mode'" 1>&2
7089 $echo "$generic_help" 1>&2
7092 fi # test -z "$show_help"
7094 if test -n "$exec_cmd"; then
7099 # We need to display help for each of the modes.
7102 "Usage: $modename [OPTION]... [MODE-ARG]...
7104 Provide generalized library-building support services.
7106 --config show all configuration variables
7107 --debug enable verbose shell tracing
7108 -n, --dry-run display commands without modifying any files
7109 --features display basic configuration information and exit
7110 --finish same as \`--mode=finish'
7111 --help display this help message and exit
7112 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
7113 --quiet same as \`--silent'
7114 --silent don't print informational messages
7115 --tag=TAG use configuration variables from tag TAG
7116 --version print version information
7118 MODE must be one of the following:
7120 clean remove files from the build directory
7121 compile compile a source file into a libtool object
7122 execute automatically set library path, then run a program
7123 finish complete the installation of libtool libraries
7124 install install libraries or executables
7125 link create a library or an executable
7126 uninstall remove libraries from an installed directory
7128 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
7129 a more detailed description of MODE.
7131 Report bugs to <bug-libtool@gnu.org>."
7137 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
7139 Remove files from the build directory.
7141 RM is the name of the program to use to delete files associated with each FILE
7142 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
7145 If FILE is a libtool library, object or program, all the files associated
7146 with it are deleted. Otherwise, only FILE itself is deleted using RM."
7151 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
7153 Compile a source file into a libtool library object.
7155 This mode accepts the following additional options:
7157 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
7158 -prefer-pic try to building PIC objects only
7159 -prefer-non-pic try to building non-PIC objects only
7160 -static always build a \`.o' file suitable for static linking
7162 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
7163 from the given SOURCEFILE.
7165 The output file name is determined by removing the directory component from
7166 SOURCEFILE, then substituting the C source code suffix \`.c' with the
7167 library object suffix, \`.lo'."
7172 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
7174 Automatically set library path, then run a program.
7176 This mode accepts the following additional options:
7178 -dlopen FILE add the directory containing FILE to the library path
7180 This mode sets the library path environment variable according to \`-dlopen'
7183 If any of the ARGS are libtool executable wrappers, then they are translated
7184 into their corresponding uninstalled binary, and any of their required library
7185 directories are added to the library path.
7187 Then, COMMAND is executed, with ARGS as arguments."
7192 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
7194 Complete the installation of libtool libraries.
7196 Each LIBDIR is a directory that contains libtool libraries.
7198 The commands that this mode executes may require superuser privileges. Use
7199 the \`--dry-run' option if you just want to see what would be executed."
7204 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
7206 Install executables or libraries.
7208 INSTALL-COMMAND is the installation command. The first component should be
7209 either the \`install' or \`cp' program.
7211 The rest of the components are interpreted as arguments to that command (only
7212 BSD-compatible install options are recognized)."
7217 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
7219 Link object files or libraries together to form another library, or to
7220 create an executable program.
7222 LINK-COMMAND is a command using the C compiler that you would use to create
7223 a program from several object files.
7225 The following components of LINK-COMMAND are treated specially:
7227 -all-static do not do any dynamic linking at all
7228 -avoid-version do not add a version suffix if possible
7229 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
7230 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
7231 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
7232 -export-symbols SYMFILE
7233 try to export only the symbols listed in SYMFILE
7234 -export-symbols-regex REGEX
7235 try to export only the symbols matching REGEX
7236 -LLIBDIR search LIBDIR for required installed libraries
7237 -lNAME OUTPUT-FILE requires the installed library libNAME
7238 -module build a library that can dlopened
7239 -no-fast-install disable the fast-install mode
7240 -no-install link a not-installable executable
7241 -no-undefined declare that a library does not refer to external symbols
7242 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
7243 -objectlist FILE Use a list of object files found in FILE to specify objects
7244 -precious-files-regex REGEX
7245 don't remove output files matching REGEX
7246 -release RELEASE specify package release information
7247 -rpath LIBDIR the created library will eventually be installed in LIBDIR
7248 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
7249 -static do not do any dynamic linking of uninstalled libtool libraries
7250 -static-libtool-libs
7251 do not do any dynamic linking of libtool libraries
7252 -version-info CURRENT[:REVISION[:AGE]]
7253 specify library version info [each variable defaults to 0]
7255 All other options (arguments beginning with \`-') are ignored.
7257 Every other argument is treated as a filename. Files ending in \`.la' are
7258 treated as uninstalled libtool libraries, other files are standard or library
7261 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
7262 only library objects (\`.lo' files) may be specified, and \`-rpath' is
7263 required, except when creating a convenience library.
7265 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
7266 using \`ar' and \`ranlib', or on Windows using \`lib'.
7268 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
7269 is created, otherwise an executable program is created."
7274 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
7276 Remove libraries from an installation directory.
7278 RM is the name of the program to use to delete files associated with each FILE
7279 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
7282 If FILE is a libtool library, all the files associated with it are deleted.
7283 Otherwise, only FILE itself is deleted using RM."
7287 $echo "$modename: invalid operation mode \`$mode'" 1>&2
7294 $echo "Try \`$modename --help' for more information about other modes."
7298 # The TAGs below are defined such that we never get into a situation
7299 # in which we disable both kinds of libraries. Given conflicting
7300 # choices, we go for a static library, that is the most portable,
7301 # since we can't tell whether shared libraries were disabled because
7302 # the user asked for that or because the platform doesn't support
7303 # them. This is particularly important on AIX, because we don't
7304 # support having both static and shared libraries enabled at the same
7305 # time on that platform, so we default to a shared-only configuration.
7306 # If a disable-shared tag is given, we'll fallback to a static-only
7307 # configuration. But we'll never go from static-only to shared-only.
7309 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
7311 # ### END LIBTOOL TAG CONFIG: disable-shared
7313 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
7315 # ### END LIBTOOL TAG CONFIG: disable-static
7321 # ### BEGIN LIBTOOL TAG CONFIG: CXX
7323 # Libtool was configured on host vicente-P5K-E:
7325 # Shell to use when invoking shell scripts.
7328 # Whether or not to build shared libraries.
7329 build_libtool_libs
=yes
7331 # Whether or not to build static libraries.
7334 # Whether or not to add -lc for building shared libraries.
7335 build_libtool_need_lc
=no
7337 # Whether or not to disallow shared libs when runtime libs are static
7338 allow_libtool_libs_with_static_runtimes
=no
7340 # Whether or not to optimize for fast installation.
7344 host_alias
=mipsel-linux
7345 host=mipsel-unknown-linux-gnu
7349 build_alias
=x86_64-linux-gnu
7350 build
=x86_64-pc-linux-gnu
7353 # An echo program that does not interpret backslashes.
7357 AR
="mipsel-uclibc-ar"
7361 LTCC
="mipsel-uclibc-gcc"
7363 # LTCC compiler flags.
7364 LTCFLAGS
="-Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 -fPIC -ffunction-sections -fdata-sections"
7366 # A language-specific compiler.
7367 CC
="mipsel-linux-g++"
7369 # Is the compiler the GNU C compiler?
7373 EGREP
="/bin/grep -E"
7375 # The linker used to build libraries.
7376 LD
="mipsel-uclibc-ld"
7378 # Whether we need hard or soft links.
7381 # A BSD-compatible nm program.
7382 NM
="mipsel-uclibc-nm"
7384 # A symbol stripping program
7385 STRIP
="mipsel-uclibc-strip -R .note -R .comment"
7387 # Used to examine libraries when file_magic_cmd begins "file"
7390 # Used on cygwin: DLL creation program.
7393 # Used on cygwin: object dumper.
7396 # Used on cygwin: assembler.
7397 AS
="mipsel-uclibc-as"
7399 # The name of the directory that contains temporary libtool files.
7402 # How to create reloadable object files.
7404 reload_cmds
="\$LD\$reload_flag -o \$output\$reload_objs"
7406 # How to pass a linker flag through the compiler.
7409 # Object file suffix (normally "o").
7412 # Old archive suffix (normally "a").
7415 # Shared library suffix (normally ".so").
7418 # Executable file suffix (normally "").
7421 # Additional compiler flags for building library objects.
7422 pic_flag
=" -fPIC -DPIC"
7425 # What is the maximum length of a command?
7426 max_cmd_len
=3458764513820540925
7428 # Does compiler simultaneously support -c and -o options?
7431 # Must we lock files when doing compilation?
7434 # Do we need the lib prefix for modules?
7437 # Do we need a version for libraries?
7440 # Whether dlopen is supported.
7441 dlopen_support
=unknown
7443 # Whether dlopen of programs is supported.
7446 # Whether dlopen of statically linked programs is supported.
7447 dlopen_self_static
=unknown
7449 # Compiler flag to prevent dynamic linking.
7450 link_static_flag
="-static"
7452 # Compiler flag to turn off builtin functions.
7453 no_builtin_flag
=" -fno-builtin"
7455 # Compiler flag to allow reflexive dlopens.
7456 export_dynamic_flag_spec
="\${wl}--export-dynamic"
7458 # Compiler flag to generate shared objects directly from archives.
7459 whole_archive_flag_spec
="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
7461 # Compiler flag to generate thread-safe objects.
7462 thread_safe_flag_spec
=""
7464 # Library versioning type.
7467 # Format of library name prefix.
7468 libname_spec
="lib\$name"
7470 # List of archive names. First name is the real one, the rest are links.
7471 # The last name is the one that the linker finds with -lNAME.
7472 library_names_spec
="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"
7474 # The coded name of the library, if different from the real name.
7475 soname_spec
="\${libname}\${release}\${shared_ext}\$major"
7477 # Commands used to build and install an old-style archive.
7478 RANLIB
="mipsel-uclibc-ranlib"
7479 old_archive_cmds
="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"
7480 old_postinstall_cmds
="chmod 644 \$oldlib~\$RANLIB \$oldlib"
7481 old_postuninstall_cmds
=""
7483 # Create an old-style archive from a shared archive.
7484 old_archive_from_new_cmds
=""
7486 # Create a temporary old-style archive to link instead of a shared archive.
7487 old_archive_from_expsyms_cmds
=""
7489 # Commands used to build and install a shared archive.
7490 archive_cmds
="\$CC -shared -nostdlib \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
7491 archive_expsym_cmds
="\$CC -shared -nostdlib \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib"
7493 postuninstall_cmds
=""
7495 # Commands used to build a loadable module (assumed same as above if empty)
7497 module_expsym_cmds
=""
7499 # Commands to strip libraries.
7500 old_striplib
="mipsel-uclibc-strip -R .note -R .comment --strip-debug"
7501 striplib
="mipsel-uclibc-strip -R .note -R .comment --strip-unneeded"
7503 # Dependencies to place before the objects being linked to create a
7505 predep_objects
="/home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/crti.o /home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/crtbeginS.o"
7507 # Dependencies to place after the objects being linked to create a
7509 postdep_objects
="/home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/crtendS.o /home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/crtn.o"
7511 # Dependencies to place before the objects being linked to create a
7515 # Dependencies to place after the objects being linked to create a
7517 postdeps
="-lstdc++ -lm -lgcc_s -lc -lgcc_s"
7519 # The directories searched by this compiler when creating a shared
7521 compiler_lib_search_dirs
="/home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4 /home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc /home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib"
7523 # The library search path used internally by the compiler when linking
7525 compiler_lib_search_path
="-L/home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4 -L/home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc -L/home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib"
7527 # Method to check whether dependent libraries are shared objects.
7528 deplibs_check_method
="pass_all"
7530 # Command to use when deplibs_check_method == file_magic.
7531 file_magic_cmd
="\$MAGIC_CMD"
7533 # Flag that allows shared libraries with undefined symbols to be built.
7534 allow_undefined_flag
=""
7536 # Flag that forces no undefined symbols.
7537 no_undefined_flag
=""
7539 # Commands used to finish a libtool library installation in a directory.
7540 finish_cmds
="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
7542 # Same as above, but a single script fragment to be evaled but not shown.
7545 # Take the output of nm and produce a listing of raw symbols and C names.
7546 global_symbol_pipe
="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
7548 # Transform the output of nm in a proper C declaration
7549 global_symbol_to_cdecl
="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'"
7551 # Transform the output of nm in a C name address pair
7552 global_symbol_to_c_name_address
="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'"
7554 # This is the shared library runtime path variable.
7555 runpath_var
=LD_RUN_PATH
7557 # This is the shared library path variable.
7558 shlibpath_var
=LD_LIBRARY_PATH
7560 # Is shlibpath searched before the hard-coded library search path?
7561 shlibpath_overrides_runpath
=no
7563 # How to hardcode a shared library path into an executable.
7564 hardcode_action
=immediate
7566 # Whether we should hardcode library paths into libraries.
7567 hardcode_into_libs
=yes
7569 # Flag to hardcode $libdir into a binary during linking.
7570 # This must work even if $libdir does not exist.
7571 hardcode_libdir_flag_spec
="\${wl}--rpath \${wl}\$libdir"
7573 # If ld is used when linking, flag to hardcode $libdir into
7574 # a binary during linking. This must work even if $libdir does
7576 hardcode_libdir_flag_spec_ld
=""
7578 # Whether we need a single -rpath flag with a separated argument.
7579 hardcode_libdir_separator
=""
7581 # Set to yes if using DIR/libNAME during linking hardcodes DIR into the
7585 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7589 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7590 # the resulting binary.
7591 hardcode_shlibpath_var
=unsupported
7593 # Set to yes if building a shared library automatically hardcodes DIR into the library
7594 # and all subsequent libraries and executables linked against it.
7595 hardcode_automatic
=no
7597 # Variables whose values should be saved in libtool wrapper scripts and
7598 # restored at relink time.
7599 variables_saved_for_relink
="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7601 # Whether libtool must link a program against all its dependency libraries.
7604 # Compile-time system search path for libraries
7605 sys_lib_search_path_spec
="/home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/lib/gcc/mipsel-linux-uclibc/4.2.4 /home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/lib/gcc /home/vicente/tomato/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/mipsel-linux-uclibc/lib"
7607 # Run-time system search path for libraries
7608 sys_lib_dlsearch_path_spec
="/lib /usr/lib /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i686-linux-gnu /usr/lib/i686-linux-gnu /usr/local/lib /usr/lib/nvidia-settings /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/nvidia-current /usr/lib32/nvidia-current /lib32 /usr/lib32 "
7610 # Fix the shell variable $srcfile for the compiler.
7613 # Set to yes if exported symbols are required.
7614 always_export_symbols
=no
7616 # The commands to list exported symbols.
7617 export_symbols_cmds
="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
7619 # The commands to extract the exported symbol list from a shared archive.
7620 extract_expsyms_cmds
=""
7622 # Symbols that should not be listed in the preloaded symbols.
7623 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*"
7625 # Symbols that must always be exported.
7628 # ### END LIBTOOL TAG CONFIG: CXX