~vcs-imports/lcms/main

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: mm2
  • Date: 2006-10-30 17:52:16 UTC
  • Revision ID: vcs-imports@canonical.com-20061030175216-d059fdbd187c28dd
no message

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
 
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
5
5
# Free Software Foundation, Inc.
6
6
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
7
#
43
43
 
44
44
PROGRAM=ltmain.sh
45
45
PACKAGE=libtool
46
 
VERSION=1.5.22
47
 
TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
 
46
VERSION=1.5.23a
 
47
TIMESTAMP=" (1.1220.2.412 2006/10/13 14:13:30)"
48
48
 
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
 
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+"$@"}'='"$@"'
52
56
  setopt NO_GLOB_SUBST
 
57
else
 
58
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
53
59
fi
 
60
BIN_SH=xpg4; export BIN_SH # for Tru64
 
61
DUALCASE=1; export DUALCASE # for MKS sh
54
62
 
55
63
# Check that we have a working $echo.
56
64
if test "X$1" = X--no-reexec; then
105
113
# These must not be set unconditionally because not all systems understand
106
114
# e.g. LANG=C (notably SCO).
107
115
# We save the old values to restore during execute mode.
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
 
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
114
124
 
115
125
# Make sure IFS has a sensible default
116
126
lt_nl='
136
146
preserve_args=
137
147
lo2o="s/\\.lo\$/.${objext}/"
138
148
o2lo="s/\\.${objext}\$/.lo/"
 
149
extracted_archives=
 
150
extracted_serial=0
139
151
 
140
152
#####################################
141
153
# Shell function definitions:
196
208
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
197
209
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
198
210
      win32_nmres=`eval $NM -f posix -A $1 | \
199
 
        $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
 
211
        $SED -n -e '1,100{
 
212
                / I /{
 
213
                        s,.*,import,
 
214
                        p
 
215
                        q
 
216
                        }
 
217
                }'`
200
218
      case $win32_nmres in
201
219
      import*)  win32_libid_type="x86 archive import";;
202
220
      *)        win32_libid_type="x86 archive static";;
327
345
        *) my_xabs=`pwd`"/$my_xlib" ;;
328
346
      esac
329
347
      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
330
 
      my_xdir="$my_gentop/$my_xlib"
 
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"
331
359
 
332
360
      $show "${rm}r $my_xdir"
333
361
      $run ${rm}r "$my_xdir"
454
482
    ;;
455
483
 
456
484
  --version)
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."
 
485
    echo "\
 
486
 
 
487
$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
 
488
 
 
489
Copyright (C) 2006  Free Software Foundation, Inc.
 
490
This is free software; see the source for copying conditions.  There is NO
 
491
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
462
492
    exit $?
463
493
    ;;
464
494
 
758
788
    *.f90) xform=f90 ;;
759
789
    *.for) xform=for ;;
760
790
    *.java) xform=java ;;
 
791
    *.obj) xform=obj ;;
761
792
    esac
762
793
 
763
794
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
1138
1169
    for arg
1139
1170
    do
1140
1171
      case $arg in
1141
 
      -all-static | -static)
1142
 
        if test "X$arg" = "X-all-static"; then
 
1172
      -all-static | -static | -static-libtool-libs)
 
1173
        case $arg in
 
1174
        -all-static)
1143
1175
          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1144
1176
            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1145
1177
          fi
1147
1179
            dlopen_self=$dlopen_self_static
1148
1180
          fi
1149
1181
          prefer_static_libs=yes
1150
 
        else
 
1182
          ;;
 
1183
        -static)
1151
1184
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1152
1185
            dlopen_self=$dlopen_self_static
1153
1186
          fi
1154
1187
          prefer_static_libs=built
1155
 
        fi
 
1188
          ;;
 
1189
        -static-libtool-libs)
 
1190
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
1191
            dlopen_self=$dlopen_self_static
 
1192
          fi
 
1193
          prefer_static_libs=yes
 
