Changeset 4569 for trunk/admin

Show
Ignore:
Timestamp:
08/16/06 04:42:46 (2 years ago)
Author:
erijo
Message:

Updated libtool to version 1.5.22.

Location:
trunk/admin
Files:
1 removed
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/config.guess

    r4526 r4569  
    44#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 
    55 
    6 timestamp='2005-08-03' 
     6timestamp='2005-12-13' 
    77 
    88# This file is free software; you can redistribute it and/or modify it 
     
    780780    echo ${UNAME_MACHINE}-pc-pw32 
    781781    exit ;; 
    782     x86:Interix*:[34]*) 
     782    x86:Interix*:[345]*) 
    783783    echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 
    784784    exit ;; 
     
    852852    #endif 
    853853EOF 
    854     eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 
     854    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 
    855855    test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 
    856856    ;; 
     
    871871    #endif 
    872872EOF 
    873     eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 
     873    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 
    874874    test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 
    875875    ;; 
     
    919919    sparc:Linux:*:* | sparc64:Linux:*:*) 
    920920    echo ${UNAME_MACHINE}-unknown-linux-gnu 
     921    exit ;; 
     922    vax:Linux:*:*) 
     923    echo ${UNAME_MACHINE}-dec-linux-gnu 
    921924    exit ;; 
    922925    x86_64:Linux:*:*) 
     
    965968    # endif 
    966969    #else 
    967     #ifdef __INTEL_COMPILER 
     970    #if defined(__INTEL_COMPILER) || defined(__PGI) 
    968971    LIBC=gnu 
    969972    #else 
     
    975978    #endif 
    976979EOF 
    977     eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 
     980    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`" 
    978981    test x"${LIBC}" != x && { 
    979982        echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 
     
    11861189    UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 
    11871190    case $UNAME_PROCESSOR in 
    1188         *86) UNAME_PROCESSOR=i686 ;; 
    11891191        unknown) UNAME_PROCESSOR=powerpc ;; 
    11901192    esac 
     
    12641266    i*86:skyos:*:*) 
    12651267    echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 
     1268    exit ;; 
     1269    i*86:rdos:*:*) 
     1270    echo ${UNAME_MACHINE}-pc-rdos 
    12661271    exit ;; 
    12671272esac 
  • trunk/admin/config.rpath

    r4526 r4569  
    33# run time search path of shared libraries in an executable. 
    44# 
    5 #   Copyright 1996-2003 Free Software Foundation, Inc. 
     5#   Copyright 1996-2005 Free Software Foundation, Inc. 
    66#   Taken from GNU libtool, 2001 
    77#   Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 
    88# 
    9 #   This program is free software; you can redistribute it and/or modify 
    10 #   it under the terms of the GNU General Public License as published by 
    11 #   the Free Software Foundation; either version 2 of the License, or 
    12 #   (at your option) any later version. 
    13 # 
    14 #   This program is distributed in the hope that it will be useful, but 
    15 #   WITHOUT ANY WARRANTY; without even the implied warranty of 
    16 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
    17 #   General Public License for more details. 
    18 # 
    19 #   You should have received a copy of the GNU General Public License 
    20 #   along with this program; if not, write to the Free Software 
    21 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
    22 # 
    23 #   As a special exception to the GNU General Public License, if you 
    24 #   distribute this file as part of a program that contains a 
    25 #   configuration script generated by Autoconf, you may include it under 
    26 #   the same distribution terms that you use for the rest of that program. 
     9#   This file is free software; the Free Software Foundation gives 
     10#   unlimited permission to copy and/or distribute it, with or without 
     11#   modifications, as long as this notice is preserved. 
    2712# 
    2813# The first argument passed to this file is the canonical host specification, 
     
    5136host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
    5237 
     38cc_basename=`echo "$CC" | sed -e 's%^.*/%%'` 
     39 
    5340# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. 
    5441 
     
    6148      wl='-Wl,' 
    6249      ;; 
     50    darwin*) 
     51      case "$cc_basename" in 
     52        xlc*) 
     53          wl='-Wl,' 
     54          ;; 
     55      esac 
     56      ;; 
    6357    mingw* | pw32* | os2*) 
    6458      ;; 
     
    7266      ;; 
    7367    linux*) 
    74       case $CC in 
    75         icc|ecc) 
     68      case $cc_basename in 
     69        icc* | ecc*) 
    7670          wl='-Wl,' 
    7771          ;; 
    78         ccc) 
     72        pgcc | pgf77 | pgf90) 
    7973          wl='-Wl,' 
     74          ;; 
     75        ccc*) 
     76          wl='-Wl,' 
     77          ;; 
     78        como) 
     79          wl='-lopt=' 
    8080          ;; 
    8181      esac 
     
    9696      ;; 
    9797    sysv4*MP*) 
     98      ;; 
     99    unicos*) 
     100      wl='-Wl,' 
    98101      ;; 
    99102    uts4*) 
     
    139142      # to version 4, is to share data among multiple programs linked 
    140143      # with the same dynamic library.  Since this doesn't match the 
    141       # behavior of shared libraries on other platforms, we can use 
     144      # behavior of shared libraries on other platforms, we cannot use 
    142145      # them. 
    143146      ld_shlibs=no 
    144147      ;; 
    145148    beos*) 
    146       if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 
     149      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 
    147150        : 
    148151      else 
     
    163166      ;; 
    164167    solaris* | sysv5*) 
    165       if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 
    166         ld_shlibs=no 
    167       elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 
     168      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 
     169        ld_shlibs=no 
     170      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 
    168171        : 
    169172      else 
     
    174177      hardcode_direct=yes 
    175178      ;; 
     179    linux*) 
     180      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 
     181        : 
     182      else 
     183        ld_shlibs=no 
     184      fi 
     185      ;; 
    176186    *) 
    177       if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 
     187      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 
    178188        : 
    179189      else 
     
    267277      ld_shlibs=no 
    268278      ;; 
    269     bsdi4*) 
     279    bsdi[45]*) 
    270280      ;; 
    271281    cygwin* | mingw* | pw32*) 
     
    278288      ;; 
    279289    darwin* | rhapsody*) 
    280       if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
    281         hardcode_direct=no 
     290      hardcode_direct=no 
     291      if test "$GCC" = yes ; then 
     292        : 
     293      else 
     294        case "$cc_basename" in 
     295          xlc*) 
     296            ;; 
     297          *) 
     298            ld_shlibs=no 
     299            ;; 
     300        esac 
    282301      fi 
    283302      ;; 
     
    296315      hardcode_minus_L=yes 
    297316      ;; 
    298     freebsd*) 
     317    freebsd* | kfreebsd*-gnu | dragonfly*) 
    299318      hardcode_libdir_flag_spec='-R$libdir' 
    300319      hardcode_direct=yes 
     
    439458  beos*) 
    440459    ;; 
    441   bsdi4*) 
     460  bsdi[45]*) 
    442461    ;; 
    443462  cygwin* | mingw* | pw32*) 
     
    450469    ;; 
    451470  freebsd1*) 
     471    ;; 
     472  kfreebsd*-gnu) 
    452473    ;; 
    453474  freebsd*) 
     
    487508  linux*) 
    488509    ;; 
     510  knetbsd*-gnu) 
     511    ;; 
    489512  netbsd*) 
    490513    ;; 
    491514  newsos6) 
    492515    ;; 
    493   nto-qnx) 
     516  nto-qnx*) 
    494517    ;; 
    495518  openbsd*) 
     
    520543escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` 
    521544 
    522 sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF 
     545LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF 
    523546 
    524547# How to pass a linker flag through the compiler. 
  • trunk/admin/config.sub

    r4526 r4569  
    44#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 
    55 
    6 timestamp='2005-07-08' 
     6timestamp='2005-12-11' 
    77 
    88# This file is (in principle) common to ALL GNU software. 
     
    120120maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 
    121121case $maybe_os in 
    122   nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 
    123   kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 
     122  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 
     123  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 
     124  storm-chaos* | os2-emx* | rtmk-nova*) 
    124125    os=-$maybe_os 
    125126    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 
     
    172173        os=-hiuxwe2 
    173174        ;; 
     175    -sco6) 
     176        os=-sco5v6 
     177        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 
     178        ;; 
    174179    -sco5) 
    175180        os=-sco3.2v5 
     
    185190        ;; 
    186191    -sco3.2v[4-9]*) 
     192        # Don't forget version if it is 3.2v4 or newer. 
     193        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 
     194        ;; 
     195    -sco5v6*) 
    187196        # Don't forget version if it is 3.2v4 or newer. 
    188197        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 
     
    258267    | mipstx39 | mipstx39el \ 
    259268    | mn10200 | mn10300 \ 
    260     | ms1 \ 
     269    | mt \ 
    261270    | msp430 \ 
    262271    | ns16k | ns32k \ 
     
    286295        ;; 
    287296    m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 
     297        ;; 
     298    ms1) 
     299        basic_machine=mt-unknown 
    288300        ;; 
    289301 
     
    337349    | mipstx39-* | mipstx39el-* \ 
    338350    | mmix-* \ 
    339     | ms1-* \ 
     351    | mt-* \ 
    340352    | msp430-* \ 
    341353    | none-* | np1-* | ns16k-* | ns32k-* \ 
     
    697709        os=-msdos 
    698710        ;; 
     711    ms1-*) 
     712        basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 
     713        ;; 
    699714    mvs) 
    700715        basic_machine=i370-ibm 
     
    859874        basic_machine=i586-unknown 
    860875        os=-pw32 
     876        ;; 
     877    rdos) 
     878        basic_machine=i386-pc 
     879        os=-rdos 
    861880        ;; 
    862881    rom68k) 
     
    11821201          | -chorusos* | -chorusrdb* \ 
    11831202          | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 
    1184           | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 
     1203          | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 
     1204          | -uxpv* | -beos* | -mpeix* | -udk* \ 
    11851205          | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 
    11861206          | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 
     
    11891209          | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 
    11901210          | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 
    1191           | -skyos* | -haiku*) 
     1211          | -skyos* | -haiku* | -rdos*) 
    11921212    # Remember, each alternative MUST END IN *, to match a version number. 
    11931213        ;; 
  • trunk/admin/depcomp

    r4526 r4569  
    11#! /bin/sh 
    2  
    32# depcomp - compile a program generating dependencies as side-effects 
    4 # Copyright 1999, 2000 Free Software Foundation, Inc. 
     3 
     4scriptversion=2005-07-09.11 
     5 
     6# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. 
    57 
    68# This program is free software; you can redistribute it and/or modify 
     
    1618# You should have received a copy of the GNU General Public License 
    1719# along with this program; if not, write to the Free Software 
    18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
    19 # 02111-1307, USA. 
     20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
     21# 02110-1301, USA. 
    2022 
    2123# As a special exception to the GNU General Public License, if you 
     
    2628# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. 
    2729 
     30case $1 in 
     31  '') 
     32     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2 
     33     exit 1; 
     34     ;; 
     35  -h | --h*) 
     36    cat <<\EOF 
     37Usage: depcomp [--help] [--version] PROGRAM [ARGS] 
     38 
     39Run PROGRAMS ARGS to compile a file, generating dependencies 
     40as side-effects. 
     41 
     42Environment variables: 
     43  depmode     Dependency tracking mode. 
     44  source      Source file read by `PROGRAMS ARGS'. 
     45  object      Object file output by `PROGRAMS ARGS'. 
     46  DEPDIR      directory where to store dependencies. 
     47  depfile     Dependency file to output. 
     48  tmpdepfile  Temporary file to use when outputing dependencies. 
     49  libtool     Whether libtool is used (yes/no). 
     50 
     51Report bugs to <bug-automake@gnu.org>. 
     52EOF 
     53    exit $? 
     54    ;; 
     55  -v | --v*) 
     56    echo "depcomp $scriptversion" 
     57    exit $? 
     58    ;; 
     59esac 
     60 
    2861if test -z "$depmode" || test -z "$source" || test -z "$object"; then 
    2962  echo "depcomp: Variables source, object and depmode must be set" 1>&2 
    3063  exit 1 
    3164fi 
    32 # `libtool' can also be set to `yes' or `no'. 
    33  
    34 depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`} 
     65 
     66# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. 
     67depfile=${depfile-`echo "$object" | 
     68  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 
    3569tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 
    3670 
     
    164198aix) 
    165199  # The C for AIX Compiler uses -M and outputs the dependencies 
    166   # in a .u file.  This file always lives in the current directory. 
    167   # Also, the AIX compiler puts `$object:' at the start of each line; 
    168   # $object doesn't have directory information. 
    169   stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` 
     200  # in a .u file.  In older versions, this file always lives in the 
     201  # current directory.  Also, the AIX compiler puts `$object:' at the 
     202  # start of each line; $object doesn't have directory information. 
     203  # Version 6 uses the directory in both cases. 
     204  stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` 
    170205  tmpdepfile="$stripped.u" 
    171   outname="$stripped.o" 
    172206  if test "$libtool" = yes; then 
    173207    "$@" -Wc,-M 
     
    175209    "$@" -M 
    176210  fi 
    177  
    178211  stat=$? 
     212 
     213  if test -f "$tmpdepfile"; then : 
     214  else 
     215    stripped=`echo "$stripped" | sed 's,^.*/,,'` 
     216    tmpdepfile="$stripped.u" 
     217  fi 
     218 
    179219  if test $stat -eq 0; then : 
    180220  else 
     
    184224 
    185225  if test -f "$tmpdepfile"; then 
     226    outname="$stripped.o" 
    186227    # Each line is of the form `foo.o: dependent.h'. 
    187228    # Do two passes, one to just change these to 
     
    198239  ;; 
    199240 
     241icc) 
     242  # Intel's C compiler understands `-MD -MF file'.  However on 
     243  #    icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c 
     244  # ICC 7.0 will fill foo.d with something like 
     245  #    foo.o: sub/foo.c 
     246  #    foo.o: sub/foo.h 
     247  # which is wrong.  We want: 
     248  #    sub/foo.o: sub/foo.c 
     249  #    sub/foo.o: sub/foo.h 
     250  #    sub/foo.c: 
     251  #    sub/foo.h: 
     252  # ICC 7.1 will output 
     253  #    foo.o: sub/foo.c sub/foo.h 
     254  # and will wrap long lines using \ : 
     255  #    foo.o: sub/foo.c ... \ 
     256  #     sub/foo.h ... \ 
     257  #     ... 
     258 
     259  "$@" -MD -MF "$tmpdepfile" 
     260  stat=$? 
     261  if test $stat -eq 0; then : 
     262  else 
     263    rm -f "$tmpdepfile" 
     264    exit $stat 
     265  fi 
     266  rm -f "$depfile" 
     267  # Each line is of the form `foo.o: dependent.h', 
     268  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. 
     269  # Do two passes, one to just change these to 
     270  # `$object: dependent.h' and one to simply `dependent.h:'. 
     271  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" 
     272  # Some versions of the HPUX 10.20 sed can't process this invocation 
     273  # correctly.  Breaking it into two sed invocations is a workaround. 
     274  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | 
     275    sed -e 's/$/ :/' >> "$depfile" 
     276  rm -f "$tmpdepfile" 
     277  ;; 
     278 
    200279tru64) 
    201    # The Tru64 AIX compiler uses -MD to generate dependencies as a side 
     280   # The Tru64 compiler uses -MD to generate dependencies as a side 
    202281   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. 
    203    # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put  
     282   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put 
    204283   # dependencies in `foo.d' instead, so we check for that too. 
    205284   # Subdirectories are respected. 
    206  
    207    tmpdepfile1="$object.d" 
    208    tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'`  
     285   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` 
     286   test "x$dir" = "x$object" && dir= 
     287   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 
     288 
    209289   if test "$libtool" = yes; then 
     290      # With Tru64 cc, shared objects can also be used to make a 
     291      # static library.  This mecanism is used in libtool 1.4 series to 
     292      # handle both shared and static libraries in a single compilation. 
     293      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. 
     294      # 
     295      # With libtool 1.5 this exception was removed, and libtool now 
     296      # generates 2 separate objects for the 2 libraries.  These two 
     297      # compilations output dependencies in in $dir.libs/$base.o.d and 
     298      # in $dir$base.o.d.  We have to check for both files, because 
     299      # one of the two compilations can be disabled.  We should prefer 
     300      # $dir$base.o.d over $dir.libs/$base.o.d because the latter is 
     301      # automatically cleaned when .libs/ is deleted, while ignoring 
     302      # the former would cause a distcleancheck panic. 
     303      tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4 
     304      tmpdepfile2=$dir$base.o.d          # libtool 1.5 
     305      tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5 
     306      tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504 
    210307      "$@" -Wc,-MD 
    211308   else 
     309      tmpdepfile1=$dir$base.o.d 
     310      tmpdepfile2=$dir$base.d 
     311      tmpdepfile3=$dir$base.d 
     312      tmpdepfile4=$dir$base.d 
    212313      "$@" -MD 
    213314   fi 
     
    216317   if test $stat -eq 0; then : 
    217318   else 
    218       rm -f "$tmpdepfile1" "$tmpdepfile2" 
     319      rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" 
    219320      exit $stat 
    220321   fi 
    221322 
    222    if test -f "$tmpdepfile1"; then 
    223       tmpdepfile="$tmpdepfile1" 
    224    else 
    225       tmpdepfile="$tmpdepfile2" 
    226    fi 
     323   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" 
     324   do 
     325     test -f "$tmpdepfile" && break 
     326   done 
    227327   if test -f "$tmpdepfile"; then 
    228328      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" 
    229       # That's a space and a tab in the []. 
    230       sed -e 's,^.*\.[a-z]*:[   ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" 
     329      # That's a tab and a space in the []. 
     330      sed -e 's,^.*\.[a-z]*:[    ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" 
    231331   else 
    232332      echo "#dummy" > "$depfile" 
     
    241341dashmstdout) 
    242342  # Important note: in order to support this mode, a compiler *must* 
    243   # always write the proprocessed file to stdout, regardless of -o, 
    244   # because we must use -o when running libtool. 
     343  # always write the preprocessed file to stdout, regardless of -o. 
     344  "$@" || exit $? 
     345 
     346  # Remove the call to Libtool. 
     347  if test "$libtool" = yes; then 
     348    while test $1 != '--mode=compile'; do 
     349      shift 
     350    done 
     351    shift 
     352  fi 
     353 
     354  # Remove `-o $object'. 
     355  IFS=" " 
     356  for arg 
     357  do 
     358    case $arg in 
     359    -o) 
     360      shift 
     361      ;; 
     362    $object) 
     363      shift 
     364      ;; 
     365    *) 
     366      set fnord "$@" "$arg" 
     367      shift # fnord 
     368      shift # $arg 
     369      ;; 
     370    esac 
     371  done 
     372 
    245373  test -z "$dashmflag" && dashmflag=-M 
    246   ( IFS=" " 
    247     case " $* " in 
    248     *" --mode=compile "*) # this is libtool, let us make it quiet 
    249       for arg 
    250       do # cycle over the arguments 
    251         case "$arg" in 
    252     "--mode=compile") 
    253       # insert --quiet before "--mode=compile" 
    254       set fnord "$@" --quiet 
    255       shift # fnord 
    256       ;; 
    257     esac 
    258     set fnord "$@" "$arg" 
    259     shift # fnord 
    260     shift # "$arg" 
    261       done 
    262       ;; 
    263     esac 
    264     "$@" $dashmflag | sed 's:^[^:]*\:[  ]*:'"$object"'\: :' > "$tmpdepfile" 
    265   ) & 
    266   proc=$! 
    267   "$@" 
    268   stat=$? 
    269   wait "$proc" 
    270   if test "$stat" != 0; then exit $stat; fi 
     374  # Require at least two characters before searching for `:' 
     375  # in the target name.  This is to cope with DOS-style filenames: 
     376  # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. 
     377  "$@" $dashmflag | 
     378    sed 's:^[  ]*[^: ][^:][^:]*\:[    ]*:'"$object"'\: :' > "$tmpdepfile" 
    271379  rm -f "$depfile" 
    272380  cat < "$tmpdepfile" > "$depfile" 
     
    286394 
    287395makedepend) 
     396  "$@" || exit $? 
     397  # Remove any Libtool call 
     398  if test "$libtool" = yes; then 
     399    while test $1 != '--mode=compile'; do