Changeset 66b608e in mod_gnutls for config/depcomp


Ignore:
Timestamp:
Jan 11, 2013, 12:57:51 AM (8 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, upstream
Children:
bbb9bb1, e03f404
Parents:
52b649e
Message:

Imported Upstream version 0.5.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • config/depcomp

    r52b649e r66b608e  
    22# depcomp - compile a program generating dependencies as side-effects
    33
    4 scriptversion=2007-03-29.01
    5 
    6 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
    7 # Foundation, Inc.
     4scriptversion=2009-04-28.21; # UTC
     5
     6# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
     7# Software Foundation, Inc.
    88
    99# This program is free software; you can redistribute it and/or modify
     
    1818
    1919# 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., 51 Franklin Street, Fifth Floor, Boston, MA
    22 # 02110-1301, USA.
     20# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    2321
    2422# As a special exception to the GNU General Public License, if you
     
    8684   dashmflag=-xM
    8785   depmode=dashmstdout
     86fi
     87
     88cygpath_u="cygpath -u -f -"
     89if test "$depmode" = msvcmsys; then
     90   # This is just like msvisualcpp but w/o cygpath translation.
     91   # Just convert the backslash-escaped backslashes to single forward
     92   # slashes to satisfy depend.m4
     93   cygpath_u="sed s,\\\\\\\\,/,g"
     94   depmode=msvisualcpp
    8895fi
    8996
     
    193200    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
    194201    tr '
    195 ' ' ' >> $depfile
    196     echo >> $depfile
     202' ' ' >> "$depfile"
     203    echo >> "$depfile"
    197204
    198205    # The second pass generates a dummy entry for each header file.
     
    200207' < "$tmpdepfile" \
    201208   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
    202    >> $depfile
     209   >> "$depfile"
    203210  else
    204211    # The sourcefile does not contain any dependencies, so just
     
    329336    sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
    330337    # Add `dependent.h:' lines.
    331     sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
     338    sed -ne '2,${
     339               s/^ *//
     340               s/ \\*$//
     341               s/$/:/
     342               p
     343             }' "$tmpdepfile" >> "$depfile"
    332344  else
    333345    echo "#dummy" > "$depfile"
     
    405417  # Remove the call to Libtool.
    406418  if test "$libtool" = yes; then
    407     while test $1 != '--mode=compile'; do
     419    while test "X$1" != 'X--mode=compile'; do
    408420      shift
    409421    done
     
    456468  # Remove any Libtool call
    457469  if test "$libtool" = yes; then
    458     while test $1 != '--mode=compile'; do
     470    while test "X$1" != 'X--mode=compile'; do
    459471      shift
    460472    done
     
    463475  # X makedepend
    464476  shift
    465   cleared=no
    466   for arg in "$@"; do
     477  cleared=no eat=no
     478  for arg
     479  do
    467480    case $cleared in
    468481    no)
     
    470483      cleared=yes ;;
    471484    esac
     485    if test $eat = yes; then
     486      eat=no
     487      continue
     488    fi
    472489    case "$arg" in
    473490    -D*|-I*)
     
    475492    # Strip any option that makedepend may not understand.  Remove
    476493    # the object too, otherwise makedepend will parse it as a source file.
     494    -arch)
     495      eat=yes ;;
    477496    -*|$object)
    478497      ;;
     
    481500    esac
    482501  done
    483   obj_suffix="`echo $object | sed 's/^.*\././'`"
     502  obj_suffix=`echo "$object" | sed 's/^.*\././'`
    484503  touch "$tmpdepfile"
    485504  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
     
    501520  # Remove the call to Libtool.
    502521  if test "$libtool" = yes; then
    503     while test $1 != '--mode=compile'; do
     522    while test "X$1" != 'X--mode=compile'; do
    504523      shift
    505524    done
     
    539558msvisualcpp)
    540559  # Important note: in order to support this mode, a compiler *must*
    541   # always write the preprocessed file to stdout, regardless of -o,
    542   # because we must use -o when running libtool.
     560  # always write the preprocessed file to stdout.
    543561  "$@" || exit $?
     562
     563  # Remove the call to Libtool.
     564  if test "$libtool" = yes; then
     565    while test "X$1" != 'X--mode=compile'; do
     566      shift
     567    done
     568    shift
     569  fi
     570
    544571  IFS=" "
    545572  for arg
    546573  do
    547574    case "$arg" in
     575    -o)
     576      shift
     577      ;;
     578    $object)
     579      shift
     580      ;;
    548581    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
    549582        set fnord "$@"
     
    558591    esac
    559592  done
    560   "$@" -E |
    561   sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
     593  "$@" -E 2>/dev/null |
     594  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
    562595  rm -f "$depfile"
    563596  echo "$object : \\" > "$depfile"
    564   . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::    \1 \\:p' >> "$depfile"
     597  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::      \1 \\:p' >> "$depfile"
    565598  echo "        " >> "$depfile"
    566   . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
     599  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
    567600  rm -f "$tmpdepfile"
     601  ;;
     602
     603msvcmsys)
     604  # This case exists only to let depend.m4 do its work.  It works by
     605  # looking at the text of this script.  This case will never be run,
     606  # since it is checked for above.
     607  exit 1
    568608  ;;
    569609
     
    586626# time-stamp-start: "scriptversion="
    587627# time-stamp-format: "%:y-%02m-%02d.%02H"
    588 # time-stamp-end: "$"
     628# time-stamp-time-zone: "UTC"
     629# time-stamp-end: "; # UTC"
    589630# End:
Note: See TracChangeset for help on using the changeset viewer.