~ubuntu-branches/ubuntu/lucid/libxpm/lucid

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau, Julien Cristau, Brice Goglin
  • Date: 2009-06-10 14:59:30 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090610145930-9vf0rr632ttwki2f
[ Julien Cristau ]
* Drop -1 debian revisions from build-deps.
* Bump Standards-Version to 3.7.3.
* Drop the XS- prefix from Vcs-* control fields.
* libxpm4{,-dbg} don't need to depend on x11-common.
* Add xpm.PS.gz to the -dev package (closes: #525551).
* Don't handle nostrip in DEB_BUILD_OPTIONS explicitly, dh_strip does the
  right thing.
* Use filter instead of findstring to parse DEB_BUILD_OPTIONS in
  debian/rules.
* Add README.source, bump Standards-Version to 3.8.1.
* Run autoreconf at build time.
* Allow parallel builds.
* Move -dbg package to new debug section.
* Don't pass -l and -L options to dh_shlibdeps, it seems to be useless
  nowadays.

[ Brice Goglin ]
* Add a link to www.X.org and a reference to the upstream module
  in the long description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# ltmain.sh - Provide generalized library-building support services.
2
2
# NOTE: Changing this file will not affect anything until you rerun configure.
3
3
#
4
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5
 
# 2007  Free Software Foundation, Inc.
 
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
 
5
# Free Software Foundation, Inc.
6
6
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
7
#
8
8
# This program is free software; you can redistribute it and/or modify
43
43
 
44
44
PROGRAM=ltmain.sh
45
45
PACKAGE=libtool
46
 
VERSION="1.5.24 Debian 1.5.24-1"
47
 
TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
 
46
VERSION=1.5.22
 
47
TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
48
48
 
49
 
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
50
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51
 
  emulate sh
52
 
  NULLCMD=:
53
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
54
 
  # is contrary to our usage.  Disable this feature.
55
 
  alias -g '${1+"$@"}'='"$@"'
 
49
# See if we are running on zsh, and set the options which allow our
 
50
# commands through without removal of \ escapes.
 
51
if test -n "${ZSH_VERSION+set}" ; then
56
52
  setopt NO_GLOB_SUBST
57
 
else
58
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
59
53
fi
60
 
BIN_SH=xpg4; export BIN_SH # for Tru64
61
 
DUALCASE=1; export DUALCASE # for MKS sh
62
54
 
63
55
# Check that we have a working $echo.
64
56
if test "X$1" = X--no-reexec; then
113
105
# These must not be set unconditionally because not all systems understand
114
106
# e.g. LANG=C (notably SCO).
115
107
# We save the old values to restore during execute mode.
116
 
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
117
 
do
118
 
  eval "if test \"\${$lt_var+set}\" = set; then
119
 
          save_$lt_var=\$$lt_var
120
 
          $lt_var=C
121
 
          export $lt_var
122
 
        fi"
123
 
done
 
108
if test "${LC_ALL+set}" = set; then
 
109
  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
 
110
fi
 
111
if test "${LANG+set}" = set; then
 
112
  save_LANG="$LANG"; LANG=C; export LANG
 
113
fi
124
114
 
125
115
# Make sure IFS has a sensible default
126
116
lt_nl='
146
136
preserve_args=
147
137
lo2o="s/\\.lo\$/.${objext}/"
148
138
o2lo="s/\\.${objext}\$/.lo/"
149
 
extracted_archives=
150
 
extracted_serial=0
151
139
 
152
140
#####################################
153
141
# Shell function definitions:
208
196
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
209
197
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
210
198
      win32_nmres=`eval $NM -f posix -A $1 | \
211
 
        $SED -n -e '1,100{
212
 
                / I /{
213
 
                        s,.*,import,
214
 
                        p
215
 
                        q
216
 
                        }
217
 
                }'`
 
199
        $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
218
200
      case $win32_nmres in
219
201
      import*)  win32_libid_type="x86 archive import";;
220
202
      *)        win32_libid_type="x86 archive static";;
345
327
        *) my_xabs=`pwd`"/$my_xlib" ;;
346
328
      esac
347
329
      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
348
 
      my_xlib_u=$my_xlib
349
 
      while :; do
