| OLD | NEW |
| 1 # Generated from ltmain.m4sh. | 1 # Generated from ltmain.m4sh. |
| 2 | 2 |
| 3 # ltmain.sh (GNU libtool) 2.2.6b | 3 # ltmain.sh (GNU libtool) 2.2.6 |
| 4 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 4 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 5 | 5 |
| 6 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
2008 Free Software Foundation, Inc. | 6 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
2008 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 |
| 11 # it under the terms of the GNU General Public License as published by | 11 # it under the terms of the GNU General Public License as published by |
| 12 # the Free Software Foundation; either version 2 of the License, or | 12 # the Free Software Foundation; either version 2 of the License, or |
| 13 # (at your option) any later version. | 13 # (at your option) any later version. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 # Try `$progname --help --mode=MODE' for a more detailed description of MODE. | 58 # Try `$progname --help --mode=MODE' for a more detailed description of MODE. |
| 59 # | 59 # |
| 60 # When reporting a bug, please describe a test case to reproduce it and | 60 # When reporting a bug, please describe a test case to reproduce it and |
| 61 # include the following information: | 61 # include the following information: |
| 62 # | 62 # |
| 63 # host-triplet: $host | 63 # host-triplet: $host |
| 64 # shell: $SHELL | 64 # shell: $SHELL |
| 65 # compiler: $LTCC | 65 # compiler: $LTCC |
| 66 # compiler flags: $LTCFLAGS | 66 # compiler flags: $LTCFLAGS |
| 67 # linker: $LD (gnu? $with_gnu_ld) | 67 # linker: $LD (gnu? $with_gnu_ld) |
| 68 # $progname:» » (GNU libtool) 2.2.6b | 68 # $progname:» » (GNU libtool) 2.2.6 |
| 69 # automake: $automake_version | 69 # automake: $automake_version |
| 70 # autoconf: $autoconf_version | 70 # autoconf: $autoconf_version |
| 71 # | 71 # |
| 72 # Report bugs to <bug-libtool@gnu.org>. | 72 # Report bugs to <bug-libtool@gnu.org>. |
| 73 | 73 |
| 74 PROGRAM=ltmain.sh | 74 PROGRAM=ltmain.sh |
| 75 PACKAGE=libtool | 75 PACKAGE=libtool |
| 76 VERSION=2.2.6b | 76 VERSION=2.2.6 |
| 77 TIMESTAMP="" | 77 TIMESTAMP="" |
| 78 package_revision=1.3017 | 78 package_revision=1.3012 |
| 79 | 79 |
| 80 # Be Bourne compatible | 80 # Be Bourne compatible |
| 81 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 81 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 82 emulate sh | 82 emulate sh |
| 83 NULLCMD=: | 83 NULLCMD=: |
| 84 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 84 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 85 # is contrary to our usage. Disable this feature. | 85 # is contrary to our usage. Disable this feature. |
| 86 alias -g '${1+"$@"}'='"$@"' | 86 alias -g '${1+"$@"}'='"$@"' |
| 87 setopt NO_GLOB_SUBST | 87 setopt NO_GLOB_SUBST |
| 88 else | 88 else |
| (...skipping 20 matching lines...) Expand all Loading... |
| 109 done | 109 done |
| 110 | 110 |
| 111 $lt_unset CDPATH | 111 $lt_unset CDPATH |
| 112 | 112 |
| 113 | 113 |
| 114 | 114 |
| 115 | 115 |
| 116 | 116 |
| 117 : ${CP="cp -f"} | 117 : ${CP="cp -f"} |
| 118 : ${ECHO="echo"} | 118 : ${ECHO="echo"} |
| 119 : ${EGREP="/bin/grep -E"} | 119 : ${EGREP="/usr/bin/grep -E"} |
| 120 : ${FGREP="/bin/grep -F"} | 120 : ${FGREP="/usr/bin/grep -F"} |
| 121 : ${GREP="/bin/grep"} | 121 : ${GREP="/usr/bin/grep"} |
| 122 : ${LN_S="ln -s"} | 122 : ${LN_S="ln -s"} |
| 123 : ${MAKE="make"} | 123 : ${MAKE="make"} |
| 124 : ${MKDIR="mkdir"} | 124 : ${MKDIR="mkdir"} |
| 125 : ${MV="mv -f"} | 125 : ${MV="mv -f"} |
| 126 : ${RM="rm -f"} | 126 : ${RM="rm -f"} |
| 127 : ${SED="/bin/sed"} | 127 : ${SED="/opt/local/bin/gsed"} |
| 128 : ${SHELL="${CONFIG_SHELL-/bin/sh}"} | 128 : ${SHELL="${CONFIG_SHELL-/bin/sh}"} |
| 129 : ${Xsed="$SED -e 1s/^X//"} | 129 : ${Xsed="$SED -e 1s/^X//"} |
| 130 | 130 |
| 131 # Global variables: | 131 # Global variables: |
| 132 EXIT_SUCCESS=0 | 132 EXIT_SUCCESS=0 |
| 133 EXIT_FAILURE=1 | 133 EXIT_FAILURE=1 |
| 134 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. | 134 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. |
| 135 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. | 135 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. |
| 136 | 136 |
| 137 exit_status=$EXIT_SUCCESS | 137 exit_status=$EXIT_SUCCESS |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 elif test "X$1" = X--fallback-echo; then | 563 elif test "X$1" = X--fallback-echo; then |
| 564 # Avoid inline document here, it may be left over | 564 # Avoid inline document here, it may be left over |
| 565 : | 565 : |
| 566 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then | 566 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then |
| 567 # Yippee, $ECHO works! | 567 # Yippee, $ECHO works! |
| 568 : | 568 : |
| 569 else | 569 else |
| 570 # Restart under the correct shell, and then maybe $ECHO will work. | 570 # Restart under the correct shell, and then maybe $ECHO will work. |
| 571 exec $SHELL "$progpath" --no-reexec ${1+"$@"} | 571 exec $SHELL "$progpath" --no-reexec ${1+"$@"} |
| 572 fi | 572 fi |
| 573 # Same for EGREP, and just to be sure, do LTCC as well |
| 574 if test "x$EGREP" = x ; then |
| 575 EGREP=egrep |
| 576 fi |
| 577 if test "x$LTCC" = x ; then |
| 578 LTCC=${CC-gcc} |
| 579 fi |
| 573 | 580 |
| 574 if test "X$1" = X--fallback-echo; then | 581 if test "X$1" = X--fallback-echo; then |
| 575 # used as fallback echo | 582 # used as fallback echo |
| 576 shift | 583 shift |
| 577 cat <<EOF | 584 cat <<EOF |
| 578 $* | 585 $* |
| 579 EOF | 586 EOF |
| 580 exit $EXIT_SUCCESS | 587 exit $EXIT_SUCCESS |
| 581 fi | 588 fi |
| 582 | 589 |
| (...skipping 7469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8052 # Replace all uninstalled libtool libraries with the installed ones | 8059 # Replace all uninstalled libtool libraries with the installed ones |
| 8053 newdependency_libs= | 8060 newdependency_libs= |
| 8054 for deplib in $dependency_libs; do | 8061 for deplib in $dependency_libs; do |
| 8055 case $deplib in | 8062 case $deplib in |
| 8056 *.la) | 8063 *.la) |
| 8057 func_basename "$deplib" | 8064 func_basename "$deplib" |
| 8058 name="$func_basename_result" | 8065 name="$func_basename_result" |
| 8059 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | 8066 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` |
| 8060 test -z "$libdir" && \ | 8067 test -z "$libdir" && \ |
| 8061 func_fatal_error "\`$deplib' is not a valid libtool archive" | 8068 func_fatal_error "\`$deplib' is not a valid libtool archive" |
| 8062 » » newdependency_libs="$newdependency_libs $libdir/$name" | 8069 » » if test "x$EGREP" = x ; then |
| 8070 » » » EGREP=egrep |
| 8071 » » fi |
| 8072 » » # We do not want portage's install root ($D) present. Check onl
y for |
| 8073 » » # this if the .la is being installed. |
| 8074 » » if test "$installed" = yes && test "$D"; then |
| 8075 » » eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/
:g" -e 's:/\+:/:g'` |
| 8076 » » else |
| 8077 » » mynewdependency_lib="$libdir/$name" |
| 8078 » » fi |
| 8079 » » # Do not add duplicates |
| 8080 » » if test "$mynewdependency_lib"; then |
| 8081 » » my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$m
ynewdependency_lib"` |
| 8082 » » if test -z "$my_little_ninja_foo_1"; then |
| 8083 » » newdependency_libs="$newdependency_libs $mynewdependency_lib
" |
| 8084 » » fi |
| 8085 » » fi |
| 8063 ;; | 8086 ;; |
| 8064 » *) newdependency_libs="$newdependency_libs $deplib" ;; | 8087 » » *) |
| 8088 » » if test "$installed" = yes; then |
| 8089 » » # Rather use S=WORKDIR if our version of portage supports it. |
| 8090 » » # This is because some ebuild (gcc) do not use $S as buildroot
. |
| 8091 » » if test "$PWORKDIR"; then |
| 8092 » » S="$PWORKDIR" |
| 8093 » » fi |
| 8094 » » # We do not want portage's build root ($S) present. |
| 8095 » » my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"` |
| 8096 » » # We do not want portage's install root ($D) present. |
| 8097 » » my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"` |
| 8098 » » if test -n "$my_little_ninja_foo_2" && test "$S"; then |
| 8099 » » mynewdependency_lib="" |
| 8100 » » elif test -n "$my_little_ninja_foo_3" && test "$D"; then |
| 8101 » » eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g"
-e 's:/\+:/:g'` |
| 8102 » » else |
| 8103 » » mynewdependency_lib="$deplib" |
| 8104 » » fi |
| 8105 » » else |
| 8106 » » mynewdependency_lib="$deplib" |
| 8107 » » fi |
| 8108 » » # Do not add duplicates |
| 8109 » » if test "$mynewdependency_lib"; then |
| 8110 » » my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$m
ynewdependency_lib"` |
| 8111 » » if test -z "$my_little_ninja_foo_4"; then |
| 8112 » » » newdependency_libs="$newdependency_libs $mynewdependency
_lib" |
| 8113 » » fi |
| 8114 » » fi |
| 8115 » » ;; |
| 8065 esac | 8116 esac |
| 8066 done | 8117 done |
| 8067 dependency_libs="$newdependency_libs" | 8118 dependency_libs="$newdependency_libs" |
| 8068 newdlfiles= | 8119 newdlfiles= |
| 8069 | 8120 |
| 8070 for lib in $dlfiles; do | 8121 for lib in $dlfiles; do |
| 8071 case $lib in | 8122 case $lib in |
| 8072 *.la) | 8123 *.la) |
| 8073 func_basename "$lib" | 8124 func_basename "$lib" |
| 8074 name="$func_basename_result" | 8125 name="$func_basename_result" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8118 newdlprefiles="$newdlprefiles $abs" | 8169 newdlprefiles="$newdlprefiles $abs" |
| 8119 done | 8170 done |
| 8120 dlprefiles="$newdlprefiles" | 8171 dlprefiles="$newdlprefiles" |
| 8121 fi | 8172 fi |
| 8122 $RM $output | 8173 $RM $output |
| 8123 # place dlname in correct position for cygwin | 8174 # place dlname in correct position for cygwin |
| 8124 tdlname=$dlname | 8175 tdlname=$dlname |
| 8125 case $host,$output,$installed,$module,$dlname in | 8176 case $host,$output,$installed,$module,$dlname in |
| 8126 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*la
i,yes,no,*.dll) tdlname=../bin/$dlname ;; | 8177 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*la
i,yes,no,*.dll) tdlname=../bin/$dlname ;; |
| 8127 esac | 8178 esac |
| 8179 # Do not add duplicates |
| 8180 if test "$installed" = yes && test "$D"; then |
| 8181 install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:
/:g'` |
| 8182 fi |
| 8128 $ECHO > $output "\ | 8183 $ECHO > $output "\ |
| 8129 # $outputname - a libtool library file | 8184 # $outputname - a libtool library file |
| 8130 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION | 8185 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION |
| 8131 # | 8186 # |
| 8132 # Please DO NOT delete this file! | 8187 # Please DO NOT delete this file! |
| 8133 # It is necessary for linking the library. | 8188 # It is necessary for linking the library. |
| 8134 | 8189 |
| 8135 # The name that we can dlopen(3). | 8190 # The name that we can dlopen(3). |
| 8136 dlname='$tdlname' | 8191 dlname='$tdlname' |
| 8137 | 8192 |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8397 # ### BEGIN LIBTOOL TAG CONFIG: disable-static | 8452 # ### BEGIN LIBTOOL TAG CONFIG: disable-static |
| 8398 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` | 8453 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` |
| 8399 # ### END LIBTOOL TAG CONFIG: disable-static | 8454 # ### END LIBTOOL TAG CONFIG: disable-static |
| 8400 | 8455 |
| 8401 # Local Variables: | 8456 # Local Variables: |
| 8402 # mode:shell-script | 8457 # mode:shell-script |
| 8403 # sh-indentation:2 | 8458 # sh-indentation:2 |
| 8404 # End: | 8459 # End: |
| 8405 # vi:sw=2 | 8460 # vi:sw=2 |
| 8406 | 8461 |
| OLD | NEW |