~ubuntu-branches/ubuntu/trusty/libzeitgeist/trusty-proposed

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Package Import Robot
  • Author(s): Siegfried-Angel Gevatter Pujals
  • Date: 2012-03-20 18:14:09 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120320181409-oi0e7v42di7j2d5n
Tags: 0.3.16-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
# libtool (GNU libtool) 2.4.2
 
2
# libtool (GNU libtool) 2.4
3
3
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4
4
 
5
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 Free Software Foundation, Inc.
7
7
# This is free software; see the source for copying conditions.  There is NO
8
8
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9
9
 
41
41
#       --quiet, --silent    don't print informational messages
42
42
#       --no-quiet, --no-silent
43
43
#                            print informational messages (default)
44
 
#       --no-warn            don't display warning messages
45
44
#       --tag=TAG            use configuration variables from tag TAG
46
45
#   -v, --verbose            print more informational messages than default
47
46
#       --no-verbose         don't print the extra informational messages
70
69
#         compiler:             $LTCC
71
70
#         compiler flags:               $LTCFLAGS
72
71
#         linker:               $LD (gnu? $with_gnu_ld)
73
 
#         $progname:    (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
 
72
#         $progname:    (GNU libtool) 2.4 Debian-2.4-2ubuntu1
74
73
#         automake:     $automake_version
75
74
#         autoconf:     $autoconf_version
76
75
#
80
79
 
81
80
PROGRAM=libtool
82
81
PACKAGE=libtool
83
 
VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
 
82
VERSION="2.4 Debian-2.4-2ubuntu1"
84
83
TIMESTAMP=""
85
 
package_revision=1.3337
 
84
package_revision=1.3293
86
85
 
87
86
# Be Bourne compatible
88
87
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
137
136
 
138
137
: ${CP="cp -f"}
139
138
test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
 
139
: ${EGREP="/bin/grep -E"}
 
140
: ${FGREP="/bin/grep -F"}
 
141
: ${GREP="/bin/grep"}
 
142
: ${LN_S="ln -s"}
140
143
: ${MAKE="make"}
141
144
: ${MKDIR="mkdir"}
142
145
: ${MV="mv -f"}
143
146
: ${RM="rm -f"}
 
147
: ${SED="/bin/sed"}
144
148
: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
145
149
: ${Xsed="$SED -e 1s/^X//"}
146
150
 
383
387
     ;;
384
388
  *)
385
389
     save_IFS="$IFS"
386
 
     IFS=${PATH_SEPARATOR-:}
 
390
     IFS=:
387
391
     for progdir in $PATH; do
388
392
       IFS="$save_IFS"
389
393
       test -x "$progdir/$progname" && break
767
771
        s*\$LTCFLAGS*'"$LTCFLAGS"'*
768
772
        s*\$LD*'"$LD"'*
769
773
        s/\$with_gnu_ld/'"$with_gnu_ld"'/
770
 
        s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
771
 
        s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
 
774
        s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
 
775
        s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
772
776
        p
773
777
        d
774
778
     }
1048
1052
opt_help=false
1049
1053
opt_help_all=false
1050
1054
opt_silent=:
1051
 
opt_warning=:
1052
1055
opt_verbose=:
1053
1056
opt_silent=false
1054
1057
opt_verbose=false
1117
1120
                        opt_silent=false
1118
1121
func_append preserve_args " $opt"
1119
1122
                        ;;
1120
 
      --no-warning|--no-warn)
1121
 
                        opt_warning=false
1122
 
func_append preserve_args " $opt"
1123
 
                        ;;
1124
1123
      --no-verbose)
1125
1124
                        opt_verbose=false
1126
1125
func_append preserve_args " $opt"
2060
2059
    *.[cCFSifmso] | \
2061
2060
    *.ada | *.adb | *.ads | *.asm | \
2062
2061
    *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
2063
 
    *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
 
2062
    *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
2064
2063
      func_xform "$libobj"
2065
2064
      libobj=$func_xform_result
2066
2065
      ;;
3202
3201
 
3203
3202
      # Set up the ranlib parameters.
3204
3203
      oldlib="$destdir/$name"
3205
 
      func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3206
 
      tool_oldlib=$func_to_tool_file_result
3207
3204
 
3208
3205
      func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
3209
3206
 
3210
3207
      if test -n "$stripme" && test -n "$old_striplib"; then
3211
 
        func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
 
3208
        func_show_eval "$old_striplib $oldlib" 'exit $?'
3212
3209
      fi
3213
3210
 
3214
3211
      # Do each command in the postinstall commands.
3473
3470
          # linked before any other PIC object.  But we must not use
3474
3471
          # pic_flag when linking with -static.  The problem exists in
3475
3472
          # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
3476
 
          *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
 
3473
          *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3477
3474
            pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3478
3475
          *-*-hpux*)
3479
3476
            pic_flag_for_symtable=" $pic_flag"  ;;
3985
3982
# launches target application with the remaining arguments.
3986
3983
func_exec_program ()
3987
3984
{
3988
 
  case \" \$* \" in
3989
 
  *\\ --lt-*)
3990
 
    for lt_wr_arg
3991
 
    do
