~ubuntu-branches/ubuntu/trusty/apr-util/trusty-proposed

« back to all changes in this revision

Viewing changes to xml/expat/conftools/ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur, Ryan Niebur, Stefan Fritsch
  • Date: 2009-03-26 22:25:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090326222548-w6n07bfofjy0823w
Tags: 1.3.4+dfsg-1
[ Ryan Niebur ]
* New upstream version
* add me to Uploaders
* add repack.sh
* update to libdb4.7-dev (Closes: #519818)
* Debian policy 3.8.1
* remove *.dirs, they're not needed
* lintian overrides for the symbols file depending on different
  packages, we have those "unusual circumstances" :)
  - debhelper 6 (needed for dh_lintian)
* remove build/apr_common.m4 in the clean target, it gets modified
  during build and is automatically generated
* switch the libaprutil1-dbg package to the debug section
* don't output ldap libs by default from apu-config
* upload to unstable this time

[ Stefan Fritsch ]
* Fix description for libaprutil1-dbg (closes: #508145).
* Recognize DEB_BUILD_OPTIONS=nocheck in addition to notest (closes: #515352).
* Make dpkg-shlibdeps automatically generate the needed dependencies for
  programs that use apr_ldap_init() or apr_dbd_init().
  For dbd, we will genreate an ORed dependency on all libaprutil1-dbd-*
  packages, using libaprutil1-dbd-mysql as default.

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
5
 
# Free Software Foundation, Inc.
 
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
 
5
# 2007, 2008  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.20
47
 
TIMESTAMP=" (1.1220.2.287 2005/08/31 18:54:15)"
 
46
VERSION=1.5.26
 
47
TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
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
 
116
lt_env=
 
117
for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
118
do
 
119
  eval "if test \"\${$lt_var+set}\" = set; then
 
120
          save_$lt_var=\$$lt_var
 
121
          lt_env=\"$lt_var=\$$lt_var \$lt_env\"
 
122
          $lt_var=C
 
123
          export $lt_var
 
124
        fi"
 
125
done
 
126
 
 
127
if test -n "$lt_env"; then
 
128
  lt_env="env $lt_env"
113
129
fi
114
130
 
115
131
# Make sure IFS has a sensible default
132
148
show="$echo"
133
149
show_help=
134
150
execute_dlfiles=
 
151
duplicate_deps=no
 
152
preserve_args=
135
153
lo2o="s/\\.lo\$/.${objext}/"
136
154
o2lo="s/\\.${objext}\$/.lo/"
 
155
extracted_archives=
 
156
extracted_serial=0
137
157
 
138
158
#####################################
139
159
# Shell function definitions:
140
160
# This seems to be the best place for them
141
161
 
 
162
# func_mktempdir [string]
 
163
# Make a temporary directory that won't clash with other running
 
164
# libtool processes, and avoids race conditions if possible.  If
 
165
# given, STRING is the basename for that directory.
 
166
func_mktempdir ()
 
167
{
 
168
    my_template="${TMPDIR-/tmp}/${1-$progname}"
 
169
 
 
170
    if test "$run" = ":"; then
 
171
      # Return a directory name, but don't create it in dry-run mode
 
172
      my_tmpdir="${my_template}-$$"
 
173
    else
 
174
 
 
175
      # If mktemp works, use that first and foremost
 
176
      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
 
177
 
 
178
      if test ! -d "$my_tmpdir"; then
 
179
        # Failing that, at least try and use $RANDOM to avoid a race
 
180
        my_tmpdir="${my_template}-${RANDOM-0}$$"
 
181
 
 
182
        save_mktempdir_umask=`umask`
 
183
        umask 0077
 
184
        $mkdir "$my_tmpdir"
 
185
        umask $save_mktempdir_umask
 
186
      fi
 
187
 
 
188
      # If we're not in dry-run mode, bomb out on failure
 
189
      test -d "$my_tmpdir" || {
 
190
        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
 
191
        exit $EXIT_FAILURE
 
192
      }
 
193
    fi
 
194
 
 
195
    $echo "X$my_tmpdir" | $Xsed
 
196
}
 
197
 
 
198
 
142
199
# func_win32_libid arg
143
200
# return the library type of file 'arg'
144
201
#
157
214
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
158
215
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
159
216
      win32_nmres=`eval $NM -f posix -A $1 | \
160
 
        sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
161
 
      if test "X$win32_nmres" = "Ximport" ; then
162
 
        win32_libid_type="x86 archive import"
163
 
      else
164
 
        win32_libid_type="x86 archive static"
165
 
      fi
 
217
        $SED -n -e '1,100{
 
218
                / I /{
 
219
                        s,.*,import,
 
220
                        p
 
221
                        q
 
222
                        }
 
223
                }'`
 
224
      case $win32_nmres in
 
225
      import*)  win32_libid_type="x86 archive import";;
 
226
      *)        win32_libid_type="x86 archive static";;
 
227
      esac
166
228
    fi
167
229
    ;;
168
230
  *DLL*)
289
351
        *) my_xabs=`pwd`"/$my_xlib" ;;
290
352
      esac
291
353
      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
292
 
      my_xdir="$my_gentop/$my_xlib"
 
354
      my_xlib_u=$my_xlib
 
355
      while :; do
 
356
        case " $extracted_archives " in
 
357
        *" $my_xlib_u "*)
 
358
          extracted_serial=`expr $extracted_serial + 1`
 
359
          my_xlib_u=lt$extracted_serial-$my_xlib ;;
 
360
        *) break ;;
 
361
        esac
 
362
      done
 
363
      extracted_archives="$extracted_archives $my_xlib_u"
 
364
      my_xdir="$my_gentop/$my_xlib_u"
293
365
 
294
366
      $show "${rm}r $my_xdir"
295
367
      $run ${rm}r "$my_xdir"
296
368
      $show "$mkdir $my_xdir"
297
369
      $run $mkdir "$my_xdir"
298
 
      status=$?
299
 
      if test "$status" -ne 0 && test ! -d "$my_xdir"; then
300
 
        exit $status
 
370
      exit_status=$?
 
371
      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
 
372
        exit $exit_status
301
373
      fi
302
374
      case $host in
303
375
      *-darwin*)
352
424
# Darwin sucks
353
425
eval std_shrext=\"$shrext_cmds\"
354
426
 
 
427
disable_libs=no
 
428
 
355
429
# Parse our command line options once, thoroughly.
356
430
while test "$#" -gt 0
357
431
do
414
488
    ;;
415
489
 
416
490
  --version)
417
 
    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
418
 
    $echo
419
 
    $echo "Copyright (C) 2005  Free Software Foundation, Inc."
420
 
    $echo "This is free software; see the source for copying conditions.  There is NO"
421
 
    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
491
    echo "\
 
492
$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
 
493
 
 
494
Copyright (C) 2008  Free Software Foundation, Inc.
 
495
This is free software; see the source for copying conditions.  There is NO
 
496
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
422
497
    exit $?
423
498
    ;;
424
499
 
468
543
    preserve_args="$preserve_args $arg"
469
544
    ;;
470
545
 
471
 
  --tag) prevopt="--tag" prev=tag ;;
 
