summaryrefslogtreecommitdiff
path: root/sysutils/fam/patches/patch-ax
blob: cab449ebc006c1e2172b97b186acc5dd984918db (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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
$NetBSD: patch-ax,v 1.3 2004/02/09 18:14:45 jmmv Exp $

--- configure.orig	2003-04-15 08:17:16.000000000 +0200
+++ configure
@@ -9670,6 +9670,41 @@ _ACEOF
 fi
 
 
+ac_safe=`echo "mntent.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for mntent.h""... $ac_c" 1>&6
+echo "configure:5516: checking for mntent.h" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+  echo $ac_n "(cached) $ac_c" 1>&6
+else
+  cat > conftest.$ac_ext <<EOF
+#line 5521 "configure"
+#include "confdefs.h"
+#include <mntent.h>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:5526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
+  rm -rf conftest*
+  eval "ac_cv_header_$ac_safe=yes"
+else
+  echo "$ac_err" >&5
+  echo "configure: failed program was:" >&5
+  cat conftest.$ac_ext >&5
+  rm -rf conftest*
+  eval "ac_cv_header_$ac_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+  echo "$ac_t""yes" 1>&6
+  cat >> confdefs.h <<\EOF
+#define HAVE_MNTENT_H 1
+EOF
+
+else
+  echo "$ac_t""no" 1>&6
+fi
 echo "$as_me:$LINENO: checking for mountlist struct" >&5
 echo $ECHO_N "checking for mountlist struct... $ECHO_C" >&6
 cat >conftest.$ac_ext <<_ACEOF
@@ -9791,203 +9826,6 @@ fi
 
 
 
-    echo "$as_me:$LINENO: checking mntent.h for MNTTYPE_NFS" >&5
-echo $ECHO_N "checking mntent.h for MNTTYPE_NFS... $ECHO_C" >&6
-    cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <mntent.h>
-int
-main ()
-{
-const char *foo = MNTTYPE_NFS;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-         { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  fam_have_decl_in_mntent=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fam_have_decl_in_mntent=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-    echo "$as_me:$LINENO: result: $fam_have_decl_in_mntent" >&5
-echo "${ECHO_T}$fam_have_decl_in_mntent" >&6
-    if test "$fam_have_decl_in_mntent" = "yes"; then
-	:
-    else
-	{ { echo "$as_me:$LINENO: error: Didn't find MNTTYPE_NFS in mntent.h" >&5
-echo "$as_me: error: Didn't find MNTTYPE_NFS in mntent.h" >&2;}
-   { (exit 1); exit 1; }; }
-    fi
-
-
-    echo "$as_me:$LINENO: checking mntent.h for MNTTYPE_NFS2" >&5
-echo $ECHO_N "checking mntent.h for MNTTYPE_NFS2... $ECHO_C" >&6
-    cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <mntent.h>
-int
-main ()
-{
-const char *foo = MNTTYPE_NFS2;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-         { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  fam_have_decl_in_mntent=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fam_have_decl_in_mntent=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-    echo "$as_me:$LINENO: result: $fam_have_decl_in_mntent" >&5
-echo "${ECHO_T}$fam_have_decl_in_mntent" >&6
-    if test "$fam_have_decl_in_mntent" = "yes"; then
-	cat >>confdefs.h <<\_ACEOF
-#define HAVE_MNTTYPE_NFS2 1
-_ACEOF
-
-    else
-	:
-    fi
-
-
-    echo "$as_me:$LINENO: checking mntent.h for MNTTYPE_NFS3" >&5
-echo $ECHO_N "checking mntent.h for MNTTYPE_NFS3... $ECHO_C" >&6
-    cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <mntent.h>
-int
-main ()
-{
-const char *foo = MNTTYPE_NFS3;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-         { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  fam_have_decl_in_mntent=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fam_have_decl_in_mntent=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-    echo "$as_me:$LINENO: result: $fam_have_decl_in_mntent" >&5
-echo "${ECHO_T}$fam_have_decl_in_mntent" >&6
-    if test "$fam_have_decl_in_mntent" = "yes"; then
-	cat >>confdefs.h <<\_ACEOF
-#define HAVE_MNTTYPE_NFS3 1
-_ACEOF
-
-    else
-	:
-    fi
-
-
-    echo "$as_me:$LINENO: checking mntent.h for MNTTYPE_CACHEFS" >&5
-echo $ECHO_N "checking mntent.h for MNTTYPE_CACHEFS... $ECHO_C" >&6
-    cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <mntent.h>
-int
-main ()
-{
-const char *foo = MNTTYPE_CACHEFS;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-         { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  fam_have_decl_in_mntent=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fam_have_decl_in_mntent=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-    echo "$as_me:$LINENO: result: $fam_have_decl_in_mntent" >&5
-echo "${ECHO_T}$fam_have_decl_in_mntent" >&6
-    if test "$fam_have_decl_in_mntent" = "yes"; then
-	cat >>confdefs.h <<\_ACEOF
-#define HAVE_MNTTYPE_CACHEFS 1
-_ACEOF
-
-    else
-	:
-    fi
 
 
 echo "$as_me:$LINENO: checking netinet/in.h for bindresvport()" >&5