OLD | NEW |
1 # libtool (GNU libtool) 2.4.2 | 1 # libtool (GNU libtool) 2.4.2 |
2 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 2 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
3 | 3 |
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, | 4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, |
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. | 5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
6 # This is free software; see the source for copying conditions. There is NO | 6 # This is free software; see the source for copying conditions. There is NO |
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
8 | 8 |
9 # GNU Libtool is free software; you can redistribute it and/or modify | 9 # GNU Libtool is free software; you can redistribute it and/or modify |
10 # it under the terms of the GNU General Public License as published by | 10 # it under the terms of the GNU General Public License as published by |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE. | 62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE. |
63 # | 63 # |
64 # When reporting a bug, please describe a test case to reproduce it and | 64 # When reporting a bug, please describe a test case to reproduce it and |
65 # include the following information: | 65 # include the following information: |
66 # | 66 # |
67 # host-triplet: $host | 67 # host-triplet: $host |
68 # shell: $SHELL | 68 # shell: $SHELL |
69 # compiler: $LTCC | 69 # compiler: $LTCC |
70 # compiler flags: $LTCFLAGS | 70 # compiler flags: $LTCFLAGS |
71 # linker: $LD (gnu? $with_gnu_ld) | 71 # linker: $LD (gnu? $with_gnu_ld) |
72 # $progname:» (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1 | 72 # $progname:» (GNU libtool) 2.4.2 |
73 # automake: $automake_version | 73 # automake: $automake_version |
74 # autoconf: $autoconf_version | 74 # autoconf: $autoconf_version |
75 # | 75 # |
76 # Report bugs to <bug-libtool@gnu.org>. | 76 # Report bugs to <bug-libtool@gnu.org>. |
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>. | 77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>. |
78 # General help using GNU software: <http://www.gnu.org/gethelp/>. | 78 # General help using GNU software: <http://www.gnu.org/gethelp/>. |
79 | 79 |
80 PROGRAM=libtool | 80 PROGRAM=libtool |
81 PACKAGE=libtool | 81 PACKAGE=libtool |
82 VERSION="2.4.2 Debian-2.4.2-1ubuntu1" | 82 VERSION=2.4.2 |
83 TIMESTAMP="" | 83 TIMESTAMP="" |
84 package_revision=1.3337 | 84 package_revision=1.3337 |
85 | 85 |
86 # Be Bourne compatible | 86 # Be Bourne compatible |
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
88 emulate sh | 88 emulate sh |
89 NULLCMD=: | 89 NULLCMD=: |
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
91 # is contrary to our usage. Disable this feature. | 91 # is contrary to our usage. Disable this feature. |
92 alias -g '${1+"$@"}'='"$@"' | 92 alias -g '${1+"$@"}'='"$@"' |
(...skipping 6023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6116 | 6116 |
6117 if test "$linkmode,$pass" = "lib,link" || | 6117 if test "$linkmode,$pass" = "lib,link" || |
6118 test "$linkmode,$pass" = "prog,scan"; then | 6118 test "$linkmode,$pass" = "prog,scan"; then |
6119 libs="$deplibs" | 6119 libs="$deplibs" |
6120 deplibs= | 6120 deplibs= |
6121 fi | 6121 fi |
6122 if test "$linkmode" = prog; then | 6122 if test "$linkmode" = prog; then |
6123 case $pass in | 6123 case $pass in |
6124 dlopen) libs="$dlfiles" ;; | 6124 dlopen) libs="$dlfiles" ;; |
6125 dlpreopen) libs="$dlprefiles" ;; | 6125 dlpreopen) libs="$dlprefiles" ;; |
6126 » link) | 6126 » link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; |
6127 » libs="$deplibs %DEPLIBS%" | |
6128 » test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" | |
6129 » ;; | |
6130 esac | 6127 esac |
6131 fi | 6128 fi |
6132 if test "$linkmode,$pass" = "lib,dlpreopen"; then | 6129 if test "$linkmode,$pass" = "lib,dlpreopen"; then |
6133 # Collect and forward deplibs of preopened libtool libs | 6130 # Collect and forward deplibs of preopened libtool libs |
6134 for lib in $dlprefiles; do | 6131 for lib in $dlprefiles; do |
6135 # Ignore non-libtool-libs | 6132 # Ignore non-libtool-libs |
6136 dependency_libs= | 6133 dependency_libs= |
6137 func_resolve_sysroot "$lib" | 6134 func_resolve_sysroot "$lib" |
6138 case $lib in | 6135 case $lib in |
6139 *.la) func_source "$func_resolve_sysroot_result" ;; | 6136 *.la) func_source "$func_resolve_sysroot_result" ;; |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6439 if test "$pass" = conv; then | 6436 if test "$pass" = conv; then |
6440 # Only check for convenience libraries | 6437 # Only check for convenience libraries |
6441 deplibs="$lib $deplibs" | 6438 deplibs="$lib $deplibs" |
6442 if test -z "$libdir"; then | 6439 if test -z "$libdir"; then |
6443 if test -z "$old_library"; then | 6440 if test -z "$old_library"; then |
6444 func_fatal_error "cannot find name of link library for \`$lib'" | 6441 func_fatal_error "cannot find name of link library for \`$lib'" |
6445 fi | 6442 fi |
6446 # It is a libtool convenience library, so add in its objects. | 6443 # It is a libtool convenience library, so add in its objects. |
6447 func_append convenience " $ladir/$objdir/$old_library" | 6444 func_append convenience " $ladir/$objdir/$old_library" |
6448 func_append old_convenience " $ladir/$objdir/$old_library" | 6445 func_append old_convenience " $ladir/$objdir/$old_library" |
6449 tmp_libs= | |
6450 for deplib in $dependency_libs; do | |
6451 deplibs="$deplib $deplibs" | |
6452 if $opt_preserve_dup_deps ; then | |
6453 case "$tmp_libs " in | |
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;; | |
6455 esac | |
6456 fi | |
6457 func_append tmp_libs " $deplib" | |
6458 done | |
6459 elif test "$linkmode" != prog && test "$linkmode" != lib; then | 6446 elif test "$linkmode" != prog && test "$linkmode" != lib; then |
6460 func_fatal_error "\`$lib' is not a convenience library" | 6447 func_fatal_error "\`$lib' is not a convenience library" |
6461 fi | 6448 fi |
| 6449 tmp_libs= |
| 6450 for deplib in $dependency_libs; do |
| 6451 deplibs="$deplib $deplibs" |
| 6452 if $opt_preserve_dup_deps ; then |
| 6453 case "$tmp_libs " in |
| 6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;; |
| 6455 esac |
| 6456 fi |
| 6457 func_append tmp_libs " $deplib" |
| 6458 done |
6462 continue | 6459 continue |
6463 fi # $pass = conv | 6460 fi # $pass = conv |
6464 | 6461 |
6465 | 6462 |
6466 # Get the name of the library we link against. | 6463 # Get the name of the library we link against. |
6467 linklib= | 6464 linklib= |
6468 if test -n "$old_library" && | 6465 if test -n "$old_library" && |
6469 { test "$prefer_static_libs" = yes || | 6466 { test "$prefer_static_libs" = yes || |
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then | 6467 test "$prefer_static_libs,$installed" = "built,no"; }; then |
6471 linklib=$old_library | 6468 linklib=$old_library |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7344 revision="$number_minor" | 7341 revision="$number_minor" |
7345 age="0" | 7342 age="0" |
7346 ;; | 7343 ;; |
7347 irix|nonstopux) | 7344 irix|nonstopux) |
7348 func_arith $number_major + $number_minor | 7345 func_arith $number_major + $number_minor |
7349 current=$func_arith_result | 7346 current=$func_arith_result |
7350 age="$number_minor" | 7347 age="$number_minor" |
7351 revision="$number_minor" | 7348 revision="$number_minor" |
7352 lt_irix_increment=no | 7349 lt_irix_increment=no |
7353 ;; | 7350 ;; |
7354 *) | |
7355 func_fatal_configuration "$modename: unknown library version type \`
$version_type'" | |
7356 ;; | |
7357 esac | 7351 esac |
7358 ;; | 7352 ;; |
7359 no) | 7353 no) |
7360 current="$1" | 7354 current="$1" |
7361 revision="$2" | 7355 revision="$2" |
7362 age="$3" | 7356 age="$3" |
7363 ;; | 7357 ;; |
7364 esac | 7358 esac |
7365 | 7359 |
7366 # Check that each of the things are valid numbers. | 7360 # Check that each of the things are valid numbers. |
(...skipping 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9651 # ### BEGIN LIBTOOL TAG CONFIG: disable-static | 9645 # ### BEGIN LIBTOOL TAG CONFIG: disable-static |
9652 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` | 9646 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` |
9653 # ### END LIBTOOL TAG CONFIG: disable-static | 9647 # ### END LIBTOOL TAG CONFIG: disable-static |
9654 | 9648 |
9655 # Local Variables: | 9649 # Local Variables: |
9656 # mode:shell-script | 9650 # mode:shell-script |
9657 # sh-indentation:2 | 9651 # sh-indentation:2 |
9658 # End: | 9652 # End: |
9659 # vi:sw=2 | 9653 # vi:sw=2 |
9660 | 9654 |
OLD | NEW |