Merge lp:~gandelman-a/ubuntu/precise/ipsec-tools/merge into lp:ubuntu/precise/ipsec-tools

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
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Ubuntu branches Pending
Review via email: mp+80271@code.launchpad.net

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-pass-Wl-with-R.patch)
     - debian/{racoon.init, ipsec-tools.setkey.init}: Re-write LSB init script
       (Fixed in Debian)

 -- Adam Gandelman <email address hidden> Mon, 24 Oct 2011 12:08:24 -0700

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work!

review: Approve

Preview Diff

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

Subscribers

People subscribed via source and target branches