546
  --tag)
 
547
    prevopt="--tag"
 
548
    prev=tag
 
549
    preserve_args="$preserve_args --tag"
 
550
    ;;
472
551
  --tag=*)
473
552
    set tag "$optarg" ${1+"$@"}
474
553
    shift
500
579
  exit $EXIT_FAILURE
501
580
fi
502
581
 
 
582
case $disable_libs in
 
583
no) 
 
584
  ;;
 
585
shared)
 
586
  build_libtool_libs=no
 
587
  build_old_libs=yes
 
588
  ;;
 
589
static)
 
590
  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
 
591
  ;;
 
592
esac
 
593
 
503
594
# If this variable is set in any of the actions, the command in it
504
595
# will be execed at the end.  This prevents here-documents from being
505
596
# left over by shells.
699
790
    *.class) xform=class ;;
700
791
    *.cpp) xform=cpp ;;
701
792
    *.cxx) xform=cxx ;;
702
 
    *.f90) xform=f90 ;;
 
793
    *.[fF][09]?) xform=[fF][09]. ;;
703
794
    *.for) xform=for ;;
704
795
    *.java) xform=java ;;
 
796
    *.obj) xform=obj ;;
 
797
    *.sx) xform=sx ;;
705
798
    esac
706
799
 
707
800
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
856
949
      if test ! -d "${xdir}$objdir"; then
857
950
        $show "$mkdir ${xdir}$objdir"
858
951
        $run $mkdir ${xdir}$objdir
859
 
        status=$?
860
 
        if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
861
 
          exit $status
 
952
        exit_status=$?
 
953
        if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
 
954
          exit $exit_status
862
955
        fi
863
956
      fi
864
957
 
870
963
      $run $rm "$lobj" "$output_obj"
871
964
 
872
965
      $show "$command"
873
 
      if $run eval "$command"; then :
 
966
      if $run eval $lt_env "$command"; then :
874
967
      else
875
968
        test -n "$output_obj" && $run $rm $removelist
876
969
        exit $EXIT_FAILURE
942
1035
      command="$command$suppress_output"
943
1036
      $run $rm "$obj" "$output_obj"
944
1037
      $show "$command"
945
 
      if $run eval "$command"; then :
 
1038
      if $run eval $lt_env "$command"; then :
946
1039
      else
947
1040
        $run $rm $removelist
948
1041
        exit $EXIT_FAILURE
1061
1154
    no_install=no
1062
1155
    objs=
1063
1156
    non_pic_objects=
 
1157
    notinst_path= # paths that contain not-installed libtool libraries
1064
1158
    precious_files_regex=
1065
1159
    prefer_static_libs=no
1066
1160
    preload=no
1074
1168
    thread_safe=no
1075
1169
    vinfo=
1076
1170
    vinfo_number=no
 
1171
    single_module="${wl}-single_module"
1077
1172
 
1078
1173
    func_infer_tag $base_compile
1079
1174
 
1081
1176
    for arg
1082
1177
    do
1083
1178
      case $arg in
1084
 
      -all-static | -static)
1085
 
        if test "X$arg" = "X-all-static"; then
 
1179
      -all-static | -static | -static-libtool-libs)
 
1180
        case $arg in
 
1181
        -all-static)
1086
1182
          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1087
1183
            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1088
1184
          fi
1089
1185
          if test -n "$link_static_flag"; then
1090
1186
            dlopen_self=$dlopen_self_static
1091
1187
          fi
1092
 
        else
1093
 
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
1094
 
            dlopen_self=$dlopen_self_static
1095
 
          fi
1096
 
        fi
 
1188
          prefer_static_libs=yes
 
1189
          ;;
 
1190
        -static)
 
1191
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
1192
            dlopen_self=$dlopen_self_static
 
1193
          fi
 
1194
          prefer_static_libs=built
 
1195
          ;;
 
1196
        -static-libtool-libs)
 
1197
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
 
1198
            dlopen_self=$dlopen_self_static
 
1199
          fi
 
1200
          prefer_static_libs=yes
 
1201
          ;;
 
1202
        esac
1097
1203
        build_libtool_libs=no
1098
1204
        build_old_libs=yes
1099
 
        prefer_static_libs=yes
1100
1205
        break
1101
1206
        ;;
1102
1207
      esac
1271
1376
                  if test -z "$pic_object" || test "$pic_object" = none ; then
1272
1377
                    arg="$non_pic_object"
1273
1378
                  fi
 
1379
                else
 
1380
                  # If the PIC object exists, use it instead.
 
1381
                  # $xdir was prepended to $pic_object above.
 
1382
                  non_pic_object="$pic_object"
 
1383
                  non_pic_objects="$non_pic_objects $non_pic_object"
1274
1384
                fi
1275
1385
              else
1276
1386
                # Only an error if not doing a dry-run.
1354
1464
          prev=
1355
1465
          continue
1356
1466
          ;;
1357
 
        darwin_framework)
1358
 
          compiler_flags="$compiler_flags $arg"
 
1467
        darwin_framework|darwin_framework_skip)
 
1468
          test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1359
1469
          compile_command="$compile_command $arg"
1360
1470
          finalize_command="$finalize_command $arg"
1361
1471
          prev=
1419
1529
        continue
1420
1530
        ;;
1421
1531
 
1422
 
      -framework|-arch)
1423
 
        prev=darwin_framework
1424
 
        compiler_flags="$compiler_flags $arg"
 
1532
      -framework|-arch|-isysroot)
 
1533
        case " $CC " in
 
1534
          *" ${arg} ${1} "* | *" ${arg} ${1} "*) 
 
1535
                prev=darwin_framework_skip ;;
 
1536
          *) compiler_flags="$compiler_flags $arg"
 
1537
             prev=darwin_framework ;;
 
1538
        esac
1425
1539
        compile_command="$compile_command $arg"
1426
1540
        finalize_command="$finalize_command $arg"
1427
 
        continue
1428
 
        ;;
 
1541
        continue
 
1542
        ;;
1429
1543
 
1430
1544
      -inst-prefix-dir)
1431
1545
        prev=inst_prefix
1453
1567
          absdir=`cd "$dir" && pwd`
1454
1568
          if test -z "$absdir"; then
1455
1569
            $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1456
 
            exit $EXIT_FAILURE
 
1570
            absdir="$dir"
 
1571
            notinst_path="$notinst_path $dir"
1457
1572
          fi
1458
1573
          dir="$absdir"
1459
1574
          ;;
1467
1582
        esac
1468
1583
        case $host in
1469
1584
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
1585
          testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1470
1586
          case :$dllsearchpath: in
1471
1587
          *":$dir:"*) ;;
1472
1588
          *) dllsearchpath="$dllsearchpath:$dir";;
1473
1589
          esac
 
1590
          case :$dllsearchpath: in
 
1591
          *":$testbindir:"*) ;;
 
1592
          *) dllsearchpath="$dllsearchpath:$testbindir";;
 
1593
          esac
1474
1594
          ;;
1475
1595
        esac
1476
1596
        continue
1479
1599
      -l*)
1480
1600
        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1481
1601
          case $host in
1482
 
          *-*-cygwin* | *-*-pw32* | *-*-beos*)
 