1194
          ;;
 
1195
        esac
1156
1196
        build_libtool_libs=no
1157
1197
        build_old_libs=yes
1158
1198
        break
1600
1640
        continue
1601
1641
        ;;
1602
1642
 
1603
 
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
1643
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1604
1644
        compiler_flags="$compiler_flags $arg"
1605
1645
        compile_command="$compile_command $arg"
1606
1646
        finalize_command="$finalize_command $arg"
1620
1660
      # -m* pass through architecture-specific compiler args for GCC
1621
1661
      # -m*, -t[45]*, -txscale* pass through architecture-specific
1622
1662
      # compiler args for GCC
1623
 
      # -pg pass through profiling flag for GCC
 
1663
      # -pg, --coverage pass through profiling flag for GCC
1624
1664
      # @file GCC response files
1625
 
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1626
 
      -t[45]*|-txscale*|@*)
 
1665
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
 
1666
      -t[45]*|-txscale*|-pg|--coverage|@*)
1627
1667
 
1628
1668
        # Unknown arguments in both finalize_command and compile_command need
1629
1669
        # to be aesthetically quoted because they are evaled later.
1712
1752
        continue
1713
1753
        ;;
1714
1754
 
1715
 
      -static)
 
1755
      -static | -static-libtool-libs)
1716
1756
        # The effects of -static are defined in a previous loop.
1717
1757
        # We used to do the same as -all-static on platforms that
1718
1758
        # didn't have a PIC flag, but the assumption that the effects
2094
2134
        lib=
2095
2135
        found=no
2096
2136
        case $deplib in
2097
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
2137
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2098
2138
          if test "$linkmode,$pass" = "prog,link"; then
2099
2139
            compile_deplibs="$deplib $compile_deplibs"
2100
2140
            finalize_deplibs="$deplib $finalize_deplibs"
2490
2530
 
2491
2531
        if test "$linkmode,$pass" = "prog,link"; then
2492
2532
          if test -n "$library_names" &&
2493
 
             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
2533
             { { test "$prefer_static_libs" = no ||
 
2534
                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
 
2535
               test -z "$old_library"; }; then
2494
2536
            # We need to hardcode the library path
2495
2537
            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2496
2538
              # Make sure the rpath contains only unique directories.
3186
3228
          # which has an extra 1 added just for fun
3187
3229
          #
3188
3230
          case $version_type in
3189
 
          darwin|linux|osf|windows)
 
3231
          darwin|linux|osf|windows|none)
3190
3232
            current=`expr $number_major + $number_minor`
3191
3233
            age="$number_minor"
3192
3234
            revision="$number_revision"
3410
3452
      fi
3411
3453
 
3412
3454
      # Eliminate all temporary directories.
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
 
3455
      #for path in $notinst_path; do
 
3456
      # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
3457
      # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
3458
      # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
 
3459
      #done
3418
3460
 
3419
3461
      if test -n "$xrpath"; then
3420
3462
        # If the user specified any rpath flags, then add them.
3515
3557
          int main() { return 0; }
3516
3558
EOF
3517
3559
          $rm conftest
3518
 
          $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3519
 
          if test "$?" -eq 0 ; then
 
3560
          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3520
3561
            ldd_output=`ldd conftest`
3521
3562
            for i in $deplibs; do
3522
3563
              name=`expr $i : '-l\(.*\)'`
3523
3564
              # If $name is empty we are operating on a -L argument.
3524
 
              if test "$name" != "" && test "$name" -ne "0"; then
 
3565
              if test "$name" != "" && test "$name" != "0"; then
3525
3566
                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3526
3567
                  case " $predeps $postdeps " in
3527
3568
                  *" $i "*)
3560
3601
              # If $name is empty we are operating on a -L argument.
3561
3602
              if test "$name" != "" && test "$name" != "0"; then
3562
3603
                $rm conftest
3563
 
                $LTCC $LTCFLAGS -o conftest conftest.c $i
