linux-2.6: Add a driver to run an MMC or SD card over a GPIO based SPI interface.
[openwrt-10.03/.git] / package / openssl / patches / 120-makedepend.patch
1 Index: openssl-0.9.8e/util/domd
2 ===================================================================
3 --- openssl-0.9.8e.orig/util/domd       2007-06-04 13:23:32.130849264 +0200
4 +++ openssl-0.9.8e/util/domd    2007-06-04 13:23:32.408807008 +0200
5 @@ -1,4 +1,4 @@
6 -#!/bin/sh
7 +#!/bin/bash
8  # Do a makedepend, only leave out the standard headers
9  # Written by Ben Laurie <ben@algroup.co.uk> 19 Jan 1999
10  
11 @@ -14,7 +14,8 @@
12  cp Makefile Makefile.save
13  # fake the presence of Kerberos
14  touch $TOP/krb5.h
15 -if [ "$MAKEDEPEND" = "gcc" ]; then
16 +D=${MAKEDEPEND/%*gcc/gcc}
17 +if [ "$D" = "gcc" ]; then
18      args=""
19      while [ $# -gt 0 ]; do
20         if [ "$1" != "--" ]; then args="$args $1"; fi
21 @@ -22,7 +23,7 @@
22      done
23      sed -e '/^# DO NOT DELETE.*/,$d' < Makefile > Makefile.tmp
24      echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp
25 -    gcc -D OPENSSL_DOING_MAKEDEPEND -M $args >> Makefile.tmp
26 +    ${MAKEDEPEND} -D OPENSSL_DOING_MAKEDEPEND -M $args >> Makefile.tmp
27      ${PERL} $TOP/util/clean-depend.pl < Makefile.tmp > Makefile.new
28      rm -f Makefile.tmp
29  else