1602
          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1483
1603
            # These systems don't actually have a C or math library (as such)
1484
1604
            continue
1485
1605
            ;;
1486
 
          *-*-mingw* | *-*-os2*)
 
1606
          *-*-os2*)
1487
1607
            # These systems don't actually have a C library (as such)
1488
1608
            test "X$arg" = "X-lc" && continue
1489
1609
            ;;
1495
1615
            # Rhapsody C and math libraries are in the System framework
1496
1616
            deplibs="$deplibs -framework System"
1497
1617
            continue
 
1618
            ;;
 
1619
          *-*-sco3.2v5* | *-*-sco5v6*)
 
1620
            # Causes problems with __ctype
 
1621
            test "X$arg" = "X-lc" && continue
 
1622
            ;;
 
1623
          *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
 
1624
            # Compiler inserts libc in the correct place for threads to work
 
1625
            test "X$arg" = "X-lc" && continue
 
1626
            ;;
1498
1627
          esac
1499
1628
        elif test "X$arg" = "X-lc_r"; then
1500
1629
         case $host in
1518
1647
        continue
1519
1648
        ;;
1520
1649
 
1521
 
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
1650
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1522
1651
        compiler_flags="$compiler_flags $arg"
1523
1652
        compile_command="$compile_command $arg"
1524
1653
        finalize_command="$finalize_command $arg"
1525
1654
        continue
1526
1655
        ;;
1527
1656
 
 
1657
      -multi_module)
 
1658
        single_module="${wl}-multi_module"
 
1659
        continue
 
1660
        ;;
 
1661
 
1528
1662
      -module)
1529
1663
        module=yes
1530
1664
        continue
1536
1670
      # +DA*, +DD* enable 64-bit mode on the HP compiler
1537
1671
      # -q* pass through compiler args for the IBM compiler
1538
1672
      # -m* pass through architecture-specific compiler args for GCC
1539
 
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
 
1673
      # -m*, -t[45]*, -txscale* pass through architecture-specific
 
1674
      # compiler args for GCC
 
1675
      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
 
1676
      # -F/path gives path to uninstalled frameworks, gcc on darwin
 
1677
      # @file GCC response files
 
1678
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
 
1679
      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1540
1680
 
1541
1681
        # Unknown arguments in both finalize_command and compile_command need
1542
1682
        # to be aesthetically quoted because they are evaled later.
1548
1688
        esac
1549
1689
        compile_command="$compile_command $arg"
1550
1690
        finalize_command="$finalize_command $arg"
1551
 
        if test "$with_gcc" = "yes" ; then
1552
 
          compiler_flags="$compiler_flags $arg"
1553
 
        fi
 
1691
        compiler_flags="$compiler_flags $arg"
1554
1692
        continue
1555
1693
        ;;
1556
1694
 
1566
1704
 
1567
1705
      -no-install)
1568
1706
        case $host in
1569
 
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
1707
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1570
1708
          # The PATH hackery in wrapper scripts is required on Windows
1571
 
          # in order for the loader to find any dlls it needs.
 
1709
          # and Darwin in order for the loader to find any dlls it needs.
1572
1710
          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1573
1711
          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1574
1712
          fast_install=no
1627
1765
        continue
1628
1766
        ;;
1629
1767
 
1630
 
      -static)
 
1768
      -static | -static-libtool-libs)
1631
1769
        # The effects of -static are defined in a previous loop.
1632
1770
        # We used to do the same as -all-static on platforms that
1633
1771
        # didn't have a PIC flag, but the assumption that the effects
1788
1926
            if test -z "$pic_object" || test "$pic_object" = none ; then
1789
1927
              arg="$non_pic_object"
1790
1928
            fi
 
1929
          else
 
1930
            # If the PIC object exists, use it instead.
 
1931
            # $xdir was prepended to $pic_object above.
 
1932
            non_pic_object="$pic_object"
 
1933
            non_pic_objects="$non_pic_objects $non_pic_object"
1791
1934
          fi
1792
1935
        else
1793
1936
          # Only an error if not doing a dry-run.
1893
2036
    if test ! -d "$output_objdir"; then
1894
2037
      $show "$mkdir $output_objdir"
1895
2038
      $run $mkdir $output_objdir
1896
 
      status=$?
1897
 
      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
1898
 
        exit $status
 
2039
      exit_status=$?
 
2040
      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
 
2041
        exit $exit_status
1899
2042
      fi
1900
2043
    fi
1901
2044
 
1958
2101
    newlib_search_path=
1959
2102
    need_relink=no # whether we're linking any uninstalled libtool libraries
1960
2103
    notinst_deplibs= # not-installed libtool libraries
1961
 
    notinst_path= # paths that contain not-installed libtool libraries
1962
2104
    case $linkmode in
1963
2105
    lib)
1964
2106
        passes="conv link"
2005
2147
        lib=
2006
2148
        found=no
2007
2149
        case $deplib in
2008
 
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
 
2150
        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2009
2151
          if test "$linkmode,$pass" = "prog,link"; then
2010
2152
            compile_deplibs="$deplib $compile_deplibs"
2011
2153
            finalize_deplibs="$deplib $finalize_deplibs"
2020
2162
            continue
2021
2163
          fi
2022
2164
          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2023
 
          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
 
2165
          if test "$linkmode" = lib; then
 
2166
            searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
 
2167
          else
 
2168
            searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
 
2169
          fi
 
2170
          for searchdir in $searchdirs; do
2024
2171
            for search_ext in .la $std_shrext .so .a; do
2025
2172
              # Search the libtool library
2026
2173
              lib="$searchdir/lib${name}${search_ext}"
2194
2341
        esac # case $deplib
2195
2342
        if test "$found" = yes || test -f "$lib"; then :
2196
2343
        else
2197
 
          $echo "$modename: cannot find the library \`$lib'" 1>&2
 
2344
          $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2198
2345
          exit $EXIT_FAILURE
2199
2346
        fi
2200
2347
 
2401
2548
 
2402
2549
        if test "$linkmode,$pass" = "prog,link"; then
2403
2550
          if test -n "$library_names" &&
2404
 
             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
2551
             { { test "$prefer_static_libs" = no ||
 
2552
                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
 
2553
               test -z "$old_library"; }; then
2405
2554
            # We need to hardcode the library path
2406
2555
            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2407
2556
              # Make sure the rpath contains only unique directories.
2445
2594
        fi
2446
2595
 
2447
2596
        link_static=no # Whether the deplib will be linked statically
 
2597
        use_static_libs=$prefer_static_libs
 
2598
        if test "$use_static_libs" = built && test "$installed" = yes ; then
 
2599
          use_static_libs=no
 
2600
        fi
2448
2601
        if test -n "$library_names" &&
2449
 
           { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 
2602
           { test "$use_static_libs" = no || test -z "$old_library"; }; then
2450
2603
          if test "$installed" = no; then
2451
2604
            notinst_deplibs="$notinst_deplibs $lib"
2452
2605
            need_relink=yes
2559
2712
              if test "$hardcode_direct" = no; then
2560
2713
                add="$dir/$linklib"
2561
2714
                case $host in
2562
 
                  *-*-sco3.2v5* ) add_dir="-L$dir" ;;
 
2715
                  *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
 
2716
                  *-*-sysv4*uw2*) add_dir="-L$dir" ;;
 
