summaryrefslogtreecommitdiff
path: root/sysutils/screen/files/patch-ad
blob: d9981af2f6f13081febbd5b9a1607bdd9512d0b4 (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
--- configure.orig	Thu May 17 21:05:43 2001
+++ configure	Mon Jun 25 08:48:53 2001
@@ -2158,29 +2158,6 @@
   cat conftest.$ac_ext >&5
   rm -rf conftest*
   olibs="$LIBS"
-LIBS="-lcurses $olibs"
-echo "checking libcurses" 1>&6
-echo "configure:2164: checking libcurses" >&5
-cat > conftest.$ac_ext <<EOF
-#line 2166 "configure"
-#include "confdefs.h"
-
-int main() {
-
-#ifdef __hpux
-__sorry_hpux_libcurses_is_totally_broken_in_10_10();
-#else
-tgetent((char *)0, (char *)0);
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  :
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
   LIBS="-ltermcap $olibs"
 echo "checking libtermcap" 1>&6
 echo "configure:2187: checking libtermcap" >&5
@@ -2241,8 +2218,6 @@
 rm -f conftest*
 fi
 rm -f conftest*
-fi
-rm -f conftest*
 
 if test "$cross_compiling" = yes; then
     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
@@ -2253,7 +2228,7 @@
 
 main()
 {
- exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
+ exit(strcmp(tgoto("%d%d", 0, 1), "1") ? 0 : 1);
 }
 EOF
 if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
@@ -2354,18 +2329,15 @@
 fi
 rm -f conftest*
 
-if test "$ptys" != "$pdir/pty??" ; then
-p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
-p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
+# XXX: hardcoded, since port must be devfs and various setups independent
+
 cat >> confdefs.h <<EOF
-#define PTYRANGE0 "$p0"
+#define PTYRANGE0 "pqrsPQRS"
 EOF
 
 cat >> confdefs.h <<EOF
-#define PTYRANGE1 "$p1"
+#define PTYRANGE1 "0123456789abcdefghijklmnopqrstuv"
 EOF
-
-fi
 
 echo "checking default tty permissions/group" 1>&6
 echo "configure:2372: checking default tty permissions/group" >&5