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