2717
                  *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
 
2718
                    *-*-unixware7*) add_dir="-L$dir" ;;
2563
2719
                  *-*-darwin* )
2564
2720
                    # if the lib is a module then we can not link against
2565
2721
                    # it, someone is ignoring the new warnings I added
2566
 
                    if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
 
2722
                    if /usr/bin/file -L $add 2> /dev/null |
 
2723
                      $EGREP ": [^:]* bundle" >/dev/null ; then
2567
2724
                      $echo "** Warning, lib $linklib is a module, not a shared library"
2568
2725
                      if test -z "$old_library" ; then
2569
2726
                        $echo
2806
2963
                  # we do not want to link against static libs,
2807
2964
                  # but need to link against shared
2808
2965
                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
 
2966
                  eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2809
2967
                  if test -n "$deplibrary_names" ; then
2810
2968
                    for tmp in $deplibrary_names ; do
2811
2969
                      depdepl=$tmp
2812
2970
                    done
2813
 
                    if test -f "$path/$depdepl" ; then
 
2971
                    if test -f "$deplibdir/$depdepl" ; then
 
2972
                      depdepl="$deplibdir/$depdepl"
 
2973
                    elif test -f "$path/$depdepl" ; then
2814
2974
                      depdepl="$path/$depdepl"
 
2975
                    else
 
2976
                      # Can't find it, oh well...
 
2977
                      depdepl=
2815
2978
                    fi
2816
2979
                    # do not add paths which are already there
2817
2980
                    case " $newlib_search_path " in
2959
3122
 
2960
3123
    case $linkmode in
2961
3124
    oldlib)
2962
 
      if test -n "$deplibs"; then
2963
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
2964
 
      fi
 
3125
      case " $deplibs" in
 
3126
      *\ -l* | *\ -L*)
 
3127
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
 
3128
      esac
2965
3129
 
2966
3130
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2967
3131
        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3089
3253
          # which has an extra 1 added just for fun
3090
3254
          #
3091
3255
          case $version_type in
3092
 
          darwin|linux|osf|windows)
 
3256
          darwin|linux|osf|windows|none)
3093
3257
            current=`expr $number_major + $number_minor`
3094
3258
            age="$number_minor"
3095
3259
            revision="$number_revision"
3100
3264
            age="0"
3101
3265
            ;;
3102
3266
          irix|nonstopux)
3103
 
            current=`expr $number_major + $number_minor - 1`
 
3267
            current=`expr $number_major + $number_minor`
3104
3268
            age="$number_minor"
3105
3269
            revision="$number_minor"
 
3270
            lt_irix_increment=no
3106
3271
            ;;
3107
3272
          esac
3108
3273
          ;;
3161
3326
          versuffix="$major.$age.$revision"
3162
3327
          # Darwin ld doesn't like 0 for these options...
3163
3328
          minor_current=`expr $current + 1`
3164
 
          verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
 
3329
          xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
 
3330
          verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3165
3331
          ;;
3166
3332
 
3167
3333
        freebsd-aout)
3175
3341
          ;;
3176
3342
 
3177
3343
        irix | nonstopux)
3178
 
          major=`expr $current - $age + 1`
3179
 
 
 
3344
          if test "X$lt_irix_increment" = "Xno"; then
 
3345
            major=`expr $current - $age`
 
3346
          else
 
3347
            major=`expr $current - $age + 1`
 
3348
          fi
3180
3349
          case $version_type in
3181
3350
            nonstopux) verstring_prefix=nonstopux ;;
3182
3351
            *)         verstring_prefix=sgi ;;
3313
3482
      fi
3314
3483
 
3315
3484
      # Eliminate all temporary directories.
3316
 
      for path in $notinst_path; do
3317
 
        lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
3318
 
        deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
3319
 
        dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
3320
 
      done
 
3485
      #for path in $notinst_path; do
 
3486
      # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
 
3487
      # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
 
3488
      # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
 
3489
      #done
3321
3490
 
3322
3491
      if test -n "$xrpath"; then
3323
3492
        # If the user specified any rpath flags, then add them.
3369
3538
            ;;
3370
3539
          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3371
3540
            # Do not include libc due to us having libc/libc_r.
3372
 
            test "X$arg" = "X-lc" && continue
 
3541
            ;;
 
3542
          *-*-sco3.2v5* | *-*-sco5v6*)
 
3543
            # Causes problems with __ctype
 
3544
            ;;
 
3545
          *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
 
3546
            # Compiler inserts libc in the correct place for threads to work
3373
3547
            ;;
3374
3548
          *)
3375
3549
            # Add libc to deplibs on all other systems if necessary.
3413
3587
          int main() { return 0; }
3414
3588
EOF
3415
3589
          $rm conftest
3416
 
          $LTCC -o conftest conftest.c $deplibs
3417
 
          if test "$?" -eq 0 ; then
 
3590
          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3418
3591
            ldd_output=`ldd conftest`
3419
3592
            for i in $deplibs; do
3420
3593
              name=`expr $i : '-l\(.*\)'`
3421
3594
              # If $name is empty we are operating on a -L argument.
3422
 
              if test "$name" != "" && test "$name" -ne "0"; then
 
3595
              if test "$name" != "" && test "$name" != "0"; then
3423
3596
                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3424
3597
                  case " $predeps $postdeps " in
3425
3598
                  *" $i "*)
3458
3631
              # If $name is empty we are operating on a -L argument.
3459
3632
              if test "$name" != "" && test "$name" != "0"; then
3460
3633
                $rm conftest
3461
 
                $LTCC -o conftest conftest.c $i
3462
 
                # Did it work?
3463
 
                if test "$?" -eq 0 ; then
 
3634
                if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3464
3635
                  ldd_output=`ldd conftest`
3465
3636
                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3466
3637
                    case " $predeps $postdeps " in
3492
3663
                  droppeddeps=yes
3493
3664
                  $echo
3494
3665
                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
3495
 
                  $echo "***  make it link in!  You will probably need to install it or some"
 
3666
                  $echo "*** make it link in!  You will probably need to install it or some"
3496
3667
                  $echo "*** library that it depends on before this library will be fully"
3497
3668
                  $echo "*** functional.  Installing it before continuing would be even better."
3498
3669
                fi
3705
3876
        deplibs=$newdeplibs
3706
3877
      fi
3707
3878
 
 
3879
 
 
3880
      # move library search paths that coincide with paths to not yet
 
3881
      # installed libraries to the beginning of the library search list
 
3882
      new_libs=
 
3883
      for path in $notinst_path; do
 
3884
        case " $new_libs " in
 
3885
        *" -L$path/$objdir "*) ;;
 
3886
        *)
 
3887
          case " $deplibs " in
 
3888
          *" -L$path/$objdir "*)
 
3889
            new_libs="$new_libs -L$path/$objdir" ;;
 
3890
          esac
 
3891
          ;;
 
3892
        esac
 
3893
      done
 
3894
      for deplib in $deplibs; do
 
