Merge lp:~gandelman-a/ubuntu/precise/ipsec-tools/merge into lp:ubuntu/precise/ipsec-tools
- Precise (12.04)
- merge
- Merge into precise
Proposed by
Adam Gandelman
Status: | Merged |
---|---|
Merged at revision: | 30 |
Proposed branch: | lp:~gandelman-a/ubuntu/precise/ipsec-tools/merge |
Merge into: | lp:ubuntu/precise/ipsec-tools |
Diff against target: |
72817 lines (+974/-70659) 51 files modified
.pc/0001-extend-setkey.8-manpage-esp-udp-tcp-md5.patch/src/setkey/setkey.8 (+0/-837) .pc/FTBFS2_kfreebsd.patch/configure (+0/-17000) .pc/FTBFS2_kfreebsd.patch/configure.ac (+0/-826) .pc/FTBFS2_kfreebsd.patch/src/libipsec/key_debug.c (+0/-899) .pc/FTBFS2_kfreebsd.patch/src/libipsec/policy_token.c (+0/-2092) .pc/FTBFS2_kfreebsd.patch/src/libipsec/policy_token.l (+0/-192) .pc/FTBFS2_kfreebsd.patch/src/racoon/isakmp.c (+0/-3698) .pc/FTBFS2_kfreebsd.patch/src/racoon/nattraversal.c (+0/-553) .pc/FTBFS2_kfreebsd.patch/src/racoon/pfkey.c (+0/-3993) .pc/FTBFS2_kfreebsd.patch/src/setkey/token.c (+0/-2927) .pc/FTBFS2_kfreebsd.patch/src/setkey/token.l (+0/-359) .pc/applied-patches (+0/-7) .pc/configure-pass-Wl-with-R.patch/aclocal.m4 (+0/-8974) .pc/configure-pass-Wl-with-R.patch/configure (+0/-17004) .pc/configure-pass-Wl-with-R.patch/configure.ac (+0/-830) .pc/modify-makefile-to-let-initscript-create-var-run-directory.patch/src/racoon/Makefile.in (+0/-1114) .pc/move-private-libraries-to-subfolder.patch/ltmain.sh (+0/-8413) .pc/patch-to-support-cast128-cbc-algorithm.patch/src/include-glibc/net/pfkeyv2.h (+0/-71) .pc/support-iphone-os-main-mode-with-psk.patch/src/racoon/localconf.c (+0/-358) aclocal.m4 (+2/-2) configure (+5/-9) configure.ac (+5/-9) debian/changelog (+80/-0) debian/control (+5/-4) debian/ipsec-tools.lintian-overrides (+1/-0) debian/ipsec-tools.setkey.init (+2/-0) debian/patches/FTBFS2_kfreebsd.patch (+0/-30) debian/patches/Fix-spelling-error-racoon.conf.5.patch (+18/-0) debian/patches/configure-pass-Wl-with-R.patch (+2/-60) debian/patches/ipsec-str_error-spelling.patch (+18/-0) debian/patches/series (+2/-0) debian/racoon-tool.8 (+15/-5) debian/racoon-tool.conf.5 (+83/-12) debian/racoon-tool.pl (+698/-345) debian/racoon.config (+2/-1) debian/racoon.lintian-overrides (+1/-0) debian/rules (+18/-12) debian/watch (+1/-4) ltmain.sh (+1/-1) src/include-glibc/net/pfkeyv2.h (+1/-1) src/libipsec/key_debug.c (+1/-1) src/libipsec/policy_token.c (+1/-1) src/libipsec/policy_token.l (+1/-1) src/racoon/Makefile.in (+3/-0) src/racoon/isakmp.c (+2/-5) src/racoon/localconf.c (+1/-2) src/racoon/nattraversal.c (+1/-1) src/racoon/pfkey.c (+1/-1) src/setkey/setkey.8 (+1/-3) src/setkey/token.c (+1/-1) src/setkey/token.l (+1/-1) |
To merge this branch: | bzr merge lp:~gandelman-a/ubuntu/precise/ipsec-tools/merge |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Approve | ||
Ubuntu branches | Pending | ||
Review via email: mp+80271@code.launchpad.net |
Commit message
Description of the change
ipsec-tools (1:0.8.0-9ubuntu1) precise; urgency=low
* Merge from Debian unstable (LP: #881097). Remaining changes:
- debian/control: Depend on lsb-base
- debian/rules: switch -U_FORTIFY_SOURCE for -D_FORTIFY_SOURCE=0
* Dropped changes:
- Modify configure.ac to not convert -RXYZ to -Wl,-RXYZ, and regenerate
configure (Applied in debian via configure-
- debian/
(Fixed in Debian)
-- Adam Gandelman <email address hidden> Mon, 24 Oct 2011 12:08:24 -0700
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === removed directory '.pc/0001-extend-setkey.8-manpage-esp-udp-tcp-md5.patch' | |||
2 | === removed directory '.pc/0001-extend-setkey.8-manpage-esp-udp-tcp-md5.patch/src' | |||
3 | === removed directory '.pc/0001-extend-setkey.8-manpage-esp-udp-tcp-md5.patch/src/setkey' | |||
4 | === removed file '.pc/0001-extend-setkey.8-manpage-esp-udp-tcp-md5.patch/src/setkey/setkey.8' | |||
5 | --- .pc/0001-extend-setkey.8-manpage-esp-udp-tcp-md5.patch/src/setkey/setkey.8 2011-03-21 10:52:37 +0000 | |||
6 | +++ .pc/0001-extend-setkey.8-manpage-esp-udp-tcp-md5.patch/src/setkey/setkey.8 1970-01-01 00:00:00 +0000 | |||
7 | @@ -1,837 +0,0 @@ | |||
8 | 1 | .\" $NetBSD: setkey.8,v 1.26 2010/12/03 14:32:52 tteras Exp $ | ||
9 | 2 | .\" | ||
10 | 3 | .\" Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. | ||
11 | 4 | .\" All rights reserved. | ||
12 | 5 | .\" | ||
13 | 6 | .\" Redistribution and use in source and binary forms, with or without | ||
14 | 7 | .\" modification, are permitted provided that the following conditions | ||
15 | 8 | .\" are met: | ||
16 | 9 | .\" 1. Redistributions of source code must retain the above copyright | ||
17 | 10 | .\" notice, this list of conditions and the following disclaimer. | ||
18 | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
19 | 12 | .\" notice, this list of conditions and the following disclaimer in the | ||
20 | 13 | .\" documentation and/or other materials provided with the distribution. | ||
21 | 14 | .\" 3. Neither the name of the project nor the names of its contributors | ||
22 | 15 | .\" may be used to endorse or promote products derived from this software | ||
23 | 16 | .\" without specific prior written permission. | ||
24 | 17 | .\" | ||
25 | 18 | .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND | ||
26 | 19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
27 | 20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
28 | 21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE | ||
29 | 22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
30 | 23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
31 | 24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
32 | 25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
33 | 26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
34 | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
35 | 28 | .\" SUCH DAMAGE. | ||
36 | 29 | .\" | ||
37 | 30 | .Dd June 4, 2010 | ||
38 | 31 | .Dt SETKEY 8 | ||
39 | 32 | .Os | ||
40 | 33 | .\" | ||
41 | 34 | .Sh NAME | ||
42 | 35 | .Nm setkey | ||
43 | 36 | .Nd manually manipulate the IPsec SA/SP database | ||
44 | 37 | .\" | ||
45 | 38 | .Sh SYNOPSIS | ||
46 | 39 | .Nm setkey | ||
47 | 40 | .Op Fl knrv | ||
48 | 41 | .Ar file ... | ||
49 | 42 | .Nm setkey | ||
50 | 43 | .Op Fl knrv | ||
51 | 44 | .Fl c | ||
52 | 45 | .Nm setkey | ||
53 | 46 | .Op Fl krv | ||
54 | 47 | .Fl f Ar filename | ||
55 | 48 | .Nm setkey | ||
56 | 49 | .Op Fl aklPrv | ||
57 | 50 | .Fl D | ||
58 | 51 | .Nm setkey | ||
59 | 52 | .Op Fl Pvp | ||
60 | 53 | .Fl F | ||
61 | 54 | .Nm setkey | ||
62 | 55 | .Op Fl H | ||
63 | 56 | .Fl x | ||
64 | 57 | .Nm setkey | ||
65 | 58 | .Op Fl ?V | ||
66 | 59 | .\" | ||
67 | 60 | .Sh DESCRIPTION | ||
68 | 61 | .Nm | ||
69 | 62 | adds, updates, dumps, or flushes | ||
70 | 63 | Security Association Database (SAD) entries | ||
71 | 64 | as well as Security Policy Database (SPD) entries in the kernel. | ||
72 | 65 | .Pp | ||
73 | 66 | .Nm | ||
74 | 67 | takes a series of operations from standard input | ||
75 | 68 | .Po | ||
76 | 69 | if invoked with | ||
77 | 70 | .Fl c | ||
78 | 71 | .Pc | ||
79 | 72 | or the file named | ||
80 | 73 | .Ar filename | ||
81 | 74 | .Po | ||
82 | 75 | if invoked with | ||
83 | 76 | .Fl f Ar filename | ||
84 | 77 | .Pc . | ||
85 | 78 | .Bl -tag -width Ds | ||
86 | 79 | .It (no flag) | ||
87 | 80 | Dump the SAD entries or SPD entries contained in the specified | ||
88 | 81 | .Ar file . | ||
89 | 82 | .It Fl ? | ||
90 | 83 | Print short help. | ||
91 | 84 | .It Fl a | ||
92 | 85 | .Nm | ||
93 | 86 | usually does not display dead SAD entries with | ||
94 | 87 | .Fl D . | ||
95 | 88 | If | ||
96 | 89 | .Fl a | ||
97 | 90 | is also specified, the dead SAD entries will be displayed as well. | ||
98 | 91 | A dead SAD entry is one that has expired but remains in the | ||
99 | 92 | system because it is referenced by some SPD entries. | ||
100 | 93 | .It Fl D | ||
101 | 94 | Dump the SAD entries. | ||
102 | 95 | If | ||
103 | 96 | .Fl P | ||
104 | 97 | is also specified, the SPD entries are dumped. | ||
105 | 98 | If | ||
106 | 99 | .Fl p | ||
107 | 100 | is specified, the ports are displayed. | ||
108 | 101 | .It Fl F | ||
109 | 102 | Flush the SAD entries. | ||
110 | 103 | If | ||
111 | 104 | .Fl P | ||
112 | 105 | is also specified, the SPD entries are flushed. | ||
113 | 106 | .It Fl H | ||
114 | 107 | Add hexadecimal dump in | ||
115 | 108 | .Fl x | ||
116 | 109 | mode. | ||
117 | 110 | .It Fl h | ||
118 | 111 | On | ||
119 | 112 | .Nx , | ||
120 | 113 | synonym for | ||
121 | 114 | .Fl H . | ||
122 | 115 | On other systems, synonym for | ||
123 | 116 | .Fl ? . | ||
124 | 117 | .It Fl k | ||
125 | 118 | Use semantics used in kernel. | ||
126 | 119 | Available only in Linux. | ||
127 | 120 | See also | ||
128 | 121 | .Fl r . | ||
129 | 122 | .It Fl l | ||
130 | 123 | Loop forever with short output on | ||
131 | 124 | .Fl D . | ||
132 | 125 | .It Fl n | ||
133 | 126 | No action. | ||
134 | 127 | The program will check validity of the input, but no changes to | ||
135 | 128 | the SPD will be made. | ||
136 | 129 | .It Fl r | ||
137 | 130 | Use semantics described in IPsec RFCs. | ||
138 | 131 | This mode is default. | ||
139 | 132 | For details see section | ||
140 | 133 | .Sx RFC vs Linux kernel semantics . | ||
141 | 134 | Available only in Linux. | ||
142 | 135 | See also | ||
143 | 136 | .Fl k . | ||
144 | 137 | .It Fl x | ||
145 | 138 | Loop forever and dump all the messages transmitted to the | ||
146 | 139 | .Dv PF_KEY | ||
147 | 140 | socket. | ||
148 | 141 | .Fl xx | ||
149 | 142 | prints the unformatted timestamps. | ||
150 | 143 | .It Fl V | ||
151 | 144 | Print version string. | ||
152 | 145 | .It Fl v | ||
153 | 146 | Be verbose. | ||
154 | 147 | The program will dump messages exchanged on the | ||
155 | 148 | .Dv PF_KEY | ||
156 | 149 | socket, including messages sent from other processes to the kernel. | ||
157 | 150 | .El | ||
158 | 151 | .Ss Configuration syntax | ||
159 | 152 | With | ||
160 | 153 | .Fl c | ||
161 | 154 | or | ||
162 | 155 | .Fl f | ||
163 | 156 | on the command line, | ||
164 | 157 | .Nm | ||
165 | 158 | accepts the following configuration syntax. | ||
166 | 159 | Lines starting with hash signs | ||
167 | 160 | .Pq Sq # | ||
168 | 161 | are treated as comment lines. | ||
169 | 162 | .Bl -tag -width Ds | ||
170 | 163 | .It Li add Oo Fl 46n Oc Ar src Ar dst Ar protocol Ar spi \ | ||
171 | 164 | Oo Ar extensions Oc Ar algorithm ... Li ; | ||
172 | 165 | Add an SAD entry. | ||
173 | 166 | .Li add | ||
174 | 167 | can fail for multiple reasons, including when the key length does | ||
175 | 168 | not match the specified algorithm. | ||
176 | 169 | .\" | ||
177 | 170 | .It Li get Oo Fl 46n Oc Ar src Ar dst Ar protocol Ar spi Li ; | ||
178 | 171 | Show an SAD entry. | ||
179 | 172 | .\" | ||
180 | 173 | .It Li delete Oo Fl 46n Oc Ar src Ar dst Ar protocol Ar spi Li ; | ||
181 | 174 | Remove an SAD entry. | ||
182 | 175 | .\" | ||
183 | 176 | .It Li deleteall Oo Fl 46n Oc Ar src Ar dst Ar protocol Li ; | ||
184 | 177 | Remove all SAD entries that match the specification. | ||
185 | 178 | .\" | ||
186 | 179 | .It Li flush Oo Ar protocol Oc Li ; | ||
187 | 180 | Clear all SAD entries matched by the options. | ||
188 | 181 | .Fl F | ||
189 | 182 | on the command line achieves the same functionality. | ||
190 | 183 | .\" | ||
191 | 184 | .It Li dump Oo Ar protocol Oc Li ; | ||
192 | 185 | Dumps all SAD entries matched by the options. | ||
193 | 186 | .Fl D | ||
194 | 187 | on the command line achieves the same functionality. | ||
195 | 188 | .\" | ||
196 | 189 | .It Li spdadd Oo Fl 46n Oc Ar src_range Ar dst_range Ar upperspec \ | ||
197 | 190 | Ar label Ar policy Li ; | ||
198 | 191 | Add an SPD entry. | ||
199 | 192 | .\" | ||
200 | 193 | .It Li spdadd tagged Ar tag Ar policy Li ; | ||
201 | 194 | Add an SPD entry based on a PF tag. | ||
202 | 195 | .Ar tag | ||
203 | 196 | must be a string surrounded by double quotes. | ||
204 | 197 | .\" | ||
205 | 198 | .It Li spdupdate Oo Fl 46n Oc Ar src_range Ar dst_range Ar upperspec \ | ||
206 | 199 | Ar label Ar policy Li ; | ||
207 | 200 | Updates an SPD entry. | ||
208 | 201 | .\" | ||
209 | 202 | .It Li spdupdate tagged Ar tag Ar policy Li ; | ||
210 | 203 | Update an SPD entry based on a PF tag. | ||
211 | 204 | .Ar tag | ||
212 | 205 | must be a string surrounded by double quotes. | ||
213 | 206 | .\" | ||
214 | 207 | .It Li spddelete Oo Fl 46n Oc Ar src_range Ar dst_range Ar upperspec \ | ||
215 | 208 | Fl P Ar direction Li ; | ||
216 | 209 | Delete an SPD entry. | ||
217 | 210 | .\" | ||
218 | 211 | .It Li spdflush Li ; | ||
219 | 212 | Clear all SPD entries. | ||
220 | 213 | .Fl FP | ||
221 | 214 | on the command line achieves the same functionality. | ||
222 | 215 | .\" | ||
223 | 216 | .It Li spddump Li ; | ||
224 | 217 | Dumps all SPD entries. | ||
225 | 218 | .Fl DP | ||
226 | 219 | on the command line achieves the same functionality. | ||
227 | 220 | .El | ||
228 | 221 | .\" | ||
229 | 222 | .Pp | ||
230 | 223 | Meta-arguments are as follows: | ||
231 | 224 | .Pp | ||
232 | 225 | .Bl -tag -compact -width Ds | ||
233 | 226 | .It Ar src | ||
234 | 227 | .It Ar dst | ||
235 | 228 | Source/destination of the secure communication is specified as | ||
236 | 229 | an IPv4/v6 address, and an optional port number between square | ||
237 | 230 | brackets. | ||
238 | 231 | .Nm | ||
239 | 232 | can resolve a FQDN into numeric addresses. | ||
240 | 233 | If the FQDN resolves into multiple addresses, | ||
241 | 234 | .Nm | ||
242 | 235 | will install multiple SAD/SPD entries into the kernel | ||
243 | 236 | by trying all possible combinations. | ||
244 | 237 | .Fl 4 , | ||
245 | 238 | .Fl 6 , | ||
246 | 239 | and | ||
247 | 240 | .Fl n | ||
248 | 241 | restrict the address resolution of FQDN in certain ways. | ||
249 | 242 | .Fl 4 | ||
250 | 243 | and | ||
251 | 244 | .Fl 6 | ||
252 | 245 | restrict results into IPv4/v6 addresses only, respectively. | ||
253 | 246 | .Fl n | ||
254 | 247 | avoids FQDN resolution and requires addresses to be numeric addresses. | ||
255 | 248 | .\" | ||
256 | 249 | .Pp | ||
257 | 250 | .It Ar protocol | ||
258 | 251 | .Ar protocol | ||
259 | 252 | is one of following: | ||
260 | 253 | .Bl -tag -width Fl -compact | ||
261 | 254 | .It Li esp | ||
262 | 255 | ESP based on rfc2406 | ||
263 | 256 | .It Li esp-old | ||
264 | 257 | ESP based on rfc1827 | ||
265 | 258 | .It Li ah | ||
266 | 259 | AH based on rfc2402 | ||
267 | 260 | .It Li ah-old | ||
268 | 261 | AH based on rfc1826 | ||
269 | 262 | .It Li ipcomp | ||
270 | 263 | IPComp | ||
271 | 264 | .It Li tcp | ||
272 | 265 | TCP-MD5 based on rfc2385 | ||
273 | 266 | .El | ||
274 | 267 | .\" | ||
275 | 268 | .Pp | ||
276 | 269 | .It Ar spi | ||
277 | 270 | Security Parameter Index | ||
278 | 271 | .Pq SPI | ||
279 | 272 | for the SAD and the SPD. | ||
280 | 273 | .Ar spi | ||
281 | 274 | must be a decimal number, or a hexadecimal number with a | ||
282 | 275 | .Dq Li 0x | ||
283 | 276 | prefix. | ||
284 | 277 | SPI values between 0 and 255 are reserved for future use by IANA | ||
285 | 278 | and cannot be used. | ||
286 | 279 | TCP-MD5 associations must use 0x1000 and therefore only have per-host | ||
287 | 280 | granularity at this time. | ||
288 | 281 | .\" | ||
289 | 282 | .Pp | ||
290 | 283 | .It Ar extensions | ||
291 | 284 | take some of the following: | ||
292 | 285 | .Bl -tag -width Fl -compact | ||
293 | 286 | .\" | ||
294 | 287 | .It Fl m Ar mode | ||
295 | 288 | Specify a security protocol mode for use. | ||
296 | 289 | .Ar mode | ||
297 | 290 | is one of following: | ||
298 | 291 | .Li transport , tunnel , | ||
299 | 292 | or | ||
300 | 293 | .Li any . | ||
301 | 294 | The default value is | ||
302 | 295 | .Li any . | ||
303 | 296 | .\" | ||
304 | 297 | .It Fl r Ar size | ||
305 | 298 | Specify window size of bytes for replay prevention. | ||
306 | 299 | .Ar size | ||
307 | 300 | must be decimal number in 32-bit word. | ||
308 | 301 | If | ||
309 | 302 | .Ar size | ||
310 | 303 | is zero or not specified, replay checks don't take place. | ||
311 | 304 | .\" | ||
312 | 305 | .It Fl u Ar id | ||
313 | 306 | Specify the identifier of the policy entry in the SPD. | ||
314 | 307 | See | ||
315 | 308 | .Ar policy . | ||
316 | 309 | .\" | ||
317 | 310 | .It Fl f Ar pad_option | ||
318 | 311 | defines the content of the ESP padding. | ||
319 | 312 | .Ar pad_option | ||
320 | 313 | is one of following: | ||
321 | 314 | .Bl -tag -width random-pad -compact | ||
322 | 315 | .It Li zero-pad | ||
323 | 316 | All the paddings are zero. | ||
324 | 317 | .It Li random-pad | ||
325 | 318 | A series of randomized values are used. | ||
326 | 319 | .It Li seq-pad | ||
327 | 320 | A series of sequential increasing numbers started from 1 are used. | ||
328 | 321 | .El | ||
329 | 322 | .\" | ||
330 | 323 | .It Fl f Li nocyclic-seq | ||
331 | 324 | Don't allow cyclic sequence numbers. | ||
332 | 325 | .\" | ||
333 | 326 | .It Fl lh Ar time | ||
334 | 327 | .It Fl ls Ar time | ||
335 | 328 | Specify hard/soft life time duration of the SA measured in seconds. | ||
336 | 329 | .\" | ||
337 | 330 | .It Fl bh Ar bytes | ||
338 | 331 | .It Fl bs Ar bytes | ||
339 | 332 | Specify hard/soft life time duration of the SA measured in bytes transported. | ||
340 | 333 | .\" | ||
341 | 334 | .It Fl ctx Ar doi Ar algorithm Ar context-name | ||
342 | 335 | Specify an access control label. | ||
343 | 336 | The access control label is interpreted by the LSM (e.g., SELinux). | ||
344 | 337 | Ultimately, it enables MAC on network communications. | ||
345 | 338 | .Bl -tag -width Fl -compact | ||
346 | 339 | .It Ar doi | ||
347 | 340 | The domain of interpretation, which is used by the | ||
348 | 341 | IKE daemon to identify the domain in which negotiation takes place. | ||
349 | 342 | .It Ar algorithm | ||
350 | 343 | Indicates the LSM for which the label is generated (e.g., SELinux). | ||
351 | 344 | .It Ar context-name | ||
352 | 345 | The string representation of the label that is interpreted by the LSM. | ||
353 | 346 | .El | ||
354 | 347 | .El | ||
355 | 348 | .\" | ||
356 | 349 | .Pp | ||
357 | 350 | .It Ar algorithm | ||
358 | 351 | .Bl -tag -width Fl -compact | ||
359 | 352 | .It Fl E Ar ealgo Ar key | ||
360 | 353 | Specify an encryption algorithm | ||
361 | 354 | .Ar ealgo | ||
362 | 355 | for ESP. | ||
363 | 356 | .It Fl E Ar ealgo Ar key Fl A Ar aalgo Ar key | ||
364 | 357 | Specify an encryption algorithm | ||
365 | 358 | .Ar ealgo , | ||
366 | 359 | as well as a payload authentication algorithm | ||
367 | 360 | .Ar aalgo , | ||
368 | 361 | for ESP. | ||
369 | 362 | .It Fl A Ar aalgo Ar key | ||
370 | 363 | Specify an authentication algorithm for AH. | ||
371 | 364 | .It Fl C Ar calgo Op Fl R | ||
372 | 365 | Specify a compression algorithm for IPComp. | ||
373 | 366 | If | ||
374 | 367 | .Fl R | ||
375 | 368 | is specified, the | ||
376 | 369 | .Ar spi | ||
377 | 370 | field value will be used as the IPComp CPI | ||
378 | 371 | .Pq compression parameter index | ||
379 | 372 | on wire as-is. | ||
380 | 373 | If | ||
381 | 374 | .Fl R | ||
382 | 375 | is not specified, | ||
383 | 376 | the kernel will use well-known CPI on wire, and | ||
384 | 377 | .Ar spi | ||
385 | 378 | field will be used only as an index for kernel internal usage. | ||
386 | 379 | .El | ||
387 | 380 | .Pp | ||
388 | 381 | .Ar key | ||
389 | 382 | must be a double-quoted character string, or a series of hexadecimal | ||
390 | 383 | digits preceded by | ||
391 | 384 | .Dq Li 0x . | ||
392 | 385 | .Pp | ||
393 | 386 | Possible values for | ||
394 | 387 | .Ar ealgo , | ||
395 | 388 | .Ar aalgo , | ||
396 | 389 | and | ||
397 | 390 | .Ar calgo | ||
398 | 391 | are specified in the | ||
399 | 392 | .Sx Algorithms | ||
400 | 393 | sections. | ||
401 | 394 | .\" | ||
402 | 395 | .Pp | ||
403 | 396 | .It Ar src_range | ||
404 | 397 | .It Ar dst_range | ||
405 | 398 | These select the communications that should be secured by IPsec. | ||
406 | 399 | They can be an IPv4/v6 address or an IPv4/v6 address range, and | ||
407 | 400 | may be accompanied by a TCP/UDP port specification. | ||
408 | 401 | This takes the following form: | ||
409 | 402 | .Bd -literal -offset | ||
410 | 403 | .Ar address | ||
411 | 404 | .Ar address/prefixlen | ||
412 | 405 | .Ar address[port] | ||
413 | 406 | .Ar address/prefixlen[port] | ||
414 | 407 | .Ed | ||
415 | 408 | .Pp | ||
416 | 409 | .Ar prefixlen | ||
417 | 410 | and | ||
418 | 411 | .Ar port | ||
419 | 412 | must be decimal numbers. | ||
420 | 413 | The square brackets around | ||
421 | 414 | .Ar port | ||
422 | 415 | are really necessary, | ||
423 | 416 | they are not man page meta-characters. | ||
424 | 417 | For FQDN resolution, the rules applicable to | ||
425 | 418 | .Ar src | ||
426 | 419 | and | ||
427 | 420 | .Ar dst | ||
428 | 421 | apply here as well. | ||
429 | 422 | .\" | ||
430 | 423 | .Pp | ||
431 | 424 | .It Ar upperspec | ||
432 | 425 | Upper-layer protocol to be used. | ||
433 | 426 | You can use one of the words in | ||
434 | 427 | .Pa /etc/protocols | ||
435 | 428 | as | ||
436 | 429 | .Ar upperspec , | ||
437 | 430 | or | ||
438 | 431 | .Li icmp6 , | ||
439 | 432 | .Li ip4 , | ||
440 | 433 | .Li gre , | ||
441 | 434 | or | ||
442 | 435 | .Li any . | ||
443 | 436 | .Li any | ||
444 | 437 | stands for | ||
445 | 438 | .Dq any protocol . | ||
446 | 439 | You can also use the protocol number. | ||
447 | 440 | Additional specification can be placed after the protocol name for | ||
448 | 441 | some protocols. | ||
449 | 442 | You can specify a type and/or a code of ICMP or ICMPv6. | ||
450 | 443 | The type is separated from a code by single comma and the code must | ||
451 | 444 | always be specified. | ||
452 | 445 | GRE key can be specified in dotted-quad format or as plain number. | ||
453 | 446 | When a zero is specified, the kernel deals with it as a wildcard. | ||
454 | 447 | Note that the kernel can not distinguish a wildcard from an ICPMv6 | ||
455 | 448 | type of zero. | ||
456 | 449 | .Pp | ||
457 | 450 | For example, the following means that the policy doesn't require IPsec | ||
458 | 451 | for any inbound Neighbor Solicitation. | ||
459 | 452 | .Dl spdadd ::/0 ::/0 icmp6 135,0 -P in none ; | ||
460 | 453 | .Pp | ||
461 | 454 | A second example of requiring transport mode encryption of specific | ||
462 | 455 | GRE tunnel: | ||
463 | 456 | .Dl spdadd 0.0.0.0 0.0.0.0 gre 1234 ipsec esp/transport//require ; | ||
464 | 457 | .Pp | ||
465 | 458 | .Em Note : | ||
466 | 459 | .Ar upperspec | ||
467 | 460 | does not work against forwarding case at this moment, | ||
468 | 461 | as it requires extra reassembly at the forwarding node | ||
469 | 462 | .Pq not implemented at this moment . | ||
470 | 463 | There are many protocols in | ||
471 | 464 | .Pa /etc/protocols , | ||
472 | 465 | but all protocols except of TCP, UDP, GRE, and ICMP may not be suitable | ||
473 | 466 | to use with IPsec. | ||
474 | 467 | You have to consider carefully what to use. | ||
475 | 468 | .\" | ||
476 | 469 | .Pp | ||
477 | 470 | .It Ar label | ||
478 | 471 | .Ar label | ||
479 | 472 | is the access control label for the policy. | ||
480 | 473 | This label is interpreted by the LSM (e.g., SELinux). | ||
481 | 474 | Ultimately, it enables MAC on network communications. | ||
482 | 475 | When a policy contains an access control label, SAs | ||
483 | 476 | negotiated with this policy will contain the label. | ||
484 | 477 | Its format: | ||
485 | 478 | .Bl -tag -width Fl -compact | ||
486 | 479 | .\" | ||
487 | 480 | .It Fl ctx Ar doi Ar algorithm Ar context-name | ||
488 | 481 | .Bl -tag -width Fl -compact | ||
489 | 482 | .It Ar doi | ||
490 | 483 | The domain of interpretation, which is used by the | ||
491 | 484 | IKE daemon to identify the domain in which negotiation takes place. | ||
492 | 485 | .It Ar algorithm | ||
493 | 486 | Indicates the LSM for which the label is generated (e.g., SELinux). | ||
494 | 487 | .It Ar context-name | ||
495 | 488 | The string representation of the label that is interpreted by the LSM. | ||
496 | 489 | .El | ||
497 | 490 | .El | ||
498 | 491 | .\" | ||
499 | 492 | .Pp | ||
500 | 493 | .It Ar policy | ||
501 | 494 | .Ar policy | ||
502 | 495 | is in one of the following three formats: | ||
503 | 496 | .Bl -item -compact | ||
504 | 497 | .It | ||
505 | 498 | .Fl P Ar direction [priority specification] Li discard | ||
506 | 499 | .It | ||
507 | 500 | .Fl P Ar direction [priority specification] Li none | ||
508 | 501 | .It | ||
509 | 502 | .Fl P Ar direction [priority specification] Li ipsec | ||
510 | 503 | .Ar protocol/mode/src-dst/level Op ... | ||
511 | 504 | .El | ||
512 | 505 | .Pp | ||
513 | 506 | You must specify the direction of its policy as | ||
514 | 507 | .Ar direction . | ||
515 | 508 | Either | ||
516 | 509 | .Ar out , | ||
517 | 510 | .Ar in , | ||
518 | 511 | or | ||
519 | 512 | .Ar fwd | ||
520 | 513 | can be used. | ||
521 | 514 | .Pp | ||
522 | 515 | .Ar priority specification | ||
523 | 516 | is used to control the placement of the policy within the SPD. | ||
524 | 517 | Policy position is determined by | ||
525 | 518 | a signed integer where higher priorities indicate the policy is placed | ||
526 | 519 | closer to the beginning of the list and lower priorities indicate the | ||
527 | 520 | policy is placed closer to the end of the list. | ||
528 | 521 | Policies with equal priorities are added at the end of groups | ||
529 | 522 | of such policies. | ||
530 | 523 | .Pp | ||
531 | 524 | Priority can only | ||
532 | 525 | be specified when setkey has been compiled against kernel headers that | ||
533 | 526 | support policy priorities (Linux \*[Gt]= 2.6.6). | ||
534 | 527 | If the kernel does not support priorities, a warning message will | ||
535 | 528 | be printed the first time a priority specification is used. | ||
536 | 529 | Policy priority takes one of the following formats: | ||
537 | 530 | .Bl -tag -width "discard" | ||
538 | 531 | .It Ar {priority,prio} offset | ||
539 | 532 | .Ar offset | ||
540 | 533 | is an integer in the range from \-2147483647 to 214783648. | ||
541 | 534 | .It Ar {priority,prio} base {+,\-} offset | ||
542 | 535 | .Ar base | ||
543 | 536 | is either | ||
544 | 537 | .Li low (\-1073741824) , | ||
545 | 538 | .Li def (0) , | ||
546 | 539 | or | ||
547 | 540 | .Li high (1073741824) | ||
548 | 541 | .Pp | ||
549 | 542 | .Ar offset | ||
550 | 543 | is an unsigned integer. | ||
551 | 544 | It can be up to 1073741824 for | ||
552 | 545 | positive offsets, and up to 1073741823 for negative offsets. | ||
553 | 546 | .El | ||
554 | 547 | .Pp | ||
555 | 548 | .Li discard | ||
556 | 549 | means the packet matching indexes will be discarded. | ||
557 | 550 | .Li none | ||
558 | 551 | means that IPsec operation will not take place onto the packet. | ||
559 | 552 | .Li ipsec | ||
560 | 553 | means that IPsec operation will take place onto the packet. | ||
561 | 554 | .Pp | ||
562 | 555 | The | ||
563 | 556 | .Ar protocol/mode/src-dst/level | ||
564 | 557 | part specifies the rule how to process the packet. | ||
565 | 558 | Either | ||
566 | 559 | .Li ah , | ||
567 | 560 | .Li esp , | ||
568 | 561 | or | ||
569 | 562 | .Li ipcomp | ||
570 | 563 | must be used as | ||
571 | 564 | .Ar protocol . | ||
572 | 565 | .Ar mode | ||
573 | 566 | is either | ||
574 | 567 | .Li transport | ||
575 | 568 | or | ||
576 | 569 | .Li tunnel . | ||
577 | 570 | If | ||
578 | 571 | .Ar mode | ||
579 | 572 | is | ||
580 | 573 | .Li tunnel , | ||
581 | 574 | you must specify the end-point addresses of the SA as | ||
582 | 575 | .Ar src | ||
583 | 576 | and | ||
584 | 577 | .Ar dst | ||
585 | 578 | with | ||
586 | 579 | .Sq - | ||
587 | 580 | between these addresses, which is used to specify the SA to use. | ||
588 | 581 | If | ||
589 | 582 | .Ar mode | ||
590 | 583 | is | ||
591 | 584 | .Li transport , | ||
592 | 585 | both | ||
593 | 586 | .Ar src | ||
594 | 587 | and | ||
595 | 588 | .Ar dst | ||
596 | 589 | can be omitted. | ||
597 | 590 | .Ar level | ||
598 | 591 | is to be one of the following: | ||
599 | 592 | .Li default , use , require , | ||
600 | 593 | or | ||
601 | 594 | .Li unique . | ||
602 | 595 | If the SA is not available in every level, the kernel will | ||
603 | 596 | ask the key exchange daemon to establish a suitable SA. | ||
604 | 597 | .Li default | ||
605 | 598 | means the kernel consults the system wide default for the protocol | ||
606 | 599 | you specified, e.g. the | ||
607 | 600 | .Li esp_trans_deflev | ||
608 | 601 | sysctl variable, when the kernel processes the packet. | ||
609 | 602 | .Li use | ||
610 | 603 | means that the kernel uses an SA if it's available, | ||
611 | 604 | otherwise the kernel keeps normal operation. | ||
612 | 605 | .Li require | ||
613 | 606 | means SA is required whenever the kernel sends a packet matched | ||
614 | 607 | with the policy. | ||
615 | 608 | .Li unique | ||
616 | 609 | is the same as | ||
617 | 610 | .Li require ; | ||
618 | 611 | in addition, it allows the policy to match the unique out-bound SA. | ||
619 | 612 | You just specify the policy level | ||
620 | 613 | .Li unique , | ||
621 | 614 | .Xr racoon 8 | ||
622 | 615 | will configure the SA for the policy. | ||
623 | 616 | If you configure the SA by manual keying for that policy, | ||
624 | 617 | you can put a decimal number as the policy identifier after | ||
625 | 618 | .Li unique | ||
626 | 619 | separated by a colon | ||
627 | 620 | .Sq \&: | ||
628 | 621 | like: | ||
629 | 622 | .Li unique:number | ||
630 | 623 | in order to bind this policy to the SA. | ||
631 | 624 | .Li number | ||
632 | 625 | must be between 1 and 32767. | ||
633 | 626 | It corresponds to | ||
634 | 627 | .Ar extensions Fl u | ||
635 | 628 | of the manual SA configuration. | ||
636 | 629 | When you want to use SA bundle, you can define multiple rules. | ||
637 | 630 | For example, if an IP header was followed by an AH header followed | ||
638 | 631 | by an ESP header followed by an upper layer protocol header, the | ||
639 | 632 | rule would be: | ||
640 | 633 | .Dl esp/transport//require ah/transport//require ; | ||
641 | 634 | The rule order is very important. | ||
642 | 635 | .Pp | ||
643 | 636 | When NAT-T is enabled in the kernel, policy matching for ESP over | ||
644 | 637 | UDP packets may be done on endpoint addresses and port | ||
645 | 638 | (this depends on the system. | ||
646 | 639 | System that do not perform the port check cannot support | ||
647 | 640 | multiple endpoints behind the same NAT). | ||
648 | 641 | When using ESP over UDP, you can specify port numbers in the endpoint | ||
649 | 642 | addresses to get the correct matching. | ||
650 | 643 | Here is an example: | ||
651 | 644 | .Bd -literal -offset | ||
652 | 645 | spdadd 10.0.11.0/24[any] 10.0.11.33/32[any] any \-P out ipsec | ||
653 | 646 | esp/tunnel/192.168.0.1[4500]-192.168.1.2[30000]/require ; | ||
654 | 647 | |||
655 | 648 | .Ed | ||
656 | 649 | These ports must be left unspecified (which defaults to 0) for | ||
657 | 650 | anything other than ESP over UDP. | ||
658 | 651 | They can be displayed in SPD dump using | ||
659 | 652 | .Nm | ||
660 | 653 | .Fl DPp . | ||
661 | 654 | .Pp | ||
662 | 655 | Note that | ||
663 | 656 | .Dq Li discard | ||
664 | 657 | and | ||
665 | 658 | .Dq Li none | ||
666 | 659 | are not in the syntax described in | ||
667 | 660 | .Xr ipsec_set_policy 3 . | ||
668 | 661 | There are a few differences in the syntax. | ||
669 | 662 | See | ||
670 | 663 | .Xr ipsec_set_policy 3 | ||
671 | 664 | for detail. | ||
672 | 665 | .El | ||
673 | 666 | .\" | ||
674 | 667 | .Ss Algorithms | ||
675 | 668 | The following list shows the supported algorithms. | ||
676 | 669 | .Sy protocol | ||
677 | 670 | and | ||
678 | 671 | .Sy algorithm | ||
679 | 672 | are almost orthogonal. | ||
680 | 673 | These authentication algorithms can be used as | ||
681 | 674 | .Ar aalgo | ||
682 | 675 | in | ||
683 | 676 | .Fl A Ar aalgo | ||
684 | 677 | of the | ||
685 | 678 | .Ar protocol | ||
686 | 679 | parameter: | ||
687 | 680 | .Pp | ||
688 | 681 | .Bd -literal -offset indent | ||
689 | 682 | algorithm keylen (bits) | ||
690 | 683 | hmac-md5 128 ah: rfc2403 | ||
691 | 684 | 128 ah-old: rfc2085 | ||
692 | 685 | hmac-sha1 160 ah: rfc2404 | ||
693 | 686 | 160 ah-old: 128bit ICV (no document) | ||
694 | 687 | keyed-md5 128 ah: 96bit ICV (no document) | ||
695 | 688 | 128 ah-old: rfc1828 | ||
696 | 689 | keyed-sha1 160 ah: 96bit ICV (no document) | ||
697 | 690 | 160 ah-old: 128bit ICV (no document) | ||
698 | 691 | null 0 to 2048 for debugging | ||
699 | 692 | hmac-sha256 256 ah: 96bit ICV | ||
700 | 693 | (draft-ietf-ipsec-ciph-sha-256-00) | ||
701 | 694 | 256 ah-old: 128bit ICV (no document) | ||
702 | 695 | hmac-sha384 384 ah: 96bit ICV (no document) | ||
703 | 696 | 384 ah-old: 128bit ICV (no document) | ||
704 | 697 | hmac-sha512 512 ah: 96bit ICV (no document) | ||
705 | 698 | 512 ah-old: 128bit ICV (no document) | ||
706 | 699 | hmac-ripemd160 160 ah: 96bit ICV (RFC2857) | ||
707 | 700 | ah-old: 128bit ICV (no document) | ||
708 | 701 | aes-xcbc-mac 128 ah: 96bit ICV (RFC3566) | ||
709 | 702 | 128 ah-old: 128bit ICV (no document) | ||
710 | 703 | tcp-md5 8 to 640 tcp: rfc2385 | ||
711 | 704 | .Ed | ||
712 | 705 | .Pp | ||
713 | 706 | These encryption algorithms can be used as | ||
714 | 707 | .Ar ealgo | ||
715 | 708 | in | ||
716 | 709 | .Fl E Ar ealgo | ||
717 | 710 | of the | ||
718 | 711 | .Ar protocol | ||
719 | 712 | parameter: | ||
720 | 713 | .Pp | ||
721 | 714 | .Bd -literal -offset indent | ||
722 | 715 | algorithm keylen (bits) | ||
723 | 716 | des-cbc 64 esp-old: rfc1829, esp: rfc2405 | ||
724 | 717 | 3des-cbc 192 rfc2451 | ||
725 | 718 | null 0 to 2048 rfc2410 | ||
726 | 719 | blowfish-cbc 40 to 448 rfc2451 | ||
727 | 720 | cast128-cbc 40 to 128 rfc2451 | ||
728 | 721 | des-deriv 64 ipsec-ciph-des-derived-01 | ||
729 | 722 | 3des-deriv 192 no document | ||
730 | 723 | rijndael-cbc 128/192/256 rfc3602 | ||
731 | 724 | twofish-cbc 0 to 256 draft-ietf-ipsec-ciph-aes-cbc-01 | ||
732 | 725 | aes-ctr 160/224/288 draft-ietf-ipsec-ciph-aes-ctr-03 | ||
733 | 726 | camellia-cbc 128/192/256 rfc4312 | ||
734 | 727 | .Ed | ||
735 | 728 | .Pp | ||
736 | 729 | Note that the first 128 bits of a key for | ||
737 | 730 | .Li aes-ctr | ||
738 | 731 | will be used as AES key, and the remaining 32 bits will be used as nonce. | ||
739 | 732 | .Pp | ||
740 | 733 | These compression algorithms can be used as | ||
741 | 734 | .Ar calgo | ||
742 | 735 | in | ||
743 | 736 | .Fl C Ar calgo | ||
744 | 737 | of the | ||
745 | 738 | .Ar protocol | ||
746 | 739 | parameter: | ||
747 | 740 | .Pp | ||
748 | 741 | .Bd -literal -offset indent | ||
749 | 742 | algorithm | ||
750 | 743 | deflate rfc2394 | ||
751 | 744 | .Ed | ||
752 | 745 | .\" | ||
753 | 746 | .Ss RFC vs Linux kernel semantics | ||
754 | 747 | The Linux kernel uses the | ||
755 | 748 | .Ar fwd | ||
756 | 749 | policy instead of the | ||
757 | 750 | .Ar in | ||
758 | 751 | policy for packets what are forwarded through that particular box. | ||
759 | 752 | .Pp | ||
760 | 753 | In | ||
761 | 754 | .Ar kernel | ||
762 | 755 | mode, | ||
763 | 756 | .Nm | ||
764 | 757 | manages and shows policies and SAs exactly as they are stored in the kernel. | ||
765 | 758 | .Pp | ||
766 | 759 | In | ||
767 | 760 | .Ar RFC | ||
768 | 761 | mode, | ||
769 | 762 | .Nm | ||
770 | 763 | .Bl -item | ||
771 | 764 | .It | ||
772 | 765 | creates | ||
773 | 766 | .Ar fwd | ||
774 | 767 | policies for every | ||
775 | 768 | .Ar in | ||
776 | 769 | policy inserted | ||
777 | 770 | .It | ||
778 | 771 | (not implemented yet) filters out all | ||
779 | 772 | .Ar fwd | ||
780 | 773 | policies | ||
781 | 774 | .El | ||
782 | 775 | .Sh RETURN VALUES | ||
783 | 776 | The command exits with 0 on success, and non-zero on errors. | ||
784 | 777 | .\" | ||
785 | 778 | .Sh EXAMPLES | ||
786 | 779 | .Bd -literal -offset | ||
787 | 780 | add 3ffe:501:4819::1 3ffe:501:481d::1 esp 123457 | ||
788 | 781 | \-E des-cbc 0x3ffe05014819ffff ; | ||
789 | 782 | |||
790 | 783 | add \-6 myhost.example.com yourhost.example.com ah 123456 | ||
791 | 784 | \-A hmac-sha1 "AH SA configuration!" ; | ||
792 | 785 | |||
793 | 786 | add 10.0.11.41 10.0.11.33 esp 0x10001 | ||
794 | 787 | \-E des-cbc 0x3ffe05014819ffff | ||
795 | 788 | \-A hmac-md5 "authentication!!" ; | ||
796 | 789 | |||
797 | 790 | get 3ffe:501:4819::1 3ffe:501:481d::1 ah 123456 ; | ||
798 | 791 | |||
799 | 792 | flush ; | ||
800 | 793 | |||
801 | 794 | dump esp ; | ||
802 | 795 | |||
803 | 796 | spdadd 10.0.11.41/32[21] 10.0.11.33/32[any] any | ||
804 | 797 | \-P out ipsec esp/tunnel/192.168.0.1-192.168.1.2/require ; | ||
805 | 798 | |||
806 | 799 | add 10.1.10.34 10.1.10.36 tcp 0x1000 \-A tcp-md5 "TCP-MD5 BGP secret" ; | ||
807 | 800 | |||
808 | 801 | add 10.0.11.41 10.0.11.33 esp 0x10001 | ||
809 | 802 | \-ctx 1 1 "system_u:system_r:unconfined_t:SystemLow-SystemHigh" | ||
810 | 803 | \-E des-cbc 0x3ffe05014819ffff; | ||
811 | 804 | |||
812 | 805 | spdadd 10.0.11.41 10.0.11.33 any | ||
813 | 806 | \-ctx 1 1 "system_u:system_r:unconfined_t:SystemLow-SystemHigh" | ||
814 | 807 | \-P out ipsec esp/transport//require ; | ||
815 | 808 | .Ed | ||
816 | 809 | .\" | ||
817 | 810 | .Sh SEE ALSO | ||
818 | 811 | .Xr ipsec_set_policy 3 , | ||
819 | 812 | .Xr racoon 8 , | ||
820 | 813 | .Xr sysctl 8 | ||
821 | 814 | .Rs | ||
822 | 815 | .%T "Changed manual key configuration for IPsec" | ||
823 | 816 | .%U "http://www.kame.net/newsletter/19991007/" | ||
824 | 817 | .%D "October 1999" | ||
825 | 818 | .Re | ||
826 | 819 | .\" | ||
827 | 820 | .Sh HISTORY | ||
828 | 821 | The | ||
829 | 822 | .Nm | ||
830 | 823 | command first appeared in the WIDE Hydrangea IPv6 protocol stack | ||
831 | 824 | kit. | ||
832 | 825 | The command was completely re-designed in June 1998. | ||
833 | 826 | .\" | ||
834 | 827 | .Sh BUGS | ||
835 | 828 | .Nm | ||
836 | 829 | should report and handle syntax errors better. | ||
837 | 830 | .Pp | ||
838 | 831 | For IPsec gateway configuration, | ||
839 | 832 | .Ar src_range | ||
840 | 833 | and | ||
841 | 834 | .Ar dst_range | ||
842 | 835 | with TCP/UDP port numbers does not work, as the gateway does not | ||
843 | 836 | reassemble packets | ||
844 | 837 | .Pq it cannot inspect upper-layer headers . | ||
845 | 838 | 0 | ||
846 | === removed directory '.pc/FTBFS2_kfreebsd.patch' | |||
847 | === removed file '.pc/FTBFS2_kfreebsd.patch/configure' | |||
848 | --- .pc/FTBFS2_kfreebsd.patch/configure 2011-03-25 12:29:19 +0000 | |||
849 | +++ .pc/FTBFS2_kfreebsd.patch/configure 1970-01-01 00:00:00 +0000 | |||
850 | @@ -1,17000 +0,0 @@ | |||
851 | 1 | #! /bin/sh | ||
852 | 2 | # Guess values for system-dependent variables and create Makefiles. | ||
853 | 3 | # Generated by GNU Autoconf 2.67 for ipsec-tools 0.8.0. | ||
854 | 4 | # | ||
855 | 5 | # | ||
856 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
857 | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
858 | 8 | # Foundation, Inc. | ||
859 | 9 | # | ||
860 | 10 | # | ||
861 | 11 | # This configure script is free software; the Free Software Foundation | ||
862 | 12 | # gives unlimited permission to copy, distribute and modify it. | ||
863 | 13 | ## -------------------- ## | ||
864 | 14 | ## M4sh Initialization. ## | ||
865 | 15 | ## -------------------- ## | ||
866 | 16 | |||
867 | 17 | # Be more Bourne compatible | ||
868 | 18 | DUALCASE=1; export DUALCASE # for MKS sh | ||
869 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
870 | 20 | emulate sh | ||
871 | 21 | NULLCMD=: | ||
872 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
873 | 23 | # is contrary to our usage. Disable this feature. | ||
874 | 24 | alias -g '${1+"$@"}'='"$@"' | ||
875 | 25 | setopt NO_GLOB_SUBST | ||
876 | 26 | else | ||
877 | 27 | case `(set -o) 2>/dev/null` in #( | ||
878 | 28 | *posix*) : | ||
879 | 29 | set -o posix ;; #( | ||
880 | 30 | *) : | ||
881 | 31 | ;; | ||
882 | 32 | esac | ||
883 | 33 | fi | ||
884 | 34 | |||
885 | 35 | |||
886 | 36 | as_nl=' | ||
887 | 37 | ' | ||
888 | 38 | export as_nl | ||
889 | 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
890 | 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
891 | 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
892 | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
893 | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
894 | 44 | # but without wasting forks for bash or zsh. | ||
895 | 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
896 | 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
897 | 47 | as_echo='print -r --' | ||
898 | 48 | as_echo_n='print -rn --' | ||
899 | 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
900 | 50 | as_echo='printf %s\n' | ||
901 | 51 | as_echo_n='printf %s' | ||
902 | 52 | else | ||
903 | 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
904 | 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
905 | 55 | as_echo_n='/usr/ucb/echo -n' | ||
906 | 56 | else | ||
907 | 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
908 | 58 | as_echo_n_body='eval | ||
909 | 59 | arg=$1; | ||
910 | 60 | case $arg in #( | ||
911 | 61 | *"$as_nl"*) | ||
912 | 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
913 | 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
914 | 64 | esac; | ||
915 | 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
916 | 66 | ' | ||
917 | 67 | export as_echo_n_body | ||
918 | 68 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
919 | 69 | fi | ||
920 | 70 | export as_echo_body | ||
921 | 71 | as_echo='sh -c $as_echo_body as_echo' | ||
922 | 72 | fi | ||
923 | 73 | |||
924 | 74 | # The user is always right. | ||
925 | 75 | if test "${PATH_SEPARATOR+set}" != set; then | ||
926 | 76 | PATH_SEPARATOR=: | ||
927 | 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
928 | 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
929 | 79 | PATH_SEPARATOR=';' | ||
930 | 80 | } | ||
931 | 81 | fi | ||
932 | 82 | |||
933 | 83 | |||
934 | 84 | # IFS | ||
935 | 85 | # We need space, tab and new line, in precisely that order. Quoting is | ||
936 | 86 | # there to prevent editors from complaining about space-tab. | ||
937 | 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
938 | 88 | # splitting by setting IFS to empty value.) | ||
939 | 89 | IFS=" "" $as_nl" | ||
940 | 90 | |||
941 | 91 | # Find who we are. Look in the path if we contain no directory separator. | ||
942 | 92 | case $0 in #(( | ||
943 | 93 | *[\\/]* ) as_myself=$0 ;; | ||
944 | 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
945 | 95 | for as_dir in $PATH | ||
946 | 96 | do | ||
947 | 97 | IFS=$as_save_IFS | ||
948 | 98 | test -z "$as_dir" && as_dir=. | ||
949 | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
950 | 100 | done | ||
951 | 101 | IFS=$as_save_IFS | ||
952 | 102 | |||
953 | 103 | ;; | ||
954 | 104 | esac | ||
955 | 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
956 | 106 | # in which case we are not to be found in the path. | ||
957 | 107 | if test "x$as_myself" = x; then | ||
958 | 108 | as_myself=$0 | ||
959 | 109 | fi | ||
960 | 110 | if test ! -f "$as_myself"; then | ||
961 | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
962 | 112 | exit 1 | ||
963 | 113 | fi | ||
964 | 114 | |||
965 | 115 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
966 | 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
967 | 117 | # suppresses any "Segmentation fault" message there. '((' could | ||
968 | 118 | # trigger a bug in pdksh 5.2.14. | ||
969 | 119 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
970 | 120 | do eval test x\${$as_var+set} = xset \ | ||
971 | 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
972 | 122 | done | ||
973 | 123 | PS1='$ ' | ||
974 | 124 | PS2='> ' | ||
975 | 125 | PS4='+ ' | ||
976 | 126 | |||
977 | 127 | # NLS nuisances. | ||
978 | 128 | LC_ALL=C | ||
979 | 129 | export LC_ALL | ||
980 | 130 | LANGUAGE=C | ||
981 | 131 | export LANGUAGE | ||
982 | 132 | |||
983 | 133 | # CDPATH. | ||
984 | 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
985 | 135 | |||
986 | 136 | if test "x$CONFIG_SHELL" = x; then | ||
987 | 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
988 | 138 | emulate sh | ||
989 | 139 | NULLCMD=: | ||
990 | 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
991 | 141 | # is contrary to our usage. Disable this feature. | ||
992 | 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
993 | 143 | setopt NO_GLOB_SUBST | ||
994 | 144 | else | ||
995 | 145 | case \`(set -o) 2>/dev/null\` in #( | ||
996 | 146 | *posix*) : | ||
997 | 147 | set -o posix ;; #( | ||
998 | 148 | *) : | ||
999 | 149 | ;; | ||
1000 | 150 | esac | ||
1001 | 151 | fi | ||
1002 | 152 | " | ||
1003 | 153 | as_required="as_fn_return () { (exit \$1); } | ||
1004 | 154 | as_fn_success () { as_fn_return 0; } | ||
1005 | 155 | as_fn_failure () { as_fn_return 1; } | ||
1006 | 156 | as_fn_ret_success () { return 0; } | ||
1007 | 157 | as_fn_ret_failure () { return 1; } | ||
1008 | 158 | |||
1009 | 159 | exitcode=0 | ||
1010 | 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
1011 | 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
1012 | 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
1013 | 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
1014 | 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
1015 | 165 | |||
1016 | 166 | else | ||
1017 | 167 | exitcode=1; echo positional parameters were not saved. | ||
1018 | 168 | fi | ||
1019 | 169 | test x\$exitcode = x0 || exit 1" | ||
1020 | 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
1021 | 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
1022 | 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
1023 | 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
1024 | 174 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
1025 | 175 | if (eval "$as_required") 2>/dev/null; then : | ||
1026 | 176 | as_have_required=yes | ||
1027 | 177 | else | ||
1028 | 178 | as_have_required=no | ||
1029 | 179 | fi | ||
1030 | 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
1031 | 181 | |||
1032 | 182 | else | ||
1033 | 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1034 | 184 | as_found=false | ||
1035 | 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
1036 | 186 | do | ||
1037 | 187 | IFS=$as_save_IFS | ||
1038 | 188 | test -z "$as_dir" && as_dir=. | ||
1039 | 189 | as_found=: | ||
1040 | 190 | case $as_dir in #( | ||
1041 | 191 | /*) | ||
1042 | 192 | for as_base in sh bash ksh sh5; do | ||
1043 | 193 | # Try only shells that exist, to save several forks. | ||
1044 | 194 | as_shell=$as_dir/$as_base | ||
1045 | 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
1046 | 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
1047 | 197 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
1048 | 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
1049 | 199 | break 2 | ||
1050 | 200 | fi | ||
1051 | 201 | fi | ||
1052 | 202 | done;; | ||
1053 | 203 | esac | ||
1054 | 204 | as_found=false | ||
1055 | 205 | done | ||
1056 | 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
1057 | 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
1058 | 208 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
1059 | 209 | fi; } | ||
1060 | 210 | IFS=$as_save_IFS | ||
1061 | 211 | |||
1062 | 212 | |||
1063 | 213 | if test "x$CONFIG_SHELL" != x; then : | ||
1064 | 214 | # We cannot yet assume a decent shell, so we have to provide a | ||
1065 | 215 | # neutralization value for shells without unset; and this also | ||
1066 | 216 | # works around shells that cannot unset nonexistent variables. | ||
1067 | 217 | BASH_ENV=/dev/null | ||
1068 | 218 | ENV=/dev/null | ||
1069 | 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
1070 | 220 | export CONFIG_SHELL | ||
1071 | 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
1072 | 222 | fi | ||
1073 | 223 | |||
1074 | 224 | if test x$as_have_required = xno; then : | ||
1075 | 225 | $as_echo "$0: This script requires a shell more modern than all" | ||
1076 | 226 | $as_echo "$0: the shells that I found on your system." | ||
1077 | 227 | if test x${ZSH_VERSION+set} = xset ; then | ||
1078 | 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
1079 | 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
1080 | 230 | else | ||
1081 | 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | ||
1082 | 232 | $0: including any error possibly output before this | ||
1083 | 233 | $0: message. Then install a modern shell, or manually run | ||
1084 | 234 | $0: the script under such a shell if you do have one." | ||
1085 | 235 | fi | ||
1086 | 236 | exit 1 | ||
1087 | 237 | fi | ||
1088 | 238 | fi | ||
1089 | 239 | fi | ||
1090 | 240 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
1091 | 241 | export SHELL | ||
1092 | 242 | # Unset more variables known to interfere with behavior of common tools. | ||
1093 | 243 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
1094 | 244 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
1095 | 245 | |||
1096 | 246 | ## --------------------- ## | ||
1097 | 247 | ## M4sh Shell Functions. ## | ||
1098 | 248 | ## --------------------- ## | ||
1099 | 249 | # as_fn_unset VAR | ||
1100 | 250 | # --------------- | ||
1101 | 251 | # Portably unset VAR. | ||
1102 | 252 | as_fn_unset () | ||
1103 | 253 | { | ||
1104 | 254 | { eval $1=; unset $1;} | ||
1105 | 255 | } | ||
1106 | 256 | as_unset=as_fn_unset | ||
1107 | 257 | |||
1108 | 258 | # as_fn_set_status STATUS | ||
1109 | 259 | # ----------------------- | ||
1110 | 260 | # Set $? to STATUS, without forking. | ||
1111 | 261 | as_fn_set_status () | ||
1112 | 262 | { | ||
1113 | 263 | return $1 | ||
1114 | 264 | } # as_fn_set_status | ||
1115 | 265 | |||
1116 | 266 | # as_fn_exit STATUS | ||
1117 | 267 | # ----------------- | ||
1118 | 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
1119 | 269 | as_fn_exit () | ||
1120 | 270 | { | ||
1121 | 271 | set +e | ||
1122 | 272 | as_fn_set_status $1 | ||
1123 | 273 | exit $1 | ||
1124 | 274 | } # as_fn_exit | ||
1125 | 275 | |||
1126 | 276 | # as_fn_mkdir_p | ||
1127 | 277 | # ------------- | ||
1128 | 278 | # Create "$as_dir" as a directory, including parents if necessary. | ||
1129 | 279 | as_fn_mkdir_p () | ||
1130 | 280 | { | ||
1131 | 281 | |||
1132 | 282 | case $as_dir in #( | ||
1133 | 283 | -*) as_dir=./$as_dir;; | ||
1134 | 284 | esac | ||
1135 | 285 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
1136 | 286 | as_dirs= | ||
1137 | 287 | while :; do | ||
1138 | 288 | case $as_dir in #( | ||
1139 | 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
1140 | 290 | *) as_qdir=$as_dir;; | ||
1141 | 291 | esac | ||
1142 | 292 | as_dirs="'$as_qdir' $as_dirs" | ||
1143 | 293 | as_dir=`$as_dirname -- "$as_dir" || | ||
1144 | 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1145 | 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
1146 | 296 | X"$as_dir" : 'X\(//\)$' \| \ | ||
1147 | 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
1148 | 298 | $as_echo X"$as_dir" | | ||
1149 | 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1150 | 300 | s//\1/ | ||
1151 | 301 | q | ||
1152 | 302 | } | ||
1153 | 303 | /^X\(\/\/\)[^/].*/{ | ||
1154 | 304 | s//\1/ | ||
1155 | 305 | q | ||
1156 | 306 | } | ||
1157 | 307 | /^X\(\/\/\)$/{ | ||
1158 | 308 | s//\1/ | ||
1159 | 309 | q | ||
1160 | 310 | } | ||
1161 | 311 | /^X\(\/\).*/{ | ||
1162 | 312 | s//\1/ | ||
1163 | 313 | q | ||
1164 | 314 | } | ||
1165 | 315 | s/.*/./; q'` | ||
1166 | 316 | test -d "$as_dir" && break | ||
1167 | 317 | done | ||
1168 | 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
1169 | 319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
1170 | 320 | |||
1171 | 321 | |||
1172 | 322 | } # as_fn_mkdir_p | ||
1173 | 323 | # as_fn_append VAR VALUE | ||
1174 | 324 | # ---------------------- | ||
1175 | 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
1176 | 326 | # advantage of any shell optimizations that allow amortized linear growth over | ||
1177 | 327 | # repeated appends, instead of the typical quadratic growth present in naive | ||
1178 | 328 | # implementations. | ||
1179 | 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
1180 | 330 | eval 'as_fn_append () | ||
1181 | 331 | { | ||
1182 | 332 | eval $1+=\$2 | ||
1183 | 333 | }' | ||
1184 | 334 | else | ||
1185 | 335 | as_fn_append () | ||
1186 | 336 | { | ||
1187 | 337 | eval $1=\$$1\$2 | ||
1188 | 338 | } | ||
1189 | 339 | fi # as_fn_append | ||
1190 | 340 | |||
1191 | 341 | # as_fn_arith ARG... | ||
1192 | 342 | # ------------------ | ||
1193 | 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
1194 | 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
1195 | 345 | # must be portable across $(()) and expr. | ||
1196 | 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
1197 | 347 | eval 'as_fn_arith () | ||
1198 | 348 | { | ||
1199 | 349 | as_val=$(( $* )) | ||
1200 | 350 | }' | ||
1201 | 351 | else | ||
1202 | 352 | as_fn_arith () | ||
1203 | 353 | { | ||
1204 | 354 | as_val=`expr "$@" || test $? -eq 1` | ||
1205 | 355 | } | ||
1206 | 356 | fi # as_fn_arith | ||
1207 | 357 | |||
1208 | 358 | |||
1209 | 359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
1210 | 360 | # ---------------------------------------- | ||
1211 | 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
1212 | 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
1213 | 363 | # script with STATUS, using 1 if that was 0. | ||
1214 | 364 | as_fn_error () | ||
1215 | 365 | { | ||
1216 | 366 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
1217 | 367 | if test "$4"; then | ||
1218 | 368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1219 | 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
1220 | 370 | fi | ||
1221 | 371 | $as_echo "$as_me: error: $2" >&2 | ||
1222 | 372 | as_fn_exit $as_status | ||
1223 | 373 | } # as_fn_error | ||
1224 | 374 | |||
1225 | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
1226 | 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
1227 | 377 | as_expr=expr | ||
1228 | 378 | else | ||
1229 | 379 | as_expr=false | ||
1230 | 380 | fi | ||
1231 | 381 | |||
1232 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
1233 | 383 | as_basename=basename | ||
1234 | 384 | else | ||
1235 | 385 | as_basename=false | ||
1236 | 386 | fi | ||
1237 | 387 | |||
1238 | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
1239 | 389 | as_dirname=dirname | ||
1240 | 390 | else | ||
1241 | 391 | as_dirname=false | ||
1242 | 392 | fi | ||
1243 | 393 | |||
1244 | 394 | as_me=`$as_basename -- "$0" || | ||
1245 | 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
1246 | 396 | X"$0" : 'X\(//\)$' \| \ | ||
1247 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1248 | 398 | $as_echo X/"$0" | | ||
1249 | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
1250 | 400 | s//\1/ | ||
1251 | 401 | q | ||
1252 | 402 | } | ||
1253 | 403 | /^X\/\(\/\/\)$/{ | ||
1254 | 404 | s//\1/ | ||
1255 | 405 | q | ||
1256 | 406 | } | ||
1257 | 407 | /^X\/\(\/\).*/{ | ||
1258 | 408 | s//\1/ | ||
1259 | 409 | q | ||
1260 | 410 | } | ||
1261 | 411 | s/.*/./; q'` | ||
1262 | 412 | |||
1263 | 413 | # Avoid depending upon Character Ranges. | ||
1264 | 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
1265 | 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
1266 | 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
1267 | 417 | as_cr_digits='0123456789' | ||
1268 | 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
1269 | 419 | |||
1270 | 420 | |||
1271 | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
1272 | 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
1273 | 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
1274 | 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
1275 | 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
1276 | 426 | sed -n ' | ||
1277 | 427 | p | ||
1278 | 428 | /[$]LINENO/= | ||
1279 | 429 | ' <$as_myself | | ||
1280 | 430 | sed ' | ||
1281 | 431 | s/[$]LINENO.*/&-/ | ||
1282 | 432 | t lineno | ||
1283 | 433 | b | ||
1284 | 434 | :lineno | ||
1285 | 435 | N | ||
1286 | 436 | :loop | ||
1287 | 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
1288 | 438 | t loop | ||
1289 | 439 | s/-\n.*// | ||
1290 | 440 | ' >$as_me.lineno && | ||
1291 | 441 | chmod +x "$as_me.lineno" || | ||
1292 | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
1293 | 443 | |||
1294 | 444 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
1295 | 445 | # (the dirname of $[0] is not the place where we might find the | ||
1296 | 446 | # original and so on. Autoconf is especially sensitive to this). | ||
1297 | 447 | . "./$as_me.lineno" | ||
1298 | 448 | # Exit status is that of the last command. | ||
1299 | 449 | exit | ||
1300 | 450 | } | ||
1301 | 451 | |||
1302 | 452 | ECHO_C= ECHO_N= ECHO_T= | ||
1303 | 453 | case `echo -n x` in #((((( | ||
1304 | 454 | -n*) | ||
1305 | 455 | case `echo 'xy\c'` in | ||
1306 | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
1307 | 457 | xy) ECHO_C='\c';; | ||
1308 | 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
1309 | 459 | ECHO_T=' ';; | ||
1310 | 460 | esac;; | ||
1311 | 461 | *) | ||
1312 | 462 | ECHO_N='-n';; | ||
1313 | 463 | esac | ||
1314 | 464 | |||
1315 | 465 | rm -f conf$$ conf$$.exe conf$$.file | ||
1316 | 466 | if test -d conf$$.dir; then | ||
1317 | 467 | rm -f conf$$.dir/conf$$.file | ||
1318 | 468 | else | ||
1319 | 469 | rm -f conf$$.dir | ||
1320 | 470 | mkdir conf$$.dir 2>/dev/null | ||
1321 | 471 | fi | ||
1322 | 472 | if (echo >conf$$.file) 2>/dev/null; then | ||
1323 | 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
1324 | 474 | as_ln_s='ln -s' | ||
1325 | 475 | # ... but there are two gotchas: | ||
1326 | 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
1327 | 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
1328 | 478 | # In both cases, we have to default to `cp -p'. | ||
1329 | 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
1330 | 480 | as_ln_s='cp -p' | ||
1331 | 481 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
1332 | 482 | as_ln_s=ln | ||
1333 | 483 | else | ||
1334 | 484 | as_ln_s='cp -p' | ||
1335 | 485 | fi | ||
1336 | 486 | else | ||
1337 | 487 | as_ln_s='cp -p' | ||
1338 | 488 | fi | ||
1339 | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
1340 | 490 | rmdir conf$$.dir 2>/dev/null | ||
1341 | 491 | |||
1342 | 492 | if mkdir -p . 2>/dev/null; then | ||
1343 | 493 | as_mkdir_p='mkdir -p "$as_dir"' | ||
1344 | 494 | else | ||
1345 | 495 | test -d ./-p && rmdir ./-p | ||
1346 | 496 | as_mkdir_p=false | ||
1347 | 497 | fi | ||
1348 | 498 | |||
1349 | 499 | if test -x / >/dev/null 2>&1; then | ||
1350 | 500 | as_test_x='test -x' | ||
1351 | 501 | else | ||
1352 | 502 | if ls -dL / >/dev/null 2>&1; then | ||
1353 | 503 | as_ls_L_option=L | ||
1354 | 504 | else | ||
1355 | 505 | as_ls_L_option= | ||
1356 | 506 | fi | ||
1357 | 507 | as_test_x=' | ||
1358 | 508 | eval sh -c '\'' | ||
1359 | 509 | if test -d "$1"; then | ||
1360 | 510 | test -d "$1/."; | ||
1361 | 511 | else | ||
1362 | 512 | case $1 in #( | ||
1363 | 513 | -*)set "./$1";; | ||
1364 | 514 | esac; | ||
1365 | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
1366 | 516 | ???[sx]*):;;*)false;;esac;fi | ||
1367 | 517 | '\'' sh | ||
1368 | 518 | ' | ||
1369 | 519 | fi | ||
1370 | 520 | as_executable_p=$as_test_x | ||
1371 | 521 | |||
1372 | 522 | # Sed expression to map a string onto a valid CPP name. | ||
1373 | 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
1374 | 524 | |||
1375 | 525 | # Sed expression to map a string onto a valid variable name. | ||
1376 | 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
1377 | 527 | |||
1378 | 528 | |||
1379 | 529 | |||
1380 | 530 | # Check that we are running under the correct shell. | ||
1381 | 531 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
1382 | 532 | |||
1383 | 533 | case X$lt_ECHO in | ||
1384 | 534 | X*--fallback-echo) | ||
1385 | 535 | # Remove one level of quotation (which was required for Make). | ||
1386 | 536 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
1387 | 537 | ;; | ||
1388 | 538 | esac | ||
1389 | 539 | |||
1390 | 540 | ECHO=${lt_ECHO-echo} | ||
1391 | 541 | if test "X$1" = X--no-reexec; then | ||
1392 | 542 | # Discard the --no-reexec flag, and continue. | ||
1393 | 543 | shift | ||
1394 | 544 | elif test "X$1" = X--fallback-echo; then | ||
1395 | 545 | # Avoid inline document here, it may be left over | ||
1396 | 546 | : | ||
1397 | 547 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
1398 | 548 | # Yippee, $ECHO works! | ||
1399 | 549 | : | ||
1400 | 550 | else | ||
1401 | 551 | # Restart under the correct shell. | ||
1402 | 552 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
1403 | 553 | fi | ||
1404 | 554 | |||
1405 | 555 | if test "X$1" = X--fallback-echo; then | ||
1406 | 556 | # used as fallback echo | ||
1407 | 557 | shift | ||
1408 | 558 | cat <<_LT_EOF | ||
1409 | 559 | $* | ||
1410 | 560 | _LT_EOF | ||
1411 | 561 | exit 0 | ||
1412 | 562 | fi | ||
1413 | 563 | |||
1414 | 564 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
1415 | 565 | # if CDPATH is set. | ||
1416 | 566 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
1417 | 567 | |||
1418 | 568 | if test -z "$lt_ECHO"; then | ||
1419 | 569 | if test "X${echo_test_string+set}" != Xset; then | ||
1420 | 570 | # find a string as large as possible, as long as the shell can cope with it | ||
1421 | 571 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
1422 | 572 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
1423 | 573 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
1424 | 574 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
1425 | 575 | then | ||
1426 | 576 | break | ||
1427 | 577 | fi | ||
1428 | 578 | done | ||
1429 | 579 | fi | ||
1430 | 580 | |||
1431 | 581 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
1432 | 582 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
1433 | 583 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1434 | 584 | : | ||
1435 | 585 | else | ||
1436 | 586 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
1437 | 587 | # backslashes. This makes it impossible to quote backslashes using | ||
1438 | 588 | # echo "$something" | sed 's/\\/\\\\/g' | ||
1439 | 589 | # | ||
1440 | 590 | # So, first we look for a working echo in the user's PATH. | ||
1441 | 591 | |||
1442 | 592 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
1443 | 593 | for dir in $PATH /usr/ucb; do | ||
1444 | 594 | IFS="$lt_save_ifs" | ||
1445 | 595 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
1446 | 596 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
1447 | 597 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
1448 | 598 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1449 | 599 | ECHO="$dir/echo" | ||
1450 | 600 | break | ||
1451 | 601 | fi | ||
1452 | 602 | done | ||
1453 | 603 | IFS="$lt_save_ifs" | ||
1454 | 604 | |||
1455 | 605 | if test "X$ECHO" = Xecho; then | ||
1456 | 606 | # We didn't find a better echo, so look for alternatives. | ||
1457 | 607 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
1458 | 608 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
1459 | 609 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1460 | 610 | # This shell has a builtin print -r that does the trick. | ||
1461 | 611 | ECHO='print -r' | ||
1462 | 612 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
1463 | 613 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
1464 | 614 | # If we have ksh, try running configure again with it. | ||
1465 | 615 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
1466 | 616 | export ORIGINAL_CONFIG_SHELL | ||
1467 | 617 | CONFIG_SHELL=/bin/ksh | ||
1468 | 618 | export CONFIG_SHELL | ||
1469 | 619 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
1470 | 620 | else | ||
1471 | 621 | # Try using printf. | ||
1472 | 622 | ECHO='printf %s\n' | ||
1473 | 623 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
1474 | 624 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
1475 | 625 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1476 | 626 | # Cool, printf works | ||
1477 | 627 | : | ||
1478 | 628 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
1479 | 629 | test "X$echo_testing_string" = 'X\t' && | ||
1480 | 630 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
1481 | 631 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1482 | 632 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
1483 | 633 | export CONFIG_SHELL | ||
1484 | 634 | SHELL="$CONFIG_SHELL" | ||
1485 | 635 | export SHELL | ||
1486 | 636 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
1487 | 637 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
1488 | 638 | test "X$echo_testing_string" = 'X\t' && | ||
1489 | 639 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
1490 | 640 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1491 | 641 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
1492 | 642 | else | ||
1493 | 643 | # maybe with a smaller string... | ||
1494 | 644 | prev=: | ||
1495 | 645 | |||
1496 | 646 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
1497 | 647 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
1498 | 648 | then | ||
1499 | 649 | break | ||
1500 | 650 | fi | ||
1501 | 651 | prev="$cmd" | ||
1502 | 652 | done | ||
1503 | 653 | |||
1504 | 654 | if test "$prev" != 'sed 50q "$0"'; then | ||
1505 | 655 | echo_test_string=`eval $prev` | ||
1506 | 656 | export echo_test_string | ||
1507 | 657 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
1508 | 658 | else | ||
1509 | 659 | # Oops. We lost completely, so just stick with echo. | ||
1510 | 660 | ECHO=echo | ||
1511 | 661 | fi | ||
1512 | 662 | fi | ||
1513 | 663 | fi | ||
1514 | 664 | fi | ||
1515 | 665 | fi | ||
1516 | 666 | fi | ||
1517 | 667 | |||
1518 | 668 | # Copy echo and quote the copy suitably for passing to libtool from | ||
1519 | 669 | # the Makefile, instead of quoting the original, which is used later. | ||
1520 | 670 | lt_ECHO=$ECHO | ||
1521 | 671 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
1522 | 672 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
1523 | 673 | fi | ||
1524 | 674 | |||
1525 | 675 | |||
1526 | 676 | |||
1527 | 677 | |||
1528 | 678 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
1529 | 679 | exec 6>&1 | ||
1530 | 680 | |||
1531 | 681 | # Name of the host. | ||
1532 | 682 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
1533 | 683 | # so uname gets run too. | ||
1534 | 684 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1535 | 685 | |||
1536 | 686 | # | ||
1537 | 687 | # Initializations. | ||
1538 | 688 | # | ||
1539 | 689 | ac_default_prefix=/usr/local | ||
1540 | 690 | ac_clean_files= | ||
1541 | 691 | ac_config_libobj_dir=. | ||
1542 | 692 | LIBOBJS= | ||
1543 | 693 | cross_compiling=no | ||
1544 | 694 | subdirs= | ||
1545 | 695 | MFLAGS= | ||
1546 | 696 | MAKEFLAGS= | ||
1547 | 697 | |||
1548 | 698 | # Identity of this package. | ||
1549 | 699 | PACKAGE_NAME='ipsec-tools' | ||
1550 | 700 | PACKAGE_TARNAME='ipsec-tools' | ||
1551 | 701 | PACKAGE_VERSION='0.8.0' | ||
1552 | 702 | PACKAGE_STRING='ipsec-tools 0.8.0' | ||
1553 | 703 | PACKAGE_BUGREPORT='' | ||
1554 | 704 | PACKAGE_URL='' | ||
1555 | 705 | |||
1556 | 706 | ac_unique_file="configure.ac" | ||
1557 | 707 | # Factoring default headers for most tests. | ||
1558 | 708 | ac_includes_default="\ | ||
1559 | 709 | #include <stdio.h> | ||
1560 | 710 | #ifdef HAVE_SYS_TYPES_H | ||
1561 | 711 | # include <sys/types.h> | ||
1562 | 712 | #endif | ||
1563 | 713 | #ifdef HAVE_SYS_STAT_H | ||
1564 | 714 | # include <sys/stat.h> | ||
1565 | 715 | #endif | ||
1566 | 716 | #ifdef STDC_HEADERS | ||
1567 | 717 | # include <stdlib.h> | ||
1568 | 718 | # include <stddef.h> | ||
1569 | 719 | #else | ||
1570 | 720 | # ifdef HAVE_STDLIB_H | ||
1571 | 721 | # include <stdlib.h> | ||
1572 | 722 | # endif | ||
1573 | 723 | #endif | ||
1574 | 724 | #ifdef HAVE_STRING_H | ||
1575 | 725 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
1576 | 726 | # include <memory.h> | ||
1577 | 727 | # endif | ||
1578 | 728 | # include <string.h> | ||
1579 | 729 | #endif | ||
1580 | 730 | #ifdef HAVE_STRINGS_H | ||
1581 | 731 | # include <strings.h> | ||
1582 | 732 | #endif | ||
1583 | 733 | #ifdef HAVE_INTTYPES_H | ||
1584 | 734 | # include <inttypes.h> | ||
1585 | 735 | #endif | ||
1586 | 736 | #ifdef HAVE_STDINT_H | ||
1587 | 737 | # include <stdint.h> | ||
1588 | 738 | #endif | ||
1589 | 739 | #ifdef HAVE_UNISTD_H | ||
1590 | 740 | # include <unistd.h> | ||
1591 | 741 | #endif" | ||
1592 | 742 | |||
1593 | 743 | ac_subst_vars='am__EXEEXT_FALSE | ||
1594 | 744 | am__EXEEXT_TRUE | ||
1595 | 745 | LTLIBOBJS | ||
1596 | 746 | include_racoondir | ||
1597 | 747 | SECCTX_OBJS | ||
1598 | 748 | NATT_OBJS | ||
1599 | 749 | KRB5_CONFIG | ||
1600 | 750 | FRAG_OBJS | ||
1601 | 751 | HYBRID_OBJS | ||
1602 | 752 | EXTRA_CRYPTO | ||
1603 | 753 | CRYPTOBJS | ||
1604 | 754 | LIBOBJS | ||
1605 | 755 | GLIBC_BUGS | ||
1606 | 756 | KERNEL_INCLUDE | ||
1607 | 757 | CONFIGURE_AMFLAGS | ||
1608 | 758 | RPM | ||
1609 | 759 | INCLUDE_GLIBC | ||
1610 | 760 | INSTALL_OPTS | ||
1611 | 761 | LEXLIB | ||
1612 | 762 | LEX_OUTPUT_ROOT | ||
1613 | 763 | LEX | ||
1614 | 764 | YFLAGS | ||
1615 | 765 | YACC | ||
1616 | 766 | OTOOL64 | ||
1617 | 767 | OTOOL | ||
1618 | 768 | LIPO | ||
1619 | 769 | NMEDIT | ||
1620 | 770 | DSYMUTIL | ||
1621 | 771 | lt_ECHO | ||
1622 | 772 | RANLIB | ||
1623 | 773 | AR | ||
1624 | 774 | OBJDUMP | ||
1625 | 775 | LN_S | ||
1626 | 776 | NM | ||
1627 | 777 | ac_ct_DUMPBIN | ||
1628 | 778 | DUMPBIN | ||
1629 | 779 | LD | ||
1630 | 780 | FGREP | ||
1631 | 781 | SED | ||
1632 | 782 | host_os | ||
1633 | 783 | host_vendor | ||
1634 | 784 | host_cpu | ||
1635 | 785 | host | ||
1636 | 786 | build_os | ||
1637 | 787 | build_vendor | ||
1638 | 788 | build_cpu | ||
1639 | 789 | build | ||
1640 | 790 | LIBTOOL | ||
1641 | 791 | EGREP | ||
1642 | 792 | GREP | ||
1643 | 793 | CPP | ||
1644 | 794 | am__fastdepCC_FALSE | ||
1645 | 795 | am__fastdepCC_TRUE | ||
1646 | 796 | CCDEPMODE | ||
1647 | 797 | AMDEPBACKSLASH | ||
1648 | 798 | AMDEP_FALSE | ||
1649 | 799 | AMDEP_TRUE | ||
1650 | 800 | am__quote | ||
1651 | 801 | am__include | ||
1652 | 802 | DEPDIR | ||
1653 | 803 | OBJEXT | ||
1654 | 804 | EXEEXT | ||
1655 | 805 | ac_ct_CC | ||
1656 | 806 | CPPFLAGS | ||
1657 | 807 | LDFLAGS | ||
1658 | 808 | CFLAGS | ||
1659 | 809 | CC | ||
1660 | 810 | am__untar | ||
1661 | 811 | am__tar | ||
1662 | 812 | AMTAR | ||
1663 | 813 | am__leading_dot | ||
1664 | 814 | SET_MAKE | ||
1665 | 815 | AWK | ||
1666 | 816 | mkdir_p | ||
1667 | 817 | MKDIR_P | ||
1668 | 818 | INSTALL_STRIP_PROGRAM | ||
1669 | 819 | STRIP | ||
1670 | 820 | install_sh | ||
1671 | 821 | MAKEINFO | ||
1672 | 822 | AUTOHEADER | ||
1673 | 823 | AUTOMAKE | ||
1674 | 824 | AUTOCONF | ||
1675 | 825 | ACLOCAL | ||
1676 | 826 | VERSION | ||
1677 | 827 | PACKAGE | ||
1678 | 828 | CYGPATH_W | ||
1679 | 829 | am__isrc | ||
1680 | 830 | INSTALL_DATA | ||
1681 | 831 | INSTALL_SCRIPT | ||
1682 | 832 | INSTALL_PROGRAM | ||
1683 | 833 | target_alias | ||
1684 | 834 | host_alias | ||
1685 | 835 | build_alias | ||
1686 | 836 | LIBS | ||
1687 | 837 | ECHO_T | ||
1688 | 838 | ECHO_N | ||
1689 | 839 | ECHO_C | ||
1690 | 840 | DEFS | ||
1691 | 841 | mandir | ||
1692 | 842 | localedir | ||
1693 | 843 | libdir | ||
1694 | 844 | psdir | ||
1695 | 845 | pdfdir | ||
1696 | 846 | dvidir | ||
1697 | 847 | htmldir | ||
1698 | 848 | infodir | ||
1699 | 849 | docdir | ||
1700 | 850 | oldincludedir | ||
1701 | 851 | includedir | ||
1702 | 852 | localstatedir | ||
1703 | 853 | sharedstatedir | ||
1704 | 854 | sysconfdir | ||
1705 | 855 | datadir | ||
1706 | 856 | datarootdir | ||
1707 | 857 | libexecdir | ||
1708 | 858 | sbindir | ||
1709 | 859 | bindir | ||
1710 | 860 | program_transform_name | ||
1711 | 861 | prefix | ||
1712 | 862 | exec_prefix | ||
1713 | 863 | PACKAGE_URL | ||
1714 | 864 | PACKAGE_BUGREPORT | ||
1715 | 865 | PACKAGE_STRING | ||
1716 | 866 | PACKAGE_VERSION | ||
1717 | 867 | PACKAGE_TARNAME | ||
1718 | 868 | PACKAGE_NAME | ||
1719 | 869 | PATH_SEPARATOR | ||
1720 | 870 | SHELL' | ||
1721 | 871 | ac_subst_files='' | ||
1722 | 872 | ac_user_opts=' | ||
1723 | 873 | enable_option_checking | ||
1724 | 874 | enable_shared | ||
1725 | 875 | enable_dependency_tracking | ||
1726 | 876 | enable_static | ||
1727 | 877 | with_pic | ||
1728 | 878 | enable_fast_install | ||
1729 | 879 | with_gnu_ld | ||
1730 | 880 | enable_libtool_lock | ||
1731 | 881 | with_kernel_headers | ||
1732 | 882 | with_readline | ||
1733 | 883 | with_flexdir | ||
1734 | 884 | with_flexlib | ||
1735 | 885 | with_openssl | ||
1736 | 886 | enable_adminport | ||
1737 | 887 | enable_rc5 | ||
1738 | 888 | enable_idea | ||
1739 | 889 | with_libiconv | ||
1740 | 890 | enable_hybrid | ||
1741 | 891 | enable_frag | ||
1742 | 892 | with_libradius | ||
1743 | 893 | with_libpam | ||
1744 | 894 | with_libldap | ||
1745 | 895 | enable_gssapi | ||
1746 | 896 | enable_stats | ||
1747 | 897 | enable_dpd | ||
1748 | 898 | enable_samode_unspec | ||
1749 | 899 | enable_ipv6 | ||
1750 | 900 | enable_natt | ||
1751 | 901 | enable_natt_versions | ||
1752 | 902 | enable_broken_natt | ||
1753 | 903 | enable_security_context | ||
1754 | 904 | ' | ||
1755 | 905 | ac_precious_vars='build_alias | ||
1756 | 906 | host_alias | ||
1757 | 907 | target_alias | ||
1758 | 908 | CC | ||
1759 | 909 | CFLAGS | ||
1760 | 910 | LDFLAGS | ||
1761 | 911 | LIBS | ||
1762 | 912 | CPPFLAGS | ||
1763 | 913 | CPP | ||
1764 | 914 | YACC | ||
1765 | 915 | YFLAGS' | ||
1766 | 916 | |||
1767 | 917 | |||
1768 | 918 | # Initialize some variables set by options. | ||
1769 | 919 | ac_init_help= | ||
1770 | 920 | ac_init_version=false | ||
1771 | 921 | ac_unrecognized_opts= | ||
1772 | 922 | ac_unrecognized_sep= | ||
1773 | 923 | # The variables have the same names as the options, with | ||
1774 | 924 | # dashes changed to underlines. | ||
1775 | 925 | cache_file=/dev/null | ||
1776 | 926 | exec_prefix=NONE | ||
1777 | 927 | no_create= | ||
1778 | 928 | no_recursion= | ||
1779 | 929 | prefix=NONE | ||
1780 | 930 | program_prefix=NONE | ||
1781 | 931 | program_suffix=NONE | ||
1782 | 932 | program_transform_name=s,x,x, | ||
1783 | 933 | silent= | ||
1784 | 934 | site= | ||
1785 | 935 | srcdir= | ||
1786 | 936 | verbose= | ||
1787 | 937 | x_includes=NONE | ||
1788 | 938 | x_libraries=NONE | ||
1789 | 939 | |||
1790 | 940 | # Installation directory options. | ||
1791 | 941 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
1792 | 942 | # and all the variables that are supposed to be based on exec_prefix | ||
1793 | 943 | # by default will actually change. | ||
1794 | 944 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
1795 | 945 | # (The list follows the same order as the GNU Coding Standards.) | ||
1796 | 946 | bindir='${exec_prefix}/bin' | ||
1797 | 947 | sbindir='${exec_prefix}/sbin' | ||
1798 | 948 | libexecdir='${exec_prefix}/libexec' | ||
1799 | 949 | datarootdir='${prefix}/share' | ||
1800 | 950 | datadir='${datarootdir}' | ||
1801 | 951 | sysconfdir='${prefix}/etc' | ||
1802 | 952 | sharedstatedir='${prefix}/com' | ||
1803 | 953 | localstatedir='${prefix}/var' | ||
1804 | 954 | includedir='${prefix}/include' | ||
1805 | 955 | oldincludedir='/usr/include' | ||
1806 | 956 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1807 | 957 | infodir='${datarootdir}/info' | ||
1808 | 958 | htmldir='${docdir}' | ||
1809 | 959 | dvidir='${docdir}' | ||
1810 | 960 | pdfdir='${docdir}' | ||
1811 | 961 | psdir='${docdir}' | ||
1812 | 962 | libdir='${exec_prefix}/lib' | ||
1813 | 963 | localedir='${datarootdir}/locale' | ||
1814 | 964 | mandir='${datarootdir}/man' | ||
1815 | 965 | |||
1816 | 966 | ac_prev= | ||
1817 | 967 | ac_dashdash= | ||
1818 | 968 | for ac_option | ||
1819 | 969 | do | ||
1820 | 970 | # If the previous option needs an argument, assign it. | ||
1821 | 971 | if test -n "$ac_prev"; then | ||
1822 | 972 | eval $ac_prev=\$ac_option | ||
1823 | 973 | ac_prev= | ||
1824 | 974 | continue | ||
1825 | 975 | fi | ||
1826 | 976 | |||
1827 | 977 | case $ac_option in | ||
1828 | 978 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1829 | 979 | *=) ac_optarg= ;; | ||
1830 | 980 | *) ac_optarg=yes ;; | ||
1831 | 981 | esac | ||
1832 | 982 | |||
1833 | 983 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1834 | 984 | |||
1835 | 985 | case $ac_dashdash$ac_option in | ||
1836 | 986 | --) | ||
1837 | 987 | ac_dashdash=yes ;; | ||
1838 | 988 | |||
1839 | 989 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1840 | 990 | ac_prev=bindir ;; | ||
1841 | 991 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1842 | 992 | bindir=$ac_optarg ;; | ||
1843 | 993 | |||
1844 | 994 | -build | --build | --buil | --bui | --bu) | ||
1845 | 995 | ac_prev=build_alias ;; | ||
1846 | 996 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1847 | 997 | build_alias=$ac_optarg ;; | ||
1848 | 998 | |||
1849 | 999 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1850 | 1000 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1851 | 1001 | ac_prev=cache_file ;; | ||
1852 | 1002 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1853 | 1003 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1854 | 1004 | cache_file=$ac_optarg ;; | ||
1855 | 1005 | |||
1856 | 1006 | --config-cache | -C) | ||
1857 | 1007 | cache_file=config.cache ;; | ||
1858 | 1008 | |||
1859 | 1009 | -datadir | --datadir | --datadi | --datad) | ||
1860 | 1010 | ac_prev=datadir ;; | ||
1861 | 1011 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1862 | 1012 | datadir=$ac_optarg ;; | ||
1863 | 1013 | |||
1864 | 1014 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1865 | 1015 | | --dataroo | --dataro | --datar) | ||
1866 | 1016 | ac_prev=datarootdir ;; | ||
1867 | 1017 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1868 | 1018 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1869 | 1019 | datarootdir=$ac_optarg ;; | ||
1870 | 1020 | |||
1871 | 1021 | -disable-* | --disable-*) | ||
1872 | 1022 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1873 | 1023 | # Reject names that are not valid shell variable names. | ||
1874 | 1024 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1875 | 1025 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1876 | 1026 | ac_useropt_orig=$ac_useropt | ||
1877 | 1027 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1878 | 1028 | case $ac_user_opts in | ||
1879 | 1029 | *" | ||
1880 | 1030 | "enable_$ac_useropt" | ||
1881 | 1031 | "*) ;; | ||
1882 | 1032 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1883 | 1033 | ac_unrecognized_sep=', ';; | ||
1884 | 1034 | esac | ||
1885 | 1035 | eval enable_$ac_useropt=no ;; | ||
1886 | 1036 | |||
1887 | 1037 | -docdir | --docdir | --docdi | --doc | --do) | ||
1888 | 1038 | ac_prev=docdir ;; | ||
1889 | 1039 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1890 | 1040 | docdir=$ac_optarg ;; | ||
1891 | 1041 | |||
1892 | 1042 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1893 | 1043 | ac_prev=dvidir ;; | ||
1894 | 1044 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1895 | 1045 | dvidir=$ac_optarg ;; | ||
1896 | 1046 | |||
1897 | 1047 | -enable-* | --enable-*) | ||
1898 | 1048 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1899 | 1049 | # Reject names that are not valid shell variable names. | ||
1900 | 1050 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1901 | 1051 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1902 | 1052 | ac_useropt_orig=$ac_useropt | ||
1903 | 1053 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1904 | 1054 | case $ac_user_opts in | ||
1905 | 1055 | *" | ||
1906 | 1056 | "enable_$ac_useropt" | ||
1907 | 1057 | "*) ;; | ||
1908 | 1058 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1909 | 1059 | ac_unrecognized_sep=', ';; | ||
1910 | 1060 | esac | ||
1911 | 1061 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1912 | 1062 | |||
1913 | 1063 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1914 | 1064 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1915 | 1065 | | --exec | --exe | --ex) | ||
1916 | 1066 | ac_prev=exec_prefix ;; | ||
1917 | 1067 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1918 | 1068 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1919 | 1069 | | --exec=* | --exe=* | --ex=*) | ||
1920 | 1070 | exec_prefix=$ac_optarg ;; | ||
1921 | 1071 | |||
1922 | 1072 | -gas | --gas | --ga | --g) | ||
1923 | 1073 | # Obsolete; use --with-gas. | ||
1924 | 1074 | with_gas=yes ;; | ||
1925 | 1075 | |||
1926 | 1076 | -help | --help | --hel | --he | -h) | ||
1927 | 1077 | ac_init_help=long ;; | ||
1928 | 1078 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1929 | 1079 | ac_init_help=recursive ;; | ||
1930 | 1080 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1931 | 1081 | ac_init_help=short ;; | ||
1932 | 1082 | |||
1933 | 1083 | -host | --host | --hos | --ho) | ||
1934 | 1084 | ac_prev=host_alias ;; | ||
1935 | 1085 | -host=* | --host=* | --hos=* | --ho=*) | ||
1936 | 1086 | host_alias=$ac_optarg ;; | ||
1937 | 1087 | |||
1938 | 1088 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1939 | 1089 | ac_prev=htmldir ;; | ||
1940 | 1090 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1941 | 1091 | | --ht=*) | ||
1942 | 1092 | htmldir=$ac_optarg ;; | ||
1943 | 1093 | |||
1944 | 1094 | -includedir | --includedir | --includedi | --included | --include \ | ||
1945 | 1095 | | --includ | --inclu | --incl | --inc) | ||
1946 | 1096 | ac_prev=includedir ;; | ||
1947 | 1097 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1948 | 1098 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1949 | 1099 | includedir=$ac_optarg ;; | ||
1950 | 1100 | |||
1951 | 1101 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1952 | 1102 | ac_prev=infodir ;; | ||
1953 | 1103 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1954 | 1104 | infodir=$ac_optarg ;; | ||
1955 | 1105 | |||
1956 | 1106 | -libdir | --libdir | --libdi | --libd) | ||
1957 | 1107 | ac_prev=libdir ;; | ||
1958 | 1108 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1959 | 1109 | libdir=$ac_optarg ;; | ||
1960 | 1110 | |||
1961 | 1111 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1962 | 1112 | | --libexe | --libex | --libe) | ||
1963 | 1113 | ac_prev=libexecdir ;; | ||
1964 | 1114 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1965 | 1115 | | --libexe=* | --libex=* | --libe=*) | ||
1966 | 1116 | libexecdir=$ac_optarg ;; | ||
1967 | 1117 | |||
1968 | 1118 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1969 | 1119 | ac_prev=localedir ;; | ||
1970 | 1120 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1971 | 1121 | localedir=$ac_optarg ;; | ||
1972 | 1122 | |||
1973 | 1123 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1974 | 1124 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1975 | 1125 | ac_prev=localstatedir ;; | ||
1976 | 1126 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1977 | 1127 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1978 | 1128 | localstatedir=$ac_optarg ;; | ||
1979 | 1129 | |||
1980 | 1130 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1981 | 1131 | ac_prev=mandir ;; | ||
1982 | 1132 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1983 | 1133 | mandir=$ac_optarg ;; | ||
1984 | 1134 | |||
1985 | 1135 | -nfp | --nfp | --nf) | ||
1986 | 1136 | # Obsolete; use --without-fp. | ||
1987 | 1137 | with_fp=no ;; | ||
1988 | 1138 | |||
1989 | 1139 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1990 | 1140 | | --no-cr | --no-c | -n) | ||
1991 | 1141 | no_create=yes ;; | ||
1992 | 1142 | |||
1993 | 1143 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1994 | 1144 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1995 | 1145 | no_recursion=yes ;; | ||
1996 | 1146 | |||
1997 | 1147 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1998 | 1148 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1999 | 1149 | | --oldin | --oldi | --old | --ol | --o) | ||
2000 | 1150 | ac_prev=oldincludedir ;; | ||
2001 | 1151 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
2002 | 1152 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
2003 | 1153 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
2004 | 1154 | oldincludedir=$ac_optarg ;; | ||
2005 | 1155 | |||
2006 | 1156 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
2007 | 1157 | ac_prev=prefix ;; | ||
2008 | 1158 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
2009 | 1159 | prefix=$ac_optarg ;; | ||
2010 | 1160 | |||
2011 | 1161 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
2012 | 1162 | | --program-pre | --program-pr | --program-p) | ||
2013 | 1163 | ac_prev=program_prefix ;; | ||
2014 | 1164 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
2015 | 1165 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
2016 | 1166 | program_prefix=$ac_optarg ;; | ||
2017 | 1167 | |||
2018 | 1168 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
2019 | 1169 | | --program-suf | --program-su | --program-s) | ||
2020 | 1170 | ac_prev=program_suffix ;; | ||
2021 | 1171 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
2022 | 1172 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
2023 | 1173 | program_suffix=$ac_optarg ;; | ||
2024 | 1174 | |||
2025 | 1175 | -program-transform-name | --program-transform-name \ | ||
2026 | 1176 | | --program-transform-nam | --program-transform-na \ | ||
2027 | 1177 | | --program-transform-n | --program-transform- \ | ||
2028 | 1178 | | --program-transform | --program-transfor \ | ||
2029 | 1179 | | --program-transfo | --program-transf \ | ||
2030 | 1180 | | --program-trans | --program-tran \ | ||
2031 | 1181 | | --progr-tra | --program-tr | --program-t) | ||
2032 | 1182 | ac_prev=program_transform_name ;; | ||
2033 | 1183 | -program-transform-name=* | --program-transform-name=* \ | ||
2034 | 1184 | | --program-transform-nam=* | --program-transform-na=* \ | ||
2035 | 1185 | | --program-transform-n=* | --program-transform-=* \ | ||
2036 | 1186 | | --program-transform=* | --program-transfor=* \ | ||
2037 | 1187 | | --program-transfo=* | --program-transf=* \ | ||
2038 | 1188 | | --program-trans=* | --program-tran=* \ | ||
2039 | 1189 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
2040 | 1190 | program_transform_name=$ac_optarg ;; | ||
2041 | 1191 | |||
2042 | 1192 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
2043 | 1193 | ac_prev=pdfdir ;; | ||
2044 | 1194 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
2045 | 1195 | pdfdir=$ac_optarg ;; | ||
2046 | 1196 | |||
2047 | 1197 | -psdir | --psdir | --psdi | --psd | --ps) | ||
2048 | 1198 | ac_prev=psdir ;; | ||
2049 | 1199 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
2050 | 1200 | psdir=$ac_optarg ;; | ||
2051 | 1201 | |||
2052 | 1202 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2053 | 1203 | | -silent | --silent | --silen | --sile | --sil) | ||
2054 | 1204 | silent=yes ;; | ||
2055 | 1205 | |||
2056 | 1206 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
2057 | 1207 | ac_prev=sbindir ;; | ||
2058 | 1208 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
2059 | 1209 | | --sbi=* | --sb=*) | ||
2060 | 1210 | sbindir=$ac_optarg ;; | ||
2061 | 1211 | |||
2062 | 1212 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
2063 | 1213 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
2064 | 1214 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
2065 | 1215 | | --sha | --sh) | ||
2066 | 1216 | ac_prev=sharedstatedir ;; | ||
2067 | 1217 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
2068 | 1218 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
2069 | 1219 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
2070 | 1220 | | --sha=* | --sh=*) | ||
2071 | 1221 | sharedstatedir=$ac_optarg ;; | ||
2072 | 1222 | |||
2073 | 1223 | -site | --site | --sit) | ||
2074 | 1224 | ac_prev=site ;; | ||
2075 | 1225 | -site=* | --site=* | --sit=*) | ||
2076 | 1226 | site=$ac_optarg ;; | ||
2077 | 1227 | |||
2078 | 1228 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
2079 | 1229 | ac_prev=srcdir ;; | ||
2080 | 1230 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
2081 | 1231 | srcdir=$ac_optarg ;; | ||
2082 | 1232 | |||
2083 | 1233 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
2084 | 1234 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
2085 | 1235 | ac_prev=sysconfdir ;; | ||
2086 | 1236 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
2087 | 1237 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
2088 | 1238 | sysconfdir=$ac_optarg ;; | ||
2089 | 1239 | |||
2090 | 1240 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
2091 | 1241 | ac_prev=target_alias ;; | ||
2092 | 1242 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
2093 | 1243 | target_alias=$ac_optarg ;; | ||
2094 | 1244 | |||
2095 | 1245 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
2096 | 1246 | verbose=yes ;; | ||
2097 | 1247 | |||
2098 | 1248 | -version | --version | --versio | --versi | --vers | -V) | ||
2099 | 1249 | ac_init_version=: ;; | ||
2100 | 1250 | |||
2101 | 1251 | -with-* | --with-*) | ||
2102 | 1252 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
2103 | 1253 | # Reject names that are not valid shell variable names. | ||
2104 | 1254 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
2105 | 1255 | as_fn_error $? "invalid package name: $ac_useropt" | ||
2106 | 1256 | ac_useropt_orig=$ac_useropt | ||
2107 | 1257 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
2108 | 1258 | case $ac_user_opts in | ||
2109 | 1259 | *" | ||
2110 | 1260 | "with_$ac_useropt" | ||
2111 | 1261 | "*) ;; | ||
2112 | 1262 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
2113 | 1263 | ac_unrecognized_sep=', ';; | ||
2114 | 1264 | esac | ||
2115 | 1265 | eval with_$ac_useropt=\$ac_optarg ;; | ||
2116 | 1266 | |||
2117 | 1267 | -without-* | --without-*) | ||
2118 | 1268 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
2119 | 1269 | # Reject names that are not valid shell variable names. | ||
2120 | 1270 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
2121 | 1271 | as_fn_error $? "invalid package name: $ac_useropt" | ||
2122 | 1272 | ac_useropt_orig=$ac_useropt | ||
2123 | 1273 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
2124 | 1274 | case $ac_user_opts in | ||
2125 | 1275 | *" | ||
2126 | 1276 | "with_$ac_useropt" | ||
2127 | 1277 | "*) ;; | ||
2128 | 1278 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
2129 | 1279 | ac_unrecognized_sep=', ';; | ||
2130 | 1280 | esac | ||
2131 | 1281 | eval with_$ac_useropt=no ;; | ||
2132 | 1282 | |||
2133 | 1283 | --x) | ||
2134 | 1284 | # Obsolete; use --with-x. | ||
2135 | 1285 | with_x=yes ;; | ||
2136 | 1286 | |||
2137 | 1287 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
2138 | 1288 | | --x-incl | --x-inc | --x-in | --x-i) | ||
2139 | 1289 | ac_prev=x_includes ;; | ||
2140 | 1290 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
2141 | 1291 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
2142 | 1292 | x_includes=$ac_optarg ;; | ||
2143 | 1293 | |||
2144 | 1294 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
2145 | 1295 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
2146 | 1296 | ac_prev=x_libraries ;; | ||
2147 | 1297 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
2148 | 1298 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
2149 | 1299 | x_libraries=$ac_optarg ;; | ||
2150 | 1300 | |||
2151 | 1301 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
2152 | 1302 | Try \`$0 --help' for more information" | ||
2153 | 1303 | ;; | ||
2154 | 1304 | |||
2155 | 1305 | *=*) | ||
2156 | 1306 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
2157 | 1307 | # Reject names that are not valid shell variable names. | ||
2158 | 1308 | case $ac_envvar in #( | ||
2159 | 1309 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
2160 | 1310 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
2161 | 1311 | esac | ||
2162 | 1312 | eval $ac_envvar=\$ac_optarg | ||
2163 | 1313 | export $ac_envvar ;; | ||
2164 | 1314 | |||
2165 | 1315 | *) | ||
2166 | 1316 | # FIXME: should be removed in autoconf 3.0. | ||
2167 | 1317 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
2168 | 1318 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
2169 | 1319 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
2170 | 1320 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
2171 | 1321 | ;; | ||
2172 | 1322 | |||
2173 | 1323 | esac | ||
2174 | 1324 | done | ||
2175 | 1325 | |||
2176 | 1326 | if test -n "$ac_prev"; then | ||
2177 | 1327 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
2178 | 1328 | as_fn_error $? "missing argument to $ac_option" | ||
2179 | 1329 | fi | ||
2180 | 1330 | |||
2181 | 1331 | if test -n "$ac_unrecognized_opts"; then | ||
2182 | 1332 | case $enable_option_checking in | ||
2183 | 1333 | no) ;; | ||
2184 | 1334 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
2185 | 1335 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
2186 | 1336 | esac | ||
2187 | 1337 | fi | ||
2188 | 1338 | |||
2189 | 1339 | # Check all directory arguments for consistency. | ||
2190 | 1340 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
2191 | 1341 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
2192 | 1342 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
2193 | 1343 | libdir localedir mandir | ||
2194 | 1344 | do | ||
2195 | 1345 | eval ac_val=\$$ac_var | ||
2196 | 1346 | # Remove trailing slashes. | ||
2197 | 1347 | case $ac_val in | ||
2198 | 1348 | */ ) | ||
2199 | 1349 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
2200 | 1350 | eval $ac_var=\$ac_val;; | ||
2201 | 1351 | esac | ||
2202 | 1352 | # Be sure to have absolute directory names. | ||
2203 | 1353 | case $ac_val in | ||
2204 | 1354 | [\\/$]* | ?:[\\/]* ) continue;; | ||
2205 | 1355 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
2206 | 1356 | esac | ||
2207 | 1357 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
2208 | 1358 | done | ||
2209 | 1359 | |||
2210 | 1360 | # There might be people who depend on the old broken behavior: `$host' | ||
2211 | 1361 | # used to hold the argument of --host etc. | ||
2212 | 1362 | # FIXME: To remove some day. | ||
2213 | 1363 | build=$build_alias | ||
2214 | 1364 | host=$host_alias | ||
2215 | 1365 | target=$target_alias | ||
2216 | 1366 | |||
2217 | 1367 | # FIXME: To remove some day. | ||
2218 | 1368 | if test "x$host_alias" != x; then | ||
2219 | 1369 | if test "x$build_alias" = x; then | ||
2220 | 1370 | cross_compiling=maybe | ||
2221 | 1371 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
2222 | 1372 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
2223 | 1373 | elif test "x$build_alias" != "x$host_alias"; then | ||
2224 | 1374 | cross_compiling=yes | ||
2225 | 1375 | fi | ||
2226 | 1376 | fi | ||
2227 | 1377 | |||
2228 | 1378 | ac_tool_prefix= | ||
2229 | 1379 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
2230 | 1380 | |||
2231 | 1381 | test "$silent" = yes && exec 6>/dev/null | ||
2232 | 1382 | |||
2233 | 1383 | |||
2234 | 1384 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
2235 | 1385 | ac_ls_di=`ls -di .` && | ||
2236 | 1386 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
2237 | 1387 | as_fn_error $? "working directory cannot be determined" | ||
2238 | 1388 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
2239 | 1389 | as_fn_error $? "pwd does not report name of working directory" | ||
2240 | 1390 | |||
2241 | 1391 | |||
2242 | 1392 | # Find the source files, if location was not specified. | ||
2243 | 1393 | if test -z "$srcdir"; then | ||
2244 | 1394 | ac_srcdir_defaulted=yes | ||
2245 | 1395 | # Try the directory containing this script, then the parent directory. | ||
2246 | 1396 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
2247 | 1397 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
2248 | 1398 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
2249 | 1399 | X"$as_myself" : 'X\(//\)$' \| \ | ||
2250 | 1400 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
2251 | 1401 | $as_echo X"$as_myself" | | ||
2252 | 1402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
2253 | 1403 | s//\1/ | ||
2254 | 1404 | q | ||
2255 | 1405 | } | ||
2256 | 1406 | /^X\(\/\/\)[^/].*/{ | ||
2257 | 1407 | s//\1/ | ||
2258 | 1408 | q | ||
2259 | 1409 | } | ||
2260 | 1410 | /^X\(\/\/\)$/{ | ||
2261 | 1411 | s//\1/ | ||
2262 | 1412 | q | ||
2263 | 1413 | } | ||
2264 | 1414 | /^X\(\/\).*/{ | ||
2265 | 1415 | s//\1/ | ||
2266 | 1416 | q | ||
2267 | 1417 | } | ||
2268 | 1418 | s/.*/./; q'` | ||
2269 | 1419 | srcdir=$ac_confdir | ||
2270 | 1420 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
2271 | 1421 | srcdir=.. | ||
2272 | 1422 | fi | ||
2273 | 1423 | else | ||
2274 | 1424 | ac_srcdir_defaulted=no | ||
2275 | 1425 | fi | ||
2276 | 1426 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
2277 | 1427 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
2278 | 1428 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
2279 | 1429 | fi | ||
2280 | 1430 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
2281 | 1431 | ac_abs_confdir=`( | ||
2282 | 1432 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
2283 | 1433 | pwd)` | ||
2284 | 1434 | # When building in place, set srcdir=. | ||
2285 | 1435 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
2286 | 1436 | srcdir=. | ||
2287 | 1437 | fi | ||
2288 | 1438 | # Remove unnecessary trailing slashes from srcdir. | ||
2289 | 1439 | # Double slashes in file names in object file debugging info | ||
2290 | 1440 | # mess up M-x gdb in Emacs. | ||
2291 | 1441 | case $srcdir in | ||
2292 | 1442 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
2293 | 1443 | esac | ||
2294 | 1444 | for ac_var in $ac_precious_vars; do | ||
2295 | 1445 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
2296 | 1446 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
2297 | 1447 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
2298 | 1448 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
2299 | 1449 | done | ||
2300 | 1450 | |||
2301 | 1451 | # | ||
2302 | 1452 | # Report the --help message. | ||
2303 | 1453 | # | ||
2304 | 1454 | if test "$ac_init_help" = "long"; then | ||
2305 | 1455 | # Omit some internal or obsolete options to make the list less imposing. | ||
2306 | 1456 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
2307 | 1457 | cat <<_ACEOF | ||
2308 | 1458 | \`configure' configures ipsec-tools 0.8.0 to adapt to many kinds of systems. | ||
2309 | 1459 | |||
2310 | 1460 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
2311 | 1461 | |||
2312 | 1462 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
2313 | 1463 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
2314 | 1464 | |||
2315 | 1465 | Defaults for the options are specified in brackets. | ||
2316 | 1466 | |||
2317 | 1467 | Configuration: | ||
2318 | 1468 | -h, --help display this help and exit | ||
2319 | 1469 | --help=short display options specific to this package | ||
2320 | 1470 | --help=recursive display the short help of all the included packages | ||
2321 | 1471 | -V, --version display version information and exit | ||
2322 | 1472 | -q, --quiet, --silent do not print \`checking ...' messages | ||
2323 | 1473 | --cache-file=FILE cache test results in FILE [disabled] | ||
2324 | 1474 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
2325 | 1475 | -n, --no-create do not create output files | ||
2326 | 1476 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
2327 | 1477 | |||
2328 | 1478 | Installation directories: | ||
2329 | 1479 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
2330 | 1480 | [$ac_default_prefix] | ||
2331 | 1481 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
2332 | 1482 | [PREFIX] | ||
2333 | 1483 | |||
2334 | 1484 | By default, \`make install' will install all the files in | ||
2335 | 1485 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
2336 | 1486 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
2337 | 1487 | for instance \`--prefix=\$HOME'. | ||
2338 | 1488 | |||
2339 | 1489 | For better control, use the options below. | ||
2340 | 1490 | |||
2341 | 1491 | Fine tuning of the installation directories: | ||
2342 | 1492 | --bindir=DIR user executables [EPREFIX/bin] | ||
2343 | 1493 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
2344 | 1494 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
2345 | 1495 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
2346 | 1496 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
2347 | 1497 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
2348 | 1498 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
2349 | 1499 | --includedir=DIR C header files [PREFIX/include] | ||
2350 | 1500 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
2351 | 1501 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
2352 | 1502 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
2353 | 1503 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
2354 | 1504 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
2355 | 1505 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
2356 | 1506 | --docdir=DIR documentation root [DATAROOTDIR/doc/ipsec-tools] | ||
2357 | 1507 | --htmldir=DIR html documentation [DOCDIR] | ||
2358 | 1508 | --dvidir=DIR dvi documentation [DOCDIR] | ||
2359 | 1509 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
2360 | 1510 | --psdir=DIR ps documentation [DOCDIR] | ||
2361 | 1511 | _ACEOF | ||
2362 | 1512 | |||
2363 | 1513 | cat <<\_ACEOF | ||
2364 | 1514 | |||
2365 | 1515 | Program names: | ||
2366 | 1516 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
2367 | 1517 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
2368 | 1518 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
2369 | 1519 | |||
2370 | 1520 | System types: | ||
2371 | 1521 | --build=BUILD configure for building on BUILD [guessed] | ||
2372 | 1522 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
2373 | 1523 | _ACEOF | ||
2374 | 1524 | fi | ||
2375 | 1525 | |||
2376 | 1526 | if test -n "$ac_init_help"; then | ||
2377 | 1527 | case $ac_init_help in | ||
2378 | 1528 | short | recursive ) echo "Configuration of ipsec-tools 0.8.0:";; | ||
2379 | 1529 | esac | ||
2380 | 1530 | cat <<\_ACEOF | ||
2381 | 1531 | |||
2382 | 1532 | Optional Features: | ||
2383 | 1533 | --disable-option-checking ignore unrecognized --enable/--with options | ||
2384 | 1534 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
2385 | 1535 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
2386 | 1536 | --enable-shared[=PKGS] build shared libraries [default=no] | ||
2387 | 1537 | --disable-dependency-tracking speeds up one-time build | ||
2388 | 1538 | --enable-dependency-tracking do not reject slow dependency extractors | ||
2389 | 1539 | --enable-static[=PKGS] build static libraries [default=yes] | ||
2390 | 1540 | --enable-fast-install[=PKGS] | ||
2391 | 1541 | optimize for fast installation [default=yes] | ||
2392 | 1542 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
2393 | 1543 | --enable-adminport enable admin port | ||
2394 | 1544 | --enable-rc5 enable RC5 encryption (patented) | ||
2395 | 1545 | --enable-idea enable IDEA encryption (patented) | ||
2396 | 1546 | --enable-hybrid enable hybrid, both mode-cfg and xauth support | ||
2397 | 1547 | --enable-frag enable IKE fragmentation payload support | ||
2398 | 1548 | --enable-gssapi enable GSS-API authentication | ||
2399 | 1549 | --enable-stats enable statistics logging function | ||
2400 | 1550 | --enable-dpd enable dead peer detection | ||
2401 | 1551 | --enable-samode-unspec enable to use unspecified a mode of SA | ||
2402 | 1552 | --disable-ipv6 disable ipv6 support | ||
2403 | 1553 | --enable-natt enable NAT-Traversal (yes/no/kernel) | ||
2404 | 1554 | --enable-natt-versions=list list of supported NAT-T versions delimited by coma. | ||
2405 | 1555 | --enable-broken-natt broken in-kernel NAT-T | ||
2406 | 1556 | --enable-security-context enable Security Context(yes/no/kernel) | ||
2407 | 1557 | |||
2408 | 1558 | Optional Packages: | ||
2409 | 1559 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
2410 | 1560 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
2411 | 1561 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
2412 | 1562 | both] | ||
2413 | 1563 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
2414 | 1564 | --with-kernel-headers=/lib/modules/<uname>/build/include | ||
2415 | 1565 | where your Linux Kernel headers are installed | ||
2416 | 1566 | --with-readline support readline input (yes by default) | ||
2417 | 1567 | --with-flex use directiory (default: no) | ||
2418 | 1568 | --with-flexlib=<LIB> specify flex library. | ||
2419 | 1569 | --with-openssl=DIR specify OpenSSL directory | ||
2420 | 1570 | --with-libiconv=DIR specify libiconv path (like/usr/pkg) | ||
2421 | 1571 | --with-libradius=DIR specify libradius path (like/usr/pkg) | ||
2422 | 1572 | --with-libpam=DIR specify libpam path (like/usr/pkg) | ||
2423 | 1573 | --with-libldap=DIR specify libldap path (like/usr/pkg) | ||
2424 | 1574 | |||
2425 | 1575 | Some influential environment variables: | ||
2426 | 1576 | CC C compiler command | ||
2427 | 1577 | CFLAGS C compiler flags | ||
2428 | 1578 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
2429 | 1579 | nonstandard directory <lib dir> | ||
2430 | 1580 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
2431 | 1581 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
2432 | 1582 | you have headers in a nonstandard directory <include dir> | ||
2433 | 1583 | CPP C preprocessor | ||
2434 | 1584 | YACC The `Yet Another C Compiler' implementation to use. Defaults to | ||
2435 | 1585 | the first program found out of: `bison -y', `byacc', `yacc'. | ||
2436 | 1586 | YFLAGS The list of arguments that will be passed by default to $YACC. | ||
2437 | 1587 | This script will default YFLAGS to the empty string to avoid a | ||
2438 | 1588 | default value of `-d' given by some make applications. | ||
2439 | 1589 | |||
2440 | 1590 | Use these variables to override the choices made by `configure' or to help | ||
2441 | 1591 | it to find libraries and programs with nonstandard names/locations. | ||
2442 | 1592 | |||
2443 | 1593 | Report bugs to the package provider. | ||
2444 | 1594 | _ACEOF | ||
2445 | 1595 | ac_status=$? | ||
2446 | 1596 | fi | ||
2447 | 1597 | |||
2448 | 1598 | if test "$ac_init_help" = "recursive"; then | ||
2449 | 1599 | # If there are subdirs, report their specific --help. | ||
2450 | 1600 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
2451 | 1601 | test -d "$ac_dir" || | ||
2452 | 1602 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
2453 | 1603 | continue | ||
2454 | 1604 | ac_builddir=. | ||
2455 | 1605 | |||
2456 | 1606 | case "$ac_dir" in | ||
2457 | 1607 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2458 | 1608 | *) | ||
2459 | 1609 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
2460 | 1610 | # A ".." for each directory in $ac_dir_suffix. | ||
2461 | 1611 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
2462 | 1612 | case $ac_top_builddir_sub in | ||
2463 | 1613 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2464 | 1614 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
2465 | 1615 | esac ;; | ||
2466 | 1616 | esac | ||
2467 | 1617 | ac_abs_top_builddir=$ac_pwd | ||
2468 | 1618 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
2469 | 1619 | # for backward compatibility: | ||
2470 | 1620 | ac_top_builddir=$ac_top_build_prefix | ||
2471 | 1621 | |||
2472 | 1622 | case $srcdir in | ||
2473 | 1623 | .) # We are building in place. | ||
2474 | 1624 | ac_srcdir=. | ||
2475 | 1625 | ac_top_srcdir=$ac_top_builddir_sub | ||
2476 | 1626 | ac_abs_top_srcdir=$ac_pwd ;; | ||
2477 | 1627 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
2478 | 1628 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
2479 | 1629 | ac_top_srcdir=$srcdir | ||
2480 | 1630 | ac_abs_top_srcdir=$srcdir ;; | ||
2481 | 1631 | *) # Relative name. | ||
2482 | 1632 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
2483 | 1633 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
2484 | 1634 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
2485 | 1635 | esac | ||
2486 | 1636 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
2487 | 1637 | |||
2488 | 1638 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
2489 | 1639 | # Check for guested configure. | ||
2490 | 1640 | if test -f "$ac_srcdir/configure.gnu"; then | ||
2491 | 1641 | echo && | ||
2492 | 1642 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
2493 | 1643 | elif test -f "$ac_srcdir/configure"; then | ||
2494 | 1644 | echo && | ||
2495 | 1645 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
2496 | 1646 | else | ||
2497 | 1647 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
2498 | 1648 | fi || ac_status=$? | ||
2499 | 1649 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
2500 | 1650 | done | ||
2501 | 1651 | fi | ||
2502 | 1652 | |||
2503 | 1653 | test -n "$ac_init_help" && exit $ac_status | ||
2504 | 1654 | if $ac_init_version; then | ||
2505 | 1655 | cat <<\_ACEOF | ||
2506 | 1656 | ipsec-tools configure 0.8.0 | ||
2507 | 1657 | generated by GNU Autoconf 2.67 | ||
2508 | 1658 | |||
2509 | 1659 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
2510 | 1660 | This configure script is free software; the Free Software Foundation | ||
2511 | 1661 | gives unlimited permission to copy, distribute and modify it. | ||
2512 | 1662 | _ACEOF | ||
2513 | 1663 | exit | ||
2514 | 1664 | fi | ||
2515 | 1665 | |||
2516 | 1666 | ## ------------------------ ## | ||
2517 | 1667 | ## Autoconf initialization. ## | ||
2518 | 1668 | ## ------------------------ ## | ||
2519 | 1669 | |||
2520 | 1670 | # ac_fn_c_try_compile LINENO | ||
2521 | 1671 | # -------------------------- | ||
2522 | 1672 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2523 | 1673 | ac_fn_c_try_compile () | ||
2524 | 1674 | { | ||
2525 | 1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2526 | 1676 | rm -f conftest.$ac_objext | ||
2527 | 1677 | if { { ac_try="$ac_compile" | ||
2528 | 1678 | case "(($ac_try" in | ||
2529 | 1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2530 | 1680 | *) ac_try_echo=$ac_try;; | ||
2531 | 1681 | esac | ||
2532 | 1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2533 | 1683 | $as_echo "$ac_try_echo"; } >&5 | ||
2534 | 1684 | (eval "$ac_compile") 2>conftest.err | ||
2535 | 1685 | ac_status=$? | ||
2536 | 1686 | if test -s conftest.err; then | ||
2537 | 1687 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2538 | 1688 | cat conftest.er1 >&5 | ||
2539 | 1689 | mv -f conftest.er1 conftest.err | ||
2540 | 1690 | fi | ||
2541 | 1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2542 | 1692 | test $ac_status = 0; } && { | ||
2543 | 1693 | test -z "$ac_c_werror_flag" || | ||
2544 | 1694 | test ! -s conftest.err | ||
2545 | 1695 | } && test -s conftest.$ac_objext; then : | ||
2546 | 1696 | ac_retval=0 | ||
2547 | 1697 | else | ||
2548 | 1698 | $as_echo "$as_me: failed program was:" >&5 | ||
2549 | 1699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2550 | 1700 | |||
2551 | 1701 | ac_retval=1 | ||
2552 | 1702 | fi | ||
2553 | 1703 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2554 | 1704 | as_fn_set_status $ac_retval | ||
2555 | 1705 | |||
2556 | 1706 | } # ac_fn_c_try_compile | ||
2557 | 1707 | |||
2558 | 1708 | # ac_fn_c_try_cpp LINENO | ||
2559 | 1709 | # ---------------------- | ||
2560 | 1710 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2561 | 1711 | ac_fn_c_try_cpp () | ||
2562 | 1712 | { | ||
2563 | 1713 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2564 | 1714 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2565 | 1715 | case "(($ac_try" in | ||
2566 | 1716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2567 | 1717 | *) ac_try_echo=$ac_try;; | ||
2568 | 1718 | esac | ||
2569 | 1719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2570 | 1720 | $as_echo "$ac_try_echo"; } >&5 | ||
2571 | 1721 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2572 | 1722 | ac_status=$? | ||
2573 | 1723 | if test -s conftest.err; then | ||
2574 | 1724 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2575 | 1725 | cat conftest.er1 >&5 | ||
2576 | 1726 | mv -f conftest.er1 conftest.err | ||
2577 | 1727 | fi | ||
2578 | 1728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2579 | 1729 | test $ac_status = 0; } > conftest.i && { | ||
2580 | 1730 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2581 | 1731 | test ! -s conftest.err | ||
2582 | 1732 | }; then : | ||
2583 | 1733 | ac_retval=0 | ||
2584 | 1734 | else | ||
2585 | 1735 | $as_echo "$as_me: failed program was:" >&5 | ||
2586 | 1736 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2587 | 1737 | |||
2588 | 1738 | ac_retval=1 | ||
2589 | 1739 | fi | ||
2590 | 1740 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2591 | 1741 | as_fn_set_status $ac_retval | ||
2592 | 1742 | |||
2593 | 1743 | } # ac_fn_c_try_cpp | ||
2594 | 1744 | |||
2595 | 1745 | # ac_fn_c_try_run LINENO | ||
2596 | 1746 | # ---------------------- | ||
2597 | 1747 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
2598 | 1748 | # that executables *can* be run. | ||
2599 | 1749 | ac_fn_c_try_run () | ||
2600 | 1750 | { | ||
2601 | 1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2602 | 1752 | if { { ac_try="$ac_link" | ||
2603 | 1753 | case "(($ac_try" in | ||
2604 | 1754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2605 | 1755 | *) ac_try_echo=$ac_try;; | ||
2606 | 1756 | esac | ||
2607 | 1757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2608 | 1758 | $as_echo "$ac_try_echo"; } >&5 | ||
2609 | 1759 | (eval "$ac_link") 2>&5 | ||
2610 | 1760 | ac_status=$? | ||
2611 | 1761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2612 | 1762 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
2613 | 1763 | { { case "(($ac_try" in | ||
2614 | 1764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2615 | 1765 | *) ac_try_echo=$ac_try;; | ||
2616 | 1766 | esac | ||
2617 | 1767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2618 | 1768 | $as_echo "$ac_try_echo"; } >&5 | ||
2619 | 1769 | (eval "$ac_try") 2>&5 | ||
2620 | 1770 | ac_status=$? | ||
2621 | 1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2622 | 1772 | test $ac_status = 0; }; }; then : | ||
2623 | 1773 | ac_retval=0 | ||
2624 | 1774 | else | ||
2625 | 1775 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
2626 | 1776 | $as_echo "$as_me: failed program was:" >&5 | ||
2627 | 1777 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2628 | 1778 | |||
2629 | 1779 | ac_retval=$ac_status | ||
2630 | 1780 | fi | ||
2631 | 1781 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2632 | 1782 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2633 | 1783 | as_fn_set_status $ac_retval | ||
2634 | 1784 | |||
2635 | 1785 | } # ac_fn_c_try_run | ||
2636 | 1786 | |||
2637 | 1787 | # ac_fn_c_try_link LINENO | ||
2638 | 1788 | # ----------------------- | ||
2639 | 1789 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2640 | 1790 | ac_fn_c_try_link () | ||
2641 | 1791 | { | ||
2642 | 1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2643 | 1793 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2644 | 1794 | if { { ac_try="$ac_link" | ||
2645 | 1795 | case "(($ac_try" in | ||
2646 | 1796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2647 | 1797 | *) ac_try_echo=$ac_try;; | ||
2648 | 1798 | esac | ||
2649 | 1799 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2650 | 1800 | $as_echo "$ac_try_echo"; } >&5 | ||
2651 | 1801 | (eval "$ac_link") 2>conftest.err | ||
2652 | 1802 | ac_status=$? | ||
2653 | 1803 | if test -s conftest.err; then | ||
2654 | 1804 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2655 | 1805 | cat conftest.er1 >&5 | ||
2656 | 1806 | mv -f conftest.er1 conftest.err | ||
2657 | 1807 | fi | ||
2658 | 1808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2659 | 1809 | test $ac_status = 0; } && { | ||
2660 | 1810 | test -z "$ac_c_werror_flag" || | ||
2661 | 1811 | test ! -s conftest.err | ||
2662 | 1812 | } && test -s conftest$ac_exeext && { | ||
2663 | 1813 | test "$cross_compiling" = yes || | ||
2664 | 1814 | $as_test_x conftest$ac_exeext | ||
2665 | 1815 | }; then : | ||
2666 | 1816 | ac_retval=0 | ||
2667 | 1817 | else | ||
2668 | 1818 | $as_echo "$as_me: failed program was:" >&5 | ||
2669 | 1819 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2670 | 1820 | |||
2671 | 1821 | ac_retval=1 | ||
2672 | 1822 | fi | ||
2673 | 1823 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2674 | 1824 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2675 | 1825 | # interfere with the next link command; also delete a directory that is | ||
2676 | 1826 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2677 | 1827 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2678 | 1828 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2679 | 1829 | as_fn_set_status $ac_retval | ||
2680 | 1830 | |||
2681 | 1831 | } # ac_fn_c_try_link | ||
2682 | 1832 | |||
2683 | 1833 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
2684 | 1834 | # ------------------------------------------------------- | ||
2685 | 1835 | # Tests whether HEADER exists and can be compiled using the include files in | ||
2686 | 1836 | # INCLUDES, setting the cache variable VAR accordingly. | ||
2687 | 1837 | ac_fn_c_check_header_compile () | ||
2688 | 1838 | { | ||
2689 | 1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2690 | 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2691 | 1841 | $as_echo_n "checking for $2... " >&6; } | ||
2692 | 1842 | if eval "test \"\${$3+set}\"" = set; then : | ||
2693 | 1843 | $as_echo_n "(cached) " >&6 | ||
2694 | 1844 | else | ||
2695 | 1845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2696 | 1846 | /* end confdefs.h. */ | ||
2697 | 1847 | $4 | ||
2698 | 1848 | #include <$2> | ||
2699 | 1849 | _ACEOF | ||
2700 | 1850 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2701 | 1851 | eval "$3=yes" | ||
2702 | 1852 | else | ||
2703 | 1853 | eval "$3=no" | ||
2704 | 1854 | fi | ||
2705 | 1855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2706 | 1856 | fi | ||
2707 | 1857 | eval ac_res=\$$3 | ||
2708 | 1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2709 | 1859 | $as_echo "$ac_res" >&6; } | ||
2710 | 1860 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2711 | 1861 | |||
2712 | 1862 | } # ac_fn_c_check_header_compile | ||
2713 | 1863 | |||
2714 | 1864 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2715 | 1865 | # ---------------------------------- | ||
2716 | 1866 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2717 | 1867 | ac_fn_c_check_func () | ||
2718 | 1868 | { | ||
2719 | 1869 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2720 | 1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2721 | 1871 | $as_echo_n "checking for $2... " >&6; } | ||
2722 | 1872 | if eval "test \"\${$3+set}\"" = set; then : | ||
2723 | 1873 | $as_echo_n "(cached) " >&6 | ||
2724 | 1874 | else | ||
2725 | 1875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2726 | 1876 | /* end confdefs.h. */ | ||
2727 | 1877 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2728 | 1878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2729 | 1879 | #define $2 innocuous_$2 | ||
2730 | 1880 | |||
2731 | 1881 | /* System header to define __stub macros and hopefully few prototypes, | ||
2732 | 1882 | which can conflict with char $2 (); below. | ||
2733 | 1883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2734 | 1884 | <limits.h> exists even on freestanding compilers. */ | ||
2735 | 1885 | |||
2736 | 1886 | #ifdef __STDC__ | ||
2737 | 1887 | # include <limits.h> | ||
2738 | 1888 | #else | ||
2739 | 1889 | # include <assert.h> | ||
2740 | 1890 | #endif | ||
2741 | 1891 | |||
2742 | 1892 | #undef $2 | ||
2743 | 1893 | |||
2744 | 1894 | /* Override any GCC internal prototype to avoid an error. | ||
2745 | 1895 | Use char because int might match the return type of a GCC | ||
2746 | 1896 | builtin and then its argument prototype would still apply. */ | ||
2747 | 1897 | #ifdef __cplusplus | ||
2748 | 1898 | extern "C" | ||
2749 | 1899 | #endif | ||
2750 | 1900 | char $2 (); | ||
2751 | 1901 | /* The GNU C library defines this for functions which it implements | ||
2752 | 1902 | to always fail with ENOSYS. Some functions are actually named | ||
2753 | 1903 | something starting with __ and the normal name is an alias. */ | ||
2754 | 1904 | #if defined __stub_$2 || defined __stub___$2 | ||
2755 | 1905 | choke me | ||
2756 | 1906 | #endif | ||
2757 | 1907 | |||
2758 | 1908 | int | ||
2759 | 1909 | main () | ||
2760 | 1910 | { | ||
2761 | 1911 | return $2 (); | ||
2762 | 1912 | ; | ||
2763 | 1913 | return 0; | ||
2764 | 1914 | } | ||
2765 | 1915 | _ACEOF | ||
2766 | 1916 | if ac_fn_c_try_link "$LINENO"; then : | ||
2767 | 1917 | eval "$3=yes" | ||
2768 | 1918 | else | ||
2769 | 1919 | eval "$3=no" | ||
2770 | 1920 | fi | ||
2771 | 1921 | rm -f core conftest.err conftest.$ac_objext \ | ||
2772 | 1922 | conftest$ac_exeext conftest.$ac_ext | ||
2773 | 1923 | fi | ||
2774 | 1924 | eval ac_res=\$$3 | ||
2775 | 1925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2776 | 1926 | $as_echo "$ac_res" >&6; } | ||
2777 | 1927 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2778 | 1928 | |||
2779 | 1929 | } # ac_fn_c_check_func | ||
2780 | 1930 | |||
2781 | 1931 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
2782 | 1932 | # ------------------------------------------------------- | ||
2783 | 1933 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
2784 | 1934 | # the include files in INCLUDES and setting the cache variable VAR | ||
2785 | 1935 | # accordingly. | ||
2786 | 1936 | ac_fn_c_check_header_mongrel () | ||
2787 | 1937 | { | ||
2788 | 1938 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2789 | 1939 | if eval "test \"\${$3+set}\"" = set; then : | ||
2790 | 1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2791 | 1941 | $as_echo_n "checking for $2... " >&6; } | ||
2792 | 1942 | if eval "test \"\${$3+set}\"" = set; then : | ||
2793 | 1943 | $as_echo_n "(cached) " >&6 | ||
2794 | 1944 | fi | ||
2795 | 1945 | eval ac_res=\$$3 | ||
2796 | 1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2797 | 1947 | $as_echo "$ac_res" >&6; } | ||
2798 | 1948 | else | ||
2799 | 1949 | # Is the header compilable? | ||
2800 | 1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
2801 | 1951 | $as_echo_n "checking $2 usability... " >&6; } | ||
2802 | 1952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2803 | 1953 | /* end confdefs.h. */ | ||
2804 | 1954 | $4 | ||
2805 | 1955 | #include <$2> | ||
2806 | 1956 | _ACEOF | ||
2807 | 1957 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2808 | 1958 | ac_header_compiler=yes | ||
2809 | 1959 | else | ||
2810 | 1960 | ac_header_compiler=no | ||
2811 | 1961 | fi | ||
2812 | 1962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2813 | 1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2814 | 1964 | $as_echo "$ac_header_compiler" >&6; } | ||
2815 | 1965 | |||
2816 | 1966 | # Is the header present? | ||
2817 | 1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2818 | 1968 | $as_echo_n "checking $2 presence... " >&6; } | ||
2819 | 1969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2820 | 1970 | /* end confdefs.h. */ | ||
2821 | 1971 | #include <$2> | ||
2822 | 1972 | _ACEOF | ||
2823 | 1973 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2824 | 1974 | ac_header_preproc=yes | ||
2825 | 1975 | else | ||
2826 | 1976 | ac_header_preproc=no | ||
2827 | 1977 | fi | ||
2828 | 1978 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2829 | 1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2830 | 1980 | $as_echo "$ac_header_preproc" >&6; } | ||
2831 | 1981 | |||
2832 | 1982 | # So? What about this header? | ||
2833 | 1983 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2834 | 1984 | yes:no: ) | ||
2835 | 1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2836 | 1986 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2837 | 1987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2838 | 1988 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2839 | 1989 | ;; | ||
2840 | 1990 | no:yes:* ) | ||
2841 | 1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2842 | 1992 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2843 | 1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2844 | 1994 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2845 | 1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2846 | 1996 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2847 | 1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2848 | 1998 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2849 | 1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2850 | 2000 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2851 | 2001 | ;; | ||
2852 | 2002 | esac | ||
2853 | 2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2854 | 2004 | $as_echo_n "checking for $2... " >&6; } | ||
2855 | 2005 | if eval "test \"\${$3+set}\"" = set; then : | ||
2856 | 2006 | $as_echo_n "(cached) " >&6 | ||
2857 | 2007 | else | ||
2858 | 2008 | eval "$3=\$ac_header_compiler" | ||
2859 | 2009 | fi | ||
2860 | 2010 | eval ac_res=\$$3 | ||
2861 | 2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2862 | 2012 | $as_echo "$ac_res" >&6; } | ||
2863 | 2013 | fi | ||
2864 | 2014 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2865 | 2015 | |||
2866 | 2016 | } # ac_fn_c_check_header_mongrel | ||
2867 | 2017 | |||
2868 | 2018 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
2869 | 2019 | # ---------------------------------------------------- | ||
2870 | 2020 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
2871 | 2021 | # INCLUDES, setting cache variable VAR accordingly. | ||
2872 | 2022 | ac_fn_c_check_member () | ||
2873 | 2023 | { | ||
2874 | 2024 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2875 | 2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
2876 | 2026 | $as_echo_n "checking for $2.$3... " >&6; } | ||
2877 | 2027 | if eval "test \"\${$4+set}\"" = set; then : | ||
2878 | 2028 | $as_echo_n "(cached) " >&6 | ||
2879 | 2029 | else | ||
2880 | 2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2881 | 2031 | /* end confdefs.h. */ | ||
2882 | 2032 | $5 | ||
2883 | 2033 | int | ||
2884 | 2034 | main () | ||
2885 | 2035 | { | ||
2886 | 2036 | static $2 ac_aggr; | ||
2887 | 2037 | if (ac_aggr.$3) | ||
2888 | 2038 | return 0; | ||
2889 | 2039 | ; | ||
2890 | 2040 | return 0; | ||
2891 | 2041 | } | ||
2892 | 2042 | _ACEOF | ||
2893 | 2043 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2894 | 2044 | eval "$4=yes" | ||
2895 | 2045 | else | ||
2896 | 2046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2897 | 2047 | /* end confdefs.h. */ | ||
2898 | 2048 | $5 | ||
2899 | 2049 | int | ||
2900 | 2050 | main () | ||
2901 | 2051 | { | ||
2902 | 2052 | static $2 ac_aggr; | ||
2903 | 2053 | if (sizeof ac_aggr.$3) | ||
2904 | 2054 | return 0; | ||
2905 | 2055 | ; | ||
2906 | 2056 | return 0; | ||
2907 | 2057 | } | ||
2908 | 2058 | _ACEOF | ||
2909 | 2059 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2910 | 2060 | eval "$4=yes" | ||
2911 | 2061 | else | ||
2912 | 2062 | eval "$4=no" | ||
2913 | 2063 | fi | ||
2914 | 2064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2915 | 2065 | fi | ||
2916 | 2066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2917 | 2067 | fi | ||
2918 | 2068 | eval ac_res=\$$4 | ||
2919 | 2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2920 | 2070 | $as_echo "$ac_res" >&6; } | ||
2921 | 2071 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2922 | 2072 | |||
2923 | 2073 | } # ac_fn_c_check_member | ||
2924 | 2074 | |||
2925 | 2075 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
2926 | 2076 | # ------------------------------------------- | ||
2927 | 2077 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
2928 | 2078 | # variable VAR accordingly. | ||
2929 | 2079 | ac_fn_c_check_type () | ||
2930 | 2080 | { | ||
2931 | 2081 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2932 | 2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2933 | 2083 | $as_echo_n "checking for $2... " >&6; } | ||
2934 | 2084 | if eval "test \"\${$3+set}\"" = set; then : | ||
2935 | 2085 | $as_echo_n "(cached) " >&6 | ||
2936 | 2086 | else | ||
2937 | 2087 | eval "$3=no" | ||
2938 | 2088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2939 | 2089 | /* end confdefs.h. */ | ||
2940 | 2090 | $4 | ||
2941 | 2091 | int | ||
2942 | 2092 | main () | ||
2943 | 2093 | { | ||
2944 | 2094 | if (sizeof ($2)) | ||
2945 | 2095 | return 0; | ||
2946 | 2096 | ; | ||
2947 | 2097 | return 0; | ||
2948 | 2098 | } | ||
2949 | 2099 | _ACEOF | ||
2950 | 2100 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2951 | 2101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2952 | 2102 | /* end confdefs.h. */ | ||
2953 | 2103 | $4 | ||
2954 | 2104 | int | ||
2955 | 2105 | main () | ||
2956 | 2106 | { | ||
2957 | 2107 | if (sizeof (($2))) | ||
2958 | 2108 | return 0; | ||
2959 | 2109 | ; | ||
2960 | 2110 | return 0; | ||
2961 | 2111 | } | ||
2962 | 2112 | _ACEOF | ||
2963 | 2113 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2964 | 2114 | |||
2965 | 2115 | else | ||
2966 | 2116 | eval "$3=yes" | ||
2967 | 2117 | fi | ||
2968 | 2118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2969 | 2119 | fi | ||
2970 | 2120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2971 | 2121 | fi | ||
2972 | 2122 | eval ac_res=\$$3 | ||
2973 | 2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2974 | 2124 | $as_echo "$ac_res" >&6; } | ||
2975 | 2125 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2976 | 2126 | |||
2977 | 2127 | } # ac_fn_c_check_type | ||
2978 | 2128 | cat >config.log <<_ACEOF | ||
2979 | 2129 | This file contains any messages produced by compilers while | ||
2980 | 2130 | running configure, to aid debugging if configure makes a mistake. | ||
2981 | 2131 | |||
2982 | 2132 | It was created by ipsec-tools $as_me 0.8.0, which was | ||
2983 | 2133 | generated by GNU Autoconf 2.67. Invocation command line was | ||
2984 | 2134 | |||
2985 | 2135 | $ $0 $@ | ||
2986 | 2136 | |||
2987 | 2137 | _ACEOF | ||
2988 | 2138 | exec 5>>config.log | ||
2989 | 2139 | { | ||
2990 | 2140 | cat <<_ASUNAME | ||
2991 | 2141 | ## --------- ## | ||
2992 | 2142 | ## Platform. ## | ||
2993 | 2143 | ## --------- ## | ||
2994 | 2144 | |||
2995 | 2145 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2996 | 2146 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2997 | 2147 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2998 | 2148 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2999 | 2149 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
3000 | 2150 | |||
3001 | 2151 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
3002 | 2152 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
3003 | 2153 | |||
3004 | 2154 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
3005 | 2155 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
3006 | 2156 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
3007 | 2157 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
3008 | 2158 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
3009 | 2159 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
3010 | 2160 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
3011 | 2161 | |||
3012 | 2162 | _ASUNAME | ||
3013 | 2163 | |||
3014 | 2164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3015 | 2165 | for as_dir in $PATH | ||
3016 | 2166 | do | ||
3017 | 2167 | IFS=$as_save_IFS | ||
3018 | 2168 | test -z "$as_dir" && as_dir=. | ||
3019 | 2169 | $as_echo "PATH: $as_dir" | ||
3020 | 2170 | done | ||
3021 | 2171 | IFS=$as_save_IFS | ||
3022 | 2172 | |||
3023 | 2173 | } >&5 | ||
3024 | 2174 | |||
3025 | 2175 | cat >&5 <<_ACEOF | ||
3026 | 2176 | |||
3027 | 2177 | |||
3028 | 2178 | ## ----------- ## | ||
3029 | 2179 | ## Core tests. ## | ||
3030 | 2180 | ## ----------- ## | ||
3031 | 2181 | |||
3032 | 2182 | _ACEOF | ||
3033 | 2183 | |||
3034 | 2184 | |||
3035 | 2185 | # Keep a trace of the command line. | ||
3036 | 2186 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
3037 | 2187 | # Strip out --silent because we don't want to record it for future runs. | ||
3038 | 2188 | # Also quote any args containing shell meta-characters. | ||
3039 | 2189 | # Make two passes to allow for proper duplicate-argument suppression. | ||
3040 | 2190 | ac_configure_args= | ||
3041 | 2191 | ac_configure_args0= | ||
3042 | 2192 | ac_configure_args1= | ||
3043 | 2193 | ac_must_keep_next=false | ||
3044 | 2194 | for ac_pass in 1 2 | ||
3045 | 2195 | do | ||
3046 | 2196 | for ac_arg | ||
3047 | 2197 | do | ||
3048 | 2198 | case $ac_arg in | ||
3049 | 2199 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
3050 | 2200 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
3051 | 2201 | | -silent | --silent | --silen | --sile | --sil) | ||
3052 | 2202 | continue ;; | ||
3053 | 2203 | *\'*) | ||
3054 | 2204 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3055 | 2205 | esac | ||
3056 | 2206 | case $ac_pass in | ||
3057 | 2207 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
3058 | 2208 | 2) | ||
3059 | 2209 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
3060 | 2210 | if test $ac_must_keep_next = true; then | ||
3061 | 2211 | ac_must_keep_next=false # Got value, back to normal. | ||
3062 | 2212 | else | ||
3063 | 2213 | case $ac_arg in | ||
3064 | 2214 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
3065 | 2215 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
3066 | 2216 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
3067 | 2217 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
3068 | 2218 | case "$ac_configure_args0 " in | ||
3069 | 2219 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
3070 | 2220 | esac | ||
3071 | 2221 | ;; | ||
3072 | 2222 | -* ) ac_must_keep_next=true ;; | ||
3073 | 2223 | esac | ||
3074 | 2224 | fi | ||
3075 | 2225 | as_fn_append ac_configure_args " '$ac_arg'" | ||
3076 | 2226 | ;; | ||
3077 | 2227 | esac | ||
3078 | 2228 | done | ||
3079 | 2229 | done | ||
3080 | 2230 | { ac_configure_args0=; unset ac_configure_args0;} | ||
3081 | 2231 | { ac_configure_args1=; unset ac_configure_args1;} | ||
3082 | 2232 | |||
3083 | 2233 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
3084 | 2234 | # config.log. We remove comments because anyway the quotes in there | ||
3085 | 2235 | # would cause problems or look ugly. | ||
3086 | 2236 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
3087 | 2237 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
3088 | 2238 | trap 'exit_status=$? | ||
3089 | 2239 | # Save into config.log some information that might help in debugging. | ||
3090 | 2240 | { | ||
3091 | 2241 | echo | ||
3092 | 2242 | |||
3093 | 2243 | $as_echo "## ---------------- ## | ||
3094 | 2244 | ## Cache variables. ## | ||
3095 | 2245 | ## ---------------- ##" | ||
3096 | 2246 | echo | ||
3097 | 2247 | # The following way of writing the cache mishandles newlines in values, | ||
3098 | 2248 | ( | ||
3099 | 2249 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
3100 | 2250 | eval ac_val=\$$ac_var | ||
3101 | 2251 | case $ac_val in #( | ||
3102 | 2252 | *${as_nl}*) | ||
3103 | 2253 | case $ac_var in #( | ||
3104 | 2254 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
3105 | 2255 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
3106 | 2256 | esac | ||
3107 | 2257 | case $ac_var in #( | ||
3108 | 2258 | _ | IFS | as_nl) ;; #( | ||
3109 | 2259 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
3110 | 2260 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
3111 | 2261 | esac ;; | ||
3112 | 2262 | esac | ||
3113 | 2263 | done | ||
3114 | 2264 | (set) 2>&1 | | ||
3115 | 2265 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
3116 | 2266 | *${as_nl}ac_space=\ *) | ||
3117 | 2267 | sed -n \ | ||
3118 | 2268 | "s/'\''/'\''\\\\'\'''\''/g; | ||
3119 | 2269 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
3120 | 2270 | ;; #( | ||
3121 | 2271 | *) | ||
3122 | 2272 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
3123 | 2273 | ;; | ||
3124 | 2274 | esac | | ||
3125 | 2275 | sort | ||
3126 | 2276 | ) | ||
3127 | 2277 | echo | ||
3128 | 2278 | |||
3129 | 2279 | $as_echo "## ----------------- ## | ||
3130 | 2280 | ## Output variables. ## | ||
3131 | 2281 | ## ----------------- ##" | ||
3132 | 2282 | echo | ||
3133 | 2283 | for ac_var in $ac_subst_vars | ||
3134 | 2284 | do | ||
3135 | 2285 | eval ac_val=\$$ac_var | ||
3136 | 2286 | case $ac_val in | ||
3137 | 2287 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3138 | 2288 | esac | ||
3139 | 2289 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3140 | 2290 | done | sort | ||
3141 | 2291 | echo | ||
3142 | 2292 | |||
3143 | 2293 | if test -n "$ac_subst_files"; then | ||
3144 | 2294 | $as_echo "## ------------------- ## | ||
3145 | 2295 | ## File substitutions. ## | ||
3146 | 2296 | ## ------------------- ##" | ||
3147 | 2297 | echo | ||
3148 | 2298 | for ac_var in $ac_subst_files | ||
3149 | 2299 | do | ||
3150 | 2300 | eval ac_val=\$$ac_var | ||
3151 | 2301 | case $ac_val in | ||
3152 | 2302 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3153 | 2303 | esac | ||
3154 | 2304 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3155 | 2305 | done | sort | ||
3156 | 2306 | echo | ||
3157 | 2307 | fi | ||
3158 | 2308 | |||
3159 | 2309 | if test -s confdefs.h; then | ||
3160 | 2310 | $as_echo "## ----------- ## | ||
3161 | 2311 | ## confdefs.h. ## | ||
3162 | 2312 | ## ----------- ##" | ||
3163 | 2313 | echo | ||
3164 | 2314 | cat confdefs.h | ||
3165 | 2315 | echo | ||
3166 | 2316 | fi | ||
3167 | 2317 | test "$ac_signal" != 0 && | ||
3168 | 2318 | $as_echo "$as_me: caught signal $ac_signal" | ||
3169 | 2319 | $as_echo "$as_me: exit $exit_status" | ||
3170 | 2320 | } >&5 | ||
3171 | 2321 | rm -f core *.core core.conftest.* && | ||
3172 | 2322 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
3173 | 2323 | exit $exit_status | ||
3174 | 2324 | ' 0 | ||
3175 | 2325 | for ac_signal in 1 2 13 15; do | ||
3176 | 2326 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
3177 | 2327 | done | ||
3178 | 2328 | ac_signal=0 | ||
3179 | 2329 | |||
3180 | 2330 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
3181 | 2331 | rm -f -r conftest* confdefs.h | ||
3182 | 2332 | |||
3183 | 2333 | $as_echo "/* confdefs.h */" > confdefs.h | ||
3184 | 2334 | |||
3185 | 2335 | # Predefined preprocessor variables. | ||
3186 | 2336 | |||
3187 | 2337 | cat >>confdefs.h <<_ACEOF | ||
3188 | 2338 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
3189 | 2339 | _ACEOF | ||
3190 | 2340 | |||
3191 | 2341 | cat >>confdefs.h <<_ACEOF | ||
3192 | 2342 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
3193 | 2343 | _ACEOF | ||
3194 | 2344 | |||
3195 | 2345 | cat >>confdefs.h <<_ACEOF | ||
3196 | 2346 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
3197 | 2347 | _ACEOF | ||
3198 | 2348 | |||
3199 | 2349 | cat >>confdefs.h <<_ACEOF | ||
3200 | 2350 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
3201 | 2351 | _ACEOF | ||
3202 | 2352 | |||
3203 | 2353 | cat >>confdefs.h <<_ACEOF | ||
3204 | 2354 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
3205 | 2355 | _ACEOF | ||
3206 | 2356 | |||
3207 | 2357 | cat >>confdefs.h <<_ACEOF | ||
3208 | 2358 | #define PACKAGE_URL "$PACKAGE_URL" | ||
3209 | 2359 | _ACEOF | ||
3210 | 2360 | |||
3211 | 2361 | |||
3212 | 2362 | # Let the site file select an alternate cache file if it wants to. | ||
3213 | 2363 | # Prefer an explicitly selected file to automatically selected ones. | ||
3214 | 2364 | ac_site_file1=NONE | ||
3215 | 2365 | ac_site_file2=NONE | ||
3216 | 2366 | if test -n "$CONFIG_SITE"; then | ||
3217 | 2367 | # We do not want a PATH search for config.site. | ||
3218 | 2368 | case $CONFIG_SITE in #(( | ||
3219 | 2369 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
3220 | 2370 | */*) ac_site_file1=$CONFIG_SITE;; | ||
3221 | 2371 | *) ac_site_file1=./$CONFIG_SITE;; | ||
3222 | 2372 | esac | ||
3223 | 2373 | elif test "x$prefix" != xNONE; then | ||
3224 | 2374 | ac_site_file1=$prefix/share/config.site | ||
3225 | 2375 | ac_site_file2=$prefix/etc/config.site | ||
3226 | 2376 | else | ||
3227 | 2377 | ac_site_file1=$ac_default_prefix/share/config.site | ||
3228 | 2378 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
3229 | 2379 | fi | ||
3230 | 2380 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
3231 | 2381 | do | ||
3232 | 2382 | test "x$ac_site_file" = xNONE && continue | ||
3233 | 2383 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
3234 | 2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
3235 | 2385 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
3236 | 2386 | sed 's/^/| /' "$ac_site_file" >&5 | ||
3237 | 2387 | . "$ac_site_file" \ | ||
3238 | 2388 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3239 | 2389 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3240 | 2390 | as_fn_error $? "failed to load site script $ac_site_file | ||
3241 | 2391 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3242 | 2392 | fi | ||
3243 | 2393 | done | ||
3244 | 2394 | |||
3245 | 2395 | if test -r "$cache_file"; then | ||
3246 | 2396 | # Some versions of bash will fail to source /dev/null (special files | ||
3247 | 2397 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
3248 | 2398 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
3249 | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
3250 | 2400 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
3251 | 2401 | case $cache_file in | ||
3252 | 2402 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
3253 | 2403 | *) . "./$cache_file";; | ||
3254 | 2404 | esac | ||
3255 | 2405 | fi | ||
3256 | 2406 | else | ||
3257 | 2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
3258 | 2408 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
3259 | 2409 | >$cache_file | ||
3260 | 2410 | fi | ||
3261 | 2411 | |||
3262 | 2412 | # Check that the precious variables saved in the cache have kept the same | ||
3263 | 2413 | # value. | ||
3264 | 2414 | ac_cache_corrupted=false | ||
3265 | 2415 | for ac_var in $ac_precious_vars; do | ||
3266 | 2416 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
3267 | 2417 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
3268 | 2418 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
3269 | 2419 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
3270 | 2420 | case $ac_old_set,$ac_new_set in | ||
3271 | 2421 | set,) | ||
3272 | 2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
3273 | 2423 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
3274 | 2424 | ac_cache_corrupted=: ;; | ||
3275 | 2425 | ,set) | ||
3276 | 2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
3277 | 2427 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
3278 | 2428 | ac_cache_corrupted=: ;; | ||
3279 | 2429 | ,);; | ||
3280 | 2430 | *) | ||
3281 | 2431 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
3282 | 2432 | # differences in whitespace do not lead to failure. | ||
3283 | 2433 | ac_old_val_w=`echo x $ac_old_val` | ||
3284 | 2434 | ac_new_val_w=`echo x $ac_new_val` | ||
3285 | 2435 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
3286 | 2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
3287 | 2437 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
3288 | 2438 | ac_cache_corrupted=: | ||
3289 | 2439 | else | ||
3290 | 2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
3291 | 2441 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
3292 | 2442 | eval $ac_var=\$ac_old_val | ||
3293 | 2443 | fi | ||
3294 | 2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
3295 | 2445 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
3296 | 2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
3297 | 2447 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
3298 | 2448 | fi;; | ||
3299 | 2449 | esac | ||
3300 | 2450 | # Pass precious variables to config.status. | ||
3301 | 2451 | if test "$ac_new_set" = set; then | ||
3302 | 2452 | case $ac_new_val in | ||
3303 | 2453 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3304 | 2454 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
3305 | 2455 | esac | ||
3306 | 2456 | case " $ac_configure_args " in | ||
3307 | 2457 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
3308 | 2458 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
3309 | 2459 | esac | ||
3310 | 2460 | fi | ||
3311 | 2461 | done | ||
3312 | 2462 | if $ac_cache_corrupted; then | ||
3313 | 2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3314 | 2464 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3315 | 2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
3316 | 2466 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
3317 | 2467 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
3318 | 2468 | fi | ||
3319 | 2469 | ## -------------------- ## | ||
3320 | 2470 | ## Main body of script. ## | ||
3321 | 2471 | ## -------------------- ## | ||
3322 | 2472 | |||
3323 | 2473 | ac_ext=c | ||
3324 | 2474 | ac_cpp='$CPP $CPPFLAGS' | ||
3325 | 2475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3326 | 2476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3327 | 2477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3328 | 2478 | |||
3329 | 2479 | |||
3330 | 2480 | |||
3331 | 2481 | ac_config_headers="$ac_config_headers config.h" | ||
3332 | 2482 | |||
3333 | 2483 | |||
3334 | 2484 | am__api_version='1.11' | ||
3335 | 2485 | |||
3336 | 2486 | ac_aux_dir= | ||
3337 | 2487 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3338 | 2488 | if test -f "$ac_dir/install-sh"; then | ||
3339 | 2489 | ac_aux_dir=$ac_dir | ||
3340 | 2490 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3341 | 2491 | break | ||
3342 | 2492 | elif test -f "$ac_dir/install.sh"; then | ||
3343 | 2493 | ac_aux_dir=$ac_dir | ||
3344 | 2494 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3345 | 2495 | break | ||
3346 | 2496 | elif test -f "$ac_dir/shtool"; then | ||
3347 | 2497 | ac_aux_dir=$ac_dir | ||
3348 | 2498 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3349 | 2499 | break | ||
3350 | 2500 | fi | ||
3351 | 2501 | done | ||
3352 | 2502 | if test -z "$ac_aux_dir"; then | ||
3353 | 2503 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3354 | 2504 | fi | ||
3355 | 2505 | |||
3356 | 2506 | # These three variables are undocumented and unsupported, | ||
3357 | 2507 | # and are intended to be withdrawn in a future Autoconf release. | ||
3358 | 2508 | # They can cause serious problems if a builder's source tree is in a directory | ||
3359 | 2509 | # whose full name contains unusual characters. | ||
3360 | 2510 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3361 | 2511 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3362 | 2512 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3363 | 2513 | |||
3364 | 2514 | |||
3365 | 2515 | # Find a good install program. We prefer a C program (faster), | ||
3366 | 2516 | # so one script is as good as another. But avoid the broken or | ||
3367 | 2517 | # incompatible versions: | ||
3368 | 2518 | # SysV /etc/install, /usr/sbin/install | ||
3369 | 2519 | # SunOS /usr/etc/install | ||
3370 | 2520 | # IRIX /sbin/install | ||
3371 | 2521 | # AIX /bin/install | ||
3372 | 2522 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
3373 | 2523 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
3374 | 2524 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
3375 | 2525 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
3376 | 2526 | # OS/2's system install, which has a completely different semantic | ||
3377 | 2527 | # ./install, which can be erroneously created by make from ./install.sh. | ||
3378 | 2528 | # Reject install programs that cannot install multiple files. | ||
3379 | 2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
3380 | 2530 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
3381 | 2531 | if test -z "$INSTALL"; then | ||
3382 | 2532 | if test "${ac_cv_path_install+set}" = set; then : | ||
3383 | 2533 | $as_echo_n "(cached) " >&6 | ||
3384 | 2534 | else | ||
3385 | 2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3386 | 2536 | for as_dir in $PATH | ||
3387 | 2537 | do | ||
3388 | 2538 | IFS=$as_save_IFS | ||
3389 | 2539 | test -z "$as_dir" && as_dir=. | ||
3390 | 2540 | # Account for people who put trailing slashes in PATH elements. | ||
3391 | 2541 | case $as_dir/ in #(( | ||
3392 | 2542 | ./ | .// | /[cC]/* | \ | ||
3393 | 2543 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
3394 | 2544 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
3395 | 2545 | /usr/ucb/* ) ;; | ||
3396 | 2546 | *) | ||
3397 | 2547 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
3398 | 2548 | # Don't use installbsd from OSF since it installs stuff as root | ||
3399 | 2549 | # by default. | ||
3400 | 2550 | for ac_prog in ginstall scoinst install; do | ||
3401 | 2551 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3402 | 2552 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
3403 | 2553 | if test $ac_prog = install && | ||
3404 | 2554 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3405 | 2555 | # AIX install. It has an incompatible calling convention. | ||
3406 | 2556 | : | ||
3407 | 2557 | elif test $ac_prog = install && | ||
3408 | 2558 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3409 | 2559 | # program-specific install script used by HP pwplus--don't use. | ||
3410 | 2560 | : | ||
3411 | 2561 | else | ||
3412 | 2562 | rm -rf conftest.one conftest.two conftest.dir | ||
3413 | 2563 | echo one > conftest.one | ||
3414 | 2564 | echo two > conftest.two | ||
3415 | 2565 | mkdir conftest.dir | ||
3416 | 2566 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
3417 | 2567 | test -s conftest.one && test -s conftest.two && | ||
3418 | 2568 | test -s conftest.dir/conftest.one && | ||
3419 | 2569 | test -s conftest.dir/conftest.two | ||
3420 | 2570 | then | ||
3421 | 2571 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3422 | 2572 | break 3 | ||
3423 | 2573 | fi | ||
3424 | 2574 | fi | ||
3425 | 2575 | fi | ||
3426 | 2576 | done | ||
3427 | 2577 | done | ||
3428 | 2578 | ;; | ||
3429 | 2579 | esac | ||
3430 | 2580 | |||
3431 | 2581 | done | ||
3432 | 2582 | IFS=$as_save_IFS | ||
3433 | 2583 | |||
3434 | 2584 | rm -rf conftest.one conftest.two conftest.dir | ||
3435 | 2585 | |||
3436 | 2586 | fi | ||
3437 | 2587 | if test "${ac_cv_path_install+set}" = set; then | ||
3438 | 2588 | INSTALL=$ac_cv_path_install | ||
3439 | 2589 | else | ||
3440 | 2590 | # As a last resort, use the slow shell script. Don't cache a | ||
3441 | 2591 | # value for INSTALL within a source directory, because that will | ||
3442 | 2592 | # break other packages using the cache if that directory is | ||
3443 | 2593 | # removed, or if the value is a relative name. | ||
3444 | 2594 | INSTALL=$ac_install_sh | ||
3445 | 2595 | fi | ||
3446 | 2596 | fi | ||
3447 | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
3448 | 2598 | $as_echo "$INSTALL" >&6; } | ||
3449 | 2599 | |||
3450 | 2600 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3451 | 2601 | # It thinks the first close brace ends the variable substitution. | ||
3452 | 2602 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3453 | 2603 | |||
3454 | 2604 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3455 | 2605 | |||
3456 | 2606 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3457 | 2607 | |||
3458 | 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
3459 | 2609 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
3460 | 2610 | # Just in case | ||
3461 | 2611 | sleep 1 | ||
3462 | 2612 | echo timestamp > conftest.file | ||
3463 | 2613 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
3464 | 2614 | # name. Accept space and tab only in the latter. | ||
3465 | 2615 | am_lf=' | ||
3466 | 2616 | ' | ||
3467 | 2617 | case `pwd` in | ||
3468 | 2618 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
3469 | 2619 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
3470 | 2620 | esac | ||
3471 | 2621 | case $srcdir in | ||
3472 | 2622 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
3473 | 2623 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
3474 | 2624 | esac | ||
3475 | 2625 | |||
3476 | 2626 | # Do `set' in a subshell so we don't clobber the current shell's | ||
3477 | 2627 | # arguments. Must try -L first in case configure is actually a | ||
3478 | 2628 | # symlink; some systems play weird games with the mod time of symlinks | ||
3479 | 2629 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
3480 | 2630 | # directory). | ||
3481 | 2631 | if ( | ||
3482 | 2632 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
3483 | 2633 | if test "$*" = "X"; then | ||
3484 | 2634 | # -L didn't work. | ||
3485 | 2635 | set X `ls -t "$srcdir/configure" conftest.file` | ||
3486 | 2636 | fi | ||
3487 | 2637 | rm -f conftest.file | ||
3488 | 2638 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
3489 | 2639 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
3490 | 2640 | |||
3491 | 2641 | # If neither matched, then we have a broken ls. This can happen | ||
3492 | 2642 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
3493 | 2643 | # broken ls alias from the environment. This has actually | ||
3494 | 2644 | # happened. Such a system could not be considered "sane". | ||
3495 | 2645 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
3496 | 2646 | alias in your environment" "$LINENO" 5 | ||
3497 | 2647 | fi | ||
3498 | 2648 | |||
3499 | 2649 | test "$2" = conftest.file | ||
3500 | 2650 | ) | ||
3501 | 2651 | then | ||
3502 | 2652 | # Ok. | ||
3503 | 2653 | : | ||
3504 | 2654 | else | ||
3505 | 2655 | as_fn_error $? "newly created file is older than distributed files! | ||
3506 | 2656 | Check your system clock" "$LINENO" 5 | ||
3507 | 2657 | fi | ||
3508 | 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3509 | 2659 | $as_echo "yes" >&6; } | ||
3510 | 2660 | test "$program_prefix" != NONE && | ||
3511 | 2661 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
3512 | 2662 | # Use a double $ so make ignores it. | ||
3513 | 2663 | test "$program_suffix" != NONE && | ||
3514 | 2664 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
3515 | 2665 | # Double any \ or $. | ||
3516 | 2666 | # By default was `s,x,x', remove it if useless. | ||
3517 | 2667 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
3518 | 2668 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
3519 | 2669 | |||
3520 | 2670 | # expand $ac_aux_dir to an absolute path | ||
3521 | 2671 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
3522 | 2672 | |||
3523 | 2673 | if test x"${MISSING+set}" != xset; then | ||
3524 | 2674 | case $am_aux_dir in | ||
3525 | 2675 | *\ * | *\ *) | ||
3526 | 2676 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
3527 | 2677 | *) | ||
3528 | 2678 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
3529 | 2679 | esac | ||
3530 | 2680 | fi | ||
3531 | 2681 | # Use eval to expand $SHELL | ||
3532 | 2682 | if eval "$MISSING --run true"; then | ||
3533 | 2683 | am_missing_run="$MISSING --run " | ||
3534 | 2684 | else | ||
3535 | 2685 | am_missing_run= | ||
3536 | 2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
3537 | 2687 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
3538 | 2688 | fi | ||
3539 | 2689 | |||
3540 | 2690 | if test x"${install_sh}" != xset; then | ||
3541 | 2691 | case $am_aux_dir in | ||
3542 | 2692 | *\ * | *\ *) | ||
3543 | 2693 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
3544 | 2694 | *) | ||
3545 | 2695 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
3546 | 2696 | esac | ||
3547 | 2697 | fi | ||
3548 | 2698 | |||
3549 | 2699 | # Installed binaries are usually stripped using `strip' when the user | ||
3550 | 2700 | # run `make install-strip'. However `strip' might not be the right | ||
3551 | 2701 | # tool to use in cross-compilation environments, therefore Automake | ||
3552 | 2702 | # will honor the `STRIP' environment variable to overrule this program. | ||
3553 | 2703 | if test "$cross_compiling" != no; then | ||
3554 | 2704 | if test -n "$ac_tool_prefix"; then | ||
3555 | 2705 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
3556 | 2706 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
3557 | 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3558 | 2708 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3559 | 2709 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
3560 | 2710 | $as_echo_n "(cached) " >&6 | ||
3561 | 2711 | else | ||
3562 | 2712 | if test -n "$STRIP"; then | ||
3563 | 2713 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
3564 | 2714 | else | ||
3565 | 2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3566 | 2716 | for as_dir in $PATH | ||
3567 | 2717 | do | ||
3568 | 2718 | IFS=$as_save_IFS | ||
3569 | 2719 | test -z "$as_dir" && as_dir=. | ||
3570 | 2720 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3571 | 2721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3572 | 2722 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
3573 | 2723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3574 | 2724 | break 2 | ||
3575 | 2725 | fi | ||
3576 | 2726 | done | ||
3577 | 2727 | done | ||
3578 | 2728 | IFS=$as_save_IFS | ||
3579 | 2729 | |||
3580 | 2730 | fi | ||
3581 | 2731 | fi | ||
3582 | 2732 | STRIP=$ac_cv_prog_STRIP | ||
3583 | 2733 | if test -n "$STRIP"; then | ||
3584 | 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
3585 | 2735 | $as_echo "$STRIP" >&6; } | ||
3586 | 2736 | else | ||
3587 | 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3588 | 2738 | $as_echo "no" >&6; } | ||
3589 | 2739 | fi | ||
3590 | 2740 | |||
3591 | 2741 | |||
3592 | 2742 | fi | ||
3593 | 2743 | if test -z "$ac_cv_prog_STRIP"; then | ||
3594 | 2744 | ac_ct_STRIP=$STRIP | ||
3595 | 2745 | # Extract the first word of "strip", so it can be a program name with args. | ||
3596 | 2746 | set dummy strip; ac_word=$2 | ||
3597 | 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3598 | 2748 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3599 | 2749 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
3600 | 2750 | $as_echo_n "(cached) " >&6 | ||
3601 | 2751 | else | ||
3602 | 2752 | if test -n "$ac_ct_STRIP"; then | ||
3603 | 2753 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
3604 | 2754 | else | ||
3605 | 2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3606 | 2756 | for as_dir in $PATH | ||
3607 | 2757 | do | ||
3608 | 2758 | IFS=$as_save_IFS | ||
3609 | 2759 | test -z "$as_dir" && as_dir=. | ||
3610 | 2760 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3611 | 2761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3612 | 2762 | ac_cv_prog_ac_ct_STRIP="strip" | ||
3613 | 2763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3614 | 2764 | break 2 | ||
3615 | 2765 | fi | ||
3616 | 2766 | done | ||
3617 | 2767 | done | ||
3618 | 2768 | IFS=$as_save_IFS | ||
3619 | 2769 | |||
3620 | 2770 | fi | ||
3621 | 2771 | fi | ||
3622 | 2772 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
3623 | 2773 | if test -n "$ac_ct_STRIP"; then | ||
3624 | 2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
3625 | 2775 | $as_echo "$ac_ct_STRIP" >&6; } | ||
3626 | 2776 | else | ||
3627 | 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3628 | 2778 | $as_echo "no" >&6; } | ||
3629 | 2779 | fi | ||
3630 | 2780 | |||
3631 | 2781 | if test "x$ac_ct_STRIP" = x; then | ||
3632 | 2782 | STRIP=":" | ||
3633 | 2783 | else | ||
3634 | 2784 | case $cross_compiling:$ac_tool_warned in | ||
3635 | 2785 | yes:) | ||
3636 | 2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3637 | 2787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3638 | 2788 | ac_tool_warned=yes ;; | ||
3639 | 2789 | esac | ||
3640 | 2790 | STRIP=$ac_ct_STRIP | ||
3641 | 2791 | fi | ||
3642 | 2792 | else | ||
3643 | 2793 | STRIP="$ac_cv_prog_STRIP" | ||
3644 | 2794 | fi | ||
3645 | 2795 | |||
3646 | 2796 | fi | ||
3647 | 2797 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
3648 | 2798 | |||
3649 | 2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
3650 | 2800 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
3651 | 2801 | if test -z "$MKDIR_P"; then | ||
3652 | 2802 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
3653 | 2803 | $as_echo_n "(cached) " >&6 | ||
3654 | 2804 | else | ||
3655 | 2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3656 | 2806 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
3657 | 2807 | do | ||
3658 | 2808 | IFS=$as_save_IFS | ||
3659 | 2809 | test -z "$as_dir" && as_dir=. | ||
3660 | 2810 | for ac_prog in mkdir gmkdir; do | ||
3661 | 2811 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3662 | 2812 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
3663 | 2813 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
3664 | 2814 | 'mkdir (GNU coreutils) '* | \ | ||
3665 | 2815 | 'mkdir (coreutils) '* | \ | ||
3666 | 2816 | 'mkdir (fileutils) '4.1*) | ||
3667 | 2817 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
3668 | 2818 | break 3;; | ||
3669 | 2819 | esac | ||
3670 | 2820 | done | ||
3671 | 2821 | done | ||
3672 | 2822 | done | ||
3673 | 2823 | IFS=$as_save_IFS | ||
3674 | 2824 | |||
3675 | 2825 | fi | ||
3676 | 2826 | |||
3677 | 2827 | test -d ./--version && rmdir ./--version | ||
3678 | 2828 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
3679 | 2829 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
3680 | 2830 | else | ||
3681 | 2831 | # As a last resort, use the slow shell script. Don't cache a | ||
3682 | 2832 | # value for MKDIR_P within a source directory, because that will | ||
3683 | 2833 | # break other packages using the cache if that directory is | ||
3684 | 2834 | # removed, or if the value is a relative name. | ||
3685 | 2835 | MKDIR_P="$ac_install_sh -d" | ||
3686 | 2836 | fi | ||
3687 | 2837 | fi | ||
3688 | 2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
3689 | 2839 | $as_echo "$MKDIR_P" >&6; } | ||
3690 | 2840 | |||
3691 | 2841 | mkdir_p="$MKDIR_P" | ||
3692 | 2842 | case $mkdir_p in | ||
3693 | 2843 | [\\/$]* | ?:[\\/]*) ;; | ||
3694 | 2844 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
3695 | 2845 | esac | ||
3696 | 2846 | |||
3697 | 2847 | for ac_prog in gawk mawk nawk awk | ||
3698 | 2848 | do | ||
3699 | 2849 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3700 | 2850 | set dummy $ac_prog; ac_word=$2 | ||
3701 | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3702 | 2852 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3703 | 2853 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
3704 | 2854 | $as_echo_n "(cached) " >&6 | ||
3705 | 2855 | else | ||
3706 | 2856 | if test -n "$AWK"; then | ||
3707 | 2857 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3708 | 2858 | else | ||
3709 | 2859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3710 | 2860 | for as_dir in $PATH | ||
3711 | 2861 | do | ||
3712 | 2862 | IFS=$as_save_IFS | ||
3713 | 2863 | test -z "$as_dir" && as_dir=. | ||
3714 | 2864 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3715 | 2865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3716 | 2866 | ac_cv_prog_AWK="$ac_prog" | ||
3717 | 2867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3718 | 2868 | break 2 | ||
3719 | 2869 | fi | ||
3720 | 2870 | done | ||
3721 | 2871 | done | ||
3722 | 2872 | IFS=$as_save_IFS | ||
3723 | 2873 | |||
3724 | 2874 | fi | ||
3725 | 2875 | fi | ||
3726 | 2876 | AWK=$ac_cv_prog_AWK | ||
3727 | 2877 | if test -n "$AWK"; then | ||
3728 | 2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
3729 | 2879 | $as_echo "$AWK" >&6; } | ||
3730 | 2880 | else | ||
3731 | 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3732 | 2882 | $as_echo "no" >&6; } | ||
3733 | 2883 | fi | ||
3734 | 2884 | |||
3735 | 2885 | |||
3736 | 2886 | test -n "$AWK" && break | ||
3737 | 2887 | done | ||
3738 | 2888 | |||
3739 | 2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
3740 | 2890 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
3741 | 2891 | set x ${MAKE-make} | ||
3742 | 2892 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
3743 | 2893 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
3744 | 2894 | $as_echo_n "(cached) " >&6 | ||
3745 | 2895 | else | ||
3746 | 2896 | cat >conftest.make <<\_ACEOF | ||
3747 | 2897 | SHELL = /bin/sh | ||
3748 | 2898 | all: | ||
3749 | 2899 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
3750 | 2900 | _ACEOF | ||
3751 | 2901 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
3752 | 2902 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
3753 | 2903 | *@@@%%%=?*=@@@%%%*) | ||
3754 | 2904 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
3755 | 2905 | *) | ||
3756 | 2906 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
3757 | 2907 | esac | ||
3758 | 2908 | rm -f conftest.make | ||
3759 | 2909 | fi | ||
3760 | 2910 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
3761 | 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3762 | 2912 | $as_echo "yes" >&6; } | ||
3763 | 2913 | SET_MAKE= | ||
3764 | 2914 | else | ||
3765 | 2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3766 | 2916 | $as_echo "no" >&6; } | ||
3767 | 2917 | SET_MAKE="MAKE=${MAKE-make}" | ||
3768 | 2918 | fi | ||
3769 | 2919 | |||
3770 | 2920 | rm -rf .tst 2>/dev/null | ||
3771 | 2921 | mkdir .tst 2>/dev/null | ||
3772 | 2922 | if test -d .tst; then | ||
3773 | 2923 | am__leading_dot=. | ||
3774 | 2924 | else | ||
3775 | 2925 | am__leading_dot=_ | ||
3776 | 2926 | fi | ||
3777 | 2927 | rmdir .tst 2>/dev/null | ||
3778 | 2928 | |||
3779 | 2929 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
3780 | 2930 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
3781 | 2931 | # is not polluted with repeated "-I." | ||
3782 | 2932 | am__isrc=' -I$(srcdir)' | ||
3783 | 2933 | # test to see if srcdir already configured | ||
3784 | 2934 | if test -f $srcdir/config.status; then | ||
3785 | 2935 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
3786 | 2936 | fi | ||
3787 | 2937 | fi | ||
3788 | 2938 | |||
3789 | 2939 | # test whether we have cygpath | ||
3790 | 2940 | if test -z "$CYGPATH_W"; then | ||
3791 | 2941 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
3792 | 2942 | CYGPATH_W='cygpath -w' | ||
3793 | 2943 | else | ||
3794 | 2944 | CYGPATH_W=echo | ||
3795 | 2945 | fi | ||
3796 | 2946 | fi | ||
3797 | 2947 | |||
3798 | 2948 | |||
3799 | 2949 | # Define the identity of the package. | ||
3800 | 2950 | PACKAGE='ipsec-tools' | ||
3801 | 2951 | VERSION='0.8.0' | ||
3802 | 2952 | |||
3803 | 2953 | |||
3804 | 2954 | cat >>confdefs.h <<_ACEOF | ||
3805 | 2955 | #define PACKAGE "$PACKAGE" | ||
3806 | 2956 | _ACEOF | ||
3807 | 2957 | |||
3808 | 2958 | |||
3809 | 2959 | cat >>confdefs.h <<_ACEOF | ||
3810 | 2960 | #define VERSION "$VERSION" | ||
3811 | 2961 | _ACEOF | ||
3812 | 2962 | |||
3813 | 2963 | # Some tools Automake needs. | ||
3814 | 2964 | |||
3815 | 2965 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
3816 | 2966 | |||
3817 | 2967 | |||
3818 | 2968 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
3819 | 2969 | |||
3820 | 2970 | |||
3821 | 2971 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
3822 | 2972 | |||
3823 | 2973 | |||
3824 | 2974 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
3825 | 2975 | |||
3826 | 2976 | |||
3827 | 2977 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
3828 | 2978 | |||
3829 | 2979 | # We need awk for the "check" target. The system "awk" is bad on | ||
3830 | 2980 | # some platforms. | ||
3831 | 2981 | # Always define AMTAR for backward compatibility. | ||
3832 | 2982 | |||
3833 | 2983 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
3834 | 2984 | |||
3835 | 2985 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
3836 | 2986 | |||
3837 | 2987 | |||
3838 | 2988 | |||
3839 | 2989 | |||
3840 | 2990 | |||
3841 | 2991 | |||
3842 | 2992 | # Check whether --enable-shared was given. | ||
3843 | 2993 | if test "${enable_shared+set}" = set; then : | ||
3844 | 2994 | enableval=$enable_shared; p=${PACKAGE-default} | ||
3845 | 2995 | case $enableval in | ||
3846 | 2996 | yes) enable_shared=yes ;; | ||
3847 | 2997 | no) enable_shared=no ;; | ||
3848 | 2998 | *) | ||
3849 | 2999 | enable_shared=no | ||
3850 | 3000 | # Look at the argument we got. We use all the common list separators. | ||
3851 | 3001 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3852 | 3002 | for pkg in $enableval; do | ||
3853 | 3003 | IFS="$lt_save_ifs" | ||
3854 | 3004 | if test "X$pkg" = "X$p"; then | ||
3855 | 3005 | enable_shared=yes | ||
3856 | 3006 | fi | ||
3857 | 3007 | done | ||
3858 | 3008 | IFS="$lt_save_ifs" | ||
3859 | 3009 | ;; | ||
3860 | 3010 | esac | ||
3861 | 3011 | else | ||
3862 | 3012 | enable_shared=no | ||
3863 | 3013 | fi | ||
3864 | 3014 | |||
3865 | 3015 | |||
3866 | 3016 | |||
3867 | 3017 | |||
3868 | 3018 | |||
3869 | 3019 | |||
3870 | 3020 | |||
3871 | 3021 | |||
3872 | 3022 | |||
3873 | 3023 | |||
3874 | 3024 | ac_ext=c | ||
3875 | 3025 | ac_cpp='$CPP $CPPFLAGS' | ||
3876 | 3026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3877 | 3027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3878 | 3028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3879 | 3029 | if test -n "$ac_tool_prefix"; then | ||
3880 | 3030 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
3881 | 3031 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
3882 | 3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3883 | 3033 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3884 | 3034 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3885 | 3035 | $as_echo_n "(cached) " >&6 | ||
3886 | 3036 | else | ||
3887 | 3037 | if test -n "$CC"; then | ||
3888 | 3038 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3889 | 3039 | else | ||
3890 | 3040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3891 | 3041 | for as_dir in $PATH | ||
3892 | 3042 | do | ||
3893 | 3043 | IFS=$as_save_IFS | ||
3894 | 3044 | test -z "$as_dir" && as_dir=. | ||
3895 | 3045 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3896 | 3046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3897 | 3047 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
3898 | 3048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3899 | 3049 | break 2 | ||
3900 | 3050 | fi | ||
3901 | 3051 | done | ||
3902 | 3052 | done | ||
3903 | 3053 | IFS=$as_save_IFS | ||
3904 | 3054 | |||
3905 | 3055 | fi | ||
3906 | 3056 | fi | ||
3907 | 3057 | CC=$ac_cv_prog_CC | ||
3908 | 3058 | if test -n "$CC"; then | ||
3909 | 3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3910 | 3060 | $as_echo "$CC" >&6; } | ||
3911 | 3061 | else | ||
3912 | 3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3913 | 3063 | $as_echo "no" >&6; } | ||
3914 | 3064 | fi | ||
3915 | 3065 | |||
3916 | 3066 | |||
3917 | 3067 | fi | ||
3918 | 3068 | if test -z "$ac_cv_prog_CC"; then | ||
3919 | 3069 | ac_ct_CC=$CC | ||
3920 | 3070 | # Extract the first word of "gcc", so it can be a program name with args. | ||
3921 | 3071 | set dummy gcc; ac_word=$2 | ||
3922 | 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3923 | 3073 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3924 | 3074 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3925 | 3075 | $as_echo_n "(cached) " >&6 | ||
3926 | 3076 | else | ||
3927 | 3077 | if test -n "$ac_ct_CC"; then | ||
3928 | 3078 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3929 | 3079 | else | ||
3930 | 3080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3931 | 3081 | for as_dir in $PATH | ||
3932 | 3082 | do | ||
3933 | 3083 | IFS=$as_save_IFS | ||
3934 | 3084 | test -z "$as_dir" && as_dir=. | ||
3935 | 3085 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3936 | 3086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3937 | 3087 | ac_cv_prog_ac_ct_CC="gcc" | ||
3938 | 3088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3939 | 3089 | break 2 | ||
3940 | 3090 | fi | ||
3941 | 3091 | done | ||
3942 | 3092 | done | ||
3943 | 3093 | IFS=$as_save_IFS | ||
3944 | 3094 | |||
3945 | 3095 | fi | ||
3946 | 3096 | fi | ||
3947 | 3097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3948 | 3098 | if test -n "$ac_ct_CC"; then | ||
3949 | 3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3950 | 3100 | $as_echo "$ac_ct_CC" >&6; } | ||
3951 | 3101 | else | ||
3952 | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3953 | 3103 | $as_echo "no" >&6; } | ||
3954 | 3104 | fi | ||
3955 | 3105 | |||
3956 | 3106 | if test "x$ac_ct_CC" = x; then | ||
3957 | 3107 | CC="" | ||
3958 | 3108 | else | ||
3959 | 3109 | case $cross_compiling:$ac_tool_warned in | ||
3960 | 3110 | yes:) | ||
3961 | 3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3962 | 3112 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3963 | 3113 | ac_tool_warned=yes ;; | ||
3964 | 3114 | esac | ||
3965 | 3115 | CC=$ac_ct_CC | ||
3966 | 3116 | fi | ||
3967 | 3117 | else | ||
3968 | 3118 | CC="$ac_cv_prog_CC" | ||
3969 | 3119 | fi | ||
3970 | 3120 | |||
3971 | 3121 | if test -z "$CC"; then | ||
3972 | 3122 | if test -n "$ac_tool_prefix"; then | ||
3973 | 3123 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
3974 | 3124 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
3975 | 3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3976 | 3126 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3977 | 3127 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3978 | 3128 | $as_echo_n "(cached) " >&6 | ||
3979 | 3129 | else | ||
3980 | 3130 | if test -n "$CC"; then | ||
3981 | 3131 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3982 | 3132 | else | ||
3983 | 3133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3984 | 3134 | for as_dir in $PATH | ||
3985 | 3135 | do | ||
3986 | 3136 | IFS=$as_save_IFS | ||
3987 | 3137 | test -z "$as_dir" && as_dir=. | ||
3988 | 3138 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3989 | 3139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3990 | 3140 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
3991 | 3141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3992 | 3142 | break 2 | ||
3993 | 3143 | fi | ||
3994 | 3144 | done | ||
3995 | 3145 | done | ||
3996 | 3146 | IFS=$as_save_IFS | ||
3997 | 3147 | |||
3998 | 3148 | fi | ||
3999 | 3149 | fi | ||
4000 | 3150 | CC=$ac_cv_prog_CC | ||
4001 | 3151 | if test -n "$CC"; then | ||
4002 | 3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4003 | 3153 | $as_echo "$CC" >&6; } | ||
4004 | 3154 | else | ||
4005 | 3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4006 | 3156 | $as_echo "no" >&6; } | ||
4007 | 3157 | fi | ||
4008 | 3158 | |||
4009 | 3159 | |||
4010 | 3160 | fi | ||
4011 | 3161 | fi | ||
4012 | 3162 | if test -z "$CC"; then | ||
4013 | 3163 | # Extract the first word of "cc", so it can be a program name with args. | ||
4014 | 3164 | set dummy cc; ac_word=$2 | ||
4015 | 3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4016 | 3166 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4017 | 3167 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4018 | 3168 | $as_echo_n "(cached) " >&6 | ||
4019 | 3169 | else | ||
4020 | 3170 | if test -n "$CC"; then | ||
4021 | 3171 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4022 | 3172 | else | ||
4023 | 3173 | ac_prog_rejected=no | ||
4024 | 3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4025 | 3175 | for as_dir in $PATH | ||
4026 | 3176 | do | ||
4027 | 3177 | IFS=$as_save_IFS | ||
4028 | 3178 | test -z "$as_dir" && as_dir=. | ||
4029 | 3179 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4030 | 3180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4031 | 3181 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
4032 | 3182 | ac_prog_rejected=yes | ||
4033 | 3183 | continue | ||
4034 | 3184 | fi | ||
4035 | 3185 | ac_cv_prog_CC="cc" | ||
4036 | 3186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4037 | 3187 | break 2 | ||
4038 | 3188 | fi | ||
4039 | 3189 | done | ||
4040 | 3190 | done | ||
4041 | 3191 | IFS=$as_save_IFS | ||
4042 | 3192 | |||
4043 | 3193 | if test $ac_prog_rejected = yes; then | ||
4044 | 3194 | # We found a bogon in the path, so make sure we never use it. | ||
4045 | 3195 | set dummy $ac_cv_prog_CC | ||
4046 | 3196 | shift | ||
4047 | 3197 | if test $# != 0; then | ||
4048 | 3198 | # We chose a different compiler from the bogus one. | ||
4049 | 3199 | # However, it has the same basename, so the bogon will be chosen | ||
4050 | 3200 | # first if we set CC to just the basename; use the full file name. | ||
4051 | 3201 | shift | ||
4052 | 3202 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
4053 | 3203 | fi | ||
4054 | 3204 | fi | ||
4055 | 3205 | fi | ||
4056 | 3206 | fi | ||
4057 | 3207 | CC=$ac_cv_prog_CC | ||
4058 | 3208 | if test -n "$CC"; then | ||
4059 | 3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4060 | 3210 | $as_echo "$CC" >&6; } | ||
4061 | 3211 | else | ||
4062 | 3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4063 | 3213 | $as_echo "no" >&6; } | ||
4064 | 3214 | fi | ||
4065 | 3215 | |||
4066 | 3216 | |||
4067 | 3217 | fi | ||
4068 | 3218 | if test -z "$CC"; then | ||
4069 | 3219 | if test -n "$ac_tool_prefix"; then | ||
4070 | 3220 | for ac_prog in cl.exe | ||
4071 | 3221 | do | ||
4072 | 3222 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4073 | 3223 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4074 | 3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4075 | 3225 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4076 | 3226 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4077 | 3227 | $as_echo_n "(cached) " >&6 | ||
4078 | 3228 | else | ||
4079 | 3229 | if test -n "$CC"; then | ||
4080 | 3230 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4081 | 3231 | else | ||
4082 | 3232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4083 | 3233 | for as_dir in $PATH | ||
4084 | 3234 | do | ||
4085 | 3235 | IFS=$as_save_IFS | ||
4086 | 3236 | test -z "$as_dir" && as_dir=. | ||
4087 | 3237 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4088 | 3238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4089 | 3239 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
4090 | 3240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4091 | 3241 | break 2 | ||
4092 | 3242 | fi | ||
4093 | 3243 | done | ||
4094 | 3244 | done | ||
4095 | 3245 | IFS=$as_save_IFS | ||
4096 | 3246 | |||
4097 | 3247 | fi | ||
4098 | 3248 | fi | ||
4099 | 3249 | CC=$ac_cv_prog_CC | ||
4100 | 3250 | if test -n "$CC"; then | ||
4101 | 3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4102 | 3252 | $as_echo "$CC" >&6; } | ||
4103 | 3253 | else | ||
4104 | 3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4105 | 3255 | $as_echo "no" >&6; } | ||
4106 | 3256 | fi | ||
4107 | 3257 | |||
4108 | 3258 | |||
4109 | 3259 | test -n "$CC" && break | ||
4110 | 3260 | done | ||
4111 | 3261 | fi | ||
4112 | 3262 | if test -z "$CC"; then | ||
4113 | 3263 | ac_ct_CC=$CC | ||
4114 | 3264 | for ac_prog in cl.exe | ||
4115 | 3265 | do | ||
4116 | 3266 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4117 | 3267 | set dummy $ac_prog; ac_word=$2 | ||
4118 | 3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4119 | 3269 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4120 | 3270 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4121 | 3271 | $as_echo_n "(cached) " >&6 | ||
4122 | 3272 | else | ||
4123 | 3273 | if test -n "$ac_ct_CC"; then | ||
4124 | 3274 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4125 | 3275 | else | ||
4126 | 3276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4127 | 3277 | for as_dir in $PATH | ||
4128 | 3278 | do | ||
4129 | 3279 | IFS=$as_save_IFS | ||
4130 | 3280 | test -z "$as_dir" && as_dir=. | ||
4131 | 3281 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4132 | 3282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4133 | 3283 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
4134 | 3284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4135 | 3285 | break 2 | ||
4136 | 3286 | fi | ||
4137 | 3287 | done | ||
4138 | 3288 | done | ||
4139 | 3289 | IFS=$as_save_IFS | ||
4140 | 3290 | |||
4141 | 3291 | fi | ||
4142 | 3292 | fi | ||
4143 | 3293 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4144 | 3294 | if test -n "$ac_ct_CC"; then | ||
4145 | 3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4146 | 3296 | $as_echo "$ac_ct_CC" >&6; } | ||
4147 | 3297 | else | ||
4148 | 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4149 | 3299 | $as_echo "no" >&6; } | ||
4150 | 3300 | fi | ||
4151 | 3301 | |||
4152 | 3302 | |||
4153 | 3303 | test -n "$ac_ct_CC" && break | ||
4154 | 3304 | done | ||
4155 | 3305 | |||
4156 | 3306 | if test "x$ac_ct_CC" = x; then | ||
4157 | 3307 | CC="" | ||
4158 | 3308 | else | ||
4159 | 3309 | case $cross_compiling:$ac_tool_warned in | ||
4160 | 3310 | yes:) | ||
4161 | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4162 | 3312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4163 | 3313 | ac_tool_warned=yes ;; | ||
4164 | 3314 | esac | ||
4165 | 3315 | CC=$ac_ct_CC | ||
4166 | 3316 | fi | ||
4167 | 3317 | fi | ||
4168 | 3318 | |||
4169 | 3319 | fi | ||
4170 | 3320 | |||
4171 | 3321 | |||
4172 | 3322 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4173 | 3323 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4174 | 3324 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
4175 | 3325 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4176 | 3326 | |||
4177 | 3327 | # Provide some information about the compiler. | ||
4178 | 3328 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
4179 | 3329 | set X $ac_compile | ||
4180 | 3330 | ac_compiler=$2 | ||
4181 | 3331 | for ac_option in --version -v -V -qversion; do | ||
4182 | 3332 | { { ac_try="$ac_compiler $ac_option >&5" | ||
4183 | 3333 | case "(($ac_try" in | ||
4184 | 3334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4185 | 3335 | *) ac_try_echo=$ac_try;; | ||
4186 | 3336 | esac | ||
4187 | 3337 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4188 | 3338 | $as_echo "$ac_try_echo"; } >&5 | ||
4189 | 3339 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
4190 | 3340 | ac_status=$? | ||
4191 | 3341 | if test -s conftest.err; then | ||
4192 | 3342 | sed '10a\ | ||
4193 | 3343 | ... rest of stderr output deleted ... | ||
4194 | 3344 | 10q' conftest.err >conftest.er1 | ||
4195 | 3345 | cat conftest.er1 >&5 | ||
4196 | 3346 | fi | ||
4197 | 3347 | rm -f conftest.er1 conftest.err | ||
4198 | 3348 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4199 | 3349 | test $ac_status = 0; } | ||
4200 | 3350 | done | ||
4201 | 3351 | |||
4202 | 3352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4203 | 3353 | /* end confdefs.h. */ | ||
4204 | 3354 | |||
4205 | 3355 | int | ||
4206 | 3356 | main () | ||
4207 | 3357 | { | ||
4208 | 3358 | |||
4209 | 3359 | ; | ||
4210 | 3360 | return 0; | ||
4211 | 3361 | } | ||
4212 | 3362 | _ACEOF | ||
4213 | 3363 | ac_clean_files_save=$ac_clean_files | ||
4214 | 3364 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
4215 | 3365 | # Try to create an executable without -o first, disregard a.out. | ||
4216 | 3366 | # It will help us diagnose broken compilers, and finding out an intuition | ||
4217 | 3367 | # of exeext. | ||
4218 | 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
4219 | 3369 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
4220 | 3370 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
4221 | 3371 | |||
4222 | 3372 | # The possible output files: | ||
4223 | 3373 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
4224 | 3374 | |||
4225 | 3375 | ac_rmfiles= | ||
4226 | 3376 | for ac_file in $ac_files | ||
4227 | 3377 | do | ||
4228 | 3378 | case $ac_file in | ||
4229 | 3379 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4230 | 3380 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
4231 | 3381 | esac | ||
4232 | 3382 | done | ||
4233 | 3383 | rm -f $ac_rmfiles | ||
4234 | 3384 | |||
4235 | 3385 | if { { ac_try="$ac_link_default" | ||
4236 | 3386 | case "(($ac_try" in | ||
4237 | 3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4238 | 3388 | *) ac_try_echo=$ac_try;; | ||
4239 | 3389 | esac | ||
4240 | 3390 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4241 | 3391 | $as_echo "$ac_try_echo"; } >&5 | ||
4242 | 3392 | (eval "$ac_link_default") 2>&5 | ||
4243 | 3393 | ac_status=$? | ||
4244 | 3394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4245 | 3395 | test $ac_status = 0; }; then : | ||
4246 | 3396 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
4247 | 3397 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
4248 | 3398 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
4249 | 3399 | # so that the user can short-circuit this test for compilers unknown to | ||
4250 | 3400 | # Autoconf. | ||
4251 | 3401 | for ac_file in $ac_files '' | ||
4252 | 3402 | do | ||
4253 | 3403 | test -f "$ac_file" || continue | ||
4254 | 3404 | case $ac_file in | ||
4255 | 3405 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
4256 | 3406 | ;; | ||
4257 | 3407 | [ab].out ) | ||
4258 | 3408 | # We found the default executable, but exeext='' is most | ||
4259 | 3409 | # certainly right. | ||
4260 | 3410 | break;; | ||
4261 | 3411 | *.* ) | ||
4262 | 3412 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
4263 | 3413 | then :; else | ||
4264 | 3414 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4265 | 3415 | fi | ||
4266 | 3416 | # We set ac_cv_exeext here because the later test for it is not | ||
4267 | 3417 | # safe: cross compilers may not add the suffix if given an `-o' | ||
4268 | 3418 | # argument, so we may need to know it at that point already. | ||
4269 | 3419 | # Even if this section looks crufty: it has the advantage of | ||
4270 | 3420 | # actually working. | ||
4271 | 3421 | break;; | ||
4272 | 3422 | * ) | ||
4273 | 3423 | break;; | ||
4274 | 3424 | esac | ||
4275 | 3425 | done | ||
4276 | 3426 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
4277 | 3427 | |||
4278 | 3428 | else | ||
4279 | 3429 | ac_file='' | ||
4280 | 3430 | fi | ||
4281 | 3431 | if test -z "$ac_file"; then : | ||
4282 | 3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4283 | 3433 | $as_echo "no" >&6; } | ||
4284 | 3434 | $as_echo "$as_me: failed program was:" >&5 | ||
4285 | 3435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4286 | 3436 | |||
4287 | 3437 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4288 | 3438 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4289 | 3439 | as_fn_error 77 "C compiler cannot create executables | ||
4290 | 3440 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4291 | 3441 | else | ||
4292 | 3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4293 | 3443 | $as_echo "yes" >&6; } | ||
4294 | 3444 | fi | ||
4295 | 3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
4296 | 3446 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
4297 | 3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
4298 | 3448 | $as_echo "$ac_file" >&6; } | ||
4299 | 3449 | ac_exeext=$ac_cv_exeext | ||
4300 | 3450 | |||
4301 | 3451 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
4302 | 3452 | ac_clean_files=$ac_clean_files_save | ||
4303 | 3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
4304 | 3454 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
4305 | 3455 | if { { ac_try="$ac_link" | ||
4306 | 3456 | case "(($ac_try" in | ||
4307 | 3457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4308 | 3458 | *) ac_try_echo=$ac_try;; | ||
4309 | 3459 | esac | ||
4310 | 3460 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4311 | 3461 | $as_echo "$ac_try_echo"; } >&5 | ||
4312 | 3462 | (eval "$ac_link") 2>&5 | ||
4313 | 3463 | ac_status=$? | ||
4314 | 3464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4315 | 3465 | test $ac_status = 0; }; then : | ||
4316 | 3466 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
4317 | 3467 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
4318 | 3468 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
4319 | 3469 | # `rm'. | ||
4320 | 3470 | for ac_file in conftest.exe conftest conftest.*; do | ||
4321 | 3471 | test -f "$ac_file" || continue | ||
4322 | 3472 | case $ac_file in | ||
4323 | 3473 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4324 | 3474 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4325 | 3475 | break;; | ||
4326 | 3476 | * ) break;; | ||
4327 | 3477 | esac | ||
4328 | 3478 | done | ||
4329 | 3479 | else | ||
4330 | 3480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4331 | 3481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4332 | 3482 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
4333 | 3483 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4334 | 3484 | fi | ||
4335 | 3485 | rm -f conftest conftest$ac_cv_exeext | ||
4336 | 3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
4337 | 3487 | $as_echo "$ac_cv_exeext" >&6; } | ||
4338 | 3488 | |||
4339 | 3489 | rm -f conftest.$ac_ext | ||
4340 | 3490 | EXEEXT=$ac_cv_exeext | ||
4341 | 3491 | ac_exeext=$EXEEXT | ||
4342 | 3492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4343 | 3493 | /* end confdefs.h. */ | ||
4344 | 3494 | #include <stdio.h> | ||
4345 | 3495 | int | ||
4346 | 3496 | main () | ||
4347 | 3497 | { | ||
4348 | 3498 | FILE *f = fopen ("conftest.out", "w"); | ||
4349 | 3499 | return ferror (f) || fclose (f) != 0; | ||
4350 | 3500 | |||
4351 | 3501 | ; | ||
4352 | 3502 | return 0; | ||
4353 | 3503 | } | ||
4354 | 3504 | _ACEOF | ||
4355 | 3505 | ac_clean_files="$ac_clean_files conftest.out" | ||
4356 | 3506 | # Check that the compiler produces executables we can run. If not, either | ||
4357 | 3507 | # the compiler is broken, or we cross compile. | ||
4358 | 3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
4359 | 3509 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
4360 | 3510 | if test "$cross_compiling" != yes; then | ||
4361 | 3511 | { { ac_try="$ac_link" | ||
4362 | 3512 | case "(($ac_try" in | ||
4363 | 3513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4364 | 3514 | *) ac_try_echo=$ac_try;; | ||
4365 | 3515 | esac | ||
4366 | 3516 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4367 | 3517 | $as_echo "$ac_try_echo"; } >&5 | ||
4368 | 3518 | (eval "$ac_link") 2>&5 | ||
4369 | 3519 | ac_status=$? | ||
4370 | 3520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4371 | 3521 | test $ac_status = 0; } | ||
4372 | 3522 | if { ac_try='./conftest$ac_cv_exeext' | ||
4373 | 3523 | { { case "(($ac_try" in | ||
4374 | 3524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4375 | 3525 | *) ac_try_echo=$ac_try;; | ||
4376 | 3526 | esac | ||
4377 | 3527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4378 | 3528 | $as_echo "$ac_try_echo"; } >&5 | ||
4379 | 3529 | (eval "$ac_try") 2>&5 | ||
4380 | 3530 | ac_status=$? | ||
4381 | 3531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4382 | 3532 | test $ac_status = 0; }; }; then | ||
4383 | 3533 | cross_compiling=no | ||
4384 | 3534 | else | ||
4385 | 3535 | if test "$cross_compiling" = maybe; then | ||
4386 | 3536 | cross_compiling=yes | ||
4387 | 3537 | else | ||
4388 | 3538 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4389 | 3539 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4390 | 3540 | as_fn_error $? "cannot run C compiled programs. | ||
4391 | 3541 | If you meant to cross compile, use \`--host'. | ||
4392 | 3542 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4393 | 3543 | fi | ||
4394 | 3544 | fi | ||
4395 | 3545 | fi | ||
4396 | 3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
4397 | 3547 | $as_echo "$cross_compiling" >&6; } | ||
4398 | 3548 | |||
4399 | 3549 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
4400 | 3550 | ac_clean_files=$ac_clean_files_save | ||
4401 | 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
4402 | 3552 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
4403 | 3553 | if test "${ac_cv_objext+set}" = set; then : | ||
4404 | 3554 | $as_echo_n "(cached) " >&6 | ||
4405 | 3555 | else | ||
4406 | 3556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4407 | 3557 | /* end confdefs.h. */ | ||
4408 | 3558 | |||
4409 | 3559 | int | ||
4410 | 3560 | main () | ||
4411 | 3561 | { | ||
4412 | 3562 | |||
4413 | 3563 | ; | ||
4414 | 3564 | return 0; | ||
4415 | 3565 | } | ||
4416 | 3566 | _ACEOF | ||
4417 | 3567 | rm -f conftest.o conftest.obj | ||
4418 | 3568 | if { { ac_try="$ac_compile" | ||
4419 | 3569 | case "(($ac_try" in | ||
4420 | 3570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4421 | 3571 | *) ac_try_echo=$ac_try;; | ||
4422 | 3572 | esac | ||
4423 | 3573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4424 | 3574 | $as_echo "$ac_try_echo"; } >&5 | ||
4425 | 3575 | (eval "$ac_compile") 2>&5 | ||
4426 | 3576 | ac_status=$? | ||
4427 | 3577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4428 | 3578 | test $ac_status = 0; }; then : | ||
4429 | 3579 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
4430 | 3580 | test -f "$ac_file" || continue; | ||
4431 | 3581 | case $ac_file in | ||
4432 | 3582 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
4433 | 3583 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
4434 | 3584 | break;; | ||
4435 | 3585 | esac | ||
4436 | 3586 | done | ||
4437 | 3587 | else | ||
4438 | 3588 | $as_echo "$as_me: failed program was:" >&5 | ||
4439 | 3589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4440 | 3590 | |||
4441 | 3591 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4442 | 3592 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4443 | 3593 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4444 | 3594 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4445 | 3595 | fi | ||
4446 | 3596 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4447 | 3597 | fi | ||
4448 | 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4449 | 3599 | $as_echo "$ac_cv_objext" >&6; } | ||
4450 | 3600 | OBJEXT=$ac_cv_objext | ||
4451 | 3601 | ac_objext=$OBJEXT | ||
4452 | 3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4453 | 3603 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4454 | 3604 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4455 | 3605 | $as_echo_n "(cached) " >&6 | ||
4456 | 3606 | else | ||
4457 | 3607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4458 | 3608 | /* end confdefs.h. */ | ||
4459 | 3609 | |||
4460 | 3610 | int | ||
4461 | 3611 | main () | ||
4462 | 3612 | { | ||
4463 | 3613 | #ifndef __GNUC__ | ||
4464 | 3614 | choke me | ||
4465 | 3615 | #endif | ||
4466 | 3616 | |||
4467 | 3617 | ; | ||
4468 | 3618 | return 0; | ||
4469 | 3619 | } | ||
4470 | 3620 | _ACEOF | ||
4471 | 3621 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4472 | 3622 | ac_compiler_gnu=yes | ||
4473 | 3623 | else | ||
4474 | 3624 | ac_compiler_gnu=no | ||
4475 | 3625 | fi | ||
4476 | 3626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4477 | 3627 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4478 | 3628 | |||
4479 | 3629 | fi | ||
4480 | 3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4481 | 3631 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4482 | 3632 | if test $ac_compiler_gnu = yes; then | ||
4483 | 3633 | GCC=yes | ||
4484 | 3634 | else | ||
4485 | 3635 | GCC= | ||
4486 | 3636 | fi | ||
4487 | 3637 | ac_test_CFLAGS=${CFLAGS+set} | ||
4488 | 3638 | ac_save_CFLAGS=$CFLAGS | ||
4489 | 3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4490 | 3640 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4491 | 3641 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4492 | 3642 | $as_echo_n "(cached) " >&6 | ||
4493 | 3643 | else | ||
4494 | 3644 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4495 | 3645 | ac_c_werror_flag=yes | ||
4496 | 3646 | ac_cv_prog_cc_g=no | ||
4497 | 3647 | CFLAGS="-g" | ||
4498 | 3648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4499 | 3649 | /* end confdefs.h. */ | ||
4500 | 3650 | |||
4501 | 3651 | int | ||
4502 | 3652 | main () | ||
4503 | 3653 | { | ||
4504 | 3654 | |||
4505 | 3655 | ; | ||
4506 | 3656 | return 0; | ||
4507 | 3657 | } | ||
4508 | 3658 | _ACEOF | ||
4509 | 3659 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4510 | 3660 | ac_cv_prog_cc_g=yes | ||
4511 | 3661 | else | ||
4512 | 3662 | CFLAGS="" | ||
4513 | 3663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4514 | 3664 | /* end confdefs.h. */ | ||
4515 | 3665 | |||
4516 | 3666 | int | ||
4517 | 3667 | main () | ||
4518 | 3668 | { | ||
4519 | 3669 | |||
4520 | 3670 | ; | ||
4521 | 3671 | return 0; | ||
4522 | 3672 | } | ||
4523 | 3673 | _ACEOF | ||
4524 | 3674 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4525 | 3675 | |||
4526 | 3676 | else | ||
4527 | 3677 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4528 | 3678 | CFLAGS="-g" | ||
4529 | 3679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4530 | 3680 | /* end confdefs.h. */ | ||
4531 | 3681 | |||
4532 | 3682 | int | ||
4533 | 3683 | main () | ||
4534 | 3684 | { | ||
4535 | 3685 | |||
4536 | 3686 | ; | ||
4537 | 3687 | return 0; | ||
4538 | 3688 | } | ||
4539 | 3689 | _ACEOF | ||
4540 | 3690 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4541 | 3691 | ac_cv_prog_cc_g=yes | ||
4542 | 3692 | fi | ||
4543 | 3693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4544 | 3694 | fi | ||
4545 | 3695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4546 | 3696 | fi | ||
4547 | 3697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4548 | 3698 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4549 | 3699 | fi | ||
4550 | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4551 | 3701 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4552 | 3702 | if test "$ac_test_CFLAGS" = set; then | ||
4553 | 3703 | CFLAGS=$ac_save_CFLAGS | ||
4554 | 3704 | elif test $ac_cv_prog_cc_g = yes; then | ||
4555 | 3705 | if test "$GCC" = yes; then | ||
4556 | 3706 | CFLAGS="-g -O2" | ||
4557 | 3707 | else | ||
4558 | 3708 | CFLAGS="-g" | ||
4559 | 3709 | fi | ||
4560 | 3710 | else | ||
4561 | 3711 | if test "$GCC" = yes; then | ||
4562 | 3712 | CFLAGS="-O2" | ||
4563 | 3713 | else | ||
4564 | 3714 | CFLAGS= | ||
4565 | 3715 | fi | ||
4566 | 3716 | fi | ||
4567 | 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4568 | 3718 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4569 | 3719 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4570 | 3720 | $as_echo_n "(cached) " >&6 | ||
4571 | 3721 | else | ||
4572 | 3722 | ac_cv_prog_cc_c89=no | ||
4573 | 3723 | ac_save_CC=$CC | ||
4574 | 3724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4575 | 3725 | /* end confdefs.h. */ | ||
4576 | 3726 | #include <stdarg.h> | ||
4577 | 3727 | #include <stdio.h> | ||
4578 | 3728 | #include <sys/types.h> | ||
4579 | 3729 | #include <sys/stat.h> | ||
4580 | 3730 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4581 | 3731 | struct buf { int x; }; | ||
4582 | 3732 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4583 | 3733 | static char *e (p, i) | ||
4584 | 3734 | char **p; | ||
4585 | 3735 | int i; | ||
4586 | 3736 | { | ||
4587 | 3737 | return p[i]; | ||
4588 | 3738 | } | ||
4589 | 3739 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4590 | 3740 | { | ||
4591 | 3741 | char *s; | ||
4592 | 3742 | va_list v; | ||
4593 | 3743 | va_start (v,p); | ||
4594 | 3744 | s = g (p, va_arg (v,int)); | ||
4595 | 3745 | va_end (v); | ||
4596 | 3746 | return s; | ||
4597 | 3747 | } | ||
4598 | 3748 | |||
4599 | 3749 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4600 | 3750 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4601 | 3751 | These don't provoke an error unfortunately, instead are silently treated | ||
4602 | 3752 | as 'x'. The following induces an error, until -std is added to get | ||
4603 | 3753 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4604 | 3754 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4605 | 3755 | that's true only with -std. */ | ||
4606 | 3756 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4607 | 3757 | |||
4608 | 3758 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4609 | 3759 | inside strings and character constants. */ | ||
4610 | 3760 | #define FOO(x) 'x' | ||
4611 | 3761 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4612 | 3762 | |||
4613 | 3763 | int test (int i, double x); | ||
4614 | 3764 | struct s1 {int (*f) (int a);}; | ||
4615 | 3765 | struct s2 {int (*f) (double a);}; | ||
4616 | 3766 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4617 | 3767 | int argc; | ||
4618 | 3768 | char **argv; | ||
4619 | 3769 | int | ||
4620 | 3770 | main () | ||
4621 | 3771 | { | ||
4622 | 3772 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4623 | 3773 | ; | ||
4624 | 3774 | return 0; | ||
4625 | 3775 | } | ||
4626 | 3776 | _ACEOF | ||
4627 | 3777 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4628 | 3778 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4629 | 3779 | do | ||
4630 | 3780 | CC="$ac_save_CC $ac_arg" | ||
4631 | 3781 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4632 | 3782 | ac_cv_prog_cc_c89=$ac_arg | ||
4633 | 3783 | fi | ||
4634 | 3784 | rm -f core conftest.err conftest.$ac_objext | ||
4635 | 3785 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4636 | 3786 | done | ||
4637 | 3787 | rm -f conftest.$ac_ext | ||
4638 | 3788 | CC=$ac_save_CC | ||
4639 | 3789 | |||
4640 | 3790 | fi | ||
4641 | 3791 | # AC_CACHE_VAL | ||
4642 | 3792 | case "x$ac_cv_prog_cc_c89" in | ||
4643 | 3793 | x) | ||
4644 | 3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4645 | 3795 | $as_echo "none needed" >&6; } ;; | ||
4646 | 3796 | xno) | ||
4647 | 3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4648 | 3798 | $as_echo "unsupported" >&6; } ;; | ||
4649 | 3799 | *) | ||
4650 | 3800 | CC="$CC $ac_cv_prog_cc_c89" | ||
4651 | 3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4652 | 3802 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4653 | 3803 | esac | ||
4654 | 3804 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4655 | 3805 | |||
4656 | 3806 | fi | ||
4657 | 3807 | |||
4658 | 3808 | ac_ext=c | ||
4659 | 3809 | ac_cpp='$CPP $CPPFLAGS' | ||
4660 | 3810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4661 | 3811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4662 | 3812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4663 | 3813 | DEPDIR="${am__leading_dot}deps" | ||
4664 | 3814 | |||
4665 | 3815 | ac_config_commands="$ac_config_commands depfiles" | ||
4666 | 3816 | |||
4667 | 3817 | |||
4668 | 3818 | am_make=${MAKE-make} | ||
4669 | 3819 | cat > confinc << 'END' | ||
4670 | 3820 | am__doit: | ||
4671 | 3821 | @echo this is the am__doit target | ||
4672 | 3822 | .PHONY: am__doit | ||
4673 | 3823 | END | ||
4674 | 3824 | # If we don't find an include directive, just comment out the code. | ||
4675 | 3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
4676 | 3826 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
4677 | 3827 | am__include="#" | ||
4678 | 3828 | am__quote= | ||
4679 | 3829 | _am_result=none | ||
4680 | 3830 | # First try GNU make style include. | ||
4681 | 3831 | echo "include confinc" > confmf | ||
4682 | 3832 | # Ignore all kinds of additional output from `make'. | ||
4683 | 3833 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4684 | 3834 | *the\ am__doit\ target*) | ||
4685 | 3835 | am__include=include | ||
4686 | 3836 | am__quote= | ||
4687 | 3837 | _am_result=GNU | ||
4688 | 3838 | ;; | ||
4689 | 3839 | esac | ||
4690 | 3840 | # Now try BSD make style include. | ||
4691 | 3841 | if test "$am__include" = "#"; then | ||
4692 | 3842 | echo '.include "confinc"' > confmf | ||
4693 | 3843 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4694 | 3844 | *the\ am__doit\ target*) | ||
4695 | 3845 | am__include=.include | ||
4696 | 3846 | am__quote="\"" | ||
4697 | 3847 | _am_result=BSD | ||
4698 | 3848 | ;; | ||
4699 | 3849 | esac | ||
4700 | 3850 | fi | ||
4701 | 3851 | |||
4702 | 3852 | |||
4703 | 3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
4704 | 3854 | $as_echo "$_am_result" >&6; } | ||
4705 | 3855 | rm -f confinc confmf | ||
4706 | 3856 | |||
4707 | 3857 | # Check whether --enable-dependency-tracking was given. | ||
4708 | 3858 | if test "${enable_dependency_tracking+set}" = set; then : | ||
4709 | 3859 | enableval=$enable_dependency_tracking; | ||
4710 | 3860 | fi | ||
4711 | 3861 | |||
4712 | 3862 | if test "x$enable_dependency_tracking" != xno; then | ||
4713 | 3863 | am_depcomp="$ac_aux_dir/depcomp" | ||
4714 | 3864 | AMDEPBACKSLASH='\' | ||
4715 | 3865 | fi | ||
4716 | 3866 | if test "x$enable_dependency_tracking" != xno; then | ||
4717 | 3867 | AMDEP_TRUE= | ||
4718 | 3868 | AMDEP_FALSE='#' | ||
4719 | 3869 | else | ||
4720 | 3870 | AMDEP_TRUE='#' | ||
4721 | 3871 | AMDEP_FALSE= | ||
4722 | 3872 | fi | ||
4723 | 3873 | |||
4724 | 3874 | |||
4725 | 3875 | |||
4726 | 3876 | depcc="$CC" am_compiler_list= | ||
4727 | 3877 | |||
4728 | 3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4729 | 3879 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4730 | 3880 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4731 | 3881 | $as_echo_n "(cached) " >&6 | ||
4732 | 3882 | else | ||
4733 | 3883 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4734 | 3884 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4735 | 3885 | # making bogus files that we don't know about and never remove. For | ||
4736 | 3886 | # instance it was reported that on HP-UX the gcc test will end up | ||
4737 | 3887 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4738 | 3888 | # in D'. | ||
4739 | 3889 | mkdir conftest.dir | ||
4740 | 3890 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4741 | 3891 | # using a relative directory. | ||
4742 | 3892 | cp "$am_depcomp" conftest.dir | ||
4743 | 3893 | cd conftest.dir | ||
4744 | 3894 | # We will build objects and dependencies in a subdirectory because | ||
4745 | 3895 | # it helps to detect inapplicable dependency modes. For instance | ||
4746 | 3896 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4747 | 3897 | # side effect of compilation, but ICC will put the dependencies in | ||
4748 | 3898 | # the current directory while Tru64 will put them in the object | ||
4749 | 3899 | # directory. | ||
4750 | 3900 | mkdir sub | ||
4751 | 3901 | |||
4752 | 3902 | am_cv_CC_dependencies_compiler_type=none | ||
4753 | 3903 | if test "$am_compiler_list" = ""; then | ||
4754 | 3904 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4755 | 3905 | fi | ||
4756 | 3906 | am__universal=false | ||
4757 | 3907 | case " $depcc " in #( | ||
4758 | 3908 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4759 | 3909 | esac | ||
4760 | 3910 | |||
4761 | 3911 | for depmode in $am_compiler_list; do | ||
4762 | 3912 | # Setup a source with many dependencies, because some compilers | ||
4763 | 3913 | # like to wrap large dependency lists on column 80 (with \), and | ||
4764 | 3914 | # we should not choose a depcomp mode which is confused by this. | ||
4765 | 3915 | # | ||
4766 | 3916 | # We need to recreate these files for each test, as the compiler may | ||
4767 | 3917 | # overwrite some of them when testing with obscure command lines. | ||
4768 | 3918 | # This happens at least with the AIX C compiler. | ||
4769 | 3919 | : > sub/conftest.c | ||
4770 | 3920 | for i in 1 2 3 4 5 6; do | ||
4771 | 3921 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4772 | 3922 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4773 | 3923 | # Solaris 8's {/usr,}/bin/sh. | ||
4774 | 3924 | touch sub/conftst$i.h | ||
4775 | 3925 | done | ||
4776 | 3926 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4777 | 3927 | |||
4778 | 3928 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4779 | 3929 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4780 | 3930 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
4781 | 3931 | # versions had trouble with output in subdirs | ||
4782 | 3932 | am__obj=sub/conftest.${OBJEXT-o} | ||
4783 | 3933 | am__minus_obj="-o $am__obj" | ||
4784 | 3934 | case $depmode in | ||
4785 | 3935 | gcc) | ||
4786 | 3936 | # This depmode causes a compiler race in universal mode. | ||
4787 | 3937 | test "$am__universal" = false || continue | ||
4788 | 3938 | ;; | ||
4789 | 3939 | nosideeffect) | ||
4790 | 3940 | # after this tag, mechanisms are not by side-effect, so they'll | ||
4791 | 3941 | # only be used when explicitly requested | ||
4792 | 3942 | if test "x$enable_dependency_tracking" = xyes; then | ||
4793 | 3943 | continue | ||
4794 | 3944 | else | ||
4795 | 3945 | break | ||
4796 | 3946 | fi | ||
4797 | 3947 | ;; | ||
4798 | 3948 | msvisualcpp | msvcmsys) | ||
4799 | 3949 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
4800 | 3950 | # not run yet. These depmodes are late enough in the game, and | ||
4801 | 3951 | # so weak that their functioning should not be impacted. | ||
4802 | 3952 | am__obj=conftest.${OBJEXT-o} | ||
4803 | 3953 | am__minus_obj= | ||
4804 | 3954 | ;; | ||
4805 | 3955 | none) break ;; | ||
4806 | 3956 | esac | ||
4807 | 3957 | if depmode=$depmode \ | ||
4808 | 3958 | source=sub/conftest.c object=$am__obj \ | ||
4809 | 3959 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
4810 | 3960 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
4811 | 3961 | >/dev/null 2>conftest.err && | ||
4812 | 3962 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4813 | 3963 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
4814 | 3964 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
4815 | 3965 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
4816 | 3966 | # icc doesn't choke on unknown options, it will just issue warnings | ||
4817 | 3967 | # or remarks (even with -Werror). So we grep stderr for any message | ||
4818 | 3968 | # that says an option was ignored or not supported. | ||
4819 | 3969 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
4820 | 3970 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
4821 | 3971 | # The diagnosis changed in icc 8.0: | ||
4822 | 3972 | # icc: Command line remark: option '-MP' not supported | ||
4823 | 3973 | if (grep 'ignoring option' conftest.err || | ||
4824 | 3974 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
4825 | 3975 | am_cv_CC_dependencies_compiler_type=$depmode | ||
4826 | 3976 | break | ||
4827 | 3977 | fi | ||
4828 | 3978 | fi | ||
4829 | 3979 | done | ||
4830 | 3980 | |||
4831 | 3981 | cd .. | ||
4832 | 3982 | rm -rf conftest.dir | ||
4833 | 3983 | else | ||
4834 | 3984 | am_cv_CC_dependencies_compiler_type=none | ||
4835 | 3985 | fi | ||
4836 | 3986 | |||
4837 | 3987 | fi | ||
4838 | 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
4839 | 3989 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
4840 | 3990 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
4841 | 3991 | |||
4842 | 3992 | if | ||
4843 | 3993 | test "x$enable_dependency_tracking" != xno \ | ||
4844 | 3994 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
4845 | 3995 | am__fastdepCC_TRUE= | ||
4846 | 3996 | am__fastdepCC_FALSE='#' | ||
4847 | 3997 | else | ||
4848 | 3998 | am__fastdepCC_TRUE='#' | ||
4849 | 3999 | am__fastdepCC_FALSE= | ||
4850 | 4000 | fi | ||
4851 | 4001 | |||
4852 | 4002 | |||
4853 | 4003 | ac_ext=c | ||
4854 | 4004 | ac_cpp='$CPP $CPPFLAGS' | ||
4855 | 4005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4856 | 4006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4857 | 4007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4858 | 4008 | if test -n "$ac_tool_prefix"; then | ||
4859 | 4009 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
4860 | 4010 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
4861 | 4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4862 | 4012 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4863 | 4013 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4864 | 4014 | $as_echo_n "(cached) " >&6 | ||
4865 | 4015 | else | ||
4866 | 4016 | if test -n "$CC"; then | ||
4867 | 4017 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4868 | 4018 | else | ||
4869 | 4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4870 | 4020 | for as_dir in $PATH | ||
4871 | 4021 | do | ||
4872 | 4022 | IFS=$as_save_IFS | ||
4873 | 4023 | test -z "$as_dir" && as_dir=. | ||
4874 | 4024 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4875 | 4025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4876 | 4026 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
4877 | 4027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4878 | 4028 | break 2 | ||
4879 | 4029 | fi | ||
4880 | 4030 | done | ||
4881 | 4031 | done | ||
4882 | 4032 | IFS=$as_save_IFS | ||
4883 | 4033 | |||
4884 | 4034 | fi | ||
4885 | 4035 | fi | ||
4886 | 4036 | CC=$ac_cv_prog_CC | ||
4887 | 4037 | if test -n "$CC"; then | ||
4888 | 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4889 | 4039 | $as_echo "$CC" >&6; } | ||
4890 | 4040 | else | ||
4891 | 4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4892 | 4042 | $as_echo "no" >&6; } | ||
4893 | 4043 | fi | ||
4894 | 4044 | |||
4895 | 4045 | |||
4896 | 4046 | fi | ||
4897 | 4047 | if test -z "$ac_cv_prog_CC"; then | ||
4898 | 4048 | ac_ct_CC=$CC | ||
4899 | 4049 | # Extract the first word of "gcc", so it can be a program name with args. | ||
4900 | 4050 | set dummy gcc; ac_word=$2 | ||
4901 | 4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4902 | 4052 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4903 | 4053 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4904 | 4054 | $as_echo_n "(cached) " >&6 | ||
4905 | 4055 | else | ||
4906 | 4056 | if test -n "$ac_ct_CC"; then | ||
4907 | 4057 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4908 | 4058 | else | ||
4909 | 4059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4910 | 4060 | for as_dir in $PATH | ||
4911 | 4061 | do | ||
4912 | 4062 | IFS=$as_save_IFS | ||
4913 | 4063 | test -z "$as_dir" && as_dir=. | ||
4914 | 4064 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4915 | 4065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4916 | 4066 | ac_cv_prog_ac_ct_CC="gcc" | ||
4917 | 4067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4918 | 4068 | break 2 | ||
4919 | 4069 | fi | ||
4920 | 4070 | done | ||
4921 | 4071 | done | ||
4922 | 4072 | IFS=$as_save_IFS | ||
4923 | 4073 | |||
4924 | 4074 | fi | ||
4925 | 4075 | fi | ||
4926 | 4076 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4927 | 4077 | if test -n "$ac_ct_CC"; then | ||
4928 | 4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4929 | 4079 | $as_echo "$ac_ct_CC" >&6; } | ||
4930 | 4080 | else | ||
4931 | 4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4932 | 4082 | $as_echo "no" >&6; } | ||
4933 | 4083 | fi | ||
4934 | 4084 | |||
4935 | 4085 | if test "x$ac_ct_CC" = x; then | ||
4936 | 4086 | CC="" | ||
4937 | 4087 | else | ||
4938 | 4088 | case $cross_compiling:$ac_tool_warned in | ||
4939 | 4089 | yes:) | ||
4940 | 4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4941 | 4091 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4942 | 4092 | ac_tool_warned=yes ;; | ||
4943 | 4093 | esac | ||
4944 | 4094 | CC=$ac_ct_CC | ||
4945 | 4095 | fi | ||
4946 | 4096 | else | ||
4947 | 4097 | CC="$ac_cv_prog_CC" | ||
4948 | 4098 | fi | ||
4949 | 4099 | |||
4950 | 4100 | if test -z "$CC"; then | ||
4951 | 4101 | if test -n "$ac_tool_prefix"; then | ||
4952 | 4102 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
4953 | 4103 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
4954 | 4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4955 | 4105 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4956 | 4106 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4957 | 4107 | $as_echo_n "(cached) " >&6 | ||
4958 | 4108 | else | ||
4959 | 4109 | if test -n "$CC"; then | ||
4960 | 4110 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4961 | 4111 | else | ||
4962 | 4112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4963 | 4113 | for as_dir in $PATH | ||
4964 | 4114 | do | ||
4965 | 4115 | IFS=$as_save_IFS | ||
4966 | 4116 | test -z "$as_dir" && as_dir=. | ||
4967 | 4117 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4968 | 4118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4969 | 4119 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
4970 | 4120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4971 | 4121 | break 2 | ||
4972 | 4122 | fi | ||
4973 | 4123 | done | ||
4974 | 4124 | done | ||
4975 | 4125 | IFS=$as_save_IFS | ||
4976 | 4126 | |||
4977 | 4127 | fi | ||
4978 | 4128 | fi | ||
4979 | 4129 | CC=$ac_cv_prog_CC | ||
4980 | 4130 | if test -n "$CC"; then | ||
4981 | 4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4982 | 4132 | $as_echo "$CC" >&6; } | ||
4983 | 4133 | else | ||
4984 | 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4985 | 4135 | $as_echo "no" >&6; } | ||
4986 | 4136 | fi | ||
4987 | 4137 | |||
4988 | 4138 | |||
4989 | 4139 | fi | ||
4990 | 4140 | fi | ||
4991 | 4141 | if test -z "$CC"; then | ||
4992 | 4142 | # Extract the first word of "cc", so it can be a program name with args. | ||
4993 | 4143 | set dummy cc; ac_word=$2 | ||
4994 | 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4995 | 4145 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4996 | 4146 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4997 | 4147 | $as_echo_n "(cached) " >&6 | ||
4998 | 4148 | else | ||
4999 | 4149 | if test -n "$CC"; then | ||
5000 | 4150 | ac_cv_prog_CC="$CC" # Let the user override the test. |
The diff has been truncated for viewing.
Good work!