350
 
        case " $extracted_archives " in
351
 
        *" $my_xlib_u "*)
352
 
          extracted_serial=`expr $extracted_serial + 1`
353
 
          my_xlib_u=lt$extracted_serial-$my_xlib ;;
354
 
        *) break ;;
355
 
        esac
356
 
      done
357
 
      extracted_archives="$extracted_archives $my_xlib_u"
358
 
      my_xdir="$my_gentop/$my_xlib_u"
 
330
      my_xdir="$my_gentop/$my_xlib"
359
331
 
360
332
      $show "${rm}r $my_xdir"
361
333
      $run ${rm}r "$my_xdir"
482
454
    ;;
483
455
 
484
456
  --version)
485
 
    echo "\
486
 
$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
487
 
 
488
 
Copyright (C) 2007  Free Software Foundation, Inc.
489
 
This is free software; see the source for copying conditions.  There is NO
490
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
457
    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
 
458
    $echo
 
459
    $echo "Copyright (C) 2005  Free Software Foundation, Inc."
 
460
    $echo "This is free software; see the source for copying conditions.  There is NO"
 
461
    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
491
462
    exit $?
492
463
    ;;
493
464
 
784
755
    *.class) xform=class ;;
785
756
    *.cpp) xform=cpp ;;
786
757
    *.cxx) xform=cxx ;;
787
 
    *.[fF][09]?) xform=[fF][09]. ;;
 
758
    *.f90) xform=f90 ;;
788
759
    *.for) xform=for ;;
789
760
    *.java) xform=java ;;
790
 
    *.obj) xform=obj ;;
791
761
    esac
792
762
 
793
763
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
1168
1138
    for arg
1169
1139
    do
1170
1140
      case $arg in
1171
 
      -all-static | -static | -static-libtool-libs)
1172
 
        case $arg in
1173
 
        -all-static)
 
1141
      -all-static | -static)
 
1142
        if test "X$arg" = "X-all-static"; then
1174
1143
          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1175
1144
            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1176
1145
          fi
1178
1147
            dlopen_self=$dlopen_self_static
1179
1148
          fi
1180
1149
          prefer_static_libs=yes
1181
 
          ;;
1182
 
        -static)
 
1150
        else
1183
1151
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1184
1152
            dlopen_self=$dlopen_self_static
1185
1153
          fi
1186
1154
          prefer_static_libs=built
1187
 
          ;;
1188
 
        -static-libtool-libs)
1189
 
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1190
 
            dlopen_self=$dlopen_self_static
1191
 
          fi
1192
 
          prefer_static_libs=yes
1193
 
          ;;
1194
 
        esac
 
1155
        fi
1195
1156
        build_libtool_libs=no
1196
1157
        build_old_libs=yes
1197
1158
        break
1639
1600
        continue
1640
1601
        ;;
1641
1602
 
1642
 
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
 
1603
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1643
1604
        compiler_flags="$compiler_flags $arg"
1644
1605
        compile_command="$compile_command $arg"
1645
1606
        finalize_command="$finalize_command $arg"
1659
1620
      # -m* pass through architecture-specific compiler args for GCC
1660
1621
      # -m*, -t[45]*, -txscale* pass through architecture-specific
1661
1622
      # compiler args for GCC
1662
 
      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1663
 
      # -F/path gives path to uninstalled frameworks, gcc on darwin
 
1623
      # -pg pass through profiling flag for GCC
1664
1624
      # @file GCC response files
1665
 
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1666
 
      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
 
1625
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
 
1626
      -t[45]*|-txscale*|@*)
1667
1627
 
1668
1628
        # Unknown arguments in both finalize_command and compile_command need
1669
1629
        # to be aesthetically quoted because they are evaled later.
1691
1651
 
1692
1652
      -no-install)
1693
1653
        case $host in
1694
 
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
 
1654
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1695
1655
          # The PATH hackery in wrapper scripts is required on Windows
1696
 
          # and Darwin in order for the loader to find any dlls it needs.
 
1656
          # in order for the loader to find any dlls it needs.
1697
1657
          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1698
1658
          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1699
1659
          fast_install=no
1752
1712
        continue
1753
1713
        ;;
1754
1714
 
1755
 
      -static | -static-libtool-libs)
 