3895
        case $deplib in
 
3896
        -L*)
 
3897
          case " $new_libs " in
 
3898
          *" $deplib "*) ;;
 
3899
          *) new_libs="$new_libs $deplib" ;;
 
3900
          esac
 
3901
          ;;
 
3902
        *) new_libs="$new_libs $deplib" ;;
 
3903
        esac
 
3904
      done
 
3905
      deplibs="$new_libs"
 
3906
 
 
3907
 
3708
3908
      # All the library-specific variables (install_libdir is set above).
3709
3909
      library_names=
3710
3910
      old_library=
3749
3949
             test -n "$hardcode_libdirs"; then
3750
3950
            libdir="$hardcode_libdirs"
3751
3951
            if test -n "$hardcode_libdir_flag_spec_ld"; then
3752
 
              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
 
3952
              case $archive_cmds in
 
3953
              *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
 
3954
              *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
 
3955
              esac
3753
3956
            else
3754
3957
              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3755
3958
            fi
3788
3991
        fi
3789
3992
 
3790
3993
        lib="$output_objdir/$realname"
 
3994
        linknames=
3791
3995
        for link
3792
3996
        do
3793
3997
          linknames="$linknames $link"
4058
4262
      ;;
4059
4263
 
4060
4264
    obj)
4061
 
      if test -n "$deplibs"; then
4062
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
4063
 
      fi
 
4265
      case " $deplibs" in
 
4266
      *\ -l* | *\ -L*)
 
4267
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
 
4268
      esac
4064
4269
 
4065
4270
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4066
4271
        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4107
4312
      reload_conv_objs=
4108
4313
      gentop=
4109
4314
      # reload_cmds runs $LD directly, so let us get rid of
4110
 
      # -Wl from whole_archive_flag_spec
 
4315
      # -Wl from whole_archive_flag_spec and hope we can get by with
 
4316
      # turning comma into space..
4111
4317
      wl=
4112
4318
 
4113
4319
      if test -n "$convenience"; then
4114
4320
        if test -n "$whole_archive_flag_spec"; then
4115
 
          eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
 
4321
          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
 
4322
          reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4116
4323
        else
4117
4324
          gentop="$output_objdir/${obj}x"
4118
4325
          generated="$generated $gentop"
4219
4426
        ;;
4220
4427
      esac
4221
4428
 
 
4429
 
 
4430
      # move library search paths that coincide with paths to not yet
 
4431
      # installed libraries to the beginning of the library search list
 
4432
      new_libs=
 
4433
      for path in $notinst_path; do
 
4434
        case " $new_libs " in
 
4435
        *" -L$path/$objdir "*) ;;
 
4436
        *)
 
4437
          case " $compile_deplibs " in
 
4438
          *" -L$path/$objdir "*)
 
4439
            new_libs="$new_libs -L$path/$objdir" ;;
 
4440
          esac
 
4441
          ;;
 
4442
        esac
 
4443
      done
 
4444
      for deplib in $compile_deplibs; do
 
4445
        case $deplib in
 
4446
        -L*)
 
4447
          case " $new_libs " in
 
4448
          *" $deplib "*) ;;
 
4449
          *) new_libs="$new_libs $deplib" ;;
 
4450
          esac
 
4451
          ;;
 
4452
        *) new_libs="$new_libs $deplib" ;;
 
4453
        esac
 
4454
      done
 
4455
      compile_deplibs="$new_libs"
 
4456
 
 
4457
 
4222
4458
      compile_command="$compile_command $compile_deplibs"
4223
4459
      finalize_command="$finalize_command $finalize_deplibs"
4224
4460
 
4263
4499
        fi
4264
4500
        case $host in
4265
4501
        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
 
4502
          testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4266
4503
          case :$dllsearchpath: in
4267
4504
          *":$libdir:"*) ;;
4268
4505
          *) dllsearchpath="$dllsearchpath:$libdir";;
4269
4506
          esac
 
4507
          case :$dllsearchpath: in
 
4508
          *":$testbindir:"*) ;;
 
4509
          *) dllsearchpath="$dllsearchpath:$testbindir";;
 
4510
          esac
4270
4511
          ;;
4271
4512
        esac
4272
4513
      done
4383
4624
              export_symbols="$output_objdir/$outputname.exp"
4384
4625
              $run $rm $export_symbols
4385
4626
              $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
 
4627
              case $host in
 
4628
              *cygwin* | *mingw* )
 
4629
                $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
 
4630
                $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
 
4631
                ;;
 
4632
              esac
4386
4633
            else
4387
 
              $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
 
4634
              $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4388
4635
              $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4389
4636
              $run eval 'mv "$nlist"T "$nlist"'
 
4637
              case $host in
 
4638
              *cygwin* | *mingw* )
 
4639
                $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
 
4640
                $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
 
4641
                ;;
 
4642
              esac
4390
4643
            fi
4391
4644
          fi
4392
4645
 
4503
4756
          esac
4504
4757
 
4505
4758
          # Now compile the dynamic symbol file.
4506
 
          $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4507
 
          $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
 
4759
          $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
 
4760
          $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4508
4761
 
4509
4762
          # Clean up the generated files.
4510
4763
          $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4511
4764
          $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4512
4765
 
4513
4766
          # Transform the symbol file into the correct name.
4514
 
          compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4515
 
          finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
 
4767
          case $host in
 
4768
          *cygwin* | *mingw* )
 
4769
            if test -f "$output_objdir/${outputname}.def" ; then
 
4770
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4771
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4772
            else
 
4773
              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4774
              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4775
             fi
 
4776
            ;;
 
4777
          * )
 
4778
            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4779
            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
 
4780
            ;;
 
4781
          esac
4516
4782
          ;;
4517
4783
        *)
4518
4784
          $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4525
4791
        # really was required.
4526
4792
 
4527
4793
        # Nullify the symbol file.
4528
 
        compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
4529
 
        finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
 
4794
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
 
4795
        finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4530
4796
      fi
4531
4797
 
4532
4798
      if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4533
4799
        # Replace the output file specification.
4534
 
        compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
 
4800
        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4535
4801
        link_command="$compile_command$compile_rpath"
4536
4802
 
4537
4803
        # We have no uninstalled library dependencies, so finalize right now.
4538
4804
        $show "$link_command"
4539
4805
        $run eval "$link_command"
4540
 
        status=$?
 
4806
        exit_status=$?
4541
4807
 
4542
4808
        # Delete the generated files.
4543
4809
        if test -n "$dlsyms"; then
4545
4811
          $run $rm "$output_objdir/${outputname}S.${objext}"
4546
4812
        fi
4547
4813
 
4548
 
        exit $status
 
4814
        exit $exit_status
4549
4815
      fi
4550
4816
 
4551
4817
      if test -n "$shlibpath_var"; then
4618
4884
        if test "$fast_install" != no; then
4619
4885
          link_command="$finalize_var$compile_command$finalize_rpath"
4620
4886
          if test "$fast_install" = yes; then
4621
 
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
 
4887
            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4622
4888
          else
4623
4889
            # fast_install is set to needless
4624
4890
            relink_command=
4655
4921
          fi
4656
4922
        done