3564
 
                # Did it work?
3565
 
                if test "$?" -eq 0 ; then
 
3604
                if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3566
3605
                  ldd_output=`ldd conftest`
3567
3606
                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3568
3607
                    case " $predeps $postdeps " in
3594
3633
                  droppeddeps=yes
3595
3634
                  $echo
3596
3635
                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
3597
 
                  $echo "***  make it link in!  You will probably need to install it or some"
 
3636
                  $echo "*** make it link in!  You will probably need to install it or some"
3598
3637
                  $echo "*** library that it depends on before this library will be fully"
3599
3638
                  $echo "*** functional.  Installing it before continuing would be even better."
3600
3639
                fi
3880
3919
             test -n "$hardcode_libdirs"; then
3881
3920
            libdir="$hardcode_libdirs"
3882
3921
            if test -n "$hardcode_libdir_flag_spec_ld"; then
3883
 
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
 
3922
              case $archive_cmds in
 
3923
              *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
 
3924
              *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
 
3925
              esac
3884
3926
            else
3885
3927
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3886
3928
            fi
4239
4281
      reload_conv_objs=
4240
4282
      gentop=
4241
4283
      # reload_cmds runs $LD directly, so let us get rid of
4242
 
      # -Wl from whole_archive_flag_spec
 
4284
      # -Wl from whole_archive_flag_spec and hope we can get by with
 
4285
      # turning comma into space..
4243
4286
      wl=
4244
4287
 
4245
4288
      if test -n "$convenience"; then
4246
4289
        if test -n "$whole_archive_flag_spec"; then
4247
 
          eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
 
4290
          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
 
4291
          reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4248
4292
        else
4249
4293
          gentop="$output_objdir/${obj}x"
4250
4294
          generated="$generated $gentop"
4692
4736
          case $host in
4693
4737
          *cygwin* | *mingw* )
4694
4738
            if test -f "$output_objdir/${outputname}.def" ; then
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}%"`
 
4739
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4740
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4697
4741
            else
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}%"`
 
4742
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4743
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4700
4744
             fi
4701
4745
            ;;
4702
4746
          * )
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}%"`
 
4747
            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4748
            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4705
4749
            ;;
4706
4750
          esac
4707
4751
          ;;
4716
4760
        # really was required.
4717
4761
 
4718
4762
        # Nullify the symbol file.
4719
 
        compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
4720
 
        finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
 
4763
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
 
4764
        finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4721
4765
      fi
4722
4766
 
4723
4767
      if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4724
4768
        # Replace the output file specification.
4725
 
        compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
 
4769
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4726
4770
        link_command="$compile_command$compile_rpath"
4727
4771
 
4728
4772
        # We have no uninstalled library dependencies, so finalize right now.
4810
4854
        if test "$fast_install" != no; then
4811
4855
          link_command="$finalize_var$compile_command$finalize_rpath"
4812
4856
          if test "$fast_install" = yes; then
4813
 
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
 
4857
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4814
4858
          else
4815
4859
            # fast_install is set to needless
4816
4860
            relink_command=
4847
4891
          fi
4848
4892
        done
4849
4893
        relink_command="(cd `pwd`; $relink_command)"
4850
 
        relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
4894
        relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4851
4895
      fi
4852
4896
 
4853
4897
      # Quote $echo for shipping.
5254
5298
Xsed='${SED} -e 1s/^X//'
5255
5299
sed_quote_subst='$sed_quote_subst'
5256
5300
 
 
5301
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
 
5302
if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
 
5303
  emulate sh
 
5304
  NULLCMD=:
 
5305
  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
 
5306
  # is contrary to our usage.  Disable this feature.
 
5307
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
5308
  setopt NO_GLOB_SUBST
 
5309
else
 
5310
  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
 
5311
fi
 
5312
BIN_SH=xpg4; export BIN_SH # for Tru64
 