3992
 
      case \$lt_wr_arg in
3993
 
      --lt-*) ;;
3994
 
      *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3995
 
      esac
3996
 
      shift
3997
 
    done ;;
3998
 
  esac
 
3985
  for lt_wr_arg
 
3986
  do
 
3987
    case \$lt_wr_arg in
 
3988
    --lt-*) ;;
 
3989
    *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
 
3990
    esac
 
3991
    shift
 
3992
  done
3999
3993
  func_exec_program_core \${1+\"\$@\"}
4000
3994
}
4001
3995
 
5063
5057
{
5064
5058
EOF
5065
5059
            func_emit_wrapper yes |
5066
 
              $SED -n -e '
5067
 
s/^\(.\{79\}\)\(..*\)/\1\
5068
 
\2/
5069
 
h
5070
 
s/\([\\"]\)/\\\1/g
5071
 
s/$/\\n/
5072
 
s/\([^\n]*\).*/  fputs ("\1", f);/p
5073
 
g
5074
 
D'
 
5060
              $SED -e 's/\([\\"]\)/\\\1/g' \
 
5061
                   -e 's/^/  fputs ("/' -e 's/$/\\n", f);/'
 
5062
 
5075
5063
            cat <<"EOF"
5076
5064
}
5077
5065
EOF
5655
5643
        continue
5656
5644
        ;;
5657
5645
 
5658
 
      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5659
 
      |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
 
5646
      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
5660
5647
        func_append compiler_flags " $arg"
5661
5648
        func_append compile_command " $arg"
5662
5649
        func_append finalize_command " $arg"
6163
6150
        lib=
6164
6151
        found=no
6165
6152
        case $deplib in
6166
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6167
 
        |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
 
6153
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6168
6154
          if test "$linkmode,$pass" = "prog,link"; then
6169
6155
            compile_deplibs="$deplib $compile_deplibs"
6170
6156
            finalize_deplibs="$deplib $finalize_deplibs"
6848
6834
                 test "$hardcode_direct_absolute" = no; then
6849
6835
                add="$dir/$linklib"
6850
6836
              elif test "$hardcode_minus_L" = yes; then
6851
 
                add_dir="-L$absdir"
 
6837
                add_dir="-L$dir"
6852
6838
                # Try looking first in the location we're being installed to.
6853
6839
                if test -n "$inst_prefix_dir"; then
6854
6840
                  case $libdir in
7333
7319
          # which has an extra 1 added just for fun
7334
7320
          #
7335
7321
          case $version_type in
7336
 
          # correct linux to gnu/linux during the next big refactor
7337
7322
          darwin|linux|osf|windows|none)
7338
7323
            func_arith $number_major + $number_minor
7339
7324
            current=$func_arith_result
7453
7438
          versuffix="$major.$revision"
7454
7439
          ;;
7455
7440
 
7456
 
        linux) # correct to gnu/linux during the next big refactor
 
7441
        linux)
7457
7442
          func_arith $current - $age
7458
7443
          major=.$func_arith_result
7459
7444
          versuffix="$major.$age.$revision"
8041
8026
 
8042
8027
      # Test again, we may have decided not to build it any more
8043
8028
      if test "$build_libtool_libs" = yes; then
8044
 
        # Remove ${wl} instances when linking with ld.
8045
 
        # FIXME: should test the right _cmds variable.
8046
 
        case $archive_cmds in
8047
 
          *\$LD\ *) wl= ;;
8048
 
        esac
8049
8029
        if test "$hardcode_into_libs" = yes; then
8050
8030
          # Hardcode the library paths
8051
8031
          hardcode_libdirs=
8076
8056
            elif test -n "$runpath_var"; then
8077
8057
              case "$perm_rpath " in
8078
8058
              *" $libdir "*) ;;
8079
 
              *) func_append perm_rpath " $libdir" ;;
 
8059
              *) func_apped perm_rpath " $libdir" ;;
8080
8060
              esac
8081
8061
            fi
8082
8062
          done
8084
8064
          if test -n "$hardcode_libdir_separator" &&
8085
8065
             test -n "$hardcode_libdirs"; then
8086
8066
            libdir="$hardcode_libdirs"
8087
 
            eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
 
8067
            if test -n "$hardcode_libdir_flag_spec_ld"; then
 
8068
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
 
8069
            else
 
8070
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
 
8071
            fi
8088
8072
          fi
8089
8073
          if test -n "$runpath_var" && test -n "$perm_rpath"; then
8090
8074
            # We should set the runpath_var.
9174
9158
            esac
9175
9159
          done
9176
9160
        fi
9177
 
        func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9178
 
        tool_oldlib=$func_to_tool_file_result
9179
9161
        eval cmds=\"$old_archive_cmds\"
9180
9162
 
9181
9163
        func_len " $cmds"
9285
9267
              *.la)
9286
9268
                func_basename "$deplib"
9287
9269
                name="$func_basename_result"
9288
 
                func_resolve_sysroot "$deplib"
9289
 
                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
 
9270
                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9290
9271
                test -z "$libdir" && \
9291
9272
                  func_fatal_error "\`$deplib' is not a valid libtool archive"
9292
9273
                func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"