1715
      -static)
1756
1716
        # The effects of -static are defined in a previous loop.
1757
1717
        # We used to do the same as -all-static on platforms that
1758
1718
        # didn't have a PIC flag, but the assumption that the effects
2122
2082
        case $pass in
2123
2083
        dlopen) libs="$dlfiles" ;;
2124
2084
        dlpreopen) libs="$dlprefiles" ;;
2125
 
        link)
2126
 
          libs="$deplibs %DEPLIBS%"
2127
 
          test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
2128
 
          ;;
 
2085
        link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
2129
2086
        esac
2130
2087
      fi
2131
2088
      if test "$pass" = dlopen; then
2137
2094
        lib=
2138
2095
        found=no
2139
2096
        case $deplib in
2140
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
 
2097
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
2141
2098
          if test "$linkmode,$pass" = "prog,link"; then
2142
2099
            compile_deplibs="$deplib $compile_deplibs"
2143
2100
            finalize_deplibs="$deplib $finalize_deplibs"
2533
2490
 
2534
2491
        if test "$linkmode,$pass" = "prog,link"; then
2535
2492
          if test -n "$library_names" &&
2536
 
             { { test "$prefer_static_libs" = no ||
2537
 
                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2538
 
               test -z "$old_library"; }; then
 
2493
             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2539
2494
            # We need to hardcode the library path
2540
2495
            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2541
2496
              # Make sure the rpath contains only unique directories.
3231
3186
          # which has an extra 1 added just for fun
3232
3187
          #
3233
3188
          case $version_type in
3234
 
          darwin|linux|osf|windows|none)
 
3189
          darwin|linux|osf|windows)
3235
3190
            current=`expr $number_major + $number_minor`
3236
3191
            age="$number_minor"
3237
3192
            revision="$number_revision"
3242
3197
            age="0"
3243
3198
            ;;
3244
3199
          irix|nonstopux)
3245
 
            current=`expr $number_major + $number_minor`
 
3200
            current=`expr $number_major + $number_minor - 1`
3246
3201
            age="$number_minor"
3247
3202
            revision="$number_minor"
3248
 
            lt_irix_increment=no
3249
 
            ;;
3250
 
          *)
3251
 
            $echo "$modename: unknown library version type \`$version_type'" 1>&2
3252
 
            $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
3253
 
            exit $EXIT_FAILURE
3254
3203
            ;;
3255
3204
          esac
3256
3205
          ;;
3309
3258
          versuffix="$major.$age.$revision"
3310
3259
          # Darwin ld doesn't like 0 for these options...
3311
3260
          minor_current=`expr $current + 1`
3312
 
          xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3313
 
          verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
 
3261
          verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3314
3262
          ;;
3315
3263
 
3316
3264
        freebsd-aout)
3324
3272
          ;;
3325
3273
 
3326
3274
        irix | nonstopux)
3327
 
          if test "X$lt_irix_increment" = "Xno"; then
3328
 
            major=`expr $current - $age`
3329
 
          else
3330
 
            major=`expr $current - $age + 1`
3331
 
          fi
 
3275
          major=`expr $current - $age + 1`
 
3276
 
3332
3277
          case $version_type in
3333
3278
            nonstopux) verstring_prefix=nonstopux ;;
3334
3279
            *)         verstring_prefix=sgi ;;
3465
3410
      fi
3466
3411
 
3467
3412
      # Eliminate all temporary directories.
3468
 
      #for path in $notinst_path; do
3469
 
      # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3470
 
      # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3471
 
      # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3472
 
      #done
 
3413
      for path in $notinst_path; do
 
3414
        lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
3415
        deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
3416
        dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
 
3417
      done
3473
3418
 
3474
3419
      if test -n "$xrpath"; then
3475
3420
        # If the user specified any rpath flags, then add them.
3570
3515
          int main() { return 0; }
3571
3516
EOF
3572
3517
          $rm conftest
3573
 
          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
 
3518
          $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
 
3519
          if test "$?" -eq 0 ; then
3574
3520
            ldd_output=`ldd conftest`
3575
3521
            for i in $deplibs; do
3576
3522
              name=`expr $i : '-l\(.*\)'`
