aboutsummaryrefslogtreecommitdiffstats
path: root/devel/xwpe/files/patch-08
blob: 962ab424a4f6fca1a7096718e458d067c7bddd87 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
--- configure.orig  Wed May  6 11:03:15 1998
+++ configure   Fri May  8 10:28:36 1998
@@ -1374,63 +1374,63 @@
 set dummy lpr; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:1377: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_PRINTER'+set}'`\" = set"; then
+if eval "test \"`echo '$''{'ac_cv_prog_PNTR'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
-  if test -n "$PRINTER"; then
-  ac_cv_prog_PRINTER="$PRINTER" # Let the user override the test.
+  if test -n "$PNTR"; then
+  ac_cv_prog_PNTR="$PNTR" # Let the user override the test.
 else
   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   for ac_dir in $PATH; do
     test -z "$ac_dir" && ac_dir=.
     if test -f $ac_dir/$ac_word; then
-      ac_cv_prog_PRINTER="lpr"
+      ac_cv_prog_PNTR="lpr"
       break
     fi
   done
   IFS="$ac_save_ifs"
 fi
 fi
-PRINTER="$ac_cv_prog_PRINTER"
-if test -n "$PRINTER"; then
-  echo "$ac_t""$PRINTER" 1>&6
+PNTR="$ac_cv_prog_PNTR"
+if test -n "$PNTR"; then
+  echo "$ac_t""$PNTR" 1>&6
 else
   echo "$ac_t""no" 1>&6
 fi
 
-if test -z "${PRINTER}"; then
+if test -z "${PNTR}"; then
  # Extract the first word of "lp", so it can be a program name with args.
 set dummy lp; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:1406: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_PRINTER'+set}'`\" = set"; then
+if eval "test \"`echo '$''{'ac_cv_prog_PNTR'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
-  if test -n "$PRINTER"; then
-  ac_cv_prog_PRINTER="$PRINTER" # Let the user override the test.
+  if test -n "$PNTR"; then
+  ac_cv_prog_PNTR="$PNTR" # Let the user override the test.
 else
   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   for ac_dir in $PATH; do
     test -z "$ac_dir" && ac_dir=.
     if test -f $ac_dir/$ac_word; then
-      ac_cv_prog_PRINTER="lp"
+      ac_cv_prog_PNTR="lp"
       break
     fi
   done
   IFS="$ac_save_ifs"
 fi
 fi
-PRINTER="$ac_cv_prog_PRINTER"
-if test -n "$PRINTER"; then
-  echo "$ac_t""$PRINTER" 1>&6
+PNTR="$ac_cv_prog_PNTR"
+if test -n "$PNTR"; then
+  echo "$ac_t""$PNTR" 1>&6
 else
   echo "$ac_t""no" 1>&6
 fi
 
 fi
-if test -n "${PRINTER}"; then
+if test -n "${PNTR}"; then
  cat >> confdefs.h <<EOF
-#define PRNTCMD "$PRINTER"
+#define PRNTCMD "lpr"
 EOF
 
 else
@@ -1559,6 +1559,8 @@
                               \
     /usr/openwin/include      \
     /usr/openwin/share/include \
+    /usr/dt/include      \
+    /usr/dt/share/include \
     ; \
   do
     if test -r "$ac_dir/$x_direct_test_include"; then
@@ -1680,10 +1682,14 @@
 #define X_DISPLAY_MISSING 1
 EOF
 
-  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
+  X_INC= X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 else
   if test -n "$x_includes"; then
     X_CFLAGS="$X_CFLAGS -I$x_includes"
+   if [ X"$X_INC" != X ]; then
+     X_INC="${X_INC}:"
+   fi
+   X_INC="${X_INC}$x_includes"
   fi
 
   # It would also be nice to do this for all -L options, not just this one.
@@ -2454,8 +2460,9 @@
 s%@CPP@%$CPP%g
 s%@RANLIB@%$RANLIB%g
 s%@XDB@%$XDB%g
-s%@PRINTER@%$PRINTER%g
+s%@PNTR@%$PNTR%g
 s%@X_CFLAGS@%$X_CFLAGS%g
+s%@X_INC@%$X_INC%g
 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
 s%@X_LIBS@%$X_LIBS%g
 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g