5313
DUALCASE=1; export DUALCASE # for MKS sh
 
5314
 
5257
5315
# The HP-UX ksh and POSIX shell print the target directory to stdout
5258
5316
# if CDPATH is set.
5259
5317
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5396
5454
          ;;
5397
5455
        esac
5398
5456
        $echo >> $output "\
5399
 
      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
 
5457
      \$echo \"\$0: cannot exec \$program \$*\"
5400
5458
      exit $EXIT_FAILURE
5401
5459
    fi
5402
5460
  else
5582
5640
      done
5583
5641
      # Quote the link command for shipping.
5584
5642
      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5585
 
      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
5643
      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5586
5644
      if test "$hardcode_automatic" = yes ; then
5587
5645
        relink_command=
5588
5646
      fi
5927
5985
 
5928
5986
          if test -n "$inst_prefix_dir"; then
5929
5987
            # Stick the inst_prefix_dir data into the link command.
5930
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
 
5988
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
5931
5989
          else
5932
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
 
5990
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
5933
5991
          fi
5934
5992
 
5935
5993
          $echo "$modename: warning: relinking \`$file'" 1>&2
6138
6196
              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6139
6197
              outputname="$tmpdir/$file"
6140
6198
              # Replace the output file specification.
6141
 
              relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
 
6199
              relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6142
6200
 
6143
6201
              $show "$relink_command"
6144
6202
              if $run eval "$relink_command"; then :
6349
6407
        if test -f "$dir/$objdir/$dlname"; then
6350
6408
          dir="$dir/$objdir"
6351
6409
        else
6352
 
          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6353
 
          exit $EXIT_FAILURE
 
6410
          if test ! -f "$dir/$dlname"; then
 
6411
            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
 
6412
            exit $EXIT_FAILURE
 
6413
          fi
6354
6414
        fi
6355
6415
        ;;
6356
6416
 
6414
6474
      fi
6415
6475
 
6416
6476
      # Restore saved environment variables
6417
 
      if test "${save_LC_ALL+set}" = set; then
6418
 
        LC_ALL="$save_LC_ALL"; export LC_ALL
6419
 
      fi
6420
 
      if test "${save_LANG+set}" = set; then
6421
 
        LANG="$save_LANG"; export LANG
6422
 
      fi
 
6477
      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
6478
      do
 
6479
        eval "if test \"\${save_$lt_var+set}\" = set; then
 
6480
                $lt_var=\$save_$lt_var; export $lt_var
 
6481
              else
 
6482
                $lt_unset $lt_var
 
6483
              fi"
 
6484
      done
6423
6485
 
6424
6486
      # Now prepare to actually exec the command.
6425
6487
      exec_cmd="\$cmd$args"
6776
6838
  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
6777
6839
  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6778
6840
  -export-symbols SYMFILE
6779
 
                    try to export only the symbols listed in SYMFILE
 
6841
                    try to export only the symbols listed in SYMFILE
6780
6842
  -export-symbols-regex REGEX
6781
 
                    try to export only the symbols matching REGEX
 
6843
                    try to export only the symbols matching REGEX
6782
6844
  -LLIBDIR          search LIBDIR for required installed libraries
6783
6845
  -lNAME            OUTPUT-FILE requires the installed library libNAME
6784
6846
  -module           build a library that can dlopened
6792
6854
  -release RELEASE  specify package release information
6793
6855
  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6794
6856
  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
6795
 
  -static           do not do any dynamic linking of libtool libraries
 
6857
  -static           do not do any dynamic linking of uninstalled libtool libraries
 
6858
  -static-libtool-libs
 
6859
                    do not do any dynamic linking of libtool libraries
6796
6860
  -version-info CURRENT[:REVISION[:AGE]]
6797
 
                    specify library version info [each variable defaults to 0]
 
6861
                    specify library version info [each variable defaults to 0]
6798
6862
 
6799
6863
All other options (arguments beginning with \`-') are ignored.
6800
6864