summaryrefslogtreecommitdiff
path: root/devel/rcs/patches/patch-ab
blob: 48dedc194d0d466dac7a780ebe6976ae81d2f208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-ab,v 1.1 2001/10/08 16:20:46 seb Exp $

--- configure.orig	Fri Jun 16 08:57:50 1995
+++ configure
@@ -411,10 +534,15 @@
 1
 EOF
 
+# configure's patch is hand-trimmed after regen from patched configure.in
+
 # Check whether --with-diffutils or --without-diffutils was given.
-withval="$with_diffutils"
-if test -n "$withval"; then
-  with_diffutils=$withval
+if test "${with_diffutils+set}" = set; then
+  withval="$with_diffutils"
+  case $withval in
+    yes) with_diffutils=diff;;
+    *) with_diffutils=$withval;;
+   esac
 else
   with_diffutils=no
 
@@ -422,8 +550,10 @@
 
 
 case $with_diffutils in
-yes)
-  : ${DIFF='$(bindir)/diff'}
+no)
+  :;;
+*)
+  : ${DIFF='$(bindir)/'$with_diffutils}
   : ${DIFF3=${DIFF}3}
   : ${DIFF3_BIN=1}
   : ${DIFFFLAGS=-an}