3577
3523
              # If $name is empty we are operating on a -L argument.
3578
 
              if test "$name" != "" && test "$name" != "0"; then
 
3524
              if test "$name" != "" && test "$name" -ne "0"; then
3579
3525
                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3580
3526
                  case " $predeps $postdeps " in
3581
3527
                  *" $i "*)
3614
3560
              # If $name is empty we are operating on a -L argument.
3615
3561
              if test "$name" != "" && test "$name" != "0"; then
3616
3562
                $rm conftest
3617
 
                if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
 
3563
                $LTCC $LTCFLAGS -o conftest conftest.c $i
 
3564
                # Did it work?
 
3565
                if test "$?" -eq 0 ; then
3618
3566
                  ldd_output=`ldd conftest`
3619
3567
                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3620
3568
                    case " $predeps $postdeps " in
3646
3594
                  droppeddeps=yes
3647
3595
                  $echo
3648
3596
                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
3649
 
                  $echo "*** make it link in!  You will probably need to install it or some"
 
3597
                  $echo "***  make it link in!  You will probably need to install it or some"
3650
3598
                  $echo "*** library that it depends on before this library will be fully"
3651
3599
                  $echo "*** functional.  Installing it before continuing would be even better."
3652
3600
                fi
3932
3880
             test -n "$hardcode_libdirs"; then
3933
3881
            libdir="$hardcode_libdirs"
3934
3882
            if test -n "$hardcode_libdir_flag_spec_ld"; then
3935
 
              case $archive_cmds in
3936
 
              *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3937
 
              *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3938
 
              esac
 
3883
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
3939
3884
            else
3940
3885
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3941
3886
            fi
4294
4239
      reload_conv_objs=
4295
4240
      gentop=
4296
4241
      # reload_cmds runs $LD directly, so let us get rid of
4297
 
      # -Wl from whole_archive_flag_spec and hope we can get by with
4298
 
      # turning comma into space..
 
4242
      # -Wl from whole_archive_flag_spec
4299
4243
      wl=
4300
4244
 
4301
4245
      if test -n "$convenience"; then
4302
4246
        if test -n "$whole_archive_flag_spec"; then
4303
 
          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4304
 
          reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
 
4247
          eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
4305
4248
        else
4306
4249
          gentop="$output_objdir/${obj}x"
4307
4250
          generated="$generated $gentop"
4749
4692
          case $host in
4750
4693
          *cygwin* | *mingw* )
4751
4694
            if test -f "$output_objdir/${outputname}.def" ; then
4752
 
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4753
 
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4695
              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
 
4696
              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4754
4697
            else
4755
 
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4756
 
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4698
              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4699
              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4757
4700
             fi
4758
4701
            ;;
4759
4702
          * )
4760
 
            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4761
 
            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4703
            compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4704
            finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4762
4705
            ;;
4763
4706
          esac
4764
4707
          ;;
4773
4716
        # really was required.
4774
4717
 
4775
4718
        # Nullify the symbol file.
4776
 
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4777
 
        finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
 
4719
        compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
 
4720
        finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
4778
4721
      fi
4779
4722
 
4780
4723
      if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4781
4724
        # Replace the output file specification.
4782
 
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
 
4725
        compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4783
4726
        link_command="$compile_command$compile_rpath"
4784
4727
 
4785
4728
        # We have no uninstalled library dependencies, so finalize right now.
4866
4809
        if test "$fast_install" != no; then
4867
4810
          link_command="$finalize_var$compile_command$finalize_rpath"
4868
4811
          if test "$fast_install" = yes; then
4869
 
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
 
4812
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
4870
4813
          else
4871
4814
            # fast_install is set to needless
4872
4815
            relink_command=
4903
4846
          fi
4904
4847
        done
4905
4848
        relink_command="(cd `pwd`; $relink_command)"
4906
 
        relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
 
4849
        relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
4907
4850
      fi
4908
4851
 
4909
4852
      # Quote $echo for shipping.
5310
5253
Xsed='${SED} -e 1s/^X//'
5311
5254
sed_quote_subst='$sed_quote_subst'
5312
5255
 
5313
 
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5314
 
if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5315
 
  emulate sh
5316
 
  NULLCMD=:
5317
 
  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5318
 
  # is contrary to our usage.  Disable this feature.
5319
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
5320
 
  setopt NO_GLOB_SUBST
5321
 
else
5322
 
  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5323
 
fi
5324
 
BIN_SH=xpg4; export BIN_SH # for Tru64
5325
 
DUALCASE=1; export DUALCASE # for MKS sh
5326
 
 
5327
5256
# The HP-UX ksh and POSIX shell print the target directory to stdout
5328
5257
# if CDPATH is set.
5329
5258
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5466
5395
          ;;
5467
5396
        esac
5468
5397
        $echo >> $output "\
5469
 
      \$echo \"\$0: cannot exec \$program \$*\"
 
5398
      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
5470
5399
      exit $EXIT_FAILURE
5471
5400
    fi
5472
5401
  else
5652
5581
      done
5653
5582
      # Quote the link command for shipping.
5654
5583
      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5655
 
      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
 
5584
      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5656
5585
      if test "$hardcode_automatic" = yes ; then
5657
5586
        relink_command=
5658
5587
      fi
5997
5926
 
5998
5927
          if test -n "$inst_prefix_dir"; then
5999
5928
            # Stick the inst_prefix_dir data into the link command.
6000
 
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
 
5929
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
6001
5930
          else
6002
 
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
 
5931
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
6003
5932
          fi
6004
5933
 
6005
5934
          $echo "$modename: warning: relinking \`$file'" 1>&2
6208
6137
              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6209
6138
              outputname="$tmpdir/$file"
6210
6139
              # Replace the output file specification.
6211
 
              relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
 
6140
              relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
6212
6141
 
6213
6142
              $show "$relink_command"
6214
6143
              if $run eval "$relink_command"; then :
6419
6348
        if test -f "$dir/$objdir/$dlname"; then
6420
6349
          dir="$dir/$objdir"
6421
6350
        else
6422
 
          if test ! -f "$dir/$dlname"; then
6423
 
            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6424
 
            exit $EXIT_FAILURE
6425
 
          fi
 
6351
          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
 
6352
          exit $EXIT_FAILURE
6426
6353
        fi
6427
6354
        ;;
6428
6355
 
6486
6413
      fi
6487
6414
 
6488
6415
      # Restore saved environment variables
6489
 
      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6490
 
      do
6491
 
        eval "if test \"\${save_$lt_var+set}\" = set; then
6492
 
                $lt_var=\$save_$lt_var; export $lt_var
6493
 
              fi"
6494
 
      done
 
6416
      if test "${save_LC_ALL+set}" = set; then
 
6417
        LC_ALL="$save_LC_ALL"; export LC_ALL
 
6418
      fi
 
6419
      if test "${save_LANG+set}" = set; then
 
6420
        LANG="$save_LANG"; export LANG
 
6421
      fi
6495
6422
 
6496
6423
      # Now prepare to actually exec the command.
6497
6424
      exec_cmd="\$cmd$args"
6848
6775
  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
6849
6776
  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6850
6777
  -export-symbols SYMFILE
6851
 
                    try to export only the symbols listed in SYMFILE
 
6778
                    try to export only the symbols listed in SYMFILE
6852
6779
  -export-symbols-regex REGEX
6853
 
                    try to export only the symbols matching REGEX
 
6780
                    try to export only the symbols matching REGEX
6854
6781
  -LLIBDIR          search LIBDIR for required installed libraries
6855
6782
  -lNAME            OUTPUT-FILE requires the installed library libNAME
6856
6783
  -module           build a library that can dlopened
6864
6791
  -release RELEASE  specify package release information
6865
6792
  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6866
6793
  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
6867
 
  -static           do not do any dynamic linking of uninstalled libtool libraries
6868
 
  -static-libtool-libs
6869
 
                    do not do any dynamic linking of libtool libraries
 
6794
  -static           do not do any dynamic linking of libtool libraries
6870
6795
  -version-info CURRENT[:REVISION[:AGE]]
6871
 
                    specify library version info [each variable defaults to 0]
 
6796
                    specify library version info [each variable defaults to 0]
6872
6797
 
6873
6798
All other options (arguments beginning with \`-') are ignored.
6874
6799