4657
4923
        relink_command="(cd `pwd`; $relink_command)"
4658
 
        relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
4924
        relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4659
4925
      fi
4660
4926
 
4661
4927
      # Quote $echo for shipping.
4685
4951
        esac
4686
4952
        case $host in
4687
4953
          *cygwin* | *mingw* )
4688
 
            cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
4689
 
            cwrapper=`$echo ${output}.exe`
4690
 
            $rm $cwrappersource $cwrapper
4691
 
            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
 
4954
            output_name=`basename $output`
 
4955
            output_path=`dirname $output`
 
4956
            cwrappersource="$output_path/$objdir/lt-$output_name.c"
 
4957
            cwrapper="$output_path/$output_name.exe"
 
4958
            $rm $cwrappersource $cwrapper
 
4959
            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4692
4960
 
4693
4961
            cat > $cwrappersource <<EOF
4694
4962
 
4713
4981
#include <malloc.h>
4714
4982
#include <stdarg.h>
4715
4983
#include <assert.h>
 
4984
#include <string.h>
 
4985
#include <ctype.h>
 
4986
#include <sys/stat.h>
4716
4987
 
4717
4988
#if defined(PATH_MAX)
4718
4989
# define LT_PATHMAX PATH_MAX
4723
4994
#endif
4724
4995
 
4725
4996
#ifndef DIR_SEPARATOR
4726
 
#define DIR_SEPARATOR '/'
 
4997
# define DIR_SEPARATOR '/'
 
4998
# define PATH_SEPARATOR ':'
4727
4999
#endif
4728
5000
 
4729
5001
#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4730
5002
  defined (__OS2__)
4731
 
#define HAVE_DOS_BASED_FILE_SYSTEM
4732
 
#ifndef DIR_SEPARATOR_2
4733
 
#define DIR_SEPARATOR_2 '\\'
4734
 
#endif
 
5003
# define HAVE_DOS_BASED_FILE_SYSTEM
 
5004
# ifndef DIR_SEPARATOR_2
 
5005
#  define DIR_SEPARATOR_2 '\\'
 
5006
# endif
 
5007
# ifndef PATH_SEPARATOR_2
 
5008
#  define PATH_SEPARATOR_2 ';'
 
5009
# endif
4735
5010
#endif
4736
5011
 
4737
5012
#ifndef DIR_SEPARATOR_2
4741
5016
        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4742
5017
#endif /* DIR_SEPARATOR_2 */
4743
5018
 
 
5019
#ifndef PATH_SEPARATOR_2
 
5020
# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
 
5021
#else /* PATH_SEPARATOR_2 */
 
5022
# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
 
5023
#endif /* PATH_SEPARATOR_2 */
 
5024
 
4744
5025
#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
4745
5026
#define XFREE(stale) do { \
4746
5027
  if (stale) { free ((void *) stale); stale = 0; } \
4747
5028
} while (0)
4748
5029
 
 
5030
/* -DDEBUG is fairly common in CFLAGS.  */
 
5031
#undef DEBUG
 
5032
#if defined DEBUGWRAPPER
 
5033
# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
 
5034
#else
 
5035
# define DEBUG(format, ...)
 
5036
#endif
 
5037
 
4749
5038
const char *program_name = NULL;
4750
5039
 
4751
5040
void * xmalloc (size_t num);
4752
5041
char * xstrdup (const char *string);
4753
 
char * basename (const char *name);
4754
 
char * fnqualify(const char *path);
 
5042
const char * base_name (const char *name);
 
5043
char * find_executable(const char *wrapper);
 
5044
int    check_executable(const char *path);
4755
5045
char * strendzap(char *str, const char *pat);
4756
5046
void lt_fatal (const char *message, ...);
4757
5047
 
4761
5051
  char **newargz;
4762
5052
  int i;
4763
5053
 
4764
 
  program_name = (char *) xstrdup ((char *) basename (argv[0]));
 
5054
  program_name = (char *) xstrdup (base_name (argv[0]));
 
5055
  DEBUG("(main) argv[0]      : %s\n",argv[0]);
 
5056
  DEBUG("(main) program_name : %s\n",program_name);
4765
5057
  newargz = XMALLOC(char *, argc+2);
4766
5058
EOF
4767
5059
 
4768
 
            cat >> $cwrappersource <<EOF
4769
 
  newargz[0] = "$SHELL";
 
5060
            cat >> $cwrappersource <<EOF
 
5061
  newargz[0] = (char *) xstrdup("$SHELL");
4770
5062
EOF
4771
5063
 
4772
 
            cat >> $cwrappersource <<"EOF"
4773
 
  newargz[1] = fnqualify(argv[0]);
 
5064
            cat >> $cwrappersource <<"EOF"
 
5065
  newargz[1] = find_executable(argv[0]);
 
5066
  if (newargz[1] == NULL)
 
5067
    lt_fatal("Couldn't find %s", argv[0]);
 
5068
  DEBUG("(main) found exe at : %s\n",newargz[1]);
4774
5069
  /* we know the script has the same name, without the .exe */
4775
5070
  /* so make sure newargz[1] doesn't end in .exe */
4776
5071
  strendzap(newargz[1],".exe");
4777
5072
  for (i = 1; i < argc; i++)
4778
5073
    newargz[i+1] = xstrdup(argv[i]);
4779
5074
  newargz[argc+1] = NULL;
4780
 
EOF
4781
 
 
4782
 
            cat >> $cwrappersource <<EOF
 
5075
 
 
5076
  for (i=0; i<argc+1; i++)
 
5077
  {
 
5078
    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
 
5079
    ;
 
5080
  }
 
5081
 
 
5082
EOF
 
5083
 
 
5084
            case $host_os in
 
5085
              mingw*)
 
5086
                cat >> $cwrappersource <<EOF
 
5087
  execv("$SHELL",(char const **)newargz);
 
5088
EOF
 
5089
              ;;
 
5090
              *)
 
5091
                cat >> $cwrappersource <<EOF
4783
5092
  execv("$SHELL",newargz);
4784
5093
EOF
 
5094
              ;;
 
5095
            esac
4785
5096
 
4786
 
            cat >> $cwrappersource <<"EOF"
 
5097
            cat >> $cwrappersource <<"EOF"
4787
5098
  return 127;
4788
5099
}
4789
5100
 
4804
5115
;
4805
5116
}
4806
5117
 
4807
 
char *
4808
 
basename (const char *name)
 
5118
const char *
 
5119
base_name (const char *name)
4809
5120
{
4810
5121
  const char *base;
4811
5122
 
4812
5123
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4813
5124
  /* Skip over the disk name in MSDOS pathnames. */
4814
 
  if (isalpha (name[0]) && name[1] == ':')
 
5125
  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
4815
5126
    name += 2;
4816
5127
#endif
4817
5128
 
4818
5129
  for (base = name; *name; name++)
4819
5130
    if (IS_DIR_SEPARATOR (*name))
4820
5131
      base = name + 1;
4821
 
  return (char *) base;
4822
 
}
4823
 
 
 
5132
  return base;
 
5133
}
 
5134
 
 
5135
int
 
5136
check_executable(const char * path)
 
