| @@ -1,40 +1,53 @@ | | | @@ -1,40 +1,53 @@ |
1 | $NetBSD: patch-aa,v 1.2 2004/03/16 09:48:37 cube Exp $ | | 1 | $NetBSD: patch-aa,v 1.3 2014/09/12 07:58:12 spz Exp $ |
2 | | | 2 | |
3 | --- configure.orig 2004-01-11 18:31:22.000000000 +0100 | | 3 | --- configure.orig 2003-05-18 17:25:34.000000000 +0000 |
4 | +++ configure | | 4 | +++ configure |
5 | @@ -861,6 +861,8 @@ Optional Packages: | | 5 | @@ -861,6 +861,8 @@ Optional Packages: |
6 | --without-history do not perform history database lookup | | 6 | --without-history do not perform history database lookup |
7 | --with-history=FILE use FILE as history database | | 7 | --with-history=FILE use FILE as history database |
8 | \ | | 8 | \ |
9 | + --with-history-mode={indexed|tagged} set history hash mode | | 9 | + --with-history-mode={indexed|tagged} set history hash mode |
10 | +\ | | 10 | +\ |
11 | --with-errlog=LOG_XX do syslog in category LOG_XX | | 11 | --with-errlog=LOG_XX do syslog in category LOG_XX |
12 | \ | | 12 | \ |
13 | --with-inhosts=DIR use DIR as in.hosts directory | | 13 | --with-inhosts=DIR use DIR as in.hosts directory |
14 | @@ -1743,6 +1745,12 @@ _ACEOF | | 14 | @@ -1743,6 +1745,12 @@ _ACEOF |
15 | | | 15 | |
16 | fi | | 16 | fi |
17 | | | 17 | |
18 | +# Check whether --with-history-mode or --without-history-mode was given. | | 18 | +# Check whether --with-history-mode or --without-history-mode was given. |
19 | +if test "${with_history_mode+set}" = set; then | | 19 | +if test "${with_history_mode+set}" = set; then |
20 | + withval="$with_history_mode" | | 20 | + withval="$with_history_mode" |
21 | + | | 21 | + |
22 | +fi; | | 22 | +fi; |
23 | + | | 23 | + |
24 | # Check whether --with-errlog or --without-errlog was given. | | 24 | # Check whether --with-errlog or --without-errlog was given. |
25 | if test "${with_errlog+set}" = set; then | | 25 | if test "${with_errlog+set}" = set; then |
26 | withval="$with_errlog" | | 26 | withval="$with_errlog" |
27 | @@ -1964,6 +1972,28 @@ echo $ECHO_N "checking history... $ECHO_ | | 27 | @@ -1890,9 +1898,12 @@ echo $ECHO_N "checking and found INN... |
| | | 28 | # it has been reported that some INN 2.1 had its own VERSION |
| | | 29 | VERSION_save="$VERSION" |
| | | 30 | VERSION= |
| | | 31 | + # innshellvars sets TMPDIR |
| | | 32 | + TMPDIR_save="$TMPDIR" |
| | | 33 | . $NEWSCONFIG |
| | | 34 | INN_VERSION="$VERSION" |
| | | 35 | VERSION="$VERSION_save" |
| | | 36 | + TMPDIR="$TMPDIR_save" |
| | | 37 | INN_NEWSUMASK=`umask` |
| | | 38 | if test x$NEWSBIN = x ; then |
| | | 39 | echo "$as_me:$LINENO: result: ERROR: $NEWSCONFIG is probably in wrong format" >&5 |
| | | 40 | @@ -1964,6 +1975,28 @@ echo $ECHO_N "checking history... $ECHO_ |
28 | HISTORY="$with_history" | | 41 | HISTORY="$with_history" |
29 | fi | | 42 | fi |
30 | fi | | 43 | fi |
31 | + if test x$with_history_mode != x; then | | 44 | + if test x$with_history_mode != x; then |
32 | + case x$with_history_mode in | | 45 | + case x$with_history_mode in |
33 | + xindexed ) | | 46 | + xindexed ) |
34 | + echo "$as_me:$LINENO: result: $HISTORY" >&5 | | 47 | + echo "$as_me:$LINENO: result: $HISTORY" >&5 |
35 | +echo "${ECHO_T}$HISTORY" >&6 | | 48 | +echo "${ECHO_T}$HISTORY" >&6 |
36 | + ;; | | 49 | + ;; |
37 | + xtagged ) | | 50 | + xtagged ) |
38 | + echo "$as_me:$LINENO: result: $HISTORY" >&5 | | 51 | + echo "$as_me:$LINENO: result: $HISTORY" >&5 |
39 | +echo "${ECHO_T}$HISTORY" >&6 | | 52 | +echo "${ECHO_T}$HISTORY" >&6 |
40 | + | | 53 | + |
| @@ -43,21 +56,21 @@ $NetBSD: patch-aa,v 1.2 2004/03/16 09:48 | | | @@ -43,21 +56,21 @@ $NetBSD: patch-aa,v 1.2 2004/03/16 09:48 |
43 | +_ACEOF | | 56 | +_ACEOF |
44 | + | | 57 | + |
45 | + ;; | | 58 | + ;; |
46 | + * ) | | 59 | + * ) |
47 | + echo "$as_me:$LINENO: result: ERROR: unknown hash mode $with_history_mode" >&5 | | 60 | + echo "$as_me:$LINENO: result: ERROR: unknown hash mode $with_history_mode" >&5 |
48 | +echo "${ECHO_T}ERROR: unknown hash mode $with_history_mode" >&6 | | 61 | +echo "${ECHO_T}ERROR: unknown hash mode $with_history_mode" >&6 |
49 | + exit 1 | | 62 | + exit 1 |
50 | + ;; | | 63 | + ;; |
51 | + esac | | 64 | + esac |
52 | + else | | 65 | + else |
53 | if test -f $HISTORY; then | | 66 | if test -f $HISTORY; then |
54 | if test -f $HISTORY.index; then | | 67 | if test -f $HISTORY.index; then |
55 | echo "$as_me:$LINENO: result: $HISTORY" >&5 | | 68 | echo "$as_me:$LINENO: result: $HISTORY" >&5 |
56 | @@ -1999,6 +2029,7 @@ echo "${ECHO_T}Try running makehistory f | | 69 | @@ -1999,6 +2032,7 @@ echo "${ECHO_T}Try running makehistory f |
57 | echo "${ECHO_T}ERROR: cannot find database $HISTORY" >&6 | | 70 | echo "${ECHO_T}ERROR: cannot find database $HISTORY" >&6 |
58 | exit 1 | | 71 | exit 1 |
59 | fi | | 72 | fi |
60 | + fi | | 73 | + fi |
61 | fi | | 74 | fi |
62 | | | 75 | |
63 | echo "$as_me:$LINENO: checking locks" >&5 | | 76 | echo "$as_me:$LINENO: checking locks" >&5 |