5137
{
 
5138
  struct stat st;
 
5139
 
 
5140
  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
 
5141
  if ((!path) || (!*path))
 
5142
    return 0;
 
5143
 
 
5144
  if ((stat (path, &st) >= 0) &&
 
5145
      (
 
5146
        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
 
5147
#if defined (S_IXOTH)
 
5148
       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
 
5149
#endif
 
5150
#if defined (S_IXGRP)
 
5151
       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
 
5152
#endif
 
5153
       ((st.st_mode & S_IXUSR) == S_IXUSR))
 
5154
      )
 
5155
    return 1;
 
5156
  else
 
5157
    return 0;
 
5158
}
 
5159
 
 
5160
/* Searches for the full path of the wrapper.  Returns
 
5161
   newly allocated full path name if found, NULL otherwise */
4824
5162
char *
4825
 
fnqualify(const char *path)
 
5163
find_executable (const char* wrapper)
4826
5164
{
4827
 
  size_t size;
4828
 
  char *p;
 
5165
  int has_slash = 0;
 
5166
  const char* p;
 
5167
  const char* p_next;
 
5168
  /* static buffer for getcwd */
4829
5169
  char tmp[LT_PATHMAX + 1];
4830
 
 
4831
 
  assert(path != NULL);
4832
 
 
4833
 
  /* Is it qualified already? */
4834
 
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4835
 
  if (isalpha (path[0]) && path[1] == ':')
4836
 
    return xstrdup (path);
4837
 
#endif
4838
 
  if (IS_DIR_SEPARATOR (path[0]))
4839
 
    return xstrdup (path);
4840
 
 
4841
 
  /* prepend the current directory */
4842
 
  /* doesn't handle '~' */
 
5170
  int tmp_len;
 
5171
  char* concat_name;
 
5172
 
 
5173
  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
 
5174
 
 
5175
  if ((wrapper == NULL) || (*wrapper == '\0'))
 
5176
    return NULL;
 
5177
 
 
5178
  /* Absolute path? */
 
5179
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
5180
  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
 
5181
  {
 
5182
    concat_name = xstrdup (wrapper);
 
5183
    if (check_executable(concat_name))
 
5184
      return concat_name;
 
5185
    XFREE(concat_name);
 
5186
  }
 
5187
  else
 
5188
  {
 
5189
#endif
 
5190
    if (IS_DIR_SEPARATOR (wrapper[0]))
 
5191
    {
 
5192
      concat_name = xstrdup (wrapper);
 
5193
      if (check_executable(concat_name))
 
5194
        return concat_name;
 
5195
      XFREE(concat_name);
 
5196
    }
 
5197
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
 
5198
  }
 
5199
#endif
 
5200
 
 
5201
  for (p = wrapper; *p; p++)
 
5202
    if (*p == '/')
 
5203
    {
 
5204
      has_slash = 1;
 
5205
      break;
 
5206
    }
 
5207
  if (!has_slash)
 
5208
  {
 
5209
    /* no slashes; search PATH */
 
5210
    const char* path = getenv ("PATH");
 
5211
    if (path != NULL)
 
5212
    {
 
5213
      for (p = path; *p; p = p_next)
 
5214
      {
 
5215
        const char* q;
 
5216
        size_t p_len;
 
5217
        for (q = p; *q; q++)
 
5218
          if (IS_PATH_SEPARATOR(*q))
 
5219
            break;
 
5220
        p_len = q - p;
 
5221
        p_next = (*q == '\0' ? q : q + 1);
 
5222
        if (p_len == 0)
 
5223
        {
 
5224
          /* empty path: current directory */
 
5225
          if (getcwd (tmp, LT_PATHMAX) == NULL)
 
5226
            lt_fatal ("getcwd failed");
 
5227
          tmp_len = strlen(tmp);
 
5228
          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
 
5229
          memcpy (concat_name, tmp, tmp_len);
 
5230
          concat_name[tmp_len] = '/';
 
5231
          strcpy (concat_name + tmp_len + 1, wrapper);
 
5232
        }
 
5233
        else
 
5234
        {
 
5235
          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
 
5236
          memcpy (concat_name, p, p_len);
 
5237
          concat_name[p_len] = '/';
 
5238
          strcpy (concat_name + p_len + 1, wrapper);
 
5239
        }
 
5240
        if (check_executable(concat_name))
 
5241
          return concat_name;
 
5242
        XFREE(concat_name);
 
5243
      }
 
5244
    }
 
5245
    /* not found in PATH; assume curdir */
 
5246
  }
 
5247
  /* Relative path | not found in path: prepend cwd */
4843
5248
  if (getcwd (tmp, LT_PATHMAX) == NULL)
4844
5249
    lt_fatal ("getcwd failed");
4845
 
  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
4846
 
  p = XMALLOC(char, size);
4847
 
  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
4848
 
  return p;
 
5250
  tmp_len = strlen(tmp);
 
5251
  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
 
5252
  memcpy (concat_name, tmp, tmp_len);
 
5253
  concat_name[tmp_len] = '/';
 
5254
  strcpy (concat_name + tmp_len + 1, wrapper);
 
5255
 
 
5256
  if (check_executable(concat_name))
 
5257
    return concat_name;
 
5258
  XFREE(concat_name);
 
5259
  return NULL;
4849
5260
}
4850
5261
 
4851
5262
char *
4889
5300
  va_end (ap);
4890
5301
}
4891
5302
EOF
4892
 
          # we should really use a build-platform specific compiler
4893
 
          # here, but OTOH, the wrappers (shell script and this C one)
4894
 
          # are only useful if you want to execute the "real" binary.
4895
 
          # Since the "real" binary is built for $host, then this
4896
 
          # wrapper might as well be built for $host, too.
4897
 
          $run $LTCC -s -o $cwrapper $cwrappersource
4898
 
          ;;
4899
 
        esac
4900
 
        $rm $output
4901
 
        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
 
5303
          # we should really use a build-platform specific compiler
 
5304
          # here, but OTOH, the wrappers (shell script and this C one)
 
5305
          # are only useful if you want to execute the "real" binary.
 
5306
          # Since the "real" binary is built for $host, then this
 
5307
          # wrapper might as well be built for $host, too.
 
5308
          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
 
5309
          ;;
 
5310
        esac
 
5311
        $rm $output
 
5312
        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4902
5313
 
4903
5314
        $echo > $output "\
4904
5315
#! $SHELL
4917
5328
Xsed='${SED} -e 1s/^X//'
4918
5329
sed_quote_subst='$sed_quote_subst'
4919
5330
 
 
5331
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
 
5332
if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
 
5333
  emulate sh
 
5334
  NULLCMD=:
 
5335
  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
 
5336
  # is contrary to our usage.  Disable this feature.
 
5337
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
5338
  setopt NO_GLOB_SUBST
 
5339
else
 
5340
  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
 
5341
fi
 
5342
BIN_SH=xpg4; export BIN_SH # for Tru64
 
5343
DUALCASE=1; export DUALCASE # for MKS sh
 
5344
 
4920
5345
# The HP-UX ksh and POSIX shell print the target directory to stdout
4921
5346
# if CDPATH is set.
4922
5347
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5059
5484
          ;;
5060
5485
        esac
5061
5486
        $echo >> $output "\
5062
 
      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
 
5487
      \$echo \"\$0: cannot exec \$program \$*\"
5063
5488
      exit $EXIT_FAILURE
5064
5489
    fi
5065
5490
  else
5128
5553
            $run ${rm}r "$gentop"
5129
5554
            $show "$mkdir $gentop"
5130
5555
            $run $mkdir "$gentop"
5131
 
            status=$?
5132
 
            if test "$status" -ne 0 && test ! -d "$gentop"; then
5133
 
              exit $status
 
5556
            exit_status=$?
 
5557
            if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
 
5558
              exit $exit_status
5134
5559
            fi
5135
5560
          fi
5136
5561
 
5245
5670
      done
5246
5671
      # Quote the link command for shipping.
5247
5672
      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5248
 
      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
 
5673
      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5249
5674
      if test "$hardcode_automatic" = yes ; then
5250
5675
        relink_command=
5251
5676
      fi
5590
6015
 
5591
6016
          if test -n "$inst_prefix_dir"; then
5592
6017
            # Stick the inst_prefix_dir data into the link command.
5593
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
 
6018
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
5594
6019
          else
5595
 
            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
 
6020
            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
5596
6021
          fi
5597
6022
 
5598
6023
          $echo "$modename: warning: relinking \`$file'" 1>&2
5797
6222
          outputname=
5798
6223
          if test "$fast_install" = no && test -n "$relink_command"; then
5799
6224
            if test "$finalize" = yes && test -z "$run"; then
5800
 
              tmpdir="/tmp"
5801
 
              test -n "$TMPDIR" && tmpdir="$TMPDIR"
5802
 
              tmpdir="$tmpdir/libtool-$$"
5803
 
              save_umask=`umask`
5804
 
              umask 0077
5805
 
              if $mkdir "$tmpdir"; then
5806
 
                umask $save_umask
5807
 
              else
5808
 
                umask $save_umask
5809
 
                $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5810
 
                continue
5811
 
              fi
 
6225
              tmpdir=`func_mktempdir`
5812
6226
              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5813
6227
              outputname="$tmpdir/$file"
5814
6228
              # Replace the output file specification.
5815
 
              relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
 
6229
              relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
5816
6230
 
5817
6231
              $show "$relink_command"
5818
6232
              if $run eval "$relink_command"; then :
5932
6346
    # Exit here if they wanted silent mode.
5933
6347
    test "$show" = : && exit $EXIT_SUCCESS
5934
6348
 
5935
 
    $echo "----------------------------------------------------------------------"
 
6349
    $echo "X----------------------------------------------------------------------" | $Xsed
5936
6350
    $echo "Libraries have been installed in:"
5937
6351
    for libdir in $libdirs; do
5938
6352
      $echo "   $libdir"
5965
6379
    $echo
5966
6380
    $echo "See any operating system documentation about shared libraries for"
5967
6381
    $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5968
 
    $echo "----------------------------------------------------------------------"
 
6382
    $echo "X----------------------------------------------------------------------" | $Xsed
5969
6383
    exit $EXIT_SUCCESS
5970
6384
    ;;
5971
6385
 
6023
6437
        if test -f "$dir/$objdir/$dlname"; then
6024
6438
          dir="$dir/$objdir"
6025
6439
        else
6026
 
          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6027
 
          exit $EXIT_FAILURE
 
6440
          if test ! -f "$dir/$dlname"; then
 
6441
            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
 
6442
            exit $EXIT_FAILURE
 
6443
          fi
6028
6444
        fi
6029
6445
        ;;
6030
6446
 
6088
6504
      fi
6089
6505
 
6090
6506
      # Restore saved environment variables
6091
 
      if test "${save_LC_ALL+set}" = set; then
6092
 
        LC_ALL="$save_LC_ALL"; export LC_ALL
6093
 
      fi
6094
 
      if test "${save_LANG+set}" = set; then
6095
 
        LANG="$save_LANG"; export LANG
6096
 
      fi
 
6507
      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
6508
      do
 
6509
        eval "if test \"\${save_$lt_var+set}\" = set; then
 
6510
                $lt_var=\$save_$lt_var; export $lt_var
 
6511
              fi"
 
6512
      done
6097
6513
 
6098
6514
      # Now prepare to actually exec the command.
6099
6515
      exec_cmd="\$cmd$args"
6182
6598
            rmfiles="$rmfiles $objdir/$n"
6183
6599
          done
6184
6600
          test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6185
 
          test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6186
6601
 
6187
 
          if test "$mode" = uninstall; then
 
6602
          case "$mode" in
 
6603
          clean)
 
6604
            case "  $library_names " in
 
6605
            # "  " in the beginning catches empty $dlname
 
6606
            *" $dlname "*) ;;
 
6607
            *) rmfiles="$rmfiles $objdir/$dlname" ;;
 
6608
            esac
 
6609
             test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
 
6610
            ;;
 
6611
          uninstall)
6188
6612
            if test -n "$library_names"; then
6189
6613
              # Do each command in the postuninstall commands.
6190
6614
              cmds=$postuninstall_cmds
6217
6641
              IFS="$save_ifs"
6218
6642
            fi
6219
6643
            # FIXME: should reinstall the best remaining shared library.
6220
 
          fi
 
6644
            ;;
 
6645
          esac
6221
6646
        fi
6222
6647
        ;;
6223
6648
 
6441
6866
  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
6442
6867
  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6443
6868
  -export-symbols SYMFILE
6444
 
                    try to export only the symbols listed in SYMFILE
 
6869
                    try to export only the symbols listed in SYMFILE
6445
6870
  -export-symbols-regex REGEX
6446
 
                    try to export only the symbols matching REGEX
 
6871
                    try to export only the symbols matching REGEX
6447
6872
  -LLIBDIR          search LIBDIR for required installed libraries
6448
6873
  -lNAME            OUTPUT-FILE requires the installed library libNAME
6449
6874
  -module           build a library that can dlopened
6457
6882
  -release RELEASE  specify package release information
6458
6883
  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6459
6884
  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
6460
 
  -static           do not do any dynamic linking of libtool libraries
 
6885
  -static           do not do any dynamic linking of uninstalled libtool libraries
 
6886
  -static-libtool-libs
 
6887
                    do not do any dynamic linking of libtool libraries
6461
6888
  -version-info CURRENT[:REVISION[:AGE]]
6462
 
                    specify library version info [each variable defaults to 0]
 
6889
                    specify library version info [each variable defaults to 0]
6463
6890
 
6464
6891
All other options (arguments beginning with \`-') are ignored.
6465
6892
 
6516
6943
# configuration.  But we'll never go from static-only to shared-only.
6517
6944
 
6518
6945
# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6519
 
build_libtool_libs=no
6520
 
build_old_libs=yes
 
6946
disable_libs=shared
6521
6947
# ### END LIBTOOL TAG CONFIG: disable-shared
6522
6948
 
6523
6949
# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6524
 
build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
 
6950
disable_libs=static
6525
6951
# ### END LIBTOOL TAG CONFIG: disable-static
6526
6952
 
6527
6953
# Local Variables: