summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-07-22 14:59:59 +0000
committerColin Watson <cjwatson@debian.org>2008-07-22 14:59:59 +0000
commitef94e5613d37bcbf880f21ee6094e4b1c7683a4c (patch)
treeeebe1697910d248823033b5d14354c7f5ee8b471
parent8f42e9b75a55401fa9dfdf14d49fbe5396c6ce92 (diff)
parent70847d299887abb96f8703ca99db6d817b78960e (diff)
Import OpenSSH 5.1p1.
-rw-r--r--.cvsignore41
-rw-r--r--RFC.nroff1780
-rw-r--r--acconfig.h458
-rw-r--r--auth-krb4.c368
-rw-r--r--auth2-pam.c165
-rw-r--r--auth2-pam.h8
-rw-r--r--autom4te-2.53.cache/output.018359
-rw-r--r--autom4te-2.53.cache/requests96
-rw-r--r--autom4te-2.53.cache/traces.0941
-rw-r--r--autom4te.cache/output.019182
-rw-r--r--autom4te.cache/requests111
-rw-r--r--autom4te.cache/traces.0947
-rw-r--r--bufaux.h55
-rw-r--r--config.h.in1423
-rwxr-xr-xconfigure30197
-rw-r--r--contrib/gnome-ssh-askpass.c168
-rwxr-xr-x[-rw-r--r--]contrib/solaris/README0
-rwxr-xr-xcontrib/solaris/buildpkg.sh386
-rwxr-xr-xcontrib/solaris/opensshd.in82
-rw-r--r--envpass.sh44
-rw-r--r--getput.h58
-rw-r--r--mdoc2man.pl592
-rw-r--r--moduli.072
-rw-r--r--moduli.h23
-rw-r--r--mpaux.c46
-rw-r--r--mpaux.h22
-rw-r--r--openbsd-compat/basename.h12
-rw-r--r--openbsd-compat/bindresvport.h12
-rw-r--r--openbsd-compat/bsd-arc4random.h37
-rw-r--r--openbsd-compat/bsd-getpeereid.h14
-rw-r--r--openbsd-compat/bsd-snprintf.h19
-rw-r--r--openbsd-compat/daemon.h11
-rw-r--r--openbsd-compat/dirname.h5
-rw-r--r--openbsd-compat/fake-gai-errnos.h14
-rw-r--r--openbsd-compat/fake-getaddrinfo.c135
-rw-r--r--openbsd-compat/fake-getaddrinfo.h47
-rw-r--r--openbsd-compat/fake-getnameinfo.c55
-rw-r--r--openbsd-compat/fake-getnameinfo.h20
-rw-r--r--openbsd-compat/fake-queue.h584
-rw-r--r--openbsd-compat/fake-socket.h47
-rw-r--r--openbsd-compat/getcwd.h12
-rw-r--r--openbsd-compat/getgrouplist.h16
-rw-r--r--openbsd-compat/getopt.h14
-rw-r--r--openbsd-compat/inet_aton.h12
-rw-r--r--openbsd-compat/inet_ntoa.h12
-rw-r--r--openbsd-compat/inet_ntop.h13
-rw-r--r--openbsd-compat/mktemp.h13
-rw-r--r--openbsd-compat/realpath.h13
-rw-r--r--openbsd-compat/regress/.cvsignore5
-rw-r--r--openbsd-compat/rresvport.h12
-rw-r--r--openbsd-compat/setenv.h14
-rw-r--r--openbsd-compat/setproctitle.h13
-rwxr-xr-x[-rw-r--r--]openbsd-compat/sha2.c0
-rwxr-xr-x[-rw-r--r--]openbsd-compat/sha2.h0
-rw-r--r--openbsd-compat/strlcat.h12
-rw-r--r--openbsd-compat/strlcpy.h12
-rw-r--r--openbsd-compat/strmode.h7
-rw-r--r--openbsd-compat/strsep.h12
-rw-r--r--openbsd-compat/tree.h667
-rw-r--r--openbsd-compat/xmmap.h23
-rw-r--r--radix.c158
-rw-r--r--radix.h28
-rw-r--r--readpass.h19
-rw-r--r--regress/.cvsignore1
-rw-r--r--regress/authorized_keys_root2
-rwxr-xr-xregress/copy.1bin0 -> 45948 bytes
-rwxr-xr-xregress/copy.2bin0 -> 45948 bytes
-rw-r--r--scard/Ssh.binbin0 -> 600 bytes
-rw-r--r--scp.0148
-rw-r--r--sftp-glob.h37
-rw-r--r--sftp-int.c1191
-rw-r--r--sftp-int.h27
-rw-r--r--sftp-server.050
-rw-r--r--sftp.0274
-rw-r--r--ssh-add.0106
-rw-r--r--ssh-agent.0117
-rw-r--r--ssh-dss.h32
-rw-r--r--ssh-keygen.0289
-rw-r--r--ssh-keyscan.0107
-rw-r--r--ssh-keysign.042
-rw-r--r--ssh-rand-helper.051
-rw-r--r--ssh-rsa.h32
-rw-r--r--ssh.0867
-rw-r--r--ssh_config.0665
-rw-r--r--sshd.0575
-rw-r--r--sshd_config.0630
-rw-r--r--sshtty.h47
-rw-r--r--stamp-h.in0
-rw-r--r--tildexpand.c73
-rw-r--r--tildexpand.h15
90 files changed, 83072 insertions, 29 deletions
diff --git a/.cvsignore b/.cvsignore
index b893c972d..12de9ef50 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,29 +1,24 @@
1*.0
2*.out
3Makefile
4autom4te.cache
5buildit.sh
6buildpkg.sh
7config.cache
8config.h
9config.h.in
10config.log
11config.status
12configure
13openssh.xml
14opensshd.init
15scp
16sftp
17sftp-server
18ssh 1ssh
2scp
3sshd
19ssh-add 4ssh-add
20ssh-agent
21ssh-keygen 5ssh-keygen
22ssh-keyscan 6ssh-keyscan
23ssh-keysign 7ssh-keysign
24ssh-rand-helper 8ssh-agent
25ssh_prng_cmds 9sftp-server
26sshd 10sftp
11configure
12config.h.in
13config.h
14config.status
15config.cache
16config.log
27stamp-h.in 17stamp-h.in
28survey 18Makefile
29survey.sh 19ssh_prng_cmds
20*.out
21*.0
22buildit.sh
23autom4te.cache
24ssh-rand-helper
diff --git a/RFC.nroff b/RFC.nroff
new file mode 100644
index 000000000..d6baed652
--- /dev/null
+++ b/RFC.nroff
@@ -0,0 +1,1780 @@
1.\" -*- nroff -*-
2.\"
3.\" $OpenBSD: RFC.nroff,v 1.2 2000/10/16 09:38:44 djm Exp $
4.\"
5.pl 10.0i
6.po 0
7.ll 7.2i
8.lt 7.2i
9.nr LL 7.2i
10.nr LT 7.2i
11.ds LF Ylonen
12.ds RF FORMFEED[Page %]
13.ds CF
14.ds LH Internet-Draft
15.ds RH 15 November 1995
16.ds CH SSH (Secure Shell) Remote Login Protocol
17.na
18.hy 0
19.in 0
20Network Working Group T. Ylonen
21Internet-Draft Helsinki University of Technology
22draft-ylonen-ssh-protocol-00.txt 15 November 1995
23Expires: 15 May 1996
24
25.in 3
26
27.ce
28The SSH (Secure Shell) Remote Login Protocol
29
30.ti 0
31Status of This Memo
32
33This document is an Internet-Draft. Internet-Drafts are working
34documents of the Internet Engineering Task Force (IETF), its areas,
35and its working groups. Note that other groups may also distribute
36working documents as Internet-Drafts.
37
38Internet-Drafts are draft documents valid for a maximum of six
39months and may be updated, replaced, or obsoleted by other docu-
40ments at any time. It is inappropriate to use Internet-Drafts as
41reference material or to cite them other than as ``work in pro-
42gress.''
43
44To learn the current status of any Internet-Draft, please check the
45``1id-abstracts.txt'' listing contained in the Internet- Drafts Shadow
46Directories on ftp.is.co.za (Africa), nic.nordu.net (Europe),
47munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast), or
48ftp.isi.edu (US West Coast).
49
50The distribution of this memo is unlimited.
51
52.ti 0
53Introduction
54
55SSH (Secure Shell) is a program to log into another computer over a
56network, to execute commands in a remote machine, and to move files
57from one machine to another. It provides strong authentication and
58secure communications over insecure networks. Its features include
59the following:
60.IP o
61Closes several security holes (e.g., IP, routing, and DNS spoofing).
62New authentication methods: .rhosts together with RSA [RSA] based host
63authentication, and pure RSA authentication.
64.IP o
65All communications are automatically and transparently encrypted.
66Encryption is also used to protect integrity.
67.IP o
68X11 connection forwarding provides secure X11 sessions.
69.IP o
70Arbitrary TCP/IP ports can be redirected over the encrypted channel
71in both directions.
72.IP o
73Client RSA-authenticates the server machine in the beginning of every
74connection to prevent trojan horses (by routing or DNS spoofing) and
75man-in-the-middle attacks, and the server RSA-authenticates the client
76machine before accepting .rhosts or /etc/hosts.equiv authentication
77(to prevent DNS, routing, or IP spoofing).
78.IP o
79An authentication agent, running in the user's local workstation or
80laptop, can be used to hold the user's RSA authentication keys.
81.RT
82
83The goal has been to make the software as easy to use as possible for
84ordinary users. The protocol has been designed to be as secure as
85possible while making it possible to create implementations that
86are easy to use and install. The sample implementation has a number
87of convenient features that are not described in this document as they
88are not relevant for the protocol.
89
90
91.ti 0
92Overview of the Protocol
93
94The software consists of a server program running on a server machine,
95and a client program running on a client machine (plus a few auxiliary
96programs). The machines are connected by an insecure IP [RFC0791]
97network (that can be monitored, tampered with, and spoofed by hostile
98parties).
99
100A connection is always initiated by the client side. The server
101listens on a specific port waiting for connections. Many clients may
102connect to the same server machine.
103
104The client and the server are connected via a TCP/IP [RFC0793] socket
105that is used for bidirectional communication. Other types of
106transport can be used but are currently not defined.
107
108When the client connects the server, the server accepts the connection
109and responds by sending back its version identification string. The
110client parses the server's identification, and sends its own
111identification. The purpose of the identification strings is to
112validate that the connection was to the correct port, declare the
113protocol version number used, and to declare the software version used
114on each side (for debugging purposes). The identification strings are
115human-readable. If either side fails to understand or support the
116other side's version, it closes the connection.
117
118After the protocol identification phase, both sides switch to a packet
119based binary protocol. The server starts by sending its host key
120(every host has an RSA key used to authenticate the host), server key
121(an RSA key regenerated every hour), and other information to the
122client. The client then generates a 256 bit session key, encrypts it
123using both RSA keys (see below for details), and sends the encrypted
124session key and selected cipher type to the server. Both sides then
125turn on encryption using the selected algorithm and key. The server
126sends an encrypted confirmation message to the client.
127
128The client then authenticates itself using any of a number of
129authentication methods. The currently supported authentication
130methods are .rhosts or /etc/hosts.equiv authentication (disabled by
131default), the same with RSA-based host authentication, RSA
132authentication, and password authentication.
133
134After successful authentication, the client makes a number of requests
135to prepare for the session. Typical requests include allocating a
136pseudo tty, starting X11 [X11] or TCP/IP port forwarding, starting
137authentication agent forwarding, and executing the shell or a command.
138
139When a shell or command is executed, the connection enters interactive
140session mode. In this mode, data is passed in both directions,
141new forwarded connections may be opened, etc. The interactive session
142normally terminates when the server sends the exit status of the
143program to the client.
144
145
146The protocol makes several reservations for future extensibility.
147First of all, the initial protocol identification messages include the
148protocol version number. Second, the first packet by both sides
149includes a protocol flags field, which can be used to agree on
150extensions in a compatible manner. Third, the authentication and
151session preparation phases work so that the client sends requests to
152the server, and the server responds with success or failure. If the
153client sends a request that the server does not support, the server
154simply returns failure for it. This permits compatible addition of
155new authentication methods and preparation operations. The
156interactive session phase, on the other hand, works asynchronously and
157does not permit the use of any extensions (because there is no easy
158and reliable way to signal rejection to the other side and problems
159would be hard to debug). Any compatible extensions to this phase must
160be agreed upon during any of the earlier phases.
161
162.ti 0
163The Binary Packet Protocol
164
165After the protocol identification strings, both sides only send
166specially formatted packets. The packet layout is as follows:
167.IP o
168Packet length: 32 bit unsigned integer, coded as four 8-bit bytes, msb
169first. Gives the length of the packet, not including the length field
170and padding. The maximum length of a packet (not including the length
171field and padding) is 262144 bytes.
172.IP o
173Padding: 1-8 bytes of random data (or zeroes if not encrypting). The
174amount of padding is (8 - (length % 8)) bytes (where % stands for the
175modulo operator). The rationale for always having some random padding
176at the beginning of each packet is to make known plaintext attacks
177more difficult.
178.IP o
179Packet type: 8-bit unsigned byte. The value 255 is reserved for
180future extension.
181.IP o
182Data: binary data bytes, depending on the packet type. The number of
183data bytes is the "length" field minus 5.
184.IP o
185Check bytes: 32-bit crc, four 8-bit bytes, msb first. The crc is the
186Cyclic Redundancy Check, with the polynomial 0xedb88320, of the
187Padding, Packet type, and Data fields. The crc is computed before
188any encryption.
189.RT
190
191The packet, except for the length field, may be encrypted using any of
192a number of algorithms. The length of the encrypted part (Padding +
193Type + Data + Check) is always a multiple of 8 bytes. Typically the
194cipher is used in a chained mode, with all packets chained together as
195if it was a single data stream (the length field is never included in
196the encryption process). Details of encryption are described below.
197
198When the session starts, encryption is turned off. Encryption is
199enabled after the client has sent the session key. The encryption
200algorithm to use is selected by the client.
201
202
203.ti 0
204Packet Compression
205
206If compression is supported (it is an optional feature, see
207SSH_CMSG_REQUEST_COMPRESSION below), the packet type and data fields
208of the packet are compressed using the gzip deflate algorithm [GZIP].
209If compression is in effect, the packet length field indicates the
210length of the compressed data, plus 4 for the crc. The amount of
211padding is computed from the compressed data, so that the amount of
212data to be encrypted becomes a multiple of 8 bytes.
213
214When compressing, the packets (type + data portions) in each direction
215are compressed as if they formed a continuous data stream, with only the
216current compression block flushed between packets. This corresponds
217to the GNU ZLIB library Z_PARTIAL_FLUSH option. The compression
218dictionary is not flushed between packets. The two directions are
219compressed independently of each other.
220
221
222.ti 0
223Packet Encryption
224
225The protocol supports several encryption methods. During session
226initialization, the server sends a bitmask of all encryption methods
227that it supports, and the client selects one of these methods. The
228client also generates a 256-bit random session key (32 8-bit bytes) and
229sends it to the server.
230
231The encryption methods supported by the current implementation, and
232their codes are:
233.TS
234center;
235l r l.
236SSH_CIPHER_NONE 0 No encryption
237SSH_CIPHER_IDEA 1 IDEA in CFB mode
238SSH_CIPHER_DES 2 DES in CBC mode
239SSH_CIPHER_3DES 3 Triple-DES in CBC mode
240SSH_CIPHER_TSS 4 An experimental stream cipher
241SSH_CIPHER_RC4 5 RC4
242.TE
243
244All implementations are required to support SSH_CIPHER_DES and
245SSH_CIPHER_3DES. Supporting SSH_CIPHER_IDEA, SSH_CIPHER_RC4, and
246SSH_CIPHER_NONE is recommended. Support for SSH_CIPHER_TSS is
247optional (and it is not described in this document). Other ciphers
248may be added at a later time; support for them is optional.
249
250For encryption, the encrypted portion of the packet is considered a
251linear byte stream. The length of the stream is always a multiple of
2528. The encrypted portions of consecutive packets (in the same
253direction) are encrypted as if they were a continuous buffer (that is,
254any initialization vectors are passed from the previous packet to the
255next packet). Data in each direction is encrypted independently.
256.IP SSH_CIPHER_DES
257The key is taken from the first 8 bytes of the session key. The least
258significant bit of each byte is ignored. This results in 56 bits of
259key data. DES [DES] is used in CBC mode. The iv (initialization vector) is
260initialized to all zeroes.
261.IP SSH_CIPHER_3DES
262The variant of triple-DES used here works as follows: there are three
263independent DES-CBC ciphers, with independent initialization vectors.
264The data (the whole encrypted data stream) is first encrypted with the
265first cipher, then decrypted with the second cipher, and finally
266encrypted with the third cipher. All these operations are performed
267in CBC mode.
268
269The key for the first cipher is taken from the first 8 bytes of the
270session key; the key for the next cipher from the next 8 bytes, and
271the key for the third cipher from the following 8 bytes. All three
272initialization vectors are initialized to zero.
273
274(Note: the variant of 3DES used here differs from some other
275descriptions.)
276.IP SSH_CIPHER_IDEA
277The key is taken from the first 16 bytes of the session key. IDEA
278[IDEA] is used in CFB mode. The initialization vector is initialized
279to all zeroes.
280.IP SSH_CIPHER_TSS
281All 32 bytes of the session key are used as the key.
282
283There is no reference available for the TSS algorithm; it is currently
284only documented in the sample implementation source code. The
285security of this cipher is unknown (but it is quite fast). The cipher
286is basically a stream cipher that uses MD5 as a random number
287generator and takes feedback from the data.
288.IP SSH_CIPHER_RC4
289The first 16 bytes of the session key are used as the key for the
290server to client direction. The remaining 16 bytes are used as the
291key for the client to server direction. This gives independent
292128-bit keys for each direction.
293
294This algorithm is the alleged RC4 cipher posted to the Usenet in 1995.
295It is widely believed to be equivalent with the original RSADSI RC4
296cipher. This is a very fast algorithm.
297.RT
298
299
300.ti 0
301Data Type Encodings
302
303The Data field of each packet contains data encoded as described in
304this section. There may be several data items; each item is coded as
305described here, and their representations are concatenated together
306(without any alignment or padding).
307
308Each data type is stored as follows:
309.IP "8-bit byte"
310The byte is stored directly as a single byte.
311.IP "32-bit unsigned integer"
312Stored in 4 bytes, msb first.
313.IP "Arbitrary length binary string"
314First 4 bytes are the length of the string, msb first (not including
315the length itself). The following "length" bytes are the string
316value. There are no terminating null characters.
317.IP "Multiple-precision integer"
318First 2 bytes are the number of bits in the integer, msb first (for
319example, the value 0x00012345 would have 17 bits). The value zero has
320zero bits. It is permissible that the number of bits be larger than the
321real number of bits.
322
323The number of bits is followed by (bits + 7) / 8 bytes of binary data,
324msb first, giving the value of the integer.
325.RT
326
327
328.ti 0
329TCP/IP Port Number and Other Options
330
331The server listens for connections on TCP/IP port 22.
332
333The client may connect the server from any port. However, if the
334client wishes to use any form of .rhosts or /etc/hosts.equiv
335authentication, it must connect from a privileged port (less than
3361024).
337
338For the IP Type of Service field [RFC0791], it is recommended that
339interactive sessions (those having a user terminal or forwarding X11
340connections) use the IPTOS_LOWDELAY, and non-interactive connections
341use IPTOS_THROUGHPUT.
342
343It is recommended that keepalives are used, because otherwise programs
344on the server may never notice if the other end of the connection is
345rebooted.
346
347
348.ti 0
349Protocol Version Identification
350
351After the socket is opened, the server sends an identification string,
352which is of the form
353"SSH-<protocolmajor>.<protocolminor>-<version>\\n", where
354<protocolmajor> and <protocolminor> are integers and specify the
355protocol version number (not software distribution version).
356<version> is server side software version string (max 40 characters);
357it is not interpreted by the remote side but may be useful for
358debugging.
359
360The client parses the server's string, and sends a corresponding
361string with its own information in response. If the server has lower
362version number, and the client contains special code to emulate it,
363the client responds with the lower number; otherwise it responds with
364its own number. The server then compares the version number the
365client sent with its own, and determines whether they can work
366together. The server either disconnects, or sends the first packet
367using the binary packet protocol and both sides start working
368according to the lower of the protocol versions.
369
370By convention, changes which keep the protocol compatible with
371previous versions keep the same major protocol version; changes that
372are not compatible increment the major version (which will hopefully
373never happen). The version described in this document is 1.3.
374
375The client will
376
377.ti 0
378Key Exchange and Server Host Authentication
379
380The first message sent by the server using the packet protocol is
381SSH_SMSG_PUBLIC_KEY. It declares the server's host key, server public
382key, supported ciphers, supported authentication methods, and flags
383for protocol extensions. It also contains a 64-bit random number
384(cookie) that must be returned in the client's reply (to make IP
385spoofing more difficult). No encryption is used for this message.
386
387Both sides compute a session id as follows. The modulus of the server
388key is interpreted as a byte string (without explicit length field,
389with minimum length able to hold the whole value), most significant
390byte first. This string is concatenated with the server host key
391interpreted the same way. Additionally, the cookie is concatenated
392with this. Both sides compute MD5 of the resulting string. The
393resulting 16 bytes (128 bits) are stored by both parties and are
394called the session id.
395
396The client responds with a SSH_CMSG_SESSION_KEY message, which
397contains the selected cipher type, a copy of the 64-bit cookie sent by
398the server, client's protocol flags, and a session key encrypted
399with both the server's host key and server key. No encryption is used
400for this message.
401
402The session key is 32 8-bit bytes (a total of 256 random bits
403generated by the client). The client first xors the 16 bytes of the
404session id with the first 16 bytes of the session key. The resulting
405string is then encrypted using the smaller key (one with smaller
406modulus), and the result is then encrypted using the other key. The
407number of bits in the public modulus of the two keys must differ by at
408least 128 bits.
409
410At each encryption step, a multiple-precision integer is constructed
411from the data to be encrypted as follows (the integer is here
412interpreted as a sequence of bytes, msb first; the number of bytes is
413the number of bytes needed to represent the modulus).
414
415The most significant byte (which is only partial as the value must be
416less than the public modulus, which is never a power of two) is zero.
417
418The next byte contains the value 2 (which stands for public-key
419encrypted data in the PKCS standard [PKCS#1]). Then, there are
420non-zero random bytes to fill any unused space, a zero byte, and the
421data to be encrypted in the least significant bytes, the last byte of
422the data in the least significant byte.
423
424This algorithm is used twice. First, it is used to encrypt the 32
425random bytes generated by the client to be used as the session key
426(xored by the session id). This value is converted to an integer as
427described above, and encrypted with RSA using the key with the smaller
428modulus. The resulting integer is converted to a byte stream, msb
429first. This byte stream is padded and encrypted identically using the
430key with the larger modulus.
431
432After the client has sent the session key, it starts to use the
433selected algorithm and key for decrypting any received packets, and
434for encrypting any sent packets. Separate ciphers are used for
435different directions (that is, both directions have separate
436initialization vectors or other state for the ciphers).
437
438When the server has received the session key message, and has turned
439on encryption, it sends a SSH_SMSG_SUCCESS message to the client.
440
441The recommended size of the host key is 1024 bits, and 768 bits for
442the server key. The minimum size is 512 bits for the smaller key.
443
444
445.ti 0
446Declaring the User Name
447
448The client then sends a SSH_CMSG_USER message to the server. This
449message specifies the user name to log in as.
450
451The server validates that such a user exists, checks whether
452authentication is needed, and responds with either SSH_SMSG_SUCCESS or
453SSH_SMSG_FAILURE. SSH_SMSG_SUCCESS indicates that no authentication
454is needed for this user (no password), and authentication phase has
455now been completed. SSH_SMSG_FAILURE indicates that authentication is
456needed (or the user does not exist).
457
458If the user does not exist, it is recommended that this returns
459failure, but the server keeps reading messages from the client, and
460responds to any messages (except SSH_MSG_DISCONNECT, SSH_MSG_IGNORE,
461and SSH_MSG_DEBUG) with SSH_SMSG_FAILURE. This way the client cannot
462be certain whether the user exists.
463
464
465.ti 0
466Authentication Phase
467
468Provided the server didn't immediately accept the login, an
469authentication exchange begins. The client sends messages to the
470server requesting different types of authentication in arbitrary order as
471many times as desired (however, the server may close the connection
472after a timeout). The server always responds with SSH_SMSG_SUCCESS if
473it has accepted the authentication, and with SSH_SMSG_FAILURE if it has
474denied authentication with the requested method or it does not
475recognize the message. Some authentication methods cause an exchange
476of further messages before the final result is sent. The
477authentication phase ends when the server responds with success.
478
479The recommended value for the authentication timeout (timeout before
480disconnecting if no successful authentication has been made) is 5
481minutes.
482
483The following authentication methods are currently supported:
484.TS
485center;
486l r l.
487SSH_AUTH_RHOSTS 1 .rhosts or /etc/hosts.equiv
488SSH_AUTH_RSA 2 pure RSA authentication
489SSH_AUTH_PASSWORD 3 password authentication
490SSH_AUTH_RHOSTS_RSA 4 .rhosts with RSA host authentication
491.TE
492.IP SSH_AUTH_RHOSTS
493
494This is the authentication method used by rlogin and rsh [RFC1282].
495
496The client sends SSH_CMSG_AUTH_RHOSTS with the client-side user name
497as an argument.
498
499The server checks whether to permit authentication. On UNIX systems,
500this is usually done by checking /etc/hosts.equiv, and .rhosts in the
501user's home directory. The connection must come from a privileged
502port.
503
504It is recommended that the server checks that there are no IP options
505(such as source routing) specified for the socket before accepting
506this type of authentication. The client host name should be
507reverse-mapped and then forward mapped to ensure that it has the
508proper IP-address.
509
510This authentication method trusts the remote host (root on the remote
511host can pretend to be any other user on that host), the name
512services, and partially the network: anyone who can see packets coming
513out from the server machine can do IP-spoofing and pretend to be any
514machine; however, the protocol prevents blind IP-spoofing (which used
515to be possible with rlogin).
516
517Many sites probably want to disable this authentication method because
518of the fundamental insecurity of conventional .rhosts or
519/etc/hosts.equiv authentication when faced with spoofing. It is
520recommended that this method not be supported by the server by
521default.
522.IP SSH_AUTH_RHOSTS_RSA
523
524In addition to conventional .rhosts and hosts.equiv authentication,
525this method additionally requires that the client host be
526authenticated using RSA.
527
528The client sends SSH_CMSG_AUTH_RHOSTS_RSA specifying the client-side
529user name, and the public host key of the client host.
530
531The server first checks if normal .rhosts or /etc/hosts.equiv
532authentication would be accepted, and if not, responds with
533SSH_SMSG_FAILURE. Otherwise, it checks whether it knows the host key
534for the client machine (using the same name for the host that was used
535for checking the .rhosts and /etc/hosts.equiv files). If it does not
536know the RSA key for the client, access is denied and SSH_SMSG_FAILURE
537is sent.
538
539If the server knows the host key of the client machine, it verifies
540that the given host key matches that known for the client. If not,
541access is denied and SSH_SMSG_FAILURE is sent.
542
543The server then sends a SSH_SMSG_AUTH_RSA_CHALLENGE message containing
544an encrypted challenge for the client. The challenge is 32 8-bit
545random bytes (256 bits). When encrypted, the highest (partial) byte
546is left as zero, the next byte contains the value 2, the following are
547non-zero random bytes, followed by a zero byte, and the challenge put
548in the remaining bytes. This is then encrypted using RSA with the
549client host's public key. (The padding and encryption algorithm is
550the same as that used for the session key.)
551
552The client decrypts the challenge using its private host key,
553concatenates this with the session id, and computes an MD5 checksum
554of the resulting 48 bytes. The MD5 output is returned as 16 bytes in
555a SSH_CMSG_AUTH_RSA_RESPONSE message. (MD5 is used to deter chosen
556plaintext attacks against RSA; the session id binds it to a specific
557session).
558
559The server verifies that the MD5 of the decrypted challenge returned by
560the client matches that of the original value, and sends SSH_SMSG_SUCCESS if
561so. Otherwise it sends SSH_SMSG_FAILURE and refuses the
562authentication attempt.
563
564This authentication method trusts the client side machine in that root
565on that machine can pretend to be any user on that machine.
566Additionally, it trusts the client host key. The name and/or IP
567address of the client host is only used to select the public host key.
568The same host name is used when scanning .rhosts or /etc/hosts.equiv
569and when selecting the host key. It would in principle be possible to
570eliminate the host name entirely and substitute it directly by the
571host key. IP and/or DNS [RFC1034] spoofing can only be used
572to pretend to be a host for which the attacker has the private host
573key.
574.IP SSH_AUTH_RSA
575
576The idea behind RSA authentication is that the server recognizes the
577public key offered by the client, generates a random challenge, and
578encrypts the challenge with the public key. The client must then
579prove that it has the corresponding private key by decrypting the
580challenge.
581
582The client sends SSH_CMSG_AUTH_RSA with public key modulus (n) as an
583argument.
584
585The server may respond immediately with SSH_SMSG_FAILURE if it does
586not permit authentication with this key. Otherwise it generates a
587challenge, encrypts it using the user's public key (stored on the
588server and identified using the modulus), and sends
589SSH_SMSG_AUTH_RSA_CHALLENGE with the challenge (mp-int) as an
590argument.
591
592The challenge is 32 8-bit random bytes (256 bits). When encrypted,
593the highest (partial) byte is left as zero, the next byte contains the
594value 2, the following are non-zero random bytes, followed by a zero
595byte, and the challenge put in the remaining bytes. This is then
596encrypted with the public key. (The padding and encryption algorithm
597is the same as that used for the session key.)
598
599The client decrypts the challenge using its private key, concatenates
600it with the session id, and computes an MD5 checksum of the resulting
60148 bytes. The MD5 output is returned as 16 bytes in a
602SSH_CMSG_AUTH_RSA_RESPONSE message. (Note that the MD5 is necessary
603to avoid chosen plaintext attacks against RSA; the session id binds it
604to a specific session.)
605
606The server verifies that the MD5 of the decrypted challenge returned
607by the client matches that of the original value, and sends
608SSH_SMSG_SUCCESS if so. Otherwise it sends SSH_SMSG_FAILURE and
609refuses the authentication attempt.
610
611This authentication method does not trust the remote host, the
612network, name services, or anything else. Authentication is based
613solely on the possession of the private identification keys. Anyone
614in possession of the private keys can log in, but nobody else.
615
616The server may have additional requirements for a successful
617authentiation. For example, to limit damage due to a compromised RSA
618key, a server might restrict access to a limited set of hosts.
619.IP SSH_AUTH_PASSWORD
620
621The client sends a SSH_CMSG_AUTH_PASSWORD message with the plain text
622password. (Note that even though the password is plain text inside
623the message, it is normally encrypted by the packet mechanism.)
624
625The server verifies the password, and sends SSH_SMSG_SUCCESS if
626authentication was accepted and SSH_SMSG_FAILURE otherwise.
627
628Note that the password is read from the user by the client; the user
629never interacts with a login program.
630
631This authentication method does not trust the remote host, the
632network, name services or anything else. Authentication is based
633solely on the possession of the password. Anyone in possession of the
634password can log in, but nobody else.
635.RT
636
637.ti 0
638Preparatory Operations
639
640After successful authentication, the server waits for a request from
641the client, processes the request, and responds with SSH_SMSG_SUCCESS
642whenever a request has been successfully processed. If it receives a
643message that it does not recognize or it fails to honor a request, it
644returns SSH_SMSG_FAILURE. It is expected that new message types might
645be added to this phase in future.
646
647The following messages are currently defined for this phase.
648.IP SSH_CMSG_REQUEST_COMPRESSION
649Requests that compression be enabled for this session. A
650gzip-compatible compression level (1-9) is passed as an argument.
651.IP SSH_CMSG_REQUEST_PTY
652Requests that a pseudo terminal device be allocated for this session.
653The user terminal type and terminal modes are supplied as arguments.
654.IP SSH_CMSG_X11_REQUEST_FORWARDING
655Requests forwarding of X11 connections from the remote machine to the
656local machine over the secure channel. Causes an internet-domain
657socket to be allocated and the DISPLAY variable to be set on the server.
658X11 authentication data is automatically passed to the server, and the
659client may implement spoofing of authentication data for added
660security. The authentication data is passed as arguments.
661.IP SSH_CMSG_PORT_FORWARD_REQUEST
662Requests forwarding of a TCP/IP port on the server host over the
663secure channel. What happens is that whenever a connection is made to
664the port on the server, a connection will be made from the client end
665to the specified host/port. Any user can forward unprivileged ports;
666only the root can forward privileged ports (as determined by
667authentication done earlier).
668.IP SSH_CMSG_AGENT_REQUEST_FORWARDING
669Requests forwarding of the connection to the authentication agent.
670.IP SSH_CMSG_EXEC_SHELL
671Starts a shell (command interpreter) for the user, and moves into
672interactive session mode.
673.IP SSH_CMSG_EXEC_CMD
674Executes the given command (actually "<shell> -c <command>" or
675equivalent) for the user, and moves into interactive session mode.
676.RT
677
678
679.ti 0
680Interactive Session and Exchange of Data
681
682During the interactive session, any data written by the shell or
683command running on the server machine is forwarded to stdin or
684stderr on the client machine, and any input available from stdin on
685the client machine is forwarded to the program on the server machine.
686
687All exchange is asynchronous; either side can send at any time, and
688there are no acknowledgements (TCP/IP already provides reliable
689transport, and the packet protocol protects against tampering or IP
690spoofing).
691
692When the client receives EOF from its standard input, it will send
693SSH_CMSG_EOF; however, this in no way terminates the exchange. The
694exchange terminates and interactive mode is left when the server sends
695SSH_SMSG_EXITSTATUS to indicate that the client program has
696terminated. Alternatively, either side may disconnect at any time by
697sending SSH_MSG_DISCONNECT or closing the connection.
698
699The server may send any of the following messages:
700.IP SSH_SMSG_STDOUT_DATA
701Data written to stdout by the program running on the server. The data
702is passed as a string argument. The client writes this data to
703stdout.
704.IP SSH_SMSG_STDERR_DATA
705Data written to stderr by the program running on the server. The data
706is passed as a string argument. The client writes this data to
707stderr. (Note that if the program is running on a tty, it is not
708possible to separate stdout and stderr data, and all data will be sent
709as stdout data.)
710.IP SSH_SMSG_EXITSTATUS
711Indicates that the shell or command has exited. Exit status is passed
712as an integer argument. This message causes termination of the
713interactive session.
714.IP SSH_SMSG_AGENT_OPEN
715Indicates that someone on the server side is requesting a connection
716to the authentication agent. The server-side channel number is passed
717as an argument. The client must respond with either
718SSH_CHANNEL_OPEN_CONFIRMATION or SSH_CHANNEL_OPEN_FAILURE.
719.IP SSH_SMSG_X11_OPEN
720Indicates that a connection has been made to the X11 socket on the
721server side and should be forwarded to the real X server. An integer
722argument indicates the channel number allocated for this connection on
723the server side. The client should send back either
724SSH_MSG_CHANNEL_OPEN_CONFIRMATION or SSH_MSG_CHANNEL_OPEN_FAILURE with
725the same server side channel number.
726.IP SSH_MSG_PORT_OPEN
727Indicates that a connection has been made to a port on the server side
728for which forwarding has been requested. Arguments are server side
729channel number, host name to connect to, and port to connect to. The
730client should send back either
731SSH_MSG_CHANNEL_OPEN_CONFIRMATION or SSH_MSG_CHANNEL_OPEN_FAILURE with
732the same server side channel number.
733.IP SSH_MSG_CHANNEL_OPEN_CONFIRMATION
734This is sent by the server to indicate that it has opened a connection
735as requested in a previous message. The first argument indicates the
736client side channel number, and the second argument is the channel number
737that the server has allocated for this connection.
738.IP SSH_MSG_CHANNEL_OPEN_FAILURE
739This is sent by the server to indicate that it failed to open a
740connection as requested in a previous message. The client-side
741channel number is passed as an argument. The client will close the
742descriptor associated with the channel and free the channel.
743.IP SSH_MSG_CHANNEL_DATA
744This packet contains data for a channel from the server. The first
745argument is the client-side channel number, and the second argument (a
746string) is the data.
747.IP SSH_MSG_CHANNEL_CLOSE
748This is sent by the server to indicate that whoever was in the other
749end of the channel has closed it. The argument is the client side channel
750number. The client will let all buffered data in the channel to
751drain, and when ready, will close the socket, free the channel, and
752send the server a SSH_MSG_CHANNEL_CLOSE_CONFIRMATION message for the
753channel.
754.IP SSH_MSG_CHANNEL_CLOSE_CONFIRMATION
755This is send by the server to indicate that a channel previously
756closed by the client has now been closed on the server side as well.
757The argument indicates the client channel number. The client frees
758the channel.
759.RT
760
761The client may send any of the following messages:
762.IP SSH_CMSG_STDIN_DATA
763This is data to be sent as input to the program running on the server.
764The data is passed as a string.
765.IP SSH_CMSG_EOF
766Indicates that the client has encountered EOF while reading standard
767input. The server will allow any buffered input data to drain, and
768will then close the input to the program.
769.IP SSH_CMSG_WINDOW_SIZE
770Indicates that window size on the client has been changed. The server
771updates the window size of the tty and causes SIGWINCH to be sent to
772the program. The new window size is passed as four integer arguments:
773row, col, xpixel, ypixel.
774.IP SSH_MSG_PORT_OPEN
775Indicates that a connection has been made to a port on the client side
776for which forwarding has been requested. Arguments are client side
777channel number, host name to connect to, and port to connect to. The
778server should send back either SSH_MSG_CHANNEL_OPEN_CONFIRMATION or
779SSH_MSG_CHANNEL_OPEN_FAILURE with the same client side channel number.
780.IP SSH_MSG_CHANNEL_OPEN_CONFIRMATION
781This is sent by the client to indicate that it has opened a connection
782as requested in a previous message. The first argument indicates the
783server side channel number, and the second argument is the channel
784number that the client has allocated for this connection.
785.IP SSH_MSG_CHANNEL_OPEN_FAILURE
786This is sent by the client to indicate that it failed to open a
787connection as requested in a previous message. The server side
788channel number is passed as an argument. The server will close the
789descriptor associated with the channel and free the channel.
790.IP SSH_MSG_CHANNEL_DATA
791This packet contains data for a channel from the client. The first
792argument is the server side channel number, and the second argument (a
793string) is the data.
794.IP SSH_MSG_CHANNEL_CLOSE
795This is sent by the client to indicate that whoever was in the other
796end of the channel has closed it. The argument is the server channel
797number. The server will allow buffered data to drain, and when ready,
798will close the socket, free the channel, and send the client a
799SSH_MSG_CHANNEL_CLOSE_CONFIRMATION message for the channel.
800.IP SSH_MSG_CHANNEL_CLOSE_CONFIRMATION
801This is send by the client to indicate that a channel previously
802closed by the server has now been closed on the client side as well.
803The argument indicates the server channel number. The server frees
804the channel.
805.RT
806
807Any unsupported messages during interactive mode cause the connection
808to be terminated with SSH_MSG_DISCONNECT and an error message.
809Compatible protocol upgrades should agree about any extensions during
810the preparation phase or earlier.
811
812
813.ti 0
814Termination of the Connection
815
816Normal termination of the connection is always initiated by the server
817by sending SSH_SMSG_EXITSTATUS after the program has exited. The
818client responds to this message by sending SSH_CMSG_EXIT_CONFIRMATION
819and closes the socket; the server then closes the socket. There are
820two purposes for the confirmation: some systems may lose previously
821sent data when the socket is closed, and closing the client side first
822causes any TCP/IP TIME_WAIT [RFC0793] waits to occur on the client side, not
823consuming server resources.
824
825If the program terminates due to a signal, the server will send
826SSH_MSG_DISCONNECT with an appropriate message. If the connection is
827closed, all file descriptors to the program will be closed and the
828server will exit. If the program runs on a tty, the kernel sends it
829the SIGHUP signal when the pty master side is closed.
830
831.ti 0
832Protocol Flags
833
834Both the server and the client pass 32 bits of protocol flags to the
835other side. The flags are intended for compatible protocol extension;
836the server first announces which added capabilities it supports, and
837the client then sends the capabilities that it supports.
838
839The following flags are currently defined (the values are bit masks):
840.IP "1 SSH_PROTOFLAG_SCREEN_NUMBER"
841This flag can only be sent by the client. It indicates that the X11
842forwarding requests it sends will include the screen number.
843.IP "2 SSH_PROTOFLAG_HOST_IN_FWD_OPEN"
844If both sides specify this flag, SSH_SMSG_X11_OPEN and
845SSH_MSG_PORT_OPEN messages will contain an additional field containing
846a description of the host at the other end of the connection.
847.RT
848
849.ti 0
850Detailed Description of Packet Types and Formats
851
852The supported packet types and the corresponding message numbers are
853given in the following table. Messages with _MSG_ in their name may
854be sent by either side. Messages with _CMSG_ are only sent by the
855client, and messages with _SMSG_ only by the server.
856
857A packet may contain additional data after the arguments specified
858below. Any such data should be ignored by the receiver. However, it
859is recommended that no such data be stored without good reason. (This
860helps build compatible extensions.)
861.IP "0 SSH_MSG_NONE"
862This code is reserved. This message type is never sent.
863.IP "1 SSH_MSG_DISCONNECT"
864.TS
865;
866l l.
867string Cause of disconnection
868.TE
869This message may be sent by either party at any time. It causes the
870immediate disconnection of the connection. The message is intended to
871be displayed to a human, and describes the reason for disconnection.
872.IP "2 SSH_SMSG_PUBLIC_KEY"
873.TS
874;
875l l.
8768 bytes anti_spoofing_cookie
87732-bit int server_key_bits
878mp-int server_key_public_exponent
879mp-int server_key_public_modulus
88032-bit int host_key_bits
881mp-int host_key_public_exponent
882mp-int host_key_public_modulus
88332-bit int protocol_flags
88432-bit int supported_ciphers_mask
88532-bit int supported_authentications_mask
886.TE
887Sent as the first message by the server. This message gives the
888server's host key, server key, protocol flags (intended for compatible
889protocol extension), supported_ciphers_mask (which is the
890bitwise or of (1 << cipher_number), where << is the left shift
891operator, for all supported ciphers), and
892supported_authentications_mask (which is the bitwise or of (1 <<
893authentication_type) for all supported authentication types). The
894anti_spoofing_cookie is 64 random bytes, and must be sent back
895verbatim by the client in its reply. It is used to make IP-spoofing
896more difficult (encryption and host keys are the real defense against
897spoofing).
898.IP "3 SSH_CMSG_SESSION_KEY"
899.TS
900;
901l l.
9021 byte cipher_type (must be one of the supported values)
9038 bytes anti_spoofing_cookie (must match data sent by the server)
904mp-int double-encrypted session key
90532-bit int protocol_flags
906.TE
907Sent by the client as the first message in the session. Selects the
908cipher to use, and sends the encrypted session key to the server. The
909anti_spoofing_cookie must be the same bytes that were sent by the
910server. Protocol_flags is intended for negotiating compatible
911protocol extensions.
912.IP "4 SSH_CMSG_USER"
913.TS
914;
915l l.
916string user login name on server
917.TE
918Sent by the client to begin authentication. Specifies the user name
919on the server to log in as. The server responds with SSH_SMSG_SUCCESS
920if no authentication is needed for this user, or SSH_SMSG_FAILURE if
921authentication is needed (or the user does not exist). [Note to the
922implementator: the user name is of arbitrary size. The implementation
923must be careful not to overflow internal buffers.]
924.IP "5 SSH_CMSG_AUTH_RHOSTS"
925.TS
926;
927l l.
928string client-side user name
929.TE
930Requests authentication using /etc/hosts.equiv and .rhosts (or
931equivalent mechanisms). This authentication method is normally
932disabled in the server because it is not secure (but this is the
933method used by rsh and rlogin). The server responds with
934SSH_SMSG_SUCCESS if authentication was successful, and
935SSH_SMSG_FAILURE if access was not granted. The server should check
936that the client side port number is less than 1024 (a privileged
937port), and immediately reject authentication if it is not. Supporting
938this authentication method is optional. This method should normally
939not be enabled in the server because it is not safe. (However, not
940enabling this only helps if rlogind and rshd are disabled.)
941.IP "6 SSH_CMSG_AUTH_RSA"
942.TS
943;
944l l.
945mp-int identity_public_modulus
946.TE
947Requests authentication using pure RSA authentication. The server
948checks if the given key is permitted to log in, and if so, responds
949with SSH_SMSG_AUTH_RSA_CHALLENGE. Otherwise, it responds with
950SSH_SMSG_FAILURE. The client often tries several different keys in
951sequence until one supported by the server is found. Authentication
952is accepted if the client gives the correct response to the challenge.
953The server is free to add other criteria for authentication, such as a
954requirement that the connection must come from a certain host. Such
955additions are not visible at the protocol level. Supporting this
956authentication method is optional but recommended.
957.IP "7 SSH_SMSG_AUTH_RSA_CHALLENGE"
958.TS
959;
960l l.
961mp-int encrypted challenge
962.TE
963Presents an RSA authentication challenge to the client. The challenge
964is a 256-bit random value encrypted as described elsewhere in this
965document. The client must decrypt the challenge using the RSA private
966key, compute MD5 of the challenge plus session id, and send back the
967resulting 16 bytes using SSH_CMSG_AUTH_RSA_RESPONSE.
968.IP "8 SSH_CMSG_AUTH_RSA_RESPONSE"
969.TS
970;
971l l.
97216 bytes MD5 of decrypted challenge
973.TE
974This message is sent by the client in response to an RSA challenge.
975The MD5 checksum is returned instead of the decrypted challenge to
976deter known-plaintext attacks against the RSA key. The server
977responds to this message with either SSH_SMSG_SUCCESS or
978SSH_SMSG_FAILURE.
979.IP "9 SSH_CMSG_AUTH_PASSWORD"
980.TS
981;
982l l.
983string plain text password
984.TE
985Requests password authentication using the given password. Note that
986even though the password is plain text inside the packet, the whole
987packet is normally encrypted by the packet layer. It would not be
988possible for the client to perform password encryption/hashing,
989because it cannot know which kind of encryption/hashing, if any, the
990server uses. The server responds to this message with
991SSH_SMSG_SUCCESS or SSH_SMSG_FAILURE.
992.IP "10 SSH_CMSG_REQUEST_PTY"
993.TS
994;
995l l.
996string TERM environment variable value (e.g. vt100)
99732-bit int terminal height, rows (e.g., 24)
99832-bit int terminal width, columns (e.g., 80)
99932-bit int terminal width, pixels (0 if no graphics) (e.g., 480)
100032-bit int terminal height, pixels (0 if no graphics) (e.g., 640)
1001n bytes tty modes encoded in binary
1002.TE
1003Requests a pseudo-terminal to be allocated for this command. This
1004message can be used regardless of whether the session will later
1005execute the shell or a command. If a pty has been requested with this
1006message, the shell or command will run on a pty. Otherwise it will
1007communicate with the server using pipes, sockets or some other similar
1008mechanism.
1009
1010The terminal type gives the type of the user's terminal. In the UNIX
1011environment it is passed to the shell or command in the TERM
1012environment variable.
1013
1014The width and height values give the initial size of the user's
1015terminal or window. All values can be zero if not supported by the
1016operating system. The server will pass these values to the kernel if
1017supported.
1018
1019Terminal modes are encoded into a byte stream in a portable format.
1020The exact format is described later in this document.
1021
1022The server responds to the request with either SSH_SMSG_SUCCESS or
1023SSH_SMSG_FAILURE. If the server does not have the concept of pseudo
1024terminals, it should return success if it is possible to execute a
1025shell or a command so that it looks to the client as if it was running
1026on a pseudo terminal.
1027.IP "11 SSH_CMSG_WINDOW_SIZE"
1028.TS
1029;
1030l l.
103132-bit int terminal height, rows
103232-bit int terminal width, columns
103332-bit int terminal width, pixels
103432-bit int terminal height, pixels
1035.TE
1036This message can only be sent by the client during the interactive
1037session. This indicates that the size of the user's window has
1038changed, and provides the new size. The server will update the
1039kernel's notion of the window size, and a SIGWINCH signal or
1040equivalent will be sent to the shell or command (if supported by the
1041operating system).
1042.IP "12 SSH_CMSG_EXEC_SHELL"
1043
1044(no arguments)
1045
1046Starts a shell (command interpreter), and enters interactive session
1047mode.
1048.IP "13 SSH_CMSG_EXEC_CMD"
1049.TS
1050;
1051l l.
1052string command to execute
1053.TE
1054Starts executing the given command, and enters interactive session
1055mode. On UNIX, the command is run as "<shell> -c <command>", where
1056<shell> is the user's login shell.
1057.IP "14 SSH_SMSG_SUCCESS"
1058
1059(no arguments)
1060
1061This message is sent by the server in response to the session key, a
1062successful authentication request, and a successfully completed
1063preparatory operation.
1064.IP "15 SSH_SMSG_FAILURE"
1065
1066(no arguments)
1067
1068This message is sent by the server in response to a failed
1069authentication operation to indicate that the user has not yet been
1070successfully authenticated, and in response to a failed preparatory
1071operation. This is also sent in response to an authentication or
1072preparatory operation request that is not recognized or supported.
1073.IP "16 SSH_CMSG_STDIN_DATA"
1074.TS
1075;
1076l l.
1077string data
1078.TE
1079Delivers data from the client to be supplied as input to the shell or
1080program running on the server side. This message can only be used in
1081the interactive session mode. No acknowledgement is sent for this
1082message.
1083.IP "17 SSH_SMSG_STDOUT_DATA"
1084.TS
1085;
1086l l.
1087string data
1088.TE
1089Delivers data from the server that was read from the standard output of
1090the shell or program running on the server side. This message can
1091only be used in the interactive session mode. No acknowledgement is
1092sent for this message.
1093.IP "18 SSH_SMSG_STDERR_DATA"
1094.TS
1095;
1096l l.
1097string data
1098.TE
1099Delivers data from the server that was read from the standard error of
1100the shell or program running on the server side. This message can
1101only be used in the interactive session mode. No acknowledgement is
1102sent for this message.
1103.IP "19 SSH_CMSG_EOF"
1104
1105(no arguments)
1106
1107This message is sent by the client to indicate that EOF has been
1108reached on the input. Upon receiving this message, and after all
1109buffered input data has been sent to the shell or program, the server
1110will close the input file descriptor to the program. This message can
1111only be used in the interactive session mode. No acknowledgement is
1112sent for this message.
1113.IP "20 SSH_SMSG_EXITSTATUS"
1114.TS
1115;
1116l l.
111732-bit int exit status of the command
1118.TE
1119Returns the exit status of the shell or program after it has exited.
1120The client should respond with SSH_CMSG_EXIT_CONFIRMATION when it has
1121received this message. This will be the last message sent by the
1122server. If the program being executed dies with a signal instead of
1123exiting normally, the server should terminate the session with
1124SSH_MSG_DISCONNECT (which can be used to pass a human-readable string
1125indicating that the program died due to a signal) instead of using
1126this message.
1127.IP "21 SSH_MSG_CHANNEL_OPEN_CONFIRMATION"
1128.TS
1129;
1130l l.
113132-bit int remote_channel
113232-bit int local_channel
1133.TE
1134This is sent in response to any channel open request if the channel
1135has been successfully opened. Remote_channel is the channel number
1136received in the initial open request; local_channel is the channel
1137number the side sending this message has allocated for the channel.
1138Data can be transmitted on the channel after this message.
1139.IP "22 SSH_MSG_CHANNEL_OPEN_FAILURE"
1140.TS
1141;
1142l l.
114332-bit int remote_channel
1144.TE
1145This message indicates that an earlier channel open request by the
1146other side has failed or has been denied. Remote_channel is the
1147channel number given in the original request.
1148.IP "23 SSH_MSG_CHANNEL_DATA"
1149.TS
1150;
1151l l.
115232-bit int remote_channel
1153string data
1154.TE
1155Data is transmitted in a channel in these messages. A channel is
1156bidirectional, and both sides can send these messages. There is no
1157acknowledgement for these messages. It is possible that either side
1158receives these messages after it has sent SSH_MSG_CHANNEL_CLOSE for
1159the channel. These messages cannot be received after the party has
1160sent or received SSH_MSG_CHANNEL_CLOSE_CONFIRMATION.
1161.IP "24 SSH_MSG_CHANNEL_CLOSE"
1162.TS
1163;
1164l l.
116532-bit int remote_channel
1166.TE
1167When a channel is closed at one end of the connection, that side sends
1168this message. Upon receiving this message, the channel should be
1169closed. When this message is received, if the channel is already
1170closed (the receiving side has sent this message for the same channel
1171earlier), the channel is freed and no further action is taken;
1172otherwise the channel is freed and SSH_MSG_CHANNEL_CLOSE_CONFIRMATION
1173is sent in response. (It is possible that the channel is closed
1174simultaneously at both ends.)
1175.IP "25 SSH_MSG_CHANNEL_CLOSE_CONFIRMATION"
1176.TS
1177;
1178l l.
117932-bit int remote_channel
1180.TE
1181This message is sent in response to SSH_MSG_CHANNEL_CLOSE unless the
1182channel was already closed. When this message is sent or received,
1183the channel is freed.
1184.IP "26 (OBSOLETED; was unix-domain X11 forwarding)
1185.IP "27 SSH_SMSG_X11_OPEN"
1186.TS
1187;
1188l l.
118932-bit int local_channel
1190string originator_string (see below)
1191.TE
1192This message can be sent by the server during the interactive session
1193mode to indicate that a client has connected the fake X server.
1194Local_channel is the channel number that the server has allocated for
1195the connection. The client should try to open a connection to the
1196real X server, and respond with SSH_MSG_CHANNEL_OPEN_CONFIRMATION or
1197SSH_MSG_CHANNEL_OPEN_FAILURE.
1198
1199The field originator_string is present if both sides
1200specified SSH_PROTOFLAG_HOST_IN_FWD_OPEN in the protocol flags. It
1201contains a description of the host originating the connection.
1202.IP "28 SSH_CMSG_PORT_FORWARD_REQUEST"
1203.TS
1204;
1205l l.
120632-bit int server_port
1207string host_to_connect
120832-bit int port_to_connect
1209.TE
1210Sent by the client in the preparatory phase, this message requests
1211that server_port on the server machine be forwarded over the secure
1212channel to the client machine, and from there to the specified host
1213and port. The server should start listening on the port, and send
1214SSH_MSG_PORT_OPEN whenever a connection is made to it. Supporting
1215this message is optional, and the server is free to reject any forward
1216request. For example, it is highly recommended that unless the user
1217has been authenticated as root, forwarding any privileged port numbers
1218(below 1024) is denied.
1219.IP "29 SSH_MSG_PORT_OPEN"
1220.TS
1221;
1222l l.
122332-bit int local_channel
1224string host_name
122532-bit int port
1226string originator_string (see below)
1227.TE
1228Sent by either party in interactive session mode, this message
1229indicates that a connection has been opened to a forwarded TCP/IP
1230port. Local_channel is the channel number that the sending party has
1231allocated for the connection. Host_name is the host the connection
1232should be be forwarded to, and the port is the port on that host to
1233connect. The receiving party should open the connection, and respond
1234with SSH_MSG_CHANNEL_OPEN_CONFIRMATION or
1235SSH_MSG_CHANNEL_OPEN_FAILURE. It is recommended that the receiving
1236side check the host_name and port for validity to avoid compromising
1237local security by compromised remote side software. Particularly, it
1238is recommended that the client permit connections only to those ports
1239for which it has requested forwarding with SSH_CMSG_PORT_FORWARD_REQUEST.
1240
1241The field originator_string is present if both sides
1242specified SSH_PROTOFLAG_HOST_IN_FWD_OPEN in the protocol flags. It
1243contains a description of the host originating the connection.
1244.IP "30 SSH_CMSG_AGENT_REQUEST_FORWARDING"
1245
1246(no arguments)
1247
1248Requests that the connection to the authentication agent be forwarded
1249over the secure channel. The method used by clients to contact the
1250authentication agent within each machine is implementation and machine
1251dependent. If the server accepts this request, it should arrange that
1252any clients run from this session will actually contact the server
1253program when they try to contact the authentication agent. The server
1254should then send a SSH_SMSG_AGENT_OPEN to open a channel to the agent,
1255and the client should forward the connection to the real
1256authentication agent. Supporting this message is optional.
1257.IP "31 SSH_SMSG_AGENT_OPEN"
1258.TS
1259;
1260l l.
126132-bit int local_channel
1262.TE
1263Sent by the server in interactive session mode, this message requests
1264opening a channel to the authentication agent. The client should open
1265a channel, and respond with either SSH_MSG_CHANNEL_OPEN_CONFIRMATION
1266or SSH_MSG_CHANNEL_OPEN_FAILURE.
1267.IP "32 SSH_MSG_IGNORE"
1268.TS
1269;
1270l l.
1271string data
1272.TE
1273Either party may send this message at any time. This message, and the
1274argument string, is silently ignored. This message might be used in
1275some implementations to make traffic analysis more difficult. This
1276message is not currently sent by the implementation, but all
1277implementations are required to recognize and ignore it.
1278.IP "33 SSH_CMSG_EXIT_CONFIRMATION"
1279
1280(no arguments)
1281
1282Sent by the client in response to SSH_SMSG_EXITSTATUS. This is the
1283last message sent by the client.
1284.IP "34 SSH_CMSG_X11_REQUEST_FORWARDING"
1285.TS
1286;
1287l l.
1288string x11_authentication_protocol
1289string x11_authentication_data
129032-bit int screen number (if SSH_PROTOFLAG_SCREEN_NUMBER)
1291.TE
1292Sent by the client during the preparatory phase, this message requests
1293that the server create a fake X11 display and set the DISPLAY
1294environment variable accordingly. An internet-domain display is
1295preferable. The given authentication protocol and the associated data
1296should be recorded by the server so that it is used as authentication
1297on connections (e.g., in .Xauthority). The authentication protocol
1298must be one of the supported X11 authentication protocols, e.g.,
1299"MIT-MAGIC-COOKIE-1". Authentication data must be a lowercase hex
1300string of even length. Its interpretation is protocol dependent.
1301The data is in a format that can be used with e.g. the xauth program.
1302Supporting this message is optional.
1303
1304The client is permitted (and recommended) to generate fake
1305authentication information and send fake information to the server.
1306This way, a corrupt server will not have access to the user's terminal
1307after the connection has terminated. The correct authorization codes
1308will also not be left hanging around in files on the server (many
1309users keep the same X session for months, thus protecting the
1310authorization data becomes important).
1311
1312X11 authentication spoofing works by initially sending fake (random)
1313authentication data to the server, and interpreting the first packet
1314sent by the X11 client after the connection has been opened. The
1315first packet contains the client's authentication. If the packet
1316contains the correct fake data, it is replaced by the client by the
1317correct authentication data, and then sent to the X server.
1318.IP "35 SSH_CMSG_AUTH_RHOSTS_RSA"
1319.TS
1320;
1321l l.
1322string clint-side user name
132332-bit int client_host_key_bits
1324mp-int client_host_key_public_exponent
1325mp-int client_host_key_public_modulus
1326.TE
1327Requests authentication using /etc/hosts.equiv and .rhosts (or
1328equivalent) together with RSA host authentication. The server should
1329check that the client side port number is less than 1024 (a privileged
1330port), and immediately reject authentication if it is not. The server
1331responds with SSH_SMSG_FAILURE or SSH_SMSG_AUTH_RSA_CHALLENGE. The
1332client must respond to the challenge with the proper
1333SSH_CMSG_AUTH_RSA_RESPONSE. The server then responds with success if
1334access was granted, or failure if the client gave a wrong response.
1335Supporting this authentication method is optional but recommended in
1336most environments.
1337.IP "36 SSH_MSG_DEBUG"
1338.TS
1339;
1340l l.
1341string debugging message sent to the other side
1342.TE
1343This message may be sent by either party at any time. It is used to
1344send debugging messages that may be informative to the user in
1345solving various problems. For example, if authentication fails
1346because of some configuration error (e.g., incorrect permissions for
1347some file), it can be very helpful for the user to make the cause of
1348failure available. On the other hand, one should not make too much
1349information available for security reasons. It is recommended that
1350the client provides an option to display the debugging information
1351sent by the sender (the user probably does not want to see it by default).
1352The server can log debugging data sent by the client (if any). Either
1353party is free to ignore any received debugging data. Every
1354implementation must be able to receive this message, but no
1355implementation is required to send these.
1356.IP "37 SSH_CMSG_REQUEST_COMPRESSION"
1357.TS
1358;
1359l l.
136032-bit int gzip compression level (1-9)
1361.TE
1362This message can be sent by the client in the preparatory operations
1363phase. The server responds with SSH_SMSG_FAILURE if it does not
1364support compression or does not want to compress; it responds with
1365SSH_SMSG_SUCCESS if it accepted the compression request. In the
1366latter case the response to this packet will still be uncompressed,
1367but all further packets in either direction will be compressed by gzip.
1368.RT
1369
1370
1371.ti 0
1372Encoding of Terminal Modes
1373
1374Terminal modes (as passed in SSH_CMSG_REQUEST_PTY) are encoded into a
1375byte stream. It is intended that the coding be portable across
1376different environments.
1377
1378The tty mode description is a stream of bytes. The stream consists of
1379opcode-argument pairs. It is terminated by opcode TTY_OP_END (0).
1380Opcodes 1-127 have one-byte arguments. Opcodes 128-159 have 32-bit
1381integer arguments (stored msb first). Opcodes 160-255 are not yet
1382defined, and cause parsing to stop (they should only be used after any
1383other data).
1384
1385The client puts in the stream any modes it knows about, and the server
1386ignores any modes it does not know about. This allows some degree of
1387machine-independence, at least between systems that use a POSIX-like
1388[POSIX] tty interface. The protocol can support other systems as
1389well, but the client may need to fill reasonable values for a number
1390of parameters so the server pty gets set to a reasonable mode (the
1391server leaves all unspecified mode bits in their default values, and
1392only some combinations make sense).
1393
1394The following opcodes have been defined. The naming of opcodes mostly
1395follows the POSIX terminal mode flags.
1396.IP "0 TTY_OP_END"
1397Indicates end of options.
1398.IP "1 VINTR"
1399Interrupt character; 255 if none. Similarly for the other characters.
1400Not all of these characters are supported on all systems.
1401.IP "2 VQUIT"
1402The quit character (sends SIGQUIT signal on UNIX systems).
1403.IP "3 VERASE"
1404Erase the character to left of the cursor.
1405.IP "4 VKILL"
1406Kill the current input line.
1407.IP "5 VEOF "
1408End-of-file character (sends EOF from the terminal).
1409.IP "6 VEOL "
1410End-of-line character in addition to carriage return and/or linefeed.
1411.IP "7 VEOL2"
1412Additional end-of-line character.
1413.IP "8 VSTART"
1414Continues paused output (normally ^Q).
1415.IP "9 VSTOP"
1416Pauses output (^S).
1417.IP "10 VSUSP"
1418Suspends the current program.
1419.IP "11 VDSUSP"
1420Another suspend character.
1421.IP "12 VREPRINT"
1422Reprints the current input line.
1423.IP "13 VWERASE"
1424Erases a word left of cursor.
1425.IP "14 VLNEXT"
1426More special input characters; these are probably not supported on
1427most systems.
1428.IP "15 VFLUSH"
1429.IP "16 VSWTCH"
1430.IP "17 VSTATUS"
1431.IP "18 VDISCARD"
1432
1433.IP "30 IGNPAR"
1434The ignore parity flag. The next byte should be 0 if this flag is not
1435set, and 1 if it is set.
1436.IP "31 PARMRK"
1437More flags. The exact definitions can be found in the POSIX standard.
1438.IP "32 INPCK"
1439.IP "33 ISTRIP"
1440.IP "34 INLCR"
1441.IP "35 IGNCR"
1442.IP "36 ICRNL"
1443.IP "37 IUCLC"
1444.IP "38 IXON"
1445.IP "39 IXANY"
1446.IP "40 IXOFF"
1447.IP "41 IMAXBEL"
1448
1449.IP "50 ISIG"
1450.IP "51 ICANON"
1451.IP "52 XCASE"
1452.IP "53 ECHO"
1453.IP "54 ECHOE"
1454.IP "55 ECHOK"
1455.IP "56 ECHONL"
1456.IP "57 NOFLSH"
1457.IP "58 TOSTOP"
1458.IP "59 IEXTEN"
1459.IP "60 ECHOCTL"
1460.IP "61 ECHOKE"
1461.IP "62 PENDIN"
1462
1463.IP "70 OPOST"
1464.IP "71 OLCUC"
1465.IP "72 ONLCR"
1466.IP "73 OCRNL"
1467.IP "74 ONOCR"
1468.IP "75 ONLRET"
1469
1470.IP "90 CS7"
1471.IP "91 CS8"
1472.IP "92 PARENB"
1473.IP "93 PARODD"
1474
1475.IP "192 TTY_OP_ISPEED"
1476Specifies the input baud rate in bits per second.
1477.IP "193 TTY_OP_OSPEED"
1478Specifies the output baud rate in bits per second.
1479.RT
1480
1481
1482.ti 0
1483The Authentication Agent Protocol
1484
1485The authentication agent is a program that can be used to hold RSA
1486authentication keys for the user (in future, it might hold data for
1487other authentication types as well). An authorized program can send
1488requests to the agent to generate a proper response to an RSA
1489challenge. How the connection is made to the agent (or its
1490representative) inside a host and how access control is done inside a
1491host is implementation-dependent; however, how it is forwarded and how
1492one interacts with it is specified in this protocol. The connection
1493to the agent is normally automatically forwarded over the secure
1494channel.
1495
1496A program that wishes to use the agent first opens a connection to its
1497local representative (typically, the agent itself or an SSH server).
1498It then writes a request to the connection, and waits for response.
1499It is recommended that at least five minutes of timeout are provided
1500waiting for the agent to respond to an authentication challenge (this
1501gives sufficient time for the user to cut-and-paste the challenge to a
1502separate machine, perform the computation there, and cut-and-paste the
1503result back if so desired).
1504
1505Messages sent to and by the agent are in the following format:
1506.TS
1507;
1508l l.
15094 bytes Length, msb first. Does not include length itself.
15101 byte Packet type. The value 255 is reserved for future extensions.
1511data Any data, depending on packet type. Encoding as in the ssh packet
1512protocol.
1513.TE
1514
1515The following message types are currently defined:
1516.IP "1 SSH_AGENTC_REQUEST_RSA_IDENTITIES"
1517
1518(no arguments)
1519
1520Requests the agent to send a list of all RSA keys for which it can
1521answer a challenge.
1522.IP "2 SSH_AGENT_RSA_IDENTITIES_ANSWER"
1523.TS
1524;
1525l l.
152632-bit int howmany
1527howmany times:
152832-bit int bits
1529mp-int public exponent
1530mp-int public modulus
1531string comment
1532.TE
1533The agent sends this message in response to the to
1534SSH_AGENTC_REQUEST_RSA_IDENTITIES. The answer lists all RSA keys for
1535which the agent can answer a challenge. The comment field is intended
1536to help identify each key; it may be printed by an application to
1537indicate which key is being used. If the agent is not holding any
1538keys, howmany will be zero.
1539.IP "3 SSH_AGENTC_RSA_CHALLENGE
1540.TS
1541;
1542l l.
154332-bit int bits
1544mp-int public exponent
1545mp-int public modulus
1546mp-int challenge
154716 bytes session_id
154832-bit int response_type
1549.TE
1550Requests RSA decryption of random challenge to authenticate the other
1551side. The challenge will be decrypted with the RSA private key
1552corresponding to the given public key.
1553
1554The decrypted challenge must contain a zero in the highest (partial)
1555byte, 2 in the next byte, followed by non-zero random bytes, a zero
1556byte, and then the real challenge value in the lowermost bytes. The
1557real challenge must be 32 8-bit bytes (256 bits).
1558
1559Response_type indicates the format of the response to be returned.
1560Currently the only supported value is 1, which means to compute MD5 of
1561the real challenge plus session id, and return the resulting 16 bytes
1562in a SSH_AGENT_RSA_RESPONSE message.
1563.IP "4 SSH_AGENT_RSA_RESPONSE"
1564.TS
1565;
1566l l.
156716 bytes MD5 of decrypted challenge
1568.TE
1569Answers an RSA authentication challenge. The response is 16 bytes:
1570the MD5 checksum of the 32-byte challenge.
1571.IP "5 SSH_AGENT_FAILURE"
1572
1573(no arguments)
1574
1575This message is sent whenever the agent fails to answer a request
1576properly. For example, if the agent cannot answer a challenge (e.g.,
1577no longer has the proper key), it can respond with this. The agent
1578also responds with this message if it receives a message it does not
1579recognize.
1580.IP "6 SSH_AGENT_SUCCESS"
1581
1582(no arguments)
1583
1584This message is sent by the agent as a response to certain requests
1585that do not otherwise cause a message be sent. Currently, this is
1586only sent in response to SSH_AGENTC_ADD_RSA_IDENTITY and
1587SSH_AGENTC_REMOVE_RSA_IDENTITY.
1588.IP "7 SSH_AGENTC_ADD_RSA_IDENTITY"
1589.TS
1590;
1591l l.
159232-bit int bits
1593mp-int public modulus
1594mp-int public exponent
1595mp-int private exponent
1596mp-int multiplicative inverse of p mod q
1597mp-int p
1598mp-int q
1599string comment
1600.TE
1601Registers an RSA key with the agent. After this request, the agent can
1602use this RSA key to answer requests. The agent responds with
1603SSH_AGENT_SUCCESS or SSH_AGENT_FAILURE.
1604.IP "8 SSH_AGENT_REMOVE_RSA_IDENTITY"
1605.TS
1606;
1607l l.
160832-bit int bits
1609mp-int public exponent
1610mp-int public modulus
1611.TE
1612Removes an RSA key from the agent. The agent will no longer accept
1613challenges for this key and will not list it as a supported identity.
1614The agent responds with SSH_AGENT_SUCCESS or SSH_AGENT_FAILURE.
1615.RT
1616
1617If the agent receives a message that it does not understand, it
1618responds with SSH_AGENT_FAILURE. This permits compatible future
1619extensions.
1620
1621It is possible that several clients have a connection open to the
1622authentication agent simultaneously. Each client will use a separate
1623connection (thus, any SSH connection can have multiple agent
1624connections active simultaneously).
1625
1626
1627.ti 0
1628References
1629
1630.IP "[DES] "
1631FIPS PUB 46-1: Data Encryption Standard. National Bureau of
1632Standards, January 1988. FIPS PUB 81: DES Modes of Operation.
1633National Bureau of Standards, December 1980. Bruce Schneier: Applied
1634Cryptography. John Wiley & Sons, 1994. J. Seberry and J. Pieprzyk:
1635Cryptography: An Introduction to Computer Security. Prentice-Hall,
16361989.
1637.IP "[GZIP] "
1638The GNU GZIP program; available for anonymous ftp at prep.ai.mit.edu.
1639Please let me know if you know a paper describing the algorithm.
1640.IP "[IDEA] "
1641Xuejia Lai: On the Design and Security of Block Ciphers, ETH Series in
1642Information Processing, vol. 1, Hartung-Gorre Verlag, Konstanz,
1643Switzerland, 1992. Bruce Schneier: Applied Cryptography, John Wiley &
1644Sons, 1994. See also the following patents: PCT/CH91/00117, EP 0 482
1645154 B1, US Pat. 5,214,703.
1646.IP [PKCS#1]
1647PKCS #1: RSA Encryption Standard. Version 1.5, RSA Laboratories,
1648November 1993. Available for anonymous ftp at ftp.rsa.com.
1649.IP [POSIX]
1650Portable Operating System Interface (POSIX) - Part 1: Application
1651Program Interface (API) [C language], ISO/IEC 9945-1, IEEE Std 1003.1,
16521990.
1653.IP [RFC0791]
1654J. Postel: Internet Protocol, RFC 791, USC/ISI, September 1981.
1655.IP [RFC0793]
1656J. Postel: Transmission Control Protocol, RFC 793, USC/ISI, September
16571981.
1658.IP [RFC1034]
1659P. Mockapetris: Domain Names - Concepts and Facilities, RFC 1034,
1660USC/ISI, November 1987.
1661.IP [RFC1282]
1662B. Kantor: BSD Rlogin, RFC 1258, UCSD, December 1991.
1663.IP "[RSA] "
1664Bruce Schneier: Applied Cryptography. John Wiley & Sons, 1994. See
1665also R. Rivest, A. Shamir, and L. M. Adleman: Cryptographic
1666Communications System and Method. US Patent 4,405,829, 1983.
1667.IP "[X11] "
1668R. Scheifler: X Window System Protocol, X Consortium Standard, Version
166911, Release 6. Massachusetts Institute of Technology, Laboratory of
1670Computer Science, 1994.
1671.RT
1672
1673
1674.ti 0
1675Security Considerations
1676
1677This protocol deals with the very issue of user authentication and
1678security.
1679
1680First of all, as an implementation issue, the server program will have
1681to run as root (or equivalent) on the server machine. This is because
1682the server program will need be able to change to an arbitrary user
1683id. The server must also be able to create a privileged TCP/IP port.
1684
1685The client program will need to run as root if any variant of .rhosts
1686authentication is to be used. This is because the client program will
1687need to create a privileged port. The client host key is also usually
1688stored in a file which is readable by root only. The client needs the
1689host key in .rhosts authentication only. Root privileges can be
1690dropped as soon as the privileged port has been created and the host
1691key has been read.
1692
1693The SSH protocol offers major security advantages over existing telnet
1694and rlogin protocols.
1695.IP o
1696IP spoofing is restricted to closing a connection (by encryption, host
1697keys, and the special random cookie). If encryption is not used, IP
1698spoofing is possible for those who can hear packets going out from the
1699server.
1700.IP o
1701DNS spoofing is made ineffective (by host keys).
1702.IP o
1703Routing spoofing is made ineffective (by host keys).
1704.IP o
1705All data is encrypted with strong algorithms to make eavesdropping as
1706difficult as possible. This includes encrypting any authentication
1707information such as passwords. The information for decrypting session
1708keys is destroyed every hour.
1709.IP o
1710Strong authentication methods: .rhosts combined with RSA host
1711authentication, and pure RSA authentication.
1712.IP o
1713X11 connections and arbitrary TCP/IP ports can be forwarded securely.
1714.IP o
1715Man-in-the-middle attacks are deterred by using the server host key to
1716encrypt the session key.
1717.IP o
1718Trojan horses to catch a password by routing manipulation are deterred
1719by checking that the host key of the server machine matches that
1720stored on the client host.
1721.RT
1722
1723The security of SSH against man-in-the-middle attacks and the security
1724of the new form of .rhosts authentication, as well as server host
1725validation, depends on the integrity of the host key and the files
1726containing known host keys.
1727
1728The host key is normally stored in a root-readable file. If the host
1729key is compromised, it permits attackers to use IP, DNS and routing
1730spoofing as with current rlogin and rsh. It should never be any worse
1731than the current situation.
1732
1733The files containing known host keys are not sensitive. However, if an
1734attacker gets to modify the known host key files, it has the same
1735consequences as a compromised host key, because the attacker can then
1736change the recorded host key.
1737
1738The security improvements obtained by this protocol for X11 are of
1739particular significance. Previously, there has been no way to protect
1740data communicated between an X server and a client running on a remote
1741machine. By creating a fake display on the server, and forwarding all
1742X11 requests over the secure channel, SSH can be used to run any X11
1743applications securely without any cooperation with the vendors of the
1744X server or the application.
1745
1746Finally, the security of this program relies on the strength of the
1747underlying cryptographic algorithms. The RSA algorithm is used for
1748authentication key exchange. It is widely believed to be secure. Of
1749the algorithms used to encrypt the session, DES has a rather small key
1750these days, probably permitting governments and organized criminals to
1751break it in very short time with specialized hardware. 3DES is
1752probably safe (but slower). IDEA is widely believed to be secure.
1753People have varying degrees of confidence in the other algorithms.
1754This program is not secure if used with no encryption at all.
1755
1756
1757.ti 0
1758Additional Information
1759
1760Additional information (especially on the implementation and mailing
1761lists) is available via WWW at http://www.cs.hut.fi/ssh.
1762
1763Comments should be sent to Tatu Ylonen <ylo@cs.hut.fi> or the SSH
1764Mailing List <ssh@clinet.fi>.
1765
1766.ti 0
1767Author's Address
1768
1769.TS
1770;
1771l.
1772Tatu Ylonen
1773Helsinki University of Technology
1774Otakaari 1
1775FIN-02150 Espoo, Finland
1776
1777Phone: +358-0-451-3374
1778Fax: +358-0-451-3293
1779EMail: ylo@cs.hut.fi
1780.TE
diff --git a/acconfig.h b/acconfig.h
new file mode 100644
index 000000000..79b5e8191
--- /dev/null
+++ b/acconfig.h
@@ -0,0 +1,458 @@
1/* $Id: acconfig.h,v 1.183 2005/07/07 10:33:36 dtucker Exp $ */
2
3/*
4 * Copyright (c) 1999-2003 Damien Miller. 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 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#ifndef _CONFIG_H
28#define _CONFIG_H
29
30/* Generated automatically from acconfig.h by autoheader. */
31/* Please make your changes there */
32
33@TOP@
34
35/* Define if your platform breaks doing a seteuid before a setuid */
36#undef SETEUID_BREAKS_SETUID
37
38/* Define if your setreuid() is broken */
39#undef BROKEN_SETREUID
40
41/* Define if your setregid() is broken */
42#undef BROKEN_SETREGID
43
44/* Define if your setresuid() is broken */
45#undef BROKEN_SETRESUID
46
47/* Define if your setresgid() is broken */
48#undef BROKEN_SETRESGID
49
50/* Define to a Set Process Title type if your system is */
51/* supported by bsd-setproctitle.c */
52#undef SPT_TYPE
53#undef SPT_PADCHAR
54
55/* SCO workaround */
56#undef BROKEN_SYS_TERMIO_H
57
58/* Define if you have SecureWare-based protected password database */
59#undef HAVE_SECUREWARE
60
61/* If your header files don't define LOGIN_PROGRAM, then use this (detected) */
62/* from environment and PATH */
63#undef LOGIN_PROGRAM_FALLBACK
64
65/* Full path of your "passwd" program */
66#undef _PATH_PASSWD_PROG
67
68/* Define if your password has a pw_class field */
69#undef HAVE_PW_CLASS_IN_PASSWD
70
71/* Define if your password has a pw_expire field */
72#undef HAVE_PW_EXPIRE_IN_PASSWD
73
74/* Define if your password has a pw_change field */
75#undef HAVE_PW_CHANGE_IN_PASSWD
76
77/* Define if your system uses access rights style file descriptor passing */
78#undef HAVE_ACCRIGHTS_IN_MSGHDR
79
80/* Define if your system uses ancillary data style file descriptor passing */
81#undef HAVE_CONTROL_IN_MSGHDR
82
83/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
84#undef BROKEN_INET_NTOA
85
86/* Define if your system defines sys_errlist[] */
87#undef HAVE_SYS_ERRLIST
88
89/* Define if your system defines sys_nerr */
90#undef HAVE_SYS_NERR
91
92/* Define if your system choked on IP TOS setting */
93#undef IP_TOS_IS_BROKEN
94
95/* Define if you have the getuserattr function. */
96#undef HAVE_GETUSERATTR
97
98/* Define if you have the basename function. */
99#undef HAVE_BASENAME
100
101/* Work around problematic Linux PAM modules handling of PAM_TTY */
102#undef PAM_TTY_KLUDGE
103
104/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
105#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
106
107/* Use PIPES instead of a socketpair() */
108#undef USE_PIPES
109
110/* Define if your snprintf is busted */
111#undef BROKEN_SNPRINTF
112
113/* Define if you are on Cygwin */
114#undef HAVE_CYGWIN
115
116/* Define if you have a broken realpath. */
117#undef BROKEN_REALPATH
118
119/* Define if you are on NeXT */
120#undef HAVE_NEXT
121
122/* Define if you want to enable PAM support */
123#undef USE_PAM
124
125/* Define if you want to enable AIX4's authenticate function */
126#undef WITH_AIXAUTHENTICATE
127
128/* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */
129#undef AIX_LOGINFAILED_4ARG
130
131/* Define if your skeychallenge() function takes 4 arguments (eg NetBSD) */
132#undef SKEYCHALLENGE_4ARG
133
134/* Define if you have/want arrays (cluster-wide session managment, not C arrays) */
135#undef WITH_IRIX_ARRAY
136
137/* Define if you want IRIX project management */
138#undef WITH_IRIX_PROJECT
139
140/* Define if you want IRIX audit trails */
141#undef WITH_IRIX_AUDIT
142
143/* Define if you want IRIX kernel jobs */
144#undef WITH_IRIX_JOBS
145
146/* Location of PRNGD/EGD random number socket */
147#undef PRNGD_SOCKET
148
149/* Port number of PRNGD/EGD random number socket */
150#undef PRNGD_PORT
151
152/* Builtin PRNG command timeout */
153#undef ENTROPY_TIMEOUT_MSEC
154
155/* non-privileged user for privilege separation */
156#undef SSH_PRIVSEP_USER
157
158/* Define if you want to install preformatted manpages.*/
159#undef MANTYPE
160
161/* Define if your ssl headers are included with #include <openssl/header.h> */
162#undef HAVE_OPENSSL
163
164/* Define if you are linking against RSAref. Used only to print the right
165 * message at run-time. */
166#undef RSAREF
167
168/* struct timeval */
169#undef HAVE_STRUCT_TIMEVAL
170
171/* struct utmp and struct utmpx fields */
172#undef HAVE_HOST_IN_UTMP
173#undef HAVE_HOST_IN_UTMPX
174#undef HAVE_ADDR_IN_UTMP
175#undef HAVE_ADDR_IN_UTMPX
176#undef HAVE_ADDR_V6_IN_UTMP
177#undef HAVE_ADDR_V6_IN_UTMPX
178#undef HAVE_SYSLEN_IN_UTMPX
179#undef HAVE_PID_IN_UTMP
180#undef HAVE_TYPE_IN_UTMP
181#undef HAVE_TYPE_IN_UTMPX
182#undef HAVE_TV_IN_UTMP
183#undef HAVE_TV_IN_UTMPX
184#undef HAVE_ID_IN_UTMP
185#undef HAVE_ID_IN_UTMPX
186#undef HAVE_EXIT_IN_UTMP
187#undef HAVE_TIME_IN_UTMP
188#undef HAVE_TIME_IN_UTMPX
189
190/* Define if you don't want to use your system's login() call */
191#undef DISABLE_LOGIN
192
193/* Define if you don't want to use pututline() etc. to write [uw]tmp */
194#undef DISABLE_PUTUTLINE
195
196/* Define if you don't want to use pututxline() etc. to write [uw]tmpx */
197#undef DISABLE_PUTUTXLINE
198
199/* Define if you don't want to use lastlog */
200#undef DISABLE_LASTLOG
201
202/* Define if you don't want to use lastlog in session.c */
203#undef NO_SSH_LASTLOG
204
205/* Define if you don't want to use utmp */
206#undef DISABLE_UTMP
207
208/* Define if you don't want to use utmpx */
209#undef DISABLE_UTMPX
210
211/* Define if you don't want to use wtmp */
212#undef DISABLE_WTMP
213
214/* Define if you don't want to use wtmpx */
215#undef DISABLE_WTMPX
216
217/* Some systems need a utmpx entry for /bin/login to work */
218#undef LOGIN_NEEDS_UTMPX
219
220/* Some versions of /bin/login need the TERM supplied on the commandline */
221#undef LOGIN_NEEDS_TERM
222
223/* Define if your login program cannot handle end of options ("--") */
224#undef LOGIN_NO_ENDOPT
225
226/* Define if you want to specify the path to your lastlog file */
227#undef CONF_LASTLOG_FILE
228
229/* Define if you want to specify the path to your utmp file */
230#undef CONF_UTMP_FILE
231
232/* Define if you want to specify the path to your wtmp file */
233#undef CONF_WTMP_FILE
234
235/* Define if you want to specify the path to your utmpx file */
236#undef CONF_UTMPX_FILE
237
238/* Define if you want to specify the path to your wtmpx file */
239#undef CONF_WTMPX_FILE
240
241/* Define if you want external askpass support */
242#undef USE_EXTERNAL_ASKPASS
243
244/* Define if libc defines __progname */
245#undef HAVE___PROGNAME
246
247/* Define if compiler implements __FUNCTION__ */
248#undef HAVE___FUNCTION__
249
250/* Define if compiler implements __func__ */
251#undef HAVE___func__
252
253/* Define this is you want GSSAPI support in the version 2 protocol */
254#undef GSSAPI
255
256/* Define if you want Kerberos 5 support */
257#undef KRB5
258
259/* Define this if you are using the Heimdal version of Kerberos V5 */
260#undef HEIMDAL
261
262/* Define this if you want to use libkafs' AFS support */
263#undef USE_AFS
264
265/* Define if you want S/Key support */
266#undef SKEY
267
268/* Define if you want TCP Wrappers support */
269#undef LIBWRAP
270
271/* Define if your libraries define login() */
272#undef HAVE_LOGIN
273
274/* Define if your libraries define daemon() */
275#undef HAVE_DAEMON
276
277/* Define if your libraries define getpagesize() */
278#undef HAVE_GETPAGESIZE
279
280/* Define if xauth is found in your path */
281#undef XAUTH_PATH
282
283/* Define if you want to allow MD5 passwords */
284#undef HAVE_MD5_PASSWORDS
285
286/* Define if you want to disable shadow passwords */
287#undef DISABLE_SHADOW
288
289/* Define if you want to use shadow password expire field */
290#undef HAS_SHADOW_EXPIRE
291
292/* Define if you have Digital Unix Security Integration Architecture */
293#undef HAVE_OSF_SIA
294
295/* Define if you have getpwanam(3) [SunOS 4.x] */
296#undef HAVE_GETPWANAM
297
298/* Define if you have an old version of PAM which takes only one argument */
299/* to pam_strerror */
300#undef HAVE_OLD_PAM
301
302/* Define if you are using Solaris-derived PAM which passes pam_messages */
303/* to the conversation function with an extra level of indirection */
304#undef PAM_SUN_CODEBASE
305
306/* Set this to your mail directory if you don't have maillock.h */
307#undef MAIL_DIRECTORY
308
309/* Data types */
310#undef HAVE_U_INT
311#undef HAVE_INTXX_T
312#undef HAVE_U_INTXX_T
313#undef HAVE_UINTXX_T
314#undef HAVE_INT64_T
315#undef HAVE_U_INT64_T
316#undef HAVE_U_CHAR
317#undef HAVE_SIZE_T
318#undef HAVE_SSIZE_T
319#undef HAVE_CLOCK_T
320#undef HAVE_MODE_T
321#undef HAVE_PID_T
322#undef HAVE_SA_FAMILY_T
323#undef HAVE_STRUCT_SOCKADDR_STORAGE
324#undef HAVE_STRUCT_ADDRINFO
325#undef HAVE_STRUCT_IN6_ADDR
326#undef HAVE_STRUCT_SOCKADDR_IN6
327
328/* Fields in struct sockaddr_storage */
329#undef HAVE_SS_FAMILY_IN_SS
330#undef HAVE___SS_FAMILY_IN_SS
331
332/* Define if you have /dev/ptmx */
333#undef HAVE_DEV_PTMX
334
335/* Define if you have /dev/ptc */
336#undef HAVE_DEV_PTS_AND_PTC
337
338/* Define if you need to use IP address instead of hostname in $DISPLAY */
339#undef IPADDR_IN_DISPLAY
340
341/* Specify default $PATH */
342#undef USER_PATH
343
344/* Specify location of ssh.pid */
345#undef _PATH_SSH_PIDDIR
346
347/* getaddrinfo is broken (if present) */
348#undef BROKEN_GETADDRINFO
349
350/* updwtmpx is broken (if present) */
351#undef BROKEN_UPDWTMPX
352
353/* Workaround more Linux IPv6 quirks */
354#undef DONT_TRY_OTHER_AF
355
356/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
357#undef IPV4_IN_IPV6
358
359/* Define if you have BSD auth support */
360#undef BSD_AUTH
361
362/* Define if X11 doesn't support AF_UNIX sockets on that system */
363#undef NO_X11_UNIX_SOCKETS
364
365/* Define if the concept of ports only accessible to superusers isn't known */
366#undef NO_IPPORT_RESERVED_CONCEPT
367
368/* Needed for SCO and NeXT */
369#undef BROKEN_SAVED_UIDS
370
371/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
372#undef GLOB_HAS_ALTDIRFUNC
373
374/* Define if your system glob() function has gl_matchc options in glob_t */
375#undef GLOB_HAS_GL_MATCHC
376
377/* Define in your struct dirent expects you to allocate extra space for d_name */
378#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
379
380/* Define if your system has /etc/default/login */
381#undef HAVE_ETC_DEFAULT_LOGIN
382
383/* Define if your getopt(3) defines and uses optreset */
384#undef HAVE_GETOPT_OPTRESET
385
386/* Define on *nto-qnx systems */
387#undef MISSING_NFDBITS
388
389/* Define on *nto-qnx systems */
390#undef MISSING_HOWMANY
391
392/* Define on *nto-qnx systems */
393#undef MISSING_FD_MASK
394
395/* Define if you want smartcard support */
396#undef SMARTCARD
397
398/* Define if you want smartcard support using sectok */
399#undef USE_SECTOK
400
401/* Define if you want smartcard support using OpenSC */
402#undef USE_OPENSC
403
404/* Define if you want to use OpenSSL's internally seeded PRNG only */
405#undef OPENSSL_PRNG_ONLY
406
407/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
408#undef WITH_ABBREV_NO_TTY
409
410/* Define if you want a different $PATH for the superuser */
411#undef SUPERUSER_PATH
412
413/* Path that unprivileged child will chroot() to in privep mode */
414#undef PRIVSEP_PATH
415
416/* Define if your platform needs to skip post auth file descriptor passing */
417#undef DISABLE_FD_PASSING
418
419/* Silly mkstemp() */
420#undef HAVE_STRICT_MKSTEMP
421
422/* Some systems put this outside of libc */
423#undef HAVE_NANOSLEEP
424
425/* Define if sshd somehow reacquires a controlling TTY after setsid() */
426#undef SSHD_ACQUIRES_CTTY
427
428/* Define if cmsg_type is not passed correctly */
429#undef BROKEN_CMSG_TYPE
430
431/*
432 * Define to whatever link() returns for "not supported" if it doesn't
433 * return EOPNOTSUPP.
434 */
435#undef LINK_OPNOTSUPP_ERRNO
436
437/* Strings used in /etc/passwd to denote locked account */
438#undef LOCKED_PASSWD_STRING
439#undef LOCKED_PASSWD_PREFIX
440#undef LOCKED_PASSWD_SUBSTR
441
442/* Define if getrrsetbyname() exists */
443#undef HAVE_GETRRSETBYNAME
444
445/* Define if HEADER.ad exists in arpa/nameser.h */
446#undef HAVE_HEADER_AD
447
448/* Define if your resolver libs need this for getrrsetbyname */
449#undef BIND_8_COMPAT
450
451/* Define if you have /proc/$pid/fd */
452#undef HAVE_PROC_PID
453
454@BOTTOM@
455
456/* ******************* Shouldn't need to edit below this line ************** */
457
458#endif /* _CONFIG_H */
diff --git a/auth-krb4.c b/auth-krb4.c
new file mode 100644
index 000000000..b28df469f
--- /dev/null
+++ b/auth-krb4.c
@@ -0,0 +1,368 @@
1/*
2 * Copyright (c) 1999 Dug Song. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25#include "includes.h"
26RCSID("$OpenBSD: auth-krb4.c,v 1.29 2003/02/21 10:34:48 mpech Exp $");
27
28#include "ssh.h"
29#include "ssh1.h"
30#include "packet.h"
31#include "xmalloc.h"
32#include "log.h"
33#include "servconf.h"
34#include "uidswap.h"
35#include "auth.h"
36
37#ifdef AFS
38#include "radix.h"
39#endif
40
41#ifdef KRB4
42extern ServerOptions options;
43
44static int
45krb4_init(void *context)
46{
47 static int cleanup_registered = 0;
48 Authctxt *authctxt = (Authctxt *)context;
49 const char *tkt_root = TKT_ROOT;
50 struct stat st;
51 int fd;
52
53 if (!authctxt->krb4_ticket_file) {
54 /* Set unique ticket string manually since we're still root. */
55 authctxt->krb4_ticket_file = xmalloc(MAXPATHLEN);
56#ifdef AFS
57 if (lstat("/ticket", &st) != -1)
58 tkt_root = "/ticket/";
59#endif /* AFS */
60 snprintf(authctxt->krb4_ticket_file, MAXPATHLEN, "%s%u_%ld",
61 tkt_root, authctxt->pw->pw_uid, (long)getpid());
62 krb_set_tkt_string(authctxt->krb4_ticket_file);
63 }
64 /* Register ticket cleanup in case of fatal error. */
65 if (!cleanup_registered) {
66 fatal_add_cleanup(krb4_cleanup_proc, authctxt);
67 cleanup_registered = 1;
68 }
69 /* Try to create our ticket file. */
70 if ((fd = mkstemp(authctxt->krb4_ticket_file)) != -1) {
71 close(fd);
72 return (1);
73 }
74 /* Ticket file exists - make sure user owns it (just passed ticket). */
75 if (lstat(authctxt->krb4_ticket_file, &st) != -1) {
76 if (st.st_mode == (S_IFREG | S_IRUSR | S_IWUSR) &&
77 st.st_uid == authctxt->pw->pw_uid)
78 return (1);
79 }
80 /* Failure - cancel cleanup function, leaving ticket for inspection. */
81 log("WARNING: bad ticket file %s", authctxt->krb4_ticket_file);
82
83 fatal_remove_cleanup(krb4_cleanup_proc, authctxt);
84 cleanup_registered = 0;
85
86 xfree(authctxt->krb4_ticket_file);
87 authctxt->krb4_ticket_file = NULL;
88
89 return (0);
90}
91
92/*
93 * try krb4 authentication,
94 * return 1 on success, 0 on failure, -1 if krb4 is not available
95 */
96int
97auth_krb4_password(Authctxt *authctxt, const char *password)
98{
99 AUTH_DAT adata;
100 KTEXT_ST tkt;
101 struct hostent *hp;
102 struct passwd *pw;
103 char localhost[MAXHOSTNAMELEN], phost[INST_SZ], realm[REALM_SZ];
104 u_int32_t faddr;
105 int r;
106
107 if ((pw = authctxt->pw) == NULL)
108 return (0);
109
110 /*
111 * Try Kerberos password authentication only for non-root
112 * users and only if Kerberos is installed.
113 */
114 if (pw->pw_uid != 0 && krb_get_lrealm(realm, 1) == KSUCCESS) {
115 /* Set up our ticket file. */
116 if (!krb4_init(authctxt)) {
117 log("Couldn't initialize Kerberos ticket file for %s!",
118 pw->pw_name);
119 goto failure;
120 }
121 /* Try to get TGT using our password. */
122 r = krb_get_pw_in_tkt((char *) pw->pw_name, "", realm,
123 "krbtgt", realm, DEFAULT_TKT_LIFE, (char *)password);
124 if (r != INTK_OK) {
125 debug("Kerberos v4 password authentication for %s "
126 "failed: %s", pw->pw_name, krb_err_txt[r]);
127 goto failure;
128 }
129 /* Successful authentication. */
130 chown(tkt_string(), pw->pw_uid, pw->pw_gid);
131
132 /*
133 * Now that we have a TGT, try to get a local
134 * "rcmd" ticket to ensure that we are not talking
135 * to a bogus Kerberos server.
136 */
137 gethostname(localhost, sizeof(localhost));
138 strlcpy(phost, (char *)krb_get_phost(localhost),
139 sizeof(phost));
140 r = krb_mk_req(&tkt, KRB4_SERVICE_NAME, phost, realm, 33);
141
142 if (r == KSUCCESS) {
143 if ((hp = gethostbyname(localhost)) == NULL) {
144 log("Couldn't get local host address!");
145 goto failure;
146 }
147 memmove((void *)&faddr, (void *)hp->h_addr,
148 sizeof(faddr));
149
150 /* Verify our "rcmd" ticket. */
151 r = krb_rd_req(&tkt, KRB4_SERVICE_NAME, phost,
152 faddr, &adata, "");
153 if (r == RD_AP_UNDEC) {
154 /*
155 * Probably didn't have a srvtab on
156 * localhost. Disallow login.
157 */
158 log("Kerberos v4 TGT for %s unverifiable, "
159 "no srvtab installed? krb_rd_req: %s",
160 pw->pw_name, krb_err_txt[r]);
161 goto failure;
162 } else if (r != KSUCCESS) {
163 log("Kerberos v4 %s ticket unverifiable: %s",
164 KRB4_SERVICE_NAME, krb_err_txt[r]);
165 goto failure;
166 }
167 } else if (r == KDC_PR_UNKNOWN) {
168 /*
169 * Disallow login if no rcmd service exists, and
170 * log the error.
171 */
172 log("Kerberos v4 TGT for %s unverifiable: %s; %s.%s "
173 "not registered, or srvtab is wrong?", pw->pw_name,
174 krb_err_txt[r], KRB4_SERVICE_NAME, phost);
175 goto failure;
176 } else {
177 /*
178 * TGT is bad, forget it. Possibly spoofed!
179 */
180 debug("WARNING: Kerberos v4 TGT possibly spoofed "
181 "for %s: %s", pw->pw_name, krb_err_txt[r]);
182 goto failure;
183 }
184 /* Authentication succeeded. */
185 return (1);
186 } else
187 /* Logging in as root or no local Kerberos realm. */
188 debug("Unable to authenticate to Kerberos.");
189
190 failure:
191 krb4_cleanup_proc(authctxt);
192
193 if (!options.kerberos_or_local_passwd)
194 return (0);
195
196 /* Fall back to ordinary passwd authentication. */
197 return (-1);
198}
199
200void
201krb4_cleanup_proc(void *context)
202{
203 Authctxt *authctxt = (Authctxt *)context;
204 debug("krb4_cleanup_proc called");
205 if (authctxt->krb4_ticket_file) {
206 (void) dest_tkt();
207 xfree(authctxt->krb4_ticket_file);
208 authctxt->krb4_ticket_file = NULL;
209 }
210}
211
212int
213auth_krb4(Authctxt *authctxt, KTEXT auth, char **client, KTEXT reply)
214{
215 AUTH_DAT adat = {0};
216 Key_schedule schedule;
217 struct sockaddr_in local, foreign;
218 char instance[INST_SZ];
219 socklen_t slen;
220 u_int cksum;
221 int r, s;
222
223 s = packet_get_connection_in();
224
225 slen = sizeof(local);
226 memset(&local, 0, sizeof(local));
227 if (getsockname(s, (struct sockaddr *) & local, &slen) < 0)
228 debug("getsockname failed: %.100s", strerror(errno));
229 slen = sizeof(foreign);
230 memset(&foreign, 0, sizeof(foreign));
231 if (getpeername(s, (struct sockaddr *) & foreign, &slen) < 0) {
232 debug("getpeername failed: %.100s", strerror(errno));
233 fatal_cleanup();
234 }
235 instance[0] = '*';
236 instance[1] = 0;
237
238 /* Get the encrypted request, challenge, and session key. */
239 if ((r = krb_rd_req(auth, KRB4_SERVICE_NAME, instance,
240 0, &adat, ""))) {
241 debug("Kerberos v4 krb_rd_req: %.100s", krb_err_txt[r]);
242 return (0);
243 }
244 des_key_sched((des_cblock *) adat.session, schedule);
245
246 *client = xmalloc(MAX_K_NAME_SZ);
247 (void) snprintf(*client, MAX_K_NAME_SZ, "%s%s%s@%s", adat.pname,
248 *adat.pinst ? "." : "", adat.pinst, adat.prealm);
249
250 /* Check ~/.klogin authorization now. */
251 if (kuserok(&adat, authctxt->user) != KSUCCESS) {
252 log("Kerberos v4 .klogin authorization failed for %s to "
253 "account %s", *client, authctxt->user);
254 xfree(*client);
255 *client = NULL;
256 return (0);
257 }
258 /* Increment the checksum, and return it encrypted with the
259 session key. */
260 cksum = adat.checksum + 1;
261 cksum = htonl(cksum);
262
263 /* If we can't successfully encrypt the checksum, we send back an
264 empty message, admitting our failure. */
265 if ((r = krb_mk_priv((u_char *) & cksum, reply->dat, sizeof(cksum) + 1,
266 schedule, &adat.session, &local, &foreign)) < 0) {
267 debug("Kerberos v4 mk_priv: (%d) %s", r, krb_err_txt[r]);
268 reply->dat[0] = 0;
269 reply->length = 0;
270 } else
271 reply->length = r;
272
273 /* Clear session key. */
274 memset(&adat.session, 0, sizeof(adat.session));
275 return (1);
276}
277#endif /* KRB4 */
278
279#ifdef AFS
280int
281auth_krb4_tgt(Authctxt *authctxt, const char *string)
282{
283 CREDENTIALS creds;
284 struct passwd *pw;
285
286 if ((pw = authctxt->pw) == NULL)
287 goto failure;
288
289 temporarily_use_uid(pw);
290
291 if (!radix_to_creds(string, &creds)) {
292 log("Protocol error decoding Kerberos v4 TGT");
293 goto failure;
294 }
295 if (strncmp(creds.service, "", 1) == 0) /* backward compatibility */
296 strlcpy(creds.service, "krbtgt", sizeof creds.service);
297
298 if (strcmp(creds.service, "krbtgt")) {
299 log("Kerberos v4 TGT (%s%s%s@%s) rejected for %s",
300 creds.pname, creds.pinst[0] ? "." : "", creds.pinst,
301 creds.realm, pw->pw_name);
302 goto failure;
303 }
304 if (!krb4_init(authctxt))
305 goto failure;
306
307 if (in_tkt(creds.pname, creds.pinst) != KSUCCESS)
308 goto failure;
309
310 if (save_credentials(creds.service, creds.instance, creds.realm,
311 creds.session, creds.lifetime, creds.kvno, &creds.ticket_st,
312 creds.issue_date) != KSUCCESS) {
313 debug("Kerberos v4 TGT refused: couldn't save credentials");
314 goto failure;
315 }
316 /* Successful authentication, passed all checks. */
317 chown(tkt_string(), pw->pw_uid, pw->pw_gid);
318
319 debug("Kerberos v4 TGT accepted (%s%s%s@%s)",
320 creds.pname, creds.pinst[0] ? "." : "", creds.pinst, creds.realm);
321 memset(&creds, 0, sizeof(creds));
322
323 restore_uid();
324
325 return (1);
326
327 failure:
328 krb4_cleanup_proc(authctxt);
329 memset(&creds, 0, sizeof(creds));
330 restore_uid();
331
332 return (0);
333}
334
335int
336auth_afs_token(Authctxt *authctxt, const char *token_string)
337{
338 CREDENTIALS creds;
339 struct passwd *pw;
340 uid_t uid;
341
342 if ((pw = authctxt->pw) == NULL)
343 return (0);
344
345 if (!radix_to_creds(token_string, &creds)) {
346 log("Protocol error decoding AFS token");
347 return (0);
348 }
349 if (strncmp(creds.service, "", 1) == 0) /* backward compatibility */
350 strlcpy(creds.service, "afs", sizeof creds.service);
351
352 if (strncmp(creds.pname, "AFS ID ", 7) == 0)
353 uid = atoi(creds.pname + 7);
354 else
355 uid = pw->pw_uid;
356
357 if (kafs_settoken(creds.realm, uid, &creds)) {
358 log("AFS token (%s@%s) rejected for %s",
359 creds.pname, creds.realm, pw->pw_name);
360 memset(&creds, 0, sizeof(creds));
361 return (0);
362 }
363 debug("AFS token accepted (%s@%s)", creds.pname, creds.realm);
364 memset(&creds, 0, sizeof(creds));
365
366 return (1);
367}
368#endif /* AFS */
diff --git a/auth2-pam.c b/auth2-pam.c
new file mode 100644
index 000000000..ac28fb245
--- /dev/null
+++ b/auth2-pam.c
@@ -0,0 +1,165 @@
1#include "includes.h"
2RCSID("$Id: auth2-pam.c,v 1.15 2003/01/08 01:37:03 djm Exp $");
3
4#ifdef USE_PAM
5#include <security/pam_appl.h>
6
7#include "ssh.h"
8#include "ssh2.h"
9#include "auth.h"
10#include "auth-pam.h"
11#include "packet.h"
12#include "xmalloc.h"
13#include "dispatch.h"
14#include "log.h"
15
16static int do_pam_conversation_kbd_int(int num_msg,
17 const struct pam_message **msg, struct pam_response **resp,
18 void *appdata_ptr);
19void input_userauth_info_response_pam(int type, u_int32_t seqnr, void *ctxt);
20
21struct {
22 int finished, num_received, num_expected;
23 int *prompts;
24 struct pam_response *responses;
25} context_pam2 = {0, 0, 0, NULL};
26
27static struct pam_conv conv2 = {
28 do_pam_conversation_kbd_int,
29 NULL,
30};
31
32int
33auth2_pam(Authctxt *authctxt)
34{
35 int retval = -1;
36
37 if (authctxt->user == NULL)
38 fatal("auth2_pam: internal error: no user");
39
40 conv2.appdata_ptr = authctxt;
41 do_pam_set_conv(&conv2);
42
43 dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE,
44 &input_userauth_info_response_pam);
45 retval = (do_pam_authenticate(0) == PAM_SUCCESS);
46 dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, NULL);
47
48 return retval;
49}
50
51static int
52do_pam_conversation_kbd_int(int num_msg, const struct pam_message **msg,
53 struct pam_response **resp, void *appdata_ptr)
54{
55 int i, j, done;
56 char *text;
57
58 context_pam2.finished = 0;
59 context_pam2.num_received = 0;
60 context_pam2.num_expected = 0;
61 context_pam2.prompts = xmalloc(sizeof(int) * num_msg);
62 context_pam2.responses = xmalloc(sizeof(struct pam_response) * num_msg);
63 memset(context_pam2.responses, 0, sizeof(struct pam_response) * num_msg);
64
65 text = NULL;
66 for (i = 0, context_pam2.num_expected = 0; i < num_msg; i++) {
67 int style = PAM_MSG_MEMBER(msg, i, msg_style);
68 switch (style) {
69 case PAM_PROMPT_ECHO_ON:
70 case PAM_PROMPT_ECHO_OFF:
71 context_pam2.num_expected++;
72 break;
73 case PAM_TEXT_INFO:
74 case PAM_ERROR_MSG:
75 default:
76 /* Capture all these messages to be sent at once */
77 message_cat(&text, PAM_MSG_MEMBER(msg, i, msg));
78 break;
79 }
80 }
81
82 if (context_pam2.num_expected == 0)
83 return PAM_SUCCESS;
84
85 packet_start(SSH2_MSG_USERAUTH_INFO_REQUEST);
86 packet_put_cstring(""); /* Name */
87 packet_put_cstring(""); /* Instructions */
88 packet_put_cstring(""); /* Language */
89 packet_put_int(context_pam2.num_expected);
90
91 for (i = 0, j = 0; i < num_msg; i++) {
92 int style = PAM_MSG_MEMBER(msg, i, msg_style);
93
94 /* Skip messages which don't need a reply */
95 if (style != PAM_PROMPT_ECHO_ON && style != PAM_PROMPT_ECHO_OFF)
96 continue;
97
98 context_pam2.prompts[j++] = i;
99 if (text) {
100 message_cat(&text, PAM_MSG_MEMBER(msg, i, msg));
101 packet_put_cstring(text);
102 text = NULL;
103 } else
104 packet_put_cstring(PAM_MSG_MEMBER(msg, i, msg));
105 packet_put_char(style == PAM_PROMPT_ECHO_ON);
106 }
107 packet_send();
108 packet_write_wait();
109
110 /*
111 * Grabbing control of execution and spinning until we get what
112 * we want is probably rude, but it seems to work properly, and
113 * the client *should* be in lock-step with us, so the loop should
114 * only be traversed once.
115 */
116 while(context_pam2.finished == 0) {
117 done = 1;
118 dispatch_run(DISPATCH_BLOCK, &done, appdata_ptr);
119 if (context_pam2.finished == 0)
120 debug("extra packet during conversation");
121 }
122
123 if (context_pam2.num_received == context_pam2.num_expected) {
124 *resp = context_pam2.responses;
125 return PAM_SUCCESS;
126 } else
127 return PAM_CONV_ERR;
128}
129
130void
131input_userauth_info_response_pam(int type, u_int32_t seqnr, void *ctxt)
132{
133 Authctxt *authctxt = ctxt;
134 unsigned int nresp = 0, rlen = 0, i = 0;
135 char *resp;
136
137 if (authctxt == NULL)
138 fatal("input_userauth_info_response_pam: no authentication context");
139
140 nresp = packet_get_int(); /* Number of responses. */
141 debug("got %d responses", nresp);
142
143
144 if (nresp != context_pam2.num_expected)
145 fatal("%s: Received incorrect number of responses "
146 "(expected %d, received %u)", __func__,
147 context_pam2.num_expected, nresp);
148
149 if (nresp > 100)
150 fatal("%s: too many replies", __func__);
151
152 for (i = 0; i < nresp; i++) {
153 int j = context_pam2.prompts[i];
154
155 resp = packet_get_string(&rlen);
156 context_pam2.responses[j].resp_retcode = PAM_SUCCESS;
157 context_pam2.responses[j].resp = resp;
158 context_pam2.num_received++;
159 }
160
161 context_pam2.finished = 1;
162
163 packet_check_eom();
164}
165#endif
diff --git a/auth2-pam.h b/auth2-pam.h
new file mode 100644
index 000000000..c54f811cf
--- /dev/null
+++ b/auth2-pam.h
@@ -0,0 +1,8 @@
1/* $Id: auth2-pam.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#include "includes.h"
4#ifdef USE_PAM
5
6int auth2_pam(Authctxt *authctxt);
7
8#endif /* USE_PAM */
diff --git a/autom4te-2.53.cache/output.0 b/autom4te-2.53.cache/output.0
new file mode 100644
index 000000000..74f5afd76
--- /dev/null
+++ b/autom4te-2.53.cache/output.0
@@ -0,0 +1,18359 @@
1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.53.
4@%:@
5@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6@%:@ Free Software Foundation, Inc.
7@%:@ This configure script is free software; the Free Software Foundation
8@%:@ gives unlimited permission to copy, distribute and modify it.
9
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147done
148;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete. It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="ssh.c"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276# include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281# include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292# include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664done
665
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763\`configure' configures this package to adapt to many kinds of systems.
764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783_ACEOF
784
785 cat <<_ACEOF
786Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812_ACEOF
813
814 cat <<\_ACEOF
815
816System types:
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
819_ACEOF
820fi
821
822if test -n "$ac_init_help"; then
823
824 cat <<\_ACEOF
825
826Optional Features:
827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
829 --disable-largefile omit support for large files
830 --disable-strip Disable calling strip(1) on install
831 --disable-lastlog disable use of lastlog even if detected no
832 --disable-utmp disable use of utmp even if detected no
833 --disable-utmpx disable use of utmpx even if detected no
834 --disable-wtmp disable use of wtmp even if detected no
835 --disable-wtmpx disable use of wtmpx even if detected no
836 --disable-libutil disable use of libutil (login() etc.) no
837 --disable-pututline disable use of pututline() etc. (uwtmp) no
838 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
839
840Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-osfsia Enable Digital Unix SIA
844 --with-cflags Specify additional flags to pass to compiler
845 --with-cppflags Specify additional flags to pass to preprocessor
846 --with-ldflags Specify additional flags to pass to linker
847 --with-libs Specify additional libraries to link with
848 --without-rpath Disable auto-added -R linker paths
849 --with-zlib=PATH Use zlib in PATH
850 --with-skey[=PATH] Enable S/Key support
851 (optionally in PATH)
852 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
853 (optionally in PATH)
854 --with-pam Enable PAM support
855 --with-ssl-dir=PATH Specify path to OpenSSL installation
856 --with-rand-helper Use subprocess to gather strong randomness
857 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
858 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
859 --with-entropy-timeout Specify entropy gathering command timeout (msec)
860 --with-privsep-user=user Specify non-privileged user for privilege separation
861 --with-sectok Enable smartcard support using libsectok
862 --with-opensc=PFX Enable smartcard support using OpenSC
863 --with-kerberos5=PATH Enable Kerberos 5 support
864 --with-kerberos4=PATH Enable Kerberos 4 support
865 --with-afs=PATH Enable AFS support
866 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
867 --with-xauth=PATH Specify path to xauth program
868 --with-mantype=man|cat|doc Set man page type
869 --with-md5-passwords Enable use of MD5 passwords
870 --without-shadow Disable shadow password support
871 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
872 --with-default-path= Specify default \$PATH environment for server
873 --with-superuser-path= Specify different path for super-user
874 --with-ipv4-default Use IPv4 by connections unless '-6' specified
875 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
876 --with-bsd-auth Enable BSD auth support
877 --with-pid-dir=PATH Specify location of ssh.pid file
878 --with-lastlog=FILE|DIR specify lastlog location common locations
879
880Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CPP C preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892_ACEOF
893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
901
902if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906else
907 ac_dir_suffix= ac_top_builddir=
908fi
909
910case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924esac
925# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926# absolute.
927ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
928ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
929ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
930ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931
932 cd $ac_dir
933 # Check for guested configure; otherwise get Cygnus style configure.
934 if test -f $ac_srcdir/configure.gnu; then
935 echo
936 $SHELL $ac_srcdir/configure.gnu --help=recursive
937 elif test -f $ac_srcdir/configure; then
938 echo
939 $SHELL $ac_srcdir/configure --help=recursive
940 elif test -f $ac_srcdir/configure.ac ||
941 test -f $ac_srcdir/configure.in; then
942 echo
943 $ac_configure --help
944 else
945 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
946 fi
947 cd $ac_popdir
948 done
949fi
950
951test -n "$ac_init_help" && exit 0
952if $ac_init_version; then
953 cat <<\_ACEOF
954
955Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956Free Software Foundation, Inc.
957This configure script is free software; the Free Software Foundation
958gives unlimited permission to copy, distribute and modify it.
959_ACEOF
960 exit 0
961fi
962exec 5>config.log
963cat >&5 <<_ACEOF
964This file contains any messages produced by compilers while
965running configure, to aid debugging if configure makes a mistake.
966
967It was created by $as_me, which was
968generated by GNU Autoconf 2.53. Invocation command line was
969
970 $ $0 $@
971
972_ACEOF
973{
974cat <<_ASUNAME
975@%:@@%:@ --------- @%:@@%:@
976@%:@@%:@ Platform. @%:@@%:@
977@%:@@%:@ --------- @%:@@%:@
978
979hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980uname -m = `(uname -m) 2>/dev/null || echo unknown`
981uname -r = `(uname -r) 2>/dev/null || echo unknown`
982uname -s = `(uname -s) 2>/dev/null || echo unknown`
983uname -v = `(uname -v) 2>/dev/null || echo unknown`
984
985/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987
988/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
989/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
990/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
992/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
993/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
994/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
995
996_ASUNAME
997
998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999for as_dir in $PATH
1000do
1001 IFS=$as_save_IFS
1002 test -z "$as_dir" && as_dir=.
1003 echo "PATH: $as_dir"
1004done
1005
1006} >&5
1007
1008cat >&5 <<_ACEOF
1009
1010
1011@%:@@%:@ ----------- @%:@@%:@
1012@%:@@%:@ Core tests. @%:@@%:@
1013@%:@@%:@ ----------- @%:@@%:@
1014
1015_ACEOF
1016
1017
1018# Keep a trace of the command line.
1019# Strip out --no-create and --no-recursion so they do not pile up.
1020# Also quote any args containing shell meta-characters.
1021ac_configure_args=
1022ac_sep=
1023for ac_arg
1024do
1025 case $ac_arg in
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n ) continue ;;
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 continue ;;
1031 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1032 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1033 esac
1034 case " $ac_configure_args " in
1035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1036 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037 ac_sep=" " ;;
1038 esac
1039 # Get rid of the leading space.
1040done
1041
1042# When interrupted or exit'd, cleanup temporary files, and complete
1043# config.log. We remove comments because anyway the quotes in there
1044# would cause problems or look ugly.
1045# WARNING: Be sure not to use single quotes in there, as some shells,
1046# such as our DU 5.0 friend, will then `close' the trap.
1047trap 'exit_status=$?
1048 # Save into config.log some information that might help in debugging.
1049 {
1050 echo
1051 cat <<\_ASBOX
1052@%:@@%:@ ---------------- @%:@@%:@
1053@%:@@%:@ Cache variables. @%:@@%:@
1054@%:@@%:@ ---------------- @%:@@%:@
1055_ASBOX
1056 echo
1057 # The following way of writing the cache mishandles newlines in values,
1058{
1059 (set) 2>&1 |
1060 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1061 *ac_space=\ *)
1062 sed -n \
1063 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1065 ;;
1066 *)
1067 sed -n \
1068 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069 ;;
1070 esac;
1071}
1072 echo
1073 if test -s confdefs.h; then
1074 cat <<\_ASBOX
1075@%:@@%:@ ----------- @%:@@%:@
1076@%:@@%:@ confdefs.h. @%:@@%:@
1077@%:@@%:@ ----------- @%:@@%:@
1078_ASBOX
1079 echo
1080 sed "/^$/d" confdefs.h
1081 echo
1082 fi
1083 test "$ac_signal" != 0 &&
1084 echo "$as_me: caught signal $ac_signal"
1085 echo "$as_me: exit $exit_status"
1086 } >&5
1087 rm -f core core.* *.core &&
1088 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1089 exit $exit_status
1090 ' 0
1091for ac_signal in 1 2 13 15; do
1092 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1093done
1094ac_signal=0
1095
1096# confdefs.h avoids OS command line length limits that DEFS can exceed.
1097rm -rf conftest* confdefs.h
1098# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1099echo >confdefs.h
1100
1101# Predefined preprocessor variables.
1102
1103cat >>confdefs.h <<_ACEOF
1104@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1105_ACEOF
1106
1107
1108cat >>confdefs.h <<_ACEOF
1109@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1110_ACEOF
1111
1112
1113cat >>confdefs.h <<_ACEOF
1114@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1115_ACEOF
1116
1117
1118cat >>confdefs.h <<_ACEOF
1119@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1120_ACEOF
1121
1122
1123cat >>confdefs.h <<_ACEOF
1124@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1125_ACEOF
1126
1127
1128# Let the site file select an alternate cache file if it wants to.
1129# Prefer explicitly selected file to automatically selected ones.
1130if test -z "$CONFIG_SITE"; then
1131 if test "x$prefix" != xNONE; then
1132 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1133 else
1134 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1135 fi
1136fi
1137for ac_site_file in $CONFIG_SITE; do
1138 if test -r "$ac_site_file"; then
1139 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1140echo "$as_me: loading site script $ac_site_file" >&6;}
1141 sed 's/^/| /' "$ac_site_file" >&5
1142 . "$ac_site_file"
1143 fi
1144done
1145
1146if test -r "$cache_file"; then
1147 # Some versions of bash will fail to source /dev/null (special
1148 # files actually), so we avoid doing that.
1149 if test -f "$cache_file"; then
1150 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1151echo "$as_me: loading cache $cache_file" >&6;}
1152 case $cache_file in
1153 [\\/]* | ?:[\\/]* ) . $cache_file;;
1154 *) . ./$cache_file;;
1155 esac
1156 fi
1157else
1158 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1159echo "$as_me: creating cache $cache_file" >&6;}
1160 >$cache_file
1161fi
1162
1163# Check that the precious variables saved in the cache have kept the same
1164# value.
1165ac_cache_corrupted=false
1166for ac_var in `(set) 2>&1 |
1167 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1169 eval ac_new_set=\$ac_env_${ac_var}_set
1170 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1171 eval ac_new_val="\$ac_env_${ac_var}_value"
1172 case $ac_old_set,$ac_new_set in
1173 set,)
1174 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1175echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1176 ac_cache_corrupted=: ;;
1177 ,set)
1178 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1179echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1180 ac_cache_corrupted=: ;;
1181 ,);;
1182 *)
1183 if test "x$ac_old_val" != "x$ac_new_val"; then
1184 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1185echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1186 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1187echo "$as_me: former value: $ac_old_val" >&2;}
1188 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1189echo "$as_me: current value: $ac_new_val" >&2;}
1190 ac_cache_corrupted=:
1191 fi;;
1192 esac
1193 # Pass precious variables to config.status.
1194 if test "$ac_new_set" = set; then
1195 case $ac_new_val in
1196 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1197 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1198 *) ac_arg=$ac_var=$ac_new_val ;;
1199 esac
1200 case " $ac_configure_args " in
1201 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1202 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1203 esac
1204 fi
1205done
1206if $ac_cache_corrupted; then
1207 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1208echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1209 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1210echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1211 { (exit 1); exit 1; }; }
1212fi
1213
1214ac_ext=c
1215ac_cpp='$CPP $CPPFLAGS'
1216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1218ac_compiler_gnu=$ac_cv_c_compiler_gnu
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239ac_config_headers="$ac_config_headers config.h"
1240
1241ac_ext=c
1242ac_cpp='$CPP $CPPFLAGS'
1243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1245ac_compiler_gnu=$ac_cv_c_compiler_gnu
1246if test -n "$ac_tool_prefix"; then
1247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1248set dummy ${ac_tool_prefix}gcc; ac_word=$2
1249echo "$as_me:$LINENO: checking for $ac_word" >&5
1250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251if test "${ac_cv_prog_CC+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1253else
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1256else
1257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258for as_dir in $PATH
1259do
1260 IFS=$as_save_IFS
1261 test -z "$as_dir" && as_dir=.
1262 for ac_exec_ext in '' $ac_executable_extensions; do
1263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1264 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1266 break 2
1267 fi
1268done
1269done
1270
1271fi
1272fi
1273CC=$ac_cv_prog_CC
1274if test -n "$CC"; then
1275 echo "$as_me:$LINENO: result: $CC" >&5
1276echo "${ECHO_T}$CC" >&6
1277else
1278 echo "$as_me:$LINENO: result: no" >&5
1279echo "${ECHO_T}no" >&6
1280fi
1281
1282fi
1283if test -z "$ac_cv_prog_CC"; then
1284 ac_ct_CC=$CC
1285 # Extract the first word of "gcc", so it can be a program name with args.
1286set dummy gcc; ac_word=$2
1287echo "$as_me:$LINENO: checking for $ac_word" >&5
1288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1290 echo $ECHO_N "(cached) $ECHO_C" >&6
1291else
1292 if test -n "$ac_ct_CC"; then
1293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1294else
1295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296for as_dir in $PATH
1297do
1298 IFS=$as_save_IFS
1299 test -z "$as_dir" && as_dir=.
1300 for ac_exec_ext in '' $ac_executable_extensions; do
1301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1302 ac_cv_prog_ac_ct_CC="gcc"
1303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1304 break 2
1305 fi
1306done
1307done
1308
1309fi
1310fi
1311ac_ct_CC=$ac_cv_prog_ac_ct_CC
1312if test -n "$ac_ct_CC"; then
1313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1314echo "${ECHO_T}$ac_ct_CC" >&6
1315else
1316 echo "$as_me:$LINENO: result: no" >&5
1317echo "${ECHO_T}no" >&6
1318fi
1319
1320 CC=$ac_ct_CC
1321else
1322 CC="$ac_cv_prog_CC"
1323fi
1324
1325if test -z "$CC"; then
1326 if test -n "$ac_tool_prefix"; then
1327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1328set dummy ${ac_tool_prefix}cc; ac_word=$2
1329echo "$as_me:$LINENO: checking for $ac_word" >&5
1330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1331if test "${ac_cv_prog_CC+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1333else
1334 if test -n "$CC"; then
1335 ac_cv_prog_CC="$CC" # Let the user override the test.
1336else
1337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1338for as_dir in $PATH
1339do
1340 IFS=$as_save_IFS
1341 test -z "$as_dir" && as_dir=.
1342 for ac_exec_ext in '' $ac_executable_extensions; do
1343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1344 ac_cv_prog_CC="${ac_tool_prefix}cc"
1345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1346 break 2
1347 fi
1348done
1349done
1350
1351fi
1352fi
1353CC=$ac_cv_prog_CC
1354if test -n "$CC"; then
1355 echo "$as_me:$LINENO: result: $CC" >&5
1356echo "${ECHO_T}$CC" >&6
1357else
1358 echo "$as_me:$LINENO: result: no" >&5
1359echo "${ECHO_T}no" >&6
1360fi
1361
1362fi
1363if test -z "$ac_cv_prog_CC"; then
1364 ac_ct_CC=$CC
1365 # Extract the first word of "cc", so it can be a program name with args.
1366set dummy cc; ac_word=$2
1367echo "$as_me:$LINENO: checking for $ac_word" >&5
1368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1371else
1372 if test -n "$ac_ct_CC"; then
1373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1374else
1375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376for as_dir in $PATH
1377do
1378 IFS=$as_save_IFS
1379 test -z "$as_dir" && as_dir=.
1380 for ac_exec_ext in '' $ac_executable_extensions; do
1381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382 ac_cv_prog_ac_ct_CC="cc"
1383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1384 break 2
1385 fi
1386done
1387done
1388
1389fi
1390fi
1391ac_ct_CC=$ac_cv_prog_ac_ct_CC
1392if test -n "$ac_ct_CC"; then
1393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1394echo "${ECHO_T}$ac_ct_CC" >&6
1395else
1396 echo "$as_me:$LINENO: result: no" >&5
1397echo "${ECHO_T}no" >&6
1398fi
1399
1400 CC=$ac_ct_CC
1401else
1402 CC="$ac_cv_prog_CC"
1403fi
1404
1405fi
1406if test -z "$CC"; then
1407 # Extract the first word of "cc", so it can be a program name with args.
1408set dummy cc; ac_word=$2
1409echo "$as_me:$LINENO: checking for $ac_word" >&5
1410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411if test "${ac_cv_prog_CC+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 if test -n "$CC"; then
1415 ac_cv_prog_CC="$CC" # Let the user override the test.
1416else
1417 ac_prog_rejected=no
1418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419for as_dir in $PATH
1420do
1421 IFS=$as_save_IFS
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1426 ac_prog_rejected=yes
1427 continue
1428 fi
1429 ac_cv_prog_CC="cc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431 break 2
1432 fi
1433done
1434done
1435
1436if test $ac_prog_rejected = yes; then
1437 # We found a bogon in the path, so make sure we never use it.
1438 set dummy $ac_cv_prog_CC
1439 shift
1440 if test $@%:@ != 0; then
1441 # We chose a different compiler from the bogus one.
1442 # However, it has the same basename, so the bogon will be chosen
1443 # first if we set CC to just the basename; use the full file name.
1444 shift
1445 set dummy "$as_dir/$ac_word" ${1+"$@"}
1446 shift
1447 ac_cv_prog_CC="$@"
1448 fi
1449fi
1450fi
1451fi
1452CC=$ac_cv_prog_CC
1453if test -n "$CC"; then
1454 echo "$as_me:$LINENO: result: $CC" >&5
1455echo "${ECHO_T}$CC" >&6
1456else
1457 echo "$as_me:$LINENO: result: no" >&5
1458echo "${ECHO_T}no" >&6
1459fi
1460
1461fi
1462if test -z "$CC"; then
1463 if test -n "$ac_tool_prefix"; then
1464 for ac_prog in cl
1465 do
1466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1467set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1468echo "$as_me:$LINENO: checking for $ac_word" >&5
1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475else
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487done
1488done
1489
1490fi
1491fi
1492CC=$ac_cv_prog_CC
1493if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495echo "${ECHO_T}$CC" >&6
1496else
1497 echo "$as_me:$LINENO: result: no" >&5
1498echo "${ECHO_T}no" >&6
1499fi
1500
1501 test -n "$CC" && break
1502 done
1503fi
1504if test -z "$CC"; then
1505 ac_ct_CC=$CC
1506 for ac_prog in cl
1507do
1508 # Extract the first word of "$ac_prog", so it can be a program name with args.
1509set dummy $ac_prog; ac_word=$2
1510echo "$as_me:$LINENO: checking for $ac_word" >&5
1511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514else
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517else
1518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519for as_dir in $PATH
1520do
1521 IFS=$as_save_IFS
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="$ac_prog"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 break 2
1528 fi
1529done
1530done
1531
1532fi
1533fi
1534ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537echo "${ECHO_T}$ac_ct_CC" >&6
1538else
1539 echo "$as_me:$LINENO: result: no" >&5
1540echo "${ECHO_T}no" >&6
1541fi
1542
1543 test -n "$ac_ct_CC" && break
1544done
1545
1546 CC=$ac_ct_CC
1547fi
1548
1549fi
1550
1551
1552test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1553echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1554 { (exit 1); exit 1; }; }
1555
1556# Provide some information about the compiler.
1557echo "$as_me:$LINENO:" \
1558 "checking for C compiler version" >&5
1559ac_compiler=`set X $ac_compile; echo $2`
1560{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1561 (eval $ac_compiler --version </dev/null >&5) 2>&5
1562 ac_status=$?
1563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1564 (exit $ac_status); }
1565{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1566 (eval $ac_compiler -v </dev/null >&5) 2>&5
1567 ac_status=$?
1568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1569 (exit $ac_status); }
1570{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1571 (eval $ac_compiler -V </dev/null >&5) 2>&5
1572 ac_status=$?
1573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1574 (exit $ac_status); }
1575
1576cat >conftest.$ac_ext <<_ACEOF
1577#line $LINENO "configure"
1578#include "confdefs.h"
1579
1580#ifdef F77_DUMMY_MAIN
1581# ifdef __cplusplus
1582 extern "C"
1583# endif
1584 int F77_DUMMY_MAIN() { return 1; }
1585#endif
1586int
1587main ()
1588{
1589
1590 ;
1591 return 0;
1592}
1593_ACEOF
1594ac_clean_files_save=$ac_clean_files
1595ac_clean_files="$ac_clean_files a.out a.exe"
1596# Try to create an executable without -o first, disregard a.out.
1597# It will help us diagnose broken compilers, and finding out an intuition
1598# of exeext.
1599echo "$as_me:$LINENO: checking for C compiler default output" >&5
1600echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1601ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1602if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1603 (eval $ac_link_default) 2>&5
1604 ac_status=$?
1605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1606 (exit $ac_status); }; then
1607 # Find the output, starting from the most likely. This scheme is
1608# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1609# resort.
1610
1611# Be careful to initialize this variable, since it used to be cached.
1612# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1613ac_cv_exeext=
1614for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1615 ls a.out conftest 2>/dev/null;
1616 ls a.* conftest.* 2>/dev/null`; do
1617 case $ac_file in
1618 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1619 a.out ) # We found the default executable, but exeext='' is most
1620 # certainly right.
1621 break;;
1622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1623 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1624 export ac_cv_exeext
1625 break;;
1626 * ) break;;
1627 esac
1628done
1629else
1630 echo "$as_me: failed program was:" >&5
1631cat conftest.$ac_ext >&5
1632{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1633echo "$as_me: error: C compiler cannot create executables" >&2;}
1634 { (exit 77); exit 77; }; }
1635fi
1636
1637ac_exeext=$ac_cv_exeext
1638echo "$as_me:$LINENO: result: $ac_file" >&5
1639echo "${ECHO_T}$ac_file" >&6
1640
1641# Check the compiler produces executables we can run. If not, either
1642# the compiler is broken, or we cross compile.
1643echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1644echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1645# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1646# If not cross compiling, check that we can run a simple program.
1647if test "$cross_compiling" != yes; then
1648 if { ac_try='./$ac_file'
1649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1650 (eval $ac_try) 2>&5
1651 ac_status=$?
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }; }; then
1654 cross_compiling=no
1655 else
1656 if test "$cross_compiling" = maybe; then
1657 cross_compiling=yes
1658 else
1659 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1660If you meant to cross compile, use \`--host'." >&5
1661echo "$as_me: error: cannot run C compiled programs.
1662If you meant to cross compile, use \`--host'." >&2;}
1663 { (exit 1); exit 1; }; }
1664 fi
1665 fi
1666fi
1667echo "$as_me:$LINENO: result: yes" >&5
1668echo "${ECHO_T}yes" >&6
1669
1670rm -f a.out a.exe conftest$ac_cv_exeext
1671ac_clean_files=$ac_clean_files_save
1672# Check the compiler produces executables we can run. If not, either
1673# the compiler is broken, or we cross compile.
1674echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1675echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1676echo "$as_me:$LINENO: result: $cross_compiling" >&5
1677echo "${ECHO_T}$cross_compiling" >&6
1678
1679echo "$as_me:$LINENO: checking for suffix of executables" >&5
1680echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1682 (eval $ac_link) 2>&5
1683 ac_status=$?
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }; then
1686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1687# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1688# work properly (i.e., refer to `conftest.exe'), while it won't with
1689# `rm'.
1690for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1691 case $ac_file in
1692 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1694 export ac_cv_exeext
1695 break;;
1696 * ) break;;
1697 esac
1698done
1699else
1700 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1701echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1702 { (exit 1); exit 1; }; }
1703fi
1704
1705rm -f conftest$ac_cv_exeext
1706echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1707echo "${ECHO_T}$ac_cv_exeext" >&6
1708
1709rm -f conftest.$ac_ext
1710EXEEXT=$ac_cv_exeext
1711ac_exeext=$EXEEXT
1712echo "$as_me:$LINENO: checking for suffix of object files" >&5
1713echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1714if test "${ac_cv_objext+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717 cat >conftest.$ac_ext <<_ACEOF
1718#line $LINENO "configure"
1719#include "confdefs.h"
1720
1721#ifdef F77_DUMMY_MAIN
1722# ifdef __cplusplus
1723 extern "C"
1724# endif
1725 int F77_DUMMY_MAIN() { return 1; }
1726#endif
1727int
1728main ()
1729{
1730
1731 ;
1732 return 0;
1733}
1734_ACEOF
1735rm -f conftest.o conftest.obj
1736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1737 (eval $ac_compile) 2>&5
1738 ac_status=$?
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1742 case $ac_file in
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1745 break;;
1746 esac
1747done
1748else
1749 echo "$as_me: failed program was:" >&5
1750cat conftest.$ac_ext >&5
1751{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1752echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1753 { (exit 1); exit 1; }; }
1754fi
1755
1756rm -f conftest.$ac_cv_objext conftest.$ac_ext
1757fi
1758echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1759echo "${ECHO_T}$ac_cv_objext" >&6
1760OBJEXT=$ac_cv_objext
1761ac_objext=$OBJEXT
1762echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1763echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1764if test "${ac_cv_c_compiler_gnu+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767 cat >conftest.$ac_ext <<_ACEOF
1768#line $LINENO "configure"
1769#include "confdefs.h"
1770
1771#ifdef F77_DUMMY_MAIN
1772# ifdef __cplusplus
1773 extern "C"
1774# endif
1775 int F77_DUMMY_MAIN() { return 1; }
1776#endif
1777int
1778main ()
1779{
1780#ifndef __GNUC__
1781 choke me
1782#endif
1783
1784 ;
1785 return 0;
1786}
1787_ACEOF
1788rm -f conftest.$ac_objext
1789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1790 (eval $ac_compile) 2>&5
1791 ac_status=$?
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); } &&
1794 { ac_try='test -s conftest.$ac_objext'
1795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1796 (eval $ac_try) 2>&5
1797 ac_status=$?
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); }; }; then
1800 ac_compiler_gnu=yes
1801else
1802 echo "$as_me: failed program was:" >&5
1803cat conftest.$ac_ext >&5
1804ac_compiler_gnu=no
1805fi
1806rm -f conftest.$ac_objext conftest.$ac_ext
1807ac_cv_c_compiler_gnu=$ac_compiler_gnu
1808
1809fi
1810echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1811echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1812GCC=`test $ac_compiler_gnu = yes && echo yes`
1813ac_test_CFLAGS=${CFLAGS+set}
1814ac_save_CFLAGS=$CFLAGS
1815CFLAGS="-g"
1816echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1817echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1818if test "${ac_cv_prog_cc_g+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820else
1821 cat >conftest.$ac_ext <<_ACEOF
1822#line $LINENO "configure"
1823#include "confdefs.h"
1824
1825#ifdef F77_DUMMY_MAIN
1826# ifdef __cplusplus
1827 extern "C"
1828# endif
1829 int F77_DUMMY_MAIN() { return 1; }
1830#endif
1831int
1832main ()
1833{
1834
1835 ;
1836 return 0;
1837}
1838_ACEOF
1839rm -f conftest.$ac_objext
1840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1841 (eval $ac_compile) 2>&5
1842 ac_status=$?
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); } &&
1845 { ac_try='test -s conftest.$ac_objext'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 (eval $ac_try) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1851 ac_cv_prog_cc_g=yes
1852else
1853 echo "$as_me: failed program was:" >&5
1854cat conftest.$ac_ext >&5
1855ac_cv_prog_cc_g=no
1856fi
1857rm -f conftest.$ac_objext conftest.$ac_ext
1858fi
1859echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1860echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1861if test "$ac_test_CFLAGS" = set; then
1862 CFLAGS=$ac_save_CFLAGS
1863elif test $ac_cv_prog_cc_g = yes; then
1864 if test "$GCC" = yes; then
1865 CFLAGS="-g -O2"
1866 else
1867 CFLAGS="-g"
1868 fi
1869else
1870 if test "$GCC" = yes; then
1871 CFLAGS="-O2"
1872 else
1873 CFLAGS=
1874 fi
1875fi
1876# Some people use a C++ compiler to compile C. Since we use `exit',
1877# in C++ we need to declare it. In case someone uses the same compiler
1878# for both compiling C and C++ we need to have the C++ compiler decide
1879# the declaration of exit, since it's the most demanding environment.
1880cat >conftest.$ac_ext <<_ACEOF
1881@%:@ifndef __cplusplus
1882 choke me
1883@%:@endif
1884_ACEOF
1885rm -f conftest.$ac_objext
1886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1887 (eval $ac_compile) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); } &&
1891 { ac_try='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 (eval $ac_try) 2>&5
1894 ac_status=$?
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1897 for ac_declaration in \
1898 ''\
1899 '#include <stdlib.h>' \
1900 'extern "C" void std::exit (int) throw (); using std::exit;' \
1901 'extern "C" void std::exit (int); using std::exit;' \
1902 'extern "C" void exit (int) throw ();' \
1903 'extern "C" void exit (int);' \
1904 'void exit (int);'
1905do
1906 cat >conftest.$ac_ext <<_ACEOF
1907#line $LINENO "configure"
1908#include "confdefs.h"
1909@%:@include <stdlib.h>
1910$ac_declaration
1911#ifdef F77_DUMMY_MAIN
1912# ifdef __cplusplus
1913 extern "C"
1914# endif
1915 int F77_DUMMY_MAIN() { return 1; }
1916#endif
1917int
1918main ()
1919{
1920exit (42);
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925rm -f conftest.$ac_objext
1926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -s conftest.$ac_objext'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 (eval $ac_try) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; }; then
1937 :
1938else
1939 echo "$as_me: failed program was:" >&5
1940cat conftest.$ac_ext >&5
1941continue
1942fi
1943rm -f conftest.$ac_objext conftest.$ac_ext
1944 cat >conftest.$ac_ext <<_ACEOF
1945#line $LINENO "configure"
1946#include "confdefs.h"
1947$ac_declaration
1948#ifdef F77_DUMMY_MAIN
1949# ifdef __cplusplus
1950 extern "C"
1951# endif
1952 int F77_DUMMY_MAIN() { return 1; }
1953#endif
1954int
1955main ()
1956{
1957exit (42);
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962rm -f conftest.$ac_objext
1963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); } &&
1968 { ac_try='test -s conftest.$ac_objext'
1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970 (eval $ac_try) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1974 break
1975else
1976 echo "$as_me: failed program was:" >&5
1977cat conftest.$ac_ext >&5
1978fi
1979rm -f conftest.$ac_objext conftest.$ac_ext
1980done
1981rm -f conftest*
1982if test -n "$ac_declaration"; then
1983 echo '#ifdef __cplusplus' >>confdefs.h
1984 echo $ac_declaration >>confdefs.h
1985 echo '#endif' >>confdefs.h
1986fi
1987
1988else
1989 echo "$as_me: failed program was:" >&5
1990cat conftest.$ac_ext >&5
1991fi
1992rm -f conftest.$ac_objext conftest.$ac_ext
1993ac_ext=c
1994ac_cpp='$CPP $CPPFLAGS'
1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998
1999ac_aux_dir=
2000for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2001 if test -f $ac_dir/install-sh; then
2002 ac_aux_dir=$ac_dir
2003 ac_install_sh="$ac_aux_dir/install-sh -c"
2004 break
2005 elif test -f $ac_dir/install.sh; then
2006 ac_aux_dir=$ac_dir
2007 ac_install_sh="$ac_aux_dir/install.sh -c"
2008 break
2009 elif test -f $ac_dir/shtool; then
2010 ac_aux_dir=$ac_dir
2011 ac_install_sh="$ac_aux_dir/shtool install -c"
2012 break
2013 fi
2014done
2015if test -z "$ac_aux_dir"; then
2016 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2017echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2018 { (exit 1); exit 1; }; }
2019fi
2020ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2021ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2022ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2023
2024# Make sure we can run config.sub.
2025$ac_config_sub sun4 >/dev/null 2>&1 ||
2026 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2027echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2028 { (exit 1); exit 1; }; }
2029
2030echo "$as_me:$LINENO: checking build system type" >&5
2031echo $ECHO_N "checking build system type... $ECHO_C" >&6
2032if test "${ac_cv_build+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035 ac_cv_build_alias=$build_alias
2036test -z "$ac_cv_build_alias" &&
2037 ac_cv_build_alias=`$ac_config_guess`
2038test -z "$ac_cv_build_alias" &&
2039 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2040echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2041 { (exit 1); exit 1; }; }
2042ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2043 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2044echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2045 { (exit 1); exit 1; }; }
2046
2047fi
2048echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2049echo "${ECHO_T}$ac_cv_build" >&6
2050build=$ac_cv_build
2051build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2052build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2053build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2054
2055
2056echo "$as_me:$LINENO: checking host system type" >&5
2057echo $ECHO_N "checking host system type... $ECHO_C" >&6
2058if test "${ac_cv_host+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061 ac_cv_host_alias=$host_alias
2062test -z "$ac_cv_host_alias" &&
2063 ac_cv_host_alias=$ac_cv_build_alias
2064ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2065 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2066echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2067 { (exit 1); exit 1; }; }
2068
2069fi
2070echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2071echo "${ECHO_T}$ac_cv_host" >&6
2072host=$ac_cv_host
2073host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2074host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2075host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2076
2077
2078
2079echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2080echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2081if test "${ac_cv_c_bigendian+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084 # See if sys/param.h defines the BYTE_ORDER macro.
2085cat >conftest.$ac_ext <<_ACEOF
2086#line $LINENO "configure"
2087#include "confdefs.h"
2088#include <sys/types.h>
2089#include <sys/param.h>
2090
2091#ifdef F77_DUMMY_MAIN
2092# ifdef __cplusplus
2093 extern "C"
2094# endif
2095 int F77_DUMMY_MAIN() { return 1; }
2096#endif
2097int
2098main ()
2099{
2100#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2101 bogus endian macros
2102#endif
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108rm -f conftest.$ac_objext
2109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 # It does; now see whether it defined to BIG_ENDIAN or not.
2121cat >conftest.$ac_ext <<_ACEOF
2122#line $LINENO "configure"
2123#include "confdefs.h"
2124#include <sys/types.h>
2125#include <sys/param.h>
2126
2127#ifdef F77_DUMMY_MAIN
2128# ifdef __cplusplus
2129 extern "C"
2130# endif
2131 int F77_DUMMY_MAIN() { return 1; }
2132#endif
2133int
2134main ()
2135{
2136#if BYTE_ORDER != BIG_ENDIAN
2137 not big endian
2138#endif
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_c_bigendian=yes
2157else
2158 echo "$as_me: failed program was:" >&5
2159cat conftest.$ac_ext >&5
2160ac_cv_c_bigendian=no
2161fi
2162rm -f conftest.$ac_objext conftest.$ac_ext
2163else
2164 echo "$as_me: failed program was:" >&5
2165cat conftest.$ac_ext >&5
2166# It does not; compile a test program.
2167if test "$cross_compiling" = yes; then
2168 # try to guess the endianess by grep'ing values into an object file
2169 ac_cv_c_bigendian=unknown
2170 cat >conftest.$ac_ext <<_ACEOF
2171#line $LINENO "configure"
2172#include "confdefs.h"
2173short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2174short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2175void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2176short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2177short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2178void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2179#ifdef F77_DUMMY_MAIN
2180# ifdef __cplusplus
2181 extern "C"
2182# endif
2183 int F77_DUMMY_MAIN() { return 1; }
2184#endif
2185int
2186main ()
2187{
2188 _ascii (); _ebcdic ();
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193rm -f conftest.$ac_objext
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 (eval $ac_try) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2205 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2206 ac_cv_c_bigendian=yes
2207fi
2208if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2209 if test "$ac_cv_c_bigendian" = unknown; then
2210 ac_cv_c_bigendian=no
2211 else
2212 # finding both strings is unlikely to happen, but who knows?
2213 ac_cv_c_bigendian=unknown
2214 fi
2215fi
2216else
2217 echo "$as_me: failed program was:" >&5
2218cat conftest.$ac_ext >&5
2219fi
2220rm -f conftest.$ac_objext conftest.$ac_ext
2221else
2222 cat >conftest.$ac_ext <<_ACEOF
2223#line $LINENO "configure"
2224#include "confdefs.h"
2225int
2226main ()
2227{
2228 /* Are we little or big endian? From Harbison&Steele. */
2229 union
2230 {
2231 long l;
2232 char c[sizeof (long)];
2233 } u;
2234 u.l = 1;
2235 exit (u.c[sizeof (long) - 1] == 1);
2236}
2237_ACEOF
2238rm -f conftest$ac_exeext
2239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2240 (eval $ac_link) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 ac_cv_c_bigendian=no
2250else
2251 echo "$as_me: program exited with status $ac_status" >&5
2252echo "$as_me: failed program was:" >&5
2253cat conftest.$ac_ext >&5
2254( exit $ac_status )
2255ac_cv_c_bigendian=yes
2256fi
2257rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2258fi
2259fi
2260rm -f conftest.$ac_objext conftest.$ac_ext
2261fi
2262echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2263echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2264case $ac_cv_c_bigendian in
2265 yes)
2266
2267cat >>confdefs.h <<\_ACEOF
2268@%:@define WORDS_BIGENDIAN 1
2269_ACEOF
2270 ;;
2271 no)
2272 ;;
2273 *)
2274 { { echo "$as_me:$LINENO: error: unknown endianess
2275presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2276echo "$as_me: error: unknown endianess
2277presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2278 { (exit 1); exit 1; }; } ;;
2279esac
2280
2281
2282# Checks for programs.
2283ac_ext=c
2284ac_cpp='$CPP $CPPFLAGS'
2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2289echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2290# On Suns, sometimes $CPP names a directory.
2291if test -n "$CPP" && test -d "$CPP"; then
2292 CPP=
2293fi
2294if test -z "$CPP"; then
2295 if test "${ac_cv_prog_CPP+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298 # Double quotes because CPP needs to be expanded
2299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2300 do
2301 ac_preproc_ok=false
2302for ac_c_preproc_warn_flag in '' yes
2303do
2304 # Use a header file that comes with gcc, so configuring glibc
2305 # with a fresh cross-compiler works.
2306 # On the NeXT, cc -E runs the code through the compiler's parser,
2307 # not just through cpp. "Syntax error" is here to catch this case.
2308 cat >conftest.$ac_ext <<_ACEOF
2309#line $LINENO "configure"
2310#include "confdefs.h"
2311@%:@include <assert.h>
2312 Syntax error
2313_ACEOF
2314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316 ac_status=$?
2317 egrep -v '^ *\+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } >/dev/null; then
2322 if test -s conftest.err; then
2323 ac_cpp_err=$ac_c_preproc_warn_flag
2324 else
2325 ac_cpp_err=
2326 fi
2327else
2328 ac_cpp_err=yes
2329fi
2330if test -z "$ac_cpp_err"; then
2331 :
2332else
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 # Broken: fails on valid input.
2336continue
2337fi
2338rm -f conftest.err conftest.$ac_ext
2339
2340 # OK, works on sane cases. Now check whether non-existent headers
2341 # can be detected and how.
2342 cat >conftest.$ac_ext <<_ACEOF
2343#line $LINENO "configure"
2344#include "confdefs.h"
2345@%:@include <ac_nonexistent.h>
2346_ACEOF
2347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349 ac_status=$?
2350 egrep -v '^ *\+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2357 else
2358 ac_cpp_err=
2359 fi
2360else
2361 ac_cpp_err=yes
2362fi
2363if test -z "$ac_cpp_err"; then
2364 # Broken: success on invalid input.
2365continue
2366else
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 # Passes both tests.
2370ac_preproc_ok=:
2371break
2372fi
2373rm -f conftest.err conftest.$ac_ext
2374
2375done
2376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2377rm -f conftest.err conftest.$ac_ext
2378if $ac_preproc_ok; then
2379 break
2380fi
2381
2382 done
2383 ac_cv_prog_CPP=$CPP
2384
2385fi
2386 CPP=$ac_cv_prog_CPP
2387else
2388 ac_cv_prog_CPP=$CPP
2389fi
2390echo "$as_me:$LINENO: result: $CPP" >&5
2391echo "${ECHO_T}$CPP" >&6
2392ac_preproc_ok=false
2393for ac_c_preproc_warn_flag in '' yes
2394do
2395 # Use a header file that comes with gcc, so configuring glibc
2396 # with a fresh cross-compiler works.
2397 # On the NeXT, cc -E runs the code through the compiler's parser,
2398 # not just through cpp. "Syntax error" is here to catch this case.
2399 cat >conftest.$ac_ext <<_ACEOF
2400#line $LINENO "configure"
2401#include "confdefs.h"
2402@%:@include <assert.h>
2403 Syntax error
2404_ACEOF
2405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2407 ac_status=$?
2408 egrep -v '^ *\+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } >/dev/null; then
2413 if test -s conftest.err; then
2414 ac_cpp_err=$ac_c_preproc_warn_flag
2415 else
2416 ac_cpp_err=
2417 fi
2418else
2419 ac_cpp_err=yes
2420fi
2421if test -z "$ac_cpp_err"; then
2422 :
2423else
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 # Broken: fails on valid input.
2427continue
2428fi
2429rm -f conftest.err conftest.$ac_ext
2430
2431 # OK, works on sane cases. Now check whether non-existent headers
2432 # can be detected and how.
2433 cat >conftest.$ac_ext <<_ACEOF
2434#line $LINENO "configure"
2435#include "confdefs.h"
2436@%:@include <ac_nonexistent.h>
2437_ACEOF
2438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2440 ac_status=$?
2441 egrep -v '^ *\+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } >/dev/null; then
2446 if test -s conftest.err; then
2447 ac_cpp_err=$ac_c_preproc_warn_flag
2448 else
2449 ac_cpp_err=
2450 fi
2451else
2452 ac_cpp_err=yes
2453fi
2454if test -z "$ac_cpp_err"; then
2455 # Broken: success on invalid input.
2456continue
2457else
2458 echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 # Passes both tests.
2461ac_preproc_ok=:
2462break
2463fi
2464rm -f conftest.err conftest.$ac_ext
2465
2466done
2467# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2468rm -f conftest.err conftest.$ac_ext
2469if $ac_preproc_ok; then
2470 :
2471else
2472 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2473echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2474 { (exit 1); exit 1; }; }
2475fi
2476
2477ac_ext=c
2478ac_cpp='$CPP $CPPFLAGS'
2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2485set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2486echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488if test "${ac_cv_prog_RANLIB+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 if test -n "$RANLIB"; then
2492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506done
2507
2508fi
2509fi
2510RANLIB=$ac_cv_prog_RANLIB
2511if test -n "$RANLIB"; then
2512 echo "$as_me:$LINENO: result: $RANLIB" >&5
2513echo "${ECHO_T}$RANLIB" >&6
2514else
2515 echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517fi
2518
2519fi
2520if test -z "$ac_cv_prog_RANLIB"; then
2521 ac_ct_RANLIB=$RANLIB
2522 # Extract the first word of "ranlib", so it can be a program name with args.
2523set dummy ranlib; ac_word=$2
2524echo "$as_me:$LINENO: checking for $ac_word" >&5
2525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
2529 if test -n "$ac_ct_RANLIB"; then
2530 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_RANLIB="ranlib"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543done
2544done
2545
2546 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2547fi
2548fi
2549ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2550if test -n "$ac_ct_RANLIB"; then
2551 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2552echo "${ECHO_T}$ac_ct_RANLIB" >&6
2553else
2554 echo "$as_me:$LINENO: result: no" >&5
2555echo "${ECHO_T}no" >&6
2556fi
2557
2558 RANLIB=$ac_ct_RANLIB
2559else
2560 RANLIB="$ac_cv_prog_RANLIB"
2561fi
2562
2563# Find a good install program. We prefer a C program (faster),
2564# so one script is as good as another. But avoid the broken or
2565# incompatible versions:
2566# SysV /etc/install, /usr/sbin/install
2567# SunOS /usr/etc/install
2568# IRIX /sbin/install
2569# AIX /bin/install
2570# AmigaOS /C/install, which installs bootblocks on floppy discs
2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574# ./install, which can be erroneously created by make from ./install.sh.
2575echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2576echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2577if test -z "$INSTALL"; then
2578if test "${ac_cv_path_install+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 # Account for people who put trailing slashes in PATH elements.
2587case $as_dir/ in
2588 ./ | .// | /cC/* | \
2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590 /usr/ucb/* ) ;;
2591 *)
2592 # OSF1 and SCO ODT 3.0 have their own names for install.
2593 # Don't use installbsd from OSF since it installs stuff as root
2594 # by default.
2595 for ac_prog in ginstall scoinst install; do
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2598 if test $ac_prog = install &&
2599 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600 # AIX install. It has an incompatible calling convention.
2601 :
2602 elif test $ac_prog = install &&
2603 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604 # program-specific install script used by HP pwplus--don't use.
2605 :
2606 else
2607 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2608 break 3
2609 fi
2610 fi
2611 done
2612 done
2613 ;;
2614esac
2615done
2616
2617
2618fi
2619 if test "${ac_cv_path_install+set}" = set; then
2620 INSTALL=$ac_cv_path_install
2621 else
2622 # As a last resort, use the slow shell script. We don't cache a
2623 # path for INSTALL within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the path is relative.
2626 INSTALL=$ac_install_sh
2627 fi
2628fi
2629echo "$as_me:$LINENO: result: $INSTALL" >&5
2630echo "${ECHO_T}$INSTALL" >&6
2631
2632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633# It thinks the first close brace ends the variable substitution.
2634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635
2636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2637
2638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639
2640# Extract the first word of "ar", so it can be a program name with args.
2641set dummy ar; ac_word=$2
2642echo "$as_me:$LINENO: checking for $ac_word" >&5
2643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2644if test "${ac_cv_path_AR+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647 case $AR in
2648 [\\/]* | ?:[\\/]*)
2649 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2650 ;;
2651 *)
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663done
2664done
2665
2666 ;;
2667esac
2668fi
2669AR=$ac_cv_path_AR
2670
2671if test -n "$AR"; then
2672 echo "$as_me:$LINENO: result: $AR" >&5
2673echo "${ECHO_T}$AR" >&6
2674else
2675 echo "$as_me:$LINENO: result: no" >&5
2676echo "${ECHO_T}no" >&6
2677fi
2678
2679for ac_prog in perl5 perl
2680do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682set dummy $ac_prog; ac_word=$2
2683echo "$as_me:$LINENO: checking for $ac_word" >&5
2684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2685if test "${ac_cv_path_PERL+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688 case $PERL in
2689 [\\/]* | ?:[\\/]*)
2690 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2691 ;;
2692 *)
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704done
2705done
2706
2707 ;;
2708esac
2709fi
2710PERL=$ac_cv_path_PERL
2711
2712if test -n "$PERL"; then
2713 echo "$as_me:$LINENO: result: $PERL" >&5
2714echo "${ECHO_T}$PERL" >&6
2715else
2716 echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6
2718fi
2719
2720 test -n "$PERL" && break
2721done
2722
2723# Extract the first word of "sed", so it can be a program name with args.
2724set dummy sed; ac_word=$2
2725echo "$as_me:$LINENO: checking for $ac_word" >&5
2726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727if test "${ac_cv_path_SED+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 case $SED in
2731 [\\/]* | ?:[\\/]*)
2732 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2733 ;;
2734 *)
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747done
2748
2749 ;;
2750esac
2751fi
2752SED=$ac_cv_path_SED
2753
2754if test -n "$SED"; then
2755 echo "$as_me:$LINENO: result: $SED" >&5
2756echo "${ECHO_T}$SED" >&6
2757else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760fi
2761
2762
2763# Extract the first word of "ent", so it can be a program name with args.
2764set dummy ent; ac_word=$2
2765echo "$as_me:$LINENO: checking for $ac_word" >&5
2766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767if test "${ac_cv_path_ENT+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769else
2770 case $ENT in
2771 [\\/]* | ?:[\\/]*)
2772 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2773 ;;
2774 *)
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786done
2787done
2788
2789 ;;
2790esac
2791fi
2792ENT=$ac_cv_path_ENT
2793
2794if test -n "$ENT"; then
2795 echo "$as_me:$LINENO: result: $ENT" >&5
2796echo "${ECHO_T}$ENT" >&6
2797else
2798 echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6
2800fi
2801
2802
2803# Extract the first word of "bash", so it can be a program name with args.
2804set dummy bash; ac_word=$2
2805echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 case $TEST_MINUS_S_SH in
2811 [\\/]* | ?:[\\/]*)
2812 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2813 ;;
2814 *)
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826done
2827done
2828
2829 ;;
2830esac
2831fi
2832TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2833
2834if test -n "$TEST_MINUS_S_SH"; then
2835 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2836echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2837else
2838 echo "$as_me:$LINENO: result: no" >&5
2839echo "${ECHO_T}no" >&6
2840fi
2841
2842# Extract the first word of "ksh", so it can be a program name with args.
2843set dummy ksh; ac_word=$2
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 case $TEST_MINUS_S_SH in
2850 [\\/]* | ?:[\\/]*)
2851 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2852 ;;
2853 *)
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865done
2866done
2867
2868 ;;
2869esac
2870fi
2871TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2872
2873if test -n "$TEST_MINUS_S_SH"; then
2874 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2875echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2876else
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879fi
2880
2881# Extract the first word of "sh", so it can be a program name with args.
2882set dummy sh; ac_word=$2
2883echo "$as_me:$LINENO: checking for $ac_word" >&5
2884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2885if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
2888 case $TEST_MINUS_S_SH in
2889 [\\/]* | ?:[\\/]*)
2890 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2891 ;;
2892 *)
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904done
2905done
2906
2907 ;;
2908esac
2909fi
2910TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2911
2912if test -n "$TEST_MINUS_S_SH"; then
2913 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2914echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2915else
2916 echo "$as_me:$LINENO: result: no" >&5
2917echo "${ECHO_T}no" >&6
2918fi
2919
2920# Extract the first word of "sh", so it can be a program name with args.
2921set dummy sh; ac_word=$2
2922echo "$as_me:$LINENO: checking for $ac_word" >&5
2923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924if test "${ac_cv_path_SH+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927 case $SH in
2928 [\\/]* | ?:[\\/]*)
2929 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2930 ;;
2931 *)
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944done
2945
2946 ;;
2947esac
2948fi
2949SH=$ac_cv_path_SH
2950
2951if test -n "$SH"; then
2952 echo "$as_me:$LINENO: result: $SH" >&5
2953echo "${ECHO_T}$SH" >&6
2954else
2955 echo "$as_me:$LINENO: result: no" >&5
2956echo "${ECHO_T}no" >&6
2957fi
2958
2959
2960# System features
2961# Check whether --enable-largefile or --disable-largefile was given.
2962if test "${enable_largefile+set}" = set; then
2963 enableval="$enable_largefile"
2964
2965fi;
2966if test "$enable_largefile" != no; then
2967
2968 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2969echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2970if test "${ac_cv_sys_largefile_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973 ac_cv_sys_largefile_CC=no
2974 if test "$GCC" != yes; then
2975 ac_save_CC=$CC
2976 while :; do
2977 # IRIX 6.2 and later do not support large files by default,
2978 # so use the C compiler's -n32 option if that helps.
2979 cat >conftest.$ac_ext <<_ACEOF
2980#line $LINENO "configure"
2981#include "confdefs.h"
2982@%:@include <sys/types.h>
2983 /* Check that off_t can represent 2**63 - 1 correctly.
2984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2985 since some C++ compilers masquerading as C compilers
2986 incorrectly reject 9223372036854775807. */
2987@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2989 && LARGE_OFF_T % 2147483647 == 1)
2990 ? 1 : -1];
2991#ifdef F77_DUMMY_MAIN
2992# ifdef __cplusplus
2993 extern "C"
2994# endif
2995 int F77_DUMMY_MAIN() { return 1; }
2996#endif
2997int
2998main ()
2999{
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005 rm -f conftest.$ac_objext
3006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007 (eval $ac_compile) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 break
3018else
3019 echo "$as_me: failed program was:" >&5
3020cat conftest.$ac_ext >&5
3021fi
3022rm -f conftest.$ac_objext
3023 CC="$CC -n32"
3024 rm -f conftest.$ac_objext
3025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026 (eval $ac_compile) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_sys_largefile_CC=' -n32'; break
3037else
3038 echo "$as_me: failed program was:" >&5
3039cat conftest.$ac_ext >&5
3040fi
3041rm -f conftest.$ac_objext
3042 break
3043 done
3044 CC=$ac_save_CC
3045 rm -f conftest.$ac_ext
3046 fi
3047fi
3048echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3049echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3050 if test "$ac_cv_sys_largefile_CC" != no; then
3051 CC=$CC$ac_cv_sys_largefile_CC
3052 fi
3053
3054 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3055echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3056if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059 while :; do
3060 ac_cv_sys_file_offset_bits=no
3061 cat >conftest.$ac_ext <<_ACEOF
3062#line $LINENO "configure"
3063#include "confdefs.h"
3064@%:@include <sys/types.h>
3065 /* Check that off_t can represent 2**63 - 1 correctly.
3066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3067 since some C++ compilers masquerading as C compilers
3068 incorrectly reject 9223372036854775807. */
3069@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3071 && LARGE_OFF_T % 2147483647 == 1)
3072 ? 1 : -1];
3073#ifdef F77_DUMMY_MAIN
3074# ifdef __cplusplus
3075 extern "C"
3076# endif
3077 int F77_DUMMY_MAIN() { return 1; }
3078#endif
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
3088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 (eval $ac_try) 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 break
3100else
3101 echo "$as_me: failed program was:" >&5
3102cat conftest.$ac_ext >&5
3103fi
3104rm -f conftest.$ac_objext conftest.$ac_ext
3105 cat >conftest.$ac_ext <<_ACEOF
3106#line $LINENO "configure"
3107#include "confdefs.h"
3108@%:@define _FILE_OFFSET_BITS 64
3109@%:@include <sys/types.h>
3110 /* Check that off_t can represent 2**63 - 1 correctly.
3111 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3112 since some C++ compilers masquerading as C compilers
3113 incorrectly reject 9223372036854775807. */
3114@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3116 && LARGE_OFF_T % 2147483647 == 1)
3117 ? 1 : -1];
3118#ifdef F77_DUMMY_MAIN
3119# ifdef __cplusplus
3120 extern "C"
3121# endif
3122 int F77_DUMMY_MAIN() { return 1; }
3123#endif
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3134 (eval $ac_compile) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 (eval $ac_try) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 ac_cv_sys_file_offset_bits=64; break
3145else
3146 echo "$as_me: failed program was:" >&5
3147cat conftest.$ac_ext >&5
3148fi
3149rm -f conftest.$ac_objext conftest.$ac_ext
3150 break
3151done
3152fi
3153echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3154echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3155if test "$ac_cv_sys_file_offset_bits" != no; then
3156
3157cat >>confdefs.h <<_ACEOF
3158@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3159_ACEOF
3160
3161fi
3162rm -f conftest*
3163 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3164echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3165if test "${ac_cv_sys_large_files+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167else
3168 while :; do
3169 ac_cv_sys_large_files=no
3170 cat >conftest.$ac_ext <<_ACEOF
3171#line $LINENO "configure"
3172#include "confdefs.h"
3173@%:@include <sys/types.h>
3174 /* Check that off_t can represent 2**63 - 1 correctly.
3175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3176 since some C++ compilers masquerading as C compilers
3177 incorrectly reject 9223372036854775807. */
3178@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3180 && LARGE_OFF_T % 2147483647 == 1)
3181 ? 1 : -1];
3182#ifdef F77_DUMMY_MAIN
3183# ifdef __cplusplus
3184 extern "C"
3185# endif
3186 int F77_DUMMY_MAIN() { return 1; }
3187#endif
3188int
3189main ()
3190{
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196rm -f conftest.$ac_objext
3197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 (eval $ac_try) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 break
3209else
3210 echo "$as_me: failed program was:" >&5
3211cat conftest.$ac_ext >&5
3212fi
3213rm -f conftest.$ac_objext conftest.$ac_ext
3214 cat >conftest.$ac_ext <<_ACEOF
3215#line $LINENO "configure"
3216#include "confdefs.h"
3217@%:@define _LARGE_FILES 1
3218@%:@include <sys/types.h>
3219 /* Check that off_t can represent 2**63 - 1 correctly.
3220 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3221 since some C++ compilers masquerading as C compilers
3222 incorrectly reject 9223372036854775807. */
3223@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3224 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3225 && LARGE_OFF_T % 2147483647 == 1)
3226 ? 1 : -1];
3227#ifdef F77_DUMMY_MAIN
3228# ifdef __cplusplus
3229 extern "C"
3230# endif
3231 int F77_DUMMY_MAIN() { return 1; }
3232#endif
3233int
3234main ()
3235{
3236
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241rm -f conftest.$ac_objext
3242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_sys_large_files=1; break
3254else
3255 echo "$as_me: failed program was:" >&5
3256cat conftest.$ac_ext >&5
3257fi
3258rm -f conftest.$ac_objext conftest.$ac_ext
3259 break
3260done
3261fi
3262echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3263echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3264if test "$ac_cv_sys_large_files" != no; then
3265
3266cat >>confdefs.h <<_ACEOF
3267@%:@define _LARGE_FILES $ac_cv_sys_large_files
3268_ACEOF
3269
3270fi
3271rm -f conftest*
3272fi
3273
3274
3275if test -z "$AR" ; then
3276 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3277echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3278 { (exit 1); exit 1; }; }
3279fi
3280
3281# Use LOGIN_PROGRAM from environment if possible
3282if test ! -z "$LOGIN_PROGRAM" ; then
3283 cat >>confdefs.h <<_ACEOF
3284@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3285_ACEOF
3286
3287else
3288 # Search for login
3289 # Extract the first word of "login", so it can be a program name with args.
3290set dummy login; ac_word=$2
3291echo "$as_me:$LINENO: checking for $ac_word" >&5
3292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296 case $LOGIN_PROGRAM_FALLBACK in
3297 [\\/]* | ?:[\\/]*)
3298 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3299 ;;
3300 *)
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 break 2
3311 fi
3312done
3313done
3314
3315 ;;
3316esac
3317fi
3318LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3319
3320if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3321 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3322echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3323else
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326fi
3327
3328 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3329 cat >>confdefs.h <<_ACEOF
3330@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3331_ACEOF
3332
3333 fi
3334fi
3335
3336if test -z "$LD" ; then
3337 LD=$CC
3338fi
3339
3340
3341echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3342echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3343if test "${ac_cv_prog_cc_stdc+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346 ac_cv_prog_cc_stdc=no
3347ac_save_CC=$CC
3348cat >conftest.$ac_ext <<_ACEOF
3349#line $LINENO "configure"
3350#include "confdefs.h"
3351#include <stdarg.h>
3352#include <stdio.h>
3353#include <sys/types.h>
3354#include <sys/stat.h>
3355/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3356struct buf { int x; };
3357FILE * (*rcsopen) (struct buf *, struct stat *, int);
3358static char *e (p, i)
3359 char **p;
3360 int i;
3361{
3362 return p[i];
3363}
3364static char *f (char * (*g) (char **, int), char **p, ...)
3365{
3366 char *s;
3367 va_list v;
3368 va_start (v,p);
3369 s = g (p, va_arg (v,int));
3370 va_end (v);
3371 return s;
3372}
3373int test (int i, double x);
3374struct s1 {int (*f) (int a);};
3375struct s2 {int (*f) (double a);};
3376int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3377int argc;
3378char **argv;
3379#ifdef F77_DUMMY_MAIN
3380# ifdef __cplusplus
3381 extern "C"
3382# endif
3383 int F77_DUMMY_MAIN() { return 1; }
3384#endif
3385int
3386main ()
3387{
3388return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3389 ;
3390 return 0;
3391}
3392_ACEOF
3393# Don't try gcc -ansi; that turns off useful extensions and
3394# breaks some systems' header files.
3395# AIX -qlanglvl=ansi
3396# Ultrix and OSF/1 -std1
3397# HP-UX 10.20 and later -Ae
3398# HP-UX older versions -Aa -D_HPUX_SOURCE
3399# SVR4 -Xc -D__EXTENSIONS__
3400for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3401do
3402 CC="$ac_save_CC $ac_arg"
3403 rm -f conftest.$ac_objext
3404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 ac_cv_prog_cc_stdc=$ac_arg
3416break
3417else
3418 echo "$as_me: failed program was:" >&5
3419cat conftest.$ac_ext >&5
3420fi
3421rm -f conftest.$ac_objext
3422done
3423rm -f conftest.$ac_ext conftest.$ac_objext
3424CC=$ac_save_CC
3425
3426fi
3427
3428case "x$ac_cv_prog_cc_stdc" in
3429 x|xno)
3430 echo "$as_me:$LINENO: result: none needed" >&5
3431echo "${ECHO_T}none needed" >&6 ;;
3432 *)
3433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3434echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3435 CC="$CC $ac_cv_prog_cc_stdc" ;;
3436esac
3437
3438echo "$as_me:$LINENO: checking for inline" >&5
3439echo $ECHO_N "checking for inline... $ECHO_C" >&6
3440if test "${ac_cv_c_inline+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443 ac_cv_c_inline=no
3444for ac_kw in inline __inline__ __inline; do
3445 cat >conftest.$ac_ext <<_ACEOF
3446#line $LINENO "configure"
3447#include "confdefs.h"
3448#ifndef __cplusplus
3449static $ac_kw int static_foo () {return 0; }
3450$ac_kw int foo () {return 0; }
3451#endif
3452
3453_ACEOF
3454rm -f conftest.$ac_objext
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -s conftest.$ac_objext'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 (eval $ac_try) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3466 ac_cv_c_inline=$ac_kw; break
3467else
3468 echo "$as_me: failed program was:" >&5
3469cat conftest.$ac_ext >&5
3470fi
3471rm -f conftest.$ac_objext conftest.$ac_ext
3472done
3473
3474fi
3475echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3476echo "${ECHO_T}$ac_cv_c_inline" >&6
3477case $ac_cv_c_inline in
3478 inline | yes) ;;
3479 no)
3480cat >>confdefs.h <<\_ACEOF
3481@%:@define inline
3482_ACEOF
3483 ;;
3484 *) cat >>confdefs.h <<_ACEOF
3485@%:@define inline $ac_cv_c_inline
3486_ACEOF
3487 ;;
3488esac
3489
3490if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3491 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3492fi
3493
3494# Check for some target-specific stuff
3495case "$host" in
3496*-*-aix*)
3497 AFS_LIBS="-lld"
3498 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3499 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3500 if (test "$LD" != "gcc" && test -z "$blibpath"); then
3501 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3502echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3503 saved_LDFLAGS="$LDFLAGS"
3504 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3505 cat >conftest.$ac_ext <<_ACEOF
3506#line $LINENO "configure"
3507#include "confdefs.h"
3508
3509#ifdef F77_DUMMY_MAIN
3510# ifdef __cplusplus
3511 extern "C"
3512# endif
3513 int F77_DUMMY_MAIN() { return 1; }
3514#endif
3515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext conftest$ac_exeext
3524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3525 (eval $ac_link) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try='test -s conftest$ac_exeext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535
3536 echo "$as_me:$LINENO: result: yes" >&5
3537echo "${ECHO_T}yes" >&6
3538 blibpath="/usr/lib:/lib:/usr/local/lib"
3539
3540else
3541 echo "$as_me: failed program was:" >&5
3542cat conftest.$ac_ext >&5
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
3545
3546fi
3547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3548 LDFLAGS="$saved_LDFLAGS"
3549 fi
3550 echo "$as_me:$LINENO: checking for authenticate" >&5
3551echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3552if test "${ac_cv_func_authenticate+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555 cat >conftest.$ac_ext <<_ACEOF
3556#line $LINENO "configure"
3557#include "confdefs.h"
3558/* System header to define __stub macros and hopefully few prototypes,
3559 which can conflict with char authenticate (); below. */
3560#include <assert.h>
3561/* Override any gcc2 internal prototype to avoid an error. */
3562#ifdef __cplusplus
3563extern "C"
3564#endif
3565/* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3567char authenticate ();
3568char (*f) ();
3569
3570#ifdef F77_DUMMY_MAIN
3571# ifdef __cplusplus
3572 extern "C"
3573# endif
3574 int F77_DUMMY_MAIN() { return 1; }
3575#endif
3576int
3577main ()
3578{
3579/* The GNU C library defines this for functions which it implements
3580 to always fail with ENOSYS. Some functions are actually named
3581 something starting with __ and the normal name is an alias. */
3582#if defined (__stub_authenticate) || defined (__stub___authenticate)
3583choke me
3584#else
3585f = authenticate;
3586#endif
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext conftest$ac_exeext
3593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594 (eval $ac_link) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -s conftest$ac_exeext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 ac_cv_func_authenticate=yes
3605else
3606 echo "$as_me: failed program was:" >&5
3607cat conftest.$ac_ext >&5
3608ac_cv_func_authenticate=no
3609fi
3610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3611fi
3612echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3613echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3614if test $ac_cv_func_authenticate = yes; then
3615 cat >>confdefs.h <<\_ACEOF
3616@%:@define WITH_AIXAUTHENTICATE 1
3617_ACEOF
3618
3619else
3620 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
3621echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3622if test "${ac_cv_lib_s_authenticate+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625 ac_check_lib_save_LIBS=$LIBS
3626LIBS="-ls $LIBS"
3627cat >conftest.$ac_ext <<_ACEOF
3628#line $LINENO "configure"
3629#include "confdefs.h"
3630
3631/* Override any gcc2 internal prototype to avoid an error. */
3632#ifdef __cplusplus
3633extern "C"
3634#endif
3635/* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637char authenticate ();
3638#ifdef F77_DUMMY_MAIN
3639# ifdef __cplusplus
3640 extern "C"
3641# endif
3642 int F77_DUMMY_MAIN() { return 1; }
3643#endif
3644int
3645main ()
3646{
3647authenticate ();
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652rm -f conftest.$ac_objext conftest$ac_exeext
3653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -s conftest$ac_exeext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 ac_cv_lib_s_authenticate=yes
3665else
3666 echo "$as_me: failed program was:" >&5
3667cat conftest.$ac_ext >&5
3668ac_cv_lib_s_authenticate=no
3669fi
3670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3671LIBS=$ac_check_lib_save_LIBS
3672fi
3673echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
3674echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3675if test $ac_cv_lib_s_authenticate = yes; then
3676 cat >>confdefs.h <<\_ACEOF
3677@%:@define WITH_AIXAUTHENTICATE 1
3678_ACEOF
3679
3680 LIBS="$LIBS -ls"
3681
3682fi
3683
3684
3685fi
3686
3687 cat >>confdefs.h <<\_ACEOF
3688@%:@define BROKEN_GETADDRINFO 1
3689_ACEOF
3690
3691 cat >>confdefs.h <<\_ACEOF
3692@%:@define BROKEN_REALPATH 1
3693_ACEOF
3694
3695 cat >>confdefs.h <<\_ACEOF
3696@%:@define DISABLE_LASTLOG 1
3697_ACEOF
3698
3699 cat >>confdefs.h <<\_ACEOF
3700@%:@define LOGIN_NEEDS_UTMPX 1
3701_ACEOF
3702
3703 cat >>confdefs.h <<\_ACEOF
3704@%:@define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV
3705_ACEOF
3706
3707 cat >>confdefs.h <<\_ACEOF
3708@%:@define SETPROCTITLE_PS_PADDING '\0'
3709_ACEOF
3710
3711 ;;
3712*-*-cygwin*)
3713 check_for_libcrypt_later=1
3714 LIBS="$LIBS /usr/lib/textmode.o"
3715 cat >>confdefs.h <<\_ACEOF
3716@%:@define HAVE_CYGWIN 1
3717_ACEOF
3718
3719 cat >>confdefs.h <<\_ACEOF
3720@%:@define USE_PIPES 1
3721_ACEOF
3722
3723 cat >>confdefs.h <<\_ACEOF
3724@%:@define DISABLE_SHADOW 1
3725_ACEOF
3726
3727 cat >>confdefs.h <<\_ACEOF
3728@%:@define IPV4_DEFAULT 1
3729_ACEOF
3730
3731 cat >>confdefs.h <<\_ACEOF
3732@%:@define IP_TOS_IS_BROKEN 1
3733_ACEOF
3734
3735 cat >>confdefs.h <<\_ACEOF
3736@%:@define NO_X11_UNIX_SOCKETS 1
3737_ACEOF
3738
3739 cat >>confdefs.h <<\_ACEOF
3740@%:@define NO_IPPORT_RESERVED_CONCEPT 1
3741_ACEOF
3742
3743 cat >>confdefs.h <<\_ACEOF
3744@%:@define DISABLE_FD_PASSING 1
3745_ACEOF
3746
3747 cat >>confdefs.h <<\_ACEOF
3748@%:@define SETGROUPS_NOOP 1
3749_ACEOF
3750
3751 ;;
3752*-*-dgux*)
3753 cat >>confdefs.h <<\_ACEOF
3754@%:@define IP_TOS_IS_BROKEN 1
3755_ACEOF
3756
3757 ;;
3758*-*-darwin*)
3759 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
3760echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
3761 if test "$cross_compiling" = yes; then
3762 echo "$as_me:$LINENO: result: assume it is working" >&5
3763echo "${ECHO_T}assume it is working" >&6
3764else
3765 cat >conftest.$ac_ext <<_ACEOF
3766#line $LINENO "configure"
3767#include "confdefs.h"
3768#include <mach-o/dyld.h>
3769main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3770 exit(0);
3771 else
3772 exit(1);
3773}
3774_ACEOF
3775rm -f conftest$ac_exeext
3776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777 (eval $ac_link) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 echo "$as_me:$LINENO: result: working" >&5
3787echo "${ECHO_T}working" >&6
3788else
3789 echo "$as_me: program exited with status $ac_status" >&5
3790echo "$as_me: failed program was:" >&5
3791cat conftest.$ac_ext >&5
3792( exit $ac_status )
3793echo "$as_me:$LINENO: result: buggy" >&5
3794echo "${ECHO_T}buggy" >&6
3795 cat >>confdefs.h <<\_ACEOF
3796@%:@define BROKEN_GETADDRINFO 1
3797_ACEOF
3798
3799fi
3800rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3801fi
3802 ;;
3803*-*-hpux10.26)
3804 if test -z "$GCC"; then
3805 CFLAGS="$CFLAGS -Ae"
3806 fi
3807 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3808 IPADDR_IN_DISPLAY=yes
3809 cat >>confdefs.h <<\_ACEOF
3810@%:@define HAVE_SECUREWARE 1
3811_ACEOF
3812
3813 cat >>confdefs.h <<\_ACEOF
3814@%:@define USE_PIPES 1
3815_ACEOF
3816
3817 cat >>confdefs.h <<\_ACEOF
3818@%:@define LOGIN_NO_ENDOPT 1
3819_ACEOF
3820
3821 cat >>confdefs.h <<\_ACEOF
3822@%:@define LOGIN_NEEDS_UTMPX 1
3823_ACEOF
3824
3825 cat >>confdefs.h <<\_ACEOF
3826@%:@define DISABLE_SHADOW 1
3827_ACEOF
3828
3829 cat >>confdefs.h <<\_ACEOF
3830@%:@define DISABLE_UTMP 1
3831_ACEOF
3832
3833 cat >>confdefs.h <<\_ACEOF
3834@%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT
3835_ACEOF
3836
3837 LIBS="$LIBS -lsec -lsecpw"
3838
3839echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3840echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3841if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844 ac_check_lib_save_LIBS=$LIBS
3845LIBS="-lxnet $LIBS"
3846cat >conftest.$ac_ext <<_ACEOF
3847#line $LINENO "configure"
3848#include "confdefs.h"
3849
3850/* Override any gcc2 internal prototype to avoid an error. */
3851#ifdef __cplusplus
3852extern "C"
3853#endif
3854/* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3856char t_error ();
3857#ifdef F77_DUMMY_MAIN
3858# ifdef __cplusplus
3859 extern "C"
3860# endif
3861 int F77_DUMMY_MAIN() { return 1; }
3862#endif
3863int
3864main ()
3865{
3866t_error ();
3867 ;
3868 return 0;
3869}
3870_ACEOF
3871rm -f conftest.$ac_objext conftest$ac_exeext
3872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3873 (eval $ac_link) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest$ac_exeext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_lib_xnet_t_error=yes
3884else
3885 echo "$as_me: failed program was:" >&5
3886cat conftest.$ac_ext >&5
3887ac_cv_lib_xnet_t_error=no
3888fi
3889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3890LIBS=$ac_check_lib_save_LIBS
3891fi
3892echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3893echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3894if test $ac_cv_lib_xnet_t_error = yes; then
3895 cat >>confdefs.h <<_ACEOF
3896@%:@define HAVE_LIBXNET 1
3897_ACEOF
3898
3899 LIBS="-lxnet $LIBS"
3900
3901else
3902 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3903echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3904 { (exit 1); exit 1; }; }
3905fi
3906
3907 disable_ptmx_check=yes
3908 ;;
3909*-*-hpux10*)
3910 if test -z "$GCC"; then
3911 CFLAGS="$CFLAGS -Ae"
3912 fi
3913 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3914 IPADDR_IN_DISPLAY=yes
3915 cat >>confdefs.h <<\_ACEOF
3916@%:@define USE_PIPES 1
3917_ACEOF
3918
3919 cat >>confdefs.h <<\_ACEOF
3920@%:@define LOGIN_NO_ENDOPT 1
3921_ACEOF
3922
3923 cat >>confdefs.h <<\_ACEOF
3924@%:@define LOGIN_NEEDS_UTMPX 1
3925_ACEOF
3926
3927 cat >>confdefs.h <<\_ACEOF
3928@%:@define DISABLE_SHADOW 1
3929_ACEOF
3930
3931 cat >>confdefs.h <<\_ACEOF
3932@%:@define DISABLE_UTMP 1
3933_ACEOF
3934
3935 cat >>confdefs.h <<\_ACEOF
3936@%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT
3937_ACEOF
3938
3939 LIBS="$LIBS -lsec"
3940
3941echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3942echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3943if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 ac_check_lib_save_LIBS=$LIBS
3947LIBS="-lxnet $LIBS"
3948cat >conftest.$ac_ext <<_ACEOF
3949#line $LINENO "configure"
3950#include "confdefs.h"
3951
3952/* Override any gcc2 internal prototype to avoid an error. */
3953#ifdef __cplusplus
3954extern "C"
3955#endif
3956/* We use char because int might match the return type of a gcc2
3957 builtin and then its argument prototype would still apply. */
3958char t_error ();
3959#ifdef F77_DUMMY_MAIN
3960# ifdef __cplusplus
3961 extern "C"
3962# endif
3963 int F77_DUMMY_MAIN() { return 1; }
3964#endif
3965int
3966main ()
3967{
3968t_error ();
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973rm -f conftest.$ac_objext conftest$ac_exeext
3974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3975 (eval $ac_link) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -s conftest$ac_exeext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_lib_xnet_t_error=yes
3986else
3987 echo "$as_me: failed program was:" >&5
3988cat conftest.$ac_ext >&5
3989ac_cv_lib_xnet_t_error=no
3990fi
3991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3992LIBS=$ac_check_lib_save_LIBS
3993fi
3994echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3995echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3996if test $ac_cv_lib_xnet_t_error = yes; then
3997 cat >>confdefs.h <<_ACEOF
3998@%:@define HAVE_LIBXNET 1
3999_ACEOF
4000
4001 LIBS="-lxnet $LIBS"
4002
4003else
4004 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4005echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4006 { (exit 1); exit 1; }; }
4007fi
4008
4009 ;;
4010*-*-hpux11*)
4011 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
4012 IPADDR_IN_DISPLAY=yes
4013 cat >>confdefs.h <<\_ACEOF
4014@%:@define PAM_SUN_CODEBASE 1
4015_ACEOF
4016
4017 cat >>confdefs.h <<\_ACEOF
4018@%:@define USE_PIPES 1
4019_ACEOF
4020
4021 cat >>confdefs.h <<\_ACEOF
4022@%:@define LOGIN_NO_ENDOPT 1
4023_ACEOF
4024
4025 cat >>confdefs.h <<\_ACEOF
4026@%:@define LOGIN_NEEDS_UTMPX 1
4027_ACEOF
4028
4029 cat >>confdefs.h <<\_ACEOF
4030@%:@define DISABLE_SHADOW 1
4031_ACEOF
4032
4033 cat >>confdefs.h <<\_ACEOF
4034@%:@define DISABLE_UTMP 1
4035_ACEOF
4036
4037 cat >>confdefs.h <<\_ACEOF
4038@%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT
4039_ACEOF
4040
4041 LIBS="$LIBS -lsec"
4042
4043echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
4044echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
4045if test "${ac_cv_lib_xnet_t_error+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048 ac_check_lib_save_LIBS=$LIBS
4049LIBS="-lxnet $LIBS"
4050cat >conftest.$ac_ext <<_ACEOF
4051#line $LINENO "configure"
4052#include "confdefs.h"
4053
4054/* Override any gcc2 internal prototype to avoid an error. */
4055#ifdef __cplusplus
4056extern "C"
4057#endif
4058/* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4060char t_error ();
4061#ifdef F77_DUMMY_MAIN
4062# ifdef __cplusplus
4063 extern "C"
4064# endif
4065 int F77_DUMMY_MAIN() { return 1; }
4066#endif
4067int
4068main ()
4069{
4070t_error ();
4071 ;
4072 return 0;
4073}
4074_ACEOF
4075rm -f conftest.$ac_objext conftest$ac_exeext
4076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4077 (eval $ac_link) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_lib_xnet_t_error=yes
4088else
4089 echo "$as_me: failed program was:" >&5
4090cat conftest.$ac_ext >&5
4091ac_cv_lib_xnet_t_error=no
4092fi
4093rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4094LIBS=$ac_check_lib_save_LIBS
4095fi
4096echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4097echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4098if test $ac_cv_lib_xnet_t_error = yes; then
4099 cat >>confdefs.h <<_ACEOF
4100@%:@define HAVE_LIBXNET 1
4101_ACEOF
4102
4103 LIBS="-lxnet $LIBS"
4104
4105else
4106 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4107echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4108 { (exit 1); exit 1; }; }
4109fi
4110
4111 ;;
4112*-*-irix5*)
4113 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4114 LDFLAGS="$LDFLAGS"
4115 PATH="$PATH:/usr/etc"
4116 cat >>confdefs.h <<\_ACEOF
4117@%:@define BROKEN_INET_NTOA 1
4118_ACEOF
4119
4120 cat >>confdefs.h <<\_ACEOF
4121@%:@define WITH_ABBREV_NO_TTY 1
4122_ACEOF
4123
4124 ;;
4125*-*-irix6*)
4126 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4127 LDFLAGS="$LDFLAGS"
4128 PATH="$PATH:/usr/etc"
4129 cat >>confdefs.h <<\_ACEOF
4130@%:@define WITH_IRIX_ARRAY 1
4131_ACEOF
4132
4133 cat >>confdefs.h <<\_ACEOF
4134@%:@define WITH_IRIX_PROJECT 1
4135_ACEOF
4136
4137 cat >>confdefs.h <<\_ACEOF
4138@%:@define WITH_IRIX_AUDIT 1
4139_ACEOF
4140
4141 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
4142echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
4143if test "${ac_cv_func_jlimit_startjob+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145else
4146 cat >conftest.$ac_ext <<_ACEOF
4147#line $LINENO "configure"
4148#include "confdefs.h"
4149/* System header to define __stub macros and hopefully few prototypes,
4150 which can conflict with char jlimit_startjob (); below. */
4151#include <assert.h>
4152/* Override any gcc2 internal prototype to avoid an error. */
4153#ifdef __cplusplus
4154extern "C"
4155#endif
4156/* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
4158char jlimit_startjob ();
4159char (*f) ();
4160
4161#ifdef F77_DUMMY_MAIN
4162# ifdef __cplusplus
4163 extern "C"
4164# endif
4165 int F77_DUMMY_MAIN() { return 1; }
4166#endif
4167int
4168main ()
4169{
4170/* The GNU C library defines this for functions which it implements
4171 to always fail with ENOSYS. Some functions are actually named
4172 something starting with __ and the normal name is an alias. */
4173#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
4174choke me
4175#else
4176f = jlimit_startjob;
4177#endif
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext conftest$ac_exeext
4184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185 (eval $ac_link) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -s conftest$ac_exeext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_func_jlimit_startjob=yes
4196else
4197 echo "$as_me: failed program was:" >&5
4198cat conftest.$ac_ext >&5
4199ac_cv_func_jlimit_startjob=no
4200fi
4201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4202fi
4203echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
4204echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
4205if test $ac_cv_func_jlimit_startjob = yes; then
4206 cat >>confdefs.h <<\_ACEOF
4207@%:@define WITH_IRIX_JOBS 1
4208_ACEOF
4209
4210fi
4211
4212 cat >>confdefs.h <<\_ACEOF
4213@%:@define BROKEN_INET_NTOA 1
4214_ACEOF
4215
4216 cat >>confdefs.h <<\_ACEOF
4217@%:@define WITH_ABBREV_NO_TTY 1
4218_ACEOF
4219
4220 ;;
4221*-*-linux*)
4222 no_dev_ptmx=1
4223 check_for_libcrypt_later=1
4224 cat >>confdefs.h <<\_ACEOF
4225@%:@define DONT_TRY_OTHER_AF 1
4226_ACEOF
4227
4228 cat >>confdefs.h <<\_ACEOF
4229@%:@define PAM_TTY_KLUDGE 1
4230_ACEOF
4231
4232 cat >>confdefs.h <<\_ACEOF
4233@%:@define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV
4234_ACEOF
4235
4236 cat >>confdefs.h <<\_ACEOF
4237@%:@define SETPROCTITLE_PS_PADDING '\0'
4238_ACEOF
4239
4240 inet6_default_4in6=yes
4241 ;;
4242mips-sony-bsd|mips-sony-newsos4)
4243 cat >>confdefs.h <<\_ACEOF
4244@%:@define HAVE_NEWS4 1
4245_ACEOF
4246
4247 SONY=1
4248 ;;
4249*-*-netbsd*)
4250 check_for_libcrypt_before=1
4251 need_dash_r=1
4252 ;;
4253*-*-freebsd*)
4254 check_for_libcrypt_later=1
4255 ;;
4256*-next-*)
4257 conf_lastlog_location="/usr/adm/lastlog"
4258 conf_utmp_location=/etc/utmp
4259 conf_wtmp_location=/usr/adm/wtmp
4260 MAIL=/usr/spool/mail
4261 cat >>confdefs.h <<\_ACEOF
4262@%:@define HAVE_NEXT 1
4263_ACEOF
4264
4265 cat >>confdefs.h <<\_ACEOF
4266@%:@define BROKEN_REALPATH 1
4267_ACEOF
4268
4269 cat >>confdefs.h <<\_ACEOF
4270@%:@define USE_PIPES 1
4271_ACEOF
4272
4273 cat >>confdefs.h <<\_ACEOF
4274@%:@define BROKEN_SAVED_UIDS 1
4275_ACEOF
4276
4277 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4278 CFLAGS="$CFLAGS"
4279 ;;
4280*-*-solaris*)
4281 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4282 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
4283 need_dash_r=1
4284 cat >>confdefs.h <<\_ACEOF
4285@%:@define PAM_SUN_CODEBASE 1
4286_ACEOF
4287
4288 cat >>confdefs.h <<\_ACEOF
4289@%:@define LOGIN_NEEDS_UTMPX 1
4290_ACEOF
4291
4292 cat >>confdefs.h <<\_ACEOF
4293@%:@define LOGIN_NEEDS_TERM 1
4294_ACEOF
4295
4296 cat >>confdefs.h <<\_ACEOF
4297@%:@define PAM_TTY_KLUDGE 1
4298_ACEOF
4299
4300 cat >>confdefs.h <<\_ACEOF
4301@%:@define STREAMS_PUSH_ACQUIRES_CTTY 1
4302_ACEOF
4303
4304 # hardwire lastlog location (can't detect it on some versions)
4305 conf_lastlog_location="/var/adm/lastlog"
4306 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
4307echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
4308 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4309 if test "$sol2ver" -ge 8; then
4310 echo "$as_me:$LINENO: result: yes" >&5
4311echo "${ECHO_T}yes" >&6
4312 cat >>confdefs.h <<\_ACEOF
4313@%:@define DISABLE_UTMP 1
4314_ACEOF
4315
4316 cat >>confdefs.h <<\_ACEOF
4317@%:@define DISABLE_WTMP 1
4318_ACEOF
4319
4320 else
4321 echo "$as_me:$LINENO: result: no" >&5
4322echo "${ECHO_T}no" >&6
4323 fi
4324 ;;
4325*-*-sunos4*)
4326 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4327
4328for ac_func in getpwanam
4329do
4330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4331echo "$as_me:$LINENO: checking for $ac_func" >&5
4332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4333if eval "test \"\${$as_ac_var+set}\" = set"; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336 cat >conftest.$ac_ext <<_ACEOF
4337#line $LINENO "configure"
4338#include "confdefs.h"
4339/* System header to define __stub macros and hopefully few prototypes,
4340 which can conflict with char $ac_func (); below. */
4341#include <assert.h>
4342/* Override any gcc2 internal prototype to avoid an error. */
4343#ifdef __cplusplus
4344extern "C"
4345#endif
4346/* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4348char $ac_func ();
4349char (*f) ();
4350
4351#ifdef F77_DUMMY_MAIN
4352# ifdef __cplusplus
4353 extern "C"
4354# endif
4355 int F77_DUMMY_MAIN() { return 1; }
4356#endif
4357int
4358main ()
4359{
4360/* The GNU C library defines this for functions which it implements
4361 to always fail with ENOSYS. Some functions are actually named
4362 something starting with __ and the normal name is an alias. */
4363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4364choke me
4365#else
4366f = $ac_func;
4367#endif
4368
4369 ;
4370 return 0;
4371}
4372_ACEOF
4373rm -f conftest.$ac_objext conftest$ac_exeext
4374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4375 (eval $ac_link) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -s conftest$ac_exeext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 eval "$as_ac_var=yes"
4386else
4387 echo "$as_me: failed program was:" >&5
4388cat conftest.$ac_ext >&5
4389eval "$as_ac_var=no"
4390fi
4391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4392fi
4393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4395if test `eval echo '${'$as_ac_var'}'` = yes; then
4396 cat >>confdefs.h <<_ACEOF
4397@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4398_ACEOF
4399
4400fi
4401done
4402
4403 cat >>confdefs.h <<\_ACEOF
4404@%:@define PAM_SUN_CODEBASE 1
4405_ACEOF
4406
4407 conf_utmp_location=/etc/utmp
4408 conf_wtmp_location=/var/adm/wtmp
4409 conf_lastlog_location=/var/adm/lastlog
4410 cat >>confdefs.h <<\_ACEOF
4411@%:@define USE_PIPES 1
4412_ACEOF
4413
4414 ;;
4415*-ncr-sysv*)
4416 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4417 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4418 LIBS="$LIBS -lc89"
4419 cat >>confdefs.h <<\_ACEOF
4420@%:@define USE_PIPES 1
4421_ACEOF
4422
4423 ;;
4424*-sni-sysv*)
4425 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4426 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4427 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4428 IPADDR_IN_DISPLAY=yes
4429 cat >>confdefs.h <<\_ACEOF
4430@%:@define USE_PIPES 1
4431_ACEOF
4432
4433 cat >>confdefs.h <<\_ACEOF
4434@%:@define IP_TOS_IS_BROKEN 1
4435_ACEOF
4436
4437 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4438 # Attention: always take care to bind libsocket and libnsl before libc,
4439 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4440 ;;
4441*-*-sysv4.2*)
4442 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4443 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4444 cat >>confdefs.h <<\_ACEOF
4445@%:@define USE_PIPES 1
4446_ACEOF
4447
4448 ;;
4449*-*-sysv5*)
4450 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4451 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4452 cat >>confdefs.h <<\_ACEOF
4453@%:@define USE_PIPES 1
4454_ACEOF
4455
4456 ;;
4457*-*-sysv*)
4458 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4459 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4460 ;;
4461*-*-sco3.2v4*)
4462 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4463 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4464 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4465 RANLIB=true
4466 no_dev_ptmx=1
4467 cat >>confdefs.h <<\_ACEOF
4468@%:@define BROKEN_SYS_TERMIO_H 1
4469_ACEOF
4470
4471 cat >>confdefs.h <<\_ACEOF
4472@%:@define USE_PIPES 1
4473_ACEOF
4474
4475 cat >>confdefs.h <<\_ACEOF
4476@%:@define HAVE_SECUREWARE 1
4477_ACEOF
4478
4479 cat >>confdefs.h <<\_ACEOF
4480@%:@define DISABLE_SHADOW 1
4481_ACEOF
4482
4483 cat >>confdefs.h <<\_ACEOF
4484@%:@define BROKEN_SAVED_UIDS 1
4485_ACEOF
4486
4487
4488
4489for ac_func in getluid setluid
4490do
4491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4492echo "$as_me:$LINENO: checking for $ac_func" >&5
4493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4494if eval "test \"\${$as_ac_var+set}\" = set"; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 cat >conftest.$ac_ext <<_ACEOF
4498#line $LINENO "configure"
4499#include "confdefs.h"
4500/* System header to define __stub macros and hopefully few prototypes,
4501 which can conflict with char $ac_func (); below. */
4502#include <assert.h>
4503/* Override any gcc2 internal prototype to avoid an error. */
4504#ifdef __cplusplus
4505extern "C"
4506#endif
4507/* We use char because int might match the return type of a gcc2
4508 builtin and then its argument prototype would still apply. */
4509char $ac_func ();
4510char (*f) ();
4511
4512#ifdef F77_DUMMY_MAIN
4513# ifdef __cplusplus
4514 extern "C"
4515# endif
4516 int F77_DUMMY_MAIN() { return 1; }
4517#endif
4518int
4519main ()
4520{
4521/* The GNU C library defines this for functions which it implements
4522 to always fail with ENOSYS. Some functions are actually named
4523 something starting with __ and the normal name is an alias. */
4524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4525choke me
4526#else
4527f = $ac_func;
4528#endif
4529
4530 ;
4531 return 0;
4532}
4533_ACEOF
4534rm -f conftest.$ac_objext conftest$ac_exeext
4535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4536 (eval $ac_link) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -s conftest$ac_exeext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 eval "$as_ac_var=yes"
4547else
4548 echo "$as_me: failed program was:" >&5
4549cat conftest.$ac_ext >&5
4550eval "$as_ac_var=no"
4551fi
4552rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4553fi
4554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4555echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4556if test `eval echo '${'$as_ac_var'}'` = yes; then
4557 cat >>confdefs.h <<_ACEOF
4558@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4559_ACEOF
4560
4561fi
4562done
4563
4564 MANTYPE=man
4565 do_sco3_extra_lib_check=yes
4566 ;;
4567*-*-sco3.2v5*)
4568 if test -z "$GCC"; then
4569 CFLAGS="$CFLAGS -belf"
4570 fi
4571 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4572 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4573 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4574 no_dev_ptmx=1
4575 cat >>confdefs.h <<\_ACEOF
4576@%:@define USE_PIPES 1
4577_ACEOF
4578
4579 cat >>confdefs.h <<\_ACEOF
4580@%:@define HAVE_SECUREWARE 1
4581_ACEOF
4582
4583 cat >>confdefs.h <<\_ACEOF
4584@%:@define DISABLE_SHADOW 1
4585_ACEOF
4586
4587 cat >>confdefs.h <<\_ACEOF
4588@%:@define DISABLE_FD_PASSING 1
4589_ACEOF
4590
4591
4592
4593for ac_func in getluid setluid
4594do
4595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4596echo "$as_me:$LINENO: checking for $ac_func" >&5
4597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4598if eval "test \"\${$as_ac_var+set}\" = set"; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601 cat >conftest.$ac_ext <<_ACEOF
4602#line $LINENO "configure"
4603#include "confdefs.h"
4604/* System header to define __stub macros and hopefully few prototypes,
4605 which can conflict with char $ac_func (); below. */
4606#include <assert.h>
4607/* Override any gcc2 internal prototype to avoid an error. */
4608#ifdef __cplusplus
4609extern "C"
4610#endif
4611/* We use char because int might match the return type of a gcc2
4612 builtin and then its argument prototype would still apply. */
4613char $ac_func ();
4614char (*f) ();
4615
4616#ifdef F77_DUMMY_MAIN
4617# ifdef __cplusplus
4618 extern "C"
4619# endif
4620 int F77_DUMMY_MAIN() { return 1; }
4621#endif
4622int
4623main ()
4624{
4625/* The GNU C library defines this for functions which it implements
4626 to always fail with ENOSYS. Some functions are actually named
4627 something starting with __ and the normal name is an alias. */
4628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4629choke me
4630#else
4631f = $ac_func;
4632#endif
4633
4634 ;
4635 return 0;
4636}
4637_ACEOF
4638rm -f conftest.$ac_objext conftest$ac_exeext
4639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4640 (eval $ac_link) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -s conftest$ac_exeext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 eval "$as_ac_var=yes"
4651else
4652 echo "$as_me: failed program was:" >&5
4653cat conftest.$ac_ext >&5
4654eval "$as_ac_var=no"
4655fi
4656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4657fi
4658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4660if test `eval echo '${'$as_ac_var'}'` = yes; then
4661 cat >>confdefs.h <<_ACEOF
4662@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4663_ACEOF
4664
4665fi
4666done
4667
4668 MANTYPE=man
4669 ;;
4670*-*-unicosmk*)
4671 cat >>confdefs.h <<\_ACEOF
4672@%:@define USE_PIPES 1
4673_ACEOF
4674
4675 cat >>confdefs.h <<\_ACEOF
4676@%:@define DISABLE_FD_PASSING 1
4677_ACEOF
4678
4679 LDFLAGS="$LDFLAGS"
4680 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4681 MANTYPE=cat
4682 ;;
4683*-*-unicos*)
4684 cat >>confdefs.h <<\_ACEOF
4685@%:@define USE_PIPES 1
4686_ACEOF
4687
4688 cat >>confdefs.h <<\_ACEOF
4689@%:@define DISABLE_FD_PASSING 1
4690_ACEOF
4691
4692 cat >>confdefs.h <<\_ACEOF
4693@%:@define NO_SSH_LASTLOG 1
4694_ACEOF
4695
4696 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4697 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4698 MANTYPE=cat
4699 ;;
4700*-dec-osf*)
4701 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4702echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4703 no_osfsia=""
4704
4705# Check whether --with-osfsia or --without-osfsia was given.
4706if test "${with_osfsia+set}" = set; then
4707 withval="$with_osfsia"
4708
4709 if test "x$withval" = "xno" ; then
4710 echo "$as_me:$LINENO: result: disabled" >&5
4711echo "${ECHO_T}disabled" >&6
4712 no_osfsia=1
4713 fi
4714
4715fi;
4716 if test -z "$no_osfsia" ; then
4717 if test -f /etc/sia/matrix.conf; then
4718 echo "$as_me:$LINENO: result: yes" >&5
4719echo "${ECHO_T}yes" >&6
4720 cat >>confdefs.h <<\_ACEOF
4721@%:@define HAVE_OSF_SIA 1
4722_ACEOF
4723
4724 cat >>confdefs.h <<\_ACEOF
4725@%:@define DISABLE_LOGIN 1
4726_ACEOF
4727
4728 cat >>confdefs.h <<\_ACEOF
4729@%:@define DISABLE_FD_PASSING 1
4730_ACEOF
4731
4732 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736 fi
4737 fi
4738 cat >>confdefs.h <<\_ACEOF
4739@%:@define DISABLE_FD_PASSING 1
4740_ACEOF
4741
4742 ;;
4743
4744*-*-nto-qnx)
4745 cat >>confdefs.h <<\_ACEOF
4746@%:@define USE_PIPES 1
4747_ACEOF
4748
4749 cat >>confdefs.h <<\_ACEOF
4750@%:@define NO_X11_UNIX_SOCKETS 1
4751_ACEOF
4752
4753 cat >>confdefs.h <<\_ACEOF
4754@%:@define MISSING_NFDBITS 1
4755_ACEOF
4756
4757 cat >>confdefs.h <<\_ACEOF
4758@%:@define MISSING_HOWMANY 1
4759_ACEOF
4760
4761 cat >>confdefs.h <<\_ACEOF
4762@%:@define MISSING_FD_MASK 1
4763_ACEOF
4764
4765 ;;
4766esac
4767
4768# Allow user to specify flags
4769
4770# Check whether --with-cflags or --without-cflags was given.
4771if test "${with_cflags+set}" = set; then
4772 withval="$with_cflags"
4773
4774 if test "x$withval" != "xno" ; then
4775 CFLAGS="$CFLAGS $withval"
4776 fi
4777
4778
4779fi;
4780
4781# Check whether --with-cppflags or --without-cppflags was given.
4782if test "${with_cppflags+set}" = set; then
4783 withval="$with_cppflags"
4784
4785 if test "x$withval" != "xno"; then
4786 CPPFLAGS="$CPPFLAGS $withval"
4787 fi
4788
4789
4790fi;
4791
4792# Check whether --with-ldflags or --without-ldflags was given.
4793if test "${with_ldflags+set}" = set; then
4794 withval="$with_ldflags"
4795
4796 if test "x$withval" != "xno" ; then
4797 LDFLAGS="$LDFLAGS $withval"
4798 fi
4799
4800
4801fi;
4802
4803# Check whether --with-libs or --without-libs was given.
4804if test "${with_libs+set}" = set; then
4805 withval="$with_libs"
4806
4807 if test "x$withval" != "xno" ; then
4808 LIBS="$LIBS $withval"
4809 fi
4810
4811
4812fi;
4813
4814# Checks for header files.
4815
4816echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4817echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4818if test "${ac_cv_header_stdc+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820else
4821 cat >conftest.$ac_ext <<_ACEOF
4822#line $LINENO "configure"
4823#include "confdefs.h"
4824#include <stdlib.h>
4825#include <stdarg.h>
4826#include <string.h>
4827#include <float.h>
4828
4829_ACEOF
4830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832 ac_status=$?
4833 egrep -v '^ *\+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } >/dev/null; then
4838 if test -s conftest.err; then
4839 ac_cpp_err=$ac_c_preproc_warn_flag
4840 else
4841 ac_cpp_err=
4842 fi
4843else
4844 ac_cpp_err=yes
4845fi
4846if test -z "$ac_cpp_err"; then
4847 ac_cv_header_stdc=yes
4848else
4849 echo "$as_me: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4851 ac_cv_header_stdc=no
4852fi
4853rm -f conftest.err conftest.$ac_ext
4854
4855if test $ac_cv_header_stdc = yes; then
4856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4857 cat >conftest.$ac_ext <<_ACEOF
4858#line $LINENO "configure"
4859#include "confdefs.h"
4860#include <string.h>
4861
4862_ACEOF
4863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4864 egrep "memchr" >/dev/null 2>&1; then
4865 :
4866else
4867 ac_cv_header_stdc=no
4868fi
4869rm -f conftest*
4870
4871fi
4872
4873if test $ac_cv_header_stdc = yes; then
4874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4875 cat >conftest.$ac_ext <<_ACEOF
4876#line $LINENO "configure"
4877#include "confdefs.h"
4878#include <stdlib.h>
4879
4880_ACEOF
4881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4882 egrep "free" >/dev/null 2>&1; then
4883 :
4884else
4885 ac_cv_header_stdc=no
4886fi
4887rm -f conftest*
4888
4889fi
4890
4891if test $ac_cv_header_stdc = yes; then
4892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4893 if test "$cross_compiling" = yes; then
4894 :
4895else
4896 cat >conftest.$ac_ext <<_ACEOF
4897#line $LINENO "configure"
4898#include "confdefs.h"
4899#include <ctype.h>
4900#if ((' ' & 0x0FF) == 0x020)
4901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4903#else
4904# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4905 || ('j' <= (c) && (c) <= 'r') \
4906 || ('s' <= (c) && (c) <= 'z'))
4907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4908#endif
4909
4910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4911int
4912main ()
4913{
4914 int i;
4915 for (i = 0; i < 256; i++)
4916 if (XOR (islower (i), ISLOWER (i))
4917 || toupper (i) != TOUPPER (i))
4918 exit(2);
4919 exit (0);
4920}
4921_ACEOF
4922rm -f conftest$ac_exeext
4923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4924 (eval $ac_link) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 :
4934else
4935 echo "$as_me: program exited with status $ac_status" >&5
4936echo "$as_me: failed program was:" >&5
4937cat conftest.$ac_ext >&5
4938( exit $ac_status )
4939ac_cv_header_stdc=no
4940fi
4941rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4942fi
4943fi
4944fi
4945echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4946echo "${ECHO_T}$ac_cv_header_stdc" >&6
4947if test $ac_cv_header_stdc = yes; then
4948
4949cat >>confdefs.h <<\_ACEOF
4950@%:@define STDC_HEADERS 1
4951_ACEOF
4952
4953fi
4954
4955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4966 inttypes.h stdint.h unistd.h
4967do
4968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4969echo "$as_me:$LINENO: checking for $ac_header" >&5
4970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4971if eval "test \"\${$as_ac_Header+set}\" = set"; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 cat >conftest.$ac_ext <<_ACEOF
4975#line $LINENO "configure"
4976#include "confdefs.h"
4977$ac_includes_default
4978
4979@%:@include <$ac_header>
4980_ACEOF
4981rm -f conftest.$ac_objext
4982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -s conftest.$ac_objext'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4993 eval "$as_ac_Header=yes"
4994else
4995 echo "$as_me: failed program was:" >&5
4996cat conftest.$ac_ext >&5
4997eval "$as_ac_Header=no"
4998fi
4999rm -f conftest.$ac_objext conftest.$ac_ext
5000fi
5001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5003if test `eval echo '${'$as_ac_Header'}'` = yes; then
5004 cat >>confdefs.h <<_ACEOF
5005@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006_ACEOF
5007
5008fi
5009
5010done
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
5059 getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \
5060 login_cap.h maillock.h netdb.h netgroup.h \
5061 netinet/in_systm.h paths.h pty.h readpassphrase.h \
5062 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
5063 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
5064 sys/mman.h sys/pstat.h sys/select.h sys/stat.h \
5065 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \
5066 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
5067 util.h utime.h utmp.h utmpx.h
5068do
5069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070if eval "test \"\${$as_ac_Header+set}\" = set"; then
5071 echo "$as_me:$LINENO: checking for $ac_header" >&5
5072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5073if eval "test \"\${$as_ac_Header+set}\" = set"; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075fi
5076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5078else
5079 # Is the header compilable?
5080echo "$as_me:$LINENO: checking $ac_header usability" >&5
5081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5082cat >conftest.$ac_ext <<_ACEOF
5083#line $LINENO "configure"
5084#include "confdefs.h"
5085$ac_includes_default
5086@%:@include <$ac_header>
5087_ACEOF
5088rm -f conftest.$ac_objext
5089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_header_compiler=yes
5101else
5102 echo "$as_me: failed program was:" >&5
5103cat conftest.$ac_ext >&5
5104ac_header_compiler=no
5105fi
5106rm -f conftest.$ac_objext conftest.$ac_ext
5107echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5108echo "${ECHO_T}$ac_header_compiler" >&6
5109
5110# Is the header present?
5111echo "$as_me:$LINENO: checking $ac_header presence" >&5
5112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5113cat >conftest.$ac_ext <<_ACEOF
5114#line $LINENO "configure"
5115#include "confdefs.h"
5116@%:@include <$ac_header>
5117_ACEOF
5118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120 ac_status=$?
5121 egrep -v '^ *\+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } >/dev/null; then
5126 if test -s conftest.err; then
5127 ac_cpp_err=$ac_c_preproc_warn_flag
5128 else
5129 ac_cpp_err=
5130 fi
5131else
5132 ac_cpp_err=yes
5133fi
5134if test -z "$ac_cpp_err"; then
5135 ac_header_preproc=yes
5136else
5137 echo "$as_me: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5139 ac_header_preproc=no
5140fi
5141rm -f conftest.err conftest.$ac_ext
5142echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143echo "${ECHO_T}$ac_header_preproc" >&6
5144
5145# So? What about this header?
5146case $ac_header_compiler:$ac_header_preproc in
5147 yes:no )
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5152 no:yes )
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5159esac
5160echo "$as_me:$LINENO: checking for $ac_header" >&5
5161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5162if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 eval "$as_ac_Header=$ac_header_preproc"
5166fi
5167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5169
5170fi
5171if test `eval echo '${'$as_ac_Header'}'` = yes; then
5172 cat >>confdefs.h <<_ACEOF
5173@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5174_ACEOF
5175
5176fi
5177
5178done
5179
5180
5181# Checks for libraries.
5182echo "$as_me:$LINENO: checking for yp_match" >&5
5183echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
5184if test "${ac_cv_func_yp_match+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187 cat >conftest.$ac_ext <<_ACEOF
5188#line $LINENO "configure"
5189#include "confdefs.h"
5190/* System header to define __stub macros and hopefully few prototypes,
5191 which can conflict with char yp_match (); below. */
5192#include <assert.h>
5193/* Override any gcc2 internal prototype to avoid an error. */
5194#ifdef __cplusplus
5195extern "C"
5196#endif
5197/* We use char because int might match the return type of a gcc2
5198 builtin and then its argument prototype would still apply. */
5199char yp_match ();
5200char (*f) ();
5201
5202#ifdef F77_DUMMY_MAIN
5203# ifdef __cplusplus
5204 extern "C"
5205# endif
5206 int F77_DUMMY_MAIN() { return 1; }
5207#endif
5208int
5209main ()
5210{
5211/* The GNU C library defines this for functions which it implements
5212 to always fail with ENOSYS. Some functions are actually named
5213 something starting with __ and the normal name is an alias. */
5214#if defined (__stub_yp_match) || defined (__stub___yp_match)
5215choke me
5216#else
5217f = yp_match;
5218#endif
5219
5220 ;
5221 return 0;
5222}
5223_ACEOF
5224rm -f conftest.$ac_objext conftest$ac_exeext
5225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -s conftest$ac_exeext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 ac_cv_func_yp_match=yes
5237else
5238 echo "$as_me: failed program was:" >&5
5239cat conftest.$ac_ext >&5
5240ac_cv_func_yp_match=no
5241fi
5242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5243fi
5244echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
5245echo "${ECHO_T}$ac_cv_func_yp_match" >&6
5246if test $ac_cv_func_yp_match = yes; then
5247 :
5248else
5249
5250echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
5251echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
5252if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255 ac_check_lib_save_LIBS=$LIBS
5256LIBS="-lnsl $LIBS"
5257cat >conftest.$ac_ext <<_ACEOF
5258#line $LINENO "configure"
5259#include "confdefs.h"
5260
5261/* Override any gcc2 internal prototype to avoid an error. */
5262#ifdef __cplusplus
5263extern "C"
5264#endif
5265/* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */
5267char yp_match ();
5268#ifdef F77_DUMMY_MAIN
5269# ifdef __cplusplus
5270 extern "C"
5271# endif
5272 int F77_DUMMY_MAIN() { return 1; }
5273#endif
5274int
5275main ()
5276{
5277yp_match ();
5278 ;
5279 return 0;
5280}
5281_ACEOF
5282rm -f conftest.$ac_objext conftest$ac_exeext
5283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5284 (eval $ac_link) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -s conftest$ac_exeext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_lib_nsl_yp_match=yes
5295else
5296 echo "$as_me: failed program was:" >&5
5297cat conftest.$ac_ext >&5
5298ac_cv_lib_nsl_yp_match=no
5299fi
5300rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5301LIBS=$ac_check_lib_save_LIBS
5302fi
5303echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
5304echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
5305if test $ac_cv_lib_nsl_yp_match = yes; then
5306 cat >>confdefs.h <<_ACEOF
5307@%:@define HAVE_LIBNSL 1
5308_ACEOF
5309
5310 LIBS="-lnsl $LIBS"
5311
5312fi
5313
5314fi
5315
5316echo "$as_me:$LINENO: checking for setsockopt" >&5
5317echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5318if test "${ac_cv_func_setsockopt+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321 cat >conftest.$ac_ext <<_ACEOF
5322#line $LINENO "configure"
5323#include "confdefs.h"
5324/* System header to define __stub macros and hopefully few prototypes,
5325 which can conflict with char setsockopt (); below. */
5326#include <assert.h>
5327/* Override any gcc2 internal prototype to avoid an error. */
5328#ifdef __cplusplus
5329extern "C"
5330#endif
5331/* We use char because int might match the return type of a gcc2
5332 builtin and then its argument prototype would still apply. */
5333char setsockopt ();
5334char (*f) ();
5335
5336#ifdef F77_DUMMY_MAIN
5337# ifdef __cplusplus
5338 extern "C"
5339# endif
5340 int F77_DUMMY_MAIN() { return 1; }
5341#endif
5342int
5343main ()
5344{
5345/* The GNU C library defines this for functions which it implements
5346 to always fail with ENOSYS. Some functions are actually named
5347 something starting with __ and the normal name is an alias. */
5348#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5349choke me
5350#else
5351f = setsockopt;
5352#endif
5353
5354 ;
5355 return 0;
5356}
5357_ACEOF
5358rm -f conftest.$ac_objext conftest$ac_exeext
5359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -s conftest$ac_exeext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_cv_func_setsockopt=yes
5371else
5372 echo "$as_me: failed program was:" >&5
5373cat conftest.$ac_ext >&5
5374ac_cv_func_setsockopt=no
5375fi
5376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5377fi
5378echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5379echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5380if test $ac_cv_func_setsockopt = yes; then
5381 :
5382else
5383
5384echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5385echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5386if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388else
5389 ac_check_lib_save_LIBS=$LIBS
5390LIBS="-lsocket $LIBS"
5391cat >conftest.$ac_ext <<_ACEOF
5392#line $LINENO "configure"
5393#include "confdefs.h"
5394
5395/* Override any gcc2 internal prototype to avoid an error. */
5396#ifdef __cplusplus
5397extern "C"
5398#endif
5399/* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5401char setsockopt ();
5402#ifdef F77_DUMMY_MAIN
5403# ifdef __cplusplus
5404 extern "C"
5405# endif
5406 int F77_DUMMY_MAIN() { return 1; }
5407#endif
5408int
5409main ()
5410{
5411setsockopt ();
5412 ;
5413 return 0;
5414}
5415_ACEOF
5416rm -f conftest.$ac_objext conftest$ac_exeext
5417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5418 (eval $ac_link) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try='test -s conftest$ac_exeext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 (eval $ac_try) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_lib_socket_setsockopt=yes
5429else
5430 echo "$as_me: failed program was:" >&5
5431cat conftest.$ac_ext >&5
5432ac_cv_lib_socket_setsockopt=no
5433fi
5434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5435LIBS=$ac_check_lib_save_LIBS
5436fi
5437echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5438echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5439if test $ac_cv_lib_socket_setsockopt = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441@%:@define HAVE_LIBSOCKET 1
5442_ACEOF
5443
5444 LIBS="-lsocket $LIBS"
5445
5446fi
5447
5448fi
5449
5450
5451if test "x$with_tcp_wrappers" != "xno" ; then
5452 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5453 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5454echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5455if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458 ac_check_lib_save_LIBS=$LIBS
5459LIBS="-lrpc -lyp -lrpc $LIBS"
5460cat >conftest.$ac_ext <<_ACEOF
5461#line $LINENO "configure"
5462#include "confdefs.h"
5463
5464/* Override any gcc2 internal prototype to avoid an error. */
5465#ifdef __cplusplus
5466extern "C"
5467#endif
5468/* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5470char innetgr ();
5471#ifdef F77_DUMMY_MAIN
5472# ifdef __cplusplus
5473 extern "C"
5474# endif
5475 int F77_DUMMY_MAIN() { return 1; }
5476#endif
5477int
5478main ()
5479{
5480innetgr ();
5481 ;
5482 return 0;
5483}
5484_ACEOF
5485rm -f conftest.$ac_objext conftest$ac_exeext
5486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487 (eval $ac_link) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -s conftest$ac_exeext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_lib_rpc_innetgr=yes
5498else
5499 echo "$as_me: failed program was:" >&5
5500cat conftest.$ac_ext >&5
5501ac_cv_lib_rpc_innetgr=no
5502fi
5503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5504LIBS=$ac_check_lib_save_LIBS
5505fi
5506echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5507echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5508if test $ac_cv_lib_rpc_innetgr = yes; then
5509 LIBS="-lrpc -lyp -lrpc $LIBS"
5510fi
5511
5512 fi
5513fi
5514
5515echo "$as_me:$LINENO: checking for getspnam" >&5
5516echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5517if test "${ac_cv_func_getspnam+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5519else
5520 cat >conftest.$ac_ext <<_ACEOF
5521#line $LINENO "configure"
5522#include "confdefs.h"
5523/* System header to define __stub macros and hopefully few prototypes,
5524 which can conflict with char getspnam (); below. */
5525#include <assert.h>
5526/* Override any gcc2 internal prototype to avoid an error. */
5527#ifdef __cplusplus
5528extern "C"
5529#endif
5530/* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5532char getspnam ();
5533char (*f) ();
5534
5535#ifdef F77_DUMMY_MAIN
5536# ifdef __cplusplus
5537 extern "C"
5538# endif
5539 int F77_DUMMY_MAIN() { return 1; }
5540#endif
5541int
5542main ()
5543{
5544/* The GNU C library defines this for functions which it implements
5545 to always fail with ENOSYS. Some functions are actually named
5546 something starting with __ and the normal name is an alias. */
5547#if defined (__stub_getspnam) || defined (__stub___getspnam)
5548choke me
5549#else
5550f = getspnam;
5551#endif
5552
5553 ;
5554 return 0;
5555}
5556_ACEOF
5557rm -f conftest.$ac_objext conftest$ac_exeext
5558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5559 (eval $ac_link) 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try='test -s conftest$ac_exeext'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 ac_cv_func_getspnam=yes
5570else
5571 echo "$as_me: failed program was:" >&5
5572cat conftest.$ac_ext >&5
5573ac_cv_func_getspnam=no
5574fi
5575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5576fi
5577echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5578echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5579if test $ac_cv_func_getspnam = yes; then
5580 :
5581else
5582 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5583echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5584if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 ac_check_lib_save_LIBS=$LIBS
5588LIBS="-lgen $LIBS"
5589cat >conftest.$ac_ext <<_ACEOF
5590#line $LINENO "configure"
5591#include "confdefs.h"
5592
5593/* Override any gcc2 internal prototype to avoid an error. */
5594#ifdef __cplusplus
5595extern "C"
5596#endif
5597/* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599char getspnam ();
5600#ifdef F77_DUMMY_MAIN
5601# ifdef __cplusplus
5602 extern "C"
5603# endif
5604 int F77_DUMMY_MAIN() { return 1; }
5605#endif
5606int
5607main ()
5608{
5609getspnam ();
5610 ;
5611 return 0;
5612}
5613_ACEOF
5614rm -f conftest.$ac_objext conftest$ac_exeext
5615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616 (eval $ac_link) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -s conftest$ac_exeext'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5626 ac_cv_lib_gen_getspnam=yes
5627else
5628 echo "$as_me: failed program was:" >&5
5629cat conftest.$ac_ext >&5
5630ac_cv_lib_gen_getspnam=no
5631fi
5632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5633LIBS=$ac_check_lib_save_LIBS
5634fi
5635echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5636echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5637if test $ac_cv_lib_gen_getspnam = yes; then
5638 LIBS="$LIBS -lgen"
5639fi
5640
5641fi
5642
5643
5644
5645# Check whether --with-rpath or --without-rpath was given.
5646if test "${with_rpath+set}" = set; then
5647 withval="$with_rpath"
5648
5649 if test "x$withval" = "xno" ; then
5650 need_dash_r=""
5651 fi
5652 if test "x$withval" = "xyes" ; then
5653 need_dash_r=1
5654 fi
5655
5656
5657fi;
5658
5659
5660# Check whether --with-zlib or --without-zlib was given.
5661if test "${with_zlib+set}" = set; then
5662 withval="$with_zlib"
5663
5664 if test "x$withval" = "xno" ; then
5665 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5666echo "$as_me: error: *** zlib is required ***" >&2;}
5667 { (exit 1); exit 1; }; }
5668 fi
5669 if test -d "$withval/lib"; then
5670 if test -n "${need_dash_r}"; then
5671 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5672 else
5673 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5674 fi
5675 else
5676 if test -n "${need_dash_r}"; then
5677 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5678 else
5679 LDFLAGS="-L${withval} ${LDFLAGS}"
5680 fi
5681 fi
5682 if test -d "$withval/include"; then
5683 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5684 else
5685 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5686 fi
5687
5688
5689fi;
5690
5691
5692echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5693echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5694if test "${ac_cv_lib_z_deflate+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 ac_check_lib_save_LIBS=$LIBS
5698LIBS="-lz $LIBS"
5699cat >conftest.$ac_ext <<_ACEOF
5700#line $LINENO "configure"
5701#include "confdefs.h"
5702
5703/* Override any gcc2 internal prototype to avoid an error. */
5704#ifdef __cplusplus
5705extern "C"
5706#endif
5707/* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5709char deflate ();
5710#ifdef F77_DUMMY_MAIN
5711# ifdef __cplusplus
5712 extern "C"
5713# endif
5714 int F77_DUMMY_MAIN() { return 1; }
5715#endif
5716int
5717main ()
5718{
5719deflate ();
5720 ;
5721 return 0;
5722}
5723_ACEOF
5724rm -f conftest.$ac_objext conftest$ac_exeext
5725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5726 (eval $ac_link) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -s conftest$ac_exeext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_lib_z_deflate=yes
5737else
5738 echo "$as_me: failed program was:" >&5
5739cat conftest.$ac_ext >&5
5740ac_cv_lib_z_deflate=no
5741fi
5742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5743LIBS=$ac_check_lib_save_LIBS
5744fi
5745echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5746echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5747if test $ac_cv_lib_z_deflate = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749@%:@define HAVE_LIBZ 1
5750_ACEOF
5751
5752 LIBS="-lz $LIBS"
5753
5754else
5755 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5756echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5757 { (exit 1); exit 1; }; }
5758fi
5759
5760
5761echo "$as_me:$LINENO: checking for strcasecmp" >&5
5762echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5763if test "${ac_cv_func_strcasecmp+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766 cat >conftest.$ac_ext <<_ACEOF
5767#line $LINENO "configure"
5768#include "confdefs.h"
5769/* System header to define __stub macros and hopefully few prototypes,
5770 which can conflict with char strcasecmp (); below. */
5771#include <assert.h>
5772/* Override any gcc2 internal prototype to avoid an error. */
5773#ifdef __cplusplus
5774extern "C"
5775#endif
5776/* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5778char strcasecmp ();
5779char (*f) ();
5780
5781#ifdef F77_DUMMY_MAIN
5782# ifdef __cplusplus
5783 extern "C"
5784# endif
5785 int F77_DUMMY_MAIN() { return 1; }
5786#endif
5787int
5788main ()
5789{
5790/* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5794choke me
5795#else
5796f = strcasecmp;
5797#endif
5798
5799 ;
5800 return 0;
5801}
5802_ACEOF
5803rm -f conftest.$ac_objext conftest$ac_exeext
5804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5805 (eval $ac_link) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_cv_func_strcasecmp=yes
5816else
5817 echo "$as_me: failed program was:" >&5
5818cat conftest.$ac_ext >&5
5819ac_cv_func_strcasecmp=no
5820fi
5821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5822fi
5823echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5824echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5825if test $ac_cv_func_strcasecmp = yes; then
5826 :
5827else
5828 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5829echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5830if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 ac_check_lib_save_LIBS=$LIBS
5834LIBS="-lresolv $LIBS"
5835cat >conftest.$ac_ext <<_ACEOF
5836#line $LINENO "configure"
5837#include "confdefs.h"
5838
5839/* Override any gcc2 internal prototype to avoid an error. */
5840#ifdef __cplusplus
5841extern "C"
5842#endif
5843/* We use char because int might match the return type of a gcc2
5844 builtin and then its argument prototype would still apply. */
5845char strcasecmp ();
5846#ifdef F77_DUMMY_MAIN
5847# ifdef __cplusplus
5848 extern "C"
5849# endif
5850 int F77_DUMMY_MAIN() { return 1; }
5851#endif
5852int
5853main ()
5854{
5855strcasecmp ();
5856 ;
5857 return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext conftest$ac_exeext
5861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5862 (eval $ac_link) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -s conftest$ac_exeext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_cv_lib_resolv_strcasecmp=yes
5873else
5874 echo "$as_me: failed program was:" >&5
5875cat conftest.$ac_ext >&5
5876ac_cv_lib_resolv_strcasecmp=no
5877fi
5878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5879LIBS=$ac_check_lib_save_LIBS
5880fi
5881echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5882echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5883if test $ac_cv_lib_resolv_strcasecmp = yes; then
5884 LIBS="$LIBS -lresolv"
5885fi
5886
5887
5888fi
5889
5890echo "$as_me:$LINENO: checking for utimes" >&5
5891echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5892if test "${ac_cv_func_utimes+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895 cat >conftest.$ac_ext <<_ACEOF
5896#line $LINENO "configure"
5897#include "confdefs.h"
5898/* System header to define __stub macros and hopefully few prototypes,
5899 which can conflict with char utimes (); below. */
5900#include <assert.h>
5901/* Override any gcc2 internal prototype to avoid an error. */
5902#ifdef __cplusplus
5903extern "C"
5904#endif
5905/* We use char because int might match the return type of a gcc2
5906 builtin and then its argument prototype would still apply. */
5907char utimes ();
5908char (*f) ();
5909
5910#ifdef F77_DUMMY_MAIN
5911# ifdef __cplusplus
5912 extern "C"
5913# endif
5914 int F77_DUMMY_MAIN() { return 1; }
5915#endif
5916int
5917main ()
5918{
5919/* The GNU C library defines this for functions which it implements
5920 to always fail with ENOSYS. Some functions are actually named
5921 something starting with __ and the normal name is an alias. */
5922#if defined (__stub_utimes) || defined (__stub___utimes)
5923choke me
5924#else
5925f = utimes;
5926#endif
5927
5928 ;
5929 return 0;
5930}
5931_ACEOF
5932rm -f conftest.$ac_objext conftest$ac_exeext
5933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -s conftest$ac_exeext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 ac_cv_func_utimes=yes
5945else
5946 echo "$as_me: failed program was:" >&5
5947cat conftest.$ac_ext >&5
5948ac_cv_func_utimes=no
5949fi
5950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5951fi
5952echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5953echo "${ECHO_T}$ac_cv_func_utimes" >&6
5954if test $ac_cv_func_utimes = yes; then
5955 :
5956else
5957 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5958echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5959if test "${ac_cv_lib_c89_utimes+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962 ac_check_lib_save_LIBS=$LIBS
5963LIBS="-lc89 $LIBS"
5964cat >conftest.$ac_ext <<_ACEOF
5965#line $LINENO "configure"
5966#include "confdefs.h"
5967
5968/* Override any gcc2 internal prototype to avoid an error. */
5969#ifdef __cplusplus
5970extern "C"
5971#endif
5972/* We use char because int might match the return type of a gcc2
5973 builtin and then its argument prototype would still apply. */
5974char utimes ();
5975#ifdef F77_DUMMY_MAIN
5976# ifdef __cplusplus
5977 extern "C"
5978# endif
5979 int F77_DUMMY_MAIN() { return 1; }
5980#endif
5981int
5982main ()
5983{
5984utimes ();
5985 ;
5986 return 0;
5987}
5988_ACEOF
5989rm -f conftest.$ac_objext conftest$ac_exeext
5990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5991 (eval $ac_link) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -s conftest$ac_exeext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_lib_c89_utimes=yes
6002else
6003 echo "$as_me: failed program was:" >&5
6004cat conftest.$ac_ext >&5
6005ac_cv_lib_c89_utimes=no
6006fi
6007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6008LIBS=$ac_check_lib_save_LIBS
6009fi
6010echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
6011echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
6012if test $ac_cv_lib_c89_utimes = yes; then
6013 cat >>confdefs.h <<\_ACEOF
6014@%:@define HAVE_UTIMES 1
6015_ACEOF
6016
6017 LIBS="$LIBS -lc89"
6018fi
6019
6020
6021fi
6022
6023
6024
6025for ac_header in libutil.h
6026do
6027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6028if eval "test \"\${$as_ac_Header+set}\" = set"; then
6029 echo "$as_me:$LINENO: checking for $ac_header" >&5
6030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6031if eval "test \"\${$as_ac_Header+set}\" = set"; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033fi
6034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036else
6037 # Is the header compilable?
6038echo "$as_me:$LINENO: checking $ac_header usability" >&5
6039echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6040cat >conftest.$ac_ext <<_ACEOF
6041#line $LINENO "configure"
6042#include "confdefs.h"
6043$ac_includes_default
6044@%:@include <$ac_header>
6045_ACEOF
6046rm -f conftest.$ac_objext
6047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -s conftest.$ac_objext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6058 ac_header_compiler=yes
6059else
6060 echo "$as_me: failed program was:" >&5
6061cat conftest.$ac_ext >&5
6062ac_header_compiler=no
6063fi
6064rm -f conftest.$ac_objext conftest.$ac_ext
6065echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066echo "${ECHO_T}$ac_header_compiler" >&6
6067
6068# Is the header present?
6069echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6071cat >conftest.$ac_ext <<_ACEOF
6072#line $LINENO "configure"
6073#include "confdefs.h"
6074@%:@include <$ac_header>
6075_ACEOF
6076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6078 ac_status=$?
6079 egrep -v '^ *\+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } >/dev/null; then
6084 if test -s conftest.err; then
6085 ac_cpp_err=$ac_c_preproc_warn_flag
6086 else
6087 ac_cpp_err=
6088 fi
6089else
6090 ac_cpp_err=yes
6091fi
6092if test -z "$ac_cpp_err"; then
6093 ac_header_preproc=yes
6094else
6095 echo "$as_me: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6097 ac_header_preproc=no
6098fi
6099rm -f conftest.err conftest.$ac_ext
6100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6101echo "${ECHO_T}$ac_header_preproc" >&6
6102
6103# So? What about this header?
6104case $ac_header_compiler:$ac_header_preproc in
6105 yes:no )
6106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6110 no:yes )
6111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6117esac
6118echo "$as_me:$LINENO: checking for $ac_header" >&5
6119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6120if eval "test \"\${$as_ac_Header+set}\" = set"; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123 eval "$as_ac_Header=$ac_header_preproc"
6124fi
6125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6127
6128fi
6129if test `eval echo '${'$as_ac_Header'}'` = yes; then
6130 cat >>confdefs.h <<_ACEOF
6131@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6132_ACEOF
6133
6134fi
6135
6136done
6137
6138echo "$as_me:$LINENO: checking for library containing login" >&5
6139echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
6140if test "${ac_cv_search_login+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 ac_func_search_save_LIBS=$LIBS
6144ac_cv_search_login=no
6145cat >conftest.$ac_ext <<_ACEOF
6146#line $LINENO "configure"
6147#include "confdefs.h"
6148
6149/* Override any gcc2 internal prototype to avoid an error. */
6150#ifdef __cplusplus
6151extern "C"
6152#endif
6153/* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6155char login ();
6156#ifdef F77_DUMMY_MAIN
6157# ifdef __cplusplus
6158 extern "C"
6159# endif
6160 int F77_DUMMY_MAIN() { return 1; }
6161#endif
6162int
6163main ()
6164{
6165login ();
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext conftest$ac_exeext
6171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_login="none required"
6183else
6184 echo "$as_me: failed program was:" >&5
6185cat conftest.$ac_ext >&5
6186fi
6187rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6188if test "$ac_cv_search_login" = no; then
6189 for ac_lib in util bsd; do
6190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6191 cat >conftest.$ac_ext <<_ACEOF
6192#line $LINENO "configure"
6193#include "confdefs.h"
6194
6195/* Override any gcc2 internal prototype to avoid an error. */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199/* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201char login ();
6202#ifdef F77_DUMMY_MAIN
6203# ifdef __cplusplus
6204 extern "C"
6205# endif
6206 int F77_DUMMY_MAIN() { return 1; }
6207#endif
6208int
6209main ()
6210{
6211login ();
6212 ;
6213 return 0;
6214}
6215_ACEOF
6216rm -f conftest.$ac_objext conftest$ac_exeext
6217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_search_login="-l$ac_lib"
6229break
6230else
6231 echo "$as_me: failed program was:" >&5
6232cat conftest.$ac_ext >&5
6233fi
6234rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235 done
6236fi
6237LIBS=$ac_func_search_save_LIBS
6238fi
6239echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
6240echo "${ECHO_T}$ac_cv_search_login" >&6
6241if test "$ac_cv_search_login" != no; then
6242 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
6243 cat >>confdefs.h <<\_ACEOF
6244@%:@define HAVE_LOGIN 1
6245_ACEOF
6246
6247fi
6248
6249
6250
6251
6252for ac_func in logout updwtmp logwtmp
6253do
6254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6255echo "$as_me:$LINENO: checking for $ac_func" >&5
6256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6257if eval "test \"\${$as_ac_var+set}\" = set"; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 cat >conftest.$ac_ext <<_ACEOF
6261#line $LINENO "configure"
6262#include "confdefs.h"
6263/* System header to define __stub macros and hopefully few prototypes,
6264 which can conflict with char $ac_func (); below. */
6265#include <assert.h>
6266/* Override any gcc2 internal prototype to avoid an error. */
6267#ifdef __cplusplus
6268extern "C"
6269#endif
6270/* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6272char $ac_func ();
6273char (*f) ();
6274
6275#ifdef F77_DUMMY_MAIN
6276# ifdef __cplusplus
6277 extern "C"
6278# endif
6279 int F77_DUMMY_MAIN() { return 1; }
6280#endif
6281int
6282main ()
6283{
6284/* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6288choke me
6289#else
6290f = $ac_func;
6291#endif
6292
6293 ;
6294 return 0;
6295}
6296_ACEOF
6297rm -f conftest.$ac_objext conftest$ac_exeext
6298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 eval "$as_ac_var=yes"
6310else
6311 echo "$as_me: failed program was:" >&5
6312cat conftest.$ac_ext >&5
6313eval "$as_ac_var=no"
6314fi
6315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6316fi
6317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6319if test `eval echo '${'$as_ac_var'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6322_ACEOF
6323
6324fi
6325done
6326
6327
6328
6329for ac_func in strftime
6330do
6331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6332echo "$as_me:$LINENO: checking for $ac_func" >&5
6333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6334if eval "test \"\${$as_ac_var+set}\" = set"; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337 cat >conftest.$ac_ext <<_ACEOF
6338#line $LINENO "configure"
6339#include "confdefs.h"
6340/* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char $ac_func (); below. */
6342#include <assert.h>
6343/* Override any gcc2 internal prototype to avoid an error. */
6344#ifdef __cplusplus
6345extern "C"
6346#endif
6347/* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349char $ac_func ();
6350char (*f) ();
6351
6352#ifdef F77_DUMMY_MAIN
6353# ifdef __cplusplus
6354 extern "C"
6355# endif
6356 int F77_DUMMY_MAIN() { return 1; }
6357#endif
6358int
6359main ()
6360{
6361/* The GNU C library defines this for functions which it implements
6362 to always fail with ENOSYS. Some functions are actually named
6363 something starting with __ and the normal name is an alias. */
6364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6365choke me
6366#else
6367f = $ac_func;
6368#endif
6369
6370 ;
6371 return 0;
6372}
6373_ACEOF
6374rm -f conftest.$ac_objext conftest$ac_exeext
6375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest$ac_exeext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 eval "$as_ac_var=yes"
6387else
6388 echo "$as_me: failed program was:" >&5
6389cat conftest.$ac_ext >&5
6390eval "$as_ac_var=no"
6391fi
6392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6393fi
6394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6395echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6396if test `eval echo '${'$as_ac_var'}'` = yes; then
6397 cat >>confdefs.h <<_ACEOF
6398@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6399_ACEOF
6400
6401else
6402 # strftime is in -lintl on SCO UNIX.
6403echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6404echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6405if test "${ac_cv_lib_intl_strftime+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407else
6408 ac_check_lib_save_LIBS=$LIBS
6409LIBS="-lintl $LIBS"
6410cat >conftest.$ac_ext <<_ACEOF
6411#line $LINENO "configure"
6412#include "confdefs.h"
6413
6414/* Override any gcc2 internal prototype to avoid an error. */
6415#ifdef __cplusplus
6416extern "C"
6417#endif
6418/* We use char because int might match the return type of a gcc2
6419 builtin and then its argument prototype would still apply. */
6420char strftime ();
6421#ifdef F77_DUMMY_MAIN
6422# ifdef __cplusplus
6423 extern "C"
6424# endif
6425 int F77_DUMMY_MAIN() { return 1; }
6426#endif
6427int
6428main ()
6429{
6430strftime ();
6431 ;
6432 return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext conftest$ac_exeext
6436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437 (eval $ac_link) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -s conftest$ac_exeext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_cv_lib_intl_strftime=yes
6448else
6449 echo "$as_me: failed program was:" >&5
6450cat conftest.$ac_ext >&5
6451ac_cv_lib_intl_strftime=no
6452fi
6453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6454LIBS=$ac_check_lib_save_LIBS
6455fi
6456echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6457echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6458if test $ac_cv_lib_intl_strftime = yes; then
6459 cat >>confdefs.h <<\_ACEOF
6460@%:@define HAVE_STRFTIME 1
6461_ACEOF
6462
6463LIBS="-lintl $LIBS"
6464fi
6465
6466fi
6467done
6468
6469
6470# Check for ALTDIRFUNC glob() extension
6471echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6472echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6473cat >conftest.$ac_ext <<_ACEOF
6474#line $LINENO "configure"
6475#include "confdefs.h"
6476
6477 #include <glob.h>
6478 #ifdef GLOB_ALTDIRFUNC
6479 FOUNDIT
6480 #endif
6481
6482_ACEOF
6483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 egrep "FOUNDIT" >/dev/null 2>&1; then
6485
6486 cat >>confdefs.h <<\_ACEOF
6487@%:@define GLOB_HAS_ALTDIRFUNC 1
6488_ACEOF
6489
6490 echo "$as_me:$LINENO: result: yes" >&5
6491echo "${ECHO_T}yes" >&6
6492
6493else
6494
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497
6498
6499fi
6500rm -f conftest*
6501
6502
6503# Check for g.gl_matchc glob() extension
6504echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6505echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6506cat >conftest.$ac_ext <<_ACEOF
6507#line $LINENO "configure"
6508#include "confdefs.h"
6509
6510 #include <glob.h>
6511 int main(void){glob_t g; g.gl_matchc = 1;}
6512
6513_ACEOF
6514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515 egrep "FOUNDIT" >/dev/null 2>&1; then
6516
6517 cat >>confdefs.h <<\_ACEOF
6518@%:@define GLOB_HAS_GL_MATCHC 1
6519_ACEOF
6520
6521 echo "$as_me:$LINENO: result: yes" >&5
6522echo "${ECHO_T}yes" >&6
6523
6524else
6525
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
6528
6529
6530fi
6531rm -f conftest*
6532
6533
6534echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6535echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6536if test "$cross_compiling" = yes; then
6537 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6538echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6539 { (exit 1); exit 1; }; }
6540else
6541 cat >conftest.$ac_ext <<_ACEOF
6542#line $LINENO "configure"
6543#include "confdefs.h"
6544
6545#include <sys/types.h>
6546#include <dirent.h>
6547int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6548
6549_ACEOF
6550rm -f conftest$ac_exeext
6551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6
6563else
6564 echo "$as_me: program exited with status $ac_status" >&5
6565echo "$as_me: failed program was:" >&5
6566cat conftest.$ac_ext >&5
6567( exit $ac_status )
6568
6569 echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6
6571 cat >>confdefs.h <<\_ACEOF
6572@%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6573_ACEOF
6574
6575
6576
6577fi
6578rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6579fi
6580
6581# Check whether user wants S/Key support
6582SKEY_MSG="no"
6583
6584# Check whether --with-skey or --without-skey was given.
6585if test "${with_skey+set}" = set; then
6586 withval="$with_skey"
6587
6588 if test "x$withval" != "xno" ; then
6589
6590 if test "x$withval" != "xyes" ; then
6591 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6592 LDFLAGS="$LDFLAGS -L${withval}/lib"
6593 fi
6594
6595 cat >>confdefs.h <<\_ACEOF
6596@%:@define SKEY 1
6597_ACEOF
6598
6599 LIBS="-lskey $LIBS"
6600 SKEY_MSG="yes"
6601
6602 echo "$as_me:$LINENO: checking for s/key support" >&5
6603echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6604 if test "$cross_compiling" = yes; then
6605 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6606echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6607 { (exit 1); exit 1; }; }
6608else
6609 cat >conftest.$ac_ext <<_ACEOF
6610#line $LINENO "configure"
6611#include "confdefs.h"
6612
6613#include <stdio.h>
6614#include <skey.h>
6615int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6616
6617_ACEOF
6618rm -f conftest$ac_exeext
6619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6620 (eval $ac_link) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 echo "$as_me:$LINENO: result: yes" >&5
6630echo "${ECHO_T}yes" >&6
6631else
6632 echo "$as_me: program exited with status $ac_status" >&5
6633echo "$as_me: failed program was:" >&5
6634cat conftest.$ac_ext >&5
6635( exit $ac_status )
6636
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
6639 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6640echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6641 { (exit 1); exit 1; }; }
6642
6643fi
6644rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6645fi
6646 fi
6647
6648
6649fi;
6650
6651# Check whether user wants TCP wrappers support
6652TCPW_MSG="no"
6653
6654# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6655if test "${with_tcp_wrappers+set}" = set; then
6656 withval="$with_tcp_wrappers"
6657
6658 if test "x$withval" != "xno" ; then
6659 saved_LIBS="$LIBS"
6660 saved_LDFLAGS="$LDFLAGS"
6661 saved_CPPFLAGS="$CPPFLAGS"
6662 if test -n "${withval}" -a "${withval}" != "yes"; then
6663 if test -d "${withval}/lib"; then
6664 if test -n "${need_dash_r}"; then
6665 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6666 else
6667 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6668 fi
6669 else
6670 if test -n "${need_dash_r}"; then
6671 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6672 else
6673 LDFLAGS="-L${withval} ${LDFLAGS}"
6674 fi
6675 fi
6676 if test -d "${withval}/include"; then
6677 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6678 else
6679 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6680 fi
6681 fi
6682 LIBWRAP="-lwrap"
6683 LIBS="$LIBWRAP $LIBS"
6684 echo "$as_me:$LINENO: checking for libwrap" >&5
6685echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6687#line $LINENO "configure"
6688#include "confdefs.h"
6689
6690#include <tcpd.h>
6691 int deny_severity = 0, allow_severity = 0;
6692
6693#ifdef F77_DUMMY_MAIN
6694# ifdef __cplusplus
6695 extern "C"
6696# endif
6697 int F77_DUMMY_MAIN() { return 1; }
6698#endif
6699int
6700main ()
6701{
6702hosts_access(0);
6703 ;
6704 return 0;
6705}
6706_ACEOF
6707rm -f conftest.$ac_objext conftest$ac_exeext
6708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719
6720 echo "$as_me:$LINENO: result: yes" >&5
6721echo "${ECHO_T}yes" >&6
6722 cat >>confdefs.h <<\_ACEOF
6723@%:@define LIBWRAP 1
6724_ACEOF
6725
6726
6727 TCPW_MSG="yes"
6728
6729else
6730 echo "$as_me: failed program was:" >&5
6731cat conftest.$ac_ext >&5
6732
6733 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6734echo "$as_me: error: *** libwrap missing" >&2;}
6735 { (exit 1); exit 1; }; }
6736
6737
6738fi
6739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6740 LIBS="$saved_LIBS"
6741 fi
6742
6743
6744fi;
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819for ac_func in \
6820 arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \
6821 bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
6822 gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \
6823 getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \
6824 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
6825 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \
6826 readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \
6827 setegid setenv seteuid setgroups setlogin setpcred setproctitle \
6828 setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \
6829 snprintf socketpair strerror strlcat strlcpy strmode strnvis \
6830 sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \
6831
6832do
6833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6834echo "$as_me:$LINENO: checking for $ac_func" >&5
6835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6836if eval "test \"\${$as_ac_var+set}\" = set"; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838else
6839 cat >conftest.$ac_ext <<_ACEOF
6840#line $LINENO "configure"
6841#include "confdefs.h"
6842/* System header to define __stub macros and hopefully few prototypes,
6843 which can conflict with char $ac_func (); below. */
6844#include <assert.h>
6845/* Override any gcc2 internal prototype to avoid an error. */
6846#ifdef __cplusplus
6847extern "C"
6848#endif
6849/* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851char $ac_func ();
6852char (*f) ();
6853
6854#ifdef F77_DUMMY_MAIN
6855# ifdef __cplusplus
6856 extern "C"
6857# endif
6858 int F77_DUMMY_MAIN() { return 1; }
6859#endif
6860int
6861main ()
6862{
6863/* The GNU C library defines this for functions which it implements
6864 to always fail with ENOSYS. Some functions are actually named
6865 something starting with __ and the normal name is an alias. */
6866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6867choke me
6868#else
6869f = $ac_func;
6870#endif
6871
6872 ;
6873 return 0;
6874}
6875_ACEOF
6876rm -f conftest.$ac_objext conftest$ac_exeext
6877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6878 (eval $ac_link) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -s conftest$ac_exeext'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; }; then
6888 eval "$as_ac_var=yes"
6889else
6890 echo "$as_me: failed program was:" >&5
6891cat conftest.$ac_ext >&5
6892eval "$as_ac_var=no"
6893fi
6894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6895fi
6896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6898if test `eval echo '${'$as_ac_var'}'` = yes; then
6899 cat >>confdefs.h <<_ACEOF
6900@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6901_ACEOF
6902
6903fi
6904done
6905
6906
6907echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
6908echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
6909if test "${ac_cv_search_nanosleep+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 ac_func_search_save_LIBS=$LIBS
6913ac_cv_search_nanosleep=no
6914cat >conftest.$ac_ext <<_ACEOF
6915#line $LINENO "configure"
6916#include "confdefs.h"
6917
6918/* Override any gcc2 internal prototype to avoid an error. */
6919#ifdef __cplusplus
6920extern "C"
6921#endif
6922/* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6924char nanosleep ();
6925#ifdef F77_DUMMY_MAIN
6926# ifdef __cplusplus
6927 extern "C"
6928# endif
6929 int F77_DUMMY_MAIN() { return 1; }
6930#endif
6931int
6932main ()
6933{
6934nanosleep ();
6935 ;
6936 return 0;
6937}
6938_ACEOF
6939rm -f conftest.$ac_objext conftest$ac_exeext
6940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -s conftest$ac_exeext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_search_nanosleep="none required"
6952else
6953 echo "$as_me: failed program was:" >&5
6954cat conftest.$ac_ext >&5
6955fi
6956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6957if test "$ac_cv_search_nanosleep" = no; then
6958 for ac_lib in rt posix4; do
6959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6960 cat >conftest.$ac_ext <<_ACEOF
6961#line $LINENO "configure"
6962#include "confdefs.h"
6963
6964/* Override any gcc2 internal prototype to avoid an error. */
6965#ifdef __cplusplus
6966extern "C"
6967#endif
6968/* We use char because int might match the return type of a gcc2
6969 builtin and then its argument prototype would still apply. */
6970char nanosleep ();
6971#ifdef F77_DUMMY_MAIN
6972# ifdef __cplusplus
6973 extern "C"
6974# endif
6975 int F77_DUMMY_MAIN() { return 1; }
6976#endif
6977int
6978main ()
6979{
6980nanosleep ();
6981 ;
6982 return 0;
6983}
6984_ACEOF
6985rm -f conftest.$ac_objext conftest$ac_exeext
6986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987 (eval $ac_link) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -s conftest$ac_exeext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 ac_cv_search_nanosleep="-l$ac_lib"
6998break
6999else
7000 echo "$as_me: failed program was:" >&5
7001cat conftest.$ac_ext >&5
7002fi
7003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7004 done
7005fi
7006LIBS=$ac_func_search_save_LIBS
7007fi
7008echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
7009echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
7010if test "$ac_cv_search_nanosleep" != no; then
7011 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
7012 cat >>confdefs.h <<\_ACEOF
7013@%:@define HAVE_NANOSLEEP 1
7014_ACEOF
7015
7016fi
7017
7018
7019echo "$as_me:$LINENO: checking whether strsep is declared" >&5
7020echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
7021if test "${ac_cv_have_decl_strsep+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024 cat >conftest.$ac_ext <<_ACEOF
7025#line $LINENO "configure"
7026#include "confdefs.h"
7027$ac_includes_default
7028#ifdef F77_DUMMY_MAIN
7029# ifdef __cplusplus
7030 extern "C"
7031# endif
7032 int F77_DUMMY_MAIN() { return 1; }
7033#endif
7034int
7035main ()
7036{
7037#ifndef strsep
7038 char *p = (char *) strsep;
7039#endif
7040
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_have_decl_strsep=yes
7058else
7059 echo "$as_me: failed program was:" >&5
7060cat conftest.$ac_ext >&5
7061ac_cv_have_decl_strsep=no
7062fi
7063rm -f conftest.$ac_objext conftest.$ac_ext
7064fi
7065echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
7066echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
7067if test $ac_cv_have_decl_strsep = yes; then
7068
7069for ac_func in strsep
7070do
7071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7072echo "$as_me:$LINENO: checking for $ac_func" >&5
7073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7074if eval "test \"\${$as_ac_var+set}\" = set"; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077 cat >conftest.$ac_ext <<_ACEOF
7078#line $LINENO "configure"
7079#include "confdefs.h"
7080/* System header to define __stub macros and hopefully few prototypes,
7081 which can conflict with char $ac_func (); below. */
7082#include <assert.h>
7083/* Override any gcc2 internal prototype to avoid an error. */
7084#ifdef __cplusplus
7085extern "C"
7086#endif
7087/* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089char $ac_func ();
7090char (*f) ();
7091
7092#ifdef F77_DUMMY_MAIN
7093# ifdef __cplusplus
7094 extern "C"
7095# endif
7096 int F77_DUMMY_MAIN() { return 1; }
7097#endif
7098int
7099main ()
7100{
7101/* The GNU C library defines this for functions which it implements
7102 to always fail with ENOSYS. Some functions are actually named
7103 something starting with __ and the normal name is an alias. */
7104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7105choke me
7106#else
7107f = $ac_func;
7108#endif
7109
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114rm -f conftest.$ac_objext conftest$ac_exeext
7115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -s conftest$ac_exeext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 eval "$as_ac_var=yes"
7127else
7128 echo "$as_me: failed program was:" >&5
7129cat conftest.$ac_ext >&5
7130eval "$as_ac_var=no"
7131fi
7132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7133fi
7134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7136if test `eval echo '${'$as_ac_var'}'` = yes; then
7137 cat >>confdefs.h <<_ACEOF
7138@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7139_ACEOF
7140
7141fi
7142done
7143
7144fi
7145
7146
7147
7148for ac_func in dirname
7149do
7150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7151echo "$as_me:$LINENO: checking for $ac_func" >&5
7152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7153if eval "test \"\${$as_ac_var+set}\" = set"; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156 cat >conftest.$ac_ext <<_ACEOF
7157#line $LINENO "configure"
7158#include "confdefs.h"
7159/* System header to define __stub macros and hopefully few prototypes,
7160 which can conflict with char $ac_func (); below. */
7161#include <assert.h>
7162/* Override any gcc2 internal prototype to avoid an error. */
7163#ifdef __cplusplus
7164extern "C"
7165#endif
7166/* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7168char $ac_func ();
7169char (*f) ();
7170
7171#ifdef F77_DUMMY_MAIN
7172# ifdef __cplusplus
7173 extern "C"
7174# endif
7175 int F77_DUMMY_MAIN() { return 1; }
7176#endif
7177int
7178main ()
7179{
7180/* The GNU C library defines this for functions which it implements
7181 to always fail with ENOSYS. Some functions are actually named
7182 something starting with __ and the normal name is an alias. */
7183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7184choke me
7185#else
7186f = $ac_func;
7187#endif
7188
7189 ;
7190 return 0;
7191}
7192_ACEOF
7193rm -f conftest.$ac_objext conftest$ac_exeext
7194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195 (eval $ac_link) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 eval "$as_ac_var=yes"
7206else
7207 echo "$as_me: failed program was:" >&5
7208cat conftest.$ac_ext >&5
7209eval "$as_ac_var=no"
7210fi
7211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7212fi
7213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7214echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7215if test `eval echo '${'$as_ac_var'}'` = yes; then
7216 cat >>confdefs.h <<_ACEOF
7217@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7218_ACEOF
7219
7220for ac_header in libgen.h
7221do
7222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7223if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224 echo "$as_me:$LINENO: checking for $ac_header" >&5
7225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7226if eval "test \"\${$as_ac_Header+set}\" = set"; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228fi
7229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7231else
7232 # Is the header compilable?
7233echo "$as_me:$LINENO: checking $ac_header usability" >&5
7234echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7235cat >conftest.$ac_ext <<_ACEOF
7236#line $LINENO "configure"
7237#include "confdefs.h"
7238$ac_includes_default
7239@%:@include <$ac_header>
7240_ACEOF
7241rm -f conftest.$ac_objext
7242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -s conftest.$ac_objext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_header_compiler=yes
7254else
7255 echo "$as_me: failed program was:" >&5
7256cat conftest.$ac_ext >&5
7257ac_header_compiler=no
7258fi
7259rm -f conftest.$ac_objext conftest.$ac_ext
7260echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7261echo "${ECHO_T}$ac_header_compiler" >&6
7262
7263# Is the header present?
7264echo "$as_me:$LINENO: checking $ac_header presence" >&5
7265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7266cat >conftest.$ac_ext <<_ACEOF
7267#line $LINENO "configure"
7268#include "confdefs.h"
7269@%:@include <$ac_header>
7270_ACEOF
7271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7273 ac_status=$?
7274 egrep -v '^ *\+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } >/dev/null; then
7279 if test -s conftest.err; then
7280 ac_cpp_err=$ac_c_preproc_warn_flag
7281 else
7282 ac_cpp_err=
7283 fi
7284else
7285 ac_cpp_err=yes
7286fi
7287if test -z "$ac_cpp_err"; then
7288 ac_header_preproc=yes
7289else
7290 echo "$as_me: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7292 ac_header_preproc=no
7293fi
7294rm -f conftest.err conftest.$ac_ext
7295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7296echo "${ECHO_T}$ac_header_preproc" >&6
7297
7298# So? What about this header?
7299case $ac_header_compiler:$ac_header_preproc in
7300 yes:no )
7301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7305 no:yes )
7306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7312esac
7313echo "$as_me:$LINENO: checking for $ac_header" >&5
7314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7315if eval "test \"\${$as_ac_Header+set}\" = set"; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318 eval "$as_ac_Header=$ac_header_preproc"
7319fi
7320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7322
7323fi
7324if test `eval echo '${'$as_ac_Header'}'` = yes; then
7325 cat >>confdefs.h <<_ACEOF
7326@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7327_ACEOF
7328
7329fi
7330
7331done
7332
7333else
7334
7335 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7336echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7337if test "${ac_cv_lib_gen_dirname+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339else
7340 ac_check_lib_save_LIBS=$LIBS
7341LIBS="-lgen $LIBS"
7342cat >conftest.$ac_ext <<_ACEOF
7343#line $LINENO "configure"
7344#include "confdefs.h"
7345
7346/* Override any gcc2 internal prototype to avoid an error. */
7347#ifdef __cplusplus
7348extern "C"
7349#endif
7350/* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7352char dirname ();
7353#ifdef F77_DUMMY_MAIN
7354# ifdef __cplusplus
7355 extern "C"
7356# endif
7357 int F77_DUMMY_MAIN() { return 1; }
7358#endif
7359int
7360main ()
7361{
7362dirname ();
7363 ;
7364 return 0;
7365}
7366_ACEOF
7367rm -f conftest.$ac_objext conftest$ac_exeext
7368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7369 (eval $ac_link) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try='test -s conftest$ac_exeext'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 (eval $ac_try) 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_lib_gen_dirname=yes
7380else
7381 echo "$as_me: failed program was:" >&5
7382cat conftest.$ac_ext >&5
7383ac_cv_lib_gen_dirname=no
7384fi
7385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7386LIBS=$ac_check_lib_save_LIBS
7387fi
7388echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7389echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7390if test $ac_cv_lib_gen_dirname = yes; then
7391
7392 echo "$as_me:$LINENO: checking for broken dirname" >&5
7393echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7394if test "${ac_cv_have_broken_dirname+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396else
7397
7398 save_LIBS="$LIBS"
7399 LIBS="$LIBS -lgen"
7400 if test "$cross_compiling" = yes; then
7401 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7402echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7403 { (exit 1); exit 1; }; }
7404else
7405 cat >conftest.$ac_ext <<_ACEOF
7406#line $LINENO "configure"
7407#include "confdefs.h"
7408
7409#include <libgen.h>
7410#include <string.h>
7411
7412int main(int argc, char **argv) {
7413 char *s, buf[32];
7414
7415 strncpy(buf,"/etc", 32);
7416 s = dirname(buf);
7417 if (!s || strncmp(s, "/", 32) != 0) {
7418 exit(1);
7419 } else {
7420 exit(0);
7421 }
7422}
7423
7424_ACEOF
7425rm -f conftest$ac_exeext
7426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7427 (eval $ac_link) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_have_broken_dirname="no"
7437else
7438 echo "$as_me: program exited with status $ac_status" >&5
7439echo "$as_me: failed program was:" >&5
7440cat conftest.$ac_ext >&5
7441( exit $ac_status )
7442 ac_cv_have_broken_dirname="yes"
7443
7444fi
7445rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7446fi
7447 LIBS="$save_LIBS"
7448
7449fi
7450echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7451echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7452 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7453 LIBS="$LIBS -lgen"
7454 cat >>confdefs.h <<\_ACEOF
7455@%:@define HAVE_DIRNAME 1
7456_ACEOF
7457
7458
7459for ac_header in libgen.h
7460do
7461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7462if eval "test \"\${$as_ac_Header+set}\" = set"; then
7463 echo "$as_me:$LINENO: checking for $ac_header" >&5
7464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7465if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467fi
7468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7470else
7471 # Is the header compilable?
7472echo "$as_me:$LINENO: checking $ac_header usability" >&5
7473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7474cat >conftest.$ac_ext <<_ACEOF
7475#line $LINENO "configure"
7476#include "confdefs.h"
7477$ac_includes_default
7478@%:@include <$ac_header>
7479_ACEOF
7480rm -f conftest.$ac_objext
7481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -s conftest.$ac_objext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 ac_header_compiler=yes
7493else
7494 echo "$as_me: failed program was:" >&5
7495cat conftest.$ac_ext >&5
7496ac_header_compiler=no
7497fi
7498rm -f conftest.$ac_objext conftest.$ac_ext
7499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7500echo "${ECHO_T}$ac_header_compiler" >&6
7501
7502# Is the header present?
7503echo "$as_me:$LINENO: checking $ac_header presence" >&5
7504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7505cat >conftest.$ac_ext <<_ACEOF
7506#line $LINENO "configure"
7507#include "confdefs.h"
7508@%:@include <$ac_header>
7509_ACEOF
7510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7512 ac_status=$?
7513 egrep -v '^ *\+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } >/dev/null; then
7518 if test -s conftest.err; then
7519 ac_cpp_err=$ac_c_preproc_warn_flag
7520 else
7521 ac_cpp_err=
7522 fi
7523else
7524 ac_cpp_err=yes
7525fi
7526if test -z "$ac_cpp_err"; then
7527 ac_header_preproc=yes
7528else
7529 echo "$as_me: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7531 ac_header_preproc=no
7532fi
7533rm -f conftest.err conftest.$ac_ext
7534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535echo "${ECHO_T}$ac_header_preproc" >&6
7536
7537# So? What about this header?
7538case $ac_header_compiler:$ac_header_preproc in
7539 yes:no )
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7544 no:yes )
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7551esac
7552echo "$as_me:$LINENO: checking for $ac_header" >&5
7553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7554if eval "test \"\${$as_ac_Header+set}\" = set"; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557 eval "$as_ac_Header=$ac_header_preproc"
7558fi
7559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7561
7562fi
7563if test `eval echo '${'$as_ac_Header'}'` = yes; then
7564 cat >>confdefs.h <<_ACEOF
7565@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566_ACEOF
7567
7568fi
7569
7570done
7571
7572 fi
7573
7574fi
7575
7576
7577fi
7578done
7579
7580
7581
7582
7583for ac_func in gettimeofday time
7584do
7585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7586echo "$as_me:$LINENO: checking for $ac_func" >&5
7587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7588if eval "test \"\${$as_ac_var+set}\" = set"; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 cat >conftest.$ac_ext <<_ACEOF
7592#line $LINENO "configure"
7593#include "confdefs.h"
7594/* System header to define __stub macros and hopefully few prototypes,
7595 which can conflict with char $ac_func (); below. */
7596#include <assert.h>
7597/* Override any gcc2 internal prototype to avoid an error. */
7598#ifdef __cplusplus
7599extern "C"
7600#endif
7601/* We use char because int might match the return type of a gcc2
7602 builtin and then its argument prototype would still apply. */
7603char $ac_func ();
7604char (*f) ();
7605
7606#ifdef F77_DUMMY_MAIN
7607# ifdef __cplusplus
7608 extern "C"
7609# endif
7610 int F77_DUMMY_MAIN() { return 1; }
7611#endif
7612int
7613main ()
7614{
7615/* The GNU C library defines this for functions which it implements
7616 to always fail with ENOSYS. Some functions are actually named
7617 something starting with __ and the normal name is an alias. */
7618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7619choke me
7620#else
7621f = $ac_func;
7622#endif
7623
7624 ;
7625 return 0;
7626}
7627_ACEOF
7628rm -f conftest.$ac_objext conftest$ac_exeext
7629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -s conftest$ac_exeext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 eval "$as_ac_var=yes"
7641else
7642 echo "$as_me: failed program was:" >&5
7643cat conftest.$ac_ext >&5
7644eval "$as_ac_var=no"
7645fi
7646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7647fi
7648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7650if test `eval echo '${'$as_ac_var'}'` = yes; then
7651 cat >>confdefs.h <<_ACEOF
7652@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7653_ACEOF
7654
7655fi
7656done
7657
7658
7659
7660
7661
7662
7663
7664for ac_func in endutent getutent getutid getutline pututline setutent
7665do
7666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7667echo "$as_me:$LINENO: checking for $ac_func" >&5
7668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7669if eval "test \"\${$as_ac_var+set}\" = set"; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671else
7672 cat >conftest.$ac_ext <<_ACEOF
7673#line $LINENO "configure"
7674#include "confdefs.h"
7675/* System header to define __stub macros and hopefully few prototypes,
7676 which can conflict with char $ac_func (); below. */
7677#include <assert.h>
7678/* Override any gcc2 internal prototype to avoid an error. */
7679#ifdef __cplusplus
7680extern "C"
7681#endif
7682/* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684char $ac_func ();
7685char (*f) ();
7686
7687#ifdef F77_DUMMY_MAIN
7688# ifdef __cplusplus
7689 extern "C"
7690# endif
7691 int F77_DUMMY_MAIN() { return 1; }
7692#endif
7693int
7694main ()
7695{
7696/* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7700choke me
7701#else
7702f = $ac_func;
7703#endif
7704
7705 ;
7706 return 0;
7707}
7708_ACEOF
7709rm -f conftest.$ac_objext conftest$ac_exeext
7710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -s conftest$ac_exeext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 eval "$as_ac_var=yes"
7722else
7723 echo "$as_me: failed program was:" >&5
7724cat conftest.$ac_ext >&5
7725eval "$as_ac_var=no"
7726fi
7727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7728fi
7729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7731if test `eval echo '${'$as_ac_var'}'` = yes; then
7732 cat >>confdefs.h <<_ACEOF
7733@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7734_ACEOF
7735
7736fi
7737done
7738
7739
7740for ac_func in utmpname
7741do
7742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7743echo "$as_me:$LINENO: checking for $ac_func" >&5
7744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7745if eval "test \"\${$as_ac_var+set}\" = set"; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 cat >conftest.$ac_ext <<_ACEOF
7749#line $LINENO "configure"
7750#include "confdefs.h"
7751/* System header to define __stub macros and hopefully few prototypes,
7752 which can conflict with char $ac_func (); below. */
7753#include <assert.h>
7754/* Override any gcc2 internal prototype to avoid an error. */
7755#ifdef __cplusplus
7756extern "C"
7757#endif
7758/* We use char because int might match the return type of a gcc2
7759 builtin and then its argument prototype would still apply. */
7760char $ac_func ();
7761char (*f) ();
7762
7763#ifdef F77_DUMMY_MAIN
7764# ifdef __cplusplus
7765 extern "C"
7766# endif
7767 int F77_DUMMY_MAIN() { return 1; }
7768#endif
7769int
7770main ()
7771{
7772/* The GNU C library defines this for functions which it implements
7773 to always fail with ENOSYS. Some functions are actually named
7774 something starting with __ and the normal name is an alias. */
7775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7776choke me
7777#else
7778f = $ac_func;
7779#endif
7780
7781 ;
7782 return 0;
7783}
7784_ACEOF
7785rm -f conftest.$ac_objext conftest$ac_exeext
7786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 (eval $ac_try) 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7797 eval "$as_ac_var=yes"
7798else
7799 echo "$as_me: failed program was:" >&5
7800cat conftest.$ac_ext >&5
7801eval "$as_ac_var=no"
7802fi
7803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7804fi
7805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7807if test `eval echo '${'$as_ac_var'}'` = yes; then
7808 cat >>confdefs.h <<_ACEOF
7809@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7810_ACEOF
7811
7812fi
7813done
7814
7815
7816
7817
7818
7819
7820for ac_func in endutxent getutxent getutxid getutxline pututxline
7821do
7822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7823echo "$as_me:$LINENO: checking for $ac_func" >&5
7824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7825if eval "test \"\${$as_ac_var+set}\" = set"; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828 cat >conftest.$ac_ext <<_ACEOF
7829#line $LINENO "configure"
7830#include "confdefs.h"
7831/* System header to define __stub macros and hopefully few prototypes,
7832 which can conflict with char $ac_func (); below. */
7833#include <assert.h>
7834/* Override any gcc2 internal prototype to avoid an error. */
7835#ifdef __cplusplus
7836extern "C"
7837#endif
7838/* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7840char $ac_func ();
7841char (*f) ();
7842
7843#ifdef F77_DUMMY_MAIN
7844# ifdef __cplusplus
7845 extern "C"
7846# endif
7847 int F77_DUMMY_MAIN() { return 1; }
7848#endif
7849int
7850main ()
7851{
7852/* The GNU C library defines this for functions which it implements
7853 to always fail with ENOSYS. Some functions are actually named
7854 something starting with __ and the normal name is an alias. */
7855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7856choke me
7857#else
7858f = $ac_func;
7859#endif
7860
7861 ;
7862 return 0;
7863}
7864_ACEOF
7865rm -f conftest.$ac_objext conftest$ac_exeext
7866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -s conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 eval "$as_ac_var=yes"
7878else
7879 echo "$as_me: failed program was:" >&5
7880cat conftest.$ac_ext >&5
7881eval "$as_ac_var=no"
7882fi
7883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7884fi
7885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7887if test `eval echo '${'$as_ac_var'}'` = yes; then
7888 cat >>confdefs.h <<_ACEOF
7889@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7890_ACEOF
7891
7892fi
7893done
7894
7895
7896
7897for ac_func in setutxent utmpxname
7898do
7899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7900echo "$as_me:$LINENO: checking for $ac_func" >&5
7901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7902if eval "test \"\${$as_ac_var+set}\" = set"; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904else
7905 cat >conftest.$ac_ext <<_ACEOF
7906#line $LINENO "configure"
7907#include "confdefs.h"
7908/* System header to define __stub macros and hopefully few prototypes,
7909 which can conflict with char $ac_func (); below. */
7910#include <assert.h>
7911/* Override any gcc2 internal prototype to avoid an error. */
7912#ifdef __cplusplus
7913extern "C"
7914#endif
7915/* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7917char $ac_func ();
7918char (*f) ();
7919
7920#ifdef F77_DUMMY_MAIN
7921# ifdef __cplusplus
7922 extern "C"
7923# endif
7924 int F77_DUMMY_MAIN() { return 1; }
7925#endif
7926int
7927main ()
7928{
7929/* The GNU C library defines this for functions which it implements
7930 to always fail with ENOSYS. Some functions are actually named
7931 something starting with __ and the normal name is an alias. */
7932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7933choke me
7934#else
7935f = $ac_func;
7936#endif
7937
7938 ;
7939 return 0;
7940}
7941_ACEOF
7942rm -f conftest.$ac_objext conftest$ac_exeext
7943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7944 (eval $ac_link) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -s conftest$ac_exeext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 eval "$as_ac_var=yes"
7955else
7956 echo "$as_me: failed program was:" >&5
7957cat conftest.$ac_ext >&5
7958eval "$as_ac_var=no"
7959fi
7960rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7961fi
7962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7964if test `eval echo '${'$as_ac_var'}'` = yes; then
7965 cat >>confdefs.h <<_ACEOF
7966@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7967_ACEOF
7968
7969fi
7970done
7971
7972
7973echo "$as_me:$LINENO: checking for daemon" >&5
7974echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7975if test "${ac_cv_func_daemon+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977else
7978 cat >conftest.$ac_ext <<_ACEOF
7979#line $LINENO "configure"
7980#include "confdefs.h"
7981/* System header to define __stub macros and hopefully few prototypes,
7982 which can conflict with char daemon (); below. */
7983#include <assert.h>
7984/* Override any gcc2 internal prototype to avoid an error. */
7985#ifdef __cplusplus
7986extern "C"
7987#endif
7988/* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7990char daemon ();
7991char (*f) ();
7992
7993#ifdef F77_DUMMY_MAIN
7994# ifdef __cplusplus
7995 extern "C"
7996# endif
7997 int F77_DUMMY_MAIN() { return 1; }
7998#endif
7999int
8000main ()
8001{
8002/* The GNU C library defines this for functions which it implements
8003 to always fail with ENOSYS. Some functions are actually named
8004 something starting with __ and the normal name is an alias. */
8005#if defined (__stub_daemon) || defined (__stub___daemon)
8006choke me
8007#else
8008f = daemon;
8009#endif
8010
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015rm -f conftest.$ac_objext conftest$ac_exeext
8016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8017 (eval $ac_link) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_cv_func_daemon=yes
8028else
8029 echo "$as_me: failed program was:" >&5
8030cat conftest.$ac_ext >&5
8031ac_cv_func_daemon=no
8032fi
8033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8034fi
8035echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
8036echo "${ECHO_T}$ac_cv_func_daemon" >&6
8037if test $ac_cv_func_daemon = yes; then
8038 cat >>confdefs.h <<\_ACEOF
8039@%:@define HAVE_DAEMON 1
8040_ACEOF
8041
8042else
8043 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
8044echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
8045if test "${ac_cv_lib_bsd_daemon+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048 ac_check_lib_save_LIBS=$LIBS
8049LIBS="-lbsd $LIBS"
8050cat >conftest.$ac_ext <<_ACEOF
8051#line $LINENO "configure"
8052#include "confdefs.h"
8053
8054/* Override any gcc2 internal prototype to avoid an error. */
8055#ifdef __cplusplus
8056extern "C"
8057#endif
8058/* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060char daemon ();
8061#ifdef F77_DUMMY_MAIN
8062# ifdef __cplusplus
8063 extern "C"
8064# endif
8065 int F77_DUMMY_MAIN() { return 1; }
8066#endif
8067int
8068main ()
8069{
8070daemon ();
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075rm -f conftest.$ac_objext conftest$ac_exeext
8076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -s conftest$ac_exeext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_lib_bsd_daemon=yes
8088else
8089 echo "$as_me: failed program was:" >&5
8090cat conftest.$ac_ext >&5
8091ac_cv_lib_bsd_daemon=no
8092fi
8093rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8094LIBS=$ac_check_lib_save_LIBS
8095fi
8096echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
8097echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
8098if test $ac_cv_lib_bsd_daemon = yes; then
8099 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
8100@%:@define HAVE_DAEMON 1
8101_ACEOF
8102
8103fi
8104
8105
8106fi
8107
8108
8109echo "$as_me:$LINENO: checking for getpagesize" >&5
8110echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
8111if test "${ac_cv_func_getpagesize+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8113else
8114 cat >conftest.$ac_ext <<_ACEOF
8115#line $LINENO "configure"
8116#include "confdefs.h"
8117/* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char getpagesize (); below. */
8119#include <assert.h>
8120/* Override any gcc2 internal prototype to avoid an error. */
8121#ifdef __cplusplus
8122extern "C"
8123#endif
8124/* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8126char getpagesize ();
8127char (*f) ();
8128
8129#ifdef F77_DUMMY_MAIN
8130# ifdef __cplusplus
8131 extern "C"
8132# endif
8133 int F77_DUMMY_MAIN() { return 1; }
8134#endif
8135int
8136main ()
8137{
8138/* The GNU C library defines this for functions which it implements
8139 to always fail with ENOSYS. Some functions are actually named
8140 something starting with __ and the normal name is an alias. */
8141#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
8142choke me
8143#else
8144f = getpagesize;
8145#endif
8146
8147 ;
8148 return 0;
8149}
8150_ACEOF
8151rm -f conftest.$ac_objext conftest$ac_exeext
8152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8153 (eval $ac_link) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 ac_cv_func_getpagesize=yes
8164else
8165 echo "$as_me: failed program was:" >&5
8166cat conftest.$ac_ext >&5
8167ac_cv_func_getpagesize=no
8168fi
8169rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8170fi
8171echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
8172echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
8173if test $ac_cv_func_getpagesize = yes; then
8174 cat >>confdefs.h <<\_ACEOF
8175@%:@define HAVE_GETPAGESIZE 1
8176_ACEOF
8177
8178else
8179 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
8180echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
8181if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184 ac_check_lib_save_LIBS=$LIBS
8185LIBS="-lucb $LIBS"
8186cat >conftest.$ac_ext <<_ACEOF
8187#line $LINENO "configure"
8188#include "confdefs.h"
8189
8190/* Override any gcc2 internal prototype to avoid an error. */
8191#ifdef __cplusplus
8192extern "C"
8193#endif
8194/* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
8196char getpagesize ();
8197#ifdef F77_DUMMY_MAIN
8198# ifdef __cplusplus
8199 extern "C"
8200# endif
8201 int F77_DUMMY_MAIN() { return 1; }
8202#endif
8203int
8204main ()
8205{
8206getpagesize ();
8207 ;
8208 return 0;
8209}
8210_ACEOF
8211rm -f conftest.$ac_objext conftest$ac_exeext
8212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213 (eval $ac_link) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_lib_ucb_getpagesize=yes
8224else
8225 echo "$as_me: failed program was:" >&5
8226cat conftest.$ac_ext >&5
8227ac_cv_lib_ucb_getpagesize=no
8228fi
8229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8230LIBS=$ac_check_lib_save_LIBS
8231fi
8232echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
8233echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
8234if test $ac_cv_lib_ucb_getpagesize = yes; then
8235 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
8236@%:@define HAVE_GETPAGESIZE 1
8237_ACEOF
8238
8239fi
8240
8241
8242fi
8243
8244
8245# Check for broken snprintf
8246if test "x$ac_cv_func_snprintf" = "xyes" ; then
8247 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
8248echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
8249 if test "$cross_compiling" = yes; then
8250 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8251echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8252 { (exit 1); exit 1; }; }
8253else
8254 cat >conftest.$ac_ext <<_ACEOF
8255#line $LINENO "configure"
8256#include "confdefs.h"
8257
8258#include <stdio.h>
8259int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
8260
8261_ACEOF
8262rm -f conftest$ac_exeext
8263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
8275else
8276 echo "$as_me: program exited with status $ac_status" >&5
8277echo "$as_me: failed program was:" >&5
8278cat conftest.$ac_ext >&5
8279( exit $ac_status )
8280
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
8283 cat >>confdefs.h <<\_ACEOF
8284@%:@define BROKEN_SNPRINTF 1
8285_ACEOF
8286
8287 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
8288echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
8289
8290
8291fi
8292rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8293fi
8294fi
8295
8296if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
8297echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
8298echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
8299if test "$cross_compiling" = yes; then
8300
8301 echo "$as_me:$LINENO: result: yes" >&5
8302echo "${ECHO_T}yes" >&6
8303 cat >>confdefs.h <<\_ACEOF
8304@%:@define HAVE_STRICT_MKSTEMP 1
8305_ACEOF
8306
8307
8308
8309else
8310 cat >conftest.$ac_ext <<_ACEOF
8311#line $LINENO "configure"
8312#include "confdefs.h"
8313
8314#include <stdlib.h>
8315main() { char template[]="conftest.mkstemp-test";
8316if (mkstemp(template) == -1)
8317 exit(1);
8318unlink(template); exit(0);
8319}
8320
8321_ACEOF
8322rm -f conftest$ac_exeext
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333
8334 echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6
8336
8337else
8338 echo "$as_me: program exited with status $ac_status" >&5
8339echo "$as_me: failed program was:" >&5
8340cat conftest.$ac_ext >&5
8341( exit $ac_status )
8342
8343 echo "$as_me:$LINENO: result: yes" >&5
8344echo "${ECHO_T}yes" >&6
8345 cat >>confdefs.h <<\_ACEOF
8346@%:@define HAVE_STRICT_MKSTEMP 1
8347_ACEOF
8348
8349
8350fi
8351rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8352fi
8353fi
8354
8355echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
8356echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
8357if test "${ac_cv_func_getpgrp_void+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359else
8360 # Use it with a single arg.
8361cat >conftest.$ac_ext <<_ACEOF
8362#line $LINENO "configure"
8363#include "confdefs.h"
8364$ac_includes_default
8365#ifdef F77_DUMMY_MAIN
8366# ifdef __cplusplus
8367 extern "C"
8368# endif
8369 int F77_DUMMY_MAIN() { return 1; }
8370#endif
8371int
8372main ()
8373{
8374getpgrp (0);
8375 ;
8376 return 0;
8377}
8378_ACEOF
8379rm -f conftest.$ac_objext
8380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -s conftest.$ac_objext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_func_getpgrp_void=no
8392else
8393 echo "$as_me: failed program was:" >&5
8394cat conftest.$ac_ext >&5
8395ac_cv_func_getpgrp_void=yes
8396fi
8397rm -f conftest.$ac_objext conftest.$ac_ext
8398
8399fi
8400echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
8401echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
8402if test $ac_cv_func_getpgrp_void = yes; then
8403
8404cat >>confdefs.h <<\_ACEOF
8405@%:@define GETPGRP_VOID 1
8406_ACEOF
8407
8408fi
8409
8410
8411# Check for PAM libs
8412PAM_MSG="no"
8413
8414# Check whether --with-pam or --without-pam was given.
8415if test "${with_pam+set}" = set; then
8416 withval="$with_pam"
8417
8418 if test "x$withval" != "xno" ; then
8419 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
8420 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
8421echo "$as_me: error: PAM headers not found" >&2;}
8422 { (exit 1); exit 1; }; }
8423 fi
8424
8425
8426echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8427echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8428if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431 ac_check_lib_save_LIBS=$LIBS
8432LIBS="-ldl $LIBS"
8433cat >conftest.$ac_ext <<_ACEOF
8434#line $LINENO "configure"
8435#include "confdefs.h"
8436
8437/* Override any gcc2 internal prototype to avoid an error. */
8438#ifdef __cplusplus
8439extern "C"
8440#endif
8441/* We use char because int might match the return type of a gcc2
8442 builtin and then its argument prototype would still apply. */
8443char dlopen ();
8444#ifdef F77_DUMMY_MAIN
8445# ifdef __cplusplus
8446 extern "C"
8447# endif
8448 int F77_DUMMY_MAIN() { return 1; }
8449#endif
8450int
8451main ()
8452{
8453dlopen ();
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext conftest$ac_exeext
8459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460 (eval $ac_link) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_lib_dl_dlopen=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473cat conftest.$ac_ext >&5
8474ac_cv_lib_dl_dlopen=no
8475fi
8476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8477LIBS=$ac_check_lib_save_LIBS
8478fi
8479echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8480echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8481if test $ac_cv_lib_dl_dlopen = yes; then
8482 cat >>confdefs.h <<_ACEOF
8483@%:@define HAVE_LIBDL 1
8484_ACEOF
8485
8486 LIBS="-ldl $LIBS"
8487
8488fi
8489
8490
8491echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
8492echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
8493if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496 ac_check_lib_save_LIBS=$LIBS
8497LIBS="-lpam $LIBS"
8498cat >conftest.$ac_ext <<_ACEOF
8499#line $LINENO "configure"
8500#include "confdefs.h"
8501
8502/* Override any gcc2 internal prototype to avoid an error. */
8503#ifdef __cplusplus
8504extern "C"
8505#endif
8506/* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8508char pam_set_item ();
8509#ifdef F77_DUMMY_MAIN
8510# ifdef __cplusplus
8511 extern "C"
8512# endif
8513 int F77_DUMMY_MAIN() { return 1; }
8514#endif
8515int
8516main ()
8517{
8518pam_set_item ();
8519 ;
8520 return 0;
8521}
8522_ACEOF
8523rm -f conftest.$ac_objext conftest$ac_exeext
8524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_lib_pam_pam_set_item=yes
8536else
8537 echo "$as_me: failed program was:" >&5
8538cat conftest.$ac_ext >&5
8539ac_cv_lib_pam_pam_set_item=no
8540fi
8541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8542LIBS=$ac_check_lib_save_LIBS
8543fi
8544echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
8545echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
8546if test $ac_cv_lib_pam_pam_set_item = yes; then
8547 cat >>confdefs.h <<_ACEOF
8548@%:@define HAVE_LIBPAM 1
8549_ACEOF
8550
8551 LIBS="-lpam $LIBS"
8552
8553else
8554 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
8555echo "$as_me: error: *** libpam missing" >&2;}
8556 { (exit 1); exit 1; }; }
8557fi
8558
8559
8560for ac_func in pam_getenvlist
8561do
8562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8563echo "$as_me:$LINENO: checking for $ac_func" >&5
8564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8565if eval "test \"\${$as_ac_var+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568 cat >conftest.$ac_ext <<_ACEOF
8569#line $LINENO "configure"
8570#include "confdefs.h"
8571/* System header to define __stub macros and hopefully few prototypes,
8572 which can conflict with char $ac_func (); below. */
8573#include <assert.h>
8574/* Override any gcc2 internal prototype to avoid an error. */
8575#ifdef __cplusplus
8576extern "C"
8577#endif
8578/* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8580char $ac_func ();
8581char (*f) ();
8582
8583#ifdef F77_DUMMY_MAIN
8584# ifdef __cplusplus
8585 extern "C"
8586# endif
8587 int F77_DUMMY_MAIN() { return 1; }
8588#endif
8589int
8590main ()
8591{
8592/* The GNU C library defines this for functions which it implements
8593 to always fail with ENOSYS. Some functions are actually named
8594 something starting with __ and the normal name is an alias. */
8595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8596choke me
8597#else
8598f = $ac_func;
8599#endif
8600
8601 ;
8602 return 0;
8603}
8604_ACEOF
8605rm -f conftest.$ac_objext conftest$ac_exeext
8606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607 (eval $ac_link) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 eval "$as_ac_var=yes"
8618else
8619 echo "$as_me: failed program was:" >&5
8620cat conftest.$ac_ext >&5
8621eval "$as_ac_var=no"
8622fi
8623rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8624fi
8625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8627if test `eval echo '${'$as_ac_var'}'` = yes; then
8628 cat >>confdefs.h <<_ACEOF
8629@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8630_ACEOF
8631
8632fi
8633done
8634
8635
8636 disable_shadow=yes
8637 PAM_MSG="yes"
8638
8639 cat >>confdefs.h <<\_ACEOF
8640@%:@define USE_PAM 1
8641_ACEOF
8642
8643 if test $ac_cv_lib_dl_dlopen = yes; then
8644 LIBPAM="-lpam -ldl"
8645 else
8646 LIBPAM="-lpam"
8647 fi
8648
8649 fi
8650
8651
8652fi;
8653
8654# Check for older PAM
8655if test "x$PAM_MSG" = "xyes" ; then
8656 # Check PAM strerror arguments (old PAM)
8657 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
8658echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660#line $LINENO "configure"
8661#include "confdefs.h"
8662
8663#include <stdlib.h>
8664#include <security/pam_appl.h>
8665
8666#ifdef F77_DUMMY_MAIN
8667# ifdef __cplusplus
8668 extern "C"
8669# endif
8670 int F77_DUMMY_MAIN() { return 1; }
8671#endif
8672int
8673main ()
8674{
8675(void)pam_strerror((pam_handle_t *)NULL, -1);
8676 ;
8677 return 0;
8678}
8679_ACEOF
8680rm -f conftest.$ac_objext
8681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682 (eval $ac_compile) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -s conftest.$ac_objext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 echo "$as_me:$LINENO: result: no" >&5
8693echo "${ECHO_T}no" >&6
8694else
8695 echo "$as_me: failed program was:" >&5
8696cat conftest.$ac_ext >&5
8697
8698 cat >>confdefs.h <<\_ACEOF
8699@%:@define HAVE_OLD_PAM 1
8700_ACEOF
8701
8702 echo "$as_me:$LINENO: result: yes" >&5
8703echo "${ECHO_T}yes" >&6
8704 PAM_MSG="yes (old library)"
8705
8706
8707fi
8708rm -f conftest.$ac_objext conftest.$ac_ext
8709fi
8710
8711# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
8712# because the system crypt() is more featureful.
8713if test "x$check_for_libcrypt_before" = "x1"; then
8714
8715echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8716echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8717if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8719else
8720 ac_check_lib_save_LIBS=$LIBS
8721LIBS="-lcrypt $LIBS"
8722cat >conftest.$ac_ext <<_ACEOF
8723#line $LINENO "configure"
8724#include "confdefs.h"
8725
8726/* Override any gcc2 internal prototype to avoid an error. */
8727#ifdef __cplusplus
8728extern "C"
8729#endif
8730/* We use char because int might match the return type of a gcc2
8731 builtin and then its argument prototype would still apply. */
8732char crypt ();
8733#ifdef F77_DUMMY_MAIN
8734# ifdef __cplusplus
8735 extern "C"
8736# endif
8737 int F77_DUMMY_MAIN() { return 1; }
8738#endif
8739int
8740main ()
8741{
8742crypt ();
8743 ;
8744 return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext conftest$ac_exeext
8748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749 (eval $ac_link) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -s conftest$ac_exeext'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 (eval $ac_try) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 ac_cv_lib_crypt_crypt=yes
8760else
8761 echo "$as_me: failed program was:" >&5
8762cat conftest.$ac_ext >&5
8763ac_cv_lib_crypt_crypt=no
8764fi
8765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8766LIBS=$ac_check_lib_save_LIBS
8767fi
8768echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8769echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8770if test $ac_cv_lib_crypt_crypt = yes; then
8771 cat >>confdefs.h <<_ACEOF
8772@%:@define HAVE_LIBCRYPT 1
8773_ACEOF
8774
8775 LIBS="-lcrypt $LIBS"
8776
8777fi
8778
8779fi
8780
8781# Search for OpenSSL
8782saved_CPPFLAGS="$CPPFLAGS"
8783saved_LDFLAGS="$LDFLAGS"
8784
8785# Check whether --with-ssl-dir or --without-ssl-dir was given.
8786if test "${with_ssl_dir+set}" = set; then
8787 withval="$with_ssl_dir"
8788
8789 if test "x$withval" != "xno" ; then
8790 if test -d "$withval/lib"; then
8791 if test -n "${need_dash_r}"; then
8792 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8793 else
8794 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8795 fi
8796 else
8797 if test -n "${need_dash_r}"; then
8798 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8799 else
8800 LDFLAGS="-L${withval} ${LDFLAGS}"
8801 fi
8802 fi
8803 if test -d "$withval/include"; then
8804 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8805 else
8806 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8807 fi
8808 fi
8809
8810
8811fi;
8812LIBS="$LIBS -lcrypto"
8813cat >conftest.$ac_ext <<_ACEOF
8814#line $LINENO "configure"
8815#include "confdefs.h"
8816
8817/* Override any gcc2 internal prototype to avoid an error. */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821/* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8823char RAND_add ();
8824#ifdef F77_DUMMY_MAIN
8825# ifdef __cplusplus
8826 extern "C"
8827# endif
8828 int F77_DUMMY_MAIN() { return 1; }
8829#endif
8830int
8831main ()
8832{
8833RAND_add ();
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext conftest$ac_exeext
8839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 cat >>confdefs.h <<\_ACEOF
8851@%:@define HAVE_OPENSSL 1
8852_ACEOF
8853
8854else
8855 echo "$as_me: failed program was:" >&5
8856cat conftest.$ac_ext >&5
8857
8858 if test -n "${need_dash_r}"; then
8859 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8860 else
8861 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8862 fi
8863 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8864 cat >conftest.$ac_ext <<_ACEOF
8865#line $LINENO "configure"
8866#include "confdefs.h"
8867
8868/* Override any gcc2 internal prototype to avoid an error. */
8869#ifdef __cplusplus
8870extern "C"
8871#endif
8872/* We use char because int might match the return type of a gcc2
8873 builtin and then its argument prototype would still apply. */
8874char RAND_add ();
8875#ifdef F77_DUMMY_MAIN
8876# ifdef __cplusplus
8877 extern "C"
8878# endif
8879 int F77_DUMMY_MAIN() { return 1; }
8880#endif
8881int
8882main ()
8883{
8884RAND_add ();
8885 ;
8886 return 0;
8887}
8888_ACEOF
8889rm -f conftest.$ac_objext conftest$ac_exeext
8890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -s conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 cat >>confdefs.h <<\_ACEOF
8902@%:@define HAVE_OPENSSL 1
8903_ACEOF
8904
8905else
8906 echo "$as_me: failed program was:" >&5
8907cat conftest.$ac_ext >&5
8908
8909 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8910echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8911 { (exit 1); exit 1; }; }
8912
8913
8914fi
8915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8916
8917
8918fi
8919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8920
8921# Determine OpenSSL header version
8922echo "$as_me:$LINENO: checking OpenSSL header version" >&5
8923echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
8924if test "$cross_compiling" = yes; then
8925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8926echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8927 { (exit 1); exit 1; }; }
8928else
8929 cat >conftest.$ac_ext <<_ACEOF
8930#line $LINENO "configure"
8931#include "confdefs.h"
8932
8933#include <stdio.h>
8934#include <string.h>
8935#include <openssl/opensslv.h>
8936#define DATA "conftest.sslincver"
8937int main(void) {
8938 FILE *fd;
8939 int rc;
8940
8941 fd = fopen(DATA,"w");
8942 if(fd == NULL)
8943 exit(1);
8944
8945 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
8946 exit(1);
8947
8948 exit(0);
8949}
8950
8951_ACEOF
8952rm -f conftest$ac_exeext
8953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963
8964 ssl_header_ver=`cat conftest.sslincver`
8965 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
8966echo "${ECHO_T}$ssl_header_ver" >&6
8967
8968else
8969 echo "$as_me: program exited with status $ac_status" >&5
8970echo "$as_me: failed program was:" >&5
8971cat conftest.$ac_ext >&5
8972( exit $ac_status )
8973
8974 echo "$as_me:$LINENO: result: not found" >&5
8975echo "${ECHO_T}not found" >&6
8976 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
8977echo "$as_me: error: OpenSSL version header not found." >&2;}
8978 { (exit 1); exit 1; }; }
8979
8980
8981fi
8982rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8983fi
8984
8985# Determine OpenSSL library version
8986echo "$as_me:$LINENO: checking OpenSSL library version" >&5
8987echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
8988if test "$cross_compiling" = yes; then
8989 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8990echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8991 { (exit 1); exit 1; }; }
8992else
8993 cat >conftest.$ac_ext <<_ACEOF
8994#line $LINENO "configure"
8995#include "confdefs.h"
8996
8997#include <stdio.h>
8998#include <string.h>
8999#include <openssl/opensslv.h>
9000#include <openssl/crypto.h>
9001#define DATA "conftest.ssllibver"
9002int main(void) {
9003 FILE *fd;
9004 int rc;
9005
9006 fd = fopen(DATA,"w");
9007 if(fd == NULL)
9008 exit(1);
9009
9010 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
9011 exit(1);
9012
9013 exit(0);
9014}
9015
9016_ACEOF
9017rm -f conftest$ac_exeext
9018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028
9029 ssl_library_ver=`cat conftest.ssllibver`
9030 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
9031echo "${ECHO_T}$ssl_library_ver" >&6
9032
9033else
9034 echo "$as_me: program exited with status $ac_status" >&5
9035echo "$as_me: failed program was:" >&5
9036cat conftest.$ac_ext >&5
9037( exit $ac_status )
9038
9039 echo "$as_me:$LINENO: result: not found" >&5
9040echo "${ECHO_T}not found" >&6
9041 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
9042echo "$as_me: error: OpenSSL library not found." >&2;}
9043 { (exit 1); exit 1; }; }
9044
9045
9046fi
9047rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9048fi
9049
9050# Sanity check OpenSSL headers
9051echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
9052echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
9053if test "$cross_compiling" = yes; then
9054 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9055echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9056 { (exit 1); exit 1; }; }
9057else
9058 cat >conftest.$ac_ext <<_ACEOF
9059#line $LINENO "configure"
9060#include "confdefs.h"
9061
9062#include <string.h>
9063#include <openssl/opensslv.h>
9064int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
9065
9066_ACEOF
9067rm -f conftest$ac_exeext
9068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069 (eval $ac_link) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078
9079 echo "$as_me:$LINENO: result: yes" >&5
9080echo "${ECHO_T}yes" >&6
9081
9082else
9083 echo "$as_me: program exited with status $ac_status" >&5
9084echo "$as_me: failed program was:" >&5
9085cat conftest.$ac_ext >&5
9086( exit $ac_status )
9087
9088 echo "$as_me:$LINENO: result: no" >&5
9089echo "${ECHO_T}no" >&6
9090 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
9091echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
9092 { (exit 1); exit 1; }; }
9093
9094
9095fi
9096rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9097fi
9098
9099# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
9100# version in OpenSSL. Skip this for PAM
9101if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
9102 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9103echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9104if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106else
9107 ac_check_lib_save_LIBS=$LIBS
9108LIBS="-lcrypt $LIBS"
9109cat >conftest.$ac_ext <<_ACEOF
9110#line $LINENO "configure"
9111#include "confdefs.h"
9112
9113/* Override any gcc2 internal prototype to avoid an error. */
9114#ifdef __cplusplus
9115extern "C"
9116#endif
9117/* We use char because int might match the return type of a gcc2
9118 builtin and then its argument prototype would still apply. */
9119char crypt ();
9120#ifdef F77_DUMMY_MAIN
9121# ifdef __cplusplus
9122 extern "C"
9123# endif
9124 int F77_DUMMY_MAIN() { return 1; }
9125#endif
9126int
9127main ()
9128{
9129crypt ();
9130 ;
9131 return 0;
9132}
9133_ACEOF
9134rm -f conftest.$ac_objext conftest$ac_exeext
9135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_lib_crypt_crypt=yes
9147else
9148 echo "$as_me: failed program was:" >&5
9149cat conftest.$ac_ext >&5
9150ac_cv_lib_crypt_crypt=no
9151fi
9152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9153LIBS=$ac_check_lib_save_LIBS
9154fi
9155echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9156echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9157if test $ac_cv_lib_crypt_crypt = yes; then
9158 LIBS="$LIBS -lcrypt"
9159fi
9160
9161fi
9162
9163
9164### Configure cryptographic random number support
9165
9166# Check wheter OpenSSL seeds itself
9167echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
9168echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
9169if test "$cross_compiling" = yes; then
9170 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9171echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9172 { (exit 1); exit 1; }; }
9173else
9174 cat >conftest.$ac_ext <<_ACEOF
9175#line $LINENO "configure"
9176#include "confdefs.h"
9177
9178#include <string.h>
9179#include <openssl/rand.h>
9180int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
9181
9182_ACEOF
9183rm -f conftest$ac_exeext
9184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194
9195 OPENSSL_SEEDS_ITSELF=yes
9196 echo "$as_me:$LINENO: result: yes" >&5
9197echo "${ECHO_T}yes" >&6
9198
9199else
9200 echo "$as_me: program exited with status $ac_status" >&5
9201echo "$as_me: failed program was:" >&5
9202cat conftest.$ac_ext >&5
9203( exit $ac_status )
9204
9205 echo "$as_me:$LINENO: result: no" >&5
9206echo "${ECHO_T}no" >&6
9207 # Default to use of the rand helper if OpenSSL doesn't
9208 # seed itself
9209 USE_RAND_HELPER=yes
9210
9211
9212fi
9213rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9214fi
9215
9216
9217# Do we want to force the use of the rand helper?
9218
9219# Check whether --with-rand-helper or --without-rand-helper was given.
9220if test "${with_rand_helper+set}" = set; then
9221 withval="$with_rand_helper"
9222
9223 if test "x$withval" = "xno" ; then
9224 # Force use of OpenSSL's internal RNG, even if
9225 # the previous test showed it to be unseeded.
9226 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
9227 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
9228echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
9229 OPENSSL_SEEDS_ITSELF=yes
9230 USE_RAND_HELPER=""
9231 fi
9232 else
9233 USE_RAND_HELPER=yes
9234 fi
9235
9236fi;
9237
9238# Which randomness source do we use?
9239if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
9240 # OpenSSL only
9241 cat >>confdefs.h <<\_ACEOF
9242@%:@define OPENSSL_PRNG_ONLY 1
9243_ACEOF
9244
9245 RAND_MSG="OpenSSL internal ONLY"
9246 INSTALL_SSH_RAND_HELPER=""
9247elif test ! -z "$USE_RAND_HELPER" ; then
9248 # install rand helper
9249 RAND_MSG="ssh-rand-helper"
9250 INSTALL_SSH_RAND_HELPER="yes"
9251fi
9252
9253
9254### Configuration of ssh-rand-helper
9255
9256# PRNGD TCP socket
9257
9258# Check whether --with-prngd-port or --without-prngd-port was given.
9259if test "${with_prngd_port+set}" = set; then
9260 withval="$with_prngd_port"
9261
9262 case "$withval" in
9263 no)
9264 withval=""
9265 ;;
9266 [0-9]*)
9267 ;;
9268 *)
9269 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
9270echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
9271 { (exit 1); exit 1; }; }
9272 ;;
9273 esac
9274 if test ! -z "$withval" ; then
9275 PRNGD_PORT="$withval"
9276 cat >>confdefs.h <<_ACEOF
9277@%:@define PRNGD_PORT $PRNGD_PORT
9278_ACEOF
9279
9280 fi
9281
9282
9283fi;
9284
9285# PRNGD Unix domain socket
9286
9287# Check whether --with-prngd-socket or --without-prngd-socket was given.
9288if test "${with_prngd_socket+set}" = set; then
9289 withval="$with_prngd_socket"
9290
9291 case "$withval" in
9292 yes)
9293 withval="/var/run/egd-pool"
9294 ;;
9295 no)
9296 withval=""
9297 ;;
9298 /*)
9299 ;;
9300 *)
9301 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
9302echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
9303 { (exit 1); exit 1; }; }
9304 ;;
9305 esac
9306
9307 if test ! -z "$withval" ; then
9308 if test ! -z "$PRNGD_PORT" ; then
9309 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
9310echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
9311 { (exit 1); exit 1; }; }
9312 fi
9313 if test ! -r "$withval" ; then
9314 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
9315echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
9316 fi
9317 PRNGD_SOCKET="$withval"
9318 cat >>confdefs.h <<_ACEOF
9319@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
9320_ACEOF
9321
9322 fi
9323
9324else
9325
9326 # Check for existing socket only if we don't have a random device already
9327 if test "$USE_RAND_HELPER" = yes ; then
9328 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
9329echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
9330 # Insert other locations here
9331 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
9332 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
9333 PRNGD_SOCKET="$sock"
9334 cat >>confdefs.h <<_ACEOF
9335@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
9336_ACEOF
9337
9338 break;
9339 fi
9340 done
9341 if test ! -z "$PRNGD_SOCKET" ; then
9342 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
9343echo "${ECHO_T}$PRNGD_SOCKET" >&6
9344 else
9345 echo "$as_me:$LINENO: result: not found" >&5
9346echo "${ECHO_T}not found" >&6
9347 fi
9348 fi
9349
9350
9351fi;
9352
9353# Change default command timeout for hashing entropy source
9354entropy_timeout=200
9355
9356# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
9357if test "${with_entropy_timeout+set}" = set; then
9358 withval="$with_entropy_timeout"
9359
9360 if test "x$withval" != "xno" ; then
9361 entropy_timeout=$withval
9362 fi
9363
9364
9365fi;
9366cat >>confdefs.h <<_ACEOF
9367@%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
9368_ACEOF
9369
9370
9371SSH_PRIVSEP_USER=sshd
9372
9373# Check whether --with-privsep-user or --without-privsep-user was given.
9374if test "${with_privsep_user+set}" = set; then
9375 withval="$with_privsep_user"
9376
9377 if test -n "$withval"; then
9378 SSH_PRIVSEP_USER=$withval
9379 fi
9380
9381
9382fi;
9383cat >>confdefs.h <<_ACEOF
9384@%:@define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
9385_ACEOF
9386
9387
9388
9389# We do this little dance with the search path to insure
9390# that programs that we select for use by installed programs
9391# (which may be run by the super-user) come from trusted
9392# locations before they come from the user's private area.
9393# This should help avoid accidentally configuring some
9394# random version of a program in someone's personal bin.
9395
9396OPATH=$PATH
9397PATH=/bin:/usr/bin
9398test -h /bin 2> /dev/null && PATH=/usr/bin
9399test -d /sbin && PATH=$PATH:/sbin
9400test -d /usr/sbin && PATH=$PATH:/usr/sbin
9401PATH=$PATH:/etc:$OPATH
9402
9403# These programs are used by the command hashing source to gather entropy
9404
9405 # Extract the first word of "ls", so it can be a program name with args.
9406set dummy ls; ac_word=$2
9407echo "$as_me:$LINENO: checking for $ac_word" >&5
9408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9409if test "${ac_cv_path_PROG_LS+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412 case $PROG_LS in
9413 [\\/]* | ?:[\\/]*)
9414 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
9415 ;;
9416 *)
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
9425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428done
9429done
9430
9431 ;;
9432esac
9433fi
9434PROG_LS=$ac_cv_path_PROG_LS
9435
9436if test -n "$PROG_LS"; then
9437 echo "$as_me:$LINENO: result: $PROG_LS" >&5
9438echo "${ECHO_T}$PROG_LS" >&6
9439else
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
9442fi
9443
9444 if test -z "$PROG_LS" ; then
9445 PROG_LS="undef"
9446 fi
9447
9448
9449
9450 # Extract the first word of "netstat", so it can be a program name with args.
9451set dummy netstat; ac_word=$2
9452echo "$as_me:$LINENO: checking for $ac_word" >&5
9453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9454if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 case $PROG_NETSTAT in
9458 [\\/]* | ?:[\\/]*)
9459 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
9460 ;;
9461 *)
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
9470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9472 fi
9473done
9474done
9475
9476 ;;
9477esac
9478fi
9479PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
9480
9481if test -n "$PROG_NETSTAT"; then
9482 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
9483echo "${ECHO_T}$PROG_NETSTAT" >&6
9484else
9485 echo "$as_me:$LINENO: result: no" >&5
9486echo "${ECHO_T}no" >&6
9487fi
9488
9489 if test -z "$PROG_NETSTAT" ; then
9490 PROG_NETSTAT="undef"
9491 fi
9492
9493
9494
9495 # Extract the first word of "arp", so it can be a program name with args.
9496set dummy arp; ac_word=$2
9497echo "$as_me:$LINENO: checking for $ac_word" >&5
9498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9499if test "${ac_cv_path_PROG_ARP+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501else
9502 case $PROG_ARP in
9503 [\\/]* | ?:[\\/]*)
9504 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
9505 ;;
9506 *)
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
9515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9517 fi
9518done
9519done
9520
9521 ;;
9522esac
9523fi
9524PROG_ARP=$ac_cv_path_PROG_ARP
9525
9526if test -n "$PROG_ARP"; then
9527 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
9528echo "${ECHO_T}$PROG_ARP" >&6
9529else
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532fi
9533
9534 if test -z "$PROG_ARP" ; then
9535 PROG_ARP="undef"
9536 fi
9537
9538
9539
9540 # Extract the first word of "ifconfig", so it can be a program name with args.
9541set dummy ifconfig; ac_word=$2
9542echo "$as_me:$LINENO: checking for $ac_word" >&5
9543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9544if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547 case $PROG_IFCONFIG in
9548 [\\/]* | ?:[\\/]*)
9549 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
9550 ;;
9551 *)
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553for as_dir in $PATH
9554do
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
9560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 break 2
9562 fi
9563done
9564done
9565
9566 ;;
9567esac
9568fi
9569PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
9570
9571if test -n "$PROG_IFCONFIG"; then
9572 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
9573echo "${ECHO_T}$PROG_IFCONFIG" >&6
9574else
9575 echo "$as_me:$LINENO: result: no" >&5
9576echo "${ECHO_T}no" >&6
9577fi
9578
9579 if test -z "$PROG_IFCONFIG" ; then
9580 PROG_IFCONFIG="undef"
9581 fi
9582
9583
9584
9585 # Extract the first word of "jstat", so it can be a program name with args.
9586set dummy jstat; ac_word=$2
9587echo "$as_me:$LINENO: checking for $ac_word" >&5
9588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9589if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592 case $PROG_JSTAT in
9593 [\\/]* | ?:[\\/]*)
9594 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
9595 ;;
9596 *)
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598for as_dir in $PATH
9599do
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9604 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
9605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 break 2
9607 fi
9608done
9609done
9610
9611 ;;
9612esac
9613fi
9614PROG_JSTAT=$ac_cv_path_PROG_JSTAT
9615
9616if test -n "$PROG_JSTAT"; then
9617 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
9618echo "${ECHO_T}$PROG_JSTAT" >&6
9619else
9620 echo "$as_me:$LINENO: result: no" >&5
9621echo "${ECHO_T}no" >&6
9622fi
9623
9624 if test -z "$PROG_JSTAT" ; then
9625 PROG_JSTAT="undef"
9626 fi
9627
9628
9629
9630 # Extract the first word of "ps", so it can be a program name with args.
9631set dummy ps; ac_word=$2
9632echo "$as_me:$LINENO: checking for $ac_word" >&5
9633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9634if test "${ac_cv_path_PROG_PS+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637 case $PROG_PS in
9638 [\\/]* | ?:[\\/]*)
9639 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
9640 ;;
9641 *)
9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643for as_dir in $PATH
9644do
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
9647 for ac_exec_ext in '' $ac_executable_extensions; do
9648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9649 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
9650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 break 2
9652 fi
9653done
9654done
9655
9656 ;;
9657esac
9658fi
9659PROG_PS=$ac_cv_path_PROG_PS
9660
9661if test -n "$PROG_PS"; then
9662 echo "$as_me:$LINENO: result: $PROG_PS" >&5
9663echo "${ECHO_T}$PROG_PS" >&6
9664else
9665 echo "$as_me:$LINENO: result: no" >&5
9666echo "${ECHO_T}no" >&6
9667fi
9668
9669 if test -z "$PROG_PS" ; then
9670 PROG_PS="undef"
9671 fi
9672
9673
9674
9675 # Extract the first word of "sar", so it can be a program name with args.
9676set dummy sar; ac_word=$2
9677echo "$as_me:$LINENO: checking for $ac_word" >&5
9678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9679if test "${ac_cv_path_PROG_SAR+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681else
9682 case $PROG_SAR in
9683 [\\/]* | ?:[\\/]*)
9684 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
9685 ;;
9686 *)
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688for as_dir in $PATH
9689do
9690 IFS=$as_save_IFS
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
9695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9696 break 2
9697 fi
9698done
9699done
9700
9701 ;;
9702esac
9703fi
9704PROG_SAR=$ac_cv_path_PROG_SAR
9705
9706if test -n "$PROG_SAR"; then
9707 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
9708echo "${ECHO_T}$PROG_SAR" >&6
9709else
9710 echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
9712fi
9713
9714 if test -z "$PROG_SAR" ; then
9715 PROG_SAR="undef"
9716 fi
9717
9718
9719
9720 # Extract the first word of "w", so it can be a program name with args.
9721set dummy w; ac_word=$2
9722echo "$as_me:$LINENO: checking for $ac_word" >&5
9723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9724if test "${ac_cv_path_PROG_W+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726else
9727 case $PROG_W in
9728 [\\/]* | ?:[\\/]*)
9729 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
9730 ;;
9731 *)
9732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733for as_dir in $PATH
9734do
9735 IFS=$as_save_IFS
9736 test -z "$as_dir" && as_dir=.
9737 for ac_exec_ext in '' $ac_executable_extensions; do
9738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9739 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
9740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 break 2
9742 fi
9743done
9744done
9745
9746 ;;
9747esac
9748fi
9749PROG_W=$ac_cv_path_PROG_W
9750
9751if test -n "$PROG_W"; then
9752 echo "$as_me:$LINENO: result: $PROG_W" >&5
9753echo "${ECHO_T}$PROG_W" >&6
9754else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757fi
9758
9759 if test -z "$PROG_W" ; then
9760 PROG_W="undef"
9761 fi
9762
9763
9764
9765 # Extract the first word of "who", so it can be a program name with args.
9766set dummy who; ac_word=$2
9767echo "$as_me:$LINENO: checking for $ac_word" >&5
9768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9769if test "${ac_cv_path_PROG_WHO+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772 case $PROG_WHO in
9773 [\\/]* | ?:[\\/]*)
9774 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
9775 ;;
9776 *)
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9784 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
9785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788done
9789done
9790
9791 ;;
9792esac
9793fi
9794PROG_WHO=$ac_cv_path_PROG_WHO
9795
9796if test -n "$PROG_WHO"; then
9797 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
9798echo "${ECHO_T}$PROG_WHO" >&6
9799else
9800 echo "$as_me:$LINENO: result: no" >&5
9801echo "${ECHO_T}no" >&6
9802fi
9803
9804 if test -z "$PROG_WHO" ; then
9805 PROG_WHO="undef"
9806 fi
9807
9808
9809
9810 # Extract the first word of "last", so it can be a program name with args.
9811set dummy last; ac_word=$2
9812echo "$as_me:$LINENO: checking for $ac_word" >&5
9813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9814if test "${ac_cv_path_PROG_LAST+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816else
9817 case $PROG_LAST in
9818 [\\/]* | ?:[\\/]*)
9819 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9820 ;;
9821 *)
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
9830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834done
9835
9836 ;;
9837esac
9838fi
9839PROG_LAST=$ac_cv_path_PROG_LAST
9840
9841if test -n "$PROG_LAST"; then
9842 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
9843echo "${ECHO_T}$PROG_LAST" >&6
9844else
9845 echo "$as_me:$LINENO: result: no" >&5
9846echo "${ECHO_T}no" >&6
9847fi
9848
9849 if test -z "$PROG_LAST" ; then
9850 PROG_LAST="undef"
9851 fi
9852
9853
9854
9855 # Extract the first word of "lastlog", so it can be a program name with args.
9856set dummy lastlog; ac_word=$2
9857echo "$as_me:$LINENO: checking for $ac_word" >&5
9858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9859if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861else
9862 case $PROG_LASTLOG in
9863 [\\/]* | ?:[\\/]*)
9864 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9865 ;;
9866 *)
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868for as_dir in $PATH
9869do
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9874 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
9875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9877 fi
9878done
9879done
9880
9881 ;;
9882esac
9883fi
9884PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9885
9886if test -n "$PROG_LASTLOG"; then
9887 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9888echo "${ECHO_T}$PROG_LASTLOG" >&6
9889else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892fi
9893
9894 if test -z "$PROG_LASTLOG" ; then
9895 PROG_LASTLOG="undef"
9896 fi
9897
9898
9899
9900 # Extract the first word of "df", so it can be a program name with args.
9901set dummy df; ac_word=$2
9902echo "$as_me:$LINENO: checking for $ac_word" >&5
9903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9904if test "${ac_cv_path_PROG_DF+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906else
9907 case $PROG_DF in
9908 [\\/]* | ?:[\\/]*)
9909 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9910 ;;
9911 *)
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $PATH
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923done
9924done
9925
9926 ;;
9927esac
9928fi
9929PROG_DF=$ac_cv_path_PROG_DF
9930
9931if test -n "$PROG_DF"; then
9932 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9933echo "${ECHO_T}$PROG_DF" >&6
9934else
9935 echo "$as_me:$LINENO: result: no" >&5
9936echo "${ECHO_T}no" >&6
9937fi
9938
9939 if test -z "$PROG_DF" ; then
9940 PROG_DF="undef"
9941 fi
9942
9943
9944
9945 # Extract the first word of "vmstat", so it can be a program name with args.
9946set dummy vmstat; ac_word=$2
9947echo "$as_me:$LINENO: checking for $ac_word" >&5
9948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9949if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951else
9952 case $PROG_VMSTAT in
9953 [\\/]* | ?:[\\/]*)
9954 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9955 ;;
9956 *)
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969done
9970
9971 ;;
9972esac
9973fi
9974PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9975
9976if test -n "$PROG_VMSTAT"; then
9977 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9978echo "${ECHO_T}$PROG_VMSTAT" >&6
9979else
9980 echo "$as_me:$LINENO: result: no" >&5
9981echo "${ECHO_T}no" >&6
9982fi
9983
9984 if test -z "$PROG_VMSTAT" ; then
9985 PROG_VMSTAT="undef"
9986 fi
9987
9988
9989
9990 # Extract the first word of "uptime", so it can be a program name with args.
9991set dummy uptime; ac_word=$2
9992echo "$as_me:$LINENO: checking for $ac_word" >&5
9993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9994if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996else
9997 case $PROG_UPTIME in
9998 [\\/]* | ?:[\\/]*)
9999 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
10000 ;;
10001 *)
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014done
10015
10016 ;;
10017esac
10018fi
10019PROG_UPTIME=$ac_cv_path_PROG_UPTIME
10020
10021if test -n "$PROG_UPTIME"; then
10022 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
10023echo "${ECHO_T}$PROG_UPTIME" >&6
10024else
10025 echo "$as_me:$LINENO: result: no" >&5
10026echo "${ECHO_T}no" >&6
10027fi
10028
10029 if test -z "$PROG_UPTIME" ; then
10030 PROG_UPTIME="undef"
10031 fi
10032
10033
10034
10035 # Extract the first word of "ipcs", so it can be a program name with args.
10036set dummy ipcs; ac_word=$2
10037echo "$as_me:$LINENO: checking for $ac_word" >&5
10038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10039if test "${ac_cv_path_PROG_IPCS+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041else
10042 case $PROG_IPCS in
10043 [\\/]* | ?:[\\/]*)
10044 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
10045 ;;
10046 *)
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
10055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10057 fi
10058done
10059done
10060
10061 ;;
10062esac
10063fi
10064PROG_IPCS=$ac_cv_path_PROG_IPCS
10065
10066if test -n "$PROG_IPCS"; then
10067 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
10068echo "${ECHO_T}$PROG_IPCS" >&6
10069else
10070 echo "$as_me:$LINENO: result: no" >&5
10071echo "${ECHO_T}no" >&6
10072fi
10073
10074 if test -z "$PROG_IPCS" ; then
10075 PROG_IPCS="undef"
10076 fi
10077
10078
10079
10080 # Extract the first word of "tail", so it can be a program name with args.
10081set dummy tail; ac_word=$2
10082echo "$as_me:$LINENO: checking for $ac_word" >&5
10083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10084if test "${ac_cv_path_PROG_TAIL+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086else
10087 case $PROG_TAIL in
10088 [\\/]* | ?:[\\/]*)
10089 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
10090 ;;
10091 *)
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093for as_dir in $PATH
10094do
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
10100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 break 2
10102 fi
10103done
10104done
10105
10106 ;;
10107esac
10108fi
10109PROG_TAIL=$ac_cv_path_PROG_TAIL
10110
10111if test -n "$PROG_TAIL"; then
10112 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
10113echo "${ECHO_T}$PROG_TAIL" >&6
10114else
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
10117fi
10118
10119 if test -z "$PROG_TAIL" ; then
10120 PROG_TAIL="undef"
10121 fi
10122
10123
10124# restore PATH
10125PATH=$OPATH
10126
10127# Where does ssh-rand-helper get its randomness from?
10128INSTALL_SSH_PRNG_CMDS=""
10129if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
10130 if test ! -z "$PRNGD_PORT" ; then
10131 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
10132 elif test ! -z "$PRNGD_SOCKET" ; then
10133 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
10134 else
10135 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
10136 RAND_HELPER_CMDHASH=yes
10137 INSTALL_SSH_PRNG_CMDS="yes"
10138 fi
10139fi
10140
10141
10142
10143# Cheap hack to ensure NEWS-OS libraries are arranged right.
10144if test ! -z "$SONY" ; then
10145 LIBS="$LIBS -liberty";
10146fi
10147
10148# Checks for data types
10149echo "$as_me:$LINENO: checking for char" >&5
10150echo $ECHO_N "checking for char... $ECHO_C" >&6
10151if test "${ac_cv_type_char+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153else
10154 cat >conftest.$ac_ext <<_ACEOF
10155#line $LINENO "configure"
10156#include "confdefs.h"
10157$ac_includes_default
10158#ifdef F77_DUMMY_MAIN
10159# ifdef __cplusplus
10160 extern "C"
10161# endif
10162 int F77_DUMMY_MAIN() { return 1; }
10163#endif
10164int
10165main ()
10166{
10167if ((char *) 0)
10168 return 0;
10169if (sizeof (char))
10170 return 0;
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext
10176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 ac_cv_type_char=yes
10188else
10189 echo "$as_me: failed program was:" >&5
10190cat conftest.$ac_ext >&5
10191ac_cv_type_char=no
10192fi
10193rm -f conftest.$ac_objext conftest.$ac_ext
10194fi
10195echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
10196echo "${ECHO_T}$ac_cv_type_char" >&6
10197
10198echo "$as_me:$LINENO: checking size of char" >&5
10199echo $ECHO_N "checking size of char... $ECHO_C" >&6
10200if test "${ac_cv_sizeof_char+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202else
10203 if test "$ac_cv_type_char" = yes; then
10204 # The cast to unsigned long works around a bug in the HP C Compiler
10205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10207 # This bug is HP SR number 8606223364.
10208 if test "$cross_compiling" = yes; then
10209 # Depending upon the size, compute the lo and hi bounds.
10210cat >conftest.$ac_ext <<_ACEOF
10211#line $LINENO "configure"
10212#include "confdefs.h"
10213$ac_includes_default
10214#ifdef F77_DUMMY_MAIN
10215# ifdef __cplusplus
10216 extern "C"
10217# endif
10218 int F77_DUMMY_MAIN() { return 1; }
10219#endif
10220int
10221main ()
10222{
10223static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
10224test_array @<:@0@:>@ = 0
10225
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext
10231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -s conftest.$ac_objext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_lo=0 ac_mid=0
10243 while :; do
10244 cat >conftest.$ac_ext <<_ACEOF
10245#line $LINENO "configure"
10246#include "confdefs.h"
10247$ac_includes_default
10248#ifdef F77_DUMMY_MAIN
10249# ifdef __cplusplus
10250 extern "C"
10251# endif
10252 int F77_DUMMY_MAIN() { return 1; }
10253#endif
10254int
10255main ()
10256{
10257static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
10258test_array @<:@0@:>@ = 0
10259
10260 ;
10261 return 0;
10262}
10263_ACEOF
10264rm -f conftest.$ac_objext
10265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266 (eval $ac_compile) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -s conftest.$ac_objext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_hi=$ac_mid; break
10277else
10278 echo "$as_me: failed program was:" >&5
10279cat conftest.$ac_ext >&5
10280ac_lo=`expr $ac_mid + 1`
10281 if test $ac_lo -le $ac_mid; then
10282 ac_lo= ac_hi=
10283 break
10284 fi
10285 ac_mid=`expr 2 '*' $ac_mid + 1`
10286fi
10287rm -f conftest.$ac_objext conftest.$ac_ext
10288 done
10289else
10290 echo "$as_me: failed program was:" >&5
10291cat conftest.$ac_ext >&5
10292cat >conftest.$ac_ext <<_ACEOF
10293#line $LINENO "configure"
10294#include "confdefs.h"
10295$ac_includes_default
10296#ifdef F77_DUMMY_MAIN
10297# ifdef __cplusplus
10298 extern "C"
10299# endif
10300 int F77_DUMMY_MAIN() { return 1; }
10301#endif
10302int
10303main ()
10304{
10305static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
10306test_array @<:@0@:>@ = 0
10307
10308 ;
10309 return 0;
10310}
10311_ACEOF
10312rm -f conftest.$ac_objext
10313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10314 (eval $ac_compile) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -s conftest.$ac_objext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_hi=-1 ac_mid=-1
10325 while :; do
10326 cat >conftest.$ac_ext <<_ACEOF
10327#line $LINENO "configure"
10328#include "confdefs.h"
10329$ac_includes_default
10330#ifdef F77_DUMMY_MAIN
10331# ifdef __cplusplus
10332 extern "C"
10333# endif
10334 int F77_DUMMY_MAIN() { return 1; }
10335#endif
10336int
10337main ()
10338{
10339static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
10340test_array @<:@0@:>@ = 0
10341
10342 ;
10343 return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext
10347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10348 (eval $ac_compile) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -s conftest.$ac_objext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_lo=$ac_mid; break
10359else
10360 echo "$as_me: failed program was:" >&5
10361cat conftest.$ac_ext >&5
10362ac_hi=`expr '(' $ac_mid ')' - 1`
10363 if test $ac_mid -le $ac_hi; then
10364 ac_lo= ac_hi=
10365 break
10366 fi
10367 ac_mid=`expr 2 '*' $ac_mid`
10368fi
10369rm -f conftest.$ac_objext conftest.$ac_ext
10370 done
10371else
10372 echo "$as_me: failed program was:" >&5
10373cat conftest.$ac_ext >&5
10374ac_lo= ac_hi=
10375fi
10376rm -f conftest.$ac_objext conftest.$ac_ext
10377fi
10378rm -f conftest.$ac_objext conftest.$ac_ext
10379# Binary search between lo and hi bounds.
10380while test "x$ac_lo" != "x$ac_hi"; do
10381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10382 cat >conftest.$ac_ext <<_ACEOF
10383#line $LINENO "configure"
10384#include "confdefs.h"
10385$ac_includes_default
10386#ifdef F77_DUMMY_MAIN
10387# ifdef __cplusplus
10388 extern "C"
10389# endif
10390 int F77_DUMMY_MAIN() { return 1; }
10391#endif
10392int
10393main ()
10394{
10395static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
10396test_array @<:@0@:>@ = 0
10397
10398 ;
10399 return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext
10403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -s conftest.$ac_objext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_hi=$ac_mid
10415else
10416 echo "$as_me: failed program was:" >&5
10417cat conftest.$ac_ext >&5
10418ac_lo=`expr '(' $ac_mid ')' + 1`
10419fi
10420rm -f conftest.$ac_objext conftest.$ac_ext
10421done
10422case $ac_lo in
10423?*) ac_cv_sizeof_char=$ac_lo;;
10424'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10425echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10426 { (exit 1); exit 1; }; } ;;
10427esac
10428else
10429 if test "$cross_compiling" = yes; then
10430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10431echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10432 { (exit 1); exit 1; }; }
10433else
10434 cat >conftest.$ac_ext <<_ACEOF
10435#line $LINENO "configure"
10436#include "confdefs.h"
10437$ac_includes_default
10438long longval () { return (long) (sizeof (char)); }
10439unsigned long ulongval () { return (long) (sizeof (char)); }
10440@%:@include <stdio.h>
10441@%:@include <stdlib.h>
10442#ifdef F77_DUMMY_MAIN
10443# ifdef __cplusplus
10444 extern "C"
10445# endif
10446 int F77_DUMMY_MAIN() { return 1; }
10447#endif
10448int
10449main ()
10450{
10451
10452 FILE *f = fopen ("conftest.val", "w");
10453 if (! f)
10454 exit (1);
10455 if (((long) (sizeof (char))) < 0)
10456 {
10457 long i = longval ();
10458 if (i != ((long) (sizeof (char))))
10459 exit (1);
10460 fprintf (f, "%ld\n", i);
10461 }
10462 else
10463 {
10464 unsigned long i = ulongval ();
10465 if (i != ((long) (sizeof (char))))
10466 exit (1);
10467 fprintf (f, "%lu\n", i);
10468 }
10469 exit (ferror (f) || fclose (f) != 0);
10470
10471 ;
10472 return 0;
10473}
10474_ACEOF
10475rm -f conftest$ac_exeext
10476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_sizeof_char=`cat conftest.val`
10487else
10488 echo "$as_me: program exited with status $ac_status" >&5
10489echo "$as_me: failed program was:" >&5
10490cat conftest.$ac_ext >&5
10491( exit $ac_status )
10492{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10493echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10494 { (exit 1); exit 1; }; }
10495fi
10496rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10497fi
10498fi
10499rm -f conftest.val
10500else
10501 ac_cv_sizeof_char=0
10502fi
10503fi
10504echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10505echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10506cat >>confdefs.h <<_ACEOF
10507@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
10508_ACEOF
10509
10510
10511echo "$as_me:$LINENO: checking for short int" >&5
10512echo $ECHO_N "checking for short int... $ECHO_C" >&6
10513if test "${ac_cv_type_short_int+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 cat >conftest.$ac_ext <<_ACEOF
10517#line $LINENO "configure"
10518#include "confdefs.h"
10519$ac_includes_default
10520#ifdef F77_DUMMY_MAIN
10521# ifdef __cplusplus
10522 extern "C"
10523# endif
10524 int F77_DUMMY_MAIN() { return 1; }
10525#endif
10526int
10527main ()
10528{
10529if ((short int *) 0)
10530 return 0;
10531if (sizeof (short int))
10532 return 0;
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537rm -f conftest.$ac_objext
10538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539 (eval $ac_compile) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -s conftest.$ac_objext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 ac_cv_type_short_int=yes
10550else
10551 echo "$as_me: failed program was:" >&5
10552cat conftest.$ac_ext >&5
10553ac_cv_type_short_int=no
10554fi
10555rm -f conftest.$ac_objext conftest.$ac_ext
10556fi
10557echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
10558echo "${ECHO_T}$ac_cv_type_short_int" >&6
10559
10560echo "$as_me:$LINENO: checking size of short int" >&5
10561echo $ECHO_N "checking size of short int... $ECHO_C" >&6
10562if test "${ac_cv_sizeof_short_int+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564else
10565 if test "$ac_cv_type_short_int" = yes; then
10566 # The cast to unsigned long works around a bug in the HP C Compiler
10567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10569 # This bug is HP SR number 8606223364.
10570 if test "$cross_compiling" = yes; then
10571 # Depending upon the size, compute the lo and hi bounds.
10572cat >conftest.$ac_ext <<_ACEOF
10573#line $LINENO "configure"
10574#include "confdefs.h"
10575$ac_includes_default
10576#ifdef F77_DUMMY_MAIN
10577# ifdef __cplusplus
10578 extern "C"
10579# endif
10580 int F77_DUMMY_MAIN() { return 1; }
10581#endif
10582int
10583main ()
10584{
10585static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
10586test_array @<:@0@:>@ = 0
10587
10588 ;
10589 return 0;
10590}
10591_ACEOF
10592rm -f conftest.$ac_objext
10593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594 (eval $ac_compile) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -s conftest.$ac_objext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10601 ac_status=$?
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 ac_lo=0 ac_mid=0
10605 while :; do
10606 cat >conftest.$ac_ext <<_ACEOF
10607#line $LINENO "configure"
10608#include "confdefs.h"
10609$ac_includes_default
10610#ifdef F77_DUMMY_MAIN
10611# ifdef __cplusplus
10612 extern "C"
10613# endif
10614 int F77_DUMMY_MAIN() { return 1; }
10615#endif
10616int
10617main ()
10618{
10619static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
10620test_array @<:@0@:>@ = 0
10621
10622 ;
10623 return 0;
10624}
10625_ACEOF
10626rm -f conftest.$ac_objext
10627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -s conftest.$ac_objext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_hi=$ac_mid; break
10639else
10640 echo "$as_me: failed program was:" >&5
10641cat conftest.$ac_ext >&5
10642ac_lo=`expr $ac_mid + 1`
10643 if test $ac_lo -le $ac_mid; then
10644 ac_lo= ac_hi=
10645 break
10646 fi
10647 ac_mid=`expr 2 '*' $ac_mid + 1`
10648fi
10649rm -f conftest.$ac_objext conftest.$ac_ext
10650 done
10651else
10652 echo "$as_me: failed program was:" >&5
10653cat conftest.$ac_ext >&5
10654cat >conftest.$ac_ext <<_ACEOF
10655#line $LINENO "configure"
10656#include "confdefs.h"
10657$ac_includes_default
10658#ifdef F77_DUMMY_MAIN
10659# ifdef __cplusplus
10660 extern "C"
10661# endif
10662 int F77_DUMMY_MAIN() { return 1; }
10663#endif
10664int
10665main ()
10666{
10667static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
10668test_array @<:@0@:>@ = 0
10669
10670 ;
10671 return 0;
10672}
10673_ACEOF
10674rm -f conftest.$ac_objext
10675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10676 (eval $ac_compile) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try='test -s conftest.$ac_objext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 ac_hi=-1 ac_mid=-1
10687 while :; do
10688 cat >conftest.$ac_ext <<_ACEOF
10689#line $LINENO "configure"
10690#include "confdefs.h"
10691$ac_includes_default
10692#ifdef F77_DUMMY_MAIN
10693# ifdef __cplusplus
10694 extern "C"
10695# endif
10696 int F77_DUMMY_MAIN() { return 1; }
10697#endif
10698int
10699main ()
10700{
10701static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
10702test_array @<:@0@:>@ = 0
10703
10704 ;
10705 return 0;
10706}
10707_ACEOF
10708rm -f conftest.$ac_objext
10709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_lo=$ac_mid; break
10721else
10722 echo "$as_me: failed program was:" >&5
10723cat conftest.$ac_ext >&5
10724ac_hi=`expr '(' $ac_mid ')' - 1`
10725 if test $ac_mid -le $ac_hi; then
10726 ac_lo= ac_hi=
10727 break
10728 fi
10729 ac_mid=`expr 2 '*' $ac_mid`
10730fi
10731rm -f conftest.$ac_objext conftest.$ac_ext
10732 done
10733else
10734 echo "$as_me: failed program was:" >&5
10735cat conftest.$ac_ext >&5
10736ac_lo= ac_hi=
10737fi
10738rm -f conftest.$ac_objext conftest.$ac_ext
10739fi
10740rm -f conftest.$ac_objext conftest.$ac_ext
10741# Binary search between lo and hi bounds.
10742while test "x$ac_lo" != "x$ac_hi"; do
10743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10744 cat >conftest.$ac_ext <<_ACEOF
10745#line $LINENO "configure"
10746#include "confdefs.h"
10747$ac_includes_default
10748#ifdef F77_DUMMY_MAIN
10749# ifdef __cplusplus
10750 extern "C"
10751# endif
10752 int F77_DUMMY_MAIN() { return 1; }
10753#endif
10754int
10755main ()
10756{
10757static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
10758test_array @<:@0@:>@ = 0
10759
10760 ;
10761 return 0;
10762}
10763_ACEOF
10764rm -f conftest.$ac_objext
10765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -s conftest.$ac_objext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_hi=$ac_mid
10777else
10778 echo "$as_me: failed program was:" >&5
10779cat conftest.$ac_ext >&5
10780ac_lo=`expr '(' $ac_mid ')' + 1`
10781fi
10782rm -f conftest.$ac_objext conftest.$ac_ext
10783done
10784case $ac_lo in
10785?*) ac_cv_sizeof_short_int=$ac_lo;;
10786'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10787echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10788 { (exit 1); exit 1; }; } ;;
10789esac
10790else
10791 if test "$cross_compiling" = yes; then
10792 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10793echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10794 { (exit 1); exit 1; }; }
10795else
10796 cat >conftest.$ac_ext <<_ACEOF
10797#line $LINENO "configure"
10798#include "confdefs.h"
10799$ac_includes_default
10800long longval () { return (long) (sizeof (short int)); }
10801unsigned long ulongval () { return (long) (sizeof (short int)); }
10802@%:@include <stdio.h>
10803@%:@include <stdlib.h>
10804#ifdef F77_DUMMY_MAIN
10805# ifdef __cplusplus
10806 extern "C"
10807# endif
10808 int F77_DUMMY_MAIN() { return 1; }
10809#endif
10810int
10811main ()
10812{
10813
10814 FILE *f = fopen ("conftest.val", "w");
10815 if (! f)
10816 exit (1);
10817 if (((long) (sizeof (short int))) < 0)
10818 {
10819 long i = longval ();
10820 if (i != ((long) (sizeof (short int))))
10821 exit (1);
10822 fprintf (f, "%ld\n", i);
10823 }
10824 else
10825 {
10826 unsigned long i = ulongval ();
10827 if (i != ((long) (sizeof (short int))))
10828 exit (1);
10829 fprintf (f, "%lu\n", i);
10830 }
10831 exit (ferror (f) || fclose (f) != 0);
10832
10833 ;
10834 return 0;
10835}
10836_ACEOF
10837rm -f conftest$ac_exeext
10838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_sizeof_short_int=`cat conftest.val`
10849else
10850 echo "$as_me: program exited with status $ac_status" >&5
10851echo "$as_me: failed program was:" >&5
10852cat conftest.$ac_ext >&5
10853( exit $ac_status )
10854{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10855echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10856 { (exit 1); exit 1; }; }
10857fi
10858rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10859fi
10860fi
10861rm -f conftest.val
10862else
10863 ac_cv_sizeof_short_int=0
10864fi
10865fi
10866echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10867echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10868cat >>confdefs.h <<_ACEOF
10869@%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10870_ACEOF
10871
10872
10873echo "$as_me:$LINENO: checking for int" >&5
10874echo $ECHO_N "checking for int... $ECHO_C" >&6
10875if test "${ac_cv_type_int+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 cat >conftest.$ac_ext <<_ACEOF
10879#line $LINENO "configure"
10880#include "confdefs.h"
10881$ac_includes_default
10882#ifdef F77_DUMMY_MAIN
10883# ifdef __cplusplus
10884 extern "C"
10885# endif
10886 int F77_DUMMY_MAIN() { return 1; }
10887#endif
10888int
10889main ()
10890{
10891if ((int *) 0)
10892 return 0;
10893if (sizeof (int))
10894 return 0;
10895 ;
10896 return 0;
10897}
10898_ACEOF
10899rm -f conftest.$ac_objext
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_type_int=yes
10912else
10913 echo "$as_me: failed program was:" >&5
10914cat conftest.$ac_ext >&5
10915ac_cv_type_int=no
10916fi
10917rm -f conftest.$ac_objext conftest.$ac_ext
10918fi
10919echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10920echo "${ECHO_T}$ac_cv_type_int" >&6
10921
10922echo "$as_me:$LINENO: checking size of int" >&5
10923echo $ECHO_N "checking size of int... $ECHO_C" >&6
10924if test "${ac_cv_sizeof_int+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926else
10927 if test "$ac_cv_type_int" = yes; then
10928 # The cast to unsigned long works around a bug in the HP C Compiler
10929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10931 # This bug is HP SR number 8606223364.
10932 if test "$cross_compiling" = yes; then
10933 # Depending upon the size, compute the lo and hi bounds.
10934cat >conftest.$ac_ext <<_ACEOF
10935#line $LINENO "configure"
10936#include "confdefs.h"
10937$ac_includes_default
10938#ifdef F77_DUMMY_MAIN
10939# ifdef __cplusplus
10940 extern "C"
10941# endif
10942 int F77_DUMMY_MAIN() { return 1; }
10943#endif
10944int
10945main ()
10946{
10947static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
10948test_array @<:@0@:>@ = 0
10949
10950 ;
10951 return 0;
10952}
10953_ACEOF
10954rm -f conftest.$ac_objext
10955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_lo=0 ac_mid=0
10967 while :; do
10968 cat >conftest.$ac_ext <<_ACEOF
10969#line $LINENO "configure"
10970#include "confdefs.h"
10971$ac_includes_default
10972#ifdef F77_DUMMY_MAIN
10973# ifdef __cplusplus
10974 extern "C"
10975# endif
10976 int F77_DUMMY_MAIN() { return 1; }
10977#endif
10978int
10979main ()
10980{
10981static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10982test_array @<:@0@:>@ = 0
10983
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext
10989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990 (eval $ac_compile) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try='test -s conftest.$ac_objext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_hi=$ac_mid; break
11001else
11002 echo "$as_me: failed program was:" >&5
11003cat conftest.$ac_ext >&5
11004ac_lo=`expr $ac_mid + 1`
11005 if test $ac_lo -le $ac_mid; then
11006 ac_lo= ac_hi=
11007 break
11008 fi
11009 ac_mid=`expr 2 '*' $ac_mid + 1`
11010fi
11011rm -f conftest.$ac_objext conftest.$ac_ext
11012 done
11013else
11014 echo "$as_me: failed program was:" >&5
11015cat conftest.$ac_ext >&5
11016cat >conftest.$ac_ext <<_ACEOF
11017#line $LINENO "configure"
11018#include "confdefs.h"
11019$ac_includes_default
11020#ifdef F77_DUMMY_MAIN
11021# ifdef __cplusplus
11022 extern "C"
11023# endif
11024 int F77_DUMMY_MAIN() { return 1; }
11025#endif
11026int
11027main ()
11028{
11029static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
11030test_array @<:@0@:>@ = 0
11031
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext
11037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11038 (eval $ac_compile) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -s conftest.$ac_objext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_hi=-1 ac_mid=-1
11049 while :; do
11050 cat >conftest.$ac_ext <<_ACEOF
11051#line $LINENO "configure"
11052#include "confdefs.h"
11053$ac_includes_default
11054#ifdef F77_DUMMY_MAIN
11055# ifdef __cplusplus
11056 extern "C"
11057# endif
11058 int F77_DUMMY_MAIN() { return 1; }
11059#endif
11060int
11061main ()
11062{
11063static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
11064test_array @<:@0@:>@ = 0
11065
11066 ;
11067 return 0;
11068}
11069_ACEOF
11070rm -f conftest.$ac_objext
11071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } &&
11076 { ac_try='test -s conftest.$ac_objext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 ac_lo=$ac_mid; break
11083else
11084 echo "$as_me: failed program was:" >&5
11085cat conftest.$ac_ext >&5
11086ac_hi=`expr '(' $ac_mid ')' - 1`
11087 if test $ac_mid -le $ac_hi; then
11088 ac_lo= ac_hi=
11089 break
11090 fi
11091 ac_mid=`expr 2 '*' $ac_mid`
11092fi
11093rm -f conftest.$ac_objext conftest.$ac_ext
11094 done
11095else
11096 echo "$as_me: failed program was:" >&5
11097cat conftest.$ac_ext >&5
11098ac_lo= ac_hi=
11099fi
11100rm -f conftest.$ac_objext conftest.$ac_ext
11101fi
11102rm -f conftest.$ac_objext conftest.$ac_ext
11103# Binary search between lo and hi bounds.
11104while test "x$ac_lo" != "x$ac_hi"; do
11105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11106 cat >conftest.$ac_ext <<_ACEOF
11107#line $LINENO "configure"
11108#include "confdefs.h"
11109$ac_includes_default
11110#ifdef F77_DUMMY_MAIN
11111# ifdef __cplusplus
11112 extern "C"
11113# endif
11114 int F77_DUMMY_MAIN() { return 1; }
11115#endif
11116int
11117main ()
11118{
11119static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
11120test_array @<:@0@:>@ = 0
11121
11122 ;
11123 return 0;
11124}
11125_ACEOF
11126rm -f conftest.$ac_objext
11127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11128 (eval $ac_compile) 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -s conftest.$ac_objext'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_hi=$ac_mid
11139else
11140 echo "$as_me: failed program was:" >&5
11141cat conftest.$ac_ext >&5
11142ac_lo=`expr '(' $ac_mid ')' + 1`
11143fi
11144rm -f conftest.$ac_objext conftest.$ac_ext
11145done
11146case $ac_lo in
11147?*) ac_cv_sizeof_int=$ac_lo;;
11148'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
11149echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
11150 { (exit 1); exit 1; }; } ;;
11151esac
11152else
11153 if test "$cross_compiling" = yes; then
11154 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11155echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11156 { (exit 1); exit 1; }; }
11157else
11158 cat >conftest.$ac_ext <<_ACEOF
11159#line $LINENO "configure"
11160#include "confdefs.h"
11161$ac_includes_default
11162long longval () { return (long) (sizeof (int)); }
11163unsigned long ulongval () { return (long) (sizeof (int)); }
11164@%:@include <stdio.h>
11165@%:@include <stdlib.h>
11166#ifdef F77_DUMMY_MAIN
11167# ifdef __cplusplus
11168 extern "C"
11169# endif
11170 int F77_DUMMY_MAIN() { return 1; }
11171#endif
11172int
11173main ()
11174{
11175
11176 FILE *f = fopen ("conftest.val", "w");
11177 if (! f)
11178 exit (1);
11179 if (((long) (sizeof (int))) < 0)
11180 {
11181 long i = longval ();
11182 if (i != ((long) (sizeof (int))))
11183 exit (1);
11184 fprintf (f, "%ld\n", i);
11185 }
11186 else
11187 {
11188 unsigned long i = ulongval ();
11189 if (i != ((long) (sizeof (int))))
11190 exit (1);
11191 fprintf (f, "%lu\n", i);
11192 }
11193 exit (ferror (f) || fclose (f) != 0);
11194
11195 ;
11196 return 0;
11197}
11198_ACEOF
11199rm -f conftest$ac_exeext
11200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201 (eval $ac_link) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_sizeof_int=`cat conftest.val`
11211else
11212 echo "$as_me: program exited with status $ac_status" >&5
11213echo "$as_me: failed program was:" >&5
11214cat conftest.$ac_ext >&5
11215( exit $ac_status )
11216{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
11217echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
11218 { (exit 1); exit 1; }; }
11219fi
11220rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11221fi
11222fi
11223rm -f conftest.val
11224else
11225 ac_cv_sizeof_int=0
11226fi
11227fi
11228echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11229echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11230cat >>confdefs.h <<_ACEOF
11231@%:@define SIZEOF_INT $ac_cv_sizeof_int
11232_ACEOF
11233
11234
11235echo "$as_me:$LINENO: checking for long int" >&5
11236echo $ECHO_N "checking for long int... $ECHO_C" >&6
11237if test "${ac_cv_type_long_int+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239else
11240 cat >conftest.$ac_ext <<_ACEOF
11241#line $LINENO "configure"
11242#include "confdefs.h"
11243$ac_includes_default
11244#ifdef F77_DUMMY_MAIN
11245# ifdef __cplusplus
11246 extern "C"
11247# endif
11248 int F77_DUMMY_MAIN() { return 1; }
11249#endif
11250int
11251main ()
11252{
11253if ((long int *) 0)
11254 return 0;
11255if (sizeof (long int))
11256 return 0;
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263 (eval $ac_compile) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -s conftest.$ac_objext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
11273 ac_cv_type_long_int=yes
11274else
11275 echo "$as_me: failed program was:" >&5
11276cat conftest.$ac_ext >&5
11277ac_cv_type_long_int=no
11278fi
11279rm -f conftest.$ac_objext conftest.$ac_ext
11280fi
11281echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
11282echo "${ECHO_T}$ac_cv_type_long_int" >&6
11283
11284echo "$as_me:$LINENO: checking size of long int" >&5
11285echo $ECHO_N "checking size of long int... $ECHO_C" >&6
11286if test "${ac_cv_sizeof_long_int+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288else
11289 if test "$ac_cv_type_long_int" = yes; then
11290 # The cast to unsigned long works around a bug in the HP C Compiler
11291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11293 # This bug is HP SR number 8606223364.
11294 if test "$cross_compiling" = yes; then
11295 # Depending upon the size, compute the lo and hi bounds.
11296cat >conftest.$ac_ext <<_ACEOF
11297#line $LINENO "configure"
11298#include "confdefs.h"
11299$ac_includes_default
11300#ifdef F77_DUMMY_MAIN
11301# ifdef __cplusplus
11302 extern "C"
11303# endif
11304 int F77_DUMMY_MAIN() { return 1; }
11305#endif
11306int
11307main ()
11308{
11309static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
11310test_array @<:@0@:>@ = 0
11311
11312 ;
11313 return 0;
11314}
11315_ACEOF
11316rm -f conftest.$ac_objext
11317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -s conftest.$ac_objext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_lo=0 ac_mid=0
11329 while :; do
11330 cat >conftest.$ac_ext <<_ACEOF
11331#line $LINENO "configure"
11332#include "confdefs.h"
11333$ac_includes_default
11334#ifdef F77_DUMMY_MAIN
11335# ifdef __cplusplus
11336 extern "C"
11337# endif
11338 int F77_DUMMY_MAIN() { return 1; }
11339#endif
11340int
11341main ()
11342{
11343static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
11344test_array @<:@0@:>@ = 0
11345
11346 ;
11347 return 0;
11348}
11349_ACEOF
11350rm -f conftest.$ac_objext
11351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352 (eval $ac_compile) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -s conftest.$ac_objext'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_hi=$ac_mid; break
11363else
11364 echo "$as_me: failed program was:" >&5
11365cat conftest.$ac_ext >&5
11366ac_lo=`expr $ac_mid + 1`
11367 if test $ac_lo -le $ac_mid; then
11368 ac_lo= ac_hi=
11369 break
11370 fi
11371 ac_mid=`expr 2 '*' $ac_mid + 1`
11372fi
11373rm -f conftest.$ac_objext conftest.$ac_ext
11374 done
11375else
11376 echo "$as_me: failed program was:" >&5
11377cat conftest.$ac_ext >&5
11378cat >conftest.$ac_ext <<_ACEOF
11379#line $LINENO "configure"
11380#include "confdefs.h"
11381$ac_includes_default
11382#ifdef F77_DUMMY_MAIN
11383# ifdef __cplusplus
11384 extern "C"
11385# endif
11386 int F77_DUMMY_MAIN() { return 1; }
11387#endif
11388int
11389main ()
11390{
11391static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
11392test_array @<:@0@:>@ = 0
11393
11394 ;
11395 return 0;
11396}
11397_ACEOF
11398rm -f conftest.$ac_objext
11399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_hi=-1 ac_mid=-1
11411 while :; do
11412 cat >conftest.$ac_ext <<_ACEOF
11413#line $LINENO "configure"
11414#include "confdefs.h"
11415$ac_includes_default
11416#ifdef F77_DUMMY_MAIN
11417# ifdef __cplusplus
11418 extern "C"
11419# endif
11420 int F77_DUMMY_MAIN() { return 1; }
11421#endif
11422int
11423main ()
11424{
11425static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
11426test_array @<:@0@:>@ = 0
11427
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext
11433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_lo=$ac_mid; break
11445else
11446 echo "$as_me: failed program was:" >&5
11447cat conftest.$ac_ext >&5
11448ac_hi=`expr '(' $ac_mid ')' - 1`
11449 if test $ac_mid -le $ac_hi; then
11450 ac_lo= ac_hi=
11451 break
11452 fi
11453 ac_mid=`expr 2 '*' $ac_mid`
11454fi
11455rm -f conftest.$ac_objext conftest.$ac_ext
11456 done
11457else
11458 echo "$as_me: failed program was:" >&5
11459cat conftest.$ac_ext >&5
11460ac_lo= ac_hi=
11461fi
11462rm -f conftest.$ac_objext conftest.$ac_ext
11463fi
11464rm -f conftest.$ac_objext conftest.$ac_ext
11465# Binary search between lo and hi bounds.
11466while test "x$ac_lo" != "x$ac_hi"; do
11467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11468 cat >conftest.$ac_ext <<_ACEOF
11469#line $LINENO "configure"
11470#include "confdefs.h"
11471$ac_includes_default
11472#ifdef F77_DUMMY_MAIN
11473# ifdef __cplusplus
11474 extern "C"
11475# endif
11476 int F77_DUMMY_MAIN() { return 1; }
11477#endif
11478int
11479main ()
11480{
11481static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
11482test_array @<:@0@:>@ = 0
11483
11484 ;
11485 return 0;
11486}
11487_ACEOF
11488rm -f conftest.$ac_objext
11489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -s conftest.$ac_objext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 ac_hi=$ac_mid
11501else
11502 echo "$as_me: failed program was:" >&5
11503cat conftest.$ac_ext >&5
11504ac_lo=`expr '(' $ac_mid ')' + 1`
11505fi
11506rm -f conftest.$ac_objext conftest.$ac_ext
11507done
11508case $ac_lo in
11509?*) ac_cv_sizeof_long_int=$ac_lo;;
11510'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11511echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11512 { (exit 1); exit 1; }; } ;;
11513esac
11514else
11515 if test "$cross_compiling" = yes; then
11516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11517echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11518 { (exit 1); exit 1; }; }
11519else
11520 cat >conftest.$ac_ext <<_ACEOF
11521#line $LINENO "configure"
11522#include "confdefs.h"
11523$ac_includes_default
11524long longval () { return (long) (sizeof (long int)); }
11525unsigned long ulongval () { return (long) (sizeof (long int)); }
11526@%:@include <stdio.h>
11527@%:@include <stdlib.h>
11528#ifdef F77_DUMMY_MAIN
11529# ifdef __cplusplus
11530 extern "C"
11531# endif
11532 int F77_DUMMY_MAIN() { return 1; }
11533#endif
11534int
11535main ()
11536{
11537
11538 FILE *f = fopen ("conftest.val", "w");
11539 if (! f)
11540 exit (1);
11541 if (((long) (sizeof (long int))) < 0)
11542 {
11543 long i = longval ();
11544 if (i != ((long) (sizeof (long int))))
11545 exit (1);
11546 fprintf (f, "%ld\n", i);
11547 }
11548 else
11549 {
11550 unsigned long i = ulongval ();
11551 if (i != ((long) (sizeof (long int))))
11552 exit (1);
11553 fprintf (f, "%lu\n", i);
11554 }
11555 exit (ferror (f) || fclose (f) != 0);
11556
11557 ;
11558 return 0;
11559}
11560_ACEOF
11561rm -f conftest$ac_exeext
11562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_sizeof_long_int=`cat conftest.val`
11573else
11574 echo "$as_me: program exited with status $ac_status" >&5
11575echo "$as_me: failed program was:" >&5
11576cat conftest.$ac_ext >&5
11577( exit $ac_status )
11578{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11579echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11580 { (exit 1); exit 1; }; }
11581fi
11582rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11583fi
11584fi
11585rm -f conftest.val
11586else
11587 ac_cv_sizeof_long_int=0
11588fi
11589fi
11590echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
11591echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
11592cat >>confdefs.h <<_ACEOF
11593@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11594_ACEOF
11595
11596
11597echo "$as_me:$LINENO: checking for long long int" >&5
11598echo $ECHO_N "checking for long long int... $ECHO_C" >&6
11599if test "${ac_cv_type_long_long_int+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 cat >conftest.$ac_ext <<_ACEOF
11603#line $LINENO "configure"
11604#include "confdefs.h"
11605$ac_includes_default
11606#ifdef F77_DUMMY_MAIN
11607# ifdef __cplusplus
11608 extern "C"
11609# endif
11610 int F77_DUMMY_MAIN() { return 1; }
11611#endif
11612int
11613main ()
11614{
11615if ((long long int *) 0)
11616 return 0;
11617if (sizeof (long long int))
11618 return 0;
11619 ;
11620 return 0;
11621}
11622_ACEOF
11623rm -f conftest.$ac_objext
11624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -s conftest.$ac_objext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_type_long_long_int=yes
11636else
11637 echo "$as_me: failed program was:" >&5
11638cat conftest.$ac_ext >&5
11639ac_cv_type_long_long_int=no
11640fi
11641rm -f conftest.$ac_objext conftest.$ac_ext
11642fi
11643echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
11644echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
11645
11646echo "$as_me:$LINENO: checking size of long long int" >&5
11647echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
11648if test "${ac_cv_sizeof_long_long_int+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 if test "$ac_cv_type_long_long_int" = yes; then
11652 # The cast to unsigned long works around a bug in the HP C Compiler
11653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11655 # This bug is HP SR number 8606223364.
11656 if test "$cross_compiling" = yes; then
11657 # Depending upon the size, compute the lo and hi bounds.
11658cat >conftest.$ac_ext <<_ACEOF
11659#line $LINENO "configure"
11660#include "confdefs.h"
11661$ac_includes_default
11662#ifdef F77_DUMMY_MAIN
11663# ifdef __cplusplus
11664 extern "C"
11665# endif
11666 int F77_DUMMY_MAIN() { return 1; }
11667#endif
11668int
11669main ()
11670{
11671static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
11672test_array @<:@0@:>@ = 0
11673
11674 ;
11675 return 0;
11676}
11677_ACEOF
11678rm -f conftest.$ac_objext
11679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11680 (eval $ac_compile) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -s conftest.$ac_objext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 ac_lo=0 ac_mid=0
11691 while :; do
11692 cat >conftest.$ac_ext <<_ACEOF
11693#line $LINENO "configure"
11694#include "confdefs.h"
11695$ac_includes_default
11696#ifdef F77_DUMMY_MAIN
11697# ifdef __cplusplus
11698 extern "C"
11699# endif
11700 int F77_DUMMY_MAIN() { return 1; }
11701#endif
11702int
11703main ()
11704{
11705static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11706test_array @<:@0@:>@ = 0
11707
11708 ;
11709 return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext
11713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11714 (eval $ac_compile) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -s conftest.$ac_objext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 ac_hi=$ac_mid; break
11725else
11726 echo "$as_me: failed program was:" >&5
11727cat conftest.$ac_ext >&5
11728ac_lo=`expr $ac_mid + 1`
11729 if test $ac_lo -le $ac_mid; then
11730 ac_lo= ac_hi=
11731 break
11732 fi
11733 ac_mid=`expr 2 '*' $ac_mid + 1`
11734fi
11735rm -f conftest.$ac_objext conftest.$ac_ext
11736 done
11737else
11738 echo "$as_me: failed program was:" >&5
11739cat conftest.$ac_ext >&5
11740cat >conftest.$ac_ext <<_ACEOF
11741#line $LINENO "configure"
11742#include "confdefs.h"
11743$ac_includes_default
11744#ifdef F77_DUMMY_MAIN
11745# ifdef __cplusplus
11746 extern "C"
11747# endif
11748 int F77_DUMMY_MAIN() { return 1; }
11749#endif
11750int
11751main ()
11752{
11753static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
11754test_array @<:@0@:>@ = 0
11755
11756 ;
11757 return 0;
11758}
11759_ACEOF
11760rm -f conftest.$ac_objext
11761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11762 (eval $ac_compile) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_hi=-1 ac_mid=-1
11773 while :; do
11774 cat >conftest.$ac_ext <<_ACEOF
11775#line $LINENO "configure"
11776#include "confdefs.h"
11777$ac_includes_default
11778#ifdef F77_DUMMY_MAIN
11779# ifdef __cplusplus
11780 extern "C"
11781# endif
11782 int F77_DUMMY_MAIN() { return 1; }
11783#endif
11784int
11785main ()
11786{
11787static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
11788test_array @<:@0@:>@ = 0
11789
11790 ;
11791 return 0;
11792}
11793_ACEOF
11794rm -f conftest.$ac_objext
11795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11796 (eval $ac_compile) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -s conftest.$ac_objext'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 ac_lo=$ac_mid; break
11807else
11808 echo "$as_me: failed program was:" >&5
11809cat conftest.$ac_ext >&5
11810ac_hi=`expr '(' $ac_mid ')' - 1`
11811 if test $ac_mid -le $ac_hi; then
11812 ac_lo= ac_hi=
11813 break
11814 fi
11815 ac_mid=`expr 2 '*' $ac_mid`
11816fi
11817rm -f conftest.$ac_objext conftest.$ac_ext
11818 done
11819else
11820 echo "$as_me: failed program was:" >&5
11821cat conftest.$ac_ext >&5
11822ac_lo= ac_hi=
11823fi
11824rm -f conftest.$ac_objext conftest.$ac_ext
11825fi
11826rm -f conftest.$ac_objext conftest.$ac_ext
11827# Binary search between lo and hi bounds.
11828while test "x$ac_lo" != "x$ac_hi"; do
11829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11830 cat >conftest.$ac_ext <<_ACEOF
11831#line $LINENO "configure"
11832#include "confdefs.h"
11833$ac_includes_default
11834#ifdef F77_DUMMY_MAIN
11835# ifdef __cplusplus
11836 extern "C"
11837# endif
11838 int F77_DUMMY_MAIN() { return 1; }
11839#endif
11840int
11841main ()
11842{
11843static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11844test_array @<:@0@:>@ = 0
11845
11846 ;
11847 return 0;
11848}
11849_ACEOF
11850rm -f conftest.$ac_objext
11851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11852 (eval $ac_compile) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -s conftest.$ac_objext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 ac_hi=$ac_mid
11863else
11864 echo "$as_me: failed program was:" >&5
11865cat conftest.$ac_ext >&5
11866ac_lo=`expr '(' $ac_mid ')' + 1`
11867fi
11868rm -f conftest.$ac_objext conftest.$ac_ext
11869done
11870case $ac_lo in
11871?*) ac_cv_sizeof_long_long_int=$ac_lo;;
11872'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11873echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11874 { (exit 1); exit 1; }; } ;;
11875esac
11876else
11877 if test "$cross_compiling" = yes; then
11878 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11879echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11880 { (exit 1); exit 1; }; }
11881else
11882 cat >conftest.$ac_ext <<_ACEOF
11883#line $LINENO "configure"
11884#include "confdefs.h"
11885$ac_includes_default
11886long longval () { return (long) (sizeof (long long int)); }
11887unsigned long ulongval () { return (long) (sizeof (long long int)); }
11888@%:@include <stdio.h>
11889@%:@include <stdlib.h>
11890#ifdef F77_DUMMY_MAIN
11891# ifdef __cplusplus
11892 extern "C"
11893# endif
11894 int F77_DUMMY_MAIN() { return 1; }
11895#endif
11896int
11897main ()
11898{
11899
11900 FILE *f = fopen ("conftest.val", "w");
11901 if (! f)
11902 exit (1);
11903 if (((long) (sizeof (long long int))) < 0)
11904 {
11905 long i = longval ();
11906 if (i != ((long) (sizeof (long long int))))
11907 exit (1);
11908 fprintf (f, "%ld\n", i);
11909 }
11910 else
11911 {
11912 unsigned long i = ulongval ();
11913 if (i != ((long) (sizeof (long long int))))
11914 exit (1);
11915 fprintf (f, "%lu\n", i);
11916 }
11917 exit (ferror (f) || fclose (f) != 0);
11918
11919 ;
11920 return 0;
11921}
11922_ACEOF
11923rm -f conftest$ac_exeext
11924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925 (eval $ac_link) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_sizeof_long_long_int=`cat conftest.val`
11935else
11936 echo "$as_me: program exited with status $ac_status" >&5
11937echo "$as_me: failed program was:" >&5
11938cat conftest.$ac_ext >&5
11939( exit $ac_status )
11940{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11941echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11942 { (exit 1); exit 1; }; }
11943fi
11944rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11945fi
11946fi
11947rm -f conftest.val
11948else
11949 ac_cv_sizeof_long_long_int=0
11950fi
11951fi
11952echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11953echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11954cat >>confdefs.h <<_ACEOF
11955@%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11956_ACEOF
11957
11958
11959
11960# Sanity check long long for some platforms (AIX)
11961if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11962 ac_cv_sizeof_long_long_int=0
11963fi
11964
11965# More checks for data types
11966echo "$as_me:$LINENO: checking for u_int type" >&5
11967echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11968if test "${ac_cv_have_u_int+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970else
11971
11972 cat >conftest.$ac_ext <<_ACEOF
11973#line $LINENO "configure"
11974#include "confdefs.h"
11975 #include <sys/types.h>
11976#ifdef F77_DUMMY_MAIN
11977# ifdef __cplusplus
11978 extern "C"
11979# endif
11980 int F77_DUMMY_MAIN() { return 1; }
11981#endif
11982int
11983main ()
11984{
11985 u_int a; a = 1;
11986 ;
11987 return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext
11991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992 (eval $ac_compile) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -s conftest.$ac_objext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_have_u_int="yes"
12003else
12004 echo "$as_me: failed program was:" >&5
12005cat conftest.$ac_ext >&5
12006 ac_cv_have_u_int="no"
12007
12008fi
12009rm -f conftest.$ac_objext conftest.$ac_ext
12010
12011fi
12012echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
12013echo "${ECHO_T}$ac_cv_have_u_int" >&6
12014if test "x$ac_cv_have_u_int" = "xyes" ; then
12015 cat >>confdefs.h <<\_ACEOF
12016@%:@define HAVE_U_INT 1
12017_ACEOF
12018
12019 have_u_int=1
12020fi
12021
12022echo "$as_me:$LINENO: checking for intXX_t types" >&5
12023echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
12024if test "${ac_cv_have_intxx_t+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027
12028 cat >conftest.$ac_ext <<_ACEOF
12029#line $LINENO "configure"
12030#include "confdefs.h"
12031 #include <sys/types.h>
12032#ifdef F77_DUMMY_MAIN
12033# ifdef __cplusplus
12034 extern "C"
12035# endif
12036 int F77_DUMMY_MAIN() { return 1; }
12037#endif
12038int
12039main ()
12040{
12041 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12042 ;
12043 return 0;
12044}
12045_ACEOF
12046rm -f conftest.$ac_objext
12047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12048 (eval $ac_compile) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -s conftest.$ac_objext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 ac_cv_have_intxx_t="yes"
12059else
12060 echo "$as_me: failed program was:" >&5
12061cat conftest.$ac_ext >&5
12062 ac_cv_have_intxx_t="no"
12063
12064fi
12065rm -f conftest.$ac_objext conftest.$ac_ext
12066
12067fi
12068echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
12069echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
12070if test "x$ac_cv_have_intxx_t" = "xyes" ; then
12071 cat >>confdefs.h <<\_ACEOF
12072@%:@define HAVE_INTXX_T 1
12073_ACEOF
12074
12075 have_intxx_t=1
12076fi
12077
12078if (test -z "$have_intxx_t" && \
12079 test "x$ac_cv_header_stdint_h" = "xyes")
12080then
12081 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
12082echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
12083 cat >conftest.$ac_ext <<_ACEOF
12084#line $LINENO "configure"
12085#include "confdefs.h"
12086 #include <stdint.h>
12087#ifdef F77_DUMMY_MAIN
12088# ifdef __cplusplus
12089 extern "C"
12090# endif
12091 int F77_DUMMY_MAIN() { return 1; }
12092#endif
12093int
12094main ()
12095{
12096 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12097 ;
12098 return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext
12102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -s conftest.$ac_objext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113
12114 cat >>confdefs.h <<\_ACEOF
12115@%:@define HAVE_INTXX_T 1
12116_ACEOF
12117
12118 echo "$as_me:$LINENO: result: yes" >&5
12119echo "${ECHO_T}yes" >&6
12120
12121else
12122 echo "$as_me: failed program was:" >&5
12123cat conftest.$ac_ext >&5
12124 echo "$as_me:$LINENO: result: no" >&5
12125echo "${ECHO_T}no" >&6
12126
12127fi
12128rm -f conftest.$ac_objext conftest.$ac_ext
12129fi
12130
12131echo "$as_me:$LINENO: checking for int64_t type" >&5
12132echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
12133if test "${ac_cv_have_int64_t+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135else
12136
12137 cat >conftest.$ac_ext <<_ACEOF
12138#line $LINENO "configure"
12139#include "confdefs.h"
12140
12141#include <sys/types.h>
12142#ifdef HAVE_STDINT_H
12143# include <stdint.h>
12144#endif
12145#include <sys/socket.h>
12146#ifdef HAVE_SYS_BITYPES_H
12147# include <sys/bitypes.h>
12148#endif
12149
12150#ifdef F77_DUMMY_MAIN
12151# ifdef __cplusplus
12152 extern "C"
12153# endif
12154 int F77_DUMMY_MAIN() { return 1; }
12155#endif
12156int
12157main ()
12158{
12159 int64_t a; a = 1;
12160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext
12165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12166 (eval $ac_compile) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_cv_have_int64_t="yes"
12177else
12178 echo "$as_me: failed program was:" >&5
12179cat conftest.$ac_ext >&5
12180 ac_cv_have_int64_t="no"
12181
12182fi
12183rm -f conftest.$ac_objext conftest.$ac_ext
12184
12185fi
12186echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
12187echo "${ECHO_T}$ac_cv_have_int64_t" >&6
12188if test "x$ac_cv_have_int64_t" = "xyes" ; then
12189 cat >>confdefs.h <<\_ACEOF
12190@%:@define HAVE_INT64_T 1
12191_ACEOF
12192
12193fi
12194
12195echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
12196echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
12197if test "${ac_cv_have_u_intxx_t+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12199else
12200
12201 cat >conftest.$ac_ext <<_ACEOF
12202#line $LINENO "configure"
12203#include "confdefs.h"
12204 #include <sys/types.h>
12205#ifdef F77_DUMMY_MAIN
12206# ifdef __cplusplus
12207 extern "C"
12208# endif
12209 int F77_DUMMY_MAIN() { return 1; }
12210#endif
12211int
12212main ()
12213{
12214 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12215 ;
12216 return 0;
12217}
12218_ACEOF
12219rm -f conftest.$ac_objext
12220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_have_u_intxx_t="yes"
12232else
12233 echo "$as_me: failed program was:" >&5
12234cat conftest.$ac_ext >&5
12235 ac_cv_have_u_intxx_t="no"
12236
12237fi
12238rm -f conftest.$ac_objext conftest.$ac_ext
12239
12240fi
12241echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
12242echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
12243if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
12244 cat >>confdefs.h <<\_ACEOF
12245@%:@define HAVE_U_INTXX_T 1
12246_ACEOF
12247
12248 have_u_intxx_t=1
12249fi
12250
12251if test -z "$have_u_intxx_t" ; then
12252 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
12253echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
12254 cat >conftest.$ac_ext <<_ACEOF
12255#line $LINENO "configure"
12256#include "confdefs.h"
12257 #include <sys/socket.h>
12258#ifdef F77_DUMMY_MAIN
12259# ifdef __cplusplus
12260 extern "C"
12261# endif
12262 int F77_DUMMY_MAIN() { return 1; }
12263#endif
12264int
12265main ()
12266{
12267 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12268 ;
12269 return 0;
12270}
12271_ACEOF
12272rm -f conftest.$ac_objext
12273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274 (eval $ac_compile) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -s conftest.$ac_objext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284
12285 cat >>confdefs.h <<\_ACEOF
12286@%:@define HAVE_U_INTXX_T 1
12287_ACEOF
12288
12289 echo "$as_me:$LINENO: result: yes" >&5
12290echo "${ECHO_T}yes" >&6
12291
12292else
12293 echo "$as_me: failed program was:" >&5
12294cat conftest.$ac_ext >&5
12295 echo "$as_me:$LINENO: result: no" >&5
12296echo "${ECHO_T}no" >&6
12297
12298fi
12299rm -f conftest.$ac_objext conftest.$ac_ext
12300fi
12301
12302echo "$as_me:$LINENO: checking for u_int64_t types" >&5
12303echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
12304if test "${ac_cv_have_u_int64_t+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307
12308 cat >conftest.$ac_ext <<_ACEOF
12309#line $LINENO "configure"
12310#include "confdefs.h"
12311 #include <sys/types.h>
12312#ifdef F77_DUMMY_MAIN
12313# ifdef __cplusplus
12314 extern "C"
12315# endif
12316 int F77_DUMMY_MAIN() { return 1; }
12317#endif
12318int
12319main ()
12320{
12321 u_int64_t a; a = 1;
12322 ;
12323 return 0;
12324}
12325_ACEOF
12326rm -f conftest.$ac_objext
12327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12328 (eval $ac_compile) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -s conftest.$ac_objext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_cv_have_u_int64_t="yes"
12339else
12340 echo "$as_me: failed program was:" >&5
12341cat conftest.$ac_ext >&5
12342 ac_cv_have_u_int64_t="no"
12343
12344fi
12345rm -f conftest.$ac_objext conftest.$ac_ext
12346
12347fi
12348echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
12349echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
12350if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12351 cat >>confdefs.h <<\_ACEOF
12352@%:@define HAVE_U_INT64_T 1
12353_ACEOF
12354
12355 have_u_int64_t=1
12356fi
12357
12358if test -z "$have_u_int64_t" ; then
12359 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
12360echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
12361 cat >conftest.$ac_ext <<_ACEOF
12362#line $LINENO "configure"
12363#include "confdefs.h"
12364 #include <sys/bitypes.h>
12365#ifdef F77_DUMMY_MAIN
12366# ifdef __cplusplus
12367 extern "C"
12368# endif
12369 int F77_DUMMY_MAIN() { return 1; }
12370#endif
12371int
12372main ()
12373{
12374 u_int64_t a; a = 1
12375 ;
12376 return 0;
12377}
12378_ACEOF
12379rm -f conftest.$ac_objext
12380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12381 (eval $ac_compile) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -s conftest.$ac_objext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391
12392 cat >>confdefs.h <<\_ACEOF
12393@%:@define HAVE_U_INT64_T 1
12394_ACEOF
12395
12396 echo "$as_me:$LINENO: result: yes" >&5
12397echo "${ECHO_T}yes" >&6
12398
12399else
12400 echo "$as_me: failed program was:" >&5
12401cat conftest.$ac_ext >&5
12402 echo "$as_me:$LINENO: result: no" >&5
12403echo "${ECHO_T}no" >&6
12404
12405fi
12406rm -f conftest.$ac_objext conftest.$ac_ext
12407fi
12408
12409if test -z "$have_u_intxx_t" ; then
12410 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
12411echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
12412if test "${ac_cv_have_uintxx_t+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414else
12415
12416 cat >conftest.$ac_ext <<_ACEOF
12417#line $LINENO "configure"
12418#include "confdefs.h"
12419
12420#include <sys/types.h>
12421
12422#ifdef F77_DUMMY_MAIN
12423# ifdef __cplusplus
12424 extern "C"
12425# endif
12426 int F77_DUMMY_MAIN() { return 1; }
12427#endif
12428int
12429main ()
12430{
12431 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12432 ;
12433 return 0;
12434}
12435_ACEOF
12436rm -f conftest.$ac_objext
12437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12438 (eval $ac_compile) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -s conftest.$ac_objext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_have_uintxx_t="yes"
12449else
12450 echo "$as_me: failed program was:" >&5
12451cat conftest.$ac_ext >&5
12452 ac_cv_have_uintxx_t="no"
12453
12454fi
12455rm -f conftest.$ac_objext conftest.$ac_ext
12456
12457fi
12458echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
12459echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
12460 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12461 cat >>confdefs.h <<\_ACEOF
12462@%:@define HAVE_UINTXX_T 1
12463_ACEOF
12464
12465 fi
12466fi
12467
12468if test -z "$have_uintxx_t" ; then
12469 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
12470echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
12471 cat >conftest.$ac_ext <<_ACEOF
12472#line $LINENO "configure"
12473#include "confdefs.h"
12474 #include <stdint.h>
12475#ifdef F77_DUMMY_MAIN
12476# ifdef __cplusplus
12477 extern "C"
12478# endif
12479 int F77_DUMMY_MAIN() { return 1; }
12480#endif
12481int
12482main ()
12483{
12484 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489rm -f conftest.$ac_objext
12490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12491 (eval $ac_compile) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501
12502 cat >>confdefs.h <<\_ACEOF
12503@%:@define HAVE_UINTXX_T 1
12504_ACEOF
12505
12506 echo "$as_me:$LINENO: result: yes" >&5
12507echo "${ECHO_T}yes" >&6
12508
12509else
12510 echo "$as_me: failed program was:" >&5
12511cat conftest.$ac_ext >&5
12512 echo "$as_me:$LINENO: result: no" >&5
12513echo "${ECHO_T}no" >&6
12514
12515fi
12516rm -f conftest.$ac_objext conftest.$ac_ext
12517fi
12518
12519if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12520 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12521then
12522 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12523echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
12524 cat >conftest.$ac_ext <<_ACEOF
12525#line $LINENO "configure"
12526#include "confdefs.h"
12527
12528#include <sys/bitypes.h>
12529
12530#ifdef F77_DUMMY_MAIN
12531# ifdef __cplusplus
12532 extern "C"
12533# endif
12534 int F77_DUMMY_MAIN() { return 1; }
12535#endif
12536int
12537main ()
12538{
12539
12540 int8_t a; int16_t b; int32_t c;
12541 u_int8_t e; u_int16_t f; u_int32_t g;
12542 a = b = c = e = f = g = 1;
12543
12544 ;
12545 return 0;
12546}
12547_ACEOF
12548rm -f conftest.$ac_objext
12549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12550 (eval $ac_compile) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -s conftest.$ac_objext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560
12561 cat >>confdefs.h <<\_ACEOF
12562@%:@define HAVE_U_INTXX_T 1
12563_ACEOF
12564
12565 cat >>confdefs.h <<\_ACEOF
12566@%:@define HAVE_INTXX_T 1
12567_ACEOF
12568
12569 echo "$as_me:$LINENO: result: yes" >&5
12570echo "${ECHO_T}yes" >&6
12571
12572else
12573 echo "$as_me: failed program was:" >&5
12574cat conftest.$ac_ext >&5
12575echo "$as_me:$LINENO: result: no" >&5
12576echo "${ECHO_T}no" >&6
12577
12578fi
12579rm -f conftest.$ac_objext conftest.$ac_ext
12580fi
12581
12582
12583echo "$as_me:$LINENO: checking for u_char" >&5
12584echo $ECHO_N "checking for u_char... $ECHO_C" >&6
12585if test "${ac_cv_have_u_char+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587else
12588
12589 cat >conftest.$ac_ext <<_ACEOF
12590#line $LINENO "configure"
12591#include "confdefs.h"
12592
12593#include <sys/types.h>
12594
12595#ifdef F77_DUMMY_MAIN
12596# ifdef __cplusplus
12597 extern "C"
12598# endif
12599 int F77_DUMMY_MAIN() { return 1; }
12600#endif
12601int
12602main ()
12603{
12604 u_char foo; foo = 125;
12605 ;
12606 return 0;
12607}
12608_ACEOF
12609rm -f conftest.$ac_objext
12610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12611 (eval $ac_compile) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_cv_have_u_char="yes"
12622else
12623 echo "$as_me: failed program was:" >&5
12624cat conftest.$ac_ext >&5
12625 ac_cv_have_u_char="no"
12626
12627fi
12628rm -f conftest.$ac_objext conftest.$ac_ext
12629
12630fi
12631echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
12632echo "${ECHO_T}$ac_cv_have_u_char" >&6
12633if test "x$ac_cv_have_u_char" = "xyes" ; then
12634 cat >>confdefs.h <<\_ACEOF
12635@%:@define HAVE_U_CHAR 1
12636_ACEOF
12637
12638fi
12639
12640
12641 echo "$as_me:$LINENO: checking for socklen_t" >&5
12642echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12643if test "${ac_cv_type_socklen_t+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645else
12646 cat >conftest.$ac_ext <<_ACEOF
12647#line $LINENO "configure"
12648#include "confdefs.h"
12649#include <sys/types.h>
12650#include <sys/socket.h>
12651
12652#ifdef F77_DUMMY_MAIN
12653# ifdef __cplusplus
12654 extern "C"
12655# endif
12656 int F77_DUMMY_MAIN() { return 1; }
12657#endif
12658int
12659main ()
12660{
12661if ((socklen_t *) 0)
12662 return 0;
12663if (sizeof (socklen_t))
12664 return 0;
12665 ;
12666 return 0;
12667}
12668_ACEOF
12669rm -f conftest.$ac_objext
12670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -s conftest.$ac_objext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_type_socklen_t=yes
12682else
12683 echo "$as_me: failed program was:" >&5
12684cat conftest.$ac_ext >&5
12685ac_cv_type_socklen_t=no
12686fi
12687rm -f conftest.$ac_objext conftest.$ac_ext
12688fi
12689echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12690echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12691if test $ac_cv_type_socklen_t = yes; then
12692 :
12693else
12694
12695 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12696echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
12697 if test "${curl_cv_socklen_t_equiv+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699else
12700
12701 # Systems have either "struct sockaddr *" or
12702 # "void *" as the second argument to getpeername
12703 curl_cv_socklen_t_equiv=
12704 for arg2 in "struct sockaddr" void; do
12705 for t in int size_t unsigned long "unsigned long"; do
12706 cat >conftest.$ac_ext <<_ACEOF
12707#line $LINENO "configure"
12708#include "confdefs.h"
12709
12710 #include <sys/types.h>
12711 #include <sys/socket.h>
12712
12713 int getpeername (int, $arg2 *, $t *);
12714
12715#ifdef F77_DUMMY_MAIN
12716# ifdef __cplusplus
12717 extern "C"
12718# endif
12719 int F77_DUMMY_MAIN() { return 1; }
12720#endif
12721int
12722main ()
12723{
12724
12725 $t len;
12726 getpeername(0,0,&len);
12727
12728 ;
12729 return 0;
12730}
12731_ACEOF
12732rm -f conftest.$ac_objext
12733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744
12745 curl_cv_socklen_t_equiv="$t"
12746 break
12747
12748else
12749 echo "$as_me: failed program was:" >&5
12750cat conftest.$ac_ext >&5
12751fi
12752rm -f conftest.$ac_objext conftest.$ac_ext
12753 done
12754 done
12755
12756 if test "x$curl_cv_socklen_t_equiv" = x; then
12757 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12758echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12759 { (exit 1); exit 1; }; }
12760 fi
12761
12762fi
12763
12764 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
12765echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12766
12767cat >>confdefs.h <<_ACEOF
12768@%:@define socklen_t $curl_cv_socklen_t_equiv
12769_ACEOF
12770
12771fi
12772
12773
12774
12775echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
12776echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12777if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779else
12780 cat >conftest.$ac_ext <<_ACEOF
12781#line $LINENO "configure"
12782#include "confdefs.h"
12783#include <signal.h>
12784
12785#ifdef F77_DUMMY_MAIN
12786# ifdef __cplusplus
12787 extern "C"
12788# endif
12789 int F77_DUMMY_MAIN() { return 1; }
12790#endif
12791int
12792main ()
12793{
12794if ((sig_atomic_t *) 0)
12795 return 0;
12796if (sizeof (sig_atomic_t))
12797 return 0;
12798 ;
12799 return 0;
12800}
12801_ACEOF
12802rm -f conftest.$ac_objext
12803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -s conftest.$ac_objext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_cv_type_sig_atomic_t=yes
12815else
12816 echo "$as_me: failed program was:" >&5
12817cat conftest.$ac_ext >&5
12818ac_cv_type_sig_atomic_t=no
12819fi
12820rm -f conftest.$ac_objext conftest.$ac_ext
12821fi
12822echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12823echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12824if test $ac_cv_type_sig_atomic_t = yes; then
12825
12826cat >>confdefs.h <<_ACEOF
12827@%:@define HAVE_SIG_ATOMIC_T 1
12828_ACEOF
12829
12830
12831fi
12832
12833
12834echo "$as_me:$LINENO: checking for size_t" >&5
12835echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12836if test "${ac_cv_have_size_t+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838else
12839
12840 cat >conftest.$ac_ext <<_ACEOF
12841#line $LINENO "configure"
12842#include "confdefs.h"
12843
12844#include <sys/types.h>
12845
12846#ifdef F77_DUMMY_MAIN
12847# ifdef __cplusplus
12848 extern "C"
12849# endif
12850 int F77_DUMMY_MAIN() { return 1; }
12851#endif
12852int
12853main ()
12854{
12855 size_t foo; foo = 1235;
12856 ;
12857 return 0;
12858}
12859_ACEOF
12860rm -f conftest.$ac_objext
12861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12862 (eval $ac_compile) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try='test -s conftest.$ac_objext'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 ac_cv_have_size_t="yes"
12873else
12874 echo "$as_me: failed program was:" >&5
12875cat conftest.$ac_ext >&5
12876 ac_cv_have_size_t="no"
12877
12878fi
12879rm -f conftest.$ac_objext conftest.$ac_ext
12880
12881fi
12882echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12883echo "${ECHO_T}$ac_cv_have_size_t" >&6
12884if test "x$ac_cv_have_size_t" = "xyes" ; then
12885 cat >>confdefs.h <<\_ACEOF
12886@%:@define HAVE_SIZE_T 1
12887_ACEOF
12888
12889fi
12890
12891echo "$as_me:$LINENO: checking for ssize_t" >&5
12892echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12893if test "${ac_cv_have_ssize_t+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12895else
12896
12897 cat >conftest.$ac_ext <<_ACEOF
12898#line $LINENO "configure"
12899#include "confdefs.h"
12900
12901#include <sys/types.h>
12902
12903#ifdef F77_DUMMY_MAIN
12904# ifdef __cplusplus
12905 extern "C"
12906# endif
12907 int F77_DUMMY_MAIN() { return 1; }
12908#endif
12909int
12910main ()
12911{
12912 ssize_t foo; foo = 1235;
12913 ;
12914 return 0;
12915}
12916_ACEOF
12917rm -f conftest.$ac_objext
12918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12919 (eval $ac_compile) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_have_ssize_t="yes"
12930else
12931 echo "$as_me: failed program was:" >&5
12932cat conftest.$ac_ext >&5
12933 ac_cv_have_ssize_t="no"
12934
12935fi
12936rm -f conftest.$ac_objext conftest.$ac_ext
12937
12938fi
12939echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12940echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12941if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12942 cat >>confdefs.h <<\_ACEOF
12943@%:@define HAVE_SSIZE_T 1
12944_ACEOF
12945
12946fi
12947
12948echo "$as_me:$LINENO: checking for clock_t" >&5
12949echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12950if test "${ac_cv_have_clock_t+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
12953
12954 cat >conftest.$ac_ext <<_ACEOF
12955#line $LINENO "configure"
12956#include "confdefs.h"
12957
12958#include <time.h>
12959
12960#ifdef F77_DUMMY_MAIN
12961# ifdef __cplusplus
12962 extern "C"
12963# endif
12964 int F77_DUMMY_MAIN() { return 1; }
12965#endif
12966int
12967main ()
12968{
12969 clock_t foo; foo = 1235;
12970 ;
12971 return 0;
12972}
12973_ACEOF
12974rm -f conftest.$ac_objext
12975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_cv_have_clock_t="yes"
12987else
12988 echo "$as_me: failed program was:" >&5
12989cat conftest.$ac_ext >&5
12990 ac_cv_have_clock_t="no"
12991
12992fi
12993rm -f conftest.$ac_objext conftest.$ac_ext
12994
12995fi
12996echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12997echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12998if test "x$ac_cv_have_clock_t" = "xyes" ; then
12999 cat >>confdefs.h <<\_ACEOF
13000@%:@define HAVE_CLOCK_T 1
13001_ACEOF
13002
13003fi
13004
13005echo "$as_me:$LINENO: checking for sa_family_t" >&5
13006echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
13007if test "${ac_cv_have_sa_family_t+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009else
13010
13011 cat >conftest.$ac_ext <<_ACEOF
13012#line $LINENO "configure"
13013#include "confdefs.h"
13014
13015#include <sys/types.h>
13016#include <sys/socket.h>
13017
13018#ifdef F77_DUMMY_MAIN
13019# ifdef __cplusplus
13020 extern "C"
13021# endif
13022 int F77_DUMMY_MAIN() { return 1; }
13023#endif
13024int
13025main ()
13026{
13027 sa_family_t foo; foo = 1235;
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext
13033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_cv_have_sa_family_t="yes"
13045else
13046 echo "$as_me: failed program was:" >&5
13047cat conftest.$ac_ext >&5
13048 cat >conftest.$ac_ext <<_ACEOF
13049#line $LINENO "configure"
13050#include "confdefs.h"
13051
13052#include <sys/types.h>
13053#include <sys/socket.h>
13054#include <netinet/in.h>
13055
13056#ifdef F77_DUMMY_MAIN
13057# ifdef __cplusplus
13058 extern "C"
13059# endif
13060 int F77_DUMMY_MAIN() { return 1; }
13061#endif
13062int
13063main ()
13064{
13065 sa_family_t foo; foo = 1235;
13066 ;
13067 return 0;
13068}
13069_ACEOF
13070rm -f conftest.$ac_objext
13071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072 (eval $ac_compile) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -s conftest.$ac_objext'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
13082 ac_cv_have_sa_family_t="yes"
13083else
13084 echo "$as_me: failed program was:" >&5
13085cat conftest.$ac_ext >&5
13086 ac_cv_have_sa_family_t="no"
13087
13088fi
13089rm -f conftest.$ac_objext conftest.$ac_ext
13090
13091fi
13092rm -f conftest.$ac_objext conftest.$ac_ext
13093
13094fi
13095echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
13096echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
13097if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
13098 cat >>confdefs.h <<\_ACEOF
13099@%:@define HAVE_SA_FAMILY_T 1
13100_ACEOF
13101
13102fi
13103
13104echo "$as_me:$LINENO: checking for pid_t" >&5
13105echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13106if test "${ac_cv_have_pid_t+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108else
13109
13110 cat >conftest.$ac_ext <<_ACEOF
13111#line $LINENO "configure"
13112#include "confdefs.h"
13113
13114#include <sys/types.h>
13115
13116#ifdef F77_DUMMY_MAIN
13117# ifdef __cplusplus
13118 extern "C"
13119# endif
13120 int F77_DUMMY_MAIN() { return 1; }
13121#endif
13122int
13123main ()
13124{
13125 pid_t foo; foo = 1235;
13126 ;
13127 return 0;
13128}
13129_ACEOF
13130rm -f conftest.$ac_objext
13131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132 (eval $ac_compile) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -s conftest.$ac_objext'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; }; then
13142 ac_cv_have_pid_t="yes"
13143else
13144 echo "$as_me: failed program was:" >&5
13145cat conftest.$ac_ext >&5
13146 ac_cv_have_pid_t="no"
13147
13148fi
13149rm -f conftest.$ac_objext conftest.$ac_ext
13150
13151fi
13152echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
13153echo "${ECHO_T}$ac_cv_have_pid_t" >&6
13154if test "x$ac_cv_have_pid_t" = "xyes" ; then
13155 cat >>confdefs.h <<\_ACEOF
13156@%:@define HAVE_PID_T 1
13157_ACEOF
13158
13159fi
13160
13161echo "$as_me:$LINENO: checking for mode_t" >&5
13162echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13163if test "${ac_cv_have_mode_t+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
13166
13167 cat >conftest.$ac_ext <<_ACEOF
13168#line $LINENO "configure"
13169#include "confdefs.h"
13170
13171#include <sys/types.h>
13172
13173#ifdef F77_DUMMY_MAIN
13174# ifdef __cplusplus
13175 extern "C"
13176# endif
13177 int F77_DUMMY_MAIN() { return 1; }
13178#endif
13179int
13180main ()
13181{
13182 mode_t foo; foo = 1235;
13183 ;
13184 return 0;
13185}
13186_ACEOF
13187rm -f conftest.$ac_objext
13188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13189 (eval $ac_compile) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } &&
13193 { ac_try='test -s conftest.$ac_objext'
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13196 ac_status=$?
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 ac_cv_have_mode_t="yes"
13200else
13201 echo "$as_me: failed program was:" >&5
13202cat conftest.$ac_ext >&5
13203 ac_cv_have_mode_t="no"
13204
13205fi
13206rm -f conftest.$ac_objext conftest.$ac_ext
13207
13208fi
13209echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
13210echo "${ECHO_T}$ac_cv_have_mode_t" >&6
13211if test "x$ac_cv_have_mode_t" = "xyes" ; then
13212 cat >>confdefs.h <<\_ACEOF
13213@%:@define HAVE_MODE_T 1
13214_ACEOF
13215
13216fi
13217
13218
13219echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13220echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
13221if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223else
13224
13225 cat >conftest.$ac_ext <<_ACEOF
13226#line $LINENO "configure"
13227#include "confdefs.h"
13228
13229#include <sys/types.h>
13230#include <sys/socket.h>
13231
13232#ifdef F77_DUMMY_MAIN
13233# ifdef __cplusplus
13234 extern "C"
13235# endif
13236 int F77_DUMMY_MAIN() { return 1; }
13237#endif
13238int
13239main ()
13240{
13241 struct sockaddr_storage s;
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext
13247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_cv_have_struct_sockaddr_storage="yes"
13259else
13260 echo "$as_me: failed program was:" >&5
13261cat conftest.$ac_ext >&5
13262 ac_cv_have_struct_sockaddr_storage="no"
13263
13264fi
13265rm -f conftest.$ac_objext conftest.$ac_ext
13266
13267fi
13268echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
13269echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
13270if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
13271 cat >>confdefs.h <<\_ACEOF
13272@%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
13273_ACEOF
13274
13275fi
13276
13277echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13278echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13279if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282
13283 cat >conftest.$ac_ext <<_ACEOF
13284#line $LINENO "configure"
13285#include "confdefs.h"
13286
13287#include <sys/types.h>
13288#include <netinet/in.h>
13289
13290#ifdef F77_DUMMY_MAIN
13291# ifdef __cplusplus
13292 extern "C"
13293# endif
13294 int F77_DUMMY_MAIN() { return 1; }
13295#endif
13296int
13297main ()
13298{
13299 struct sockaddr_in6 s; s.sin6_family = 0;
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext
13305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -s conftest.$ac_objext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_cv_have_struct_sockaddr_in6="yes"
13317else
13318 echo "$as_me: failed program was:" >&5
13319cat conftest.$ac_ext >&5
13320 ac_cv_have_struct_sockaddr_in6="no"
13321
13322fi
13323rm -f conftest.$ac_objext conftest.$ac_ext
13324
13325fi
13326echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
13327echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
13328if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
13329 cat >>confdefs.h <<\_ACEOF
13330@%:@define HAVE_STRUCT_SOCKADDR_IN6 1
13331_ACEOF
13332
13333fi
13334
13335echo "$as_me:$LINENO: checking for struct in6_addr" >&5
13336echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
13337if test "${ac_cv_have_struct_in6_addr+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339else
13340
13341 cat >conftest.$ac_ext <<_ACEOF
13342#line $LINENO "configure"
13343#include "confdefs.h"
13344
13345#include <sys/types.h>
13346#include <netinet/in.h>
13347
13348#ifdef F77_DUMMY_MAIN
13349# ifdef __cplusplus
13350 extern "C"
13351# endif
13352 int F77_DUMMY_MAIN() { return 1; }
13353#endif
13354int
13355main ()
13356{
13357 struct in6_addr s; s.s6_addr[0] = 0;
13358 ;
13359 return 0;
13360}
13361_ACEOF
13362rm -f conftest.$ac_objext
13363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364 (eval $ac_compile) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -s conftest.$ac_objext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 ac_cv_have_struct_in6_addr="yes"
13375else
13376 echo "$as_me: failed program was:" >&5
13377cat conftest.$ac_ext >&5
13378 ac_cv_have_struct_in6_addr="no"
13379
13380fi
13381rm -f conftest.$ac_objext conftest.$ac_ext
13382
13383fi
13384echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
13385echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
13386if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13387 cat >>confdefs.h <<\_ACEOF
13388@%:@define HAVE_STRUCT_IN6_ADDR 1
13389_ACEOF
13390
13391fi
13392
13393echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13394echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13395if test "${ac_cv_have_struct_addrinfo+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13397else
13398
13399 cat >conftest.$ac_ext <<_ACEOF
13400#line $LINENO "configure"
13401#include "confdefs.h"
13402
13403#include <sys/types.h>
13404#include <sys/socket.h>
13405#include <netdb.h>
13406
13407#ifdef F77_DUMMY_MAIN
13408# ifdef __cplusplus
13409 extern "C"
13410# endif
13411 int F77_DUMMY_MAIN() { return 1; }
13412#endif
13413int
13414main ()
13415{
13416 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13417 ;
13418 return 0;
13419}
13420_ACEOF
13421rm -f conftest.$ac_objext
13422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13423 (eval $ac_compile) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -s conftest.$ac_objext'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13430 ac_status=$?
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
13433 ac_cv_have_struct_addrinfo="yes"
13434else
13435 echo "$as_me: failed program was:" >&5
13436cat conftest.$ac_ext >&5
13437 ac_cv_have_struct_addrinfo="no"
13438
13439fi
13440rm -f conftest.$ac_objext conftest.$ac_ext
13441
13442fi
13443echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
13444echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
13445if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13446 cat >>confdefs.h <<\_ACEOF
13447@%:@define HAVE_STRUCT_ADDRINFO 1
13448_ACEOF
13449
13450fi
13451
13452echo "$as_me:$LINENO: checking for struct timeval" >&5
13453echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
13454if test "${ac_cv_have_struct_timeval+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457
13458 cat >conftest.$ac_ext <<_ACEOF
13459#line $LINENO "configure"
13460#include "confdefs.h"
13461 #include <sys/time.h>
13462#ifdef F77_DUMMY_MAIN
13463# ifdef __cplusplus
13464 extern "C"
13465# endif
13466 int F77_DUMMY_MAIN() { return 1; }
13467#endif
13468int
13469main ()
13470{
13471 struct timeval tv; tv.tv_sec = 1;
13472 ;
13473 return 0;
13474}
13475_ACEOF
13476rm -f conftest.$ac_objext
13477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_cv_have_struct_timeval="yes"
13489else
13490 echo "$as_me: failed program was:" >&5
13491cat conftest.$ac_ext >&5
13492 ac_cv_have_struct_timeval="no"
13493
13494fi
13495rm -f conftest.$ac_objext conftest.$ac_ext
13496
13497fi
13498echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
13499echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
13500if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13501 cat >>confdefs.h <<\_ACEOF
13502@%:@define HAVE_STRUCT_TIMEVAL 1
13503_ACEOF
13504
13505 have_struct_timeval=1
13506fi
13507
13508echo "$as_me:$LINENO: checking for struct timespec" >&5
13509echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
13510if test "${ac_cv_type_struct_timespec+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13512else
13513 cat >conftest.$ac_ext <<_ACEOF
13514#line $LINENO "configure"
13515#include "confdefs.h"
13516$ac_includes_default
13517#ifdef F77_DUMMY_MAIN
13518# ifdef __cplusplus
13519 extern "C"
13520# endif
13521 int F77_DUMMY_MAIN() { return 1; }
13522#endif
13523int
13524main ()
13525{
13526if ((struct timespec *) 0)
13527 return 0;
13528if (sizeof (struct timespec))
13529 return 0;
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534rm -f conftest.$ac_objext
13535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_type_struct_timespec=yes
13547else
13548 echo "$as_me: failed program was:" >&5
13549cat conftest.$ac_ext >&5
13550ac_cv_type_struct_timespec=no
13551fi
13552rm -f conftest.$ac_objext conftest.$ac_ext
13553fi
13554echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
13555echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
13556if test $ac_cv_type_struct_timespec = yes; then
13557
13558cat >>confdefs.h <<_ACEOF
13559@%:@define HAVE_STRUCT_TIMESPEC 1
13560_ACEOF
13561
13562
13563fi
13564
13565
13566# We need int64_t or else certian parts of the compile will fail.
13567if test "x$ac_cv_have_int64_t" = "xno" -a \
13568 "x$ac_cv_sizeof_long_int" != "x8" -a \
13569 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13570 echo "OpenSSH requires int64_t support. Contact your vendor or install"
13571 echo "an alternative compiler (I.E., GCC) before continuing."
13572 echo ""
13573 exit 1;
13574else
13575 if test "$cross_compiling" = yes; then
13576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13577echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13578 { (exit 1); exit 1; }; }
13579else
13580 cat >conftest.$ac_ext <<_ACEOF
13581#line $LINENO "configure"
13582#include "confdefs.h"
13583
13584#include <stdio.h>
13585#include <string.h>
13586#ifdef HAVE_SNPRINTF
13587main()
13588{
13589 char buf[50];
13590 char expected_out[50];
13591 int mazsize = 50 ;
13592#if (SIZEOF_LONG_INT == 8)
13593 long int num = 0x7fffffffffffffff;
13594#else
13595 long long num = 0x7fffffffffffffffll;
13596#endif
13597 strcpy(expected_out, "9223372036854775807");
13598 snprintf(buf, mazsize, "%lld", num);
13599 if(strcmp(buf, expected_out) != 0)
13600 exit(1);
13601 exit(0);
13602}
13603#else
13604main() { exit(0); }
13605#endif
13606
13607_ACEOF
13608rm -f conftest$ac_exeext
13609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610 (eval $ac_link) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 true
13620else
13621 echo "$as_me: program exited with status $ac_status" >&5
13622echo "$as_me: failed program was:" >&5
13623cat conftest.$ac_ext >&5
13624( exit $ac_status )
13625 cat >>confdefs.h <<\_ACEOF
13626@%:@define BROKEN_SNPRINTF 1
13627_ACEOF
13628
13629
13630fi
13631rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13632fi
13633fi
13634
13635
13636# look for field 'ut_host' in header 'utmp.h'
13637 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13638 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13639 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
13640echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
13641 if eval "test \"\${$ossh_varname+set}\" = set"; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643else
13644
13645 cat >conftest.$ac_ext <<_ACEOF
13646#line $LINENO "configure"
13647#include "confdefs.h"
13648#include <utmp.h>
13649
13650_ACEOF
13651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13652 egrep "ut_host" >/dev/null 2>&1; then
13653 eval "$ossh_varname=yes"
13654else
13655 eval "$ossh_varname=no"
13656fi
13657rm -f conftest*
13658
13659fi
13660
13661 ossh_result=`eval 'echo $'"$ossh_varname"`
13662 if test -n "`echo $ossh_varname`"; then
13663 echo "$as_me:$LINENO: result: $ossh_result" >&5
13664echo "${ECHO_T}$ossh_result" >&6
13665 if test "x$ossh_result" = "xyes"; then
13666 cat >>confdefs.h <<\_ACEOF
13667@%:@define HAVE_HOST_IN_UTMP 1
13668_ACEOF
13669
13670 fi
13671 else
13672 echo "$as_me:$LINENO: result: no" >&5
13673echo "${ECHO_T}no" >&6
13674 fi
13675
13676
13677# look for field 'ut_host' in header 'utmpx.h'
13678 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13679 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13680 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
13681echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
13682 if eval "test \"\${$ossh_varname+set}\" = set"; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684else
13685
13686 cat >conftest.$ac_ext <<_ACEOF
13687#line $LINENO "configure"
13688#include "confdefs.h"
13689#include <utmpx.h>
13690
13691_ACEOF
13692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13693 egrep "ut_host" >/dev/null 2>&1; then
13694 eval "$ossh_varname=yes"
13695else
13696 eval "$ossh_varname=no"
13697fi
13698rm -f conftest*
13699
13700fi
13701
13702 ossh_result=`eval 'echo $'"$ossh_varname"`
13703 if test -n "`echo $ossh_varname`"; then
13704 echo "$as_me:$LINENO: result: $ossh_result" >&5
13705echo "${ECHO_T}$ossh_result" >&6
13706 if test "x$ossh_result" = "xyes"; then
13707 cat >>confdefs.h <<\_ACEOF
13708@%:@define HAVE_HOST_IN_UTMPX 1
13709_ACEOF
13710
13711 fi
13712 else
13713 echo "$as_me:$LINENO: result: no" >&5
13714echo "${ECHO_T}no" >&6
13715 fi
13716
13717
13718# look for field 'syslen' in header 'utmpx.h'
13719 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13720 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13721 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
13722echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
13723 if eval "test \"\${$ossh_varname+set}\" = set"; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725else
13726
13727 cat >conftest.$ac_ext <<_ACEOF
13728#line $LINENO "configure"
13729#include "confdefs.h"
13730#include <utmpx.h>
13731
13732_ACEOF
13733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13734 egrep "syslen" >/dev/null 2>&1; then
13735 eval "$ossh_varname=yes"
13736else
13737 eval "$ossh_varname=no"
13738fi
13739rm -f conftest*
13740
13741fi
13742
13743 ossh_result=`eval 'echo $'"$ossh_varname"`
13744 if test -n "`echo $ossh_varname`"; then
13745 echo "$as_me:$LINENO: result: $ossh_result" >&5
13746echo "${ECHO_T}$ossh_result" >&6
13747 if test "x$ossh_result" = "xyes"; then
13748 cat >>confdefs.h <<\_ACEOF
13749@%:@define HAVE_SYSLEN_IN_UTMPX 1
13750_ACEOF
13751
13752 fi
13753 else
13754 echo "$as_me:$LINENO: result: no" >&5
13755echo "${ECHO_T}no" >&6
13756 fi
13757
13758
13759# look for field 'ut_pid' in header 'utmp.h'
13760 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13761 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13762 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
13763echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
13764 if eval "test \"\${$ossh_varname+set}\" = set"; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766else
13767
13768 cat >conftest.$ac_ext <<_ACEOF
13769#line $LINENO "configure"
13770#include "confdefs.h"
13771#include <utmp.h>
13772
13773_ACEOF
13774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13775 egrep "ut_pid" >/dev/null 2>&1; then
13776 eval "$ossh_varname=yes"
13777else
13778 eval "$ossh_varname=no"
13779fi
13780rm -f conftest*
13781
13782fi
13783
13784 ossh_result=`eval 'echo $'"$ossh_varname"`
13785 if test -n "`echo $ossh_varname`"; then
13786 echo "$as_me:$LINENO: result: $ossh_result" >&5
13787echo "${ECHO_T}$ossh_result" >&6
13788 if test "x$ossh_result" = "xyes"; then
13789 cat >>confdefs.h <<\_ACEOF
13790@%:@define HAVE_PID_IN_UTMP 1
13791_ACEOF
13792
13793 fi
13794 else
13795 echo "$as_me:$LINENO: result: no" >&5
13796echo "${ECHO_T}no" >&6
13797 fi
13798
13799
13800# look for field 'ut_type' in header 'utmp.h'
13801 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13802 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13803 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
13804echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13805 if eval "test \"\${$ossh_varname+set}\" = set"; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808
13809 cat >conftest.$ac_ext <<_ACEOF
13810#line $LINENO "configure"
13811#include "confdefs.h"
13812#include <utmp.h>
13813
13814_ACEOF
13815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13816 egrep "ut_type" >/dev/null 2>&1; then
13817 eval "$ossh_varname=yes"
13818else
13819 eval "$ossh_varname=no"
13820fi
13821rm -f conftest*
13822
13823fi
13824
13825 ossh_result=`eval 'echo $'"$ossh_varname"`
13826 if test -n "`echo $ossh_varname`"; then
13827 echo "$as_me:$LINENO: result: $ossh_result" >&5
13828echo "${ECHO_T}$ossh_result" >&6
13829 if test "x$ossh_result" = "xyes"; then
13830 cat >>confdefs.h <<\_ACEOF
13831@%:@define HAVE_TYPE_IN_UTMP 1
13832_ACEOF
13833
13834 fi
13835 else
13836 echo "$as_me:$LINENO: result: no" >&5
13837echo "${ECHO_T}no" >&6
13838 fi
13839
13840
13841# look for field 'ut_type' in header 'utmpx.h'
13842 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13843 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13844 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
13845echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13846 if eval "test \"\${$ossh_varname+set}\" = set"; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848else
13849
13850 cat >conftest.$ac_ext <<_ACEOF
13851#line $LINENO "configure"
13852#include "confdefs.h"
13853#include <utmpx.h>
13854
13855_ACEOF
13856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13857 egrep "ut_type" >/dev/null 2>&1; then
13858 eval "$ossh_varname=yes"
13859else
13860 eval "$ossh_varname=no"
13861fi
13862rm -f conftest*
13863
13864fi
13865
13866 ossh_result=`eval 'echo $'"$ossh_varname"`
13867 if test -n "`echo $ossh_varname`"; then
13868 echo "$as_me:$LINENO: result: $ossh_result" >&5
13869echo "${ECHO_T}$ossh_result" >&6
13870 if test "x$ossh_result" = "xyes"; then
13871 cat >>confdefs.h <<\_ACEOF
13872@%:@define HAVE_TYPE_IN_UTMPX 1
13873_ACEOF
13874
13875 fi
13876 else
13877 echo "$as_me:$LINENO: result: no" >&5
13878echo "${ECHO_T}no" >&6
13879 fi
13880
13881
13882# look for field 'ut_tv' in header 'utmp.h'
13883 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13884 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13885 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13886echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13887 if eval "test \"\${$ossh_varname+set}\" = set"; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890
13891 cat >conftest.$ac_ext <<_ACEOF
13892#line $LINENO "configure"
13893#include "confdefs.h"
13894#include <utmp.h>
13895
13896_ACEOF
13897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13898 egrep "ut_tv" >/dev/null 2>&1; then
13899 eval "$ossh_varname=yes"
13900else
13901 eval "$ossh_varname=no"
13902fi
13903rm -f conftest*
13904
13905fi
13906
13907 ossh_result=`eval 'echo $'"$ossh_varname"`
13908 if test -n "`echo $ossh_varname`"; then
13909 echo "$as_me:$LINENO: result: $ossh_result" >&5
13910echo "${ECHO_T}$ossh_result" >&6
13911 if test "x$ossh_result" = "xyes"; then
13912 cat >>confdefs.h <<\_ACEOF
13913@%:@define HAVE_TV_IN_UTMP 1
13914_ACEOF
13915
13916 fi
13917 else
13918 echo "$as_me:$LINENO: result: no" >&5
13919echo "${ECHO_T}no" >&6
13920 fi
13921
13922
13923# look for field 'ut_id' in header 'utmp.h'
13924 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13925 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13926 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13927echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13928 if eval "test \"\${$ossh_varname+set}\" = set"; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930else
13931
13932 cat >conftest.$ac_ext <<_ACEOF
13933#line $LINENO "configure"
13934#include "confdefs.h"
13935#include <utmp.h>
13936
13937_ACEOF
13938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13939 egrep "ut_id" >/dev/null 2>&1; then
13940 eval "$ossh_varname=yes"
13941else
13942 eval "$ossh_varname=no"
13943fi
13944rm -f conftest*
13945
13946fi
13947
13948 ossh_result=`eval 'echo $'"$ossh_varname"`
13949 if test -n "`echo $ossh_varname`"; then
13950 echo "$as_me:$LINENO: result: $ossh_result" >&5
13951echo "${ECHO_T}$ossh_result" >&6
13952 if test "x$ossh_result" = "xyes"; then
13953 cat >>confdefs.h <<\_ACEOF
13954@%:@define HAVE_ID_IN_UTMP 1
13955_ACEOF
13956
13957 fi
13958 else
13959 echo "$as_me:$LINENO: result: no" >&5
13960echo "${ECHO_T}no" >&6
13961 fi
13962
13963
13964# look for field 'ut_id' in header 'utmpx.h'
13965 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13966 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13967 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13968echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13969 if eval "test \"\${$ossh_varname+set}\" = set"; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972
13973 cat >conftest.$ac_ext <<_ACEOF
13974#line $LINENO "configure"
13975#include "confdefs.h"
13976#include <utmpx.h>
13977
13978_ACEOF
13979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13980 egrep "ut_id" >/dev/null 2>&1; then
13981 eval "$ossh_varname=yes"
13982else
13983 eval "$ossh_varname=no"
13984fi
13985rm -f conftest*
13986
13987fi
13988
13989 ossh_result=`eval 'echo $'"$ossh_varname"`
13990 if test -n "`echo $ossh_varname`"; then
13991 echo "$as_me:$LINENO: result: $ossh_result" >&5
13992echo "${ECHO_T}$ossh_result" >&6
13993 if test "x$ossh_result" = "xyes"; then
13994 cat >>confdefs.h <<\_ACEOF
13995@%:@define HAVE_ID_IN_UTMPX 1
13996_ACEOF
13997
13998 fi
13999 else
14000 echo "$as_me:$LINENO: result: no" >&5
14001echo "${ECHO_T}no" >&6
14002 fi
14003
14004
14005# look for field 'ut_addr' in header 'utmp.h'
14006 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14007 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
14008 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
14009echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
14010 if eval "test \"\${$ossh_varname+set}\" = set"; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012else
14013
14014 cat >conftest.$ac_ext <<_ACEOF
14015#line $LINENO "configure"
14016#include "confdefs.h"
14017#include <utmp.h>
14018
14019_ACEOF
14020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14021 egrep "ut_addr" >/dev/null 2>&1; then
14022 eval "$ossh_varname=yes"
14023else
14024 eval "$ossh_varname=no"
14025fi
14026rm -f conftest*
14027
14028fi
14029
14030 ossh_result=`eval 'echo $'"$ossh_varname"`
14031 if test -n "`echo $ossh_varname`"; then
14032 echo "$as_me:$LINENO: result: $ossh_result" >&5
14033echo "${ECHO_T}$ossh_result" >&6
14034 if test "x$ossh_result" = "xyes"; then
14035 cat >>confdefs.h <<\_ACEOF
14036@%:@define HAVE_ADDR_IN_UTMP 1
14037_ACEOF
14038
14039 fi
14040 else
14041 echo "$as_me:$LINENO: result: no" >&5
14042echo "${ECHO_T}no" >&6
14043 fi
14044
14045
14046# look for field 'ut_addr' in header 'utmpx.h'
14047 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14048 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
14049 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
14050echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
14051 if eval "test \"\${$ossh_varname+set}\" = set"; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053else
14054
14055 cat >conftest.$ac_ext <<_ACEOF
14056#line $LINENO "configure"
14057#include "confdefs.h"
14058#include <utmpx.h>
14059
14060_ACEOF
14061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14062 egrep "ut_addr" >/dev/null 2>&1; then
14063 eval "$ossh_varname=yes"
14064else
14065 eval "$ossh_varname=no"
14066fi
14067rm -f conftest*
14068
14069fi
14070
14071 ossh_result=`eval 'echo $'"$ossh_varname"`
14072 if test -n "`echo $ossh_varname`"; then
14073 echo "$as_me:$LINENO: result: $ossh_result" >&5
14074echo "${ECHO_T}$ossh_result" >&6
14075 if test "x$ossh_result" = "xyes"; then
14076 cat >>confdefs.h <<\_ACEOF
14077@%:@define HAVE_ADDR_IN_UTMPX 1
14078_ACEOF
14079
14080 fi
14081 else
14082 echo "$as_me:$LINENO: result: no" >&5
14083echo "${ECHO_T}no" >&6
14084 fi
14085
14086
14087# look for field 'ut_addr_v6' in header 'utmp.h'
14088 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14089 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
14090 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
14091echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
14092 if eval "test \"\${$ossh_varname+set}\" = set"; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094else
14095
14096 cat >conftest.$ac_ext <<_ACEOF
14097#line $LINENO "configure"
14098#include "confdefs.h"
14099#include <utmp.h>
14100
14101_ACEOF
14102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14103 egrep "ut_addr_v6" >/dev/null 2>&1; then
14104 eval "$ossh_varname=yes"
14105else
14106 eval "$ossh_varname=no"
14107fi
14108rm -f conftest*
14109
14110fi
14111
14112 ossh_result=`eval 'echo $'"$ossh_varname"`
14113 if test -n "`echo $ossh_varname`"; then
14114 echo "$as_me:$LINENO: result: $ossh_result" >&5
14115echo "${ECHO_T}$ossh_result" >&6
14116 if test "x$ossh_result" = "xyes"; then
14117 cat >>confdefs.h <<\_ACEOF
14118@%:@define HAVE_ADDR_V6_IN_UTMP 1
14119_ACEOF
14120
14121 fi
14122 else
14123 echo "$as_me:$LINENO: result: no" >&5
14124echo "${ECHO_T}no" >&6
14125 fi
14126
14127
14128# look for field 'ut_addr_v6' in header 'utmpx.h'
14129 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14130 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
14131 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
14132echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
14133 if eval "test \"\${$ossh_varname+set}\" = set"; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14135else
14136
14137 cat >conftest.$ac_ext <<_ACEOF
14138#line $LINENO "configure"
14139#include "confdefs.h"
14140#include <utmpx.h>
14141
14142_ACEOF
14143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14144 egrep "ut_addr_v6" >/dev/null 2>&1; then
14145 eval "$ossh_varname=yes"
14146else
14147 eval "$ossh_varname=no"
14148fi
14149rm -f conftest*
14150
14151fi
14152
14153 ossh_result=`eval 'echo $'"$ossh_varname"`
14154 if test -n "`echo $ossh_varname`"; then
14155 echo "$as_me:$LINENO: result: $ossh_result" >&5
14156echo "${ECHO_T}$ossh_result" >&6
14157 if test "x$ossh_result" = "xyes"; then
14158 cat >>confdefs.h <<\_ACEOF
14159@%:@define HAVE_ADDR_V6_IN_UTMPX 1
14160_ACEOF
14161
14162 fi
14163 else
14164 echo "$as_me:$LINENO: result: no" >&5
14165echo "${ECHO_T}no" >&6
14166 fi
14167
14168
14169# look for field 'ut_exit' in header 'utmp.h'
14170 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14171 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
14172 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
14173echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
14174 if eval "test \"\${$ossh_varname+set}\" = set"; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14176else
14177
14178 cat >conftest.$ac_ext <<_ACEOF
14179#line $LINENO "configure"
14180#include "confdefs.h"
14181#include <utmp.h>
14182
14183_ACEOF
14184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185 egrep "ut_exit" >/dev/null 2>&1; then
14186 eval "$ossh_varname=yes"
14187else
14188 eval "$ossh_varname=no"
14189fi
14190rm -f conftest*
14191
14192fi
14193
14194 ossh_result=`eval 'echo $'"$ossh_varname"`
14195 if test -n "`echo $ossh_varname`"; then
14196 echo "$as_me:$LINENO: result: $ossh_result" >&5
14197echo "${ECHO_T}$ossh_result" >&6
14198 if test "x$ossh_result" = "xyes"; then
14199 cat >>confdefs.h <<\_ACEOF
14200@%:@define HAVE_EXIT_IN_UTMP 1
14201_ACEOF
14202
14203 fi
14204 else
14205 echo "$as_me:$LINENO: result: no" >&5
14206echo "${ECHO_T}no" >&6
14207 fi
14208
14209
14210# look for field 'ut_time' in header 'utmp.h'
14211 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14212 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
14213 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
14214echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
14215 if eval "test \"\${$ossh_varname+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217else
14218
14219 cat >conftest.$ac_ext <<_ACEOF
14220#line $LINENO "configure"
14221#include "confdefs.h"
14222#include <utmp.h>
14223
14224_ACEOF
14225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14226 egrep "ut_time" >/dev/null 2>&1; then
14227 eval "$ossh_varname=yes"
14228else
14229 eval "$ossh_varname=no"
14230fi
14231rm -f conftest*
14232
14233fi
14234
14235 ossh_result=`eval 'echo $'"$ossh_varname"`
14236 if test -n "`echo $ossh_varname`"; then
14237 echo "$as_me:$LINENO: result: $ossh_result" >&5
14238echo "${ECHO_T}$ossh_result" >&6
14239 if test "x$ossh_result" = "xyes"; then
14240 cat >>confdefs.h <<\_ACEOF
14241@%:@define HAVE_TIME_IN_UTMP 1
14242_ACEOF
14243
14244 fi
14245 else
14246 echo "$as_me:$LINENO: result: no" >&5
14247echo "${ECHO_T}no" >&6
14248 fi
14249
14250
14251# look for field 'ut_time' in header 'utmpx.h'
14252 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14253 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
14254 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
14255echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
14256 if eval "test \"\${$ossh_varname+set}\" = set"; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14258else
14259
14260 cat >conftest.$ac_ext <<_ACEOF
14261#line $LINENO "configure"
14262#include "confdefs.h"
14263#include <utmpx.h>
14264
14265_ACEOF
14266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14267 egrep "ut_time" >/dev/null 2>&1; then
14268 eval "$ossh_varname=yes"
14269else
14270 eval "$ossh_varname=no"
14271fi
14272rm -f conftest*
14273
14274fi
14275
14276 ossh_result=`eval 'echo $'"$ossh_varname"`
14277 if test -n "`echo $ossh_varname`"; then
14278 echo "$as_me:$LINENO: result: $ossh_result" >&5
14279echo "${ECHO_T}$ossh_result" >&6
14280 if test "x$ossh_result" = "xyes"; then
14281 cat >>confdefs.h <<\_ACEOF
14282@%:@define HAVE_TIME_IN_UTMPX 1
14283_ACEOF
14284
14285 fi
14286 else
14287 echo "$as_me:$LINENO: result: no" >&5
14288echo "${ECHO_T}no" >&6
14289 fi
14290
14291
14292# look for field 'ut_tv' in header 'utmpx.h'
14293 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14294 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
14295 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
14296echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
14297 if eval "test \"\${$ossh_varname+set}\" = set"; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14299else
14300
14301 cat >conftest.$ac_ext <<_ACEOF
14302#line $LINENO "configure"
14303#include "confdefs.h"
14304#include <utmpx.h>
14305
14306_ACEOF
14307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14308 egrep "ut_tv" >/dev/null 2>&1; then
14309 eval "$ossh_varname=yes"
14310else
14311 eval "$ossh_varname=no"
14312fi
14313rm -f conftest*
14314
14315fi
14316
14317 ossh_result=`eval 'echo $'"$ossh_varname"`
14318 if test -n "`echo $ossh_varname`"; then
14319 echo "$as_me:$LINENO: result: $ossh_result" >&5
14320echo "${ECHO_T}$ossh_result" >&6
14321 if test "x$ossh_result" = "xyes"; then
14322 cat >>confdefs.h <<\_ACEOF
14323@%:@define HAVE_TV_IN_UTMPX 1
14324_ACEOF
14325
14326 fi
14327 else
14328 echo "$as_me:$LINENO: result: no" >&5
14329echo "${ECHO_T}no" >&6
14330 fi
14331
14332
14333echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14334echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14335if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337else
14338 cat >conftest.$ac_ext <<_ACEOF
14339#line $LINENO "configure"
14340#include "confdefs.h"
14341$ac_includes_default
14342#ifdef F77_DUMMY_MAIN
14343# ifdef __cplusplus
14344 extern "C"
14345# endif
14346 int F77_DUMMY_MAIN() { return 1; }
14347#endif
14348int
14349main ()
14350{
14351static struct stat ac_aggr;
14352if (ac_aggr.st_blksize)
14353return 0;
14354 ;
14355 return 0;
14356}
14357_ACEOF
14358rm -f conftest.$ac_objext
14359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -s conftest.$ac_objext'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14370 ac_cv_member_struct_stat_st_blksize=yes
14371else
14372 echo "$as_me: failed program was:" >&5
14373cat conftest.$ac_ext >&5
14374ac_cv_member_struct_stat_st_blksize=no
14375fi
14376rm -f conftest.$ac_objext conftest.$ac_ext
14377fi
14378echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14379echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14380if test $ac_cv_member_struct_stat_st_blksize = yes; then
14381
14382cat >>confdefs.h <<_ACEOF
14383@%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14384_ACEOF
14385
14386
14387fi
14388
14389
14390echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
14391echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
14392if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395
14396 cat >conftest.$ac_ext <<_ACEOF
14397#line $LINENO "configure"
14398#include "confdefs.h"
14399
14400#include <sys/types.h>
14401#include <sys/socket.h>
14402
14403#ifdef F77_DUMMY_MAIN
14404# ifdef __cplusplus
14405 extern "C"
14406# endif
14407 int F77_DUMMY_MAIN() { return 1; }
14408#endif
14409int
14410main ()
14411{
14412 struct sockaddr_storage s; s.ss_family = 1;
14413 ;
14414 return 0;
14415}
14416_ACEOF
14417rm -f conftest.$ac_objext
14418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419 (eval $ac_compile) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } &&
14423 { ac_try='test -s conftest.$ac_objext'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_cv_have_ss_family_in_struct_ss="yes"
14430else
14431 echo "$as_me: failed program was:" >&5
14432cat conftest.$ac_ext >&5
14433 ac_cv_have_ss_family_in_struct_ss="no"
14434fi
14435rm -f conftest.$ac_objext conftest.$ac_ext
14436
14437fi
14438echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14439echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
14440if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
14441 cat >>confdefs.h <<\_ACEOF
14442@%:@define HAVE_SS_FAMILY_IN_SS 1
14443_ACEOF
14444
14445fi
14446
14447echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
14448echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
14449if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451else
14452
14453 cat >conftest.$ac_ext <<_ACEOF
14454#line $LINENO "configure"
14455#include "confdefs.h"
14456
14457#include <sys/types.h>
14458#include <sys/socket.h>
14459
14460#ifdef F77_DUMMY_MAIN
14461# ifdef __cplusplus
14462 extern "C"
14463# endif
14464 int F77_DUMMY_MAIN() { return 1; }
14465#endif
14466int
14467main ()
14468{
14469 struct sockaddr_storage s; s.__ss_family = 1;
14470 ;
14471 return 0;
14472}
14473_ACEOF
14474rm -f conftest.$ac_objext
14475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 ac_cv_have___ss_family_in_struct_ss="yes"
14487else
14488 echo "$as_me: failed program was:" >&5
14489cat conftest.$ac_ext >&5
14490 ac_cv_have___ss_family_in_struct_ss="no"
14491
14492fi
14493rm -f conftest.$ac_objext conftest.$ac_ext
14494
14495fi
14496echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14497echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
14498if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14499 cat >>confdefs.h <<\_ACEOF
14500@%:@define HAVE___SS_FAMILY_IN_SS 1
14501_ACEOF
14502
14503fi
14504
14505echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
14506echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
14507if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509else
14510
14511 cat >conftest.$ac_ext <<_ACEOF
14512#line $LINENO "configure"
14513#include "confdefs.h"
14514
14515#include <pwd.h>
14516
14517#ifdef F77_DUMMY_MAIN
14518# ifdef __cplusplus
14519 extern "C"
14520# endif
14521 int F77_DUMMY_MAIN() { return 1; }
14522#endif
14523int
14524main ()
14525{
14526 struct passwd p; p.pw_class = 0;
14527 ;
14528 return 0;
14529}
14530_ACEOF
14531rm -f conftest.$ac_objext
14532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14533 (eval $ac_compile) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_cv_have_pw_class_in_struct_passwd="yes"
14544else
14545 echo "$as_me: failed program was:" >&5
14546cat conftest.$ac_ext >&5
14547 ac_cv_have_pw_class_in_struct_passwd="no"
14548
14549fi
14550rm -f conftest.$ac_objext conftest.$ac_ext
14551
14552fi
14553echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14554echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
14555if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14556 cat >>confdefs.h <<\_ACEOF
14557@%:@define HAVE_PW_CLASS_IN_PASSWD 1
14558_ACEOF
14559
14560fi
14561
14562echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
14563echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
14564if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566else
14567
14568 cat >conftest.$ac_ext <<_ACEOF
14569#line $LINENO "configure"
14570#include "confdefs.h"
14571
14572#include <pwd.h>
14573
14574#ifdef F77_DUMMY_MAIN
14575# ifdef __cplusplus
14576 extern "C"
14577# endif
14578 int F77_DUMMY_MAIN() { return 1; }
14579#endif
14580int
14581main ()
14582{
14583 struct passwd p; p.pw_expire = 0;
14584 ;
14585 return 0;
14586}
14587_ACEOF
14588rm -f conftest.$ac_objext
14589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_cv_have_pw_expire_in_struct_passwd="yes"
14601else
14602 echo "$as_me: failed program was:" >&5
14603cat conftest.$ac_ext >&5
14604 ac_cv_have_pw_expire_in_struct_passwd="no"
14605
14606fi
14607rm -f conftest.$ac_objext conftest.$ac_ext
14608
14609fi
14610echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14611echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
14612if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14613 cat >>confdefs.h <<\_ACEOF
14614@%:@define HAVE_PW_EXPIRE_IN_PASSWD 1
14615_ACEOF
14616
14617fi
14618
14619echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
14620echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
14621if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14623else
14624
14625 cat >conftest.$ac_ext <<_ACEOF
14626#line $LINENO "configure"
14627#include "confdefs.h"
14628
14629#include <pwd.h>
14630
14631#ifdef F77_DUMMY_MAIN
14632# ifdef __cplusplus
14633 extern "C"
14634# endif
14635 int F77_DUMMY_MAIN() { return 1; }
14636#endif
14637int
14638main ()
14639{
14640 struct passwd p; p.pw_change = 0;
14641 ;
14642 return 0;
14643}
14644_ACEOF
14645rm -f conftest.$ac_objext
14646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14647 (eval $ac_compile) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_have_pw_change_in_struct_passwd="yes"
14658else
14659 echo "$as_me: failed program was:" >&5
14660cat conftest.$ac_ext >&5
14661 ac_cv_have_pw_change_in_struct_passwd="no"
14662
14663fi
14664rm -f conftest.$ac_objext conftest.$ac_ext
14665
14666fi
14667echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14668echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
14669if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14670 cat >>confdefs.h <<\_ACEOF
14671@%:@define HAVE_PW_CHANGE_IN_PASSWD 1
14672_ACEOF
14673
14674fi
14675
14676echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
14677echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
14678if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680else
14681
14682 if test "$cross_compiling" = yes; then
14683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14684echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14685 { (exit 1); exit 1; }; }
14686else
14687 cat >conftest.$ac_ext <<_ACEOF
14688#line $LINENO "configure"
14689#include "confdefs.h"
14690
14691#include <sys/types.h>
14692#include <sys/socket.h>
14693#include <sys/uio.h>
14694int main() {
14695#ifdef msg_accrights
14696exit(1);
14697#endif
14698struct msghdr m;
14699m.msg_accrights = 0;
14700exit(0);
14701}
14702
14703_ACEOF
14704rm -f conftest$ac_exeext
14705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14706 (eval $ac_link) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_have_accrights_in_msghdr="yes"
14716else
14717 echo "$as_me: program exited with status $ac_status" >&5
14718echo "$as_me: failed program was:" >&5
14719cat conftest.$ac_ext >&5
14720( exit $ac_status )
14721 ac_cv_have_accrights_in_msghdr="no"
14722
14723fi
14724rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14725fi
14726
14727fi
14728echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
14729echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14730if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14731 cat >>confdefs.h <<\_ACEOF
14732@%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
14733_ACEOF
14734
14735fi
14736
14737echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
14738echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14739if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742
14743 if test "$cross_compiling" = yes; then
14744 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14745echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14746 { (exit 1); exit 1; }; }
14747else
14748 cat >conftest.$ac_ext <<_ACEOF
14749#line $LINENO "configure"
14750#include "confdefs.h"
14751
14752#include <sys/types.h>
14753#include <sys/socket.h>
14754#include <sys/uio.h>
14755int main() {
14756#ifdef msg_control
14757exit(1);
14758#endif
14759struct msghdr m;
14760m.msg_control = 0;
14761exit(0);
14762}
14763
14764_ACEOF
14765rm -f conftest$ac_exeext
14766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14767 (eval $ac_link) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 ac_cv_have_control_in_msghdr="yes"
14777else
14778 echo "$as_me: program exited with status $ac_status" >&5
14779echo "$as_me: failed program was:" >&5
14780cat conftest.$ac_ext >&5
14781( exit $ac_status )
14782 ac_cv_have_control_in_msghdr="no"
14783
14784fi
14785rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14786fi
14787
14788fi
14789echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
14790echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14791if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14792 cat >>confdefs.h <<\_ACEOF
14793@%:@define HAVE_CONTROL_IN_MSGHDR 1
14794_ACEOF
14795
14796fi
14797
14798echo "$as_me:$LINENO: checking if libc defines __progname" >&5
14799echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14800if test "${ac_cv_libc_defines___progname+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14802else
14803
14804 cat >conftest.$ac_ext <<_ACEOF
14805#line $LINENO "configure"
14806#include "confdefs.h"
14807
14808#ifdef F77_DUMMY_MAIN
14809# ifdef __cplusplus
14810 extern "C"
14811# endif
14812 int F77_DUMMY_MAIN() { return 1; }
14813#endif
14814int
14815main ()
14816{
14817 extern char *__progname; printf("%s", __progname);
14818 ;
14819 return 0;
14820}
14821_ACEOF
14822rm -f conftest.$ac_objext conftest$ac_exeext
14823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -s conftest$ac_exeext'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 ac_cv_libc_defines___progname="yes"
14835else
14836 echo "$as_me: failed program was:" >&5
14837cat conftest.$ac_ext >&5
14838 ac_cv_libc_defines___progname="no"
14839
14840fi
14841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14842
14843fi
14844echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
14845echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14846if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14847 cat >>confdefs.h <<\_ACEOF
14848@%:@define HAVE___PROGNAME 1
14849_ACEOF
14850
14851fi
14852
14853echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14854echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14855if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14857else
14858
14859 cat >conftest.$ac_ext <<_ACEOF
14860#line $LINENO "configure"
14861#include "confdefs.h"
14862
14863#include <stdio.h>
14864
14865#ifdef F77_DUMMY_MAIN
14866# ifdef __cplusplus
14867 extern "C"
14868# endif
14869 int F77_DUMMY_MAIN() { return 1; }
14870#endif
14871int
14872main ()
14873{
14874 printf("%s", __FUNCTION__);
14875 ;
14876 return 0;
14877}
14878_ACEOF
14879rm -f conftest.$ac_objext conftest$ac_exeext
14880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try='test -s conftest$ac_exeext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_cc_implements___FUNCTION__="yes"
14892else
14893 echo "$as_me: failed program was:" >&5
14894cat conftest.$ac_ext >&5
14895 ac_cv_cc_implements___FUNCTION__="no"
14896
14897fi
14898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14899
14900fi
14901echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14902echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14903if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14904 cat >>confdefs.h <<\_ACEOF
14905@%:@define HAVE___FUNCTION__ 1
14906_ACEOF
14907
14908fi
14909
14910echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14911echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14912if test "${ac_cv_cc_implements___func__+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914else
14915
14916 cat >conftest.$ac_ext <<_ACEOF
14917#line $LINENO "configure"
14918#include "confdefs.h"
14919
14920#include <stdio.h>
14921
14922#ifdef F77_DUMMY_MAIN
14923# ifdef __cplusplus
14924 extern "C"
14925# endif
14926 int F77_DUMMY_MAIN() { return 1; }
14927#endif
14928int
14929main ()
14930{
14931 printf("%s", __func__);
14932 ;
14933 return 0;
14934}
14935_ACEOF
14936rm -f conftest.$ac_objext conftest$ac_exeext
14937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14938 (eval $ac_link) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -s conftest$ac_exeext'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 ac_cv_cc_implements___func__="yes"
14949else
14950 echo "$as_me: failed program was:" >&5
14951cat conftest.$ac_ext >&5
14952 ac_cv_cc_implements___func__="no"
14953
14954fi
14955rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14956
14957fi
14958echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14959echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14960if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14961 cat >>confdefs.h <<\_ACEOF
14962@%:@define HAVE___func__ 1
14963_ACEOF
14964
14965fi
14966
14967echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14968echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14969if test "${ac_cv_have_getopt_optreset+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971else
14972
14973 cat >conftest.$ac_ext <<_ACEOF
14974#line $LINENO "configure"
14975#include "confdefs.h"
14976
14977#include <getopt.h>
14978
14979#ifdef F77_DUMMY_MAIN
14980# ifdef __cplusplus
14981 extern "C"
14982# endif
14983 int F77_DUMMY_MAIN() { return 1; }
14984#endif
14985int
14986main ()
14987{
14988 extern int optreset; optreset = 0;
14989 ;
14990 return 0;
14991}
14992_ACEOF
14993rm -f conftest.$ac_objext conftest$ac_exeext
14994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14995 (eval $ac_link) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -s conftest$ac_exeext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_cv_have_getopt_optreset="yes"
15006else
15007 echo "$as_me: failed program was:" >&5
15008cat conftest.$ac_ext >&5
15009 ac_cv_have_getopt_optreset="no"
15010
15011fi
15012rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15013
15014fi
15015echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
15016echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
15017if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
15018 cat >>confdefs.h <<\_ACEOF
15019@%:@define HAVE_GETOPT_OPTRESET 1
15020_ACEOF
15021
15022fi
15023
15024echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
15025echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
15026if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028else
15029
15030 cat >conftest.$ac_ext <<_ACEOF
15031#line $LINENO "configure"
15032#include "confdefs.h"
15033
15034#ifdef F77_DUMMY_MAIN
15035# ifdef __cplusplus
15036 extern "C"
15037# endif
15038 int F77_DUMMY_MAIN() { return 1; }
15039#endif
15040int
15041main ()
15042{
15043 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048rm -f conftest.$ac_objext conftest$ac_exeext
15049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -s conftest$ac_exeext'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 ac_cv_libc_defines_sys_errlist="yes"
15061else
15062 echo "$as_me: failed program was:" >&5
15063cat conftest.$ac_ext >&5
15064 ac_cv_libc_defines_sys_errlist="no"
15065
15066fi
15067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15068
15069fi
15070echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
15071echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
15072if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
15073 cat >>confdefs.h <<\_ACEOF
15074@%:@define HAVE_SYS_ERRLIST 1
15075_ACEOF
15076
15077fi
15078
15079
15080echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
15081echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
15082if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084else
15085
15086 cat >conftest.$ac_ext <<_ACEOF
15087#line $LINENO "configure"
15088#include "confdefs.h"
15089
15090#ifdef F77_DUMMY_MAIN
15091# ifdef __cplusplus
15092 extern "C"
15093# endif
15094 int F77_DUMMY_MAIN() { return 1; }
15095#endif
15096int
15097main ()
15098{
15099 extern int sys_nerr; printf("%i", sys_nerr);
15100 ;
15101 return 0;
15102}
15103_ACEOF
15104rm -f conftest.$ac_objext conftest$ac_exeext
15105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106 (eval $ac_link) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } &&
15110 { ac_try='test -s conftest$ac_exeext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_libc_defines_sys_nerr="yes"
15117else
15118 echo "$as_me: failed program was:" >&5
15119cat conftest.$ac_ext >&5
15120 ac_cv_libc_defines_sys_nerr="no"
15121
15122fi
15123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15124
15125fi
15126echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
15127echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
15128if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
15129 cat >>confdefs.h <<\_ACEOF
15130@%:@define HAVE_SYS_NERR 1
15131_ACEOF
15132
15133fi
15134
15135SCARD_MSG="no"
15136
15137# Check whether user wants sectok support
15138
15139# Check whether --with-sectok or --without-sectok was given.
15140if test "${with_sectok+set}" = set; then
15141 withval="$with_sectok"
15142
15143 if test "x$withval" != "xno" ; then
15144 if test "x$withval" != "xyes" ; then
15145 CPPFLAGS="$CPPFLAGS -I${withval}"
15146 LDFLAGS="$LDFLAGS -L${withval}"
15147 if test ! -z "$need_dash_r" ; then
15148 LDFLAGS="$LDFLAGS -R${withval}"
15149 fi
15150 if test ! -z "$blibpath" ; then
15151 blibpath="$blibpath:${withval}"
15152 fi
15153 fi
15154
15155for ac_header in sectok.h
15156do
15157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15158if eval "test \"\${$as_ac_Header+set}\" = set"; then
15159 echo "$as_me:$LINENO: checking for $ac_header" >&5
15160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15161if eval "test \"\${$as_ac_Header+set}\" = set"; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163fi
15164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15166else
15167 # Is the header compilable?
15168echo "$as_me:$LINENO: checking $ac_header usability" >&5
15169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15170cat >conftest.$ac_ext <<_ACEOF
15171#line $LINENO "configure"
15172#include "confdefs.h"
15173$ac_includes_default
15174@%:@include <$ac_header>
15175_ACEOF
15176rm -f conftest.$ac_objext
15177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15178 (eval $ac_compile) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_header_compiler=yes
15189else
15190 echo "$as_me: failed program was:" >&5
15191cat conftest.$ac_ext >&5
15192ac_header_compiler=no
15193fi
15194rm -f conftest.$ac_objext conftest.$ac_ext
15195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196echo "${ECHO_T}$ac_header_compiler" >&6
15197
15198# Is the header present?
15199echo "$as_me:$LINENO: checking $ac_header presence" >&5
15200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15201cat >conftest.$ac_ext <<_ACEOF
15202#line $LINENO "configure"
15203#include "confdefs.h"
15204@%:@include <$ac_header>
15205_ACEOF
15206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15208 ac_status=$?
15209 egrep -v '^ *\+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } >/dev/null; then
15214 if test -s conftest.err; then
15215 ac_cpp_err=$ac_c_preproc_warn_flag
15216 else
15217 ac_cpp_err=
15218 fi
15219else
15220 ac_cpp_err=yes
15221fi
15222if test -z "$ac_cpp_err"; then
15223 ac_header_preproc=yes
15224else
15225 echo "$as_me: failed program was:" >&5
15226 cat conftest.$ac_ext >&5
15227 ac_header_preproc=no
15228fi
15229rm -f conftest.err conftest.$ac_ext
15230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15231echo "${ECHO_T}$ac_header_preproc" >&6
15232
15233# So? What about this header?
15234case $ac_header_compiler:$ac_header_preproc in
15235 yes:no )
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15240 no:yes )
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15246echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15247esac
15248echo "$as_me:$LINENO: checking for $ac_header" >&5
15249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15250if eval "test \"\${$as_ac_Header+set}\" = set"; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15252else
15253 eval "$as_ac_Header=$ac_header_preproc"
15254fi
15255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15257
15258fi
15259if test `eval echo '${'$as_ac_Header'}'` = yes; then
15260 cat >>confdefs.h <<_ACEOF
15261@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15262_ACEOF
15263
15264fi
15265
15266done
15267
15268 if test "$ac_cv_header_sectok_h" != yes; then
15269 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
15270echo "$as_me: error: Can't find sectok.h" >&2;}
15271 { (exit 1); exit 1; }; }
15272 fi
15273
15274echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
15275echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
15276if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279 ac_check_lib_save_LIBS=$LIBS
15280LIBS="-lsectok $LIBS"
15281cat >conftest.$ac_ext <<_ACEOF
15282#line $LINENO "configure"
15283#include "confdefs.h"
15284
15285/* Override any gcc2 internal prototype to avoid an error. */
15286#ifdef __cplusplus
15287extern "C"
15288#endif
15289/* We use char because int might match the return type of a gcc2
15290 builtin and then its argument prototype would still apply. */
15291char sectok_open ();
15292#ifdef F77_DUMMY_MAIN
15293# ifdef __cplusplus
15294 extern "C"
15295# endif
15296 int F77_DUMMY_MAIN() { return 1; }
15297#endif
15298int
15299main ()
15300{
15301sectok_open ();
15302 ;
15303 return 0;
15304}
15305_ACEOF
15306rm -f conftest.$ac_objext conftest$ac_exeext
15307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15308 (eval $ac_link) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -s conftest$ac_exeext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 ac_cv_lib_sectok_sectok_open=yes
15319else
15320 echo "$as_me: failed program was:" >&5
15321cat conftest.$ac_ext >&5
15322ac_cv_lib_sectok_sectok_open=no
15323fi
15324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15325LIBS=$ac_check_lib_save_LIBS
15326fi
15327echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
15328echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
15329if test $ac_cv_lib_sectok_sectok_open = yes; then
15330 cat >>confdefs.h <<_ACEOF
15331@%:@define HAVE_LIBSECTOK 1
15332_ACEOF
15333
15334 LIBS="-lsectok $LIBS"
15335
15336fi
15337
15338 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
15339 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
15340echo "$as_me: error: Can't find libsectok" >&2;}
15341 { (exit 1); exit 1; }; }
15342 fi
15343 cat >>confdefs.h <<\_ACEOF
15344@%:@define SMARTCARD 1
15345_ACEOF
15346
15347 cat >>confdefs.h <<\_ACEOF
15348@%:@define USE_SECTOK 1
15349_ACEOF
15350
15351 SCARD_MSG="yes, using sectok"
15352 fi
15353
15354
15355fi;
15356
15357# Check whether user wants OpenSC support
15358
15359# Check whether --with-opensc or --without-opensc was given.
15360if test "${with_opensc+set}" = set; then
15361 withval="$with_opensc"
15362 opensc_config_prefix="$withval"
15363else
15364 opensc_config_prefix=""
15365fi;
15366if test x$opensc_config_prefix != x ; then
15367 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
15368 # Extract the first word of "opensc-config", so it can be a program name with args.
15369set dummy opensc-config; ac_word=$2
15370echo "$as_me:$LINENO: checking for $ac_word" >&5
15371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15372if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374else
15375 case $OPENSC_CONFIG in
15376 [\\/]* | ?:[\\/]*)
15377 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
15378 ;;
15379 *)
15380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15381for as_dir in $PATH
15382do
15383 IFS=$as_save_IFS
15384 test -z "$as_dir" && as_dir=.
15385 for ac_exec_ext in '' $ac_executable_extensions; do
15386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15387 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15389 break 2
15390 fi
15391done
15392done
15393
15394 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
15395 ;;
15396esac
15397fi
15398OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
15399
15400if test -n "$OPENSC_CONFIG"; then
15401 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
15402echo "${ECHO_T}$OPENSC_CONFIG" >&6
15403else
15404 echo "$as_me:$LINENO: result: no" >&5
15405echo "${ECHO_T}no" >&6
15406fi
15407
15408 if test "$OPENSC_CONFIG" != "no"; then
15409 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
15410 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
15411 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
15412 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
15413 cat >>confdefs.h <<\_ACEOF
15414@%:@define SMARTCARD 1
15415_ACEOF
15416
15417 cat >>confdefs.h <<\_ACEOF
15418@%:@define USE_OPENSC 1
15419_ACEOF
15420
15421 SCARD_MSG="yes, using OpenSC"
15422 fi
15423fi
15424
15425# Check whether user wants Kerberos 5 support
15426KRB5_MSG="no"
15427
15428# Check whether --with-kerberos5 or --without-kerberos5 was given.
15429if test "${with_kerberos5+set}" = set; then
15430 withval="$with_kerberos5"
15431
15432 if test "x$withval" != "xno" ; then
15433 if test "x$withval" = "xyes" ; then
15434 KRB5ROOT="/usr/local"
15435 else
15436 KRB5ROOT=${withval}
15437 fi
15438 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15439 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15440 cat >>confdefs.h <<\_ACEOF
15441@%:@define KRB5 1
15442_ACEOF
15443
15444 KRB5_MSG="yes"
15445 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
15446echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
15447 cat >conftest.$ac_ext <<_ACEOF
15448#line $LINENO "configure"
15449#include "confdefs.h"
15450 #include <krb5.h>
15451#ifdef F77_DUMMY_MAIN
15452# ifdef __cplusplus
15453 extern "C"
15454# endif
15455 int F77_DUMMY_MAIN() { return 1; }
15456#endif
15457int
15458main ()
15459{
15460 char *tmp = heimdal_version;
15461 ;
15462 return 0;
15463}
15464_ACEOF
15465rm -f conftest.$ac_objext
15466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15467 (eval $ac_compile) 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 echo "$as_me:$LINENO: result: yes" >&5
15478echo "${ECHO_T}yes" >&6
15479 cat >>confdefs.h <<\_ACEOF
15480@%:@define HEIMDAL 1
15481_ACEOF
15482
15483 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
15484
15485else
15486 echo "$as_me: failed program was:" >&5
15487cat conftest.$ac_ext >&5
15488 echo "$as_me:$LINENO: result: no" >&5
15489echo "${ECHO_T}no" >&6
15490 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15491
15492
15493fi
15494rm -f conftest.$ac_objext conftest.$ac_ext
15495 if test ! -z "$need_dash_r" ; then
15496 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15497 fi
15498 if test ! -z "$blibpath" ; then
15499 blibpath="$blibpath:${KRB5ROOT}/lib"
15500 fi
15501
15502echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15503echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15504if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506else
15507 ac_check_lib_save_LIBS=$LIBS
15508LIBS="-lresolv $LIBS"
15509cat >conftest.$ac_ext <<_ACEOF
15510#line $LINENO "configure"
15511#include "confdefs.h"
15512
15513/* Override any gcc2 internal prototype to avoid an error. */
15514#ifdef __cplusplus
15515extern "C"
15516#endif
15517/* We use char because int might match the return type of a gcc2
15518 builtin and then its argument prototype would still apply. */
15519char dn_expand ();
15520#ifdef F77_DUMMY_MAIN
15521# ifdef __cplusplus
15522 extern "C"
15523# endif
15524 int F77_DUMMY_MAIN() { return 1; }
15525#endif
15526int
15527main ()
15528{
15529dn_expand ();
15530 ;
15531 return 0;
15532}
15533_ACEOF
15534rm -f conftest.$ac_objext conftest$ac_exeext
15535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15536 (eval $ac_link) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -s conftest$ac_exeext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_cv_lib_resolv_dn_expand=yes
15547else
15548 echo "$as_me: failed program was:" >&5
15549cat conftest.$ac_ext >&5
15550ac_cv_lib_resolv_dn_expand=no
15551fi
15552rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15553LIBS=$ac_check_lib_save_LIBS
15554fi
15555echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15556echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15557if test $ac_cv_lib_resolv_dn_expand = yes; then
15558 cat >>confdefs.h <<_ACEOF
15559@%:@define HAVE_LIBRESOLV 1
15560_ACEOF
15561
15562 LIBS="-lresolv $LIBS"
15563
15564fi
15565
15566
15567 KRB5=yes
15568 fi
15569
15570
15571fi;
15572# Check whether user wants Kerberos 4 support
15573KRB4_MSG="no"
15574
15575# Check whether --with-kerberos4 or --without-kerberos4 was given.
15576if test "${with_kerberos4+set}" = set; then
15577 withval="$with_kerberos4"
15578
15579 if test "x$withval" != "xno" ; then
15580 if test "x$withval" != "xyes" ; then
15581 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15582 LDFLAGS="$LDFLAGS -L${withval}/lib"
15583 if test ! -z "$need_dash_r" ; then
15584 LDFLAGS="$LDFLAGS -R${withval}/lib"
15585 fi
15586 if test ! -z "$blibpath" ; then
15587 blibpath="$blibpath:${withval}/lib"
15588 fi
15589 else
15590 if test -d /usr/include/kerberosIV ; then
15591 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
15592 fi
15593 fi
15594
15595
15596for ac_header in krb.h
15597do
15598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15599if eval "test \"\${$as_ac_Header+set}\" = set"; then
15600 echo "$as_me:$LINENO: checking for $ac_header" >&5
15601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15602if eval "test \"\${$as_ac_Header+set}\" = set"; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15604fi
15605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15607else
15608 # Is the header compilable?
15609echo "$as_me:$LINENO: checking $ac_header usability" >&5
15610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15611cat >conftest.$ac_ext <<_ACEOF
15612#line $LINENO "configure"
15613#include "confdefs.h"
15614$ac_includes_default
15615@%:@include <$ac_header>
15616_ACEOF
15617rm -f conftest.$ac_objext
15618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15619 (eval $ac_compile) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -s conftest.$ac_objext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_header_compiler=yes
15630else
15631 echo "$as_me: failed program was:" >&5
15632cat conftest.$ac_ext >&5
15633ac_header_compiler=no
15634fi
15635rm -f conftest.$ac_objext conftest.$ac_ext
15636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15637echo "${ECHO_T}$ac_header_compiler" >&6
15638
15639# Is the header present?
15640echo "$as_me:$LINENO: checking $ac_header presence" >&5
15641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15642cat >conftest.$ac_ext <<_ACEOF
15643#line $LINENO "configure"
15644#include "confdefs.h"
15645@%:@include <$ac_header>
15646_ACEOF
15647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15649 ac_status=$?
15650 egrep -v '^ *\+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } >/dev/null; then
15655 if test -s conftest.err; then
15656 ac_cpp_err=$ac_c_preproc_warn_flag
15657 else
15658 ac_cpp_err=
15659 fi
15660else
15661 ac_cpp_err=yes
15662fi
15663if test -z "$ac_cpp_err"; then
15664 ac_header_preproc=yes
15665else
15666 echo "$as_me: failed program was:" >&5
15667 cat conftest.$ac_ext >&5
15668 ac_header_preproc=no
15669fi
15670rm -f conftest.err conftest.$ac_ext
15671echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15672echo "${ECHO_T}$ac_header_preproc" >&6
15673
15674# So? What about this header?
15675case $ac_header_compiler:$ac_header_preproc in
15676 yes:no )
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15681 no:yes )
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15685echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15688esac
15689echo "$as_me:$LINENO: checking for $ac_header" >&5
15690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15691if eval "test \"\${$as_ac_Header+set}\" = set"; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693else
15694 eval "$as_ac_Header=$ac_header_preproc"
15695fi
15696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15698
15699fi
15700if test `eval echo '${'$as_ac_Header'}'` = yes; then
15701 cat >>confdefs.h <<_ACEOF
15702@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15703_ACEOF
15704
15705fi
15706
15707done
15708
15709 if test "$ac_cv_header_krb_h" != yes; then
15710 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
15711echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
15712 fi
15713
15714echo "$as_me:$LINENO: checking for main in -lkrb" >&5
15715echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
15716if test "${ac_cv_lib_krb_main+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718else
15719 ac_check_lib_save_LIBS=$LIBS
15720LIBS="-lkrb $LIBS"
15721cat >conftest.$ac_ext <<_ACEOF
15722#line $LINENO "configure"
15723#include "confdefs.h"
15724
15725
15726#ifdef F77_DUMMY_MAIN
15727# ifdef __cplusplus
15728 extern "C"
15729# endif
15730 int F77_DUMMY_MAIN() { return 1; }
15731#endif
15732int
15733main ()
15734{
15735main ();
15736 ;
15737 return 0;
15738}
15739_ACEOF
15740rm -f conftest.$ac_objext conftest$ac_exeext
15741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15742 (eval $ac_link) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -s conftest$ac_exeext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_cv_lib_krb_main=yes
15753else
15754 echo "$as_me: failed program was:" >&5
15755cat conftest.$ac_ext >&5
15756ac_cv_lib_krb_main=no
15757fi
15758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15759LIBS=$ac_check_lib_save_LIBS
15760fi
15761echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
15762echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
15763if test $ac_cv_lib_krb_main = yes; then
15764 cat >>confdefs.h <<_ACEOF
15765@%:@define HAVE_LIBKRB 1
15766_ACEOF
15767
15768 LIBS="-lkrb $LIBS"
15769
15770fi
15771
15772 if test "$ac_cv_lib_krb_main" != yes; then
15773
15774echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
15775echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
15776if test "${ac_cv_lib_krb4_main+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778else
15779 ac_check_lib_save_LIBS=$LIBS
15780LIBS="-lkrb4 $LIBS"
15781cat >conftest.$ac_ext <<_ACEOF
15782#line $LINENO "configure"
15783#include "confdefs.h"
15784
15785
15786#ifdef F77_DUMMY_MAIN
15787# ifdef __cplusplus
15788 extern "C"
15789# endif
15790 int F77_DUMMY_MAIN() { return 1; }
15791#endif
15792int
15793main ()
15794{
15795main ();
15796 ;
15797 return 0;
15798}
15799_ACEOF
15800rm -f conftest.$ac_objext conftest$ac_exeext
15801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802 (eval $ac_link) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try='test -s conftest$ac_exeext'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_cv_lib_krb4_main=yes
15813else
15814 echo "$as_me: failed program was:" >&5
15815cat conftest.$ac_ext >&5
15816ac_cv_lib_krb4_main=no
15817fi
15818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15819LIBS=$ac_check_lib_save_LIBS
15820fi
15821echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
15822echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
15823if test $ac_cv_lib_krb4_main = yes; then
15824 cat >>confdefs.h <<_ACEOF
15825@%:@define HAVE_LIBKRB4 1
15826_ACEOF
15827
15828 LIBS="-lkrb4 $LIBS"
15829
15830fi
15831
15832 if test "$ac_cv_lib_krb4_main" != yes; then
15833 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
15834echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
15835 else
15836 KLIBS="-lkrb4"
15837 fi
15838 else
15839 KLIBS="-lkrb"
15840 fi
15841
15842echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15843echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15844if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15846else
15847 ac_check_lib_save_LIBS=$LIBS
15848LIBS="-ldes $LIBS"
15849cat >conftest.$ac_ext <<_ACEOF
15850#line $LINENO "configure"
15851#include "confdefs.h"
15852
15853/* Override any gcc2 internal prototype to avoid an error. */
15854#ifdef __cplusplus
15855extern "C"
15856#endif
15857/* We use char because int might match the return type of a gcc2
15858 builtin and then its argument prototype would still apply. */
15859char des_cbc_encrypt ();
15860#ifdef F77_DUMMY_MAIN
15861# ifdef __cplusplus
15862 extern "C"
15863# endif
15864 int F77_DUMMY_MAIN() { return 1; }
15865#endif
15866int
15867main ()
15868{
15869des_cbc_encrypt ();
15870 ;
15871 return 0;
15872}
15873_ACEOF
15874rm -f conftest.$ac_objext conftest$ac_exeext
15875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876 (eval $ac_link) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try='test -s conftest$ac_exeext'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_cv_lib_des_des_cbc_encrypt=yes
15887else
15888 echo "$as_me: failed program was:" >&5
15889cat conftest.$ac_ext >&5
15890ac_cv_lib_des_des_cbc_encrypt=no
15891fi
15892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15893LIBS=$ac_check_lib_save_LIBS
15894fi
15895echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15896echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15897if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899@%:@define HAVE_LIBDES 1
15900_ACEOF
15901
15902 LIBS="-ldes $LIBS"
15903
15904fi
15905
15906 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15907
15908echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15909echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15910if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15912else
15913 ac_check_lib_save_LIBS=$LIBS
15914LIBS="-ldes425 $LIBS"
15915cat >conftest.$ac_ext <<_ACEOF
15916#line $LINENO "configure"
15917#include "confdefs.h"
15918
15919/* Override any gcc2 internal prototype to avoid an error. */
15920#ifdef __cplusplus
15921extern "C"
15922#endif
15923/* We use char because int might match the return type of a gcc2
15924 builtin and then its argument prototype would still apply. */
15925char des_cbc_encrypt ();
15926#ifdef F77_DUMMY_MAIN
15927# ifdef __cplusplus
15928 extern "C"
15929# endif
15930 int F77_DUMMY_MAIN() { return 1; }
15931#endif
15932int
15933main ()
15934{
15935des_cbc_encrypt ();
15936 ;
15937 return 0;
15938}
15939_ACEOF
15940rm -f conftest.$ac_objext conftest$ac_exeext
15941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -s conftest$ac_exeext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_cv_lib_des425_des_cbc_encrypt=yes
15953else
15954 echo "$as_me: failed program was:" >&5
15955cat conftest.$ac_ext >&5
15956ac_cv_lib_des425_des_cbc_encrypt=no
15957fi
15958rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15959LIBS=$ac_check_lib_save_LIBS
15960fi
15961echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15962echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15963if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15964 cat >>confdefs.h <<_ACEOF
15965@%:@define HAVE_LIBDES425 1
15966_ACEOF
15967
15968 LIBS="-ldes425 $LIBS"
15969
15970fi
15971
15972 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15973 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15974echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15975 else
15976 KLIBS="-ldes425"
15977 fi
15978 else
15979 KLIBS="-ldes"
15980 fi
15981
15982echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15983echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15984if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986else
15987 ac_check_lib_save_LIBS=$LIBS
15988LIBS="-lresolv $LIBS"
15989cat >conftest.$ac_ext <<_ACEOF
15990#line $LINENO "configure"
15991#include "confdefs.h"
15992
15993/* Override any gcc2 internal prototype to avoid an error. */
15994#ifdef __cplusplus
15995extern "C"
15996#endif
15997/* We use char because int might match the return type of a gcc2
15998 builtin and then its argument prototype would still apply. */
15999char dn_expand ();
16000#ifdef F77_DUMMY_MAIN
16001# ifdef __cplusplus
16002 extern "C"
16003# endif
16004 int F77_DUMMY_MAIN() { return 1; }
16005#endif
16006int
16007main ()
16008{
16009dn_expand ();
16010 ;
16011 return 0;
16012}
16013_ACEOF
16014rm -f conftest.$ac_objext conftest$ac_exeext
16015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -s conftest$ac_exeext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_cv_lib_resolv_dn_expand=yes
16027else
16028 echo "$as_me: failed program was:" >&5
16029cat conftest.$ac_ext >&5
16030ac_cv_lib_resolv_dn_expand=no
16031fi
16032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16033LIBS=$ac_check_lib_save_LIBS
16034fi
16035echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
16036echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
16037if test $ac_cv_lib_resolv_dn_expand = yes; then
16038 cat >>confdefs.h <<_ACEOF
16039@%:@define HAVE_LIBRESOLV 1
16040_ACEOF
16041
16042 LIBS="-lresolv $LIBS"
16043
16044fi
16045
16046 KRB4=yes
16047 KRB4_MSG="yes"
16048 cat >>confdefs.h <<\_ACEOF
16049@%:@define KRB4 1
16050_ACEOF
16051
16052 fi
16053
16054
16055fi;
16056
16057# Check whether user wants AFS support
16058AFS_MSG="no"
16059
16060# Check whether --with-afs or --without-afs was given.
16061if test "${with_afs+set}" = set; then
16062 withval="$with_afs"
16063
16064 if test "x$withval" != "xno" ; then
16065
16066 if test "x$withval" != "xyes" ; then
16067 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16068 LDFLAGS="$LDFLAGS -L${withval}/lib"
16069 fi
16070
16071 if test -z "$KRB4" ; then
16072 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
16073echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
16074 fi
16075
16076 LIBS="-lkafs $LIBS"
16077 if test ! -z "$AFS_LIBS" ; then
16078 LIBS="$LIBS $AFS_LIBS"
16079 fi
16080 cat >>confdefs.h <<\_ACEOF
16081@%:@define AFS 1
16082_ACEOF
16083
16084 AFS_MSG="yes"
16085 fi
16086
16087
16088fi;
16089LIBS="$LIBS $KLIBS $K5LIBS"
16090
16091# Looking for programs, paths and files
16092
16093PRIVSEP_PATH=/var/empty
16094
16095# Check whether --with-privsep-path or --without-privsep-path was given.
16096if test "${with_privsep_path+set}" = set; then
16097 withval="$with_privsep_path"
16098
16099 if test "x$withval" != "$no" ; then
16100 PRIVSEP_PATH=$withval
16101 fi
16102
16103
16104fi;
16105
16106
16107
16108# Check whether --with-xauth or --without-xauth was given.
16109if test "${with_xauth+set}" = set; then
16110 withval="$with_xauth"
16111
16112 if test "x$withval" != "xno" ; then
16113 xauth_path=$withval
16114 fi
16115
16116else
16117
16118 TestPath="$PATH"
16119 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
16120 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
16121 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
16122 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
16123 # Extract the first word of "xauth", so it can be a program name with args.
16124set dummy xauth; ac_word=$2
16125echo "$as_me:$LINENO: checking for $ac_word" >&5
16126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16127if test "${ac_cv_path_xauth_path+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130 case $xauth_path in
16131 [\\/]* | ?:[\\/]*)
16132 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
16133 ;;
16134 *)
16135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16136for as_dir in $TestPath
16137do
16138 IFS=$as_save_IFS
16139 test -z "$as_dir" && as_dir=.
16140 for ac_exec_ext in '' $ac_executable_extensions; do
16141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16142 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
16143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16144 break 2
16145 fi
16146done
16147done
16148
16149 ;;
16150esac
16151fi
16152xauth_path=$ac_cv_path_xauth_path
16153
16154if test -n "$xauth_path"; then
16155 echo "$as_me:$LINENO: result: $xauth_path" >&5
16156echo "${ECHO_T}$xauth_path" >&6
16157else
16158 echo "$as_me:$LINENO: result: no" >&5
16159echo "${ECHO_T}no" >&6
16160fi
16161
16162 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
16163 xauth_path="/usr/openwin/bin/xauth"
16164 fi
16165
16166
16167fi;
16168
16169STRIP_OPT=-s
16170# Check whether --enable-strip or --disable-strip was given.
16171if test "${enable_strip+set}" = set; then
16172 enableval="$enable_strip"
16173
16174 if test "x$enableval" = "xno" ; then
16175 STRIP_OPT=
16176 fi
16177
16178
16179fi;
16180
16181
16182if test -z "$xauth_path" ; then
16183 XAUTH_PATH="undefined"
16184
16185else
16186 cat >>confdefs.h <<_ACEOF
16187@%:@define XAUTH_PATH "$xauth_path"
16188_ACEOF
16189
16190 XAUTH_PATH=$xauth_path
16191
16192fi
16193
16194# Check for mail directory (last resort if we cannot get it from headers)
16195if test ! -z "$MAIL" ; then
16196 maildir=`dirname $MAIL`
16197 cat >>confdefs.h <<_ACEOF
16198@%:@define MAIL_DIRECTORY "$maildir"
16199_ACEOF
16200
16201fi
16202
16203if test -z "$no_dev_ptmx" ; then
16204 if test "x$disable_ptmx_check" != "xyes" ; then
16205 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
16206echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
16207if test "${ac_cv_file___dev_ptmx_+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209else
16210 test "$cross_compiling" = yes &&
16211 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16212echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16213 { (exit 1); exit 1; }; }
16214if test -r ""/dev/ptmx""; then
16215 ac_cv_file___dev_ptmx_=yes
16216else
16217 ac_cv_file___dev_ptmx_=no
16218fi
16219fi
16220echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
16221echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
16222if test $ac_cv_file___dev_ptmx_ = yes; then
16223
16224 cat >>confdefs.h <<_ACEOF
16225@%:@define HAVE_DEV_PTMX 1
16226_ACEOF
16227
16228 have_dev_ptmx=1
16229
16230
16231fi
16232
16233 fi
16234fi
16235echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
16236echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
16237if test "${ac_cv_file___dev_ptc_+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239else
16240 test "$cross_compiling" = yes &&
16241 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16242echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16243 { (exit 1); exit 1; }; }
16244if test -r ""/dev/ptc""; then
16245 ac_cv_file___dev_ptc_=yes
16246else
16247 ac_cv_file___dev_ptc_=no
16248fi
16249fi
16250echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
16251echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
16252if test $ac_cv_file___dev_ptc_ = yes; then
16253
16254 cat >>confdefs.h <<_ACEOF
16255@%:@define HAVE_DEV_PTS_AND_PTC 1
16256_ACEOF
16257
16258 have_dev_ptc=1
16259
16260
16261fi
16262
16263
16264# Options from here on. Some of these are preset by platform above
16265
16266# Check whether --with-mantype or --without-mantype was given.
16267if test "${with_mantype+set}" = set; then
16268 withval="$with_mantype"
16269
16270 case "$withval" in
16271 man|cat|doc)
16272 MANTYPE=$withval
16273 ;;
16274 *)
16275 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
16276echo "$as_me: error: invalid man type: $withval" >&2;}
16277 { (exit 1); exit 1; }; }
16278 ;;
16279 esac
16280
16281
16282fi;
16283if test -z "$MANTYPE"; then
16284 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
16285 for ac_prog in nroff awf
16286do
16287 # Extract the first word of "$ac_prog", so it can be a program name with args.
16288set dummy $ac_prog; ac_word=$2
16289echo "$as_me:$LINENO: checking for $ac_word" >&5
16290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16291if test "${ac_cv_path_NROFF+set}" = set; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293else
16294 case $NROFF in
16295 [\\/]* | ?:[\\/]*)
16296 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
16297 ;;
16298 *)
16299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16300for as_dir in $TestPath
16301do
16302 IFS=$as_save_IFS
16303 test -z "$as_dir" && as_dir=.
16304 for ac_exec_ext in '' $ac_executable_extensions; do
16305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16306 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
16307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16308 break 2
16309 fi
16310done
16311done
16312
16313 ;;
16314esac
16315fi
16316NROFF=$ac_cv_path_NROFF
16317
16318if test -n "$NROFF"; then
16319 echo "$as_me:$LINENO: result: $NROFF" >&5
16320echo "${ECHO_T}$NROFF" >&6
16321else
16322 echo "$as_me:$LINENO: result: no" >&5
16323echo "${ECHO_T}no" >&6
16324fi
16325
16326 test -n "$NROFF" && break
16327done
16328test -n "$NROFF" || NROFF="/bin/false"
16329
16330 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
16331 MANTYPE=doc
16332 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
16333 MANTYPE=man
16334 else
16335 MANTYPE=cat
16336 fi
16337fi
16338
16339if test "$MANTYPE" = "doc"; then
16340 mansubdir=man;
16341else
16342 mansubdir=$MANTYPE;
16343fi
16344
16345
16346# Check whether to enable MD5 passwords
16347MD5_MSG="no"
16348
16349# Check whether --with-md5-passwords or --without-md5-passwords was given.
16350if test "${with_md5_passwords+set}" = set; then
16351 withval="$with_md5_passwords"
16352
16353 if test "x$withval" != "xno" ; then
16354 cat >>confdefs.h <<\_ACEOF
16355@%:@define HAVE_MD5_PASSWORDS 1
16356_ACEOF
16357
16358 MD5_MSG="yes"
16359 fi
16360
16361
16362fi;
16363
16364# Whether to disable shadow password support
16365
16366# Check whether --with-shadow or --without-shadow was given.
16367if test "${with_shadow+set}" = set; then
16368 withval="$with_shadow"
16369
16370 if test "x$withval" = "xno" ; then
16371 cat >>confdefs.h <<\_ACEOF
16372@%:@define DISABLE_SHADOW 1
16373_ACEOF
16374
16375 disable_shadow=yes
16376 fi
16377
16378
16379fi;
16380
16381if test -z "$disable_shadow" ; then
16382 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
16383echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
16384 cat >conftest.$ac_ext <<_ACEOF
16385#line $LINENO "configure"
16386#include "confdefs.h"
16387
16388#include <sys/types.h>
16389#include <shadow.h>
16390 struct spwd sp;
16391
16392#ifdef F77_DUMMY_MAIN
16393# ifdef __cplusplus
16394 extern "C"
16395# endif
16396 int F77_DUMMY_MAIN() { return 1; }
16397#endif
16398int
16399main ()
16400{
16401 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
16402 ;
16403 return 0;
16404}
16405_ACEOF
16406rm -f conftest.$ac_objext
16407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408 (eval $ac_compile) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -s conftest.$ac_objext'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 sp_expire_available=yes
16419else
16420 echo "$as_me: failed program was:" >&5
16421cat conftest.$ac_ext >&5
16422
16423
16424fi
16425rm -f conftest.$ac_objext conftest.$ac_ext
16426
16427 if test "x$sp_expire_available" = "xyes" ; then
16428 echo "$as_me:$LINENO: result: yes" >&5
16429echo "${ECHO_T}yes" >&6
16430 cat >>confdefs.h <<\_ACEOF
16431@%:@define HAS_SHADOW_EXPIRE 1
16432_ACEOF
16433
16434 else
16435 echo "$as_me:$LINENO: result: no" >&5
16436echo "${ECHO_T}no" >&6
16437 fi
16438fi
16439
16440# Use ip address instead of hostname in $DISPLAY
16441if test ! -z "$IPADDR_IN_DISPLAY" ; then
16442 DISPLAY_HACK_MSG="yes"
16443 cat >>confdefs.h <<\_ACEOF
16444@%:@define IPADDR_IN_DISPLAY 1
16445_ACEOF
16446
16447else
16448 DISPLAY_HACK_MSG="no"
16449
16450# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
16451if test "${with_ipaddr_display+set}" = set; then
16452 withval="$with_ipaddr_display"
16453
16454 if test "x$withval" != "xno" ; then
16455 cat >>confdefs.h <<\_ACEOF
16456@%:@define IPADDR_IN_DISPLAY 1
16457_ACEOF
16458
16459 DISPLAY_HACK_MSG="yes"
16460 fi
16461
16462
16463fi;
16464fi
16465
16466if test $ac_cv_func_login_getcapbool = "yes" -a \
16467 $ac_cv_header_login_cap_h = "yes" ; then
16468 USES_LOGIN_CONF=yes
16469fi
16470# Whether to mess with the default path
16471SERVER_PATH_MSG="(default)"
16472
16473# Check whether --with-default-path or --without-default-path was given.
16474if test "${with_default_path+set}" = set; then
16475 withval="$with_default_path"
16476
16477 if test "$USES_LOGIN_CONF" = "yes" ; then
16478 { echo "$as_me:$LINENO: WARNING:
16479--with-default-path=PATH has no effect on this system.
16480Edit /etc/login.conf instead." >&5
16481echo "$as_me: WARNING:
16482--with-default-path=PATH has no effect on this system.
16483Edit /etc/login.conf instead." >&2;}
16484 elif test "x$withval" != "xno" ; then
16485 user_path="$withval"
16486 SERVER_PATH_MSG="$withval"
16487 fi
16488
16489else
16490 if test "$USES_LOGIN_CONF" = "yes" ; then
16491 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16492echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16493 else
16494 if test "$cross_compiling" = yes; then
16495 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16496
16497else
16498 cat >conftest.$ac_ext <<_ACEOF
16499#line $LINENO "configure"
16500#include "confdefs.h"
16501
16502/* find out what STDPATH is */
16503#include <stdio.h>
16504#ifdef HAVE_PATHS_H
16505# include <paths.h>
16506#endif
16507#ifndef _PATH_STDPATH
16508# ifdef _PATH_USERPATH /* Irix */
16509# define _PATH_STDPATH _PATH_USERPATH
16510# else
16511# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16512# endif
16513#endif
16514#include <sys/types.h>
16515#include <sys/stat.h>
16516#include <fcntl.h>
16517#define DATA "conftest.stdpath"
16518
16519main()
16520{
16521 FILE *fd;
16522 int rc;
16523
16524 fd = fopen(DATA,"w");
16525 if(fd == NULL)
16526 exit(1);
16527
16528 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16529 exit(1);
16530
16531 exit(0);
16532}
16533
16534_ACEOF
16535rm -f conftest$ac_exeext
16536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16537 (eval $ac_link) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 user_path=`cat conftest.stdpath`
16547else
16548 echo "$as_me: program exited with status $ac_status" >&5
16549echo "$as_me: failed program was:" >&5
16550cat conftest.$ac_ext >&5
16551( exit $ac_status )
16552 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16553fi
16554rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16555fi
16556# make sure $bindir is in USER_PATH so scp will work
16557 t_bindir=`eval echo ${bindir}`
16558 case $t_bindir in
16559 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16560 esac
16561 case $t_bindir in
16562 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16563 esac
16564 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16565 if test $? -ne 0 ; then
16566 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16567 if test $? -ne 0 ; then
16568 user_path=$user_path:$t_bindir
16569 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16570echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
16571 fi
16572 fi
16573 fi
16574
16575fi;
16576if test "$USES_LOGIN_CONF" != "yes" ; then
16577 cat >>confdefs.h <<_ACEOF
16578@%:@define USER_PATH "$user_path"
16579_ACEOF
16580
16581
16582fi
16583
16584# Set superuser path separately to user path
16585
16586# Check whether --with-superuser-path or --without-superuser-path was given.
16587if test "${with_superuser_path+set}" = set; then
16588 withval="$with_superuser_path"
16589
16590 if test "x$withval" != "xno" ; then
16591 cat >>confdefs.h <<_ACEOF
16592@%:@define SUPERUSER_PATH "$withval"
16593_ACEOF
16594
16595 superuser_path=$withval
16596 fi
16597
16598
16599fi;
16600
16601
16602# Whether to force IPv4 by default (needed on broken glibc Linux)
16603IPV4_HACK_MSG="no"
16604
16605# Check whether --with-ipv4-default or --without-ipv4-default was given.
16606if test "${with_ipv4_default+set}" = set; then
16607 withval="$with_ipv4_default"
16608
16609 if test "x$withval" != "xno" ; then
16610 cat >>confdefs.h <<\_ACEOF
16611@%:@define IPV4_DEFAULT 1
16612_ACEOF
16613
16614 IPV4_HACK_MSG="yes"
16615 fi
16616
16617
16618fi;
16619
16620echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16621echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
16622IPV4_IN6_HACK_MSG="no"
16623
16624# Check whether --with-4in6 or --without-4in6 was given.
16625if test "${with_4in6+set}" = set; then
16626 withval="$with_4in6"
16627
16628 if test "x$withval" != "xno" ; then
16629 echo "$as_me:$LINENO: result: yes" >&5
16630echo "${ECHO_T}yes" >&6
16631 cat >>confdefs.h <<\_ACEOF
16632@%:@define IPV4_IN_IPV6 1
16633_ACEOF
16634
16635 IPV4_IN6_HACK_MSG="yes"
16636 else
16637 echo "$as_me:$LINENO: result: no" >&5
16638echo "${ECHO_T}no" >&6
16639 fi
16640
16641else
16642
16643 if test "x$inet6_default_4in6" = "xyes"; then
16644 echo "$as_me:$LINENO: result: yes (default)" >&5
16645echo "${ECHO_T}yes (default)" >&6
16646 cat >>confdefs.h <<\_ACEOF
16647@%:@define IPV4_IN_IPV6 1
16648_ACEOF
16649
16650 IPV4_IN6_HACK_MSG="yes"
16651 else
16652 echo "$as_me:$LINENO: result: no (default)" >&5
16653echo "${ECHO_T}no (default)" >&6
16654 fi
16655
16656
16657fi;
16658
16659# Whether to enable BSD auth support
16660BSD_AUTH_MSG=no
16661
16662# Check whether --with-bsd-auth or --without-bsd-auth was given.
16663if test "${with_bsd_auth+set}" = set; then
16664 withval="$with_bsd_auth"
16665
16666 if test "x$withval" != "xno" ; then
16667 cat >>confdefs.h <<\_ACEOF
16668@%:@define BSD_AUTH 1
16669_ACEOF
16670
16671 BSD_AUTH_MSG=yes
16672 fi
16673
16674
16675fi;
16676
16677# Where to place sshd.pid
16678piddir=/var/run
16679# make sure the directory exists
16680if test ! -d $piddir ; then
16681 piddir=`eval echo ${sysconfdir}`
16682 case $piddir in
16683 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16684 esac
16685fi
16686
16687
16688# Check whether --with-pid-dir or --without-pid-dir was given.
16689if test "${with_pid_dir+set}" = set; then
16690 withval="$with_pid_dir"
16691
16692 if test "x$withval" != "xno" ; then
16693 piddir=$withval
16694 if test ! -d $piddir ; then
16695 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
16696echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16697 fi
16698 fi
16699
16700
16701fi;
16702
16703cat >>confdefs.h <<_ACEOF
16704@%:@define _PATH_SSH_PIDDIR "$piddir"
16705_ACEOF
16706
16707
16708
16709# Check whether --enable-lastlog or --disable-lastlog was given.
16710if test "${enable_lastlog+set}" = set; then
16711 enableval="$enable_lastlog"
16712 cat >>confdefs.h <<\_ACEOF
16713@%:@define DISABLE_LASTLOG 1
16714_ACEOF
16715
16716
16717fi;
16718# Check whether --enable-utmp or --disable-utmp was given.
16719if test "${enable_utmp+set}" = set; then
16720 enableval="$enable_utmp"
16721 cat >>confdefs.h <<\_ACEOF
16722@%:@define DISABLE_UTMP 1
16723_ACEOF
16724
16725
16726fi;
16727# Check whether --enable-utmpx or --disable-utmpx was given.
16728if test "${enable_utmpx+set}" = set; then
16729 enableval="$enable_utmpx"
16730 cat >>confdefs.h <<\_ACEOF
16731@%:@define DISABLE_UTMPX 1
16732_ACEOF
16733
16734
16735fi;
16736# Check whether --enable-wtmp or --disable-wtmp was given.
16737if test "${enable_wtmp+set}" = set; then
16738 enableval="$enable_wtmp"
16739 cat >>confdefs.h <<\_ACEOF
16740@%:@define DISABLE_WTMP 1
16741_ACEOF
16742
16743
16744fi;
16745# Check whether --enable-wtmpx or --disable-wtmpx was given.
16746if test "${enable_wtmpx+set}" = set; then
16747 enableval="$enable_wtmpx"
16748 cat >>confdefs.h <<\_ACEOF
16749@%:@define DISABLE_WTMPX 1
16750_ACEOF
16751
16752
16753fi;
16754# Check whether --enable-libutil or --disable-libutil was given.
16755if test "${enable_libutil+set}" = set; then
16756 enableval="$enable_libutil"
16757 cat >>confdefs.h <<\_ACEOF
16758@%:@define DISABLE_LOGIN 1
16759_ACEOF
16760
16761
16762fi;
16763# Check whether --enable-pututline or --disable-pututline was given.
16764if test "${enable_pututline+set}" = set; then
16765 enableval="$enable_pututline"
16766 cat >>confdefs.h <<\_ACEOF
16767@%:@define DISABLE_PUTUTLINE 1
16768_ACEOF
16769
16770
16771fi;
16772# Check whether --enable-pututxline or --disable-pututxline was given.
16773if test "${enable_pututxline+set}" = set; then
16774 enableval="$enable_pututxline"
16775 cat >>confdefs.h <<\_ACEOF
16776@%:@define DISABLE_PUTUTXLINE 1
16777_ACEOF
16778
16779
16780fi;
16781
16782# Check whether --with-lastlog or --without-lastlog was given.
16783if test "${with_lastlog+set}" = set; then
16784 withval="$with_lastlog"
16785
16786 if test "x$withval" = "xno" ; then
16787 cat >>confdefs.h <<\_ACEOF
16788@%:@define DISABLE_LASTLOG 1
16789_ACEOF
16790
16791 else
16792 conf_lastlog_location=$withval
16793 fi
16794
16795
16796fi;
16797
16798
16799echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
16800echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16801cat >conftest.$ac_ext <<_ACEOF
16802#line $LINENO "configure"
16803#include "confdefs.h"
16804
16805#include <sys/types.h>
16806#include <utmp.h>
16807#ifdef HAVE_LASTLOG_H
16808# include <lastlog.h>
16809#endif
16810#ifdef HAVE_PATHS_H
16811# include <paths.h>
16812#endif
16813#ifdef HAVE_LOGIN_H
16814# include <login.h>
16815#endif
16816
16817#ifdef F77_DUMMY_MAIN
16818# ifdef __cplusplus
16819 extern "C"
16820# endif
16821 int F77_DUMMY_MAIN() { return 1; }
16822#endif
16823int
16824main ()
16825{
16826 char *lastlog = LASTLOG_FILE;
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16833 (eval $ac_compile) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -s conftest.$ac_objext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 echo "$as_me:$LINENO: result: yes" >&5
16844echo "${ECHO_T}yes" >&6
16845else
16846 echo "$as_me: failed program was:" >&5
16847cat conftest.$ac_ext >&5
16848
16849 echo "$as_me:$LINENO: result: no" >&5
16850echo "${ECHO_T}no" >&6
16851 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16852echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16853 cat >conftest.$ac_ext <<_ACEOF
16854#line $LINENO "configure"
16855#include "confdefs.h"
16856
16857#include <sys/types.h>
16858#include <utmp.h>
16859#ifdef HAVE_LASTLOG_H
16860# include <lastlog.h>
16861#endif
16862#ifdef HAVE_PATHS_H
16863# include <paths.h>
16864#endif
16865
16866#ifdef F77_DUMMY_MAIN
16867# ifdef __cplusplus
16868 extern "C"
16869# endif
16870 int F77_DUMMY_MAIN() { return 1; }
16871#endif
16872int
16873main ()
16874{
16875 char *lastlog = _PATH_LASTLOG;
16876 ;
16877 return 0;
16878}
16879_ACEOF
16880rm -f conftest.$ac_objext
16881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882 (eval $ac_compile) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -s conftest.$ac_objext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 echo "$as_me:$LINENO: result: yes" >&5
16893echo "${ECHO_T}yes" >&6
16894else
16895 echo "$as_me: failed program was:" >&5
16896cat conftest.$ac_ext >&5
16897
16898 echo "$as_me:$LINENO: result: no" >&5
16899echo "${ECHO_T}no" >&6
16900 system_lastlog_path=no
16901
16902fi
16903rm -f conftest.$ac_objext conftest.$ac_ext
16904
16905
16906fi
16907rm -f conftest.$ac_objext conftest.$ac_ext
16908
16909if test -z "$conf_lastlog_location"; then
16910 if test x"$system_lastlog_path" = x"no" ; then
16911 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16912 if (test -d "$f" || test -f "$f") ; then
16913 conf_lastlog_location=$f
16914 fi
16915 done
16916 if test -z "$conf_lastlog_location"; then
16917 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16918echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16919 fi
16920 fi
16921fi
16922
16923if test -n "$conf_lastlog_location"; then
16924 cat >>confdefs.h <<_ACEOF
16925@%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
16926_ACEOF
16927
16928fi
16929
16930echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16931echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16932cat >conftest.$ac_ext <<_ACEOF
16933#line $LINENO "configure"
16934#include "confdefs.h"
16935
16936#include <sys/types.h>
16937#include <utmp.h>
16938#ifdef HAVE_PATHS_H
16939# include <paths.h>
16940#endif
16941
16942#ifdef F77_DUMMY_MAIN
16943# ifdef __cplusplus
16944 extern "C"
16945# endif
16946 int F77_DUMMY_MAIN() { return 1; }
16947#endif
16948int
16949main ()
16950{
16951 char *utmp = UTMP_FILE;
16952 ;
16953 return 0;
16954}
16955_ACEOF
16956rm -f conftest.$ac_objext
16957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958 (eval $ac_compile) 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -s conftest.$ac_objext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 echo "$as_me:$LINENO: result: yes" >&5
16969echo "${ECHO_T}yes" >&6
16970else
16971 echo "$as_me: failed program was:" >&5
16972cat conftest.$ac_ext >&5
16973 echo "$as_me:$LINENO: result: no" >&5
16974echo "${ECHO_T}no" >&6
16975 system_utmp_path=no
16976
16977fi
16978rm -f conftest.$ac_objext conftest.$ac_ext
16979if test -z "$conf_utmp_location"; then
16980 if test x"$system_utmp_path" = x"no" ; then
16981 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16982 if test -f $f ; then
16983 conf_utmp_location=$f
16984 fi
16985 done
16986 if test -z "$conf_utmp_location"; then
16987 cat >>confdefs.h <<\_ACEOF
16988@%:@define DISABLE_UTMP 1
16989_ACEOF
16990
16991 fi
16992 fi
16993fi
16994if test -n "$conf_utmp_location"; then
16995 cat >>confdefs.h <<_ACEOF
16996@%:@define CONF_UTMP_FILE "$conf_utmp_location"
16997_ACEOF
16998
16999fi
17000
17001echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
17002echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
17003cat >conftest.$ac_ext <<_ACEOF
17004#line $LINENO "configure"
17005#include "confdefs.h"
17006
17007#include <sys/types.h>
17008#include <utmp.h>
17009#ifdef HAVE_PATHS_H
17010# include <paths.h>
17011#endif
17012
17013#ifdef F77_DUMMY_MAIN
17014# ifdef __cplusplus
17015 extern "C"
17016# endif
17017 int F77_DUMMY_MAIN() { return 1; }
17018#endif
17019int
17020main ()
17021{
17022 char *wtmp = WTMP_FILE;
17023 ;
17024 return 0;
17025}
17026_ACEOF
17027rm -f conftest.$ac_objext
17028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17029 (eval $ac_compile) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
17033 { ac_try='test -s conftest.$ac_objext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 echo "$as_me:$LINENO: result: yes" >&5
17040echo "${ECHO_T}yes" >&6
17041else
17042 echo "$as_me: failed program was:" >&5
17043cat conftest.$ac_ext >&5
17044 echo "$as_me:$LINENO: result: no" >&5
17045echo "${ECHO_T}no" >&6
17046 system_wtmp_path=no
17047
17048fi
17049rm -f conftest.$ac_objext conftest.$ac_ext
17050if test -z "$conf_wtmp_location"; then
17051 if test x"$system_wtmp_path" = x"no" ; then
17052 for f in /usr/adm/wtmp /var/log/wtmp; do
17053 if test -f $f ; then
17054 conf_wtmp_location=$f
17055 fi
17056 done
17057 if test -z "$conf_wtmp_location"; then
17058 cat >>confdefs.h <<\_ACEOF
17059@%:@define DISABLE_WTMP 1
17060_ACEOF
17061
17062 fi
17063 fi
17064fi
17065if test -n "$conf_wtmp_location"; then
17066 cat >>confdefs.h <<_ACEOF
17067@%:@define CONF_WTMP_FILE "$conf_wtmp_location"
17068_ACEOF
17069
17070fi
17071
17072
17073echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
17074echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
17075cat >conftest.$ac_ext <<_ACEOF
17076#line $LINENO "configure"
17077#include "confdefs.h"
17078
17079#include <sys/types.h>
17080#include <utmp.h>
17081#ifdef HAVE_UTMPX_H
17082#include <utmpx.h>
17083#endif
17084#ifdef HAVE_PATHS_H
17085# include <paths.h>
17086#endif
17087
17088#ifdef F77_DUMMY_MAIN
17089# ifdef __cplusplus
17090 extern "C"
17091# endif
17092 int F77_DUMMY_MAIN() { return 1; }
17093#endif
17094int
17095main ()
17096{
17097 char *utmpx = UTMPX_FILE;
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext
17103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
17108 { ac_try='test -s conftest.$ac_objext'
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 echo "$as_me:$LINENO: result: yes" >&5
17115echo "${ECHO_T}yes" >&6
17116else
17117 echo "$as_me: failed program was:" >&5
17118cat conftest.$ac_ext >&5
17119 echo "$as_me:$LINENO: result: no" >&5
17120echo "${ECHO_T}no" >&6
17121 system_utmpx_path=no
17122
17123fi
17124rm -f conftest.$ac_objext conftest.$ac_ext
17125if test -z "$conf_utmpx_location"; then
17126 if test x"$system_utmpx_path" = x"no" ; then
17127 cat >>confdefs.h <<\_ACEOF
17128@%:@define DISABLE_UTMPX 1
17129_ACEOF
17130
17131 fi
17132else
17133 cat >>confdefs.h <<_ACEOF
17134@%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
17135_ACEOF
17136
17137fi
17138
17139echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
17140echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
17141cat >conftest.$ac_ext <<_ACEOF
17142#line $LINENO "configure"
17143#include "confdefs.h"
17144
17145#include <sys/types.h>
17146#include <utmp.h>
17147#ifdef HAVE_UTMPX_H
17148#include <utmpx.h>
17149#endif
17150#ifdef HAVE_PATHS_H
17151# include <paths.h>
17152#endif
17153
17154#ifdef F77_DUMMY_MAIN
17155# ifdef __cplusplus
17156 extern "C"
17157# endif
17158 int F77_DUMMY_MAIN() { return 1; }
17159#endif
17160int
17161main ()
17162{
17163 char *wtmpx = WTMPX_FILE;
17164 ;
17165 return 0;
17166}
17167_ACEOF
17168rm -f conftest.$ac_objext
17169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17170 (eval $ac_compile) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try='test -s conftest.$ac_objext'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 echo "$as_me:$LINENO: result: yes" >&5
17181echo "${ECHO_T}yes" >&6
17182else
17183 echo "$as_me: failed program was:" >&5
17184cat conftest.$ac_ext >&5
17185 echo "$as_me:$LINENO: result: no" >&5
17186echo "${ECHO_T}no" >&6
17187 system_wtmpx_path=no
17188
17189fi
17190rm -f conftest.$ac_objext conftest.$ac_ext
17191if test -z "$conf_wtmpx_location"; then
17192 if test x"$system_wtmpx_path" = x"no" ; then
17193 cat >>confdefs.h <<\_ACEOF
17194@%:@define DISABLE_WTMPX 1
17195_ACEOF
17196
17197 fi
17198else
17199 cat >>confdefs.h <<_ACEOF
17200@%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
17201_ACEOF
17202
17203fi
17204
17205
17206if test ! -z "$blibpath" ; then
17207 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
17208 { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
17209echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
17210fi
17211
17212if test "$PAM_MSG" = yes ; then
17213 LIBS=`echo $LIBS | sed 's/-lpam //'`
17214fi
17215if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
17216 LIBS=`echo $LIBS | sed 's/-ldl //'`
17217fi
17218
17219
17220ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
17221
17222cat >confcache <<\_ACEOF
17223# This file is a shell script that caches the results of configure
17224# tests run on this system so they can be shared between configure
17225# scripts and configure runs, see configure's option --config-cache.
17226# It is not useful on other systems. If it contains results you don't
17227# want to keep, you may remove or edit it.
17228#
17229# config.status only pays attention to the cache file if you give it
17230# the --recheck option to rerun configure.
17231#
17232# `ac_cv_env_foo' variables (set or unset) will be overriden when
17233# loading this file, other *unset* `ac_cv_foo' will be assigned the
17234# following values.
17235
17236_ACEOF
17237
17238# The following way of writing the cache mishandles newlines in values,
17239# but we know of no workaround that is simple, portable, and efficient.
17240# So, don't put newlines in cache variables' values.
17241# Ultrix sh set writes to stderr and can't be redirected directly,
17242# and sets the high bit in the cache file unless we assign to the vars.
17243{
17244 (set) 2>&1 |
17245 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17246 *ac_space=\ *)
17247 # `set' does not quote correctly, so add quotes (double-quote
17248 # substitution turns \\\\ into \\, and sed turns \\ into \).
17249 sed -n \
17250 "s/'/'\\\\''/g;
17251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17252 ;;
17253 *)
17254 # `set' quotes correctly as required by POSIX, so do not add quotes.
17255 sed -n \
17256 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17257 ;;
17258 esac;
17259} |
17260 sed '
17261 t clear
17262 : clear
17263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17264 t end
17265 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17266 : end' >>confcache
17267if cmp -s $cache_file confcache; then :; else
17268 if test -w $cache_file; then
17269 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17270 cat confcache >$cache_file
17271 else
17272 echo "not updating unwritable cache $cache_file"
17273 fi
17274fi
17275rm -f confcache
17276
17277test "x$prefix" = xNONE && prefix=$ac_default_prefix
17278# Let make expand exec_prefix.
17279test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17280
17281# VPATH may cause trouble with some makes, so we remove $(srcdir),
17282# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17283# trailing colons and then remove the whole line if VPATH becomes empty
17284# (actually we leave an empty line to preserve line numbers).
17285if test "x$srcdir" = x.; then
17286 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17287s/:*\$(srcdir):*/:/;
17288s/:*\${srcdir}:*/:/;
17289s/:*@srcdir@:*/:/;
17290s/^\([^=]*=[ ]*\):*/\1/;
17291s/:*$//;
17292s/^[^=]*=[ ]*$//;
17293}'
17294fi
17295
17296DEFS=-DHAVE_CONFIG_H
17297
17298
17299: ${CONFIG_STATUS=./config.status}
17300ac_clean_files_save=$ac_clean_files
17301ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17302{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17303echo "$as_me: creating $CONFIG_STATUS" >&6;}
17304cat >$CONFIG_STATUS <<_ACEOF
17305#! $SHELL
17306# Generated by $as_me.
17307# Run this file to recreate the current configuration.
17308# Compiler output produced by configure, useful for debugging
17309# configure, is in config.log if it exists.
17310
17311debug=false
17312SHELL=\${CONFIG_SHELL-$SHELL}
17313_ACEOF
17314
17315cat >>$CONFIG_STATUS <<\_ACEOF
17316
17317## --------------------- ##
17318## M4sh Initialization. ##
17319## --------------------- ##
17320
17321# Be Bourne compatible
17322if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17323 emulate sh
17324 NULLCMD=:
17325elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17326 set -o posix
17327fi
17328
17329# NLS nuisances.
17330# Support unset when possible.
17331if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17332 as_unset=unset
17333else
17334 as_unset=false
17335fi
17336
17337(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17338 { $as_unset LANG || test "${LANG+set}" != set; } ||
17339 { LANG=C; export LANG; }
17340(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17341 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17342 { LC_ALL=C; export LC_ALL; }
17343(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17344 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17345 { LC_TIME=C; export LC_TIME; }
17346(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17347 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17348 { LC_CTYPE=C; export LC_CTYPE; }
17349(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17350 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17351 { LANGUAGE=C; export LANGUAGE; }
17352(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17353 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17354 { LC_COLLATE=C; export LC_COLLATE; }
17355(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17356 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17357 { LC_NUMERIC=C; export LC_NUMERIC; }
17358(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17359 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17360 { LC_MESSAGES=C; export LC_MESSAGES; }
17361
17362
17363# Name of the executable.
17364as_me=`(basename "$0") 2>/dev/null ||
17365$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17366 X"$0" : 'X\(//\)$' \| \
17367 X"$0" : 'X\(/\)$' \| \
17368 . : '\(.\)' 2>/dev/null ||
17369echo X/"$0" |
17370 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17371 /^X\/\(\/\/\)$/{ s//\1/; q; }
17372 /^X\/\(\/\).*/{ s//\1/; q; }
17373 s/.*/./; q'`
17374
17375# PATH needs CR, and LINENO needs CR and PATH.
17376# Avoid depending upon Character Ranges.
17377as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17378as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17379as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17380as_cr_digits='0123456789'
17381as_cr_alnum=$as_cr_Letters$as_cr_digits
17382
17383# The user is always right.
17384if test "${PATH_SEPARATOR+set}" != set; then
17385 echo "#! /bin/sh" >conftest.sh
17386 echo "exit 0" >>conftest.sh
17387 chmod +x conftest.sh
17388 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17389 PATH_SEPARATOR=';'
17390 else
17391 PATH_SEPARATOR=:
17392 fi
17393 rm -f conftest.sh
17394fi
17395
17396
17397 as_lineno_1=$LINENO
17398 as_lineno_2=$LINENO
17399 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17400 test "x$as_lineno_1" != "x$as_lineno_2" &&
17401 test "x$as_lineno_3" = "x$as_lineno_2" || {
17402 # Find who we are. Look in the path if we contain no path at all
17403 # relative or not.
17404 case $0 in
17405 *[\\/]* ) as_myself=$0 ;;
17406 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17407for as_dir in $PATH
17408do
17409 IFS=$as_save_IFS
17410 test -z "$as_dir" && as_dir=.
17411 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17412done
17413
17414 ;;
17415 esac
17416 # We did not find ourselves, most probably we were run as `sh COMMAND'
17417 # in which case we are not to be found in the path.
17418 if test "x$as_myself" = x; then
17419 as_myself=$0
17420 fi
17421 if test ! -f "$as_myself"; then
17422 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17423echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17424 { (exit 1); exit 1; }; }
17425 fi
17426 case $CONFIG_SHELL in
17427 '')
17428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17429for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17430do
17431 IFS=$as_save_IFS
17432 test -z "$as_dir" && as_dir=.
17433 for as_base in sh bash ksh sh5; do
17434 case $as_dir in
17435 /*)
17436 if ("$as_dir/$as_base" -c '
17437 as_lineno_1=$LINENO
17438 as_lineno_2=$LINENO
17439 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17440 test "x$as_lineno_1" != "x$as_lineno_2" &&
17441 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17442 CONFIG_SHELL=$as_dir/$as_base
17443 export CONFIG_SHELL
17444 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17445 fi;;
17446 esac
17447 done
17448done
17449;;
17450 esac
17451
17452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17453 # uniformly replaced by the line number. The first 'sed' inserts a
17454 # line-number line before each line; the second 'sed' does the real
17455 # work. The second script uses 'N' to pair each line-number line
17456 # with the numbered line, and appends trailing '-' during
17457 # substitution so that $LINENO is not a special case at line end.
17458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17459 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17460 sed '=' <$as_myself |
17461 sed '
17462 N
17463 s,$,-,
17464 : loop
17465 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17466 t loop
17467 s,-$,,
17468 s,^['$as_cr_digits']*\n,,
17469 ' >$as_me.lineno &&
17470 chmod +x $as_me.lineno ||
17471 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17472echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17473 { (exit 1); exit 1; }; }
17474
17475 # Don't try to exec as it changes $[0], causing all sort of problems
17476 # (the dirname of $[0] is not the place where we might find the
17477 # original and so on. Autoconf is especially sensible to this).
17478 . ./$as_me.lineno
17479 # Exit status is that of the last command.
17480 exit
17481}
17482
17483
17484case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17485 *c*,-n*) ECHO_N= ECHO_C='
17486' ECHO_T=' ' ;;
17487 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17488 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17489esac
17490
17491if expr a : '\(a\)' >/dev/null 2>&1; then
17492 as_expr=expr
17493else
17494 as_expr=false
17495fi
17496
17497rm -f conf$$ conf$$.exe conf$$.file
17498echo >conf$$.file
17499if ln -s conf$$.file conf$$ 2>/dev/null; then
17500 # We could just check for DJGPP; but this test a) works b) is more generic
17501 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17502 if test -f conf$$.exe; then
17503 # Don't use ln at all; we don't have any links
17504 as_ln_s='cp -p'
17505 else
17506 as_ln_s='ln -s'
17507 fi
17508elif ln conf$$.file conf$$ 2>/dev/null; then
17509 as_ln_s=ln
17510else
17511 as_ln_s='cp -p'
17512fi
17513rm -f conf$$ conf$$.exe conf$$.file
17514
17515as_executable_p="test -f"
17516
17517# Sed expression to map a string onto a valid CPP name.
17518as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17519
17520# Sed expression to map a string onto a valid variable name.
17521as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17522
17523
17524# IFS
17525# We need space, tab and new line, in precisely that order.
17526as_nl='
17527'
17528IFS=" $as_nl"
17529
17530# CDPATH.
17531$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17532
17533exec 6>&1
17534
17535# Open the log real soon, to keep \$[0] and so on meaningful, and to
17536# report actual input values of CONFIG_FILES etc. instead of their
17537# values after options handling. Logging --version etc. is OK.
17538exec 5>>config.log
17539{
17540 echo
17541 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17542@%:@@%:@ Running $as_me. @%:@@%:@
17543_ASBOX
17544} >&5
17545cat >&5 <<_CSEOF
17546
17547This file was extended by $as_me, which was
17548generated by GNU Autoconf 2.53. Invocation command line was
17549
17550 CONFIG_FILES = $CONFIG_FILES
17551 CONFIG_HEADERS = $CONFIG_HEADERS
17552 CONFIG_LINKS = $CONFIG_LINKS
17553 CONFIG_COMMANDS = $CONFIG_COMMANDS
17554 $ $0 $@
17555
17556_CSEOF
17557echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17558echo >&5
17559_ACEOF
17560
17561# Files that config.status was made for.
17562if test -n "$ac_config_files"; then
17563 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17564fi
17565
17566if test -n "$ac_config_headers"; then
17567 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17568fi
17569
17570if test -n "$ac_config_links"; then
17571 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17572fi
17573
17574if test -n "$ac_config_commands"; then
17575 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17576fi
17577
17578cat >>$CONFIG_STATUS <<\_ACEOF
17579
17580ac_cs_usage="\
17581\`$as_me' instantiates files from templates according to the
17582current configuration.
17583
17584Usage: $0 [OPTIONS] [FILE]...
17585
17586 -h, --help print this help, then exit
17587 -V, --version print version number, then exit
17588 -d, --debug don't remove temporary files
17589 --recheck update $as_me by reconfiguring in the same conditions
17590 --file=FILE[:TEMPLATE]
17591 instantiate the configuration file FILE
17592 --header=FILE[:TEMPLATE]
17593 instantiate the configuration header FILE
17594
17595Configuration files:
17596$config_files
17597
17598Configuration headers:
17599$config_headers
17600
17601Report bugs to <bug-autoconf@gnu.org>."
17602_ACEOF
17603
17604cat >>$CONFIG_STATUS <<_ACEOF
17605ac_cs_version="\\
17606config.status
17607configured by $0, generated by GNU Autoconf 2.53,
17608 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17609
17610Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17611Free Software Foundation, Inc.
17612This config.status script is free software; the Free Software Foundation
17613gives unlimited permission to copy, distribute and modify it."
17614srcdir=$srcdir
17615INSTALL="$INSTALL"
17616_ACEOF
17617
17618cat >>$CONFIG_STATUS <<\_ACEOF
17619# If no file are specified by the user, then we need to provide default
17620# value. By we need to know if files were specified by the user.
17621ac_need_defaults=:
17622while test $# != 0
17623do
17624 case $1 in
17625 --*=*)
17626 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17627 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17628 shift
17629 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17630 shift
17631 ;;
17632 -*);;
17633 *) # This is not an option, so the user has probably given explicit
17634 # arguments.
17635 ac_need_defaults=false;;
17636 esac
17637
17638 case $1 in
17639 # Handling of the options.
17640_ACEOF
17641cat >>$CONFIG_STATUS <<_ACEOF
17642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17643 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17644 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17645_ACEOF
17646cat >>$CONFIG_STATUS <<\_ACEOF
17647 --version | --vers* | -V )
17648 echo "$ac_cs_version"; exit 0 ;;
17649 --he | --h)
17650 # Conflict between --help and --header
17651 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17652Try \`$0 --help' for more information." >&5
17653echo "$as_me: error: ambiguous option: $1
17654Try \`$0 --help' for more information." >&2;}
17655 { (exit 1); exit 1; }; };;
17656 --help | --hel | -h )
17657 echo "$ac_cs_usage"; exit 0 ;;
17658 --debug | --d* | -d )
17659 debug=: ;;
17660 --file | --fil | --fi | --f )
17661 shift
17662 CONFIG_FILES="$CONFIG_FILES $1"
17663 ac_need_defaults=false;;
17664 --header | --heade | --head | --hea )
17665 shift
17666 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17667 ac_need_defaults=false;;
17668
17669 # This is an error.
17670 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17671Try \`$0 --help' for more information." >&5
17672echo "$as_me: error: unrecognized option: $1
17673Try \`$0 --help' for more information." >&2;}
17674 { (exit 1); exit 1; }; } ;;
17675
17676 *) ac_config_targets="$ac_config_targets $1" ;;
17677
17678 esac
17679 shift
17680done
17681
17682_ACEOF
17683
17684
17685
17686
17687
17688cat >>$CONFIG_STATUS <<\_ACEOF
17689for ac_config_target in $ac_config_targets
17690do
17691 case "$ac_config_target" in
17692 # Handling of arguments.
17693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17694 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17695 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
17696 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17697 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17698 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17699echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17700 { (exit 1); exit 1; }; };;
17701 esac
17702done
17703
17704# If the user did not use the arguments to specify the items to instantiate,
17705# then the envvar interface is used. Set only those that are not.
17706# We use the long form for the default assignment because of an extremely
17707# bizarre bug on SunOS 4.1.3.
17708if $ac_need_defaults; then
17709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17710 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17711fi
17712
17713# Create a temporary directory, and hook for its removal unless debugging.
17714$debug ||
17715{
17716 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17717 trap '{ (exit 1); exit 1; }' 1 2 13 15
17718}
17719
17720# Create a (secure) tmp directory for tmp files.
17721: ${TMPDIR=/tmp}
17722{
17723 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17724 test -n "$tmp" && test -d "$tmp"
17725} ||
17726{
17727 tmp=$TMPDIR/cs$$-$RANDOM
17728 (umask 077 && mkdir $tmp)
17729} ||
17730{
17731 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17732 { (exit 1); exit 1; }
17733}
17734
17735_ACEOF
17736
17737cat >>$CONFIG_STATUS <<_ACEOF
17738
17739#
17740# CONFIG_FILES section.
17741#
17742
17743# No need to generate the scripts if there are no CONFIG_FILES.
17744# This happens for instance when ./config.status config.h
17745if test -n "\$CONFIG_FILES"; then
17746 # Protect against being on the right side of a sed subst in config.status.
17747 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17748 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17749s,@SHELL@,$SHELL,;t t
17750s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17751s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17752s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17753s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17754s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17755s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17756s,@exec_prefix@,$exec_prefix,;t t
17757s,@prefix@,$prefix,;t t
17758s,@program_transform_name@,$program_transform_name,;t t
17759s,@bindir@,$bindir,;t t
17760s,@sbindir@,$sbindir,;t t
17761s,@libexecdir@,$libexecdir,;t t
17762s,@datadir@,$datadir,;t t
17763s,@sysconfdir@,$sysconfdir,;t t
17764s,@sharedstatedir@,$sharedstatedir,;t t
17765s,@localstatedir@,$localstatedir,;t t
17766s,@libdir@,$libdir,;t t
17767s,@includedir@,$includedir,;t t
17768s,@oldincludedir@,$oldincludedir,;t t
17769s,@infodir@,$infodir,;t t
17770s,@mandir@,$mandir,;t t
17771s,@build_alias@,$build_alias,;t t
17772s,@host_alias@,$host_alias,;t t
17773s,@target_alias@,$target_alias,;t t
17774s,@DEFS@,$DEFS,;t t
17775s,@ECHO_C@,$ECHO_C,;t t
17776s,@ECHO_N@,$ECHO_N,;t t
17777s,@ECHO_T@,$ECHO_T,;t t
17778s,@LIBS@,$LIBS,;t t
17779s,@CC@,$CC,;t t
17780s,@CFLAGS@,$CFLAGS,;t t
17781s,@LDFLAGS@,$LDFLAGS,;t t
17782s,@CPPFLAGS@,$CPPFLAGS,;t t
17783s,@ac_ct_CC@,$ac_ct_CC,;t t
17784s,@EXEEXT@,$EXEEXT,;t t
17785s,@OBJEXT@,$OBJEXT,;t t
17786s,@build@,$build,;t t
17787s,@build_cpu@,$build_cpu,;t t
17788s,@build_vendor@,$build_vendor,;t t
17789s,@build_os@,$build_os,;t t
17790s,@host@,$host,;t t
17791s,@host_cpu@,$host_cpu,;t t
17792s,@host_vendor@,$host_vendor,;t t
17793s,@host_os@,$host_os,;t t
17794s,@CPP@,$CPP,;t t
17795s,@RANLIB@,$RANLIB,;t t
17796s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17797s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17798s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17799s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17800s,@AR@,$AR,;t t
17801s,@PERL@,$PERL,;t t
17802s,@SED@,$SED,;t t
17803s,@ENT@,$ENT,;t t
17804s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17805s,@SH@,$SH,;t t
17806s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17807s,@LD@,$LD,;t t
17808s,@LIBWRAP@,$LIBWRAP,;t t
17809s,@LIBPAM@,$LIBPAM,;t t
17810s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17811s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
17812s,@PROG_LS@,$PROG_LS,;t t
17813s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17814s,@PROG_ARP@,$PROG_ARP,;t t
17815s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17816s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17817s,@PROG_PS@,$PROG_PS,;t t
17818s,@PROG_SAR@,$PROG_SAR,;t t
17819s,@PROG_W@,$PROG_W,;t t
17820s,@PROG_WHO@,$PROG_WHO,;t t
17821s,@PROG_LAST@,$PROG_LAST,;t t
17822s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17823s,@PROG_DF@,$PROG_DF,;t t
17824s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17825s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17826s,@PROG_IPCS@,$PROG_IPCS,;t t
17827s,@PROG_TAIL@,$PROG_TAIL,;t t
17828s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17829s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17830s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17831s,@xauth_path@,$xauth_path,;t t
17832s,@STRIP_OPT@,$STRIP_OPT,;t t
17833s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17834s,@NROFF@,$NROFF,;t t
17835s,@MANTYPE@,$MANTYPE,;t t
17836s,@mansubdir@,$mansubdir,;t t
17837s,@user_path@,$user_path,;t t
17838s,@piddir@,$piddir,;t t
17839CEOF
17840
17841_ACEOF
17842
17843 cat >>$CONFIG_STATUS <<\_ACEOF
17844 # Split the substitutions into bite-sized pieces for seds with
17845 # small command number limits, like on Digital OSF/1 and HP-UX.
17846 ac_max_sed_lines=48
17847 ac_sed_frag=1 # Number of current file.
17848 ac_beg=1 # First line for current file.
17849 ac_end=$ac_max_sed_lines # Line after last line for current file.
17850 ac_more_lines=:
17851 ac_sed_cmds=
17852 while $ac_more_lines; do
17853 if test $ac_beg -gt 1; then
17854 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17855 else
17856 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17857 fi
17858 if test ! -s $tmp/subs.frag; then
17859 ac_more_lines=false
17860 else
17861 # The purpose of the label and of the branching condition is to
17862 # speed up the sed processing (if there are no `@' at all, there
17863 # is no need to browse any of the substitutions).
17864 # These are the two extra sed commands mentioned above.
17865 (echo ':t
17866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17867 if test -z "$ac_sed_cmds"; then
17868 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17869 else
17870 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17871 fi
17872 ac_sed_frag=`expr $ac_sed_frag + 1`
17873 ac_beg=$ac_end
17874 ac_end=`expr $ac_end + $ac_max_sed_lines`
17875 fi
17876 done
17877 if test -z "$ac_sed_cmds"; then
17878 ac_sed_cmds=cat
17879 fi
17880fi # test -n "$CONFIG_FILES"
17881
17882_ACEOF
17883cat >>$CONFIG_STATUS <<\_ACEOF
17884for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17885 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17886 case $ac_file in
17887 - | *:- | *:-:* ) # input from stdin
17888 cat >$tmp/stdin
17889 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17890 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17891 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17892 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17893 * ) ac_file_in=$ac_file.in ;;
17894 esac
17895
17896 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17897 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17898$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17899 X"$ac_file" : 'X\(//\)[^/]' \| \
17900 X"$ac_file" : 'X\(//\)$' \| \
17901 X"$ac_file" : 'X\(/\)' \| \
17902 . : '\(.\)' 2>/dev/null ||
17903echo X"$ac_file" |
17904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17906 /^X\(\/\/\)$/{ s//\1/; q; }
17907 /^X\(\/\).*/{ s//\1/; q; }
17908 s/.*/./; q'`
17909 { case "$ac_dir" in
17910 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17911 *) as_incr_dir=.;;
17912esac
17913as_dummy="$ac_dir"
17914for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17915 case $as_mkdir_dir in
17916 # Skip DOS drivespec
17917 ?:) as_incr_dir=$as_mkdir_dir ;;
17918 *)
17919 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17920 test -d "$as_incr_dir" ||
17921 mkdir "$as_incr_dir" ||
17922 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17923echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17924 { (exit 1); exit 1; }; }
17925 ;;
17926 esac
17927done; }
17928
17929 ac_builddir=.
17930
17931if test "$ac_dir" != .; then
17932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17933 # A "../" for each directory in $ac_dir_suffix.
17934 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17935else
17936 ac_dir_suffix= ac_top_builddir=
17937fi
17938
17939case $srcdir in
17940 .) # No --srcdir option. We are building in place.
17941 ac_srcdir=.
17942 if test -z "$ac_top_builddir"; then
17943 ac_top_srcdir=.
17944 else
17945 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17946 fi ;;
17947 [\\/]* | ?:[\\/]* ) # Absolute path.
17948 ac_srcdir=$srcdir$ac_dir_suffix;
17949 ac_top_srcdir=$srcdir ;;
17950 *) # Relative path.
17951 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17952 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17953esac
17954# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17955# absolute.
17956ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17957ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17958ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17959ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17960
17961
17962 case $INSTALL in
17963 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17964 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17965 esac
17966
17967 if test x"$ac_file" != x-; then
17968 { echo "$as_me:$LINENO: creating $ac_file" >&5
17969echo "$as_me: creating $ac_file" >&6;}
17970 rm -f "$ac_file"
17971 fi
17972 # Let's still pretend it is `configure' which instantiates (i.e., don't
17973 # use $as_me), people would be surprised to read:
17974 # /* config.h. Generated by config.status. */
17975 if test x"$ac_file" = x-; then
17976 configure_input=
17977 else
17978 configure_input="$ac_file. "
17979 fi
17980 configure_input=$configure_input"Generated from `echo $ac_file_in |
17981 sed 's,.*/,,'` by configure."
17982
17983 # First look for the input files in the build tree, otherwise in the
17984 # src tree.
17985 ac_file_inputs=`IFS=:
17986 for f in $ac_file_in; do
17987 case $f in
17988 -) echo $tmp/stdin ;;
17989 [\\/$]*)
17990 # Absolute (can't be DOS-style, as IFS=:)
17991 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17992echo "$as_me: error: cannot find input file: $f" >&2;}
17993 { (exit 1); exit 1; }; }
17994 echo $f;;
17995 *) # Relative
17996 if test -f "$f"; then
17997 # Build tree
17998 echo $f
17999 elif test -f "$srcdir/$f"; then
18000 # Source tree
18001 echo $srcdir/$f
18002 else
18003 # /dev/null tree
18004 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18005echo "$as_me: error: cannot find input file: $f" >&2;}
18006 { (exit 1); exit 1; }; }
18007 fi;;
18008 esac
18009 done` || { (exit 1); exit 1; }
18010_ACEOF
18011cat >>$CONFIG_STATUS <<_ACEOF
18012 sed "$ac_vpsub
18013$extrasub
18014_ACEOF
18015cat >>$CONFIG_STATUS <<\_ACEOF
18016:t
18017/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18018s,@configure_input@,$configure_input,;t t
18019s,@srcdir@,$ac_srcdir,;t t
18020s,@abs_srcdir@,$ac_abs_srcdir,;t t
18021s,@top_srcdir@,$ac_top_srcdir,;t t
18022s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18023s,@builddir@,$ac_builddir,;t t
18024s,@abs_builddir@,$ac_abs_builddir,;t t
18025s,@top_builddir@,$ac_top_builddir,;t t
18026s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18027s,@INSTALL@,$ac_INSTALL,;t t
18028" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18029 rm -f $tmp/stdin
18030 if test x"$ac_file" != x-; then
18031 mv $tmp/out $ac_file
18032 else
18033 cat $tmp/out
18034 rm -f $tmp/out
18035 fi
18036
18037done
18038_ACEOF
18039cat >>$CONFIG_STATUS <<\_ACEOF
18040
18041#
18042# CONFIG_HEADER section.
18043#
18044
18045# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18046# NAME is the cpp macro being defined and VALUE is the value it is being given.
18047#
18048# ac_d sets the value in "#define NAME VALUE" lines.
18049ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18050ac_dB='[ ].*$,\1#\2'
18051ac_dC=' '
18052ac_dD=',;t'
18053# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18054ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18055ac_uB='$,\1#\2define\3'
18056ac_uC=' '
18057ac_uD=',;t'
18058
18059for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18061 case $ac_file in
18062 - | *:- | *:-:* ) # input from stdin
18063 cat >$tmp/stdin
18064 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18065 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18066 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18068 * ) ac_file_in=$ac_file.in ;;
18069 esac
18070
18071 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18072echo "$as_me: creating $ac_file" >&6;}
18073
18074 # First look for the input files in the build tree, otherwise in the
18075 # src tree.
18076 ac_file_inputs=`IFS=:
18077 for f in $ac_file_in; do
18078 case $f in
18079 -) echo $tmp/stdin ;;
18080 [\\/$]*)
18081 # Absolute (can't be DOS-style, as IFS=:)
18082 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18083echo "$as_me: error: cannot find input file: $f" >&2;}
18084 { (exit 1); exit 1; }; }
18085 echo $f;;
18086 *) # Relative
18087 if test -f "$f"; then
18088 # Build tree
18089 echo $f
18090 elif test -f "$srcdir/$f"; then
18091 # Source tree
18092 echo $srcdir/$f
18093 else
18094 # /dev/null tree
18095 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18096echo "$as_me: error: cannot find input file: $f" >&2;}
18097 { (exit 1); exit 1; }; }
18098 fi;;
18099 esac
18100 done` || { (exit 1); exit 1; }
18101 # Remove the trailing spaces.
18102 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18103
18104_ACEOF
18105
18106# Transform confdefs.h into two sed scripts, `conftest.defines' and
18107# `conftest.undefs', that substitutes the proper values into
18108# config.h.in to produce config.h. The first handles `#define'
18109# templates, and the second `#undef' templates.
18110# And first: Protect against being on the right side of a sed subst in
18111# config.status. Protect against being in an unquoted here document
18112# in config.status.
18113rm -f conftest.defines conftest.undefs
18114# Using a here document instead of a string reduces the quoting nightmare.
18115# Putting comments in sed scripts is not portable.
18116#
18117# `end' is used to avoid that the second main sed command (meant for
18118# 0-ary CPP macros) applies to n-ary macro definitions.
18119# See the Autoconf documentation for `clear'.
18120cat >confdef2sed.sed <<\_ACEOF
18121s/[\\&,]/\\&/g
18122s,[\\$`],\\&,g
18123t clear
18124: clear
18125s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18126t end
18127s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18128: end
18129_ACEOF
18130# If some macros were called several times there might be several times
18131# the same #defines, which is useless. Nevertheless, we may not want to
18132# sort them, since we want the *last* AC-DEFINE to be honored.
18133uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18134sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18135rm -f confdef2sed.sed
18136
18137# This sed command replaces #undef with comments. This is necessary, for
18138# example, in the case of _POSIX_SOURCE, which is predefined and required
18139# on some systems where configure will not decide to define it.
18140cat >>conftest.undefs <<\_ACEOF
18141s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18142_ACEOF
18143
18144# Break up conftest.defines because some shells have a limit on the size
18145# of here documents, and old seds have small limits too (100 cmds).
18146echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18147echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18148echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18149echo ' :' >>$CONFIG_STATUS
18150rm -f conftest.tail
18151while grep . conftest.defines >/dev/null
18152do
18153 # Write a limited-size here document to $tmp/defines.sed.
18154 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18155 # Speed up: don't consider the non `#define' lines.
18156 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18157 # Work around the forget-to-reset-the-flag bug.
18158 echo 't clr' >>$CONFIG_STATUS
18159 echo ': clr' >>$CONFIG_STATUS
18160 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18161 echo 'CEOF
18162 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18163 rm -f $tmp/in
18164 mv $tmp/out $tmp/in
18165' >>$CONFIG_STATUS
18166 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18167 rm -f conftest.defines
18168 mv conftest.tail conftest.defines
18169done
18170rm -f conftest.defines
18171echo ' fi # egrep' >>$CONFIG_STATUS
18172echo >>$CONFIG_STATUS
18173
18174# Break up conftest.undefs because some shells have a limit on the size
18175# of here documents, and old seds have small limits too (100 cmds).
18176echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18177rm -f conftest.tail
18178while grep . conftest.undefs >/dev/null
18179do
18180 # Write a limited-size here document to $tmp/undefs.sed.
18181 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18182 # Speed up: don't consider the non `#undef'
18183 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18184 # Work around the forget-to-reset-the-flag bug.
18185 echo 't clr' >>$CONFIG_STATUS
18186 echo ': clr' >>$CONFIG_STATUS
18187 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18188 echo 'CEOF
18189 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18190 rm -f $tmp/in
18191 mv $tmp/out $tmp/in
18192' >>$CONFIG_STATUS
18193 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18194 rm -f conftest.undefs
18195 mv conftest.tail conftest.undefs
18196done
18197rm -f conftest.undefs
18198
18199cat >>$CONFIG_STATUS <<\_ACEOF
18200 # Let's still pretend it is `configure' which instantiates (i.e., don't
18201 # use $as_me), people would be surprised to read:
18202 # /* config.h. Generated by config.status. */
18203 if test x"$ac_file" = x-; then
18204 echo "/* Generated by configure. */" >$tmp/config.h
18205 else
18206 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18207 fi
18208 cat $tmp/in >>$tmp/config.h
18209 rm -f $tmp/in
18210 if test x"$ac_file" != x-; then
18211 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18212 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18213echo "$as_me: $ac_file is unchanged" >&6;}
18214 else
18215 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18216$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18217 X"$ac_file" : 'X\(//\)[^/]' \| \
18218 X"$ac_file" : 'X\(//\)$' \| \
18219 X"$ac_file" : 'X\(/\)' \| \
18220 . : '\(.\)' 2>/dev/null ||
18221echo X"$ac_file" |
18222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18224 /^X\(\/\/\)$/{ s//\1/; q; }
18225 /^X\(\/\).*/{ s//\1/; q; }
18226 s/.*/./; q'`
18227 { case "$ac_dir" in
18228 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18229 *) as_incr_dir=.;;
18230esac
18231as_dummy="$ac_dir"
18232for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18233 case $as_mkdir_dir in
18234 # Skip DOS drivespec
18235 ?:) as_incr_dir=$as_mkdir_dir ;;
18236 *)
18237 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18238 test -d "$as_incr_dir" ||
18239 mkdir "$as_incr_dir" ||
18240 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18241echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18242 { (exit 1); exit 1; }; }
18243 ;;
18244 esac
18245done; }
18246
18247 rm -f $ac_file
18248 mv $tmp/config.h $ac_file
18249 fi
18250 else
18251 cat $tmp/config.h
18252 rm -f $tmp/config.h
18253 fi
18254done
18255_ACEOF
18256
18257cat >>$CONFIG_STATUS <<\_ACEOF
18258
18259{ (exit 0); exit 0; }
18260_ACEOF
18261chmod +x $CONFIG_STATUS
18262ac_clean_files=$ac_clean_files_save
18263
18264
18265# configure is writing to config.log, and then calls config.status.
18266# config.status does its own redirection, appending to config.log.
18267# Unfortunately, on DOS this fails, as config.log is still kept open
18268# by configure, so config.status won't be able to write to it; its
18269# output is simply discarded. So we exec the FD to /dev/null,
18270# effectively closing config.log, so it can be properly (re)opened and
18271# appended to by config.status. When coming back to configure, we
18272# need to make the FD available again.
18273if test "$no_create" != yes; then
18274 ac_cs_success=:
18275 exec 5>/dev/null
18276 $SHELL $CONFIG_STATUS || ac_cs_success=false
18277 exec 5>>config.log
18278 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18279 # would make configure fail if this is the last instruction.
18280 $ac_cs_success || { (exit 1); exit 1; }
18281fi
18282
18283
18284# Print summary of options
18285
18286# Someone please show me a better way :)
18287A=`eval echo ${prefix}` ; A=`eval echo ${A}`
18288B=`eval echo ${bindir}` ; B=`eval echo ${B}`
18289C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
18290D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
18291E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
18292F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
18293G=`eval echo ${piddir}` ; G=`eval echo ${G}`
18294H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
18295I=`eval echo ${user_path}` ; I=`eval echo ${I}`
18296J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
18297
18298echo ""
18299echo "OpenSSH has been configured with the following options:"
18300echo " User binaries: $B"
18301echo " System binaries: $C"
18302echo " Configuration files: $D"
18303echo " Askpass program: $E"
18304echo " Manual pages: $F"
18305echo " PID file: $G"
18306echo " Privilege separation chroot path: $H"
18307if test "$USES_LOGIN_CONF" = "yes" ; then
18308echo " At runtime, sshd will use the path defined in /etc/login.conf"
18309else
18310echo " sshd default user PATH: $I"
18311fi
18312if test ! -z "$superuser_path" ; then
18313echo " sshd superuser user PATH: $J"
18314fi
18315echo " Manpage format: $MANTYPE"
18316echo " PAM support: ${PAM_MSG}"
18317echo " KerberosIV support: $KRB4_MSG"
18318echo " KerberosV support: $KRB5_MSG"
18319echo " Smartcard support: $SCARD_MSG"
18320echo " AFS support: $AFS_MSG"
18321echo " S/KEY support: $SKEY_MSG"
18322echo " TCP Wrappers support: $TCPW_MSG"
18323echo " MD5 password support: $MD5_MSG"
18324echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
18325echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
18326echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
18327echo " BSD Auth support: $BSD_AUTH_MSG"
18328echo " Random number source: $RAND_MSG"
18329if test ! -z "$USE_RAND_HELPER" ; then
18330echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
18331fi
18332
18333echo ""
18334
18335echo " Host: ${host}"
18336echo " Compiler: ${CC}"
18337echo " Compiler flags: ${CFLAGS}"
18338echo "Preprocessor flags: ${CPPFLAGS}"
18339echo " Linker flags: ${LDFLAGS}"
18340echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
18341
18342echo ""
18343
18344if test "x$PAM_MSG" = "xyes" ; then
18345 echo "PAM is enabled. You may need to install a PAM control file "
18346 echo "for sshd, otherwise password authentication may fail. "
18347 echo "Example PAM control files can be found in the contrib/ "
18348 echo "subdirectory"
18349 echo ""
18350fi
18351
18352if test ! -z "$RAND_HELPER_CMDHASH" ; then
18353 echo "WARNING: you are using the builtin random number collection "
18354 echo "service. Please read WARNING.RNG and request that your OS "
18355 echo "vendor includes kernel-based random number collection in "
18356 echo "future versions of your OS."
18357 echo ""
18358fi
18359
diff --git a/autom4te-2.53.cache/requests b/autom4te-2.53.cache/requests
new file mode 100644
index 000000000..17e72cec4
--- /dev/null
+++ b/autom4te-2.53.cache/requests
@@ -0,0 +1,96 @@
1# This file was created by autom4te-2.53.
2# It contains the lists of macros which have been traced.
3# It can be safely removed.
4
5@request = (
6 bless( [
7 '0',
8 1,
9 [
10 '/usr/share/autoconf'
11 ],
12 [
13 '--reload-state=/usr/share/autoconf/autoconf/autoconf.m4f',
14 'aclocal.m4',
15 'configure.ac'
16 ],
17 {
18 'm4_pattern_forbid' => 1,
19 'AC_TYPE_OFF_T' => 1,
20 'AC_PROG_LIBTOOL' => 1,
21 'AC_FUNC_STAT' => 1,
22 'AC_HEADER_TIME' => 1,
23 'AC_FUNC_WAIT3' => 1,
24 'AC_STRUCT_TM' => 1,
25 'AC_FUNC_LSTAT' => 1,
26 'AC_TYPE_MODE_T' => 1,
27 'AC_FUNC_STRTOD' => 1,
28 'AC_CHECK_HEADERS' => 1,
29 'AC_PROG_CXX' => 1,
30 'AC_PATH_X' => 1,
31 'AC_PROG_AWK' => 1,
32 'AC_HEADER_STDC' => 1,
33 'AC_HEADER_MAJOR' => 1,
34 'AC_FUNC_ERROR_AT_LINE' => 1,
35 'AC_PROG_GCC_TRADITIONAL' => 1,
36 'AC_LIBSOURCE' => 1,
37 'AC_STRUCT_ST_BLOCKS' => 1,
38 'AC_TYPE_SIGNAL' => 1,
39 'AC_TYPE_UID_T' => 1,
40 'AC_PROG_MAKE_SET' => 1,
41 'm4_pattern_allow' => 1,
42 'AC_DEFINE_TRACE_LITERAL' => 1,
43 'AM_PROG_LIBTOOL' => 1,
44 'AC_FUNC_STRERROR_R' => 1,
45 'AC_PROG_CC' => 1,
46 'AC_DECL_SYS_SIGLIST' => 1,
47 'AC_FUNC_FORK' => 1,
48 'AC_FUNC_VPRINTF' => 1,
49 'AC_FUNC_STRCOLL' => 1,
50 'AC_PROG_YACC' => 1,
51 'AC_INIT' => 1,
52 'AC_STRUCT_TIMEZONE' => 1,
53 'AC_FUNC_CHOWN' => 1,
54 'AC_SUBST' => 1,
55 'AC_FUNC_ALLOCA' => 1,
56 'AC_FUNC_GETPGRP' => 1,
57 'AC_PROG_RANLIB' => 1,
58 'AC_FUNC_SETPGRP' => 1,
59 'AC_CONFIG_SUBDIRS' => 1,
60 'AC_FUNC_MMAP' => 1,
61 'AC_TYPE_SIZE_T' => 1,
62 'AC_CHECK_TYPES' => 1,
63 'AC_FUNC_UTIME_NULL' => 1,
64 'AC_FUNC_STRFTIME' => 1,
65 'AC_HEADER_STAT' => 1,
66 'AC_C_INLINE' => 1,
67 'AC_PROG_CPP' => 1,
68 'AC_C_CONST' => 1,
69 'AC_PROG_LEX' => 1,
70 'AC_TYPE_PID_T' => 1,
71 'AC_CONFIG_FILES' => 1,
72 'include' => 1,
73 'AC_FUNC_SETVBUF_REVERSED' => 1,
74 'AC_FUNC_FNMATCH' => 1,
75 'AC_PROG_INSTALL' => 1,
76 'AM_GNU_GETTEXT' => 1,
77 'AC_FUNC_OBSTACK' => 1,
78 'AC_CHECK_LIB' => 1,
79 'AC_FUNC_MALLOC' => 1,
80 'AC_FUNC_GETGROUPS' => 1,
81 'AC_FUNC_GETLOADAVG' => 1,
82 'AH_OUTPUT' => 1,
83 'AC_FUNC_FSEEKO' => 1,
84 'AC_FUNC_MKTIME' => 1,
85 'AM_CONDITIONAL' => 1,
86 'AC_CONFIG_HEADERS' => 1,
87 'AC_HEADER_SYS_WAIT' => 1,
88 'AC_PROG_LN_S' => 1,
89 'AC_FUNC_MEMCMP' => 1,
90 'm4_include' => 1,
91 'AC_HEADER_DIRENT' => 1,
92 'AC_CHECK_FUNCS' => 1
93 }
94 ], 'Request' )
95 );
96
diff --git a/autom4te-2.53.cache/traces.0 b/autom4te-2.53.cache/traces.0
new file mode 100644
index 000000000..c928d0c58
--- /dev/null
+++ b/autom4te-2.53.cache/traces.0
@@ -0,0 +1,941 @@
1m4trace:configure.ac:3: -1- AC_INIT
2m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_])
3m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_])
4m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs. LIBOBJS'])
5m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$])
6m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_])
7m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$])
8m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?AS_])
9m4trace:configure.ac:3: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
10m4trace:configure.ac:3: -1- AC_SUBST([PATH_SEPARATOR])
11m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
12m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
13m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
14m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
15m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
16m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE])
17m4trace:configure.ac:3: -1- AC_SUBST([prefix], [NONE])
18m4trace:configure.ac:3: -1- AC_SUBST([program_transform_name], [s,x,x,])
19m4trace:configure.ac:3: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
20m4trace:configure.ac:3: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
21m4trace:configure.ac:3: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
22m4trace:configure.ac:3: -1- AC_SUBST([datadir], ['${prefix}/share'])
23m4trace:configure.ac:3: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
24m4trace:configure.ac:3: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
25m4trace:configure.ac:3: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
26m4trace:configure.ac:3: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
27m4trace:configure.ac:3: -1- AC_SUBST([includedir], ['${prefix}/include'])
28m4trace:configure.ac:3: -1- AC_SUBST([oldincludedir], ['/usr/include'])
29m4trace:configure.ac:3: -1- AC_SUBST([infodir], ['${prefix}/info'])
30m4trace:configure.ac:3: -1- AC_SUBST([mandir], ['${prefix}/man'])
31m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
32m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
33#undef PACKAGE_NAME])
34m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
35m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
36#undef PACKAGE_TARNAME])
37m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
38m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
39#undef PACKAGE_VERSION])
40m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
41m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
42#undef PACKAGE_STRING])
43m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
44m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
45#undef PACKAGE_BUGREPORT])
46m4trace:configure.ac:3: -1- AC_SUBST([build_alias])
47m4trace:configure.ac:3: -1- AC_SUBST([host_alias])
48m4trace:configure.ac:3: -1- AC_SUBST([target_alias])
49m4trace:configure.ac:3: -1- AC_SUBST([DEFS])
50m4trace:configure.ac:3: -1- AC_SUBST([ECHO_C])
51m4trace:configure.ac:3: -1- AC_SUBST([ECHO_N])
52m4trace:configure.ac:3: -1- AC_SUBST([ECHO_T])
53m4trace:configure.ac:3: -1- AC_SUBST([LIBS])
54m4trace:configure.ac:6: -1- AC_CONFIG_HEADERS([config.h])
55m4trace:configure.ac:7: -1- AC_PROG_CC
56m4trace:configure.ac:7: -1- AC_SUBST([CC])
57m4trace:configure.ac:7: -1- AC_SUBST([CFLAGS])
58m4trace:configure.ac:7: -1- AC_SUBST([LDFLAGS])
59m4trace:configure.ac:7: -1- AC_SUBST([CPPFLAGS])
60m4trace:configure.ac:7: -1- AC_SUBST([CC])
61m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
62m4trace:configure.ac:7: -1- AC_SUBST([CC])
63m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
64m4trace:configure.ac:7: -1- AC_SUBST([CC])
65m4trace:configure.ac:7: -1- AC_SUBST([CC])
66m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
67m4trace:configure.ac:7: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
68m4trace:configure.ac:7: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
69m4trace:configure.ac:8: -1- AC_SUBST([build], [$ac_cv_build])
70m4trace:configure.ac:8: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
71m4trace:configure.ac:8: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
72m4trace:configure.ac:8: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
73m4trace:configure.ac:8: -1- AC_SUBST([host], [$ac_cv_host])
74m4trace:configure.ac:8: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
75m4trace:configure.ac:8: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
76m4trace:configure.ac:8: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
77m4trace:configure.ac:9: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN])
78m4trace:configure.ac:9: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define to 1 if your processor stores words with the most significant byte
79 first (like Motorola and SPARC, unlike Intel and VAX). */
80#undef WORDS_BIGENDIAN])
81m4trace:configure.ac:12: -1- AC_PROG_CPP
82m4trace:configure.ac:12: -1- AC_SUBST([CPP])
83m4trace:configure.ac:12: -1- AC_SUBST([CPPFLAGS])
84m4trace:configure.ac:12: -1- AC_SUBST([CPP])
85m4trace:configure.ac:13: -1- AC_PROG_RANLIB
86m4trace:configure.ac:13: -1- AC_SUBST([RANLIB])
87m4trace:configure.ac:13: -1- AC_SUBST([ac_ct_RANLIB])
88m4trace:configure.ac:14: -1- AC_PROG_INSTALL
89m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_PROGRAM])
90m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_SCRIPT])
91m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_DATA])
92m4trace:configure.ac:15: -1- AC_SUBST([AR], [$ac_cv_path_AR])
93m4trace:configure.ac:16: -1- AC_SUBST([PERL], [$ac_cv_path_PERL])
94m4trace:configure.ac:17: -1- AC_SUBST([SED], [$ac_cv_path_SED])
95m4trace:configure.ac:18: -1- AC_SUBST([PERL])
96m4trace:configure.ac:19: -1- AC_SUBST([ENT], [$ac_cv_path_ENT])
97m4trace:configure.ac:20: -1- AC_SUBST([ENT])
98m4trace:configure.ac:21: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
99m4trace:configure.ac:22: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
100m4trace:configure.ac:23: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
101m4trace:configure.ac:24: -1- AC_SUBST([SH], [$ac_cv_path_SH])
102m4trace:configure.ac:27: -1- AC_DEFINE_TRACE_LITERAL([_FILE_OFFSET_BITS])
103m4trace:configure.ac:27: -1- AH_OUTPUT([_FILE_OFFSET_BITS], [/* Number of bits in a file offset, on hosts where this is settable. */
104#undef _FILE_OFFSET_BITS])
105m4trace:configure.ac:27: -1- AC_DEFINE_TRACE_LITERAL([_LARGE_FILES])
106m4trace:configure.ac:27: -1- AH_OUTPUT([_LARGE_FILES], [/* Define for large files, on AIX-style hosts. */
107#undef _LARGE_FILES])
108m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_PROGRAM_FALLBACK])
109m4trace:configure.ac:38: -1- AC_SUBST([LOGIN_PROGRAM_FALLBACK], [$ac_cv_path_LOGIN_PROGRAM_FALLBACK])
110m4trace:configure.ac:40: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_PROGRAM_FALLBACK])
111m4trace:configure.ac:47: -1- AC_SUBST([LD])
112m4trace:configure.ac:49: -1- AC_C_INLINE
113m4trace:configure.ac:49: -1- AC_DEFINE_TRACE_LITERAL([inline])
114m4trace:configure.ac:49: -1- AH_OUTPUT([inline], [/* Define as \`__inline' if that's what the C compiler calls it, or to nothing
115 if it is not supported. */
116#undef inline])
117m4trace:configure.ac:49: -1- AC_DEFINE_TRACE_LITERAL([inline])
118m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([WITH_AIXAUTHENTICATE])
119m4trace:configure.ac:79: -1- AC_CHECK_LIB([s], [authenticate], [ AC_DEFINE(WITH_AIXAUTHENTICATE)
120 LIBS="$LIBS -ls"
121 ])
122m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([WITH_AIXAUTHENTICATE])
123m4trace:configure.ac:80: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_GETADDRINFO])
124m4trace:configure.ac:81: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_REALPATH])
125m4trace:configure.ac:83: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
126m4trace:configure.ac:84: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
127m4trace:configure.ac:85: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
128m4trace:configure.ac:86: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_PS_PADDING])
129m4trace:configure.ac:91: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CYGWIN])
130m4trace:configure.ac:92: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
131m4trace:configure.ac:93: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
132m4trace:configure.ac:94: -1- AC_DEFINE_TRACE_LITERAL([IPV4_DEFAULT])
133m4trace:configure.ac:95: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
134m4trace:configure.ac:96: -1- AC_DEFINE_TRACE_LITERAL([NO_X11_UNIX_SOCKETS])
135m4trace:configure.ac:97: -1- AC_DEFINE_TRACE_LITERAL([NO_IPPORT_RESERVED_CONCEPT])
136m4trace:configure.ac:98: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
137m4trace:configure.ac:99: -1- AC_DEFINE_TRACE_LITERAL([SETGROUPS_NOOP])
138m4trace:configure.ac:102: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
139m4trace:configure.ac:114: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_GETADDRINFO])
140m4trace:configure.ac:122: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
141m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
142m4trace:configure.ac:124: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
143m4trace:configure.ac:125: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
144m4trace:configure.ac:126: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
145m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
146m4trace:configure.ac:128: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
147m4trace:configure.ac:130: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
148echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
149 { (exit 1); exit 1; }; }])
150m4trace:configure.ac:130: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */
151#undef HAVE_LIBXNET])
152m4trace:configure.ac:130: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
153m4trace:configure.ac:139: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
154m4trace:configure.ac:140: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
155m4trace:configure.ac:141: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
156m4trace:configure.ac:142: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
157m4trace:configure.ac:143: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
158m4trace:configure.ac:144: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
159m4trace:configure.ac:146: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
160echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
161 { (exit 1); exit 1; }; }])
162m4trace:configure.ac:146: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */
163#undef HAVE_LIBXNET])
164m4trace:configure.ac:146: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
165m4trace:configure.ac:151: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
166m4trace:configure.ac:152: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
167m4trace:configure.ac:153: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
168m4trace:configure.ac:154: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
169m4trace:configure.ac:155: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
170m4trace:configure.ac:156: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
171m4trace:configure.ac:157: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
172m4trace:configure.ac:159: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
173echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
174 { (exit 1); exit 1; }; }])
175m4trace:configure.ac:159: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */
176#undef HAVE_LIBXNET])
177m4trace:configure.ac:159: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
178m4trace:configure.ac:165: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_INET_NTOA])
179m4trace:configure.ac:166: -1- AC_DEFINE_TRACE_LITERAL([WITH_ABBREV_NO_TTY])
180m4trace:configure.ac:172: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_ARRAY])
181m4trace:configure.ac:173: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_PROJECT])
182m4trace:configure.ac:174: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_AUDIT])
183m4trace:configure.ac:175: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_JOBS])
184m4trace:configure.ac:176: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_INET_NTOA])
185m4trace:configure.ac:177: -1- AC_DEFINE_TRACE_LITERAL([WITH_ABBREV_NO_TTY])
186m4trace:configure.ac:182: -1- AC_DEFINE_TRACE_LITERAL([DONT_TRY_OTHER_AF])
187m4trace:configure.ac:183: -1- AC_DEFINE_TRACE_LITERAL([PAM_TTY_KLUDGE])
188m4trace:configure.ac:184: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
189m4trace:configure.ac:185: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_PS_PADDING])
190m4trace:configure.ac:189: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEWS4])
191m4trace:configure.ac:204: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEXT])
192m4trace:configure.ac:205: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_REALPATH])
193m4trace:configure.ac:206: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
194m4trace:configure.ac:207: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SAVED_UIDS])
195m4trace:configure.ac:215: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
196m4trace:configure.ac:216: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
197m4trace:configure.ac:217: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_TERM])
198m4trace:configure.ac:218: -1- AC_DEFINE_TRACE_LITERAL([PAM_TTY_KLUDGE])
199m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([STREAMS_PUSH_ACQUIRES_CTTY])
200m4trace:configure.ac:226: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
201m4trace:configure.ac:227: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
202m4trace:configure.ac:234: -1- AC_CHECK_FUNCS([getpwanam])
203m4trace:configure.ac:234: -1- AH_OUTPUT([HAVE_GETPWANAM], [/* Define to 1 if you have the \`getpwanam' function. */
204#undef HAVE_GETPWANAM])
205m4trace:configure.ac:235: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
206m4trace:configure.ac:239: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
207m4trace:configure.ac:245: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
208m4trace:configure.ac:252: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
209m4trace:configure.ac:253: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
210m4trace:configure.ac:261: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
211m4trace:configure.ac:266: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
212m4trace:configure.ac:278: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SYS_TERMIO_H])
213m4trace:configure.ac:279: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
214m4trace:configure.ac:280: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
215m4trace:configure.ac:281: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
216m4trace:configure.ac:282: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SAVED_UIDS])
217m4trace:configure.ac:283: -1- AC_CHECK_FUNCS([getluid setluid])
218m4trace:configure.ac:283: -1- AH_OUTPUT([HAVE_GETLUID], [/* Define to 1 if you have the \`getluid' function. */
219#undef HAVE_GETLUID])
220m4trace:configure.ac:283: -1- AH_OUTPUT([HAVE_SETLUID], [/* Define to 1 if you have the \`setluid' function. */
221#undef HAVE_SETLUID])
222m4trace:configure.ac:295: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
223m4trace:configure.ac:296: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
224m4trace:configure.ac:297: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
225m4trace:configure.ac:298: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
226m4trace:configure.ac:299: -1- AC_CHECK_FUNCS([getluid setluid])
227m4trace:configure.ac:299: -1- AH_OUTPUT([HAVE_GETLUID], [/* Define to 1 if you have the \`getluid' function. */
228#undef HAVE_GETLUID])
229m4trace:configure.ac:299: -1- AH_OUTPUT([HAVE_SETLUID], [/* Define to 1 if you have the \`setluid' function. */
230#undef HAVE_SETLUID])
231m4trace:configure.ac:303: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
232m4trace:configure.ac:304: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
233m4trace:configure.ac:310: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
234m4trace:configure.ac:311: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
235m4trace:configure.ac:312: -1- AC_DEFINE_TRACE_LITERAL([NO_SSH_LASTLOG])
236m4trace:configure.ac:332: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OSF_SIA])
237m4trace:configure.ac:333: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LOGIN])
238m4trace:configure.ac:334: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
239m4trace:configure.ac:340: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
240m4trace:configure.ac:344: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
241m4trace:configure.ac:345: -1- AC_DEFINE_TRACE_LITERAL([NO_X11_UNIX_SOCKETS])
242m4trace:configure.ac:346: -1- AC_DEFINE_TRACE_LITERAL([MISSING_NFDBITS])
243m4trace:configure.ac:347: -1- AC_DEFINE_TRACE_LITERAL([MISSING_HOWMANY])
244m4trace:configure.ac:348: -1- AC_DEFINE_TRACE_LITERAL([MISSING_FD_MASK])
245m4trace:configure.ac:396: -1- AC_CHECK_HEADERS([bstring.h crypt.h endian.h floatingpoint.h \
246 getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \
247 login_cap.h maillock.h netdb.h netgroup.h \
248 netinet/in_systm.h paths.h pty.h readpassphrase.h \
249 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
250 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
251 sys/mman.h sys/pstat.h sys/select.h sys/stat.h \
252 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \
253 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
254 util.h utime.h utmp.h utmpx.h])
255m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_BSTRING_H], [/* Define to 1 if you have the <bstring.h> header file. */
256#undef HAVE_BSTRING_H])
257m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_CRYPT_H], [/* Define to 1 if you have the <crypt.h> header file. */
258#undef HAVE_CRYPT_H])
259m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_ENDIAN_H], [/* Define to 1 if you have the <endian.h> header file. */
260#undef HAVE_ENDIAN_H])
261m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_FLOATINGPOINT_H], [/* Define to 1 if you have the <floatingpoint.h> header file. */
262#undef HAVE_FLOATINGPOINT_H])
263m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_GETOPT_H], [/* Define to 1 if you have the <getopt.h> header file. */
264#undef HAVE_GETOPT_H])
265m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_GLOB_H], [/* Define to 1 if you have the <glob.h> header file. */
266#undef HAVE_GLOB_H])
267m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_IA_H], [/* Define to 1 if you have the <ia.h> header file. */
268#undef HAVE_IA_H])
269m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LASTLOG_H], [/* Define to 1 if you have the <lastlog.h> header file. */
270#undef HAVE_LASTLOG_H])
271m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */
272#undef HAVE_LIBGEN_H])
273m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LIMITS_H], [/* Define to 1 if you have the <limits.h> header file. */
274#undef HAVE_LIMITS_H])
275m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LOGIN_H], [/* Define to 1 if you have the <login.h> header file. */
276#undef HAVE_LOGIN_H])
277m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LOGIN_CAP_H], [/* Define to 1 if you have the <login_cap.h> header file. */
278#undef HAVE_LOGIN_CAP_H])
279m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_MAILLOCK_H], [/* Define to 1 if you have the <maillock.h> header file. */
280#undef HAVE_MAILLOCK_H])
281m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_NETDB_H], [/* Define to 1 if you have the <netdb.h> header file. */
282#undef HAVE_NETDB_H])
283m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_NETGROUP_H], [/* Define to 1 if you have the <netgroup.h> header file. */
284#undef HAVE_NETGROUP_H])
285m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_NETINET_IN_SYSTM_H], [/* Define to 1 if you have the <netinet/in_systm.h> header file. */
286#undef HAVE_NETINET_IN_SYSTM_H])
287m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_PATHS_H], [/* Define to 1 if you have the <paths.h> header file. */
288#undef HAVE_PATHS_H])
289m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_PTY_H], [/* Define to 1 if you have the <pty.h> header file. */
290#undef HAVE_PTY_H])
291m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_READPASSPHRASE_H], [/* Define to 1 if you have the <readpassphrase.h> header file. */
292#undef HAVE_READPASSPHRASE_H])
293m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_RPC_TYPES_H], [/* Define to 1 if you have the <rpc/types.h> header file. */
294#undef HAVE_RPC_TYPES_H])
295m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SECURITY_PAM_APPL_H], [/* Define to 1 if you have the <security/pam_appl.h> header file. */
296#undef HAVE_SECURITY_PAM_APPL_H])
297m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SHADOW_H], [/* Define to 1 if you have the <shadow.h> header file. */
298#undef HAVE_SHADOW_H])
299m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STDDEF_H], [/* Define to 1 if you have the <stddef.h> header file. */
300#undef HAVE_STDDEF_H])
301m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
302#undef HAVE_STDINT_H])
303m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
304#undef HAVE_STRINGS_H])
305m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_BITYPES_H], [/* Define to 1 if you have the <sys/bitypes.h> header file. */
306#undef HAVE_SYS_BITYPES_H])
307m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_BSDTTY_H], [/* Define to 1 if you have the <sys/bsdtty.h> header file. */
308#undef HAVE_SYS_BSDTTY_H])
309m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_CDEFS_H], [/* Define to 1 if you have the <sys/cdefs.h> header file. */
310#undef HAVE_SYS_CDEFS_H])
311m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_MMAN_H], [/* Define to 1 if you have the <sys/mman.h> header file. */
312#undef HAVE_SYS_MMAN_H])
313m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_PSTAT_H], [/* Define to 1 if you have the <sys/pstat.h> header file. */
314#undef HAVE_SYS_PSTAT_H])
315m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the <sys/select.h> header file. */
316#undef HAVE_SYS_SELECT_H])
317m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
318#undef HAVE_SYS_STAT_H])
319m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_STROPTS_H], [/* Define to 1 if you have the <sys/stropts.h> header file. */
320#undef HAVE_SYS_STROPTS_H])
321m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_SYSMACROS_H], [/* Define to 1 if you have the <sys/sysmacros.h> header file. */
322#undef HAVE_SYS_SYSMACROS_H])
323m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the <sys/time.h> header file. */
324#undef HAVE_SYS_TIME_H])
325m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_TIMERS_H], [/* Define to 1 if you have the <sys/timers.h> header file. */
326#undef HAVE_SYS_TIMERS_H])
327m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_UN_H], [/* Define to 1 if you have the <sys/un.h> header file. */
328#undef HAVE_SYS_UN_H])
329m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_TIME_H], [/* Define to 1 if you have the <time.h> header file. */
330#undef HAVE_TIME_H])
331m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_TMPDIR_H], [/* Define to 1 if you have the <tmpdir.h> header file. */
332#undef HAVE_TMPDIR_H])
333m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_TTYENT_H], [/* Define to 1 if you have the <ttyent.h> header file. */
334#undef HAVE_TTYENT_H])
335m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_USERSEC_H], [/* Define to 1 if you have the <usersec.h> header file. */
336#undef HAVE_USERSEC_H])
337m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UTIL_H], [/* Define to 1 if you have the <util.h> header file. */
338#undef HAVE_UTIL_H])
339m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UTIME_H], [/* Define to 1 if you have the <utime.h> header file. */
340#undef HAVE_UTIME_H])
341m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UTMP_H], [/* Define to 1 if you have the <utmp.h> header file. */
342#undef HAVE_UTMP_H])
343m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UTMPX_H], [/* Define to 1 if you have the <utmpx.h> header file. */
344#undef HAVE_UTMPX_H])
345m4trace:configure.ac:396: -1- AC_HEADER_STDC
346m4trace:configure.ac:396: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
347m4trace:configure.ac:396: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
348#undef STDC_HEADERS])
349m4trace:configure.ac:396: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
350 inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
351m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
352#undef HAVE_SYS_TYPES_H])
353m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
354#undef HAVE_SYS_STAT_H])
355m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
356#undef HAVE_STDLIB_H])
357m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
358#undef HAVE_STRING_H])
359m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
360#undef HAVE_MEMORY_H])
361m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
362#undef HAVE_STRINGS_H])
363m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
364#undef HAVE_INTTYPES_H])
365m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
366#undef HAVE_STDINT_H])
367m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
368#undef HAVE_UNISTD_H])
369m4trace:configure.ac:399: -2- AC_CHECK_LIB([nsl], [yp_match])
370m4trace:configure.ac:399: -2- AH_OUTPUT([HAVE_LIBNSL], [/* Define to 1 if you have the \`nsl' library (-lnsl). */
371#undef HAVE_LIBNSL])
372m4trace:configure.ac:399: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBNSL])
373m4trace:configure.ac:400: -2- AC_CHECK_LIB([socket], [setsockopt])
374m4trace:configure.ac:400: -2- AH_OUTPUT([HAVE_LIBSOCKET], [/* Define to 1 if you have the \`socket' library (-lsocket). */
375#undef HAVE_LIBSOCKET])
376m4trace:configure.ac:400: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSOCKET])
377m4trace:configure.ac:405: -1- AC_CHECK_LIB([rpc], [innetgr], [LIBS="-lrpc -lyp -lrpc $LIBS" ], [], [-lyp -lrpc])
378m4trace:configure.ac:410: -2- AC_CHECK_LIB([gen], [getspnam], [LIBS="$LIBS -lgen"])
379m4trace:configure.ac:452: -1- AC_CHECK_LIB([z], [deflate], [], [{ { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
380echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
381 { (exit 1); exit 1; }; }])
382m4trace:configure.ac:452: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the \`z' library (-lz). */
383#undef HAVE_LIBZ])
384m4trace:configure.ac:452: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ])
385m4trace:configure.ac:457: -1- AC_CHECK_LIB([resolv], [strcasecmp], [LIBS="$LIBS -lresolv"])
386m4trace:configure.ac:461: -1- AC_CHECK_LIB([c89], [utimes], [AC_DEFINE(HAVE_UTIMES)
387 LIBS="$LIBS -lc89"])
388m4trace:configure.ac:461: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UTIMES])
389m4trace:configure.ac:464: -1- AC_CHECK_HEADERS([libutil.h])
390m4trace:configure.ac:464: -1- AH_OUTPUT([HAVE_LIBUTIL_H], [/* Define to 1 if you have the <libutil.h> header file. */
391#undef HAVE_LIBUTIL_H])
392m4trace:configure.ac:465: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LOGIN])
393m4trace:configure.ac:466: -1- AC_CHECK_FUNCS([logout updwtmp logwtmp])
394m4trace:configure.ac:466: -1- AH_OUTPUT([HAVE_LOGOUT], [/* Define to 1 if you have the \`logout' function. */
395#undef HAVE_LOGOUT])
396m4trace:configure.ac:466: -1- AH_OUTPUT([HAVE_UPDWTMP], [/* Define to 1 if you have the \`updwtmp' function. */
397#undef HAVE_UPDWTMP])
398m4trace:configure.ac:466: -1- AH_OUTPUT([HAVE_LOGWTMP], [/* Define to 1 if you have the \`logwtmp' function. */
399#undef HAVE_LOGWTMP])
400m4trace:configure.ac:468: -1- AC_FUNC_STRFTIME
401m4trace:configure.ac:468: -1- AC_CHECK_FUNCS([strftime], [], [# strftime is in -lintl on SCO UNIX.
402AC_CHECK_LIB(intl, strftime,
403 [AC_DEFINE(HAVE_STRFTIME)
404LIBS="-lintl $LIBS"])])
405m4trace:configure.ac:468: -1- AH_OUTPUT([HAVE_STRFTIME], [/* Define to 1 if you have the \`strftime' function. */
406#undef HAVE_STRFTIME])
407m4trace:configure.ac:468: -1- AC_CHECK_LIB([intl], [strftime], [AC_DEFINE(HAVE_STRFTIME)
408LIBS="-lintl $LIBS"])
409m4trace:configure.ac:468: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRFTIME])
410m4trace:configure.ac:486: -1- AC_DEFINE_TRACE_LITERAL([GLOB_HAS_ALTDIRFUNC])
411m4trace:configure.ac:502: -1- AC_DEFINE_TRACE_LITERAL([GLOB_HAS_GL_MATCHC])
412m4trace:configure.ac:516: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_ONE_BYTE_DIRENT_D_NAME])
413m4trace:configure.ac:549: -1- AC_DEFINE_TRACE_LITERAL([SKEY])
414m4trace:configure.ac:603: -1- AC_DEFINE_TRACE_LITERAL([LIBWRAP])
415m4trace:configure.ac:603: -1- AC_SUBST([LIBWRAP])
416m4trace:configure.ac:618: -1- AC_CHECK_FUNCS([\
417 arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \
418 bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
419 gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \
420 getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \
421 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
422 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \
423 readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \
424 setegid setenv seteuid setgroups setlogin setpcred setproctitle \
425 setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \
426 snprintf socketpair strerror strlcat strlcpy strmode strnvis \
427 sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \
428])
429m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_ARC4RANDOM], [/* Define to 1 if you have the \`arc4random' function. */
430#undef HAVE_ARC4RANDOM])
431m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE___B64_NTOP], [/* Define to 1 if you have the \`__b64_ntop' function. */
432#undef HAVE___B64_NTOP])
433m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_B64_NTOP], [/* Define to 1 if you have the \`b64_ntop' function. */
434#undef HAVE_B64_NTOP])
435m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE___B64_PTON], [/* Define to 1 if you have the \`__b64_pton' function. */
436#undef HAVE___B64_PTON])
437m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_B64_PTON], [/* Define to 1 if you have the \`b64_pton' function. */
438#undef HAVE_B64_PTON])
439m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_BASENAME], [/* Define to 1 if you have the \`basename' function. */
440#undef HAVE_BASENAME])
441m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_BCOPY], [/* Define to 1 if you have the \`bcopy' function. */
442#undef HAVE_BCOPY])
443m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_BINDRESVPORT_SA], [/* Define to 1 if you have the \`bindresvport_sa' function. */
444#undef HAVE_BINDRESVPORT_SA])
445m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_CLOCK], [/* Define to 1 if you have the \`clock' function. */
446#undef HAVE_CLOCK])
447m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_FCHMOD], [/* Define to 1 if you have the \`fchmod' function. */
448#undef HAVE_FCHMOD])
449m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_FCHOWN], [/* Define to 1 if you have the \`fchown' function. */
450#undef HAVE_FCHOWN])
451m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_FREEADDRINFO], [/* Define to 1 if you have the \`freeaddrinfo' function. */
452#undef HAVE_FREEADDRINFO])
453m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_FUTIMES], [/* Define to 1 if you have the \`futimes' function. */
454#undef HAVE_FUTIMES])
455m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GAI_STRERROR], [/* Define to 1 if you have the \`gai_strerror' function. */
456#undef HAVE_GAI_STRERROR])
457m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETADDRINFO], [/* Define to 1 if you have the \`getaddrinfo' function. */
458#undef HAVE_GETADDRINFO])
459m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETCWD], [/* Define to 1 if you have the \`getcwd' function. */
460#undef HAVE_GETCWD])
461m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETGROUPLIST], [/* Define to 1 if you have the \`getgrouplist' function. */
462#undef HAVE_GETGROUPLIST])
463m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETNAMEINFO], [/* Define to 1 if you have the \`getnameinfo' function. */
464#undef HAVE_GETNAMEINFO])
465m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETOPT], [/* Define to 1 if you have the \`getopt' function. */
466#undef HAVE_GETOPT])
467m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETPEEREID], [/* Define to 1 if you have the \`getpeereid' function. */
468#undef HAVE_GETPEEREID])
469m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE__GETPTY], [/* Define to 1 if you have the \`_getpty' function. */
470#undef HAVE__GETPTY])
471m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETRLIMIT], [/* Define to 1 if you have the \`getrlimit' function. */
472#undef HAVE_GETRLIMIT])
473m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETRUSAGE], [/* Define to 1 if you have the \`getrusage' function. */
474#undef HAVE_GETRUSAGE])
475m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETTTYENT], [/* Define to 1 if you have the \`getttyent' function. */
476#undef HAVE_GETTTYENT])
477m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GLOB], [/* Define to 1 if you have the \`glob' function. */
478#undef HAVE_GLOB])
479m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_INET_ATON], [/* Define to 1 if you have the \`inet_aton' function. */
480#undef HAVE_INET_ATON])
481m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_INET_NTOA], [/* Define to 1 if you have the \`inet_ntoa' function. */
482#undef HAVE_INET_NTOA])
483m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_INET_NTOP], [/* Define to 1 if you have the \`inet_ntop' function. */
484#undef HAVE_INET_NTOP])
485m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_INNETGR], [/* Define to 1 if you have the \`innetgr' function. */
486#undef HAVE_INNETGR])
487m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_LOGIN_GETCAPBOOL], [/* Define to 1 if you have the \`login_getcapbool' function. */
488#undef HAVE_LOGIN_GETCAPBOOL])
489m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_MD5_CRYPT], [/* Define to 1 if you have the \`md5_crypt' function. */
490#undef HAVE_MD5_CRYPT])
491m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_MEMMOVE], [/* Define to 1 if you have the \`memmove' function. */
492#undef HAVE_MEMMOVE])
493m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_MKDTEMP], [/* Define to 1 if you have the \`mkdtemp' function. */
494#undef HAVE_MKDTEMP])
495m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_MMAP], [/* Define to 1 if you have the \`mmap' function. */
496#undef HAVE_MMAP])
497m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_NGETADDRINFO], [/* Define to 1 if you have the \`ngetaddrinfo' function. */
498#undef HAVE_NGETADDRINFO])
499m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_NSLEEP], [/* Define to 1 if you have the \`nsleep' function. */
500#undef HAVE_NSLEEP])
501m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_OGETADDRINFO], [/* Define to 1 if you have the \`ogetaddrinfo' function. */
502#undef HAVE_OGETADDRINFO])
503m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_OPENPTY], [/* Define to 1 if you have the \`openpty' function. */
504#undef HAVE_OPENPTY])
505m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_PSTAT], [/* Define to 1 if you have the \`pstat' function. */
506#undef HAVE_PSTAT])
507m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_READPASSPHRASE], [/* Define to 1 if you have the \`readpassphrase' function. */
508#undef HAVE_READPASSPHRASE])
509m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_REALPATH], [/* Define to 1 if you have the \`realpath' function. */
510#undef HAVE_REALPATH])
511m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_RECVMSG], [/* Define to 1 if you have the \`recvmsg' function. */
512#undef HAVE_RECVMSG])
513m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_RRESVPORT_AF], [/* Define to 1 if you have the \`rresvport_af' function. */
514#undef HAVE_RRESVPORT_AF])
515m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SENDMSG], [/* Define to 1 if you have the \`sendmsg' function. */
516#undef HAVE_SENDMSG])
517m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETDTABLESIZE], [/* Define to 1 if you have the \`setdtablesize' function. */
518#undef HAVE_SETDTABLESIZE])
519m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETEGID], [/* Define to 1 if you have the \`setegid' function. */
520#undef HAVE_SETEGID])
521m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETENV], [/* Define to 1 if you have the \`setenv' function. */
522#undef HAVE_SETENV])
523m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETEUID], [/* Define to 1 if you have the \`seteuid' function. */
524#undef HAVE_SETEUID])
525m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETGROUPS], [/* Define to 1 if you have the \`setgroups' function. */
526#undef HAVE_SETGROUPS])
527m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETLOGIN], [/* Define to 1 if you have the \`setlogin' function. */
528#undef HAVE_SETLOGIN])
529m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETPCRED], [/* Define to 1 if you have the \`setpcred' function. */
530#undef HAVE_SETPCRED])
531m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETPROCTITLE], [/* Define to 1 if you have the \`setproctitle' function. */
532#undef HAVE_SETPROCTITLE])
533m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETRESGID], [/* Define to 1 if you have the \`setresgid' function. */
534#undef HAVE_SETRESGID])
535m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETREUID], [/* Define to 1 if you have the \`setreuid' function. */
536#undef HAVE_SETREUID])
537m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETRLIMIT], [/* Define to 1 if you have the \`setrlimit' function. */
538#undef HAVE_SETRLIMIT])
539m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETSID], [/* Define to 1 if you have the \`setsid' function. */
540#undef HAVE_SETSID])
541m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETVBUF], [/* Define to 1 if you have the \`setvbuf' function. */
542#undef HAVE_SETVBUF])
543m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SIGACTION], [/* Define to 1 if you have the \`sigaction' function. */
544#undef HAVE_SIGACTION])
545m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SIGVEC], [/* Define to 1 if you have the \`sigvec' function. */
546#undef HAVE_SIGVEC])
547m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the \`snprintf' function. */
548#undef HAVE_SNPRINTF])
549m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SOCKETPAIR], [/* Define to 1 if you have the \`socketpair' function. */
550#undef HAVE_SOCKETPAIR])
551m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRERROR], [/* Define to 1 if you have the \`strerror' function. */
552#undef HAVE_STRERROR])
553m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRLCAT], [/* Define to 1 if you have the \`strlcat' function. */
554#undef HAVE_STRLCAT])
555m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRLCPY], [/* Define to 1 if you have the \`strlcpy' function. */
556#undef HAVE_STRLCPY])
557m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRMODE], [/* Define to 1 if you have the \`strmode' function. */
558#undef HAVE_STRMODE])
559m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRNVIS], [/* Define to 1 if you have the \`strnvis' function. */
560#undef HAVE_STRNVIS])
561m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SYSCONF], [/* Define to 1 if you have the \`sysconf' function. */
562#undef HAVE_SYSCONF])
563m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_TCGETPGRP], [/* Define to 1 if you have the \`tcgetpgrp' function. */
564#undef HAVE_TCGETPGRP])
565m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_TRUNCATE], [/* Define to 1 if you have the \`truncate' function. */
566#undef HAVE_TRUNCATE])
567m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_UTIMES], [/* Define to 1 if you have the \`utimes' function. */
568#undef HAVE_UTIMES])
569m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_VHANGUP], [/* Define to 1 if you have the \`vhangup' function. */
570#undef HAVE_VHANGUP])
571m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the \`vsnprintf' function. */
572#undef HAVE_VSNPRINTF])
573m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_WAITPID], [/* Define to 1 if you have the \`waitpid' function. */
574#undef HAVE_WAITPID])
575m4trace:configure.ac:620: -2- AC_DEFINE_TRACE_LITERAL([HAVE_NANOSLEEP])
576m4trace:configure.ac:623: -1- AC_CHECK_FUNCS([strsep])
577m4trace:configure.ac:623: -1- AH_OUTPUT([HAVE_STRSEP], [/* Define to 1 if you have the \`strsep' function. */
578#undef HAVE_STRSEP])
579m4trace:configure.ac:660: -1- AC_CHECK_FUNCS([dirname], [AC_CHECK_HEADERS(libgen.h) ], [
580 AC_CHECK_LIB(gen, dirname,[
581 AC_CACHE_CHECK([for broken dirname],
582 ac_cv_have_broken_dirname, [
583 save_LIBS="$LIBS"
584 LIBS="$LIBS -lgen"
585 AC_TRY_RUN(
586 [
587#include <libgen.h>
588#include <string.h>
589
590int main(int argc, char **argv) {
591 char *s, buf[32];
592
593 strncpy(buf,"/etc", 32);
594 s = dirname(buf);
595 if (!s || strncmp(s, "/", 32) != 0) {
596 exit(1);
597 } else {
598 exit(0);
599 }
600}
601 ],
602 [ ac_cv_have_broken_dirname="no" ],
603 [ ac_cv_have_broken_dirname="yes" ]
604 )
605 LIBS="$save_LIBS"
606 ])
607 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
608 LIBS="$LIBS -lgen"
609 AC_DEFINE(HAVE_DIRNAME)
610 AC_CHECK_HEADERS(libgen.h)
611 fi
612 ])
613])
614m4trace:configure.ac:660: -1- AH_OUTPUT([HAVE_DIRNAME], [/* Define to 1 if you have the \`dirname' function. */
615#undef HAVE_DIRNAME])
616m4trace:configure.ac:660: -1- AC_CHECK_HEADERS([libgen.h])
617m4trace:configure.ac:660: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */
618#undef HAVE_LIBGEN_H])
619m4trace:configure.ac:660: -1- AC_CHECK_LIB([gen], [dirname], [
620 AC_CACHE_CHECK([for broken dirname],
621 ac_cv_have_broken_dirname, [
622 save_LIBS="$LIBS"
623 LIBS="$LIBS -lgen"
624 AC_TRY_RUN(
625 [
626#include <libgen.h>
627#include <string.h>
628
629int main(int argc, char **argv) {
630 char *s, buf[32];
631
632 strncpy(buf,"/etc", 32);
633 s = dirname(buf);
634 if (!s || strncmp(s, "/", 32) != 0) {
635 exit(1);
636 } else {
637 exit(0);
638 }
639}
640 ],
641 [ ac_cv_have_broken_dirname="no" ],
642 [ ac_cv_have_broken_dirname="yes" ]
643 )
644 LIBS="$save_LIBS"
645 ])
646 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
647 LIBS="$LIBS -lgen"
648 AC_DEFINE(HAVE_DIRNAME)
649 AC_CHECK_HEADERS(libgen.h)
650 fi
651 ])
652m4trace:configure.ac:660: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DIRNAME])
653m4trace:configure.ac:660: -1- AC_CHECK_HEADERS([libgen.h])
654m4trace:configure.ac:660: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */
655#undef HAVE_LIBGEN_H])
656m4trace:configure.ac:663: -1- AC_CHECK_FUNCS([gettimeofday time])
657m4trace:configure.ac:663: -1- AH_OUTPUT([HAVE_GETTIMEOFDAY], [/* Define to 1 if you have the \`gettimeofday' function. */
658#undef HAVE_GETTIMEOFDAY])
659m4trace:configure.ac:663: -1- AH_OUTPUT([HAVE_TIME], [/* Define to 1 if you have the \`time' function. */
660#undef HAVE_TIME])
661m4trace:configure.ac:665: -1- AC_CHECK_FUNCS([endutent getutent getutid getutline pututline setutent])
662m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_ENDUTENT], [/* Define to 1 if you have the \`endutent' function. */
663#undef HAVE_ENDUTENT])
664m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_GETUTENT], [/* Define to 1 if you have the \`getutent' function. */
665#undef HAVE_GETUTENT])
666m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_GETUTID], [/* Define to 1 if you have the \`getutid' function. */
667#undef HAVE_GETUTID])
668m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_GETUTLINE], [/* Define to 1 if you have the \`getutline' function. */
669#undef HAVE_GETUTLINE])
670m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_PUTUTLINE], [/* Define to 1 if you have the \`pututline' function. */
671#undef HAVE_PUTUTLINE])
672m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_SETUTENT], [/* Define to 1 if you have the \`setutent' function. */
673#undef HAVE_SETUTENT])
674m4trace:configure.ac:666: -1- AC_CHECK_FUNCS([utmpname])
675m4trace:configure.ac:666: -1- AH_OUTPUT([HAVE_UTMPNAME], [/* Define to 1 if you have the \`utmpname' function. */
676#undef HAVE_UTMPNAME])
677m4trace:configure.ac:668: -1- AC_CHECK_FUNCS([endutxent getutxent getutxid getutxline pututxline ])
678m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_ENDUTXENT], [/* Define to 1 if you have the \`endutxent' function. */
679#undef HAVE_ENDUTXENT])
680m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_GETUTXENT], [/* Define to 1 if you have the \`getutxent' function. */
681#undef HAVE_GETUTXENT])
682m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_GETUTXID], [/* Define to 1 if you have the \`getutxid' function. */
683#undef HAVE_GETUTXID])
684m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_GETUTXLINE], [/* Define to 1 if you have the \`getutxline' function. */
685#undef HAVE_GETUTXLINE])
686m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_PUTUTXLINE], [/* Define to 1 if you have the \`pututxline' function. */
687#undef HAVE_PUTUTXLINE])
688m4trace:configure.ac:669: -1- AC_CHECK_FUNCS([setutxent utmpxname])
689m4trace:configure.ac:669: -1- AH_OUTPUT([HAVE_SETUTXENT], [/* Define to 1 if you have the \`setutxent' function. */
690#undef HAVE_SETUTXENT])
691m4trace:configure.ac:669: -1- AH_OUTPUT([HAVE_UTMPXNAME], [/* Define to 1 if you have the \`utmpxname' function. */
692#undef HAVE_UTMPXNAME])
693m4trace:configure.ac:674: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DAEMON])
694m4trace:configure.ac:674: -1- AC_CHECK_LIB([bsd], [daemon], [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])
695m4trace:configure.ac:674: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DAEMON])
696m4trace:configure.ac:679: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE])
697m4trace:configure.ac:679: -1- AC_CHECK_LIB([ucb], [getpagesize], [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])
698m4trace:configure.ac:679: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE])
699m4trace:configure.ac:695: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SNPRINTF])
700m4trace:configure.ac:721: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRICT_MKSTEMP])
701m4trace:configure.ac:721: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRICT_MKSTEMP])
702m4trace:configure.ac:724: -1- AC_FUNC_GETPGRP
703m4trace:configure.ac:724: -1- AC_DEFINE_TRACE_LITERAL([GETPGRP_VOID])
704m4trace:configure.ac:724: -1- AH_OUTPUT([GETPGRP_VOID], [/* Define to 1 if the \`getpgrp' function requires zero arguments. */
705#undef GETPGRP_VOID])
706m4trace:configure.ac:752: -1- AC_CHECK_LIB([dl], [dlopen], [], [])
707m4trace:configure.ac:752: -1- AH_OUTPUT([HAVE_LIBDL], [/* Define to 1 if you have the \`dl' library (-ldl). */
708#undef HAVE_LIBDL])
709m4trace:configure.ac:752: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDL])
710m4trace:configure.ac:752: -1- AC_CHECK_LIB([pam], [pam_set_item], [], [{ { echo "$as_me:$LINENO: error: *** libpam missing" >&5
711echo "$as_me: error: *** libpam missing" >&2;}
712 { (exit 1); exit 1; }; }])
713m4trace:configure.ac:752: -1- AH_OUTPUT([HAVE_LIBPAM], [/* Define to 1 if you have the \`pam' library (-lpam). */
714#undef HAVE_LIBPAM])
715m4trace:configure.ac:752: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPAM])
716m4trace:configure.ac:752: -1- AC_CHECK_FUNCS([pam_getenvlist])
717m4trace:configure.ac:752: -1- AH_OUTPUT([HAVE_PAM_GETENVLIST], [/* Define to 1 if you have the \`pam_getenvlist' function. */
718#undef HAVE_PAM_GETENVLIST])
719m4trace:configure.ac:752: -1- AC_DEFINE_TRACE_LITERAL([USE_PAM])
720m4trace:configure.ac:752: -1- AC_SUBST([LIBPAM])
721m4trace:configure.ac:770: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OLD_PAM])
722m4trace:configure.ac:776: -1- AC_CHECK_LIB([crypt], [crypt])
723m4trace:configure.ac:776: -1- AH_OUTPUT([HAVE_LIBCRYPT], [/* Define to 1 if you have the \`crypt' library (-lcrypt). */
724#undef HAVE_LIBCRYPT])
725m4trace:configure.ac:776: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBCRYPT])
726m4trace:configure.ac:808: -2- AC_DEFINE_TRACE_LITERAL([HAVE_OPENSSL])
727m4trace:configure.ac:823: -2- AC_DEFINE_TRACE_LITERAL([HAVE_OPENSSL])
728m4trace:configure.ac:910: -1- AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"])
729m4trace:configure.ac:958: -1- AC_DEFINE_TRACE_LITERAL([OPENSSL_PRNG_ONLY])
730m4trace:configure.ac:966: -1- AC_SUBST([INSTALL_SSH_RAND_HELPER])
731m4trace:configure.ac:989: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_PORT])
732m4trace:configure.ac:1039: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_SOCKET])
733m4trace:configure.ac:1039: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_SOCKET])
734m4trace:configure.ac:1051: -1- AC_DEFINE_TRACE_LITERAL([ENTROPY_TIMEOUT_MSEC])
735m4trace:configure.ac:1062: -1- AC_DEFINE_TRACE_LITERAL([SSH_PRIVSEP_USER])
736m4trace:configure.ac:1063: -1- AC_SUBST([SSH_PRIVSEP_USER])
737m4trace:configure.ac:1080: -1- AC_SUBST([PROG_LS], [$ac_cv_path_PROG_LS])
738m4trace:configure.ac:1080: -1- AC_SUBST([PROG_LS])
739m4trace:configure.ac:1081: -1- AC_SUBST([PROG_NETSTAT], [$ac_cv_path_PROG_NETSTAT])
740m4trace:configure.ac:1081: -1- AC_SUBST([PROG_NETSTAT])
741m4trace:configure.ac:1082: -1- AC_SUBST([PROG_ARP], [$ac_cv_path_PROG_ARP])
742m4trace:configure.ac:1082: -1- AC_SUBST([PROG_ARP])
743m4trace:configure.ac:1083: -1- AC_SUBST([PROG_IFCONFIG], [$ac_cv_path_PROG_IFCONFIG])
744m4trace:configure.ac:1083: -1- AC_SUBST([PROG_IFCONFIG])
745m4trace:configure.ac:1084: -1- AC_SUBST([PROG_JSTAT], [$ac_cv_path_PROG_JSTAT])
746m4trace:configure.ac:1084: -1- AC_SUBST([PROG_JSTAT])
747m4trace:configure.ac:1085: -1- AC_SUBST([PROG_PS], [$ac_cv_path_PROG_PS])
748m4trace:configure.ac:1085: -1- AC_SUBST([PROG_PS])
749m4trace:configure.ac:1086: -1- AC_SUBST([PROG_SAR], [$ac_cv_path_PROG_SAR])
750m4trace:configure.ac:1086: -1- AC_SUBST([PROG_SAR])
751m4trace:configure.ac:1087: -1- AC_SUBST([PROG_W], [$ac_cv_path_PROG_W])
752m4trace:configure.ac:1087: -1- AC_SUBST([PROG_W])
753m4trace:configure.ac:1088: -1- AC_SUBST([PROG_WHO], [$ac_cv_path_PROG_WHO])
754m4trace:configure.ac:1088: -1- AC_SUBST([PROG_WHO])
755m4trace:configure.ac:1089: -1- AC_SUBST([PROG_LAST], [$ac_cv_path_PROG_LAST])
756m4trace:configure.ac:1089: -1- AC_SUBST([PROG_LAST])
757m4trace:configure.ac:1090: -1- AC_SUBST([PROG_LASTLOG], [$ac_cv_path_PROG_LASTLOG])
758m4trace:configure.ac:1090: -1- AC_SUBST([PROG_LASTLOG])
759m4trace:configure.ac:1091: -1- AC_SUBST([PROG_DF], [$ac_cv_path_PROG_DF])
760m4trace:configure.ac:1091: -1- AC_SUBST([PROG_DF])
761m4trace:configure.ac:1092: -1- AC_SUBST([PROG_VMSTAT], [$ac_cv_path_PROG_VMSTAT])
762m4trace:configure.ac:1092: -1- AC_SUBST([PROG_VMSTAT])
763m4trace:configure.ac:1093: -1- AC_SUBST([PROG_UPTIME], [$ac_cv_path_PROG_UPTIME])
764m4trace:configure.ac:1093: -1- AC_SUBST([PROG_UPTIME])
765m4trace:configure.ac:1094: -1- AC_SUBST([PROG_IPCS], [$ac_cv_path_PROG_IPCS])
766m4trace:configure.ac:1094: -1- AC_SUBST([PROG_IPCS])
767m4trace:configure.ac:1095: -1- AC_SUBST([PROG_TAIL], [$ac_cv_path_PROG_TAIL])
768m4trace:configure.ac:1095: -1- AC_SUBST([PROG_TAIL])
769m4trace:configure.ac:1112: -1- AC_SUBST([INSTALL_SSH_PRNG_CMDS])
770m4trace:configure.ac:1121: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_CHAR])
771m4trace:configure.ac:1121: -1- AH_OUTPUT([SIZEOF_CHAR], [/* The size of a \`char', as computed by sizeof. */
772#undef SIZEOF_CHAR])
773m4trace:configure.ac:1122: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_SHORT_INT])
774m4trace:configure.ac:1122: -1- AH_OUTPUT([SIZEOF_SHORT_INT], [/* The size of a \`short int', as computed by sizeof. */
775#undef SIZEOF_SHORT_INT])
776m4trace:configure.ac:1123: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_INT])
777m4trace:configure.ac:1123: -1- AH_OUTPUT([SIZEOF_INT], [/* The size of a \`int', as computed by sizeof. */
778#undef SIZEOF_INT])
779m4trace:configure.ac:1124: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_INT])
780m4trace:configure.ac:1124: -1- AH_OUTPUT([SIZEOF_LONG_INT], [/* The size of a \`long int', as computed by sizeof. */
781#undef SIZEOF_LONG_INT])
782m4trace:configure.ac:1125: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_LONG_INT])
783m4trace:configure.ac:1125: -1- AH_OUTPUT([SIZEOF_LONG_LONG_INT], [/* The size of a \`long long int', as computed by sizeof. */
784#undef SIZEOF_LONG_LONG_INT])
785m4trace:configure.ac:1142: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT])
786m4trace:configure.ac:1155: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
787m4trace:configure.ac:1171: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
788m4trace:configure.ac:1192: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INT64_T])
789m4trace:configure.ac:1204: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
790m4trace:configure.ac:1218: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
791m4trace:configure.ac:1230: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT64_T])
792m4trace:configure.ac:1244: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT64_T])
793m4trace:configure.ac:1259: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTXX_T])
794m4trace:configure.ac:1273: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTXX_T])
795m4trace:configure.ac:1295: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
796m4trace:configure.ac:1295: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
797m4trace:configure.ac:1310: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_CHAR])
798m4trace:configure.ac:1313: -1- AC_DEFINE_TRACE_LITERAL([socklen_t])
799m4trace:configure.ac:1313: -1- AH_OUTPUT([socklen_t], [/* type to use in place of socklen_t if not defined */
800#undef socklen_t])
801m4trace:configure.ac:1315: -1- AC_CHECK_TYPES([sig_atomic_t], [], [], [#include <signal.h>])
802m4trace:configure.ac:1315: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIG_ATOMIC_T])
803m4trace:configure.ac:1315: -1- AH_OUTPUT([HAVE_SIG_ATOMIC_T], [/* Define to 1 if the system has the type \`sig_atomic_t'. */
804#undef HAVE_SIG_ATOMIC_T])
805m4trace:configure.ac:1328: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIZE_T])
806m4trace:configure.ac:1342: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T])
807m4trace:configure.ac:1356: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CLOCK_T])
808m4trace:configure.ac:1381: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SA_FAMILY_T])
809m4trace:configure.ac:1395: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PID_T])
810m4trace:configure.ac:1409: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MODE_T])
811m4trace:configure.ac:1425: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_STORAGE])
812m4trace:configure.ac:1440: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_IN6])
813m4trace:configure.ac:1455: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_IN6_ADDR])
814m4trace:configure.ac:1471: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_ADDRINFO])
815m4trace:configure.ac:1483: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_TIMEVAL])
816m4trace:configure.ac:1487: -1- AC_CHECK_TYPES([struct timespec])
817m4trace:configure.ac:1487: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_TIMESPEC])
818m4trace:configure.ac:1487: -1- AH_OUTPUT([HAVE_STRUCT_TIMESPEC], [/* Define to 1 if the system has the type \`struct timespec'. */
819#undef HAVE_STRUCT_TIMESPEC])
820m4trace:configure.ac:1524: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SNPRINTF])
821m4trace:configure.ac:1528: -1- AC_DEFINE_TRACE_LITERAL([HAVE_HOST_IN_UTMP])
822m4trace:configure.ac:1529: -1- AC_DEFINE_TRACE_LITERAL([HAVE_HOST_IN_UTMPX])
823m4trace:configure.ac:1530: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYSLEN_IN_UTMPX])
824m4trace:configure.ac:1531: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PID_IN_UTMP])
825m4trace:configure.ac:1532: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TYPE_IN_UTMP])
826m4trace:configure.ac:1533: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TYPE_IN_UTMPX])
827m4trace:configure.ac:1534: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TV_IN_UTMP])
828m4trace:configure.ac:1535: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ID_IN_UTMP])
829m4trace:configure.ac:1536: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ID_IN_UTMPX])
830m4trace:configure.ac:1537: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_IN_UTMP])
831m4trace:configure.ac:1538: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_IN_UTMPX])
832m4trace:configure.ac:1539: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_V6_IN_UTMP])
833m4trace:configure.ac:1540: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_V6_IN_UTMPX])
834m4trace:configure.ac:1541: -1- AC_DEFINE_TRACE_LITERAL([HAVE_EXIT_IN_UTMP])
835m4trace:configure.ac:1542: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME_IN_UTMP])
836m4trace:configure.ac:1543: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME_IN_UTMPX])
837m4trace:configure.ac:1544: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TV_IN_UTMPX])
838m4trace:configure.ac:1546: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_STAT_ST_BLKSIZE])
839m4trace:configure.ac:1546: -1- AH_OUTPUT([HAVE_STRUCT_STAT_ST_BLKSIZE], [/* Define to 1 if \`st_blksize' is member of \`struct stat'. */
840#undef HAVE_STRUCT_STAT_ST_BLKSIZE])
841m4trace:configure.ac:1561: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SS_FAMILY_IN_SS])
842m4trace:configure.ac:1577: -1- AC_DEFINE_TRACE_LITERAL([HAVE___SS_FAMILY_IN_SS])
843m4trace:configure.ac:1592: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_CLASS_IN_PASSWD])
844m4trace:configure.ac:1607: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_EXPIRE_IN_PASSWD])
845m4trace:configure.ac:1622: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_CHANGE_IN_PASSWD])
846m4trace:configure.ac:1647: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ACCRIGHTS_IN_MSGHDR])
847m4trace:configure.ac:1671: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CONTROL_IN_MSGHDR])
848m4trace:configure.ac:1682: -1- AC_DEFINE_TRACE_LITERAL([HAVE___PROGNAME])
849m4trace:configure.ac:1695: -1- AC_DEFINE_TRACE_LITERAL([HAVE___FUNCTION__])
850m4trace:configure.ac:1708: -1- AC_DEFINE_TRACE_LITERAL([HAVE___func__])
851m4trace:configure.ac:1723: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETOPT_OPTRESET])
852m4trace:configure.ac:1734: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYS_ERRLIST])
853m4trace:configure.ac:1746: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYS_NERR])
854m4trace:configure.ac:1779: -1- AC_CHECK_HEADERS([sectok.h])
855m4trace:configure.ac:1779: -1- AH_OUTPUT([HAVE_SECTOK_H], [/* Define to 1 if you have the <sectok.h> header file. */
856#undef HAVE_SECTOK_H])
857m4trace:configure.ac:1779: -1- AC_CHECK_LIB([sectok], [sectok_open])
858m4trace:configure.ac:1779: -1- AH_OUTPUT([HAVE_LIBSECTOK], [/* Define to 1 if you have the \`sectok' library (-lsectok). */
859#undef HAVE_LIBSECTOK])
860m4trace:configure.ac:1779: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSECTOK])
861m4trace:configure.ac:1779: -1- AC_DEFINE_TRACE_LITERAL([SMARTCARD])
862m4trace:configure.ac:1779: -1- AC_DEFINE_TRACE_LITERAL([USE_SECTOK])
863m4trace:configure.ac:1788: -1- AC_SUBST([OPENSC_CONFIG], [$ac_cv_path_OPENSC_CONFIG])
864m4trace:configure.ac:1794: -1- AC_DEFINE_TRACE_LITERAL([SMARTCARD])
865m4trace:configure.ac:1795: -1- AC_DEFINE_TRACE_LITERAL([USE_OPENSC])
866m4trace:configure.ac:1837: -1- AC_DEFINE_TRACE_LITERAL([KRB5])
867m4trace:configure.ac:1837: -1- AC_DEFINE_TRACE_LITERAL([HEIMDAL])
868m4trace:configure.ac:1837: -1- AC_CHECK_LIB([resolv], [dn_expand], [], [])
869m4trace:configure.ac:1837: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the \`resolv' library (-lresolv). */
870#undef HAVE_LIBRESOLV])
871m4trace:configure.ac:1837: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV])
872m4trace:configure.ac:1891: -1- AC_CHECK_HEADERS([krb.h])
873m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_KRB_H], [/* Define to 1 if you have the <krb.h> header file. */
874#undef HAVE_KRB_H])
875m4trace:configure.ac:1891: -1- AC_CHECK_LIB([krb], [main])
876m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBKRB], [/* Define to 1 if you have the \`krb' library (-lkrb). */
877#undef HAVE_LIBKRB])
878m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBKRB])
879m4trace:configure.ac:1891: -1- AC_CHECK_LIB([krb4], [main])
880m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBKRB4], [/* Define to 1 if you have the \`krb4' library (-lkrb4). */
881#undef HAVE_LIBKRB4])
882m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBKRB4])
883m4trace:configure.ac:1891: -1- AC_CHECK_LIB([des], [des_cbc_encrypt])
884m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBDES], [/* Define to 1 if you have the \`des' library (-ldes). */
885#undef HAVE_LIBDES])
886m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDES])
887m4trace:configure.ac:1891: -1- AC_CHECK_LIB([des425], [des_cbc_encrypt])
888m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBDES425], [/* Define to 1 if you have the \`des425' library (-ldes425). */
889#undef HAVE_LIBDES425])
890m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDES425])
891m4trace:configure.ac:1891: -1- AC_CHECK_LIB([resolv], [dn_expand], [], [])
892m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the \`resolv' library (-lresolv). */
893#undef HAVE_LIBRESOLV])
894m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV])
895m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([KRB4])
896m4trace:configure.ac:1917: -1- AC_DEFINE_TRACE_LITERAL([AFS])
897m4trace:configure.ac:1931: -1- AC_SUBST([PRIVSEP_PATH])
898m4trace:configure.ac:1951: -1- AC_SUBST([xauth_path], [$ac_cv_path_xauth_path])
899m4trace:configure.ac:1962: -1- AC_SUBST([STRIP_OPT])
900m4trace:configure.ac:1966: -1- AC_SUBST([XAUTH_PATH])
901m4trace:configure.ac:1968: -1- AC_DEFINE_TRACE_LITERAL([XAUTH_PATH])
902m4trace:configure.ac:1970: -1- AC_SUBST([XAUTH_PATH])
903m4trace:configure.ac:1976: -1- AC_DEFINE_TRACE_LITERAL([MAIL_DIRECTORY])
904m4trace:configure.ac:1986: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_PTMX])
905m4trace:configure.ac:1994: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_PTS_AND_PTC])
906m4trace:configure.ac:2012: -1- AC_SUBST([NROFF], [$ac_cv_path_NROFF])
907m4trace:configure.ac:2021: -1- AC_SUBST([MANTYPE])
908m4trace:configure.ac:2027: -1- AC_SUBST([mansubdir])
909m4trace:configure.ac:2039: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MD5_PASSWORDS])
910m4trace:configure.ac:2050: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
911m4trace:configure.ac:2065: -1- AC_DEFINE_TRACE_LITERAL([HAS_SHADOW_EXPIRE])
912m4trace:configure.ac:2074: -1- AC_DEFINE_TRACE_LITERAL([IPADDR_IN_DISPLAY])
913m4trace:configure.ac:2085: -1- AC_DEFINE_TRACE_LITERAL([IPADDR_IN_DISPLAY])
914m4trace:configure.ac:2166: -1- AC_DEFINE_TRACE_LITERAL([USER_PATH])
915m4trace:configure.ac:2167: -1- AC_SUBST([user_path])
916m4trace:configure.ac:2179: -1- AC_DEFINE_TRACE_LITERAL([SUPERUSER_PATH])
917m4trace:configure.ac:2192: -1- AC_DEFINE_TRACE_LITERAL([IPV4_DEFAULT])
918m4trace:configure.ac:2215: -1- AC_DEFINE_TRACE_LITERAL([IPV4_IN_IPV6])
919m4trace:configure.ac:2215: -1- AC_DEFINE_TRACE_LITERAL([IPV4_IN_IPV6])
920m4trace:configure.ac:2227: -1- AC_DEFINE_TRACE_LITERAL([BSD_AUTH])
921m4trace:configure.ac:2251: -1- AC_DEFINE_TRACE_LITERAL([_PATH_SSH_PIDDIR])
922m4trace:configure.ac:2252: -1- AC_SUBST([piddir])
923m4trace:configure.ac:2258: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
924m4trace:configure.ac:2262: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
925m4trace:configure.ac:2266: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMPX])
926m4trace:configure.ac:2270: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
927m4trace:configure.ac:2274: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMPX])
928m4trace:configure.ac:2278: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LOGIN])
929m4trace:configure.ac:2282: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_PUTUTLINE])
930m4trace:configure.ac:2286: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_PUTUTXLINE])
931m4trace:configure.ac:2296: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
932m4trace:configure.ac:2358: -1- AC_DEFINE_TRACE_LITERAL([CONF_LASTLOG_FILE])
933m4trace:configure.ac:2383: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
934m4trace:configure.ac:2388: -1- AC_DEFINE_TRACE_LITERAL([CONF_UTMP_FILE])
935m4trace:configure.ac:2413: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
936m4trace:configure.ac:2418: -1- AC_DEFINE_TRACE_LITERAL([CONF_WTMP_FILE])
937m4trace:configure.ac:2443: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMPX])
938m4trace:configure.ac:2446: -1- AC_DEFINE_TRACE_LITERAL([CONF_UTMPX_FILE])
939m4trace:configure.ac:2468: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMPX])
940m4trace:configure.ac:2471: -1- AC_DEFINE_TRACE_LITERAL([CONF_WTMPX_FILE])
941m4trace:configure.ac:2489: -1- AC_CONFIG_FILES([Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds])
diff --git a/autom4te.cache/output.0 b/autom4te.cache/output.0
new file mode 100644
index 000000000..f99b3ba11
--- /dev/null
+++ b/autom4te.cache/output.0
@@ -0,0 +1,19182 @@
1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.57.
4@%:@
5@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6@%:@ Free Software Foundation, Inc.
7@%:@ This configure script is free software; the Free Software Foundation
8@%:@ gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="ssh.c"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PERL SED ENT TEST_MINUS_S_SH SH LOGIN_PROGRAM_FALLBACK LD EGREP LIBWRAP LIBPAM INSTALL_SSH_RAND_HELPER SSH_PRIVSEP_USER PROG_LS PROG_NETSTAT PROG_ARP PROG_IFCONFIG PROG_JSTAT PROG_PS PROG_SAR PROG_W PROG_WHO PROG_LAST PROG_LASTLOG PROG_DF PROG_VMSTAT PROG_UPTIME PROG_IPCS PROG_TAIL INSTALL_SSH_PRNG_CMDS OPENSC_CONFIG PRIVSEP_PATH xauth_path STRIP_OPT XAUTH_PATH NROFF MANTYPE mansubdir user_path piddir LIB@&t@OBJS LTLIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780\`configure' configures this package to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802 cat <<_ACEOF
803Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829_ACEOF
830
831 cat <<\_ACEOF
832
833System types:
834 --build=BUILD configure for building on BUILD [guessed]
835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
836_ACEOF
837fi
838
839if test -n "$ac_init_help"; then
840
841 cat <<\_ACEOF
842
843Optional Features:
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --disable-largefile omit support for large files
847 --disable-strip Disable calling strip(1) on install
848 --disable-lastlog disable use of lastlog even if detected no
849 --disable-utmp disable use of utmp even if detected no
850 --disable-utmpx disable use of utmpx even if detected no
851 --disable-wtmp disable use of wtmp even if detected no
852 --disable-wtmpx disable use of wtmpx even if detected no
853 --disable-libutil disable use of libutil (login() etc.) no
854 --disable-pututline disable use of pututline() etc. (uwtmp) no
855 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
856
857Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-osfsia Enable Digital Unix SIA
861 --with-cflags Specify additional flags to pass to compiler
862 --with-cppflags Specify additional flags to pass to preprocessor
863 --with-ldflags Specify additional flags to pass to linker
864 --with-libs Specify additional libraries to link with
865 --without-rpath Disable auto-added -R linker paths
866 --with-zlib=PATH Use zlib in PATH
867 --with-skey[=PATH] Enable S/Key support
868 (optionally in PATH)
869 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
870 (optionally in PATH)
871 --with-pam Enable PAM support
872 --with-ssl-dir=PATH Specify path to OpenSSL installation
873 --with-rand-helper Use subprocess to gather strong randomness
874 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
875 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
876 --with-entropy-timeout Specify entropy gathering command timeout (msec)
877 --with-privsep-user=user Specify non-privileged user for privilege separation
878 --with-sectok Enable smartcard support using libsectok
879 --with-opensc=PFX Enable smartcard support using OpenSC
880 --with-kerberos5=PATH Enable Kerberos 5 support
881 --with-kerberos4=PATH Enable Kerberos 4 support
882 --with-afs=PATH Enable AFS support
883 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
884 --with-xauth=PATH Specify path to xauth program
885 --with-mantype=man|cat|doc Set man page type
886 --with-md5-passwords Enable use of MD5 passwords
887 --without-shadow Disable shadow password support
888 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
889 --with-default-path= Specify default \$PATH environment for server
890 --with-superuser-path= Specify different path for super-user
891 --with-ipv4-default Use IPv4 by connections unless '-6' specified
892 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
893 --with-bsd-auth Enable BSD auth support
894 --with-pid-dir=PATH Specify location of ssh.pid file
895 --with-lastlog=FILE|DIR specify lastlog location common locations
896
897Some influential environment variables:
898 CC C compiler command
899 CFLAGS C compiler flags
900 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901 nonstandard directory <lib dir>
902 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903 headers in a nonstandard directory <include dir>
904 CPP C preprocessor
905
906Use these variables to override the choices made by `configure' or to help
907it to find libraries and programs with nonstandard names/locations.
908
909_ACEOF
910fi
911
912if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
914 ac_popdir=`pwd`
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
917 ac_builddir=.
918
919if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923else
924 ac_dir_suffix= ac_top_builddir=
925fi
926
927case $srcdir in
928 .) # No --srcdir option. We are building in place.
929 ac_srcdir=.
930 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=.
932 else
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 fi ;;
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
938 *) # Relative path.
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941esac
942# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943# absolute.
944ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
946ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948
949 cd $ac_dir
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
952 echo
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
955 echo
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
959 echo
960 $ac_configure --help
961 else
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963 fi
964 cd $ac_popdir
965 done
966fi
967
968test -n "$ac_init_help" && exit 0
969if $ac_init_version; then
970 cat <<\_ACEOF
971
972Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973Free Software Foundation, Inc.
974This configure script is free software; the Free Software Foundation
975gives unlimited permission to copy, distribute and modify it.
976_ACEOF
977 exit 0
978fi
979exec 5>config.log
980cat >&5 <<_ACEOF
981This file contains any messages produced by compilers while
982running configure, to aid debugging if configure makes a mistake.
983
984It was created by $as_me, which was
985generated by GNU Autoconf 2.57. Invocation command line was
986
987 $ $0 $@
988
989_ACEOF
990{
991cat <<_ASUNAME
992@%:@@%:@ --------- @%:@@%:@
993@%:@@%:@ Platform. @%:@@%:@
994@%:@@%:@ --------- @%:@@%:@
995
996hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997uname -m = `(uname -m) 2>/dev/null || echo unknown`
998uname -r = `(uname -r) 2>/dev/null || echo unknown`
999uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004
1005/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012
1013_ASUNAME
1014
1015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016for as_dir in $PATH
1017do
1018 IFS=$as_save_IFS
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1021done
1022
1023} >&5
1024
1025cat >&5 <<_ACEOF
1026
1027
1028@%:@@%:@ ----------- @%:@@%:@
1029@%:@@%:@ Core tests. @%:@@%:@
1030@%:@@%:@ ----------- @%:@@%:@
1031
1032_ACEOF
1033
1034
1035# Keep a trace of the command line.
1036# Strip out --no-create and --no-recursion so they do not pile up.
1037# Strip out --silent because we don't want to record it for future runs.
1038# Also quote any args containing shell meta-characters.
1039# Make two passes to allow for proper duplicate-argument suppression.
1040ac_configure_args=
1041ac_configure_args0=
1042ac_configure_args1=
1043ac_sep=
1044ac_must_keep_next=false
1045for ac_pass in 1 2
1046do
1047 for ac_arg
1048 do
1049 case $ac_arg in
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 continue ;;
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 esac
1057 case $ac_pass in
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 2)
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1063 else
1064 case $ac_arg in
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 esac
1072 ;;
1073 -* ) ac_must_keep_next=true ;;
1074 esac
1075 fi
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1078 ac_sep=" "
1079 ;;
1080 esac
1081 done
1082done
1083$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
1086# When interrupted or exit'd, cleanup temporary files, and complete
1087# config.log. We remove comments because anyway the quotes in there
1088# would cause problems or look ugly.
1089# WARNING: Be sure not to use single quotes in there, as some shells,
1090# such as our DU 5.0 friend, will then `close' the trap.
1091trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1093 {
1094 echo
1095
1096 cat <<\_ASBOX
1097@%:@@%:@ ---------------- @%:@@%:@
1098@%:@@%:@ Cache variables. @%:@@%:@
1099@%:@@%:@ ---------------- @%:@@%:@
1100_ASBOX
1101 echo
1102 # The following way of writing the cache mishandles newlines in values,
1103{
1104 (set) 2>&1 |
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 *ac_space=\ *)
1107 sed -n \
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 ;;
1111 *)
1112 sed -n \
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 ;;
1115 esac;
1116}
1117 echo
1118
1119 cat <<\_ASBOX
1120@%:@@%:@ ----------------- @%:@@%:@
1121@%:@@%:@ Output variables. @%:@@%:@
1122@%:@@%:@ ----------------- @%:@@%:@
1123_ASBOX
1124 echo
1125 for ac_var in $ac_subst_vars
1126 do
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1131
1132 if test -n "$ac_subst_files"; then
1133 cat <<\_ASBOX
1134@%:@@%:@ ------------- @%:@@%:@
1135@%:@@%:@ Output files. @%:@@%:@
1136@%:@@%:@ ------------- @%:@@%:@
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_files
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145 fi
1146
1147 if test -s confdefs.h; then
1148 cat <<\_ASBOX
1149@%:@@%:@ ----------- @%:@@%:@
1150@%:@@%:@ confdefs.h. @%:@@%:@
1151@%:@@%:@ ----------- @%:@@%:@
1152_ASBOX
1153 echo
1154 sed "/^$/d" confdefs.h | sort
1155 echo
1156 fi
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1160 } >&5
1161 rm -f core core.* *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 exit $exit_status
1164 ' 0
1165for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167done
1168ac_signal=0
1169
1170# confdefs.h avoids OS command line length limits that DEFS can exceed.
1171rm -rf conftest* confdefs.h
1172# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173echo >confdefs.h
1174
1175# Predefined preprocessor variables.
1176
1177cat >>confdefs.h <<_ACEOF
1178@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199_ACEOF
1200
1201
1202# Let the site file select an alternate cache file if it wants to.
1203# Prefer explicitly selected file to automatically selected ones.
1204if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207 else
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 fi
1210fi
1211for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
1216 . "$ac_site_file"
1217 fi
1218done
1219
1220if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225echo "$as_me: loading cache $cache_file" >&6;}
1226 case $cache_file in
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1229 esac
1230 fi
1231else
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233echo "$as_me: creating cache $cache_file" >&6;}
1234 >$cache_file
1235fi
1236
1237# Check that the precious variables saved in the cache have kept the same
1238# value.
1239ac_cache_corrupted=false
1240for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1247 set,)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,set)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,);;
1256 *)
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1265 fi;;
1266 esac
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1269 case $ac_new_val in
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1273 esac
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 esac
1278 fi
1279done
1280if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1286fi
1287
1288ac_ext=c
1289ac_cpp='$CPP $CPPFLAGS'
1290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314 ac_config_headers="$ac_config_headers config.h"
1315
1316ac_ext=c
1317ac_cpp='$CPP $CPPFLAGS'
1318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321if test -n "$ac_tool_prefix"; then
1322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1323set dummy ${ac_tool_prefix}gcc; ac_word=$2
1324echo "$as_me:$LINENO: checking for $ac_word" >&5
1325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326if test "${ac_cv_prog_CC+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1328else
1329 if test -n "$CC"; then
1330 ac_cv_prog_CC="$CC" # Let the user override the test.
1331else
1332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333for as_dir in $PATH
1334do
1335 IFS=$as_save_IFS
1336 test -z "$as_dir" && as_dir=.
1337 for ac_exec_ext in '' $ac_executable_extensions; do
1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 break 2
1342 fi
1343done
1344done
1345
1346fi
1347fi
1348CC=$ac_cv_prog_CC
1349if test -n "$CC"; then
1350 echo "$as_me:$LINENO: result: $CC" >&5
1351echo "${ECHO_T}$CC" >&6
1352else
1353 echo "$as_me:$LINENO: result: no" >&5
1354echo "${ECHO_T}no" >&6
1355fi
1356
1357fi
1358if test -z "$ac_cv_prog_CC"; then
1359 ac_ct_CC=$CC
1360 # Extract the first word of "gcc", so it can be a program name with args.
1361set dummy gcc; ac_word=$2
1362echo "$as_me:$LINENO: checking for $ac_word" >&5
1363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366else
1367 if test -n "$ac_ct_CC"; then
1368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1369else
1370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371for as_dir in $PATH
1372do
1373 IFS=$as_save_IFS
1374 test -z "$as_dir" && as_dir=.
1375 for ac_exec_ext in '' $ac_executable_extensions; do
1376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1377 ac_cv_prog_ac_ct_CC="gcc"
1378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1379 break 2
1380 fi
1381done
1382done
1383
1384fi
1385fi
1386ac_ct_CC=$ac_cv_prog_ac_ct_CC
1387if test -n "$ac_ct_CC"; then
1388 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1389echo "${ECHO_T}$ac_ct_CC" >&6
1390else
1391 echo "$as_me:$LINENO: result: no" >&5
1392echo "${ECHO_T}no" >&6
1393fi
1394
1395 CC=$ac_ct_CC
1396else
1397 CC="$ac_cv_prog_CC"
1398fi
1399
1400if test -z "$CC"; then
1401 if test -n "$ac_tool_prefix"; then
1402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1403set dummy ${ac_tool_prefix}cc; ac_word=$2
1404echo "$as_me:$LINENO: checking for $ac_word" >&5
1405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406if test "${ac_cv_prog_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 if test -n "$CC"; then
1410 ac_cv_prog_CC="$CC" # Let the user override the test.
1411else
1412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413for as_dir in $PATH
1414do
1415 IFS=$as_save_IFS
1416 test -z "$as_dir" && as_dir=.
1417 for ac_exec_ext in '' $ac_executable_extensions; do
1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419 ac_cv_prog_CC="${ac_tool_prefix}cc"
1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421 break 2
1422 fi
1423done
1424done
1425
1426fi
1427fi
1428CC=$ac_cv_prog_CC
1429if test -n "$CC"; then
1430 echo "$as_me:$LINENO: result: $CC" >&5
1431echo "${ECHO_T}$CC" >&6
1432else
1433 echo "$as_me:$LINENO: result: no" >&5
1434echo "${ECHO_T}no" >&6
1435fi
1436
1437fi
1438if test -z "$ac_cv_prog_CC"; then
1439 ac_ct_CC=$CC
1440 # Extract the first word of "cc", so it can be a program name with args.
1441set dummy cc; ac_word=$2
1442echo "$as_me:$LINENO: checking for $ac_word" >&5
1443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446else
1447 if test -n "$ac_ct_CC"; then
1448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449else
1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451for as_dir in $PATH
1452do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_ac_ct_CC="cc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461done
1462done
1463
1464fi
1465fi
1466ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467if test -n "$ac_ct_CC"; then
1468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1469echo "${ECHO_T}$ac_ct_CC" >&6
1470else
1471 echo "$as_me:$LINENO: result: no" >&5
1472echo "${ECHO_T}no" >&6
1473fi
1474
1475 CC=$ac_ct_CC
1476else
1477 CC="$ac_cv_prog_CC"
1478fi
1479
1480fi
1481if test -z "$CC"; then
1482 # Extract the first word of "cc", so it can be a program name with args.
1483set dummy cc; ac_word=$2
1484echo "$as_me:$LINENO: checking for $ac_word" >&5
1485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486if test "${ac_cv_prog_CC+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488else
1489 if test -n "$CC"; then
1490 ac_cv_prog_CC="$CC" # Let the user override the test.
1491else
1492 ac_prog_rejected=no
1493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494for as_dir in $PATH
1495do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1501 ac_prog_rejected=yes
1502 continue
1503 fi
1504 ac_cv_prog_CC="cc"
1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 break 2
1507 fi
1508done
1509done
1510
1511if test $ac_prog_rejected = yes; then
1512 # We found a bogon in the path, so make sure we never use it.
1513 set dummy $ac_cv_prog_CC
1514 shift
1515 if test $@%:@ != 0; then
1516 # We chose a different compiler from the bogus one.
1517 # However, it has the same basename, so the bogon will be chosen
1518 # first if we set CC to just the basename; use the full file name.
1519 shift
1520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1521 fi
1522fi
1523fi
1524fi
1525CC=$ac_cv_prog_CC
1526if test -n "$CC"; then
1527 echo "$as_me:$LINENO: result: $CC" >&5
1528echo "${ECHO_T}$CC" >&6
1529else
1530 echo "$as_me:$LINENO: result: no" >&5
1531echo "${ECHO_T}no" >&6
1532fi
1533
1534fi
1535if test -z "$CC"; then
1536 if test -n "$ac_tool_prefix"; then
1537 for ac_prog in cl
1538 do
1539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1540set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1541echo "$as_me:$LINENO: checking for $ac_word" >&5
1542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543if test "${ac_cv_prog_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545else
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1548else
1549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1559 fi
1560done
1561done
1562
1563fi
1564fi
1565CC=$ac_cv_prog_CC
1566if test -n "$CC"; then
1567 echo "$as_me:$LINENO: result: $CC" >&5
1568echo "${ECHO_T}$CC" >&6
1569else
1570 echo "$as_me:$LINENO: result: no" >&5
1571echo "${ECHO_T}no" >&6
1572fi
1573
1574 test -n "$CC" && break
1575 done
1576fi
1577if test -z "$CC"; then
1578 ac_ct_CC=$CC
1579 for ac_prog in cl
1580do
1581 # Extract the first word of "$ac_prog", so it can be a program name with args.
1582set dummy $ac_prog; ac_word=$2
1583echo "$as_me:$LINENO: checking for $ac_word" >&5
1584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587else
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1590else
1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592for as_dir in $PATH
1593do
1594 IFS=$as_save_IFS
1595 test -z "$as_dir" && as_dir=.
1596 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC="$ac_prog"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 break 2
1601 fi
1602done
1603done
1604
1605fi
1606fi
1607ac_ct_CC=$ac_cv_prog_ac_ct_CC
1608if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610echo "${ECHO_T}$ac_ct_CC" >&6
1611else
1612 echo "$as_me:$LINENO: result: no" >&5
1613echo "${ECHO_T}no" >&6
1614fi
1615
1616 test -n "$ac_ct_CC" && break
1617done
1618
1619 CC=$ac_ct_CC
1620fi
1621
1622fi
1623
1624
1625test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1626See \`config.log' for more details." >&5
1627echo "$as_me: error: no acceptable C compiler found in \$PATH
1628See \`config.log' for more details." >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631# Provide some information about the compiler.
1632echo "$as_me:$LINENO:" \
1633 "checking for C compiler version" >&5
1634ac_compiler=`set X $ac_compile; echo $2`
1635{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1636 (eval $ac_compiler --version </dev/null >&5) 2>&5
1637 ac_status=$?
1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639 (exit $ac_status); }
1640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1641 (eval $ac_compiler -v </dev/null >&5) 2>&5
1642 ac_status=$?
1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644 (exit $ac_status); }
1645{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1646 (eval $ac_compiler -V </dev/null >&5) 2>&5
1647 ac_status=$?
1648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1649 (exit $ac_status); }
1650
1651cat >conftest.$ac_ext <<_ACEOF
1652#line $LINENO "configure"
1653/* confdefs.h. */
1654_ACEOF
1655cat confdefs.h >>conftest.$ac_ext
1656cat >>conftest.$ac_ext <<_ACEOF
1657/* end confdefs.h. */
1658
1659int
1660main ()
1661{
1662
1663 ;
1664 return 0;
1665}
1666_ACEOF
1667ac_clean_files_save=$ac_clean_files
1668ac_clean_files="$ac_clean_files a.out a.exe b.out"
1669# Try to create an executable without -o first, disregard a.out.
1670# It will help us diagnose broken compilers, and finding out an intuition
1671# of exeext.
1672echo "$as_me:$LINENO: checking for C compiler default output" >&5
1673echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1674ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1675if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1676 (eval $ac_link_default) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; then
1680 # Find the output, starting from the most likely. This scheme is
1681# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1682# resort.
1683
1684# Be careful to initialize this variable, since it used to be cached.
1685# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1686ac_cv_exeext=
1687# b.out is created by i960 compilers.
1688for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1689do
1690 test -f "$ac_file" || continue
1691 case $ac_file in
1692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1693 ;;
1694 conftest.$ac_ext )
1695 # This is the source file.
1696 ;;
1697 [ab].out )
1698 # We found the default executable, but exeext='' is most
1699 # certainly right.
1700 break;;
1701 *.* )
1702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 # FIXME: I believe we export ac_cv_exeext for Libtool,
1704 # but it would be cool to find out if it's true. Does anybody
1705 # maintain Libtool? --akim.
1706 export ac_cv_exeext
1707 break;;
1708 * )
1709 break;;
1710 esac
1711done
1712else
1713 echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1717See \`config.log' for more details." >&5
1718echo "$as_me: error: C compiler cannot create executables
1719See \`config.log' for more details." >&2;}
1720 { (exit 77); exit 77; }; }
1721fi
1722
1723ac_exeext=$ac_cv_exeext
1724echo "$as_me:$LINENO: result: $ac_file" >&5
1725echo "${ECHO_T}$ac_file" >&6
1726
1727# Check the compiler produces executables we can run. If not, either
1728# the compiler is broken, or we cross compile.
1729echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1730echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1731# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1732# If not cross compiling, check that we can run a simple program.
1733if test "$cross_compiling" != yes; then
1734 if { ac_try='./$ac_file'
1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1736 (eval $ac_try) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; }; then
1740 cross_compiling=no
1741 else
1742 if test "$cross_compiling" = maybe; then
1743 cross_compiling=yes
1744 else
1745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1746If you meant to cross compile, use \`--host'.
1747See \`config.log' for more details." >&5
1748echo "$as_me: error: cannot run C compiled programs.
1749If you meant to cross compile, use \`--host'.
1750See \`config.log' for more details." >&2;}
1751 { (exit 1); exit 1; }; }
1752 fi
1753 fi
1754fi
1755echo "$as_me:$LINENO: result: yes" >&5
1756echo "${ECHO_T}yes" >&6
1757
1758rm -f a.out a.exe conftest$ac_cv_exeext b.out
1759ac_clean_files=$ac_clean_files_save
1760# Check the compiler produces executables we can run. If not, either
1761# the compiler is broken, or we cross compile.
1762echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1763echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765echo "${ECHO_T}$cross_compiling" >&6
1766
1767echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770 (eval $ac_link) 2>&5
1771 ac_status=$?
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1775# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1776# work properly (i.e., refer to `conftest.exe'), while it won't with
1777# `rm'.
1778for ac_file in conftest.exe conftest conftest.*; do
1779 test -f "$ac_file" || continue
1780 case $ac_file in
1781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 export ac_cv_exeext
1784 break;;
1785 * ) break;;
1786 esac
1787done
1788else
1789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1790See \`config.log' for more details." >&5
1791echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1792See \`config.log' for more details." >&2;}
1793 { (exit 1); exit 1; }; }
1794fi
1795
1796rm -f conftest$ac_cv_exeext
1797echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1798echo "${ECHO_T}$ac_cv_exeext" >&6
1799
1800rm -f conftest.$ac_ext
1801EXEEXT=$ac_cv_exeext
1802ac_exeext=$EXEEXT
1803echo "$as_me:$LINENO: checking for suffix of object files" >&5
1804echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1805if test "${ac_cv_objext+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808 cat >conftest.$ac_ext <<_ACEOF
1809#line $LINENO "configure"
1810/* confdefs.h. */
1811_ACEOF
1812cat confdefs.h >>conftest.$ac_ext
1813cat >>conftest.$ac_ext <<_ACEOF
1814/* end confdefs.h. */
1815
1816int
1817main ()
1818{
1819
1820 ;
1821 return 0;
1822}
1823_ACEOF
1824rm -f conftest.o conftest.obj
1825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1827 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then
1830 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1834 break;;
1835 esac
1836done
1837else
1838 echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1842See \`config.log' for more details." >&5
1843echo "$as_me: error: cannot compute suffix of object files: cannot compile
1844See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1846fi
1847
1848rm -f conftest.$ac_cv_objext conftest.$ac_ext
1849fi
1850echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1851echo "${ECHO_T}$ac_cv_objext" >&6
1852OBJEXT=$ac_cv_objext
1853ac_objext=$OBJEXT
1854echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1855echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1856if test "${ac_cv_c_compiler_gnu+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 cat >conftest.$ac_ext <<_ACEOF
1860#line $LINENO "configure"
1861/* confdefs.h. */
1862_ACEOF
1863cat confdefs.h >>conftest.$ac_ext
1864cat >>conftest.$ac_ext <<_ACEOF
1865/* end confdefs.h. */
1866
1867int
1868main ()
1869{
1870#ifndef __GNUC__
1871 choke me
1872#endif
1873
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878rm -f conftest.$ac_objext
1879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); } &&
1884 { ac_try='test -s conftest.$ac_objext'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 (eval $ac_try) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1890 ac_compiler_gnu=yes
1891else
1892 echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895ac_compiler_gnu=no
1896fi
1897rm -f conftest.$ac_objext conftest.$ac_ext
1898ac_cv_c_compiler_gnu=$ac_compiler_gnu
1899
1900fi
1901echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1902echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1903GCC=`test $ac_compiler_gnu = yes && echo yes`
1904ac_test_CFLAGS=${CFLAGS+set}
1905ac_save_CFLAGS=$CFLAGS
1906CFLAGS="-g"
1907echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1908echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1909if test "${ac_cv_prog_cc_g+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912 cat >conftest.$ac_ext <<_ACEOF
1913#line $LINENO "configure"
1914/* confdefs.h. */
1915_ACEOF
1916cat confdefs.h >>conftest.$ac_ext
1917cat >>conftest.$ac_ext <<_ACEOF
1918/* end confdefs.h. */
1919
1920int
1921main ()
1922{
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928rm -f conftest.$ac_objext
1929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); } &&
1934 { ac_try='test -s conftest.$ac_objext'
1935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 (eval $ac_try) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; }; then
1940 ac_cv_prog_cc_g=yes
1941else
1942 echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
1944
1945ac_cv_prog_cc_g=no
1946fi
1947rm -f conftest.$ac_objext conftest.$ac_ext
1948fi
1949echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1950echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS=$ac_save_CFLAGS
1953elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1955 CFLAGS="-g -O2"
1956 else
1957 CFLAGS="-g"
1958 fi
1959else
1960 if test "$GCC" = yes; then
1961 CFLAGS="-O2"
1962 else
1963 CFLAGS=
1964 fi
1965fi
1966echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1967echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1968if test "${ac_cv_prog_cc_stdc+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 ac_cv_prog_cc_stdc=no
1972ac_save_CC=$CC
1973cat >conftest.$ac_ext <<_ACEOF
1974#line $LINENO "configure"
1975/* confdefs.h. */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h. */
1980#include <stdarg.h>
1981#include <stdio.h>
1982#include <sys/types.h>
1983#include <sys/stat.h>
1984/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1985struct buf { int x; };
1986FILE * (*rcsopen) (struct buf *, struct stat *, int);
1987static char *e (p, i)
1988 char **p;
1989 int i;
1990{
1991 return p[i];
1992}
1993static char *f (char * (*g) (char **, int), char **p, ...)
1994{
1995 char *s;
1996 va_list v;
1997 va_start (v,p);
1998 s = g (p, va_arg (v,int));
1999 va_end (v);
2000 return s;
2001}
2002int test (int i, double x);
2003struct s1 {int (*f) (int a);};
2004struct s2 {int (*f) (double a);};
2005int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2006int argc;
2007char **argv;
2008int
2009main ()
2010{
2011return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2012 ;
2013 return 0;
2014}
2015_ACEOF
2016# Don't try gcc -ansi; that turns off useful extensions and
2017# breaks some systems' header files.
2018# AIX -qlanglvl=ansi
2019# Ultrix and OSF/1 -std1
2020# HP-UX 10.20 and later -Ae
2021# HP-UX older versions -Aa -D_HPUX_SOURCE
2022# SVR4 -Xc -D__EXTENSIONS__
2023for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2024do
2025 CC="$ac_save_CC $ac_arg"
2026 rm -f conftest.$ac_objext
2027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2038 ac_cv_prog_cc_stdc=$ac_arg
2039break
2040else
2041 echo "$as_me: failed program was:" >&5
2042sed 's/^/| /' conftest.$ac_ext >&5
2043
2044fi
2045rm -f conftest.$ac_objext
2046done
2047rm -f conftest.$ac_ext conftest.$ac_objext
2048CC=$ac_save_CC
2049
2050fi
2051
2052case "x$ac_cv_prog_cc_stdc" in
2053 x|xno)
2054 echo "$as_me:$LINENO: result: none needed" >&5
2055echo "${ECHO_T}none needed" >&6 ;;
2056 *)
2057 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2058echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2059 CC="$CC $ac_cv_prog_cc_stdc" ;;
2060esac
2061
2062# Some people use a C++ compiler to compile C. Since we use `exit',
2063# in C++ we need to declare it. In case someone uses the same compiler
2064# for both compiling C and C++ we need to have the C++ compiler decide
2065# the declaration of exit, since it's the most demanding environment.
2066cat >conftest.$ac_ext <<_ACEOF
2067@%:@ifndef __cplusplus
2068 choke me
2069@%:@endif
2070_ACEOF
2071rm -f conftest.$ac_objext
2072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2073 (eval $ac_compile) 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -s conftest.$ac_objext'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 (eval $ac_try) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2083 for ac_declaration in \
2084 ''\
2085 '#include <stdlib.h>' \
2086 'extern "C" void std::exit (int) throw (); using std::exit;' \
2087 'extern "C" void std::exit (int); using std::exit;' \
2088 'extern "C" void exit (int) throw ();' \
2089 'extern "C" void exit (int);' \
2090 'void exit (int);'
2091do
2092 cat >conftest.$ac_ext <<_ACEOF
2093#line $LINENO "configure"
2094/* confdefs.h. */
2095_ACEOF
2096cat confdefs.h >>conftest.$ac_ext
2097cat >>conftest.$ac_ext <<_ACEOF
2098/* end confdefs.h. */
2099@%:@include <stdlib.h>
2100$ac_declaration
2101int
2102main ()
2103{
2104exit (42);
2105 ;
2106 return 0;
2107}
2108_ACEOF
2109rm -f conftest.$ac_objext
2110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 :
2122else
2123 echo "$as_me: failed program was:" >&5
2124sed 's/^/| /' conftest.$ac_ext >&5
2125
2126continue
2127fi
2128rm -f conftest.$ac_objext conftest.$ac_ext
2129 cat >conftest.$ac_ext <<_ACEOF
2130#line $LINENO "configure"
2131/* confdefs.h. */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h. */
2136$ac_declaration
2137int
2138main ()
2139{
2140exit (42);
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145rm -f conftest.$ac_objext
2146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -s conftest.$ac_objext'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2157 break
2158else
2159 echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162fi
2163rm -f conftest.$ac_objext conftest.$ac_ext
2164done
2165rm -f conftest*
2166if test -n "$ac_declaration"; then
2167 echo '#ifdef __cplusplus' >>confdefs.h
2168 echo $ac_declaration >>confdefs.h
2169 echo '#endif' >>confdefs.h
2170fi
2171
2172else
2173 echo "$as_me: failed program was:" >&5
2174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176fi
2177rm -f conftest.$ac_objext conftest.$ac_ext
2178ac_ext=c
2179ac_cpp='$CPP $CPPFLAGS'
2180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183
2184ac_aux_dir=
2185for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2186 if test -f $ac_dir/install-sh; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/install-sh -c"
2189 break
2190 elif test -f $ac_dir/install.sh; then
2191 ac_aux_dir=$ac_dir
2192 ac_install_sh="$ac_aux_dir/install.sh -c"
2193 break
2194 elif test -f $ac_dir/shtool; then
2195 ac_aux_dir=$ac_dir
2196 ac_install_sh="$ac_aux_dir/shtool install -c"
2197 break
2198 fi
2199done
2200if test -z "$ac_aux_dir"; then
2201 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2202echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2203 { (exit 1); exit 1; }; }
2204fi
2205ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2206ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2207ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2208
2209# Make sure we can run config.sub.
2210$ac_config_sub sun4 >/dev/null 2>&1 ||
2211 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2212echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2213 { (exit 1); exit 1; }; }
2214
2215echo "$as_me:$LINENO: checking build system type" >&5
2216echo $ECHO_N "checking build system type... $ECHO_C" >&6
2217if test "${ac_cv_build+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220 ac_cv_build_alias=$build_alias
2221test -z "$ac_cv_build_alias" &&
2222 ac_cv_build_alias=`$ac_config_guess`
2223test -z "$ac_cv_build_alias" &&
2224 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2225echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2226 { (exit 1); exit 1; }; }
2227ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2228 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2229echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2230 { (exit 1); exit 1; }; }
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2234echo "${ECHO_T}$ac_cv_build" >&6
2235build=$ac_cv_build
2236build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2237build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2238build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2239
2240
2241echo "$as_me:$LINENO: checking host system type" >&5
2242echo $ECHO_N "checking host system type... $ECHO_C" >&6
2243if test "${ac_cv_host+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246 ac_cv_host_alias=$host_alias
2247test -z "$ac_cv_host_alias" &&
2248 ac_cv_host_alias=$ac_cv_build_alias
2249ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2250 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2251echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2252 { (exit 1); exit 1; }; }
2253
2254fi
2255echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2256echo "${ECHO_T}$ac_cv_host" >&6
2257host=$ac_cv_host
2258host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2259host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2260host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2261
2262
2263
2264echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2265echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2266if test "${ac_cv_c_bigendian+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 # See if sys/param.h defines the BYTE_ORDER macro.
2270cat >conftest.$ac_ext <<_ACEOF
2271#line $LINENO "configure"
2272/* confdefs.h. */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h. */
2277#include <sys/types.h>
2278#include <sys/param.h>
2279
2280int
2281main ()
2282{
2283#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2284 bogus endian macros
2285#endif
2286
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291rm -f conftest.$ac_objext
2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 # It does; now see whether it defined to BIG_ENDIAN or not.
2304cat >conftest.$ac_ext <<_ACEOF
2305#line $LINENO "configure"
2306/* confdefs.h. */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h. */
2311#include <sys/types.h>
2312#include <sys/param.h>
2313
2314int
2315main ()
2316{
2317#if BYTE_ORDER != BIG_ENDIAN
2318 not big endian
2319#endif
2320
2321 ;
2322 return 0;
2323}
2324_ACEOF
2325rm -f conftest.$ac_objext
2326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 ac_cv_c_bigendian=yes
2338else
2339 echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342ac_cv_c_bigendian=no
2343fi
2344rm -f conftest.$ac_objext conftest.$ac_ext
2345else
2346 echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349# It does not; compile a test program.
2350if test "$cross_compiling" = yes; then
2351 # try to guess the endianness by grepping values into an object file
2352 ac_cv_c_bigendian=unknown
2353 cat >conftest.$ac_ext <<_ACEOF
2354#line $LINENO "configure"
2355/* confdefs.h. */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
2359/* end confdefs.h. */
2360short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2361short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2362void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2363short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2364short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2365void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2366int
2367main ()
2368{
2369 _ascii (); _ebcdic ();
2370 ;
2371 return 0;
2372}
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2387 ac_cv_c_bigendian=yes
2388fi
2389if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2390 if test "$ac_cv_c_bigendian" = unknown; then
2391 ac_cv_c_bigendian=no
2392 else
2393 # finding both strings is unlikely to happen, but who knows?
2394 ac_cv_c_bigendian=unknown
2395 fi
2396fi
2397else
2398 echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401fi
2402rm -f conftest.$ac_objext conftest.$ac_ext
2403else
2404 cat >conftest.$ac_ext <<_ACEOF
2405#line $LINENO "configure"
2406/* confdefs.h. */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h. */
2411int
2412main ()
2413{
2414 /* Are we little or big endian? From Harbison&Steele. */
2415 union
2416 {
2417 long l;
2418 char c[sizeof (long)];
2419 } u;
2420 u.l = 1;
2421 exit (u.c[sizeof (long) - 1] == 1);
2422}
2423_ACEOF
2424rm -f conftest$ac_exeext
2425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2426 (eval $ac_link) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_c_bigendian=no
2436else
2437 echo "$as_me: program exited with status $ac_status" >&5
2438echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441( exit $ac_status )
2442ac_cv_c_bigendian=yes
2443fi
2444rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2445fi
2446fi
2447rm -f conftest.$ac_objext conftest.$ac_ext
2448fi
2449echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2450echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2451case $ac_cv_c_bigendian in
2452 yes)
2453
2454cat >>confdefs.h <<\_ACEOF
2455@%:@define WORDS_BIGENDIAN 1
2456_ACEOF
2457 ;;
2458 no)
2459 ;;
2460 *)
2461 { { echo "$as_me:$LINENO: error: unknown endianness
2462presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2463echo "$as_me: error: unknown endianness
2464presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2465 { (exit 1); exit 1; }; } ;;
2466esac
2467
2468
2469# Checks for programs.
2470ac_ext=c
2471ac_cpp='$CPP $CPPFLAGS'
2472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2476echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2477# On Suns, sometimes $CPP names a directory.
2478if test -n "$CPP" && test -d "$CPP"; then
2479 CPP=
2480fi
2481if test -z "$CPP"; then
2482 if test "${ac_cv_prog_CPP+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485 # Double quotes because CPP needs to be expanded
2486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2487 do
2488 ac_preproc_ok=false
2489for ac_c_preproc_warn_flag in '' yes
2490do
2491 # Use a header file that comes with gcc, so configuring glibc
2492 # with a fresh cross-compiler works.
2493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2494 # <limits.h> exists even on freestanding compilers.
2495 # On the NeXT, cc -E runs the code through the compiler's parser,
2496 # not just through cpp. "Syntax error" is here to catch this case.
2497 cat >conftest.$ac_ext <<_ACEOF
2498#line $LINENO "configure"
2499/* confdefs.h. */
2500_ACEOF
2501cat confdefs.h >>conftest.$ac_ext
2502cat >>conftest.$ac_ext <<_ACEOF
2503/* end confdefs.h. */
2504@%:@ifdef __STDC__
2505@%:@ include <limits.h>
2506@%:@else
2507@%:@ include <assert.h>
2508@%:@endif
2509 Syntax error
2510_ACEOF
2511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2513 ac_status=$?
2514 grep -v '^ *+' conftest.er1 >conftest.err
2515 rm -f conftest.er1
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } >/dev/null; then
2519 if test -s conftest.err; then
2520 ac_cpp_err=$ac_c_preproc_warn_flag
2521 else
2522 ac_cpp_err=
2523 fi
2524else
2525 ac_cpp_err=yes
2526fi
2527if test -z "$ac_cpp_err"; then
2528 :
2529else
2530 echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 # Broken: fails on valid input.
2534continue
2535fi
2536rm -f conftest.err conftest.$ac_ext
2537
2538 # OK, works on sane cases. Now check whether non-existent headers
2539 # can be detected and how.
2540 cat >conftest.$ac_ext <<_ACEOF
2541#line $LINENO "configure"
2542/* confdefs.h. */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h. */
2547@%:@include <ac_nonexistent.h>
2548_ACEOF
2549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2551 ac_status=$?
2552 grep -v '^ *+' conftest.er1 >conftest.err
2553 rm -f conftest.er1
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } >/dev/null; then
2557 if test -s conftest.err; then
2558 ac_cpp_err=$ac_c_preproc_warn_flag
2559 else
2560 ac_cpp_err=
2561 fi
2562else
2563 ac_cpp_err=yes
2564fi
2565if test -z "$ac_cpp_err"; then
2566 # Broken: success on invalid input.
2567continue
2568else
2569 echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 # Passes both tests.
2573ac_preproc_ok=:
2574break
2575fi
2576rm -f conftest.err conftest.$ac_ext
2577
2578done
2579# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2580rm -f conftest.err conftest.$ac_ext
2581if $ac_preproc_ok; then
2582 break
2583fi
2584
2585 done
2586 ac_cv_prog_CPP=$CPP
2587
2588fi
2589 CPP=$ac_cv_prog_CPP
2590else
2591 ac_cv_prog_CPP=$CPP
2592fi
2593echo "$as_me:$LINENO: result: $CPP" >&5
2594echo "${ECHO_T}$CPP" >&6
2595ac_preproc_ok=false
2596for ac_c_preproc_warn_flag in '' yes
2597do
2598 # Use a header file that comes with gcc, so configuring glibc
2599 # with a fresh cross-compiler works.
2600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2601 # <limits.h> exists even on freestanding compilers.
2602 # On the NeXT, cc -E runs the code through the compiler's parser,
2603 # not just through cpp. "Syntax error" is here to catch this case.
2604 cat >conftest.$ac_ext <<_ACEOF
2605#line $LINENO "configure"
2606/* confdefs.h. */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h. */
2611@%:@ifdef __STDC__
2612@%:@ include <limits.h>
2613@%:@else
2614@%:@ include <assert.h>
2615@%:@endif
2616 Syntax error
2617_ACEOF
2618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } >/dev/null; then
2626 if test -s conftest.err; then
2627 ac_cpp_err=$ac_c_preproc_warn_flag
2628 else
2629 ac_cpp_err=
2630 fi
2631else
2632 ac_cpp_err=yes
2633fi
2634if test -z "$ac_cpp_err"; then
2635 :
2636else
2637 echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 # Broken: fails on valid input.
2641continue
2642fi
2643rm -f conftest.err conftest.$ac_ext
2644
2645 # OK, works on sane cases. Now check whether non-existent headers
2646 # can be detected and how.
2647 cat >conftest.$ac_ext <<_ACEOF
2648#line $LINENO "configure"
2649/* confdefs.h. */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h. */
2654@%:@include <ac_nonexistent.h>
2655_ACEOF
2656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } >/dev/null; then
2664 if test -s conftest.err; then
2665 ac_cpp_err=$ac_c_preproc_warn_flag
2666 else
2667 ac_cpp_err=
2668 fi
2669else
2670 ac_cpp_err=yes
2671fi
2672if test -z "$ac_cpp_err"; then
2673 # Broken: success on invalid input.
2674continue
2675else
2676 echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 # Passes both tests.
2680ac_preproc_ok=:
2681break
2682fi
2683rm -f conftest.err conftest.$ac_ext
2684
2685done
2686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2687rm -f conftest.err conftest.$ac_ext
2688if $ac_preproc_ok; then
2689 :
2690else
2691 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2692See \`config.log' for more details." >&5
2693echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2694See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2696fi
2697
2698ac_ext=c
2699ac_cpp='$CPP $CPPFLAGS'
2700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703
2704if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2707echo "$as_me:$LINENO: checking for $ac_word" >&5
2708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2709if test "${ac_cv_prog_RANLIB+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712 if test -n "$RANLIB"; then
2713 ac_cv_prog_RANLIB="$RANLIB" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726done
2727done
2728
2729fi
2730fi
2731RANLIB=$ac_cv_prog_RANLIB
2732if test -n "$RANLIB"; then
2733 echo "$as_me:$LINENO: result: $RANLIB" >&5
2734echo "${ECHO_T}$RANLIB" >&6
2735else
2736 echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738fi
2739
2740fi
2741if test -z "$ac_cv_prog_RANLIB"; then
2742 ac_ct_RANLIB=$RANLIB
2743 # Extract the first word of "ranlib", so it can be a program name with args.
2744set dummy ranlib; ac_word=$2
2745echo "$as_me:$LINENO: checking for $ac_word" >&5
2746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749else
2750 if test -n "$ac_ct_RANLIB"; then
2751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760 ac_cv_prog_ac_ct_RANLIB="ranlib"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764done
2765done
2766
2767 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2768fi
2769fi
2770ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2771if test -n "$ac_ct_RANLIB"; then
2772 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2773echo "${ECHO_T}$ac_ct_RANLIB" >&6
2774else
2775 echo "$as_me:$LINENO: result: no" >&5
2776echo "${ECHO_T}no" >&6
2777fi
2778
2779 RANLIB=$ac_ct_RANLIB
2780else
2781 RANLIB="$ac_cv_prog_RANLIB"
2782fi
2783
2784# Find a good install program. We prefer a C program (faster),
2785# so one script is as good as another. But avoid the broken or
2786# incompatible versions:
2787# SysV /etc/install, /usr/sbin/install
2788# SunOS /usr/etc/install
2789# IRIX /sbin/install
2790# AIX /bin/install
2791# AmigaOS /C/install, which installs bootblocks on floppy discs
2792# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2793# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2794# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2795# ./install, which can be erroneously created by make from ./install.sh.
2796echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2797echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2798if test -z "$INSTALL"; then
2799if test "${ac_cv_path_install+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 # Account for people who put trailing slashes in PATH elements.
2808case $as_dir/ in
2809 ./ | .// | /cC/* | \
2810 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2811 /usr/ucb/* ) ;;
2812 *)
2813 # OSF1 and SCO ODT 3.0 have their own names for install.
2814 # Don't use installbsd from OSF since it installs stuff as root
2815 # by default.
2816 for ac_prog in ginstall scoinst install; do
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2819 if test $ac_prog = install &&
2820 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821 # AIX install. It has an incompatible calling convention.
2822 :
2823 elif test $ac_prog = install &&
2824 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2825 # program-specific install script used by HP pwplus--don't use.
2826 :
2827 else
2828 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2829 break 3
2830 fi
2831 fi
2832 done
2833 done
2834 ;;
2835esac
2836done
2837
2838
2839fi
2840 if test "${ac_cv_path_install+set}" = set; then
2841 INSTALL=$ac_cv_path_install
2842 else
2843 # As a last resort, use the slow shell script. We don't cache a
2844 # path for INSTALL within a source directory, because that will
2845 # break other packages using the cache if that directory is
2846 # removed, or if the path is relative.
2847 INSTALL=$ac_install_sh
2848 fi
2849fi
2850echo "$as_me:$LINENO: result: $INSTALL" >&5
2851echo "${ECHO_T}$INSTALL" >&6
2852
2853# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854# It thinks the first close brace ends the variable substitution.
2855test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856
2857test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858
2859test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860
2861# Extract the first word of "ar", so it can be a program name with args.
2862set dummy ar; ac_word=$2
2863echo "$as_me:$LINENO: checking for $ac_word" >&5
2864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2865if test "${ac_cv_path_AR+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867else
2868 case $AR in
2869 [\\/]* | ?:[\\/]*)
2870 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2871 ;;
2872 *)
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885done
2886
2887 ;;
2888esac
2889fi
2890AR=$ac_cv_path_AR
2891
2892if test -n "$AR"; then
2893 echo "$as_me:$LINENO: result: $AR" >&5
2894echo "${ECHO_T}$AR" >&6
2895else
2896 echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6
2898fi
2899
2900for ac_prog in perl5 perl
2901do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903set dummy $ac_prog; ac_word=$2
2904echo "$as_me:$LINENO: checking for $ac_word" >&5
2905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2906if test "${ac_cv_path_PERL+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 case $PERL in
2910 [\\/]* | ?:[\\/]*)
2911 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2912 ;;
2913 *)
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925done
2926done
2927
2928 ;;
2929esac
2930fi
2931PERL=$ac_cv_path_PERL
2932
2933if test -n "$PERL"; then
2934 echo "$as_me:$LINENO: result: $PERL" >&5
2935echo "${ECHO_T}$PERL" >&6
2936else
2937 echo "$as_me:$LINENO: result: no" >&5
2938echo "${ECHO_T}no" >&6
2939fi
2940
2941 test -n "$PERL" && break
2942done
2943
2944# Extract the first word of "sed", so it can be a program name with args.
2945set dummy sed; ac_word=$2
2946echo "$as_me:$LINENO: checking for $ac_word" >&5
2947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948if test "${ac_cv_path_SED+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951 case $SED in
2952 [\\/]* | ?:[\\/]*)
2953 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2954 ;;
2955 *)
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967done
2968done
2969
2970 ;;
2971esac
2972fi
2973SED=$ac_cv_path_SED
2974
2975if test -n "$SED"; then
2976 echo "$as_me:$LINENO: result: $SED" >&5
2977echo "${ECHO_T}$SED" >&6
2978else
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981fi
2982
2983
2984# Extract the first word of "ent", so it can be a program name with args.
2985set dummy ent; ac_word=$2
2986echo "$as_me:$LINENO: checking for $ac_word" >&5
2987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988if test "${ac_cv_path_ENT+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 case $ENT in
2992 [\\/]* | ?:[\\/]*)
2993 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2994 ;;
2995 *)
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
3004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007done
3008done
3009
3010 ;;
3011esac
3012fi
3013ENT=$ac_cv_path_ENT
3014
3015if test -n "$ENT"; then
3016 echo "$as_me:$LINENO: result: $ENT" >&5
3017echo "${ECHO_T}$ENT" >&6
3018else
3019 echo "$as_me:$LINENO: result: no" >&5
3020echo "${ECHO_T}no" >&6
3021fi
3022
3023
3024# Extract the first word of "bash", so it can be a program name with args.
3025set dummy bash; ac_word=$2
3026echo "$as_me:$LINENO: checking for $ac_word" >&5
3027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031 case $TEST_MINUS_S_SH in
3032 [\\/]* | ?:[\\/]*)
3033 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3034 ;;
3035 *)
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047done
3048done
3049
3050 ;;
3051esac
3052fi
3053TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3054
3055if test -n "$TEST_MINUS_S_SH"; then
3056 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3057echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3058else
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061fi
3062
3063# Extract the first word of "ksh", so it can be a program name with args.
3064set dummy ksh; ac_word=$2
3065echo "$as_me:$LINENO: checking for $ac_word" >&5
3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070 case $TEST_MINUS_S_SH in
3071 [\\/]* | ?:[\\/]*)
3072 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3073 ;;
3074 *)
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086done
3087done
3088
3089 ;;
3090esac
3091fi
3092TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3093
3094if test -n "$TEST_MINUS_S_SH"; then
3095 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3096echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3097else
3098 echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
3100fi
3101
3102# Extract the first word of "sh", so it can be a program name with args.
3103set dummy sh; ac_word=$2
3104echo "$as_me:$LINENO: checking for $ac_word" >&5
3105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108else
3109 case $TEST_MINUS_S_SH in
3110 [\\/]* | ?:[\\/]*)
3111 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3112 ;;
3113 *)
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126done
3127
3128 ;;
3129esac
3130fi
3131TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3132
3133if test -n "$TEST_MINUS_S_SH"; then
3134 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3135echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3136else
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
3139fi
3140
3141# Extract the first word of "sh", so it can be a program name with args.
3142set dummy sh; ac_word=$2
3143echo "$as_me:$LINENO: checking for $ac_word" >&5
3144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145if test "${ac_cv_path_SH+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148 case $SH in
3149 [\\/]* | ?:[\\/]*)
3150 ac_cv_path_SH="$SH" # Let the user override the test with a path.
3151 ;;
3152 *)
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
3161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164done
3165done
3166
3167 ;;
3168esac
3169fi
3170SH=$ac_cv_path_SH
3171
3172if test -n "$SH"; then
3173 echo "$as_me:$LINENO: result: $SH" >&5
3174echo "${ECHO_T}$SH" >&6
3175else
3176 echo "$as_me:$LINENO: result: no" >&5
3177echo "${ECHO_T}no" >&6
3178fi
3179
3180
3181# System features
3182# Check whether --enable-largefile or --disable-largefile was given.
3183if test "${enable_largefile+set}" = set; then
3184 enableval="$enable_largefile"
3185
3186fi;
3187if test "$enable_largefile" != no; then
3188
3189 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3190echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3191if test "${ac_cv_sys_largefile_CC+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194 ac_cv_sys_largefile_CC=no
3195 if test "$GCC" != yes; then
3196 ac_save_CC=$CC
3197 while :; do
3198 # IRIX 6.2 and later do not support large files by default,
3199 # so use the C compiler's -n32 option if that helps.
3200 cat >conftest.$ac_ext <<_ACEOF
3201#line $LINENO "configure"
3202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207@%:@include <sys/types.h>
3208 /* Check that off_t can represent 2**63 - 1 correctly.
3209 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3210 since some C++ compilers masquerading as C compilers
3211 incorrectly reject 9223372036854775807. */
3212@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3214 && LARGE_OFF_T % 2147483647 == 1)
3215 ? 1 : -1];
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224 rm -f conftest.$ac_objext
3225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 break
3237else
3238 echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241fi
3242rm -f conftest.$ac_objext
3243 CC="$CC -n32"
3244 rm -f conftest.$ac_objext
3245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_sys_largefile_CC=' -n32'; break
3257else
3258 echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261fi
3262rm -f conftest.$ac_objext
3263 break
3264 done
3265 CC=$ac_save_CC
3266 rm -f conftest.$ac_ext
3267 fi
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3270echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3271 if test "$ac_cv_sys_largefile_CC" != no; then
3272 CC=$CC$ac_cv_sys_largefile_CC
3273 fi
3274
3275 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3276echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3277if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280 while :; do
3281 ac_cv_sys_file_offset_bits=no
3282 cat >conftest.$ac_ext <<_ACEOF
3283#line $LINENO "configure"
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
3289@%:@include <sys/types.h>
3290 /* Check that off_t can represent 2**63 - 1 correctly.
3291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3292 since some C++ compilers masquerading as C compilers
3293 incorrectly reject 9223372036854775807. */
3294@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3296 && LARGE_OFF_T % 2147483647 == 1)
3297 ? 1 : -1];
3298int
3299main ()
3300{
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306rm -f conftest.$ac_objext
3307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -s conftest.$ac_objext'
3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 (eval $ac_try) 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 break
3319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323fi
3324rm -f conftest.$ac_objext conftest.$ac_ext
3325 cat >conftest.$ac_ext <<_ACEOF
3326#line $LINENO "configure"
3327/* confdefs.h. */
3328_ACEOF
3329cat confdefs.h >>conftest.$ac_ext
3330cat >>conftest.$ac_ext <<_ACEOF
3331/* end confdefs.h. */
3332@%:@define _FILE_OFFSET_BITS 64
3333@%:@include <sys/types.h>
3334 /* Check that off_t can represent 2**63 - 1 correctly.
3335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3336 since some C++ compilers masquerading as C compilers
3337 incorrectly reject 9223372036854775807. */
3338@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3340 && LARGE_OFF_T % 2147483647 == 1)
3341 ? 1 : -1];
3342int
3343main ()
3344{
3345
3346 ;
3347 return 0;
3348}
3349_ACEOF
3350rm -f conftest.$ac_objext
3351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352 (eval $ac_compile) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_sys_file_offset_bits=64; break
3363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
3367fi
3368rm -f conftest.$ac_objext conftest.$ac_ext
3369 break
3370done
3371fi
3372echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3373echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3374if test "$ac_cv_sys_file_offset_bits" != no; then
3375
3376cat >>confdefs.h <<_ACEOF
3377@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3378_ACEOF
3379
3380fi
3381rm -f conftest*
3382 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3383echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3384if test "${ac_cv_sys_large_files+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387 while :; do
3388 ac_cv_sys_large_files=no
3389 cat >conftest.$ac_ext <<_ACEOF
3390#line $LINENO "configure"
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h. */
3396@%:@include <sys/types.h>
3397 /* Check that off_t can represent 2**63 - 1 correctly.
3398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3399 since some C++ compilers masquerading as C compilers
3400 incorrectly reject 9223372036854775807. */
3401@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3403 && LARGE_OFF_T % 2147483647 == 1)
3404 ? 1 : -1];
3405int
3406main ()
3407{
3408
3409 ;
3410 return 0;
3411}
3412_ACEOF
3413rm -f conftest.$ac_objext
3414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 break
3426else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430fi
3431rm -f conftest.$ac_objext conftest.$ac_ext
3432 cat >conftest.$ac_ext <<_ACEOF
3433#line $LINENO "configure"
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439@%:@define _LARGE_FILES 1
3440@%:@include <sys/types.h>
3441 /* Check that off_t can represent 2**63 - 1 correctly.
3442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3443 since some C++ compilers masquerading as C compilers
3444 incorrectly reject 9223372036854775807. */
3445@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3447 && LARGE_OFF_T % 2147483647 == 1)
3448 ? 1 : -1];
3449int
3450main ()
3451{
3452
3453 ;
3454 return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 ac_cv_sys_large_files=1; break
3470else
3471 echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474fi
3475rm -f conftest.$ac_objext conftest.$ac_ext
3476 break
3477done
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3480echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3481if test "$ac_cv_sys_large_files" != no; then
3482
3483cat >>confdefs.h <<_ACEOF
3484@%:@define _LARGE_FILES $ac_cv_sys_large_files
3485_ACEOF
3486
3487fi
3488rm -f conftest*
3489fi
3490
3491
3492if test -z "$AR" ; then
3493 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3494echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3495 { (exit 1); exit 1; }; }
3496fi
3497
3498# Use LOGIN_PROGRAM from environment if possible
3499if test ! -z "$LOGIN_PROGRAM" ; then
3500 cat >>confdefs.h <<_ACEOF
3501@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3502_ACEOF
3503
3504else
3505 # Search for login
3506 # Extract the first word of "login", so it can be a program name with args.
3507set dummy login; ac_word=$2
3508echo "$as_me:$LINENO: checking for $ac_word" >&5
3509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512else
3513 case $LOGIN_PROGRAM_FALLBACK in
3514 [\\/]* | ?:[\\/]*)
3515 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3516 ;;
3517 *)
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529done
3530done
3531
3532 ;;
3533esac
3534fi
3535LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3536
3537if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3538 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3539echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3540else
3541 echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
3543fi
3544
3545 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3546 cat >>confdefs.h <<_ACEOF
3547@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3548_ACEOF
3549
3550 fi
3551fi
3552
3553if test -z "$LD" ; then
3554 LD=$CC
3555fi
3556
3557
3558echo "$as_me:$LINENO: checking for inline" >&5
3559echo $ECHO_N "checking for inline... $ECHO_C" >&6
3560if test "${ac_cv_c_inline+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562else
3563 ac_cv_c_inline=no
3564for ac_kw in inline __inline__ __inline; do
3565 cat >conftest.$ac_ext <<_ACEOF
3566#line $LINENO "configure"
3567/* confdefs.h. */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h. */
3572#ifndef __cplusplus
3573typedef int foo_t;
3574static $ac_kw foo_t static_foo () {return 0; }
3575$ac_kw foo_t foo () {return 0; }
3576#endif
3577
3578_ACEOF
3579rm -f conftest.$ac_objext
3580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3581 (eval $ac_compile) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 ac_cv_c_inline=$ac_kw; break
3592else
3593 echo "$as_me: failed program was:" >&5
3594sed 's/^/| /' conftest.$ac_ext >&5
3595
3596fi
3597rm -f conftest.$ac_objext conftest.$ac_ext
3598done
3599
3600fi
3601echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3602echo "${ECHO_T}$ac_cv_c_inline" >&6
3603case $ac_cv_c_inline in
3604 inline | yes) ;;
3605 no)
3606cat >>confdefs.h <<\_ACEOF
3607@%:@define inline
3608_ACEOF
3609 ;;
3610 *) cat >>confdefs.h <<_ACEOF
3611@%:@define inline $ac_cv_c_inline
3612_ACEOF
3613 ;;
3614esac
3615
3616if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3617 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3618fi
3619
3620# Check for some target-specific stuff
3621case "$host" in
3622*-*-aix*)
3623 AFS_LIBS="-lld"
3624 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3625 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3626 echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
3627echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6
3628 if (test -z "$blibpath"); then
3629 blibpath="/usr/lib:/lib:/usr/local/lib"
3630 fi
3631 saved_LDFLAGS="$LDFLAGS"
3632 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
3633 if (test -z "$blibflags"); then
3634 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
3635 cat >conftest.$ac_ext <<_ACEOF
3636#line $LINENO "configure"
3637/* confdefs.h. */
3638_ACEOF
3639cat confdefs.h >>conftest.$ac_ext
3640cat >>conftest.$ac_ext <<_ACEOF
3641/* end confdefs.h. */
3642
3643int
3644main ()
3645{
3646
3647 ;
3648 return 0;
3649}
3650_ACEOF
3651rm -f conftest.$ac_objext conftest$ac_exeext
3652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -s conftest$ac_exeext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 blibflags=$tryflags
3664else
3665 echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668fi
3669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3670 fi
3671 done
3672 if (test -z "$blibflags"); then
3673 echo "$as_me:$LINENO: result: not found" >&5
3674echo "${ECHO_T}not found" >&6
3675 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
3676echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
3677 { (exit 1); exit 1; }; }
3678 else
3679 echo "$as_me:$LINENO: result: $blibflags" >&5
3680echo "${ECHO_T}$blibflags" >&6
3681 fi
3682 LDFLAGS="$saved_LDFLAGS"
3683 echo "$as_me:$LINENO: checking for authenticate" >&5
3684echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3685if test "${ac_cv_func_authenticate+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688 cat >conftest.$ac_ext <<_ACEOF
3689#line $LINENO "configure"
3690/* confdefs.h. */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h. */
3695/* System header to define __stub macros and hopefully few prototypes,
3696 which can conflict with char authenticate (); below.
3697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3698 <limits.h> exists even on freestanding compilers. */
3699#ifdef __STDC__
3700# include <limits.h>
3701#else
3702# include <assert.h>
3703#endif
3704/* Override any gcc2 internal prototype to avoid an error. */
3705#ifdef __cplusplus
3706extern "C"
3707{
3708#endif
3709/* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3711char authenticate ();
3712/* The GNU C library defines this for functions which it implements
3713 to always fail with ENOSYS. Some functions are actually named
3714 something starting with __ and the normal name is an alias. */
3715#if defined (__stub_authenticate) || defined (__stub___authenticate)
3716choke me
3717#else
3718char (*f) () = authenticate;
3719#endif
3720#ifdef __cplusplus
3721}
3722#endif
3723
3724int
3725main ()
3726{
3727return f != authenticate;
3728 ;
3729 return 0;
3730}
3731_ACEOF
3732rm -f conftest.$ac_objext conftest$ac_exeext
3733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3734 (eval $ac_link) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -s conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_cv_func_authenticate=yes
3745else
3746 echo "$as_me: failed program was:" >&5
3747sed 's/^/| /' conftest.$ac_ext >&5
3748
3749ac_cv_func_authenticate=no
3750fi
3751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3752fi
3753echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3754echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3755if test $ac_cv_func_authenticate = yes; then
3756 cat >>confdefs.h <<\_ACEOF
3757@%:@define WITH_AIXAUTHENTICATE 1
3758_ACEOF
3759
3760else
3761 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
3762echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3763if test "${ac_cv_lib_s_authenticate+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766 ac_check_lib_save_LIBS=$LIBS
3767LIBS="-ls $LIBS"
3768cat >conftest.$ac_ext <<_ACEOF
3769#line $LINENO "configure"
3770/* confdefs.h. */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h. */
3775
3776/* Override any gcc2 internal prototype to avoid an error. */
3777#ifdef __cplusplus
3778extern "C"
3779#endif
3780/* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3782char authenticate ();
3783int
3784main ()
3785{
3786authenticate ();
3787 ;
3788 return 0;
3789}
3790_ACEOF
3791rm -f conftest.$ac_objext conftest$ac_exeext
3792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793 (eval $ac_link) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -s conftest$ac_exeext'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 (eval $ac_try) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_cv_lib_s_authenticate=yes
3804else
3805 echo "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
3807
3808ac_cv_lib_s_authenticate=no
3809fi
3810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3811LIBS=$ac_check_lib_save_LIBS
3812fi
3813echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
3814echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3815if test $ac_cv_lib_s_authenticate = yes; then
3816 cat >>confdefs.h <<\_ACEOF
3817@%:@define WITH_AIXAUTHENTICATE 1
3818_ACEOF
3819
3820 LIBS="$LIBS -ls"
3821
3822fi
3823
3824
3825fi
3826
3827 cat >>confdefs.h <<\_ACEOF
3828@%:@define BROKEN_GETADDRINFO 1
3829_ACEOF
3830
3831 cat >>confdefs.h <<\_ACEOF
3832@%:@define BROKEN_REALPATH 1
3833_ACEOF
3834
3835 cat >>confdefs.h <<\_ACEOF
3836@%:@define DISABLE_LASTLOG 1
3837_ACEOF
3838
3839 cat >>confdefs.h <<\_ACEOF
3840@%:@define LOGIN_NEEDS_UTMPX 1
3841_ACEOF
3842
3843 cat >>confdefs.h <<\_ACEOF
3844@%:@define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV
3845_ACEOF
3846
3847 cat >>confdefs.h <<\_ACEOF
3848@%:@define SETPROCTITLE_PS_PADDING '\0'
3849_ACEOF
3850
3851 ;;
3852*-*-cygwin*)
3853 check_for_libcrypt_later=1
3854 LIBS="$LIBS /usr/lib/textmode.o"
3855 cat >>confdefs.h <<\_ACEOF
3856@%:@define HAVE_CYGWIN 1
3857_ACEOF
3858
3859 cat >>confdefs.h <<\_ACEOF
3860@%:@define USE_PIPES 1
3861_ACEOF
3862
3863 cat >>confdefs.h <<\_ACEOF
3864@%:@define DISABLE_SHADOW 1
3865_ACEOF
3866
3867 cat >>confdefs.h <<\_ACEOF
3868@%:@define IPV4_DEFAULT 1
3869_ACEOF
3870
3871 cat >>confdefs.h <<\_ACEOF
3872@%:@define IP_TOS_IS_BROKEN 1
3873_ACEOF
3874
3875 cat >>confdefs.h <<\_ACEOF
3876@%:@define NO_X11_UNIX_SOCKETS 1
3877_ACEOF
3878
3879 cat >>confdefs.h <<\_ACEOF
3880@%:@define NO_IPPORT_RESERVED_CONCEPT 1
3881_ACEOF
3882
3883 cat >>confdefs.h <<\_ACEOF
3884@%:@define DISABLE_FD_PASSING 1
3885_ACEOF
3886
3887 cat >>confdefs.h <<\_ACEOF
3888@%:@define SETGROUPS_NOOP 1
3889_ACEOF
3890
3891 ;;
3892*-*-dgux*)
3893 cat >>confdefs.h <<\_ACEOF
3894@%:@define IP_TOS_IS_BROKEN 1
3895_ACEOF
3896
3897 ;;
3898*-*-darwin*)
3899 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
3900echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
3901 if test "$cross_compiling" = yes; then
3902 echo "$as_me:$LINENO: result: assume it is working" >&5
3903echo "${ECHO_T}assume it is working" >&6
3904else
3905 cat >conftest.$ac_ext <<_ACEOF
3906#line $LINENO "configure"
3907/* confdefs.h. */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h. */
3912#include <mach-o/dyld.h>
3913main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3914 exit(0);
3915 else
3916 exit(1);
3917}
3918_ACEOF
3919rm -f conftest$ac_exeext
3920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3921 (eval $ac_link) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 echo "$as_me:$LINENO: result: working" >&5
3931echo "${ECHO_T}working" >&6
3932else
3933 echo "$as_me: program exited with status $ac_status" >&5
3934echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937( exit $ac_status )
3938echo "$as_me:$LINENO: result: buggy" >&5
3939echo "${ECHO_T}buggy" >&6
3940 cat >>confdefs.h <<\_ACEOF
3941@%:@define BROKEN_GETADDRINFO 1
3942_ACEOF
3943
3944fi
3945rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3946fi
3947 ;;
3948*-*-hpux10.26)
3949 if test -z "$GCC"; then
3950 CFLAGS="$CFLAGS -Ae"
3951 fi
3952 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3953 IPADDR_IN_DISPLAY=yes
3954 cat >>confdefs.h <<\_ACEOF
3955@%:@define HAVE_SECUREWARE 1
3956_ACEOF
3957
3958 cat >>confdefs.h <<\_ACEOF
3959@%:@define USE_PIPES 1
3960_ACEOF
3961
3962 cat >>confdefs.h <<\_ACEOF
3963@%:@define LOGIN_NO_ENDOPT 1
3964_ACEOF
3965
3966 cat >>confdefs.h <<\_ACEOF
3967@%:@define LOGIN_NEEDS_UTMPX 1
3968_ACEOF
3969
3970 cat >>confdefs.h <<\_ACEOF
3971@%:@define DISABLE_SHADOW 1
3972_ACEOF
3973
3974 cat >>confdefs.h <<\_ACEOF
3975@%:@define DISABLE_UTMP 1
3976_ACEOF
3977
3978 cat >>confdefs.h <<\_ACEOF
3979@%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT
3980_ACEOF
3981
3982 LIBS="$LIBS -lsec -lsecpw"
3983
3984echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3985echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3986if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989 ac_check_lib_save_LIBS=$LIBS
3990LIBS="-lxnet $LIBS"
3991cat >conftest.$ac_ext <<_ACEOF
3992#line $LINENO "configure"
3993/* confdefs.h. */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h. */
3998
3999/* Override any gcc2 internal prototype to avoid an error. */
4000#ifdef __cplusplus
4001extern "C"
4002#endif
4003/* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005char t_error ();
4006int
4007main ()
4008{
4009t_error ();
4010 ;
4011 return 0;
4012}
4013_ACEOF
4014rm -f conftest.$ac_objext conftest$ac_exeext
4015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4016 (eval $ac_link) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try='test -s conftest$ac_exeext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_lib_xnet_t_error=yes
4027else
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031ac_cv_lib_xnet_t_error=no
4032fi
4033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4034LIBS=$ac_check_lib_save_LIBS
4035fi
4036echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4037echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4038if test $ac_cv_lib_xnet_t_error = yes; then
4039 cat >>confdefs.h <<_ACEOF
4040@%:@define HAVE_LIBXNET 1
4041_ACEOF
4042
4043 LIBS="-lxnet $LIBS"
4044
4045else
4046 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4047echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4048 { (exit 1); exit 1; }; }
4049fi
4050
4051 disable_ptmx_check=yes
4052 ;;
4053*-*-hpux10*)
4054 if test -z "$GCC"; then
4055 CFLAGS="$CFLAGS -Ae"
4056 fi
4057 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
4058 IPADDR_IN_DISPLAY=yes
4059 cat >>confdefs.h <<\_ACEOF
4060@%:@define USE_PIPES 1
4061_ACEOF
4062
4063 cat >>confdefs.h <<\_ACEOF
4064@%:@define LOGIN_NO_ENDOPT 1
4065_ACEOF
4066
4067 cat >>confdefs.h <<\_ACEOF
4068@%:@define LOGIN_NEEDS_UTMPX 1
4069_ACEOF
4070
4071 cat >>confdefs.h <<\_ACEOF
4072@%:@define DISABLE_SHADOW 1
4073_ACEOF
4074
4075 cat >>confdefs.h <<\_ACEOF
4076@%:@define DISABLE_UTMP 1
4077_ACEOF
4078
4079 cat >>confdefs.h <<\_ACEOF
4080@%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT
4081_ACEOF
4082
4083 LIBS="$LIBS -lsec"
4084
4085echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
4086echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
4087if test "${ac_cv_lib_xnet_t_error+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090 ac_check_lib_save_LIBS=$LIBS
4091LIBS="-lxnet $LIBS"
4092cat >conftest.$ac_ext <<_ACEOF
4093#line $LINENO "configure"
4094/* confdefs.h. */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h. */
4099
4100/* Override any gcc2 internal prototype to avoid an error. */
4101#ifdef __cplusplus
4102extern "C"
4103#endif
4104/* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4106char t_error ();
4107int
4108main ()
4109{
4110t_error ();
4111 ;
4112 return 0;
4113}
4114_ACEOF
4115rm -f conftest.$ac_objext conftest$ac_exeext
4116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4117 (eval $ac_link) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest$ac_exeext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 ac_cv_lib_xnet_t_error=yes
4128else
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132ac_cv_lib_xnet_t_error=no
4133fi
4134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4135LIBS=$ac_check_lib_save_LIBS
4136fi
4137echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4138echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4139if test $ac_cv_lib_xnet_t_error = yes; then
4140 cat >>confdefs.h <<_ACEOF
4141@%:@define HAVE_LIBXNET 1
4142_ACEOF
4143
4144 LIBS="-lxnet $LIBS"
4145
4146else
4147 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4148echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4149 { (exit 1); exit 1; }; }
4150fi
4151
4152 ;;
4153*-*-hpux11*)
4154 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
4155 IPADDR_IN_DISPLAY=yes
4156 cat >>confdefs.h <<\_ACEOF
4157@%:@define PAM_SUN_CODEBASE 1
4158_ACEOF
4159
4160 cat >>confdefs.h <<\_ACEOF
4161@%:@define USE_PIPES 1
4162_ACEOF
4163
4164 cat >>confdefs.h <<\_ACEOF
4165@%:@define LOGIN_NO_ENDOPT 1
4166_ACEOF
4167
4168 cat >>confdefs.h <<\_ACEOF
4169@%:@define LOGIN_NEEDS_UTMPX 1
4170_ACEOF
4171
4172 cat >>confdefs.h <<\_ACEOF
4173@%:@define DISABLE_SHADOW 1
4174_ACEOF
4175
4176 cat >>confdefs.h <<\_ACEOF
4177@%:@define DISABLE_UTMP 1
4178_ACEOF
4179
4180 cat >>confdefs.h <<\_ACEOF
4181@%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT
4182_ACEOF
4183
4184 LIBS="$LIBS -lsec"
4185
4186echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
4187echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
4188if test "${ac_cv_lib_xnet_t_error+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 ac_check_lib_save_LIBS=$LIBS
4192LIBS="-lxnet $LIBS"
4193cat >conftest.$ac_ext <<_ACEOF
4194#line $LINENO "configure"
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
4199/* end confdefs.h. */
4200
4201/* Override any gcc2 internal prototype to avoid an error. */
4202#ifdef __cplusplus
4203extern "C"
4204#endif
4205/* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4207char t_error ();
4208int
4209main ()
4210{
4211t_error ();
4212 ;
4213 return 0;
4214}
4215_ACEOF
4216rm -f conftest.$ac_objext conftest$ac_exeext
4217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4218 (eval $ac_link) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -s conftest$ac_exeext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_lib_xnet_t_error=yes
4229else
4230 echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233ac_cv_lib_xnet_t_error=no
4234fi
4235rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4236LIBS=$ac_check_lib_save_LIBS
4237fi
4238echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4239echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4240if test $ac_cv_lib_xnet_t_error = yes; then
4241 cat >>confdefs.h <<_ACEOF
4242@%:@define HAVE_LIBXNET 1
4243_ACEOF
4244
4245 LIBS="-lxnet $LIBS"
4246
4247else
4248 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4249echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4250 { (exit 1); exit 1; }; }
4251fi
4252
4253 ;;
4254*-*-irix5*)
4255 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4256 LDFLAGS="$LDFLAGS"
4257 PATH="$PATH:/usr/etc"
4258 cat >>confdefs.h <<\_ACEOF
4259@%:@define BROKEN_INET_NTOA 1
4260_ACEOF
4261
4262 cat >>confdefs.h <<\_ACEOF
4263@%:@define WITH_ABBREV_NO_TTY 1
4264_ACEOF
4265
4266 ;;
4267*-*-irix6*)
4268 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4269 LDFLAGS="$LDFLAGS"
4270 PATH="$PATH:/usr/etc"
4271 cat >>confdefs.h <<\_ACEOF
4272@%:@define WITH_IRIX_ARRAY 1
4273_ACEOF
4274
4275 cat >>confdefs.h <<\_ACEOF
4276@%:@define WITH_IRIX_PROJECT 1
4277_ACEOF
4278
4279 cat >>confdefs.h <<\_ACEOF
4280@%:@define WITH_IRIX_AUDIT 1
4281_ACEOF
4282
4283 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
4284echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
4285if test "${ac_cv_func_jlimit_startjob+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288 cat >conftest.$ac_ext <<_ACEOF
4289#line $LINENO "configure"
4290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
4295/* System header to define __stub macros and hopefully few prototypes,
4296 which can conflict with char jlimit_startjob (); below.
4297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4298 <limits.h> exists even on freestanding compilers. */
4299#ifdef __STDC__
4300# include <limits.h>
4301#else
4302# include <assert.h>
4303#endif
4304/* Override any gcc2 internal prototype to avoid an error. */
4305#ifdef __cplusplus
4306extern "C"
4307{
4308#endif
4309/* We use char because int might match the return type of a gcc2
4310 builtin and then its argument prototype would still apply. */
4311char jlimit_startjob ();
4312/* The GNU C library defines this for functions which it implements
4313 to always fail with ENOSYS. Some functions are actually named
4314 something starting with __ and the normal name is an alias. */
4315#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
4316choke me
4317#else
4318char (*f) () = jlimit_startjob;
4319#endif
4320#ifdef __cplusplus
4321}
4322#endif
4323
4324int
4325main ()
4326{
4327return f != jlimit_startjob;
4328 ;
4329 return 0;
4330}
4331_ACEOF
4332rm -f conftest.$ac_objext conftest$ac_exeext
4333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4334 (eval $ac_link) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -s conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_func_jlimit_startjob=yes
4345else
4346 echo "$as_me: failed program was:" >&5
4347sed 's/^/| /' conftest.$ac_ext >&5
4348
4349ac_cv_func_jlimit_startjob=no
4350fi
4351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4352fi
4353echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
4354echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
4355if test $ac_cv_func_jlimit_startjob = yes; then
4356 cat >>confdefs.h <<\_ACEOF
4357@%:@define WITH_IRIX_JOBS 1
4358_ACEOF
4359
4360fi
4361
4362 cat >>confdefs.h <<\_ACEOF
4363@%:@define BROKEN_INET_NTOA 1
4364_ACEOF
4365
4366 cat >>confdefs.h <<\_ACEOF
4367@%:@define WITH_ABBREV_NO_TTY 1
4368_ACEOF
4369
4370 ;;
4371*-*-linux*)
4372 no_dev_ptmx=1
4373 check_for_libcrypt_later=1
4374 cat >>confdefs.h <<\_ACEOF
4375@%:@define DONT_TRY_OTHER_AF 1
4376_ACEOF
4377
4378 cat >>confdefs.h <<\_ACEOF
4379@%:@define PAM_TTY_KLUDGE 1
4380_ACEOF
4381
4382 cat >>confdefs.h <<\_ACEOF
4383@%:@define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV
4384_ACEOF
4385
4386 cat >>confdefs.h <<\_ACEOF
4387@%:@define SETPROCTITLE_PS_PADDING '\0'
4388_ACEOF
4389
4390 inet6_default_4in6=yes
4391 ;;
4392mips-sony-bsd|mips-sony-newsos4)
4393 cat >>confdefs.h <<\_ACEOF
4394@%:@define HAVE_NEWS4 1
4395_ACEOF
4396
4397 SONY=1
4398 ;;
4399*-*-netbsd*)
4400 check_for_libcrypt_before=1
4401 need_dash_r=1
4402 ;;
4403*-*-freebsd*)
4404 check_for_libcrypt_later=1
4405 ;;
4406*-next-*)
4407 conf_lastlog_location="/usr/adm/lastlog"
4408 conf_utmp_location=/etc/utmp
4409 conf_wtmp_location=/usr/adm/wtmp
4410 MAIL=/usr/spool/mail
4411 cat >>confdefs.h <<\_ACEOF
4412@%:@define HAVE_NEXT 1
4413_ACEOF
4414
4415 cat >>confdefs.h <<\_ACEOF
4416@%:@define BROKEN_REALPATH 1
4417_ACEOF
4418
4419 cat >>confdefs.h <<\_ACEOF
4420@%:@define USE_PIPES 1
4421_ACEOF
4422
4423 cat >>confdefs.h <<\_ACEOF
4424@%:@define BROKEN_SAVED_UIDS 1
4425_ACEOF
4426
4427 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4428 CFLAGS="$CFLAGS"
4429 ;;
4430*-*-solaris*)
4431 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4432 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
4433 need_dash_r=1
4434 cat >>confdefs.h <<\_ACEOF
4435@%:@define PAM_SUN_CODEBASE 1
4436_ACEOF
4437
4438 cat >>confdefs.h <<\_ACEOF
4439@%:@define LOGIN_NEEDS_UTMPX 1
4440_ACEOF
4441
4442 cat >>confdefs.h <<\_ACEOF
4443@%:@define LOGIN_NEEDS_TERM 1
4444_ACEOF
4445
4446 cat >>confdefs.h <<\_ACEOF
4447@%:@define PAM_TTY_KLUDGE 1
4448_ACEOF
4449
4450 cat >>confdefs.h <<\_ACEOF
4451@%:@define STREAMS_PUSH_ACQUIRES_CTTY 1
4452_ACEOF
4453
4454 # hardwire lastlog location (can't detect it on some versions)
4455 conf_lastlog_location="/var/adm/lastlog"
4456 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
4457echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
4458 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4459 if test "$sol2ver" -ge 8; then
4460 echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
4462 cat >>confdefs.h <<\_ACEOF
4463@%:@define DISABLE_UTMP 1
4464_ACEOF
4465
4466 cat >>confdefs.h <<\_ACEOF
4467@%:@define DISABLE_WTMP 1
4468_ACEOF
4469
4470 else
4471 echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
4473 fi
4474 ;;
4475*-*-sunos4*)
4476 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4477
4478for ac_func in getpwanam
4479do
4480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4481echo "$as_me:$LINENO: checking for $ac_func" >&5
4482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4483if eval "test \"\${$as_ac_var+set}\" = set"; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 cat >conftest.$ac_ext <<_ACEOF
4487#line $LINENO "configure"
4488/* confdefs.h. */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h. */
4493/* System header to define __stub macros and hopefully few prototypes,
4494 which can conflict with char $ac_func (); below.
4495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4496 <limits.h> exists even on freestanding compilers. */
4497#ifdef __STDC__
4498# include <limits.h>
4499#else
4500# include <assert.h>
4501#endif
4502/* Override any gcc2 internal prototype to avoid an error. */
4503#ifdef __cplusplus
4504extern "C"
4505{
4506#endif
4507/* We use char because int might match the return type of a gcc2
4508 builtin and then its argument prototype would still apply. */
4509char $ac_func ();
4510/* The GNU C library defines this for functions which it implements
4511 to always fail with ENOSYS. Some functions are actually named
4512 something starting with __ and the normal name is an alias. */
4513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4514choke me
4515#else
4516char (*f) () = $ac_func;
4517#endif
4518#ifdef __cplusplus
4519}
4520#endif
4521
4522int
4523main ()
4524{
4525return f != $ac_func;
4526 ;
4527 return 0;
4528}
4529_ACEOF
4530rm -f conftest.$ac_objext conftest$ac_exeext
4531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532 (eval $ac_link) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -s conftest$ac_exeext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 eval "$as_ac_var=yes"
4543else
4544 echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547eval "$as_ac_var=no"
4548fi
4549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4550fi
4551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4553if test `eval echo '${'$as_ac_var'}'` = yes; then
4554 cat >>confdefs.h <<_ACEOF
4555@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4556_ACEOF
4557
4558fi
4559done
4560
4561 cat >>confdefs.h <<\_ACEOF
4562@%:@define PAM_SUN_CODEBASE 1
4563_ACEOF
4564
4565 conf_utmp_location=/etc/utmp
4566 conf_wtmp_location=/var/adm/wtmp
4567 conf_lastlog_location=/var/adm/lastlog
4568 cat >>confdefs.h <<\_ACEOF
4569@%:@define USE_PIPES 1
4570_ACEOF
4571
4572 ;;
4573*-ncr-sysv*)
4574 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4575 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4576 LIBS="$LIBS -lc89"
4577 cat >>confdefs.h <<\_ACEOF
4578@%:@define USE_PIPES 1
4579_ACEOF
4580
4581 ;;
4582*-sni-sysv*)
4583 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4584 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4585 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4586 IPADDR_IN_DISPLAY=yes
4587 cat >>confdefs.h <<\_ACEOF
4588@%:@define USE_PIPES 1
4589_ACEOF
4590
4591 cat >>confdefs.h <<\_ACEOF
4592@%:@define IP_TOS_IS_BROKEN 1
4593_ACEOF
4594
4595 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4596 # Attention: always take care to bind libsocket and libnsl before libc,
4597 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4598 ;;
4599*-*-sysv4.2*)
4600 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4601 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4602 cat >>confdefs.h <<\_ACEOF
4603@%:@define USE_PIPES 1
4604_ACEOF
4605
4606 ;;
4607*-*-sysv5*)
4608 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4609 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4610 cat >>confdefs.h <<\_ACEOF
4611@%:@define USE_PIPES 1
4612_ACEOF
4613
4614 ;;
4615*-*-sysv*)
4616 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4617 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4618 ;;
4619*-*-sco3.2v4*)
4620 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4621 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4622 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4623 RANLIB=true
4624 no_dev_ptmx=1
4625 cat >>confdefs.h <<\_ACEOF
4626@%:@define BROKEN_SYS_TERMIO_H 1
4627_ACEOF
4628
4629 cat >>confdefs.h <<\_ACEOF
4630@%:@define USE_PIPES 1
4631_ACEOF
4632
4633 cat >>confdefs.h <<\_ACEOF
4634@%:@define HAVE_SECUREWARE 1
4635_ACEOF
4636
4637 cat >>confdefs.h <<\_ACEOF
4638@%:@define DISABLE_SHADOW 1
4639_ACEOF
4640
4641 cat >>confdefs.h <<\_ACEOF
4642@%:@define BROKEN_SAVED_UIDS 1
4643_ACEOF
4644
4645
4646
4647for ac_func in getluid setluid
4648do
4649as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4650echo "$as_me:$LINENO: checking for $ac_func" >&5
4651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4652if eval "test \"\${$as_ac_var+set}\" = set"; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 cat >conftest.$ac_ext <<_ACEOF
4656#line $LINENO "configure"
4657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
4662/* System header to define __stub macros and hopefully few prototypes,
4663 which can conflict with char $ac_func (); below.
4664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 <limits.h> exists even on freestanding compilers. */
4666#ifdef __STDC__
4667# include <limits.h>
4668#else
4669# include <assert.h>
4670#endif
4671/* Override any gcc2 internal prototype to avoid an error. */
4672#ifdef __cplusplus
4673extern "C"
4674{
4675#endif
4676/* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678char $ac_func ();
4679/* The GNU C library defines this for functions which it implements
4680 to always fail with ENOSYS. Some functions are actually named
4681 something starting with __ and the normal name is an alias. */
4682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4683choke me
4684#else
4685char (*f) () = $ac_func;
4686#endif
4687#ifdef __cplusplus
4688}
4689#endif
4690
4691int
4692main ()
4693{
4694return f != $ac_func;
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699rm -f conftest.$ac_objext conftest$ac_exeext
4700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -s conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 eval "$as_ac_var=yes"
4712else
4713 echo "$as_me: failed program was:" >&5
4714sed 's/^/| /' conftest.$ac_ext >&5
4715
4716eval "$as_ac_var=no"
4717fi
4718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4719fi
4720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4722if test `eval echo '${'$as_ac_var'}'` = yes; then
4723 cat >>confdefs.h <<_ACEOF
4724@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4725_ACEOF
4726
4727fi
4728done
4729
4730 MANTYPE=man
4731 do_sco3_extra_lib_check=yes
4732 ;;
4733*-*-sco3.2v5*)
4734 if test -z "$GCC"; then
4735 CFLAGS="$CFLAGS -belf"
4736 fi
4737 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4738 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4739 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4740 no_dev_ptmx=1
4741 cat >>confdefs.h <<\_ACEOF
4742@%:@define USE_PIPES 1
4743_ACEOF
4744
4745 cat >>confdefs.h <<\_ACEOF
4746@%:@define HAVE_SECUREWARE 1
4747_ACEOF
4748
4749 cat >>confdefs.h <<\_ACEOF
4750@%:@define DISABLE_SHADOW 1
4751_ACEOF
4752
4753 cat >>confdefs.h <<\_ACEOF
4754@%:@define DISABLE_FD_PASSING 1
4755_ACEOF
4756
4757
4758
4759for ac_func in getluid setluid
4760do
4761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4762echo "$as_me:$LINENO: checking for $ac_func" >&5
4763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4764if eval "test \"\${$as_ac_var+set}\" = set"; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 cat >conftest.$ac_ext <<_ACEOF
4768#line $LINENO "configure"
4769/* confdefs.h. */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h. */
4774/* System header to define __stub macros and hopefully few prototypes,
4775 which can conflict with char $ac_func (); below.
4776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777 <limits.h> exists even on freestanding compilers. */
4778#ifdef __STDC__
4779# include <limits.h>
4780#else
4781# include <assert.h>
4782#endif
4783/* Override any gcc2 internal prototype to avoid an error. */
4784#ifdef __cplusplus
4785extern "C"
4786{
4787#endif
4788/* We use char because int might match the return type of a gcc2
4789 builtin and then its argument prototype would still apply. */
4790char $ac_func ();
4791/* The GNU C library defines this for functions which it implements
4792 to always fail with ENOSYS. Some functions are actually named
4793 something starting with __ and the normal name is an alias. */
4794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4795choke me
4796#else
4797char (*f) () = $ac_func;
4798#endif
4799#ifdef __cplusplus
4800}
4801#endif
4802
4803int
4804main ()
4805{
4806return f != $ac_func;
4807 ;
4808 return 0;
4809}
4810_ACEOF
4811rm -f conftest.$ac_objext conftest$ac_exeext
4812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -s conftest$ac_exeext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 eval "$as_ac_var=yes"
4824else
4825 echo "$as_me: failed program was:" >&5
4826sed 's/^/| /' conftest.$ac_ext >&5
4827
4828eval "$as_ac_var=no"
4829fi
4830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4831fi
4832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4834if test `eval echo '${'$as_ac_var'}'` = yes; then
4835 cat >>confdefs.h <<_ACEOF
4836@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4837_ACEOF
4838
4839fi
4840done
4841
4842 MANTYPE=man
4843 ;;
4844*-*-unicosmk*)
4845 cat >>confdefs.h <<\_ACEOF
4846@%:@define USE_PIPES 1
4847_ACEOF
4848
4849 cat >>confdefs.h <<\_ACEOF
4850@%:@define DISABLE_FD_PASSING 1
4851_ACEOF
4852
4853 LDFLAGS="$LDFLAGS"
4854 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4855 MANTYPE=cat
4856 ;;
4857*-*-unicos*)
4858 cat >>confdefs.h <<\_ACEOF
4859@%:@define USE_PIPES 1
4860_ACEOF
4861
4862 cat >>confdefs.h <<\_ACEOF
4863@%:@define DISABLE_FD_PASSING 1
4864_ACEOF
4865
4866 cat >>confdefs.h <<\_ACEOF
4867@%:@define NO_SSH_LASTLOG 1
4868_ACEOF
4869
4870 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4871 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4872 MANTYPE=cat
4873 ;;
4874*-dec-osf*)
4875 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4876echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4877 no_osfsia=""
4878
4879# Check whether --with-osfsia or --without-osfsia was given.
4880if test "${with_osfsia+set}" = set; then
4881 withval="$with_osfsia"
4882
4883 if test "x$withval" = "xno" ; then
4884 echo "$as_me:$LINENO: result: disabled" >&5
4885echo "${ECHO_T}disabled" >&6
4886 no_osfsia=1
4887 fi
4888
4889fi;
4890 if test -z "$no_osfsia" ; then
4891 if test -f /etc/sia/matrix.conf; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 cat >>confdefs.h <<\_ACEOF
4895@%:@define HAVE_OSF_SIA 1
4896_ACEOF
4897
4898 cat >>confdefs.h <<\_ACEOF
4899@%:@define DISABLE_LOGIN 1
4900_ACEOF
4901
4902 cat >>confdefs.h <<\_ACEOF
4903@%:@define DISABLE_FD_PASSING 1
4904_ACEOF
4905
4906 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4907 else
4908 echo "$as_me:$LINENO: result: no" >&5
4909echo "${ECHO_T}no" >&6
4910 fi
4911 fi
4912 cat >>confdefs.h <<\_ACEOF
4913@%:@define DISABLE_FD_PASSING 1
4914_ACEOF
4915
4916 ;;
4917
4918*-*-nto-qnx)
4919 cat >>confdefs.h <<\_ACEOF
4920@%:@define USE_PIPES 1
4921_ACEOF
4922
4923 cat >>confdefs.h <<\_ACEOF
4924@%:@define NO_X11_UNIX_SOCKETS 1
4925_ACEOF
4926
4927 cat >>confdefs.h <<\_ACEOF
4928@%:@define MISSING_NFDBITS 1
4929_ACEOF
4930
4931 cat >>confdefs.h <<\_ACEOF
4932@%:@define MISSING_HOWMANY 1
4933_ACEOF
4934
4935 cat >>confdefs.h <<\_ACEOF
4936@%:@define MISSING_FD_MASK 1
4937_ACEOF
4938
4939 ;;
4940esac
4941
4942# Allow user to specify flags
4943
4944# Check whether --with-cflags or --without-cflags was given.
4945if test "${with_cflags+set}" = set; then
4946 withval="$with_cflags"
4947
4948 if test "x$withval" != "xno" ; then
4949 CFLAGS="$CFLAGS $withval"
4950 fi
4951
4952
4953fi;
4954
4955# Check whether --with-cppflags or --without-cppflags was given.
4956if test "${with_cppflags+set}" = set; then
4957 withval="$with_cppflags"
4958
4959 if test "x$withval" != "xno"; then
4960 CPPFLAGS="$CPPFLAGS $withval"
4961 fi
4962
4963
4964fi;
4965
4966# Check whether --with-ldflags or --without-ldflags was given.
4967if test "${with_ldflags+set}" = set; then
4968 withval="$with_ldflags"
4969
4970 if test "x$withval" != "xno" ; then
4971 LDFLAGS="$LDFLAGS $withval"
4972 fi
4973
4974
4975fi;
4976
4977# Check whether --with-libs or --without-libs was given.
4978if test "${with_libs+set}" = set; then
4979 withval="$with_libs"
4980
4981 if test "x$withval" != "xno" ; then
4982 LIBS="$LIBS $withval"
4983 fi
4984
4985
4986fi;
4987
4988# Checks for header files.
4989
4990echo "$as_me:$LINENO: checking for egrep" >&5
4991echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4992if test "${ac_cv_prog_egrep+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4996 then ac_cv_prog_egrep='grep -E'
4997 else ac_cv_prog_egrep='egrep'
4998 fi
4999fi
5000echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5001echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5002 EGREP=$ac_cv_prog_egrep
5003
5004
5005echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5006echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5007if test "${ac_cv_header_stdc+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010 cat >conftest.$ac_ext <<_ACEOF
5011#line $LINENO "configure"
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017#include <stdlib.h>
5018#include <stdarg.h>
5019#include <string.h>
5020#include <float.h>
5021
5022int
5023main ()
5024{
5025
5026 ;
5027 return 0;
5028}
5029_ACEOF
5030rm -f conftest.$ac_objext
5031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032 (eval $ac_compile) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_header_stdc=yes
5043else
5044 echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047ac_cv_header_stdc=no
5048fi
5049rm -f conftest.$ac_objext conftest.$ac_ext
5050
5051if test $ac_cv_header_stdc = yes; then
5052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5053 cat >conftest.$ac_ext <<_ACEOF
5054#line $LINENO "configure"
5055/* confdefs.h. */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h. */
5060#include <string.h>
5061
5062_ACEOF
5063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064 $EGREP "memchr" >/dev/null 2>&1; then
5065 :
5066else
5067 ac_cv_header_stdc=no
5068fi
5069rm -f conftest*
5070
5071fi
5072
5073if test $ac_cv_header_stdc = yes; then
5074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5075 cat >conftest.$ac_ext <<_ACEOF
5076#line $LINENO "configure"
5077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
5082#include <stdlib.h>
5083
5084_ACEOF
5085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5086 $EGREP "free" >/dev/null 2>&1; then
5087 :
5088else
5089 ac_cv_header_stdc=no
5090fi
5091rm -f conftest*
5092
5093fi
5094
5095if test $ac_cv_header_stdc = yes; then
5096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5097 if test "$cross_compiling" = yes; then
5098 :
5099else
5100 cat >conftest.$ac_ext <<_ACEOF
5101#line $LINENO "configure"
5102/* confdefs.h. */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h. */
5107#include <ctype.h>
5108#if ((' ' & 0x0FF) == 0x020)
5109# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5110# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5111#else
5112# define ISLOWER(c) \
5113 (('a' <= (c) && (c) <= 'i') \
5114 || ('j' <= (c) && (c) <= 'r') \
5115 || ('s' <= (c) && (c) <= 'z'))
5116# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5117#endif
5118
5119#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5120int
5121main ()
5122{
5123 int i;
5124 for (i = 0; i < 256; i++)
5125 if (XOR (islower (i), ISLOWER (i))
5126 || toupper (i) != TOUPPER (i))
5127 exit(2);
5128 exit (0);
5129}
5130_ACEOF
5131rm -f conftest$ac_exeext
5132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 :
5143else
5144 echo "$as_me: program exited with status $ac_status" >&5
5145echo "$as_me: failed program was:" >&5
5146sed 's/^/| /' conftest.$ac_ext >&5
5147
5148( exit $ac_status )
5149ac_cv_header_stdc=no
5150fi
5151rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5152fi
5153fi
5154fi
5155echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5156echo "${ECHO_T}$ac_cv_header_stdc" >&6
5157if test $ac_cv_header_stdc = yes; then
5158
5159cat >>confdefs.h <<\_ACEOF
5160@%:@define STDC_HEADERS 1
5161_ACEOF
5162
5163fi
5164
5165# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5176 inttypes.h stdint.h unistd.h
5177do
5178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179echo "$as_me:$LINENO: checking for $ac_header" >&5
5180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5181if eval "test \"\${$as_ac_Header+set}\" = set"; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 cat >conftest.$ac_ext <<_ACEOF
5185#line $LINENO "configure"
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
5191$ac_includes_default
5192
5193@%:@include <$ac_header>
5194_ACEOF
5195rm -f conftest.$ac_objext
5196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5197 (eval $ac_compile) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 eval "$as_ac_Header=yes"
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212eval "$as_ac_Header=no"
5213fi
5214rm -f conftest.$ac_objext conftest.$ac_ext
5215fi
5216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5218if test `eval echo '${'$as_ac_Header'}'` = yes; then
5219 cat >>confdefs.h <<_ACEOF
5220@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5221_ACEOF
5222
5223fi
5224
5225done
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
5274 getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \
5275 login_cap.h maillock.h netdb.h netgroup.h \
5276 netinet/in_systm.h paths.h pty.h readpassphrase.h \
5277 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
5278 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
5279 sys/mman.h sys/pstat.h sys/select.h sys/stat.h \
5280 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \
5281 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
5282 util.h utime.h utmp.h utmpx.h
5283do
5284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5285if eval "test \"\${$as_ac_Header+set}\" = set"; then
5286 echo "$as_me:$LINENO: checking for $ac_header" >&5
5287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5288if eval "test \"\${$as_ac_Header+set}\" = set"; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290fi
5291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5293else
5294 # Is the header compilable?
5295echo "$as_me:$LINENO: checking $ac_header usability" >&5
5296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5297cat >conftest.$ac_ext <<_ACEOF
5298#line $LINENO "configure"
5299/* confdefs.h. */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h. */
5304$ac_includes_default
5305@%:@include <$ac_header>
5306_ACEOF
5307rm -f conftest.$ac_objext
5308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_header_compiler=yes
5320else
5321 echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
5324ac_header_compiler=no
5325fi
5326rm -f conftest.$ac_objext conftest.$ac_ext
5327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5328echo "${ECHO_T}$ac_header_compiler" >&6
5329
5330# Is the header present?
5331echo "$as_me:$LINENO: checking $ac_header presence" >&5
5332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5333cat >conftest.$ac_ext <<_ACEOF
5334#line $LINENO "configure"
5335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
5340@%:@include <$ac_header>
5341_ACEOF
5342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 else
5353 ac_cpp_err=
5354 fi
5355else
5356 ac_cpp_err=yes
5357fi
5358if test -z "$ac_cpp_err"; then
5359 ac_header_preproc=yes
5360else
5361 echo "$as_me: failed program was:" >&5
5362sed 's/^/| /' conftest.$ac_ext >&5
5363
5364 ac_header_preproc=no
5365fi
5366rm -f conftest.err conftest.$ac_ext
5367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5368echo "${ECHO_T}$ac_header_preproc" >&6
5369
5370# So? What about this header?
5371case $ac_header_compiler:$ac_header_preproc in
5372 yes:no )
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377 (
5378 cat <<\_ASBOX
5379@%:@@%:@ ------------------------------------ @%:@@%:@
5380@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5381@%:@@%:@ ------------------------------------ @%:@@%:@
5382_ASBOX
5383 ) |
5384 sed "s/^/$as_me: WARNING: /" >&2
5385 ;;
5386 no:yes )
5387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5393 (
5394 cat <<\_ASBOX
5395@%:@@%:@ ------------------------------------ @%:@@%:@
5396@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5397@%:@@%:@ ------------------------------------ @%:@@%:@
5398_ASBOX
5399 ) |
5400 sed "s/^/$as_me: WARNING: /" >&2
5401 ;;
5402esac
5403echo "$as_me:$LINENO: checking for $ac_header" >&5
5404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408 eval "$as_ac_Header=$ac_header_preproc"
5409fi
5410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5412
5413fi
5414if test `eval echo '${'$as_ac_Header'}'` = yes; then
5415 cat >>confdefs.h <<_ACEOF
5416@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5417_ACEOF
5418
5419fi
5420
5421done
5422
5423
5424# Checks for libraries.
5425echo "$as_me:$LINENO: checking for yp_match" >&5
5426echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
5427if test "${ac_cv_func_yp_match+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430 cat >conftest.$ac_ext <<_ACEOF
5431#line $LINENO "configure"
5432/* confdefs.h. */
5433_ACEOF
5434cat confdefs.h >>conftest.$ac_ext
5435cat >>conftest.$ac_ext <<_ACEOF
5436/* end confdefs.h. */
5437/* System header to define __stub macros and hopefully few prototypes,
5438 which can conflict with char yp_match (); below.
5439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5440 <limits.h> exists even on freestanding compilers. */
5441#ifdef __STDC__
5442# include <limits.h>
5443#else
5444# include <assert.h>
5445#endif
5446/* Override any gcc2 internal prototype to avoid an error. */
5447#ifdef __cplusplus
5448extern "C"
5449{
5450#endif
5451/* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5453char yp_match ();
5454/* The GNU C library defines this for functions which it implements
5455 to always fail with ENOSYS. Some functions are actually named
5456 something starting with __ and the normal name is an alias. */
5457#if defined (__stub_yp_match) || defined (__stub___yp_match)
5458choke me
5459#else
5460char (*f) () = yp_match;
5461#endif
5462#ifdef __cplusplus
5463}
5464#endif
5465
5466int
5467main ()
5468{
5469return f != yp_match;
5470 ;
5471 return 0;
5472}
5473_ACEOF
5474rm -f conftest.$ac_objext conftest$ac_exeext
5475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5476 (eval $ac_link) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -s conftest$ac_exeext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_func_yp_match=yes
5487else
5488 echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491ac_cv_func_yp_match=no
5492fi
5493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5494fi
5495echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
5496echo "${ECHO_T}$ac_cv_func_yp_match" >&6
5497if test $ac_cv_func_yp_match = yes; then
5498 :
5499else
5500
5501echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
5502echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
5503if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506 ac_check_lib_save_LIBS=$LIBS
5507LIBS="-lnsl $LIBS"
5508cat >conftest.$ac_ext <<_ACEOF
5509#line $LINENO "configure"
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515
5516/* Override any gcc2 internal prototype to avoid an error. */
5517#ifdef __cplusplus
5518extern "C"
5519#endif
5520/* We use char because int might match the return type of a gcc2
5521 builtin and then its argument prototype would still apply. */
5522char yp_match ();
5523int
5524main ()
5525{
5526yp_match ();
5527 ;
5528 return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext conftest$ac_exeext
5532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533 (eval $ac_link) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest$ac_exeext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_lib_nsl_yp_match=yes
5544else
5545 echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548ac_cv_lib_nsl_yp_match=no
5549fi
5550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5551LIBS=$ac_check_lib_save_LIBS
5552fi
5553echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
5554echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
5555if test $ac_cv_lib_nsl_yp_match = yes; then
5556 cat >>confdefs.h <<_ACEOF
5557@%:@define HAVE_LIBNSL 1
5558_ACEOF
5559
5560 LIBS="-lnsl $LIBS"
5561
5562fi
5563
5564fi
5565
5566echo "$as_me:$LINENO: checking for setsockopt" >&5
5567echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5568if test "${ac_cv_func_setsockopt+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571 cat >conftest.$ac_ext <<_ACEOF
5572#line $LINENO "configure"
5573/* confdefs.h. */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h. */
5578/* System header to define __stub macros and hopefully few prototypes,
5579 which can conflict with char setsockopt (); below.
5580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5581 <limits.h> exists even on freestanding compilers. */
5582#ifdef __STDC__
5583# include <limits.h>
5584#else
5585# include <assert.h>
5586#endif
5587/* Override any gcc2 internal prototype to avoid an error. */
5588#ifdef __cplusplus
5589extern "C"
5590{
5591#endif
5592/* We use char because int might match the return type of a gcc2
5593 builtin and then its argument prototype would still apply. */
5594char setsockopt ();
5595/* The GNU C library defines this for functions which it implements
5596 to always fail with ENOSYS. Some functions are actually named
5597 something starting with __ and the normal name is an alias. */
5598#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5599choke me
5600#else
5601char (*f) () = setsockopt;
5602#endif
5603#ifdef __cplusplus
5604}
5605#endif
5606
5607int
5608main ()
5609{
5610return f != setsockopt;
5611 ;
5612 return 0;
5613}
5614_ACEOF
5615rm -f conftest.$ac_objext conftest$ac_exeext
5616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -s conftest$ac_exeext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 (eval $ac_try) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_func_setsockopt=yes
5628else
5629 echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632ac_cv_func_setsockopt=no
5633fi
5634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5635fi
5636echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5637echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5638if test $ac_cv_func_setsockopt = yes; then
5639 :
5640else
5641
5642echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5643echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5644if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647 ac_check_lib_save_LIBS=$LIBS
5648LIBS="-lsocket $LIBS"
5649cat >conftest.$ac_ext <<_ACEOF
5650#line $LINENO "configure"
5651/* confdefs.h. */
5652_ACEOF
5653cat confdefs.h >>conftest.$ac_ext
5654cat >>conftest.$ac_ext <<_ACEOF
5655/* end confdefs.h. */
5656
5657/* Override any gcc2 internal prototype to avoid an error. */
5658#ifdef __cplusplus
5659extern "C"
5660#endif
5661/* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5663char setsockopt ();
5664int
5665main ()
5666{
5667setsockopt ();
5668 ;
5669 return 0;
5670}
5671_ACEOF
5672rm -f conftest.$ac_objext conftest$ac_exeext
5673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_lib_socket_setsockopt=yes
5685else
5686 echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689ac_cv_lib_socket_setsockopt=no
5690fi
5691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5692LIBS=$ac_check_lib_save_LIBS
5693fi
5694echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5695echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5696if test $ac_cv_lib_socket_setsockopt = yes; then
5697 cat >>confdefs.h <<_ACEOF
5698@%:@define HAVE_LIBSOCKET 1
5699_ACEOF
5700
5701 LIBS="-lsocket $LIBS"
5702
5703fi
5704
5705fi
5706
5707
5708if test "x$with_tcp_wrappers" != "xno" ; then
5709 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5710 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5711echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5712if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715 ac_check_lib_save_LIBS=$LIBS
5716LIBS="-lrpc -lyp -lrpc $LIBS"
5717cat >conftest.$ac_ext <<_ACEOF
5718#line $LINENO "configure"
5719/* confdefs.h. */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */
5724
5725/* Override any gcc2 internal prototype to avoid an error. */
5726#ifdef __cplusplus
5727extern "C"
5728#endif
5729/* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5731char innetgr ();
5732int
5733main ()
5734{
5735innetgr ();
5736 ;
5737 return 0;
5738}
5739_ACEOF
5740rm -f conftest.$ac_objext conftest$ac_exeext
5741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5742 (eval $ac_link) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_lib_rpc_innetgr=yes
5753else
5754 echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757ac_cv_lib_rpc_innetgr=no
5758fi
5759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760LIBS=$ac_check_lib_save_LIBS
5761fi
5762echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5763echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5764if test $ac_cv_lib_rpc_innetgr = yes; then
5765 LIBS="-lrpc -lyp -lrpc $LIBS"
5766fi
5767
5768 fi
5769fi
5770
5771echo "$as_me:$LINENO: checking for getspnam" >&5
5772echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5773if test "${ac_cv_func_getspnam+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
5776 cat >conftest.$ac_ext <<_ACEOF
5777#line $LINENO "configure"
5778/* confdefs.h. */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h. */
5783/* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char getspnam (); below.
5785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786 <limits.h> exists even on freestanding compilers. */
5787#ifdef __STDC__
5788# include <limits.h>
5789#else
5790# include <assert.h>
5791#endif
5792/* Override any gcc2 internal prototype to avoid an error. */
5793#ifdef __cplusplus
5794extern "C"
5795{
5796#endif
5797/* We use char because int might match the return type of a gcc2
5798 builtin and then its argument prototype would still apply. */
5799char getspnam ();
5800/* The GNU C library defines this for functions which it implements
5801 to always fail with ENOSYS. Some functions are actually named
5802 something starting with __ and the normal name is an alias. */
5803#if defined (__stub_getspnam) || defined (__stub___getspnam)
5804choke me
5805#else
5806char (*f) () = getspnam;
5807#endif
5808#ifdef __cplusplus
5809}
5810#endif
5811
5812int
5813main ()
5814{
5815return f != getspnam;
5816 ;
5817 return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext conftest$ac_exeext
5821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822 (eval $ac_link) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -s conftest$ac_exeext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_cv_func_getspnam=yes
5833else
5834 echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837ac_cv_func_getspnam=no
5838fi
5839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5840fi
5841echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5842echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5843if test $ac_cv_func_getspnam = yes; then
5844 :
5845else
5846 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5847echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5848if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851 ac_check_lib_save_LIBS=$LIBS
5852LIBS="-lgen $LIBS"
5853cat >conftest.$ac_ext <<_ACEOF
5854#line $LINENO "configure"
5855/* confdefs.h. */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h. */
5860
5861/* Override any gcc2 internal prototype to avoid an error. */
5862#ifdef __cplusplus
5863extern "C"
5864#endif
5865/* We use char because int might match the return type of a gcc2
5866 builtin and then its argument prototype would still apply. */
5867char getspnam ();
5868int
5869main ()
5870{
5871getspnam ();
5872 ;
5873 return 0;
5874}
5875_ACEOF
5876rm -f conftest.$ac_objext conftest$ac_exeext
5877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -s conftest$ac_exeext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_lib_gen_getspnam=yes
5889else
5890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893ac_cv_lib_gen_getspnam=no
5894fi
5895rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5896LIBS=$ac_check_lib_save_LIBS
5897fi
5898echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5899echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5900if test $ac_cv_lib_gen_getspnam = yes; then
5901 LIBS="$LIBS -lgen"
5902fi
5903
5904fi
5905
5906
5907
5908# Check whether --with-rpath or --without-rpath was given.
5909if test "${with_rpath+set}" = set; then
5910 withval="$with_rpath"
5911
5912 if test "x$withval" = "xno" ; then
5913 need_dash_r=""
5914 fi
5915 if test "x$withval" = "xyes" ; then
5916 need_dash_r=1
5917 fi
5918
5919
5920fi;
5921
5922
5923# Check whether --with-zlib or --without-zlib was given.
5924if test "${with_zlib+set}" = set; then
5925 withval="$with_zlib"
5926
5927 if test "x$withval" = "xno" ; then
5928 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5929echo "$as_me: error: *** zlib is required ***" >&2;}
5930 { (exit 1); exit 1; }; }
5931 fi
5932 if test -d "$withval/lib"; then
5933 if test -n "${need_dash_r}"; then
5934 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5935 else
5936 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5937 fi
5938 else
5939 if test -n "${need_dash_r}"; then
5940 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5941 else
5942 LDFLAGS="-L${withval} ${LDFLAGS}"
5943 fi
5944 fi
5945 if test -d "$withval/include"; then
5946 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5947 else
5948 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5949 fi
5950
5951
5952fi;
5953
5954
5955echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5956echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5957if test "${ac_cv_lib_z_deflate+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960 ac_check_lib_save_LIBS=$LIBS
5961LIBS="-lz $LIBS"
5962cat >conftest.$ac_ext <<_ACEOF
5963#line $LINENO "configure"
5964/* confdefs.h. */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h. */
5969
5970/* Override any gcc2 internal prototype to avoid an error. */
5971#ifdef __cplusplus
5972extern "C"
5973#endif
5974/* We use char because int might match the return type of a gcc2
5975 builtin and then its argument prototype would still apply. */
5976char deflate ();
5977int
5978main ()
5979{
5980deflate ();
5981 ;
5982 return 0;
5983}
5984_ACEOF
5985rm -f conftest.$ac_objext conftest$ac_exeext
5986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987 (eval $ac_link) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -s conftest$ac_exeext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_cv_lib_z_deflate=yes
5998else
5999 echo "$as_me: failed program was:" >&5
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002ac_cv_lib_z_deflate=no
6003fi
6004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6005LIBS=$ac_check_lib_save_LIBS
6006fi
6007echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6008echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6009if test $ac_cv_lib_z_deflate = yes; then
6010 cat >>confdefs.h <<_ACEOF
6011@%:@define HAVE_LIBZ 1
6012_ACEOF
6013
6014 LIBS="-lz $LIBS"
6015
6016else
6017 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
6018echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
6019 { (exit 1); exit 1; }; }
6020fi
6021
6022
6023echo "$as_me:$LINENO: checking for strcasecmp" >&5
6024echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
6025if test "${ac_cv_func_strcasecmp+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027else
6028 cat >conftest.$ac_ext <<_ACEOF
6029#line $LINENO "configure"
6030/* confdefs.h. */
6031_ACEOF
6032cat confdefs.h >>conftest.$ac_ext
6033cat >>conftest.$ac_ext <<_ACEOF
6034/* end confdefs.h. */
6035/* System header to define __stub macros and hopefully few prototypes,
6036 which can conflict with char strcasecmp (); below.
6037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6038 <limits.h> exists even on freestanding compilers. */
6039#ifdef __STDC__
6040# include <limits.h>
6041#else
6042# include <assert.h>
6043#endif
6044/* Override any gcc2 internal prototype to avoid an error. */
6045#ifdef __cplusplus
6046extern "C"
6047{
6048#endif
6049/* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051char strcasecmp ();
6052/* The GNU C library defines this for functions which it implements
6053 to always fail with ENOSYS. Some functions are actually named
6054 something starting with __ and the normal name is an alias. */
6055#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6056choke me
6057#else
6058char (*f) () = strcasecmp;
6059#endif
6060#ifdef __cplusplus
6061}
6062#endif
6063
6064int
6065main ()
6066{
6067return f != strcasecmp;
6068 ;
6069 return 0;
6070}
6071_ACEOF
6072rm -f conftest.$ac_objext conftest$ac_exeext
6073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074 (eval $ac_link) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -s conftest$ac_exeext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_func_strcasecmp=yes
6085else
6086 echo "$as_me: failed program was:" >&5
6087sed 's/^/| /' conftest.$ac_ext >&5
6088
6089ac_cv_func_strcasecmp=no
6090fi
6091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6092fi
6093echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
6094echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
6095if test $ac_cv_func_strcasecmp = yes; then
6096 :
6097else
6098 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
6099echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
6100if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102else
6103 ac_check_lib_save_LIBS=$LIBS
6104LIBS="-lresolv $LIBS"
6105cat >conftest.$ac_ext <<_ACEOF
6106#line $LINENO "configure"
6107/* confdefs.h. */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h. */
6112
6113/* Override any gcc2 internal prototype to avoid an error. */
6114#ifdef __cplusplus
6115extern "C"
6116#endif
6117/* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6119char strcasecmp ();
6120int
6121main ()
6122{
6123strcasecmp ();
6124 ;
6125 return 0;
6126}
6127_ACEOF
6128rm -f conftest.$ac_objext conftest$ac_exeext
6129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -s conftest$ac_exeext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_lib_resolv_strcasecmp=yes
6141else
6142 echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145ac_cv_lib_resolv_strcasecmp=no
6146fi
6147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6148LIBS=$ac_check_lib_save_LIBS
6149fi
6150echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
6151echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
6152if test $ac_cv_lib_resolv_strcasecmp = yes; then
6153 LIBS="$LIBS -lresolv"
6154fi
6155
6156
6157fi
6158
6159echo "$as_me:$LINENO: checking for utimes" >&5
6160echo $ECHO_N "checking for utimes... $ECHO_C" >&6
6161if test "${ac_cv_func_utimes+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164 cat >conftest.$ac_ext <<_ACEOF
6165#line $LINENO "configure"
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
6171/* System header to define __stub macros and hopefully few prototypes,
6172 which can conflict with char utimes (); below.
6173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6174 <limits.h> exists even on freestanding compilers. */
6175#ifdef __STDC__
6176# include <limits.h>
6177#else
6178# include <assert.h>
6179#endif
6180/* Override any gcc2 internal prototype to avoid an error. */
6181#ifdef __cplusplus
6182extern "C"
6183{
6184#endif
6185/* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6187char utimes ();
6188/* The GNU C library defines this for functions which it implements
6189 to always fail with ENOSYS. Some functions are actually named
6190 something starting with __ and the normal name is an alias. */
6191#if defined (__stub_utimes) || defined (__stub___utimes)
6192choke me
6193#else
6194char (*f) () = utimes;
6195#endif
6196#ifdef __cplusplus
6197}
6198#endif
6199
6200int
6201main ()
6202{
6203return f != utimes;
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext conftest$ac_exeext
6209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6210 (eval $ac_link) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -s conftest$ac_exeext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_cv_func_utimes=yes
6221else
6222 echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225ac_cv_func_utimes=no
6226fi
6227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6228fi
6229echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
6230echo "${ECHO_T}$ac_cv_func_utimes" >&6
6231if test $ac_cv_func_utimes = yes; then
6232 :
6233else
6234 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
6235echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
6236if test "${ac_cv_lib_c89_utimes+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239 ac_check_lib_save_LIBS=$LIBS
6240LIBS="-lc89 $LIBS"
6241cat >conftest.$ac_ext <<_ACEOF
6242#line $LINENO "configure"
6243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
6248
6249/* Override any gcc2 internal prototype to avoid an error. */
6250#ifdef __cplusplus
6251extern "C"
6252#endif
6253/* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */
6255char utimes ();
6256int
6257main ()
6258{
6259utimes ();
6260 ;
6261 return 0;
6262}
6263_ACEOF
6264rm -f conftest.$ac_objext conftest$ac_exeext
6265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266 (eval $ac_link) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -s conftest$ac_exeext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_lib_c89_utimes=yes
6277else
6278 echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281ac_cv_lib_c89_utimes=no
6282fi
6283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6284LIBS=$ac_check_lib_save_LIBS
6285fi
6286echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
6287echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
6288if test $ac_cv_lib_c89_utimes = yes; then
6289 cat >>confdefs.h <<\_ACEOF
6290@%:@define HAVE_UTIMES 1
6291_ACEOF
6292
6293 LIBS="$LIBS -lc89"
6294fi
6295
6296
6297fi
6298
6299
6300
6301for ac_header in libutil.h
6302do
6303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6304if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo "$as_me:$LINENO: checking for $ac_header" >&5
6306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6307if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309fi
6310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312else
6313 # Is the header compilable?
6314echo "$as_me:$LINENO: checking $ac_header usability" >&5
6315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6316cat >conftest.$ac_ext <<_ACEOF
6317#line $LINENO "configure"
6318/* confdefs.h. */
6319_ACEOF
6320cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h. */
6323$ac_includes_default
6324@%:@include <$ac_header>
6325_ACEOF
6326rm -f conftest.$ac_objext
6327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328 (eval $ac_compile) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_header_compiler=yes
6339else
6340 echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
6342
6343ac_header_compiler=no
6344fi
6345rm -f conftest.$ac_objext conftest.$ac_ext
6346echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347echo "${ECHO_T}$ac_header_compiler" >&6
6348
6349# Is the header present?
6350echo "$as_me:$LINENO: checking $ac_header presence" >&5
6351echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6352cat >conftest.$ac_ext <<_ACEOF
6353#line $LINENO "configure"
6354/* confdefs.h. */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
6358/* end confdefs.h. */
6359@%:@include <$ac_header>
6360_ACEOF
6361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6363 ac_status=$?
6364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } >/dev/null; then
6369 if test -s conftest.err; then
6370 ac_cpp_err=$ac_c_preproc_warn_flag
6371 else
6372 ac_cpp_err=
6373 fi
6374else
6375 ac_cpp_err=yes
6376fi
6377if test -z "$ac_cpp_err"; then
6378 ac_header_preproc=yes
6379else
6380 echo "$as_me: failed program was:" >&5
6381sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ac_header_preproc=no
6384fi
6385rm -f conftest.err conftest.$ac_ext
6386echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6387echo "${ECHO_T}$ac_header_preproc" >&6
6388
6389# So? What about this header?
6390case $ac_header_compiler:$ac_header_preproc in
6391 yes:no )
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6393echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6396 (
6397 cat <<\_ASBOX
6398@%:@@%:@ ------------------------------------ @%:@@%:@
6399@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
6400@%:@@%:@ ------------------------------------ @%:@@%:@
6401_ASBOX
6402 ) |
6403 sed "s/^/$as_me: WARNING: /" >&2
6404 ;;
6405 no:yes )
6406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6409echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6412 (
6413 cat <<\_ASBOX
6414@%:@@%:@ ------------------------------------ @%:@@%:@
6415@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
6416@%:@@%:@ ------------------------------------ @%:@@%:@
6417_ASBOX
6418 ) |
6419 sed "s/^/$as_me: WARNING: /" >&2
6420 ;;
6421esac
6422echo "$as_me:$LINENO: checking for $ac_header" >&5
6423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6424if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427 eval "$as_ac_Header=$ac_header_preproc"
6428fi
6429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431
6432fi
6433if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434 cat >>confdefs.h <<_ACEOF
6435@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436_ACEOF
6437
6438fi
6439
6440done
6441
6442echo "$as_me:$LINENO: checking for library containing login" >&5
6443echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
6444if test "${ac_cv_search_login+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6446else
6447 ac_func_search_save_LIBS=$LIBS
6448ac_cv_search_login=no
6449cat >conftest.$ac_ext <<_ACEOF
6450#line $LINENO "configure"
6451/* confdefs.h. */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */
6456
6457/* Override any gcc2 internal prototype to avoid an error. */
6458#ifdef __cplusplus
6459extern "C"
6460#endif
6461/* We use char because int might match the return type of a gcc2
6462 builtin and then its argument prototype would still apply. */
6463char login ();
6464int
6465main ()
6466{
6467login ();
6468 ;
6469 return 0;
6470}
6471_ACEOF
6472rm -f conftest.$ac_objext conftest$ac_exeext
6473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6474 (eval $ac_link) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -s conftest$ac_exeext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 ac_cv_search_login="none required"
6485else
6486 echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489fi
6490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6491if test "$ac_cv_search_login" = no; then
6492 for ac_lib in util bsd; do
6493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6494 cat >conftest.$ac_ext <<_ACEOF
6495#line $LINENO "configure"
6496/* confdefs.h. */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
6500/* end confdefs.h. */
6501
6502/* Override any gcc2 internal prototype to avoid an error. */
6503#ifdef __cplusplus
6504extern "C"
6505#endif
6506/* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508char login ();
6509int
6510main ()
6511{
6512login ();
6513 ;
6514 return 0;
6515}
6516_ACEOF
6517rm -f conftest.$ac_objext conftest$ac_exeext
6518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>&5
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -s conftest$ac_exeext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 ac_cv_search_login="-l$ac_lib"
6530break
6531else
6532 echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535fi
6536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6537 done
6538fi
6539LIBS=$ac_func_search_save_LIBS
6540fi
6541echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
6542echo "${ECHO_T}$ac_cv_search_login" >&6
6543if test "$ac_cv_search_login" != no; then
6544 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
6545 cat >>confdefs.h <<\_ACEOF
6546@%:@define HAVE_LOGIN 1
6547_ACEOF
6548
6549fi
6550
6551
6552
6553
6554for ac_func in logout updwtmp logwtmp
6555do
6556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6557echo "$as_me:$LINENO: checking for $ac_func" >&5
6558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6559if eval "test \"\${$as_ac_var+set}\" = set"; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562 cat >conftest.$ac_ext <<_ACEOF
6563#line $LINENO "configure"
6564/* confdefs.h. */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h. */
6569/* System header to define __stub macros and hopefully few prototypes,
6570 which can conflict with char $ac_func (); below.
6571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6572 <limits.h> exists even on freestanding compilers. */
6573#ifdef __STDC__
6574# include <limits.h>
6575#else
6576# include <assert.h>
6577#endif
6578/* Override any gcc2 internal prototype to avoid an error. */
6579#ifdef __cplusplus
6580extern "C"
6581{
6582#endif
6583/* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6585char $ac_func ();
6586/* The GNU C library defines this for functions which it implements
6587 to always fail with ENOSYS. Some functions are actually named
6588 something starting with __ and the normal name is an alias. */
6589#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6590choke me
6591#else
6592char (*f) () = $ac_func;
6593#endif
6594#ifdef __cplusplus
6595}
6596#endif
6597
6598int
6599main ()
6600{
6601return f != $ac_func;
6602 ;
6603 return 0;
6604}
6605_ACEOF
6606rm -f conftest.$ac_objext conftest$ac_exeext
6607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608 (eval $ac_link) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 eval "$as_ac_var=yes"
6619else
6620 echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
6623eval "$as_ac_var=no"
6624fi
6625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626fi
6627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6629if test `eval echo '${'$as_ac_var'}'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6632_ACEOF
6633
6634fi
6635done
6636
6637
6638
6639for ac_func in strftime
6640do
6641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6642echo "$as_me:$LINENO: checking for $ac_func" >&5
6643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6644if eval "test \"\${$as_ac_var+set}\" = set"; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646else
6647 cat >conftest.$ac_ext <<_ACEOF
6648#line $LINENO "configure"
6649/* confdefs.h. */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h. */
6654/* System header to define __stub macros and hopefully few prototypes,
6655 which can conflict with char $ac_func (); below.
6656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6657 <limits.h> exists even on freestanding compilers. */
6658#ifdef __STDC__
6659# include <limits.h>
6660#else
6661# include <assert.h>
6662#endif
6663/* Override any gcc2 internal prototype to avoid an error. */
6664#ifdef __cplusplus
6665extern "C"
6666{
6667#endif
6668/* We use char because int might match the return type of a gcc2
6669 builtin and then its argument prototype would still apply. */
6670char $ac_func ();
6671/* The GNU C library defines this for functions which it implements
6672 to always fail with ENOSYS. Some functions are actually named
6673 something starting with __ and the normal name is an alias. */
6674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6675choke me
6676#else
6677char (*f) () = $ac_func;
6678#endif
6679#ifdef __cplusplus
6680}
6681#endif
6682
6683int
6684main ()
6685{
6686return f != $ac_func;
6687 ;
6688 return 0;
6689}
6690_ACEOF
6691rm -f conftest.$ac_objext conftest$ac_exeext
6692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693 (eval $ac_link) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -s conftest$ac_exeext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 eval "$as_ac_var=yes"
6704else
6705 echo "$as_me: failed program was:" >&5
6706sed 's/^/| /' conftest.$ac_ext >&5
6707
6708eval "$as_ac_var=no"
6709fi
6710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6711fi
6712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6714if test `eval echo '${'$as_ac_var'}'` = yes; then
6715 cat >>confdefs.h <<_ACEOF
6716@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6717_ACEOF
6718
6719else
6720 # strftime is in -lintl on SCO UNIX.
6721echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6722echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6723if test "${ac_cv_lib_intl_strftime+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726 ac_check_lib_save_LIBS=$LIBS
6727LIBS="-lintl $LIBS"
6728cat >conftest.$ac_ext <<_ACEOF
6729#line $LINENO "configure"
6730/* confdefs.h. */
6731_ACEOF
6732cat confdefs.h >>conftest.$ac_ext
6733cat >>conftest.$ac_ext <<_ACEOF
6734/* end confdefs.h. */
6735
6736/* Override any gcc2 internal prototype to avoid an error. */
6737#ifdef __cplusplus
6738extern "C"
6739#endif
6740/* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6742char strftime ();
6743int
6744main ()
6745{
6746strftime ();
6747 ;
6748 return 0;
6749}
6750_ACEOF
6751rm -f conftest.$ac_objext conftest$ac_exeext
6752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -s conftest$ac_exeext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_cv_lib_intl_strftime=yes
6764else
6765 echo "$as_me: failed program was:" >&5
6766sed 's/^/| /' conftest.$ac_ext >&5
6767
6768ac_cv_lib_intl_strftime=no
6769fi
6770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6771LIBS=$ac_check_lib_save_LIBS
6772fi
6773echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6774echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6775if test $ac_cv_lib_intl_strftime = yes; then
6776 cat >>confdefs.h <<\_ACEOF
6777@%:@define HAVE_STRFTIME 1
6778_ACEOF
6779
6780LIBS="-lintl $LIBS"
6781fi
6782
6783fi
6784done
6785
6786
6787# Check for ALTDIRFUNC glob() extension
6788echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6789echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6790cat >conftest.$ac_ext <<_ACEOF
6791#line $LINENO "configure"
6792/* confdefs.h. */
6793_ACEOF
6794cat confdefs.h >>conftest.$ac_ext
6795cat >>conftest.$ac_ext <<_ACEOF
6796/* end confdefs.h. */
6797
6798 #include <glob.h>
6799 #ifdef GLOB_ALTDIRFUNC
6800 FOUNDIT
6801 #endif
6802
6803_ACEOF
6804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6805 $EGREP "FOUNDIT" >/dev/null 2>&1; then
6806
6807 cat >>confdefs.h <<\_ACEOF
6808@%:@define GLOB_HAS_ALTDIRFUNC 1
6809_ACEOF
6810
6811 echo "$as_me:$LINENO: result: yes" >&5
6812echo "${ECHO_T}yes" >&6
6813
6814else
6815
6816 echo "$as_me:$LINENO: result: no" >&5
6817echo "${ECHO_T}no" >&6
6818
6819
6820fi
6821rm -f conftest*
6822
6823
6824# Check for g.gl_matchc glob() extension
6825echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6826echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6827cat >conftest.$ac_ext <<_ACEOF
6828#line $LINENO "configure"
6829/* confdefs.h. */
6830_ACEOF
6831cat confdefs.h >>conftest.$ac_ext
6832cat >>conftest.$ac_ext <<_ACEOF
6833/* end confdefs.h. */
6834
6835 #include <glob.h>
6836 int main(void){glob_t g; g.gl_matchc = 1;}
6837
6838_ACEOF
6839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6840 $EGREP "FOUNDIT" >/dev/null 2>&1; then
6841
6842 cat >>confdefs.h <<\_ACEOF
6843@%:@define GLOB_HAS_GL_MATCHC 1
6844_ACEOF
6845
6846 echo "$as_me:$LINENO: result: yes" >&5
6847echo "${ECHO_T}yes" >&6
6848
6849else
6850
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
6853
6854
6855fi
6856rm -f conftest*
6857
6858
6859echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6860echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6861if test "$cross_compiling" = yes; then
6862 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6863See \`config.log' for more details." >&5
6864echo "$as_me: error: cannot run test program while cross compiling
6865See \`config.log' for more details." >&2;}
6866 { (exit 1); exit 1; }; }
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
6869#line $LINENO "configure"
6870/* confdefs.h. */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h. */
6875
6876#include <sys/types.h>
6877#include <dirent.h>
6878int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6879
6880_ACEOF
6881rm -f conftest$ac_exeext
6882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892 echo "$as_me:$LINENO: result: yes" >&5
6893echo "${ECHO_T}yes" >&6
6894else
6895 echo "$as_me: program exited with status $ac_status" >&5
6896echo "$as_me: failed program was:" >&5
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
6899( exit $ac_status )
6900
6901 echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6
6903 cat >>confdefs.h <<\_ACEOF
6904@%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6905_ACEOF
6906
6907
6908
6909fi
6910rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6911fi
6912
6913# Check whether user wants S/Key support
6914SKEY_MSG="no"
6915
6916# Check whether --with-skey or --without-skey was given.
6917if test "${with_skey+set}" = set; then
6918 withval="$with_skey"
6919
6920 if test "x$withval" != "xno" ; then
6921
6922 if test "x$withval" != "xyes" ; then
6923 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6924 LDFLAGS="$LDFLAGS -L${withval}/lib"
6925 fi
6926
6927 cat >>confdefs.h <<\_ACEOF
6928@%:@define SKEY 1
6929_ACEOF
6930
6931 LIBS="-lskey $LIBS"
6932 SKEY_MSG="yes"
6933
6934 echo "$as_me:$LINENO: checking for s/key support" >&5
6935echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6936 if test "$cross_compiling" = yes; then
6937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6938See \`config.log' for more details." >&5
6939echo "$as_me: error: cannot run test program while cross compiling
6940See \`config.log' for more details." >&2;}
6941 { (exit 1); exit 1; }; }
6942else
6943 cat >conftest.$ac_ext <<_ACEOF
6944#line $LINENO "configure"
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
6950
6951#include <stdio.h>
6952#include <skey.h>
6953int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6954
6955_ACEOF
6956rm -f conftest$ac_exeext
6957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 echo "$as_me:$LINENO: result: yes" >&5
6968echo "${ECHO_T}yes" >&6
6969else
6970 echo "$as_me: program exited with status $ac_status" >&5
6971echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
6973
6974( exit $ac_status )
6975
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
6978 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6979echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6980 { (exit 1); exit 1; }; }
6981
6982fi
6983rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6984fi
6985 fi
6986
6987
6988fi;
6989
6990# Check whether user wants TCP wrappers support
6991TCPW_MSG="no"
6992
6993# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6994if test "${with_tcp_wrappers+set}" = set; then
6995 withval="$with_tcp_wrappers"
6996
6997 if test "x$withval" != "xno" ; then
6998 saved_LIBS="$LIBS"
6999 saved_LDFLAGS="$LDFLAGS"
7000 saved_CPPFLAGS="$CPPFLAGS"
7001 if test -n "${withval}" -a "${withval}" != "yes"; then
7002 if test -d "${withval}/lib"; then
7003 if test -n "${need_dash_r}"; then
7004 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7005 else
7006 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7007 fi
7008 else
7009 if test -n "${need_dash_r}"; then
7010 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7011 else
7012 LDFLAGS="-L${withval} ${LDFLAGS}"
7013 fi
7014 fi
7015 if test -d "${withval}/include"; then
7016 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7017 else
7018 CPPFLAGS="-I${withval} ${CPPFLAGS}"
7019 fi
7020 fi
7021 LIBWRAP="-lwrap"
7022 LIBS="$LIBWRAP $LIBS"
7023 echo "$as_me:$LINENO: checking for libwrap" >&5
7024echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7025 cat >conftest.$ac_ext <<_ACEOF
7026#line $LINENO "configure"
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032
7033#include <tcpd.h>
7034 int deny_severity = 0, allow_severity = 0;
7035
7036int
7037main ()
7038{
7039hosts_access(0);
7040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext conftest$ac_exeext
7045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -s conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056
7057 echo "$as_me:$LINENO: result: yes" >&5
7058echo "${ECHO_T}yes" >&6
7059 cat >>confdefs.h <<\_ACEOF
7060@%:@define LIBWRAP 1
7061_ACEOF
7062
7063
7064 TCPW_MSG="yes"
7065
7066else
7067 echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
7069
7070
7071 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7072echo "$as_me: error: *** libwrap missing" >&2;}
7073 { (exit 1); exit 1; }; }
7074
7075
7076fi
7077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7078 LIBS="$saved_LIBS"
7079 fi
7080
7081
7082fi;
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157for ac_func in \
7158 arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \
7159 bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
7160 gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \
7161 getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \
7162 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
7163 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \
7164 readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \
7165 setegid setenv seteuid setgroups setlogin setpcred setproctitle \
7166 setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \
7167 snprintf socketpair strerror strlcat strlcpy strmode strnvis \
7168 sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \
7169
7170do
7171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7172echo "$as_me:$LINENO: checking for $ac_func" >&5
7173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7174if eval "test \"\${$as_ac_var+set}\" = set"; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 cat >conftest.$ac_ext <<_ACEOF
7178#line $LINENO "configure"
7179/* confdefs.h. */
7180_ACEOF
7181cat confdefs.h >>conftest.$ac_ext
7182cat >>conftest.$ac_ext <<_ACEOF
7183/* end confdefs.h. */
7184/* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char $ac_func (); below.
7186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7187 <limits.h> exists even on freestanding compilers. */
7188#ifdef __STDC__
7189# include <limits.h>
7190#else
7191# include <assert.h>
7192#endif
7193/* Override any gcc2 internal prototype to avoid an error. */
7194#ifdef __cplusplus
7195extern "C"
7196{
7197#endif
7198/* We use char because int might match the return type of a gcc2
7199 builtin and then its argument prototype would still apply. */
7200char $ac_func ();
7201/* The GNU C library defines this for functions which it implements
7202 to always fail with ENOSYS. Some functions are actually named
7203 something starting with __ and the normal name is an alias. */
7204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7205choke me
7206#else
7207char (*f) () = $ac_func;
7208#endif
7209#ifdef __cplusplus
7210}
7211#endif
7212
7213int
7214main ()
7215{
7216return f != $ac_func;
7217 ;
7218 return 0;
7219}
7220_ACEOF
7221rm -f conftest.$ac_objext conftest$ac_exeext
7222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7223 (eval $ac_link) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } &&
7227 { ac_try='test -s conftest$ac_exeext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 eval "$as_ac_var=yes"
7234else
7235 echo "$as_me: failed program was:" >&5
7236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238eval "$as_ac_var=no"
7239fi
7240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7241fi
7242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7244if test `eval echo '${'$as_ac_var'}'` = yes; then
7245 cat >>confdefs.h <<_ACEOF
7246@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7247_ACEOF
7248
7249fi
7250done
7251
7252
7253echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
7254echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
7255if test "${ac_cv_search_nanosleep+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
7258 ac_func_search_save_LIBS=$LIBS
7259ac_cv_search_nanosleep=no
7260cat >conftest.$ac_ext <<_ACEOF
7261#line $LINENO "configure"
7262/* confdefs.h. */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h. */
7267
7268/* Override any gcc2 internal prototype to avoid an error. */
7269#ifdef __cplusplus
7270extern "C"
7271#endif
7272/* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274char nanosleep ();
7275int
7276main ()
7277{
7278nanosleep ();
7279 ;
7280 return 0;
7281}
7282_ACEOF
7283rm -f conftest.$ac_objext conftest$ac_exeext
7284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -s conftest$ac_exeext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_search_nanosleep="none required"
7296else
7297 echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300fi
7301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7302if test "$ac_cv_search_nanosleep" = no; then
7303 for ac_lib in rt posix4; do
7304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7305 cat >conftest.$ac_ext <<_ACEOF
7306#line $LINENO "configure"
7307/* confdefs.h. */
7308_ACEOF
7309cat confdefs.h >>conftest.$ac_ext
7310cat >>conftest.$ac_ext <<_ACEOF
7311/* end confdefs.h. */
7312
7313/* Override any gcc2 internal prototype to avoid an error. */
7314#ifdef __cplusplus
7315extern "C"
7316#endif
7317/* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7319char nanosleep ();
7320int
7321main ()
7322{
7323nanosleep ();
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328rm -f conftest.$ac_objext conftest$ac_exeext
7329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7330 (eval $ac_link) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -s conftest$ac_exeext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_cv_search_nanosleep="-l$ac_lib"
7341break
7342else
7343 echo "$as_me: failed program was:" >&5
7344sed 's/^/| /' conftest.$ac_ext >&5
7345
7346fi
7347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7348 done
7349fi
7350LIBS=$ac_func_search_save_LIBS
7351fi
7352echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
7353echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
7354if test "$ac_cv_search_nanosleep" != no; then
7355 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
7356 cat >>confdefs.h <<\_ACEOF
7357@%:@define HAVE_NANOSLEEP 1
7358_ACEOF
7359
7360fi
7361
7362echo "$as_me:$LINENO: checking for library containing basename" >&5
7363echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
7364if test "${ac_cv_search_basename+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366else
7367 ac_func_search_save_LIBS=$LIBS
7368ac_cv_search_basename=no
7369cat >conftest.$ac_ext <<_ACEOF
7370#line $LINENO "configure"
7371/* confdefs.h. */
7372_ACEOF
7373cat confdefs.h >>conftest.$ac_ext
7374cat >>conftest.$ac_ext <<_ACEOF
7375/* end confdefs.h. */
7376
7377/* Override any gcc2 internal prototype to avoid an error. */
7378#ifdef __cplusplus
7379extern "C"
7380#endif
7381/* We use char because int might match the return type of a gcc2
7382 builtin and then its argument prototype would still apply. */
7383char basename ();
7384int
7385main ()
7386{
7387basename ();
7388 ;
7389 return 0;
7390}
7391_ACEOF
7392rm -f conftest.$ac_objext conftest$ac_exeext
7393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394 (eval $ac_link) 2>&5
7395 ac_status=$?
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -s conftest$ac_exeext'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 (eval $ac_try) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 ac_cv_search_basename="none required"
7405else
7406 echo "$as_me: failed program was:" >&5
7407sed 's/^/| /' conftest.$ac_ext >&5
7408
7409fi
7410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7411if test "$ac_cv_search_basename" = no; then
7412 for ac_lib in gen; do
7413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7414 cat >conftest.$ac_ext <<_ACEOF
7415#line $LINENO "configure"
7416/* confdefs.h. */
7417_ACEOF
7418cat confdefs.h >>conftest.$ac_ext
7419cat >>conftest.$ac_ext <<_ACEOF
7420/* end confdefs.h. */
7421
7422/* Override any gcc2 internal prototype to avoid an error. */
7423#ifdef __cplusplus
7424extern "C"
7425#endif
7426/* We use char because int might match the return type of a gcc2
7427 builtin and then its argument prototype would still apply. */
7428char basename ();
7429int
7430main ()
7431{
7432basename ();
7433 ;
7434 return 0;
7435}
7436_ACEOF
7437rm -f conftest.$ac_objext conftest$ac_exeext
7438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -s conftest$ac_exeext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 ac_cv_search_basename="-l$ac_lib"
7450break
7451else
7452 echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455fi
7456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7457 done
7458fi
7459LIBS=$ac_func_search_save_LIBS
7460fi
7461echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
7462echo "${ECHO_T}$ac_cv_search_basename" >&6
7463if test "$ac_cv_search_basename" != no; then
7464 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
7465 cat >>confdefs.h <<\_ACEOF
7466@%:@define HAVE_BASENAME 1
7467_ACEOF
7468
7469fi
7470
7471
7472echo "$as_me:$LINENO: checking whether strsep is declared" >&5
7473echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
7474if test "${ac_cv_have_decl_strsep+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7476else
7477 cat >conftest.$ac_ext <<_ACEOF
7478#line $LINENO "configure"
7479/* confdefs.h. */
7480_ACEOF
7481cat confdefs.h >>conftest.$ac_ext
7482cat >>conftest.$ac_ext <<_ACEOF
7483/* end confdefs.h. */
7484$ac_includes_default
7485int
7486main ()
7487{
7488#ifndef strsep
7489 char *p = (char *) strsep;
7490#endif
7491
7492 ;
7493 return 0;
7494}
7495_ACEOF
7496rm -f conftest.$ac_objext
7497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498 (eval $ac_compile) 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -s conftest.$ac_objext'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 (eval $ac_try) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 ac_cv_have_decl_strsep=yes
7509else
7510 echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7513ac_cv_have_decl_strsep=no
7514fi
7515rm -f conftest.$ac_objext conftest.$ac_ext
7516fi
7517echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
7518echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
7519if test $ac_cv_have_decl_strsep = yes; then
7520
7521for ac_func in strsep
7522do
7523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7524echo "$as_me:$LINENO: checking for $ac_func" >&5
7525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7526if eval "test \"\${$as_ac_var+set}\" = set"; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 cat >conftest.$ac_ext <<_ACEOF
7530#line $LINENO "configure"
7531/* confdefs.h. */
7532_ACEOF
7533cat confdefs.h >>conftest.$ac_ext
7534cat >>conftest.$ac_ext <<_ACEOF
7535/* end confdefs.h. */
7536/* System header to define __stub macros and hopefully few prototypes,
7537 which can conflict with char $ac_func (); below.
7538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7539 <limits.h> exists even on freestanding compilers. */
7540#ifdef __STDC__
7541# include <limits.h>
7542#else
7543# include <assert.h>
7544#endif
7545/* Override any gcc2 internal prototype to avoid an error. */
7546#ifdef __cplusplus
7547extern "C"
7548{
7549#endif
7550/* We use char because int might match the return type of a gcc2
7551 builtin and then its argument prototype would still apply. */
7552char $ac_func ();
7553/* The GNU C library defines this for functions which it implements
7554 to always fail with ENOSYS. Some functions are actually named
7555 something starting with __ and the normal name is an alias. */
7556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7557choke me
7558#else
7559char (*f) () = $ac_func;
7560#endif
7561#ifdef __cplusplus
7562}
7563#endif
7564
7565int
7566main ()
7567{
7568return f != $ac_func;
7569 ;
7570 return 0;
7571}
7572_ACEOF
7573rm -f conftest.$ac_objext conftest$ac_exeext
7574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575 (eval $ac_link) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 (eval $ac_try) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585 eval "$as_ac_var=yes"
7586else
7587 echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590eval "$as_ac_var=no"
7591fi
7592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7593fi
7594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7596if test `eval echo '${'$as_ac_var'}'` = yes; then
7597 cat >>confdefs.h <<_ACEOF
7598@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7599_ACEOF
7600
7601fi
7602done
7603
7604fi
7605
7606
7607
7608for ac_func in dirname
7609do
7610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7611echo "$as_me:$LINENO: checking for $ac_func" >&5
7612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7613if eval "test \"\${$as_ac_var+set}\" = set"; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616 cat >conftest.$ac_ext <<_ACEOF
7617#line $LINENO "configure"
7618/* confdefs.h. */
7619_ACEOF
7620cat confdefs.h >>conftest.$ac_ext
7621cat >>conftest.$ac_ext <<_ACEOF
7622/* end confdefs.h. */
7623/* System header to define __stub macros and hopefully few prototypes,
7624 which can conflict with char $ac_func (); below.
7625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7626 <limits.h> exists even on freestanding compilers. */
7627#ifdef __STDC__
7628# include <limits.h>
7629#else
7630# include <assert.h>
7631#endif
7632/* Override any gcc2 internal prototype to avoid an error. */
7633#ifdef __cplusplus
7634extern "C"
7635{
7636#endif
7637/* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7639char $ac_func ();
7640/* The GNU C library defines this for functions which it implements
7641 to always fail with ENOSYS. Some functions are actually named
7642 something starting with __ and the normal name is an alias. */
7643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7644choke me
7645#else
7646char (*f) () = $ac_func;
7647#endif
7648#ifdef __cplusplus
7649}
7650#endif
7651
7652int
7653main ()
7654{
7655return f != $ac_func;
7656 ;
7657 return 0;
7658}
7659_ACEOF
7660rm -f conftest.$ac_objext conftest$ac_exeext
7661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 eval "$as_ac_var=yes"
7673else
7674 echo "$as_me: failed program was:" >&5
7675sed 's/^/| /' conftest.$ac_ext >&5
7676
7677eval "$as_ac_var=no"
7678fi
7679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680fi
7681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7683if test `eval echo '${'$as_ac_var'}'` = yes; then
7684 cat >>confdefs.h <<_ACEOF
7685@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7686_ACEOF
7687
7688for ac_header in libgen.h
7689do
7690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7691if eval "test \"\${$as_ac_Header+set}\" = set"; then
7692 echo "$as_me:$LINENO: checking for $ac_header" >&5
7693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7694if eval "test \"\${$as_ac_Header+set}\" = set"; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696fi
7697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7699else
7700 # Is the header compilable?
7701echo "$as_me:$LINENO: checking $ac_header usability" >&5
7702echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7703cat >conftest.$ac_ext <<_ACEOF
7704#line $LINENO "configure"
7705/* confdefs.h. */
7706_ACEOF
7707cat confdefs.h >>conftest.$ac_ext
7708cat >>conftest.$ac_ext <<_ACEOF
7709/* end confdefs.h. */
7710$ac_includes_default
7711@%:@include <$ac_header>
7712_ACEOF
7713rm -f conftest.$ac_objext
7714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7715 (eval $ac_compile) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -s conftest.$ac_objext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_header_compiler=yes
7726else
7727 echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730ac_header_compiler=no
7731fi
7732rm -f conftest.$ac_objext conftest.$ac_ext
7733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7734echo "${ECHO_T}$ac_header_compiler" >&6
7735
7736# Is the header present?
7737echo "$as_me:$LINENO: checking $ac_header presence" >&5
7738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7739cat >conftest.$ac_ext <<_ACEOF
7740#line $LINENO "configure"
7741/* confdefs.h. */
7742_ACEOF
7743cat confdefs.h >>conftest.$ac_ext
7744cat >>conftest.$ac_ext <<_ACEOF
7745/* end confdefs.h. */
7746@%:@include <$ac_header>
7747_ACEOF
7748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } >/dev/null; then
7756 if test -s conftest.err; then
7757 ac_cpp_err=$ac_c_preproc_warn_flag
7758 else
7759 ac_cpp_err=
7760 fi
7761else
7762 ac_cpp_err=yes
7763fi
7764if test -z "$ac_cpp_err"; then
7765 ac_header_preproc=yes
7766else
7767 echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770 ac_header_preproc=no
7771fi
7772rm -f conftest.err conftest.$ac_ext
7773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7774echo "${ECHO_T}$ac_header_preproc" >&6
7775
7776# So? What about this header?
7777case $ac_header_compiler:$ac_header_preproc in
7778 yes:no )
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7783 (
7784 cat <<\_ASBOX
7785@%:@@%:@ ------------------------------------ @%:@@%:@
7786@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
7787@%:@@%:@ ------------------------------------ @%:@@%:@
7788_ASBOX
7789 ) |
7790 sed "s/^/$as_me: WARNING: /" >&2
7791 ;;
7792 no:yes )
7793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7799 (
7800 cat <<\_ASBOX
7801@%:@@%:@ ------------------------------------ @%:@@%:@
7802@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
7803@%:@@%:@ ------------------------------------ @%:@@%:@
7804_ASBOX
7805 ) |
7806 sed "s/^/$as_me: WARNING: /" >&2
7807 ;;
7808esac
7809echo "$as_me:$LINENO: checking for $ac_header" >&5
7810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7811if eval "test \"\${$as_ac_Header+set}\" = set"; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814 eval "$as_ac_Header=$ac_header_preproc"
7815fi
7816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7818
7819fi
7820if test `eval echo '${'$as_ac_Header'}'` = yes; then
7821 cat >>confdefs.h <<_ACEOF
7822@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7823_ACEOF
7824
7825fi
7826
7827done
7828
7829else
7830
7831 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7832echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7833if test "${ac_cv_lib_gen_dirname+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836 ac_check_lib_save_LIBS=$LIBS
7837LIBS="-lgen $LIBS"
7838cat >conftest.$ac_ext <<_ACEOF
7839#line $LINENO "configure"
7840/* confdefs.h. */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h. */
7845
7846/* Override any gcc2 internal prototype to avoid an error. */
7847#ifdef __cplusplus
7848extern "C"
7849#endif
7850/* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7852char dirname ();
7853int
7854main ()
7855{
7856dirname ();
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861rm -f conftest.$ac_objext conftest$ac_exeext
7862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -s conftest$ac_exeext'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 (eval $ac_try) 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 ac_cv_lib_gen_dirname=yes
7874else
7875 echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878ac_cv_lib_gen_dirname=no
7879fi
7880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7881LIBS=$ac_check_lib_save_LIBS
7882fi
7883echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7884echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7885if test $ac_cv_lib_gen_dirname = yes; then
7886
7887 echo "$as_me:$LINENO: checking for broken dirname" >&5
7888echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7889if test "${ac_cv_have_broken_dirname+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891else
7892
7893 save_LIBS="$LIBS"
7894 LIBS="$LIBS -lgen"
7895 if test "$cross_compiling" = yes; then
7896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7897See \`config.log' for more details." >&5
7898echo "$as_me: error: cannot run test program while cross compiling
7899See \`config.log' for more details." >&2;}
7900 { (exit 1); exit 1; }; }
7901else
7902 cat >conftest.$ac_ext <<_ACEOF
7903#line $LINENO "configure"
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h. */
7909
7910#include <libgen.h>
7911#include <string.h>
7912
7913int main(int argc, char **argv) {
7914 char *s, buf[32];
7915
7916 strncpy(buf,"/etc", 32);
7917 s = dirname(buf);
7918 if (!s || strncmp(s, "/", 32) != 0) {
7919 exit(1);
7920 } else {
7921 exit(0);
7922 }
7923}
7924
7925_ACEOF
7926rm -f conftest$ac_exeext
7927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928 (eval $ac_link) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 (eval $ac_try) 2>&5
7934 ac_status=$?
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; }; then
7937 ac_cv_have_broken_dirname="no"
7938else
7939 echo "$as_me: program exited with status $ac_status" >&5
7940echo "$as_me: failed program was:" >&5
7941sed 's/^/| /' conftest.$ac_ext >&5
7942
7943( exit $ac_status )
7944 ac_cv_have_broken_dirname="yes"
7945
7946fi
7947rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7948fi
7949 LIBS="$save_LIBS"
7950
7951fi
7952echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7953echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7954 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7955 LIBS="$LIBS -lgen"
7956 cat >>confdefs.h <<\_ACEOF
7957@%:@define HAVE_DIRNAME 1
7958_ACEOF
7959
7960
7961for ac_header in libgen.h
7962do
7963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965 echo "$as_me:$LINENO: checking for $ac_header" >&5
7966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7967if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969fi
7970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7972else
7973 # Is the header compilable?
7974echo "$as_me:$LINENO: checking $ac_header usability" >&5
7975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7976cat >conftest.$ac_ext <<_ACEOF
7977#line $LINENO "configure"
7978/* confdefs.h. */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h. */
7983$ac_includes_default
7984@%:@include <$ac_header>
7985_ACEOF
7986rm -f conftest.$ac_objext
7987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -s conftest.$ac_objext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_header_compiler=yes
7999else
8000 echo "$as_me: failed program was:" >&5
8001sed 's/^/| /' conftest.$ac_ext >&5
8002
8003ac_header_compiler=no
8004fi
8005rm -f conftest.$ac_objext conftest.$ac_ext
8006echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8007echo "${ECHO_T}$ac_header_compiler" >&6
8008
8009# Is the header present?
8010echo "$as_me:$LINENO: checking $ac_header presence" >&5
8011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8012cat >conftest.$ac_ext <<_ACEOF
8013#line $LINENO "configure"
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
8019@%:@include <$ac_header>
8020_ACEOF
8021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } >/dev/null; then
8029 if test -s conftest.err; then
8030 ac_cpp_err=$ac_c_preproc_warn_flag
8031 else
8032 ac_cpp_err=
8033 fi
8034else
8035 ac_cpp_err=yes
8036fi
8037if test -z "$ac_cpp_err"; then
8038 ac_header_preproc=yes
8039else
8040 echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ac_header_preproc=no
8044fi
8045rm -f conftest.err conftest.$ac_ext
8046echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8047echo "${ECHO_T}$ac_header_preproc" >&6
8048
8049# So? What about this header?
8050case $ac_header_compiler:$ac_header_preproc in
8051 yes:no )
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8056 (
8057 cat <<\_ASBOX
8058@%:@@%:@ ------------------------------------ @%:@@%:@
8059@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
8060@%:@@%:@ ------------------------------------ @%:@@%:@
8061_ASBOX
8062 ) |
8063 sed "s/^/$as_me: WARNING: /" >&2
8064 ;;
8065 no:yes )
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8072 (
8073 cat <<\_ASBOX
8074@%:@@%:@ ------------------------------------ @%:@@%:@
8075@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
8076@%:@@%:@ ------------------------------------ @%:@@%:@
8077_ASBOX
8078 ) |
8079 sed "s/^/$as_me: WARNING: /" >&2
8080 ;;
8081esac
8082echo "$as_me:$LINENO: checking for $ac_header" >&5
8083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8084if eval "test \"\${$as_ac_Header+set}\" = set"; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086else
8087 eval "$as_ac_Header=$ac_header_preproc"
8088fi
8089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8091
8092fi
8093if test `eval echo '${'$as_ac_Header'}'` = yes; then
8094 cat >>confdefs.h <<_ACEOF
8095@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8096_ACEOF
8097
8098fi
8099
8100done
8101
8102 fi
8103
8104fi
8105
8106
8107fi
8108done
8109
8110
8111
8112
8113for ac_func in gettimeofday time
8114do
8115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8116echo "$as_me:$LINENO: checking for $ac_func" >&5
8117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8118if eval "test \"\${$as_ac_var+set}\" = set"; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121 cat >conftest.$ac_ext <<_ACEOF
8122#line $LINENO "configure"
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
8128/* System header to define __stub macros and hopefully few prototypes,
8129 which can conflict with char $ac_func (); below.
8130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8131 <limits.h> exists even on freestanding compilers. */
8132#ifdef __STDC__
8133# include <limits.h>
8134#else
8135# include <assert.h>
8136#endif
8137/* Override any gcc2 internal prototype to avoid an error. */
8138#ifdef __cplusplus
8139extern "C"
8140{
8141#endif
8142/* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8144char $ac_func ();
8145/* The GNU C library defines this for functions which it implements
8146 to always fail with ENOSYS. Some functions are actually named
8147 something starting with __ and the normal name is an alias. */
8148#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8149choke me
8150#else
8151char (*f) () = $ac_func;
8152#endif
8153#ifdef __cplusplus
8154}
8155#endif
8156
8157int
8158main ()
8159{
8160return f != $ac_func;
8161 ;
8162 return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext conftest$ac_exeext
8166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167 (eval $ac_link) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -s conftest$ac_exeext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 eval "$as_ac_var=yes"
8178else
8179 echo "$as_me: failed program was:" >&5
8180sed 's/^/| /' conftest.$ac_ext >&5
8181
8182eval "$as_ac_var=no"
8183fi
8184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8185fi
8186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8188if test `eval echo '${'$as_ac_var'}'` = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8191_ACEOF
8192
8193fi
8194done
8195
8196
8197
8198
8199
8200
8201
8202for ac_func in endutent getutent getutid getutline pututline setutent
8203do
8204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8205echo "$as_me:$LINENO: checking for $ac_func" >&5
8206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8207if eval "test \"\${$as_ac_var+set}\" = set"; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 cat >conftest.$ac_ext <<_ACEOF
8211#line $LINENO "configure"
8212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
8217/* System header to define __stub macros and hopefully few prototypes,
8218 which can conflict with char $ac_func (); below.
8219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220 <limits.h> exists even on freestanding compilers. */
8221#ifdef __STDC__
8222# include <limits.h>
8223#else
8224# include <assert.h>
8225#endif
8226/* Override any gcc2 internal prototype to avoid an error. */
8227#ifdef __cplusplus
8228extern "C"
8229{
8230#endif
8231/* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8233char $ac_func ();
8234/* The GNU C library defines this for functions which it implements
8235 to always fail with ENOSYS. Some functions are actually named
8236 something starting with __ and the normal name is an alias. */
8237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8238choke me
8239#else
8240char (*f) () = $ac_func;
8241#endif
8242#ifdef __cplusplus
8243}
8244#endif
8245
8246int
8247main ()
8248{
8249return f != $ac_func;
8250 ;
8251 return 0;
8252}
8253_ACEOF
8254rm -f conftest.$ac_objext conftest$ac_exeext
8255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256 (eval $ac_link) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 eval "$as_ac_var=yes"
8267else
8268 echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
8271eval "$as_ac_var=no"
8272fi
8273rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8274fi
8275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8277if test `eval echo '${'$as_ac_var'}'` = yes; then
8278 cat >>confdefs.h <<_ACEOF
8279@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8280_ACEOF
8281
8282fi
8283done
8284
8285
8286for ac_func in utmpname
8287do
8288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8289echo "$as_me:$LINENO: checking for $ac_func" >&5
8290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8291if eval "test \"\${$as_ac_var+set}\" = set"; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293else
8294 cat >conftest.$ac_ext <<_ACEOF
8295#line $LINENO "configure"
8296/* confdefs.h. */
8297_ACEOF
8298cat confdefs.h >>conftest.$ac_ext
8299cat >>conftest.$ac_ext <<_ACEOF
8300/* end confdefs.h. */
8301/* System header to define __stub macros and hopefully few prototypes,
8302 which can conflict with char $ac_func (); below.
8303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8304 <limits.h> exists even on freestanding compilers. */
8305#ifdef __STDC__
8306# include <limits.h>
8307#else
8308# include <assert.h>
8309#endif
8310/* Override any gcc2 internal prototype to avoid an error. */
8311#ifdef __cplusplus
8312extern "C"
8313{
8314#endif
8315/* We use char because int might match the return type of a gcc2
8316 builtin and then its argument prototype would still apply. */
8317char $ac_func ();
8318/* The GNU C library defines this for functions which it implements
8319 to always fail with ENOSYS. Some functions are actually named
8320 something starting with __ and the normal name is an alias. */
8321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8322choke me
8323#else
8324char (*f) () = $ac_func;
8325#endif
8326#ifdef __cplusplus
8327}
8328#endif
8329
8330int
8331main ()
8332{
8333return f != $ac_func;
8334 ;
8335 return 0;
8336}
8337_ACEOF
8338rm -f conftest.$ac_objext conftest$ac_exeext
8339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8340 (eval $ac_link) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -s conftest$ac_exeext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 eval "$as_ac_var=yes"
8351else
8352 echo "$as_me: failed program was:" >&5
8353sed 's/^/| /' conftest.$ac_ext >&5
8354
8355eval "$as_ac_var=no"
8356fi
8357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8358fi
8359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8360echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8361if test `eval echo '${'$as_ac_var'}'` = yes; then
8362 cat >>confdefs.h <<_ACEOF
8363@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8364_ACEOF
8365
8366fi
8367done
8368
8369
8370
8371
8372
8373
8374for ac_func in endutxent getutxent getutxid getutxline pututxline
8375do
8376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8377echo "$as_me:$LINENO: checking for $ac_func" >&5
8378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8379if eval "test \"\${$as_ac_var+set}\" = set"; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382 cat >conftest.$ac_ext <<_ACEOF
8383#line $LINENO "configure"
8384/* confdefs.h. */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
8388/* end confdefs.h. */
8389/* System header to define __stub macros and hopefully few prototypes,
8390 which can conflict with char $ac_func (); below.
8391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8392 <limits.h> exists even on freestanding compilers. */
8393#ifdef __STDC__
8394# include <limits.h>
8395#else
8396# include <assert.h>
8397#endif
8398/* Override any gcc2 internal prototype to avoid an error. */
8399#ifdef __cplusplus
8400extern "C"
8401{
8402#endif
8403/* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8405char $ac_func ();
8406/* The GNU C library defines this for functions which it implements
8407 to always fail with ENOSYS. Some functions are actually named
8408 something starting with __ and the normal name is an alias. */
8409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8410choke me
8411#else
8412char (*f) () = $ac_func;
8413#endif
8414#ifdef __cplusplus
8415}
8416#endif
8417
8418int
8419main ()
8420{
8421return f != $ac_func;
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext conftest$ac_exeext
8427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 eval "$as_ac_var=yes"
8439else
8440 echo "$as_me: failed program was:" >&5
8441sed 's/^/| /' conftest.$ac_ext >&5
8442
8443eval "$as_ac_var=no"
8444fi
8445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8446fi
8447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8448echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8449if test `eval echo '${'$as_ac_var'}'` = yes; then
8450 cat >>confdefs.h <<_ACEOF
8451@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8452_ACEOF
8453
8454fi
8455done
8456
8457
8458
8459for ac_func in setutxent utmpxname
8460do
8461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8462echo "$as_me:$LINENO: checking for $ac_func" >&5
8463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8464if eval "test \"\${$as_ac_var+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8466else
8467 cat >conftest.$ac_ext <<_ACEOF
8468#line $LINENO "configure"
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474/* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char $ac_func (); below.
8476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477 <limits.h> exists even on freestanding compilers. */
8478#ifdef __STDC__
8479# include <limits.h>
8480#else
8481# include <assert.h>
8482#endif
8483/* Override any gcc2 internal prototype to avoid an error. */
8484#ifdef __cplusplus
8485extern "C"
8486{
8487#endif
8488/* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490char $ac_func ();
8491/* The GNU C library defines this for functions which it implements
8492 to always fail with ENOSYS. Some functions are actually named
8493 something starting with __ and the normal name is an alias. */
8494#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8495choke me
8496#else
8497char (*f) () = $ac_func;
8498#endif
8499#ifdef __cplusplus
8500}
8501#endif
8502
8503int
8504main ()
8505{
8506return f != $ac_func;
8507 ;
8508 return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext conftest$ac_exeext
8512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8513 (eval $ac_link) 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest$ac_exeext'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 (eval $ac_try) 2>&5
8520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 eval "$as_ac_var=yes"
8524else
8525 echo "$as_me: failed program was:" >&5
8526sed 's/^/| /' conftest.$ac_ext >&5
8527
8528eval "$as_ac_var=no"
8529fi
8530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8531fi
8532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8534if test `eval echo '${'$as_ac_var'}'` = yes; then
8535 cat >>confdefs.h <<_ACEOF
8536@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8537_ACEOF
8538
8539fi
8540done
8541
8542
8543echo "$as_me:$LINENO: checking for daemon" >&5
8544echo $ECHO_N "checking for daemon... $ECHO_C" >&6
8545if test "${ac_cv_func_daemon+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548 cat >conftest.$ac_ext <<_ACEOF
8549#line $LINENO "configure"
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
8555/* System header to define __stub macros and hopefully few prototypes,
8556 which can conflict with char daemon (); below.
8557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8558 <limits.h> exists even on freestanding compilers. */
8559#ifdef __STDC__
8560# include <limits.h>
8561#else
8562# include <assert.h>
8563#endif
8564/* Override any gcc2 internal prototype to avoid an error. */
8565#ifdef __cplusplus
8566extern "C"
8567{
8568#endif
8569/* We use char because int might match the return type of a gcc2
8570 builtin and then its argument prototype would still apply. */
8571char daemon ();
8572/* The GNU C library defines this for functions which it implements
8573 to always fail with ENOSYS. Some functions are actually named
8574 something starting with __ and the normal name is an alias. */
8575#if defined (__stub_daemon) || defined (__stub___daemon)
8576choke me
8577#else
8578char (*f) () = daemon;
8579#endif
8580#ifdef __cplusplus
8581}
8582#endif
8583
8584int
8585main ()
8586{
8587return f != daemon;
8588 ;
8589 return 0;
8590}
8591_ACEOF
8592rm -f conftest.$ac_objext conftest$ac_exeext
8593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594 (eval $ac_link) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -s conftest$ac_exeext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_cv_func_daemon=yes
8605else
8606 echo "$as_me: failed program was:" >&5
8607sed 's/^/| /' conftest.$ac_ext >&5
8608
8609ac_cv_func_daemon=no
8610fi
8611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8612fi
8613echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
8614echo "${ECHO_T}$ac_cv_func_daemon" >&6
8615if test $ac_cv_func_daemon = yes; then
8616 cat >>confdefs.h <<\_ACEOF
8617@%:@define HAVE_DAEMON 1
8618_ACEOF
8619
8620else
8621 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
8622echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
8623if test "${ac_cv_lib_bsd_daemon+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625else
8626 ac_check_lib_save_LIBS=$LIBS
8627LIBS="-lbsd $LIBS"
8628cat >conftest.$ac_ext <<_ACEOF
8629#line $LINENO "configure"
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635
8636/* Override any gcc2 internal prototype to avoid an error. */
8637#ifdef __cplusplus
8638extern "C"
8639#endif
8640/* We use char because int might match the return type of a gcc2
8641 builtin and then its argument prototype would still apply. */
8642char daemon ();
8643int
8644main ()
8645{
8646daemon ();
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext conftest$ac_exeext
8652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653 (eval $ac_link) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -s conftest$ac_exeext'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8663 ac_cv_lib_bsd_daemon=yes
8664else
8665 echo "$as_me: failed program was:" >&5
8666sed 's/^/| /' conftest.$ac_ext >&5
8667
8668ac_cv_lib_bsd_daemon=no
8669fi
8670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8671LIBS=$ac_check_lib_save_LIBS
8672fi
8673echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
8674echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
8675if test $ac_cv_lib_bsd_daemon = yes; then
8676 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
8677@%:@define HAVE_DAEMON 1
8678_ACEOF
8679
8680fi
8681
8682
8683fi
8684
8685
8686echo "$as_me:$LINENO: checking for getpagesize" >&5
8687echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
8688if test "${ac_cv_func_getpagesize+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691 cat >conftest.$ac_ext <<_ACEOF
8692#line $LINENO "configure"
8693/* confdefs.h. */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h. */
8698/* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char getpagesize (); below.
8700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8701 <limits.h> exists even on freestanding compilers. */
8702#ifdef __STDC__
8703# include <limits.h>
8704#else
8705# include <assert.h>
8706#endif
8707/* Override any gcc2 internal prototype to avoid an error. */
8708#ifdef __cplusplus
8709extern "C"
8710{
8711#endif
8712/* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8714char getpagesize ();
8715/* The GNU C library defines this for functions which it implements
8716 to always fail with ENOSYS. Some functions are actually named
8717 something starting with __ and the normal name is an alias. */
8718#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
8719choke me
8720#else
8721char (*f) () = getpagesize;
8722#endif
8723#ifdef __cplusplus
8724}
8725#endif
8726
8727int
8728main ()
8729{
8730return f != getpagesize;
8731 ;
8732 return 0;
8733}
8734_ACEOF
8735rm -f conftest.$ac_objext conftest$ac_exeext
8736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_func_getpagesize=yes
8748else
8749 echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752ac_cv_func_getpagesize=no
8753fi
8754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8755fi
8756echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
8757echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
8758if test $ac_cv_func_getpagesize = yes; then
8759 cat >>confdefs.h <<\_ACEOF
8760@%:@define HAVE_GETPAGESIZE 1
8761_ACEOF
8762
8763else
8764 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
8765echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
8766if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768else
8769 ac_check_lib_save_LIBS=$LIBS
8770LIBS="-lucb $LIBS"
8771cat >conftest.$ac_ext <<_ACEOF
8772#line $LINENO "configure"
8773/* confdefs.h. */
8774_ACEOF
8775cat confdefs.h >>conftest.$ac_ext
8776cat >>conftest.$ac_ext <<_ACEOF
8777/* end confdefs.h. */
8778
8779/* Override any gcc2 internal prototype to avoid an error. */
8780#ifdef __cplusplus
8781extern "C"
8782#endif
8783/* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8785char getpagesize ();
8786int
8787main ()
8788{
8789getpagesize ();
8790 ;
8791 return 0;
8792}
8793_ACEOF
8794rm -f conftest.$ac_objext conftest$ac_exeext
8795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796 (eval $ac_link) 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -s conftest$ac_exeext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 (eval $ac_try) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_lib_ucb_getpagesize=yes
8807else
8808 echo "$as_me: failed program was:" >&5
8809sed 's/^/| /' conftest.$ac_ext >&5
8810
8811ac_cv_lib_ucb_getpagesize=no
8812fi
8813rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8814LIBS=$ac_check_lib_save_LIBS
8815fi
8816echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
8817echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
8818if test $ac_cv_lib_ucb_getpagesize = yes; then
8819 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
8820@%:@define HAVE_GETPAGESIZE 1
8821_ACEOF
8822
8823fi
8824
8825
8826fi
8827
8828
8829# Check for broken snprintf
8830if test "x$ac_cv_func_snprintf" = "xyes" ; then
8831 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
8832echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
8833 if test "$cross_compiling" = yes; then
8834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8835See \`config.log' for more details." >&5
8836echo "$as_me: error: cannot run test program while cross compiling
8837See \`config.log' for more details." >&2;}
8838 { (exit 1); exit 1; }; }
8839else
8840 cat >conftest.$ac_ext <<_ACEOF
8841#line $LINENO "configure"
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847
8848#include <stdio.h>
8849int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
8850
8851_ACEOF
8852rm -f conftest$ac_exeext
8853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
8865else
8866 echo "$as_me: program exited with status $ac_status" >&5
8867echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870( exit $ac_status )
8871
8872 echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
8874 cat >>confdefs.h <<\_ACEOF
8875@%:@define BROKEN_SNPRINTF 1
8876_ACEOF
8877
8878 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
8879echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
8880
8881
8882fi
8883rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8884fi
8885fi
8886
8887if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
8888echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
8889echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
8890if test "$cross_compiling" = yes; then
8891
8892 echo "$as_me:$LINENO: result: yes" >&5
8893echo "${ECHO_T}yes" >&6
8894 cat >>confdefs.h <<\_ACEOF
8895@%:@define HAVE_STRICT_MKSTEMP 1
8896_ACEOF
8897
8898
8899
8900else
8901 cat >conftest.$ac_ext <<_ACEOF
8902#line $LINENO "configure"
8903/* confdefs.h. */
8904_ACEOF
8905cat confdefs.h >>conftest.$ac_ext
8906cat >>conftest.$ac_ext <<_ACEOF
8907/* end confdefs.h. */
8908
8909#include <stdlib.h>
8910main() { char template[]="conftest.mkstemp-test";
8911if (mkstemp(template) == -1)
8912 exit(1);
8913unlink(template); exit(0);
8914}
8915
8916_ACEOF
8917rm -f conftest$ac_exeext
8918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8928
8929 echo "$as_me:$LINENO: result: no" >&5
8930echo "${ECHO_T}no" >&6
8931
8932else
8933 echo "$as_me: program exited with status $ac_status" >&5
8934echo "$as_me: failed program was:" >&5
8935sed 's/^/| /' conftest.$ac_ext >&5
8936
8937( exit $ac_status )
8938
8939 echo "$as_me:$LINENO: result: yes" >&5
8940echo "${ECHO_T}yes" >&6
8941 cat >>confdefs.h <<\_ACEOF
8942@%:@define HAVE_STRICT_MKSTEMP 1
8943_ACEOF
8944
8945
8946fi
8947rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8948fi
8949fi
8950
8951echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
8952echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
8953if test "${ac_cv_func_getpgrp_void+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956 # Use it with a single arg.
8957cat >conftest.$ac_ext <<_ACEOF
8958#line $LINENO "configure"
8959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
8964$ac_includes_default
8965int
8966main ()
8967{
8968getpgrp (0);
8969 ;
8970 return 0;
8971}
8972_ACEOF
8973rm -f conftest.$ac_objext
8974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -s conftest.$ac_objext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_func_getpgrp_void=no
8986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990ac_cv_func_getpgrp_void=yes
8991fi
8992rm -f conftest.$ac_objext conftest.$ac_ext
8993
8994fi
8995echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
8996echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
8997if test $ac_cv_func_getpgrp_void = yes; then
8998
8999cat >>confdefs.h <<\_ACEOF
9000@%:@define GETPGRP_VOID 1
9001_ACEOF
9002
9003fi
9004
9005
9006# Check for PAM libs
9007PAM_MSG="no"
9008
9009# Check whether --with-pam or --without-pam was given.
9010if test "${with_pam+set}" = set; then
9011 withval="$with_pam"
9012
9013 if test "x$withval" != "xno" ; then
9014 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
9015 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
9016echo "$as_me: error: PAM headers not found" >&2;}
9017 { (exit 1); exit 1; }; }
9018 fi
9019
9020
9021echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9022echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9023if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025else
9026 ac_check_lib_save_LIBS=$LIBS
9027LIBS="-ldl $LIBS"
9028cat >conftest.$ac_ext <<_ACEOF
9029#line $LINENO "configure"
9030/* confdefs.h. */
9031_ACEOF
9032cat confdefs.h >>conftest.$ac_ext
9033cat >>conftest.$ac_ext <<_ACEOF
9034/* end confdefs.h. */
9035
9036/* Override any gcc2 internal prototype to avoid an error. */
9037#ifdef __cplusplus
9038extern "C"
9039#endif
9040/* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042char dlopen ();
9043int
9044main ()
9045{
9046dlopen ();
9047 ;
9048 return 0;
9049}
9050_ACEOF
9051rm -f conftest.$ac_objext conftest$ac_exeext
9052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_lib_dl_dlopen=yes
9064else
9065 echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068ac_cv_lib_dl_dlopen=no
9069fi
9070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9071LIBS=$ac_check_lib_save_LIBS
9072fi
9073echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9074echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9075if test $ac_cv_lib_dl_dlopen = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077@%:@define HAVE_LIBDL 1
9078_ACEOF
9079
9080 LIBS="-ldl $LIBS"
9081
9082fi
9083
9084
9085echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
9086echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
9087if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else
9090 ac_check_lib_save_LIBS=$LIBS
9091LIBS="-lpam $LIBS"
9092cat >conftest.$ac_ext <<_ACEOF
9093#line $LINENO "configure"
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099
9100/* Override any gcc2 internal prototype to avoid an error. */
9101#ifdef __cplusplus
9102extern "C"
9103#endif
9104/* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9106char pam_set_item ();
9107int
9108main ()
9109{
9110pam_set_item ();
9111 ;
9112 return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext conftest$ac_exeext
9116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_lib_pam_pam_set_item=yes
9128else
9129 echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132ac_cv_lib_pam_pam_set_item=no
9133fi
9134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9135LIBS=$ac_check_lib_save_LIBS
9136fi
9137echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
9138echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
9139if test $ac_cv_lib_pam_pam_set_item = yes; then
9140 cat >>confdefs.h <<_ACEOF
9141@%:@define HAVE_LIBPAM 1
9142_ACEOF
9143
9144 LIBS="-lpam $LIBS"
9145
9146else
9147 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
9148echo "$as_me: error: *** libpam missing" >&2;}
9149 { (exit 1); exit 1; }; }
9150fi
9151
9152
9153for ac_func in pam_getenvlist
9154do
9155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9156echo "$as_me:$LINENO: checking for $ac_func" >&5
9157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9158if eval "test \"\${$as_ac_var+set}\" = set"; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160else
9161 cat >conftest.$ac_ext <<_ACEOF
9162#line $LINENO "configure"
9163/* confdefs.h. */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h. */
9168/* System header to define __stub macros and hopefully few prototypes,
9169 which can conflict with char $ac_func (); below.
9170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9171 <limits.h> exists even on freestanding compilers. */
9172#ifdef __STDC__
9173# include <limits.h>
9174#else
9175# include <assert.h>
9176#endif
9177/* Override any gcc2 internal prototype to avoid an error. */
9178#ifdef __cplusplus
9179extern "C"
9180{
9181#endif
9182/* We use char because int might match the return type of a gcc2
9183 builtin and then its argument prototype would still apply. */
9184char $ac_func ();
9185/* The GNU C library defines this for functions which it implements
9186 to always fail with ENOSYS. Some functions are actually named
9187 something starting with __ and the normal name is an alias. */
9188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9189choke me
9190#else
9191char (*f) () = $ac_func;
9192#endif
9193#ifdef __cplusplus
9194}
9195#endif
9196
9197int
9198main ()
9199{
9200return f != $ac_func;
9201 ;
9202 return 0;
9203}
9204_ACEOF
9205rm -f conftest.$ac_objext conftest$ac_exeext
9206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9207 (eval $ac_link) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } &&
9211 { ac_try='test -s conftest$ac_exeext'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 eval "$as_ac_var=yes"
9218else
9219 echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
9222eval "$as_ac_var=no"
9223fi
9224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9225fi
9226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9228if test `eval echo '${'$as_ac_var'}'` = yes; then
9229 cat >>confdefs.h <<_ACEOF
9230@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9231_ACEOF
9232
9233fi
9234done
9235
9236
9237 disable_shadow=yes
9238 PAM_MSG="yes"
9239
9240 cat >>confdefs.h <<\_ACEOF
9241@%:@define USE_PAM 1
9242_ACEOF
9243
9244 if test $ac_cv_lib_dl_dlopen = yes; then
9245 LIBPAM="-lpam -ldl"
9246 else
9247 LIBPAM="-lpam"
9248 fi
9249
9250 fi
9251
9252
9253fi;
9254
9255# Check for older PAM
9256if test "x$PAM_MSG" = "xyes" ; then
9257 # Check PAM strerror arguments (old PAM)
9258 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
9259echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
9260 cat >conftest.$ac_ext <<_ACEOF
9261#line $LINENO "configure"
9262/* confdefs.h. */
9263_ACEOF
9264cat confdefs.h >>conftest.$ac_ext
9265cat >>conftest.$ac_ext <<_ACEOF
9266/* end confdefs.h. */
9267
9268#include <stdlib.h>
9269#include <security/pam_appl.h>
9270
9271int
9272main ()
9273{
9274(void)pam_strerror((pam_handle_t *)NULL, -1);
9275 ;
9276 return 0;
9277}
9278_ACEOF
9279rm -f conftest.$ac_objext
9280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9281 (eval $ac_compile) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -s conftest.$ac_objext'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 echo "$as_me:$LINENO: result: no" >&5
9292echo "${ECHO_T}no" >&6
9293else
9294 echo "$as_me: failed program was:" >&5
9295sed 's/^/| /' conftest.$ac_ext >&5
9296
9297
9298 cat >>confdefs.h <<\_ACEOF
9299@%:@define HAVE_OLD_PAM 1
9300_ACEOF
9301
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 PAM_MSG="yes (old library)"
9305
9306
9307fi
9308rm -f conftest.$ac_objext conftest.$ac_ext
9309fi
9310
9311# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
9312# because the system crypt() is more featureful.
9313if test "x$check_for_libcrypt_before" = "x1"; then
9314
9315echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9316echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9317if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9319else
9320 ac_check_lib_save_LIBS=$LIBS
9321LIBS="-lcrypt $LIBS"
9322cat >conftest.$ac_ext <<_ACEOF
9323#line $LINENO "configure"
9324/* confdefs.h. */
9325_ACEOF
9326cat confdefs.h >>conftest.$ac_ext
9327cat >>conftest.$ac_ext <<_ACEOF
9328/* end confdefs.h. */
9329
9330/* Override any gcc2 internal prototype to avoid an error. */
9331#ifdef __cplusplus
9332extern "C"
9333#endif
9334/* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9336char crypt ();
9337int
9338main ()
9339{
9340crypt ();
9341 ;
9342 return 0;
9343}
9344_ACEOF
9345rm -f conftest.$ac_objext conftest$ac_exeext
9346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347 (eval $ac_link) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -s conftest$ac_exeext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_lib_crypt_crypt=yes
9358else
9359 echo "$as_me: failed program was:" >&5
9360sed 's/^/| /' conftest.$ac_ext >&5
9361
9362ac_cv_lib_crypt_crypt=no
9363fi
9364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9365LIBS=$ac_check_lib_save_LIBS
9366fi
9367echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9368echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9369if test $ac_cv_lib_crypt_crypt = yes; then
9370 cat >>confdefs.h <<_ACEOF
9371@%:@define HAVE_LIBCRYPT 1
9372_ACEOF
9373
9374 LIBS="-lcrypt $LIBS"
9375
9376fi
9377
9378fi
9379
9380# Search for OpenSSL
9381saved_CPPFLAGS="$CPPFLAGS"
9382saved_LDFLAGS="$LDFLAGS"
9383
9384# Check whether --with-ssl-dir or --without-ssl-dir was given.
9385if test "${with_ssl_dir+set}" = set; then
9386 withval="$with_ssl_dir"
9387
9388 if test "x$withval" != "xno" ; then
9389 if test -d "$withval/lib"; then
9390 if test -n "${need_dash_r}"; then
9391 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9392 else
9393 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9394 fi
9395 else
9396 if test -n "${need_dash_r}"; then
9397 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9398 else
9399 LDFLAGS="-L${withval} ${LDFLAGS}"
9400 fi
9401 fi
9402 if test -d "$withval/include"; then
9403 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9404 else
9405 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9406 fi
9407 fi
9408
9409
9410fi;
9411LIBS="$LIBS -lcrypto"
9412cat >conftest.$ac_ext <<_ACEOF
9413#line $LINENO "configure"
9414/* confdefs.h. */
9415_ACEOF
9416cat confdefs.h >>conftest.$ac_ext
9417cat >>conftest.$ac_ext <<_ACEOF
9418/* end confdefs.h. */
9419
9420/* Override any gcc2 internal prototype to avoid an error. */
9421#ifdef __cplusplus
9422extern "C"
9423#endif
9424/* We use char because int might match the return type of a gcc2
9425 builtin and then its argument prototype would still apply. */
9426char RAND_add ();
9427int
9428main ()
9429{
9430RAND_add ();
9431 ;
9432 return 0;
9433}
9434_ACEOF
9435rm -f conftest.$ac_objext conftest$ac_exeext
9436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9437 (eval $ac_link) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -s conftest$ac_exeext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9447 cat >>confdefs.h <<\_ACEOF
9448@%:@define HAVE_OPENSSL 1
9449_ACEOF
9450
9451else
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455
9456 if test -n "${need_dash_r}"; then
9457 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
9458 else
9459 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
9460 fi
9461 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
9462 cat >conftest.$ac_ext <<_ACEOF
9463#line $LINENO "configure"
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
9469
9470/* Override any gcc2 internal prototype to avoid an error. */
9471#ifdef __cplusplus
9472extern "C"
9473#endif
9474/* We use char because int might match the return type of a gcc2
9475 builtin and then its argument prototype would still apply. */
9476char RAND_add ();
9477int
9478main ()
9479{
9480RAND_add ();
9481 ;
9482 return 0;
9483}
9484_ACEOF
9485rm -f conftest.$ac_objext conftest$ac_exeext
9486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 (eval $ac_try) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 cat >>confdefs.h <<\_ACEOF
9498@%:@define HAVE_OPENSSL 1
9499_ACEOF
9500
9501else
9502 echo "$as_me: failed program was:" >&5
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
9505
9506 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
9507echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
9508 { (exit 1); exit 1; }; }
9509
9510
9511fi
9512rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9513
9514
9515fi
9516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9517
9518# Determine OpenSSL header version
9519echo "$as_me:$LINENO: checking OpenSSL header version" >&5
9520echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
9521if test "$cross_compiling" = yes; then
9522 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9523See \`config.log' for more details." >&5
9524echo "$as_me: error: cannot run test program while cross compiling
9525See \`config.log' for more details." >&2;}
9526 { (exit 1); exit 1; }; }
9527else
9528 cat >conftest.$ac_ext <<_ACEOF
9529#line $LINENO "configure"
9530/* confdefs.h. */
9531_ACEOF
9532cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */
9535
9536#include <stdio.h>
9537#include <string.h>
9538#include <openssl/opensslv.h>
9539#define DATA "conftest.sslincver"
9540int main(void) {
9541 FILE *fd;
9542 int rc;
9543
9544 fd = fopen(DATA,"w");
9545 if(fd == NULL)
9546 exit(1);
9547
9548 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
9549 exit(1);
9550
9551 exit(0);
9552}
9553
9554_ACEOF
9555rm -f conftest$ac_exeext
9556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566
9567 ssl_header_ver=`cat conftest.sslincver`
9568 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
9569echo "${ECHO_T}$ssl_header_ver" >&6
9570
9571else
9572 echo "$as_me: program exited with status $ac_status" >&5
9573echo "$as_me: failed program was:" >&5
9574sed 's/^/| /' conftest.$ac_ext >&5
9575
9576( exit $ac_status )
9577
9578 echo "$as_me:$LINENO: result: not found" >&5
9579echo "${ECHO_T}not found" >&6
9580 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
9581echo "$as_me: error: OpenSSL version header not found." >&2;}
9582 { (exit 1); exit 1; }; }
9583
9584
9585fi
9586rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9587fi
9588
9589# Determine OpenSSL library version
9590echo "$as_me:$LINENO: checking OpenSSL library version" >&5
9591echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
9592if test "$cross_compiling" = yes; then
9593 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9594See \`config.log' for more details." >&5
9595echo "$as_me: error: cannot run test program while cross compiling
9596See \`config.log' for more details." >&2;}
9597 { (exit 1); exit 1; }; }
9598else
9599 cat >conftest.$ac_ext <<_ACEOF
9600#line $LINENO "configure"
9601/* confdefs.h. */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h. */
9606
9607#include <stdio.h>
9608#include <string.h>
9609#include <openssl/opensslv.h>
9610#include <openssl/crypto.h>
9611#define DATA "conftest.ssllibver"
9612int main(void) {
9613 FILE *fd;
9614 int rc;
9615
9616 fd = fopen(DATA,"w");
9617 if(fd == NULL)
9618 exit(1);
9619
9620 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
9621 exit(1);
9622
9623 exit(0);
9624}
9625
9626_ACEOF
9627rm -f conftest$ac_exeext
9628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629 (eval $ac_link) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638
9639 ssl_library_ver=`cat conftest.ssllibver`
9640 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
9641echo "${ECHO_T}$ssl_library_ver" >&6
9642
9643else
9644 echo "$as_me: program exited with status $ac_status" >&5
9645echo "$as_me: failed program was:" >&5
9646sed 's/^/| /' conftest.$ac_ext >&5
9647
9648( exit $ac_status )
9649
9650 echo "$as_me:$LINENO: result: not found" >&5
9651echo "${ECHO_T}not found" >&6
9652 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
9653echo "$as_me: error: OpenSSL library not found." >&2;}
9654 { (exit 1); exit 1; }; }
9655
9656
9657fi
9658rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9659fi
9660
9661# Sanity check OpenSSL headers
9662echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
9663echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
9664if test "$cross_compiling" = yes; then
9665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9666See \`config.log' for more details." >&5
9667echo "$as_me: error: cannot run test program while cross compiling
9668See \`config.log' for more details." >&2;}
9669 { (exit 1); exit 1; }; }
9670else
9671 cat >conftest.$ac_ext <<_ACEOF
9672#line $LINENO "configure"
9673/* confdefs.h. */
9674_ACEOF
9675cat confdefs.h >>conftest.$ac_ext
9676cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h. */
9678
9679#include <string.h>
9680#include <openssl/opensslv.h>
9681int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
9682
9683_ACEOF
9684rm -f conftest$ac_exeext
9685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695
9696 echo "$as_me:$LINENO: result: yes" >&5
9697echo "${ECHO_T}yes" >&6
9698
9699else
9700 echo "$as_me: program exited with status $ac_status" >&5
9701echo "$as_me: failed program was:" >&5
9702sed 's/^/| /' conftest.$ac_ext >&5
9703
9704( exit $ac_status )
9705
9706 echo "$as_me:$LINENO: result: no" >&5
9707echo "${ECHO_T}no" >&6
9708 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
9709echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
9710 { (exit 1); exit 1; }; }
9711
9712
9713fi
9714rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9715fi
9716
9717# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
9718# version in OpenSSL. Skip this for PAM
9719if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
9720 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9721echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9722if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724else
9725 ac_check_lib_save_LIBS=$LIBS
9726LIBS="-lcrypt $LIBS"
9727cat >conftest.$ac_ext <<_ACEOF
9728#line $LINENO "configure"
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
9734
9735/* Override any gcc2 internal prototype to avoid an error. */
9736#ifdef __cplusplus
9737extern "C"
9738#endif
9739/* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9741char crypt ();
9742int
9743main ()
9744{
9745crypt ();
9746 ;
9747 return 0;
9748}
9749_ACEOF
9750rm -f conftest.$ac_objext conftest$ac_exeext
9751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 (eval $ac_try) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_lib_crypt_crypt=yes
9763else
9764 echo "$as_me: failed program was:" >&5
9765sed 's/^/| /' conftest.$ac_ext >&5
9766
9767ac_cv_lib_crypt_crypt=no
9768fi
9769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9770LIBS=$ac_check_lib_save_LIBS
9771fi
9772echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9773echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9774if test $ac_cv_lib_crypt_crypt = yes; then
9775 LIBS="$LIBS -lcrypt"
9776fi
9777
9778fi
9779
9780
9781### Configure cryptographic random number support
9782
9783# Check wheter OpenSSL seeds itself
9784echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
9785echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
9786if test "$cross_compiling" = yes; then
9787 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9788See \`config.log' for more details." >&5
9789echo "$as_me: error: cannot run test program while cross compiling
9790See \`config.log' for more details." >&2;}
9791 { (exit 1); exit 1; }; }
9792else
9793 cat >conftest.$ac_ext <<_ACEOF
9794#line $LINENO "configure"
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
9800
9801#include <string.h>
9802#include <openssl/rand.h>
9803int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
9804
9805_ACEOF
9806rm -f conftest$ac_exeext
9807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9808 (eval $ac_link) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817
9818 OPENSSL_SEEDS_ITSELF=yes
9819 echo "$as_me:$LINENO: result: yes" >&5
9820echo "${ECHO_T}yes" >&6
9821
9822else
9823 echo "$as_me: program exited with status $ac_status" >&5
9824echo "$as_me: failed program was:" >&5
9825sed 's/^/| /' conftest.$ac_ext >&5
9826
9827( exit $ac_status )
9828
9829 echo "$as_me:$LINENO: result: no" >&5
9830echo "${ECHO_T}no" >&6
9831 # Default to use of the rand helper if OpenSSL doesn't
9832 # seed itself
9833 USE_RAND_HELPER=yes
9834
9835
9836fi
9837rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9838fi
9839
9840
9841# Do we want to force the use of the rand helper?
9842
9843# Check whether --with-rand-helper or --without-rand-helper was given.
9844if test "${with_rand_helper+set}" = set; then
9845 withval="$with_rand_helper"
9846
9847 if test "x$withval" = "xno" ; then
9848 # Force use of OpenSSL's internal RNG, even if
9849 # the previous test showed it to be unseeded.
9850 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
9851 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
9852echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
9853 OPENSSL_SEEDS_ITSELF=yes
9854 USE_RAND_HELPER=""
9855 fi
9856 else
9857 USE_RAND_HELPER=yes
9858 fi
9859
9860fi;
9861
9862# Which randomness source do we use?
9863if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
9864 # OpenSSL only
9865 cat >>confdefs.h <<\_ACEOF
9866@%:@define OPENSSL_PRNG_ONLY 1
9867_ACEOF
9868
9869 RAND_MSG="OpenSSL internal ONLY"
9870 INSTALL_SSH_RAND_HELPER=""
9871elif test ! -z "$USE_RAND_HELPER" ; then
9872 # install rand helper
9873 RAND_MSG="ssh-rand-helper"
9874 INSTALL_SSH_RAND_HELPER="yes"
9875fi
9876
9877
9878### Configuration of ssh-rand-helper
9879
9880# PRNGD TCP socket
9881
9882# Check whether --with-prngd-port or --without-prngd-port was given.
9883if test "${with_prngd_port+set}" = set; then
9884 withval="$with_prngd_port"
9885
9886 case "$withval" in
9887 no)
9888 withval=""
9889 ;;
9890 [0-9]*)
9891 ;;
9892 *)
9893 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
9894echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
9895 { (exit 1); exit 1; }; }
9896 ;;
9897 esac
9898 if test ! -z "$withval" ; then
9899 PRNGD_PORT="$withval"
9900 cat >>confdefs.h <<_ACEOF
9901@%:@define PRNGD_PORT $PRNGD_PORT
9902_ACEOF
9903
9904 fi
9905
9906
9907fi;
9908
9909# PRNGD Unix domain socket
9910
9911# Check whether --with-prngd-socket or --without-prngd-socket was given.
9912if test "${with_prngd_socket+set}" = set; then
9913 withval="$with_prngd_socket"
9914
9915 case "$withval" in
9916 yes)
9917 withval="/var/run/egd-pool"
9918 ;;
9919 no)
9920 withval=""
9921 ;;
9922 /*)
9923 ;;
9924 *)
9925 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
9926echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
9927 { (exit 1); exit 1; }; }
9928 ;;
9929 esac
9930
9931 if test ! -z "$withval" ; then
9932 if test ! -z "$PRNGD_PORT" ; then
9933 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
9934echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
9935 { (exit 1); exit 1; }; }
9936 fi
9937 if test ! -r "$withval" ; then
9938 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
9939echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
9940 fi
9941 PRNGD_SOCKET="$withval"
9942 cat >>confdefs.h <<_ACEOF
9943@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
9944_ACEOF
9945
9946 fi
9947
9948else
9949
9950 # Check for existing socket only if we don't have a random device already
9951 if test "$USE_RAND_HELPER" = yes ; then
9952 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
9953echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
9954 # Insert other locations here
9955 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
9956 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
9957 PRNGD_SOCKET="$sock"
9958 cat >>confdefs.h <<_ACEOF
9959@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
9960_ACEOF
9961
9962 break;
9963 fi
9964 done
9965 if test ! -z "$PRNGD_SOCKET" ; then
9966 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
9967echo "${ECHO_T}$PRNGD_SOCKET" >&6
9968 else
9969 echo "$as_me:$LINENO: result: not found" >&5
9970echo "${ECHO_T}not found" >&6
9971 fi
9972 fi
9973
9974
9975fi;
9976
9977# Change default command timeout for hashing entropy source
9978entropy_timeout=200
9979
9980# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
9981if test "${with_entropy_timeout+set}" = set; then
9982 withval="$with_entropy_timeout"
9983
9984 if test "x$withval" != "xno" ; then
9985 entropy_timeout=$withval
9986 fi
9987
9988
9989fi;
9990cat >>confdefs.h <<_ACEOF
9991@%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
9992_ACEOF
9993
9994
9995SSH_PRIVSEP_USER=sshd
9996
9997# Check whether --with-privsep-user or --without-privsep-user was given.
9998if test "${with_privsep_user+set}" = set; then
9999 withval="$with_privsep_user"
10000
10001 if test -n "$withval"; then
10002 SSH_PRIVSEP_USER=$withval
10003 fi
10004
10005
10006fi;
10007cat >>confdefs.h <<_ACEOF
10008@%:@define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
10009_ACEOF
10010
10011
10012
10013# We do this little dance with the search path to insure
10014# that programs that we select for use by installed programs
10015# (which may be run by the super-user) come from trusted
10016# locations before they come from the user's private area.
10017# This should help avoid accidentally configuring some
10018# random version of a program in someone's personal bin.
10019
10020OPATH=$PATH
10021PATH=/bin:/usr/bin
10022test -h /bin 2> /dev/null && PATH=/usr/bin
10023test -d /sbin && PATH=$PATH:/sbin
10024test -d /usr/sbin && PATH=$PATH:/usr/sbin
10025PATH=$PATH:/etc:$OPATH
10026
10027# These programs are used by the command hashing source to gather entropy
10028
10029 # Extract the first word of "ls", so it can be a program name with args.
10030set dummy ls; ac_word=$2
10031echo "$as_me:$LINENO: checking for $ac_word" >&5
10032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10033if test "${ac_cv_path_PROG_LS+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035else
10036 case $PROG_LS in
10037 [\\/]* | ?:[\\/]*)
10038 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
10039 ;;
10040 *)
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042for as_dir in $PATH
10043do
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
10049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10050 break 2
10051 fi
10052done
10053done
10054
10055 ;;
10056esac
10057fi
10058PROG_LS=$ac_cv_path_PROG_LS
10059
10060if test -n "$PROG_LS"; then
10061 echo "$as_me:$LINENO: result: $PROG_LS" >&5
10062echo "${ECHO_T}$PROG_LS" >&6
10063else
10064 echo "$as_me:$LINENO: result: no" >&5
10065echo "${ECHO_T}no" >&6
10066fi
10067
10068 if test -z "$PROG_LS" ; then
10069 PROG_LS="undef"
10070 fi
10071
10072
10073
10074 # Extract the first word of "netstat", so it can be a program name with args.
10075set dummy netstat; ac_word=$2
10076echo "$as_me:$LINENO: checking for $ac_word" >&5
10077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10078if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080else
10081 case $PROG_NETSTAT in
10082 [\\/]* | ?:[\\/]*)
10083 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
10084 ;;
10085 *)
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087for as_dir in $PATH
10088do
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
10094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10096 fi
10097done
10098done
10099
10100 ;;
10101esac
10102fi
10103PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
10104
10105if test -n "$PROG_NETSTAT"; then
10106 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
10107echo "${ECHO_T}$PROG_NETSTAT" >&6
10108else
10109 echo "$as_me:$LINENO: result: no" >&5
10110echo "${ECHO_T}no" >&6
10111fi
10112
10113 if test -z "$PROG_NETSTAT" ; then
10114 PROG_NETSTAT="undef"
10115 fi
10116
10117
10118
10119 # Extract the first word of "arp", so it can be a program name with args.
10120set dummy arp; ac_word=$2
10121echo "$as_me:$LINENO: checking for $ac_word" >&5
10122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10123if test "${ac_cv_path_PROG_ARP+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126 case $PROG_ARP in
10127 [\\/]* | ?:[\\/]*)
10128 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
10129 ;;
10130 *)
10131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132for as_dir in $PATH
10133do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
10139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 break 2
10141 fi
10142done
10143done
10144
10145 ;;
10146esac
10147fi
10148PROG_ARP=$ac_cv_path_PROG_ARP
10149
10150if test -n "$PROG_ARP"; then
10151 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
10152echo "${ECHO_T}$PROG_ARP" >&6
10153else
10154 echo "$as_me:$LINENO: result: no" >&5
10155echo "${ECHO_T}no" >&6
10156fi
10157
10158 if test -z "$PROG_ARP" ; then
10159 PROG_ARP="undef"
10160 fi
10161
10162
10163
10164 # Extract the first word of "ifconfig", so it can be a program name with args.
10165set dummy ifconfig; ac_word=$2
10166echo "$as_me:$LINENO: checking for $ac_word" >&5
10167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10168if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171 case $PROG_IFCONFIG in
10172 [\\/]* | ?:[\\/]*)
10173 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
10174 ;;
10175 *)
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
10184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187done
10188done
10189
10190 ;;
10191esac
10192fi
10193PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
10194
10195if test -n "$PROG_IFCONFIG"; then
10196 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
10197echo "${ECHO_T}$PROG_IFCONFIG" >&6
10198else
10199 echo "$as_me:$LINENO: result: no" >&5
10200echo "${ECHO_T}no" >&6
10201fi
10202
10203 if test -z "$PROG_IFCONFIG" ; then
10204 PROG_IFCONFIG="undef"
10205 fi
10206
10207
10208
10209 # Extract the first word of "jstat", so it can be a program name with args.
10210set dummy jstat; ac_word=$2
10211echo "$as_me:$LINENO: checking for $ac_word" >&5
10212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10213if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 case $PROG_JSTAT in
10217 [\\/]* | ?:[\\/]*)
10218 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
10219 ;;
10220 *)
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222for as_dir in $PATH
10223do
10224 IFS=$as_save_IFS
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
10229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 break 2
10231 fi
10232done
10233done
10234
10235 ;;
10236esac
10237fi
10238PROG_JSTAT=$ac_cv_path_PROG_JSTAT
10239
10240if test -n "$PROG_JSTAT"; then
10241 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
10242echo "${ECHO_T}$PROG_JSTAT" >&6
10243else
10244 echo "$as_me:$LINENO: result: no" >&5
10245echo "${ECHO_T}no" >&6
10246fi
10247
10248 if test -z "$PROG_JSTAT" ; then
10249 PROG_JSTAT="undef"
10250 fi
10251
10252
10253
10254 # Extract the first word of "ps", so it can be a program name with args.
10255set dummy ps; ac_word=$2
10256echo "$as_me:$LINENO: checking for $ac_word" >&5
10257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10258if test "${ac_cv_path_PROG_PS+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260else
10261 case $PROG_PS in
10262 [\\/]* | ?:[\\/]*)
10263 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
10264 ;;
10265 *)
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267for as_dir in $PATH
10268do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
10274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10276 fi
10277done
10278done
10279
10280 ;;
10281esac
10282fi
10283PROG_PS=$ac_cv_path_PROG_PS
10284
10285if test -n "$PROG_PS"; then
10286 echo "$as_me:$LINENO: result: $PROG_PS" >&5
10287echo "${ECHO_T}$PROG_PS" >&6
10288else
10289 echo "$as_me:$LINENO: result: no" >&5
10290echo "${ECHO_T}no" >&6
10291fi
10292
10293 if test -z "$PROG_PS" ; then
10294 PROG_PS="undef"
10295 fi
10296
10297
10298
10299 # Extract the first word of "sar", so it can be a program name with args.
10300set dummy sar; ac_word=$2
10301echo "$as_me:$LINENO: checking for $ac_word" >&5
10302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10303if test "${ac_cv_path_PROG_SAR+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306 case $PROG_SAR in
10307 [\\/]* | ?:[\\/]*)
10308 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
10309 ;;
10310 *)
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
10319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322done
10323done
10324
10325 ;;
10326esac
10327fi
10328PROG_SAR=$ac_cv_path_PROG_SAR
10329
10330if test -n "$PROG_SAR"; then
10331 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
10332echo "${ECHO_T}$PROG_SAR" >&6
10333else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336fi
10337
10338 if test -z "$PROG_SAR" ; then
10339 PROG_SAR="undef"
10340 fi
10341
10342
10343
10344 # Extract the first word of "w", so it can be a program name with args.
10345set dummy w; ac_word=$2
10346echo "$as_me:$LINENO: checking for $ac_word" >&5
10347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348if test "${ac_cv_path_PROG_W+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 case $PROG_W in
10352 [\\/]* | ?:[\\/]*)
10353 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
10354 ;;
10355 *)
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357for as_dir in $PATH
10358do
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
10364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10366 fi
10367done
10368done
10369
10370 ;;
10371esac
10372fi
10373PROG_W=$ac_cv_path_PROG_W
10374
10375if test -n "$PROG_W"; then
10376 echo "$as_me:$LINENO: result: $PROG_W" >&5
10377echo "${ECHO_T}$PROG_W" >&6
10378else
10379 echo "$as_me:$LINENO: result: no" >&5
10380echo "${ECHO_T}no" >&6
10381fi
10382
10383 if test -z "$PROG_W" ; then
10384 PROG_W="undef"
10385 fi
10386
10387
10388
10389 # Extract the first word of "who", so it can be a program name with args.
10390set dummy who; ac_word=$2
10391echo "$as_me:$LINENO: checking for $ac_word" >&5
10392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10393if test "${ac_cv_path_PROG_WHO+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10395else
10396 case $PROG_WHO in
10397 [\\/]* | ?:[\\/]*)
10398 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
10399 ;;
10400 *)
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
10409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10411 fi
10412done
10413done
10414
10415 ;;
10416esac
10417fi
10418PROG_WHO=$ac_cv_path_PROG_WHO
10419
10420if test -n "$PROG_WHO"; then
10421 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
10422echo "${ECHO_T}$PROG_WHO" >&6
10423else
10424 echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
10426fi
10427
10428 if test -z "$PROG_WHO" ; then
10429 PROG_WHO="undef"
10430 fi
10431
10432
10433
10434 # Extract the first word of "last", so it can be a program name with args.
10435set dummy last; ac_word=$2
10436echo "$as_me:$LINENO: checking for $ac_word" >&5
10437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10438if test "${ac_cv_path_PROG_LAST+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
10441 case $PROG_LAST in
10442 [\\/]* | ?:[\\/]*)
10443 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
10444 ;;
10445 *)
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
10454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10455 break 2
10456 fi
10457done
10458done
10459
10460 ;;
10461esac
10462fi
10463PROG_LAST=$ac_cv_path_PROG_LAST
10464
10465if test -n "$PROG_LAST"; then
10466 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
10467echo "${ECHO_T}$PROG_LAST" >&6
10468else
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
10471fi
10472
10473 if test -z "$PROG_LAST" ; then
10474 PROG_LAST="undef"
10475 fi
10476
10477
10478
10479 # Extract the first word of "lastlog", so it can be a program name with args.
10480set dummy lastlog; ac_word=$2
10481echo "$as_me:$LINENO: checking for $ac_word" >&5
10482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10483if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 case $PROG_LASTLOG in
10487 [\\/]* | ?:[\\/]*)
10488 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
10489 ;;
10490 *)
10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
10499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502done
10503done
10504
10505 ;;
10506esac
10507fi
10508PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
10509
10510if test -n "$PROG_LASTLOG"; then
10511 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
10512echo "${ECHO_T}$PROG_LASTLOG" >&6
10513else
10514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
10516fi
10517
10518 if test -z "$PROG_LASTLOG" ; then
10519 PROG_LASTLOG="undef"
10520 fi
10521
10522
10523
10524 # Extract the first word of "df", so it can be a program name with args.
10525set dummy df; ac_word=$2
10526echo "$as_me:$LINENO: checking for $ac_word" >&5
10527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10528if test "${ac_cv_path_PROG_DF+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531 case $PROG_DF in
10532 [\\/]* | ?:[\\/]*)
10533 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
10534 ;;
10535 *)
10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10543 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
10544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548done
10549
10550 ;;
10551esac
10552fi
10553PROG_DF=$ac_cv_path_PROG_DF
10554
10555if test -n "$PROG_DF"; then
10556 echo "$as_me:$LINENO: result: $PROG_DF" >&5
10557echo "${ECHO_T}$PROG_DF" >&6
10558else
10559 echo "$as_me:$LINENO: result: no" >&5
10560echo "${ECHO_T}no" >&6
10561fi
10562
10563 if test -z "$PROG_DF" ; then
10564 PROG_DF="undef"
10565 fi
10566
10567
10568
10569 # Extract the first word of "vmstat", so it can be a program name with args.
10570set dummy vmstat; ac_word=$2
10571echo "$as_me:$LINENO: checking for $ac_word" >&5
10572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10573if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 case $PROG_VMSTAT in
10577 [\\/]* | ?:[\\/]*)
10578 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
10579 ;;
10580 *)
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $PATH
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592done
10593done
10594
10595 ;;
10596esac
10597fi
10598PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
10599
10600if test -n "$PROG_VMSTAT"; then
10601 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
10602echo "${ECHO_T}$PROG_VMSTAT" >&6
10603else
10604 echo "$as_me:$LINENO: result: no" >&5
10605echo "${ECHO_T}no" >&6
10606fi
10607
10608 if test -z "$PROG_VMSTAT" ; then
10609 PROG_VMSTAT="undef"
10610 fi
10611
10612
10613
10614 # Extract the first word of "uptime", so it can be a program name with args.
10615set dummy uptime; ac_word=$2
10616echo "$as_me:$LINENO: checking for $ac_word" >&5
10617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10618if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620else
10621 case $PROG_UPTIME in
10622 [\\/]* | ?:[\\/]*)
10623 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
10624 ;;
10625 *)
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639
10640 ;;
10641esac
10642fi
10643PROG_UPTIME=$ac_cv_path_PROG_UPTIME
10644
10645if test -n "$PROG_UPTIME"; then
10646 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
10647echo "${ECHO_T}$PROG_UPTIME" >&6
10648else
10649 echo "$as_me:$LINENO: result: no" >&5
10650echo "${ECHO_T}no" >&6
10651fi
10652
10653 if test -z "$PROG_UPTIME" ; then
10654 PROG_UPTIME="undef"
10655 fi
10656
10657
10658
10659 # Extract the first word of "ipcs", so it can be a program name with args.
10660set dummy ipcs; ac_word=$2
10661echo "$as_me:$LINENO: checking for $ac_word" >&5
10662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10663if test "${ac_cv_path_PROG_IPCS+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666 case $PROG_IPCS in
10667 [\\/]* | ?:[\\/]*)
10668 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
10669 ;;
10670 *)
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
10679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683done
10684
10685 ;;
10686esac
10687fi
10688PROG_IPCS=$ac_cv_path_PROG_IPCS
10689
10690if test -n "$PROG_IPCS"; then
10691 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
10692echo "${ECHO_T}$PROG_IPCS" >&6
10693else
10694 echo "$as_me:$LINENO: result: no" >&5
10695echo "${ECHO_T}no" >&6
10696fi
10697
10698 if test -z "$PROG_IPCS" ; then
10699 PROG_IPCS="undef"
10700 fi
10701
10702
10703
10704 # Extract the first word of "tail", so it can be a program name with args.
10705set dummy tail; ac_word=$2
10706echo "$as_me:$LINENO: checking for $ac_word" >&5
10707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10708if test "${ac_cv_path_PROG_TAIL+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 case $PROG_TAIL in
10712 [\\/]* | ?:[\\/]*)
10713 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
10714 ;;
10715 *)
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728done
10729
10730 ;;
10731esac
10732fi
10733PROG_TAIL=$ac_cv_path_PROG_TAIL
10734
10735if test -n "$PROG_TAIL"; then
10736 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
10737echo "${ECHO_T}$PROG_TAIL" >&6
10738else
10739 echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6
10741fi
10742
10743 if test -z "$PROG_TAIL" ; then
10744 PROG_TAIL="undef"
10745 fi
10746
10747
10748# restore PATH
10749PATH=$OPATH
10750
10751# Where does ssh-rand-helper get its randomness from?
10752INSTALL_SSH_PRNG_CMDS=""
10753if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
10754 if test ! -z "$PRNGD_PORT" ; then
10755 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
10756 elif test ! -z "$PRNGD_SOCKET" ; then
10757 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
10758 else
10759 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
10760 RAND_HELPER_CMDHASH=yes
10761 INSTALL_SSH_PRNG_CMDS="yes"
10762 fi
10763fi
10764
10765
10766
10767# Cheap hack to ensure NEWS-OS libraries are arranged right.
10768if test ! -z "$SONY" ; then
10769 LIBS="$LIBS -liberty";
10770fi
10771
10772# Checks for data types
10773echo "$as_me:$LINENO: checking for char" >&5
10774echo $ECHO_N "checking for char... $ECHO_C" >&6
10775if test "${ac_cv_type_char+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 cat >conftest.$ac_ext <<_ACEOF
10779#line $LINENO "configure"
10780/* confdefs.h. */
10781_ACEOF
10782cat confdefs.h >>conftest.$ac_ext
10783cat >>conftest.$ac_ext <<_ACEOF
10784/* end confdefs.h. */
10785$ac_includes_default
10786int
10787main ()
10788{
10789if ((char *) 0)
10790 return 0;
10791if (sizeof (char))
10792 return 0;
10793 ;
10794 return 0;
10795}
10796_ACEOF
10797rm -f conftest.$ac_objext
10798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10799 (eval $ac_compile) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
10803 { ac_try='test -s conftest.$ac_objext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ac_cv_type_char=yes
10810else
10811 echo "$as_me: failed program was:" >&5
10812sed 's/^/| /' conftest.$ac_ext >&5
10813
10814ac_cv_type_char=no
10815fi
10816rm -f conftest.$ac_objext conftest.$ac_ext
10817fi
10818echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
10819echo "${ECHO_T}$ac_cv_type_char" >&6
10820
10821echo "$as_me:$LINENO: checking size of char" >&5
10822echo $ECHO_N "checking size of char... $ECHO_C" >&6
10823if test "${ac_cv_sizeof_char+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825else
10826 if test "$ac_cv_type_char" = yes; then
10827 # The cast to unsigned long works around a bug in the HP C Compiler
10828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10830 # This bug is HP SR number 8606223364.
10831 if test "$cross_compiling" = yes; then
10832 # Depending upon the size, compute the lo and hi bounds.
10833cat >conftest.$ac_ext <<_ACEOF
10834#line $LINENO "configure"
10835/* confdefs.h. */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h. */
10840$ac_includes_default
10841int
10842main ()
10843{
10844static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
10845test_array @<:@0@:>@ = 0
10846
10847 ;
10848 return 0;
10849}
10850_ACEOF
10851rm -f conftest.$ac_objext
10852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -s conftest.$ac_objext'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_lo=0 ac_mid=0
10864 while :; do
10865 cat >conftest.$ac_ext <<_ACEOF
10866#line $LINENO "configure"
10867/* confdefs.h. */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h. */
10872$ac_includes_default
10873int
10874main ()
10875{
10876static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
10877test_array @<:@0@:>@ = 0
10878
10879 ;
10880 return 0;
10881}
10882_ACEOF
10883rm -f conftest.$ac_objext
10884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10885 (eval $ac_compile) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_hi=$ac_mid; break
10896else
10897 echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
10900ac_lo=`expr $ac_mid + 1`
10901 if test $ac_lo -le $ac_mid; then
10902 ac_lo= ac_hi=
10903 break
10904 fi
10905 ac_mid=`expr 2 '*' $ac_mid + 1`
10906fi
10907rm -f conftest.$ac_objext conftest.$ac_ext
10908 done
10909else
10910 echo "$as_me: failed program was:" >&5
10911sed 's/^/| /' conftest.$ac_ext >&5
10912
10913cat >conftest.$ac_ext <<_ACEOF
10914#line $LINENO "configure"
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
10920$ac_includes_default
10921int
10922main ()
10923{
10924static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
10925test_array @<:@0@:>@ = 0
10926
10927 ;
10928 return 0;
10929}
10930_ACEOF
10931rm -f conftest.$ac_objext
10932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933 (eval $ac_compile) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 ac_hi=-1 ac_mid=-1
10944 while :; do
10945 cat >conftest.$ac_ext <<_ACEOF
10946#line $LINENO "configure"
10947/* confdefs.h. */
10948_ACEOF
10949cat confdefs.h >>conftest.$ac_ext
10950cat >>conftest.$ac_ext <<_ACEOF
10951/* end confdefs.h. */
10952$ac_includes_default
10953int
10954main ()
10955{
10956static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
10957test_array @<:@0@:>@ = 0
10958
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext
10964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965 (eval $ac_compile) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -s conftest.$ac_objext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_lo=$ac_mid; break
10976else
10977 echo "$as_me: failed program was:" >&5
10978sed 's/^/| /' conftest.$ac_ext >&5
10979
10980ac_hi=`expr '(' $ac_mid ')' - 1`
10981 if test $ac_mid -le $ac_hi; then
10982 ac_lo= ac_hi=
10983 break
10984 fi
10985 ac_mid=`expr 2 '*' $ac_mid`
10986fi
10987rm -f conftest.$ac_objext conftest.$ac_ext
10988 done
10989else
10990 echo "$as_me: failed program was:" >&5
10991sed 's/^/| /' conftest.$ac_ext >&5
10992
10993ac_lo= ac_hi=
10994fi
10995rm -f conftest.$ac_objext conftest.$ac_ext
10996fi
10997rm -f conftest.$ac_objext conftest.$ac_ext
10998# Binary search between lo and hi bounds.
10999while test "x$ac_lo" != "x$ac_hi"; do
11000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11001 cat >conftest.$ac_ext <<_ACEOF
11002#line $LINENO "configure"
11003/* confdefs.h. */
11004_ACEOF
11005cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h. */
11008$ac_includes_default
11009int
11010main ()
11011{
11012static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
11013test_array @<:@0@:>@ = 0
11014
11015 ;
11016 return 0;
11017}
11018_ACEOF
11019rm -f conftest.$ac_objext
11020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11021 (eval $ac_compile) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_hi=$ac_mid
11032else
11033 echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036ac_lo=`expr '(' $ac_mid ')' + 1`
11037fi
11038rm -f conftest.$ac_objext conftest.$ac_ext
11039done
11040case $ac_lo in
11041?*) ac_cv_sizeof_char=$ac_lo;;
11042'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11043See \`config.log' for more details." >&5
11044echo "$as_me: error: cannot compute sizeof (char), 77
11045See \`config.log' for more details." >&2;}
11046 { (exit 1); exit 1; }; } ;;
11047esac
11048else
11049 if test "$cross_compiling" = yes; then
11050 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11051See \`config.log' for more details." >&5
11052echo "$as_me: error: cannot run test program while cross compiling
11053See \`config.log' for more details." >&2;}
11054 { (exit 1); exit 1; }; }
11055else
11056 cat >conftest.$ac_ext <<_ACEOF
11057#line $LINENO "configure"
11058/* confdefs.h. */
11059_ACEOF
11060cat confdefs.h >>conftest.$ac_ext
11061cat >>conftest.$ac_ext <<_ACEOF
11062/* end confdefs.h. */
11063$ac_includes_default
11064long longval () { return (long) (sizeof (char)); }
11065unsigned long ulongval () { return (long) (sizeof (char)); }
11066@%:@include <stdio.h>
11067@%:@include <stdlib.h>
11068int
11069main ()
11070{
11071
11072 FILE *f = fopen ("conftest.val", "w");
11073 if (! f)
11074 exit (1);
11075 if (((long) (sizeof (char))) < 0)
11076 {
11077 long i = longval ();
11078 if (i != ((long) (sizeof (char))))
11079 exit (1);
11080 fprintf (f, "%ld\n", i);
11081 }
11082 else
11083 {
11084 unsigned long i = ulongval ();
11085 if (i != ((long) (sizeof (char))))
11086 exit (1);
11087 fprintf (f, "%lu\n", i);
11088 }
11089 exit (ferror (f) || fclose (f) != 0);
11090
11091 ;
11092 return 0;
11093}
11094_ACEOF
11095rm -f conftest$ac_exeext
11096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097 (eval $ac_link) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_cv_sizeof_char=`cat conftest.val`
11107else
11108 echo "$as_me: program exited with status $ac_status" >&5
11109echo "$as_me: failed program was:" >&5
11110sed 's/^/| /' conftest.$ac_ext >&5
11111
11112( exit $ac_status )
11113{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11114See \`config.log' for more details." >&5
11115echo "$as_me: error: cannot compute sizeof (char), 77
11116See \`config.log' for more details." >&2;}
11117 { (exit 1); exit 1; }; }
11118fi
11119rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11120fi
11121fi
11122rm -f conftest.val
11123else
11124 ac_cv_sizeof_char=0
11125fi
11126fi
11127echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11128echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11129cat >>confdefs.h <<_ACEOF
11130@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
11131_ACEOF
11132
11133
11134echo "$as_me:$LINENO: checking for short int" >&5
11135echo $ECHO_N "checking for short int... $ECHO_C" >&6
11136if test "${ac_cv_type_short_int+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 cat >conftest.$ac_ext <<_ACEOF
11140#line $LINENO "configure"
11141/* confdefs.h. */
11142_ACEOF
11143cat confdefs.h >>conftest.$ac_ext
11144cat >>conftest.$ac_ext <<_ACEOF
11145/* end confdefs.h. */
11146$ac_includes_default
11147int
11148main ()
11149{
11150if ((short int *) 0)
11151 return 0;
11152if (sizeof (short int))
11153 return 0;
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158rm -f conftest.$ac_objext
11159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160 (eval $ac_compile) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 ac_cv_type_short_int=yes
11171else
11172 echo "$as_me: failed program was:" >&5
11173sed 's/^/| /' conftest.$ac_ext >&5
11174
11175ac_cv_type_short_int=no
11176fi
11177rm -f conftest.$ac_objext conftest.$ac_ext
11178fi
11179echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
11180echo "${ECHO_T}$ac_cv_type_short_int" >&6
11181
11182echo "$as_me:$LINENO: checking size of short int" >&5
11183echo $ECHO_N "checking size of short int... $ECHO_C" >&6
11184if test "${ac_cv_sizeof_short_int+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186else
11187 if test "$ac_cv_type_short_int" = yes; then
11188 # The cast to unsigned long works around a bug in the HP C Compiler
11189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11191 # This bug is HP SR number 8606223364.
11192 if test "$cross_compiling" = yes; then
11193 # Depending upon the size, compute the lo and hi bounds.
11194cat >conftest.$ac_ext <<_ACEOF
11195#line $LINENO "configure"
11196/* confdefs.h. */
11197_ACEOF
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h. */
11201$ac_includes_default
11202int
11203main ()
11204{
11205static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
11206test_array @<:@0@:>@ = 0
11207
11208 ;
11209 return 0;
11210}
11211_ACEOF
11212rm -f conftest.$ac_objext
11213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11214 (eval $ac_compile) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } &&
11218 { ac_try='test -s conftest.$ac_objext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_lo=0 ac_mid=0
11225 while :; do
11226 cat >conftest.$ac_ext <<_ACEOF
11227#line $LINENO "configure"
11228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
11233$ac_includes_default
11234int
11235main ()
11236{
11237static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
11238test_array @<:@0@:>@ = 0
11239
11240 ;
11241 return 0;
11242}
11243_ACEOF
11244rm -f conftest.$ac_objext
11245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246 (eval $ac_compile) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -s conftest.$ac_objext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_hi=$ac_mid; break
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261ac_lo=`expr $ac_mid + 1`
11262 if test $ac_lo -le $ac_mid; then
11263 ac_lo= ac_hi=
11264 break
11265 fi
11266 ac_mid=`expr 2 '*' $ac_mid + 1`
11267fi
11268rm -f conftest.$ac_objext conftest.$ac_ext
11269 done
11270else
11271 echo "$as_me: failed program was:" >&5
11272sed 's/^/| /' conftest.$ac_ext >&5
11273
11274cat >conftest.$ac_ext <<_ACEOF
11275#line $LINENO "configure"
11276/* confdefs.h. */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h. */
11281$ac_includes_default
11282int
11283main ()
11284{
11285static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
11286test_array @<:@0@:>@ = 0
11287
11288 ;
11289 return 0;
11290}
11291_ACEOF
11292rm -f conftest.$ac_objext
11293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11294 (eval $ac_compile) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_hi=-1 ac_mid=-1
11305 while :; do
11306 cat >conftest.$ac_ext <<_ACEOF
11307#line $LINENO "configure"
11308/* confdefs.h. */
11309_ACEOF
11310cat confdefs.h >>conftest.$ac_ext
11311cat >>conftest.$ac_ext <<_ACEOF
11312/* end confdefs.h. */
11313$ac_includes_default
11314int
11315main ()
11316{
11317static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
11318test_array @<:@0@:>@ = 0
11319
11320 ;
11321 return 0;
11322}
11323_ACEOF
11324rm -f conftest.$ac_objext
11325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try='test -s conftest.$ac_objext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_lo=$ac_mid; break
11337else
11338 echo "$as_me: failed program was:" >&5
11339sed 's/^/| /' conftest.$ac_ext >&5
11340
11341ac_hi=`expr '(' $ac_mid ')' - 1`
11342 if test $ac_mid -le $ac_hi; then
11343 ac_lo= ac_hi=
11344 break
11345 fi
11346 ac_mid=`expr 2 '*' $ac_mid`
11347fi
11348rm -f conftest.$ac_objext conftest.$ac_ext
11349 done
11350else
11351 echo "$as_me: failed program was:" >&5
11352sed 's/^/| /' conftest.$ac_ext >&5
11353
11354ac_lo= ac_hi=
11355fi
11356rm -f conftest.$ac_objext conftest.$ac_ext
11357fi
11358rm -f conftest.$ac_objext conftest.$ac_ext
11359# Binary search between lo and hi bounds.
11360while test "x$ac_lo" != "x$ac_hi"; do
11361 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11362 cat >conftest.$ac_ext <<_ACEOF
11363#line $LINENO "configure"
11364/* confdefs.h. */
11365_ACEOF
11366cat confdefs.h >>conftest.$ac_ext
11367cat >>conftest.$ac_ext <<_ACEOF
11368/* end confdefs.h. */
11369$ac_includes_default
11370int
11371main ()
11372{
11373static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
11374test_array @<:@0@:>@ = 0
11375
11376 ;
11377 return 0;
11378}
11379_ACEOF
11380rm -f conftest.$ac_objext
11381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11382 (eval $ac_compile) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_hi=$ac_mid
11393else
11394 echo "$as_me: failed program was:" >&5
11395sed 's/^/| /' conftest.$ac_ext >&5
11396
11397ac_lo=`expr '(' $ac_mid ')' + 1`
11398fi
11399rm -f conftest.$ac_objext conftest.$ac_ext
11400done
11401case $ac_lo in
11402?*) ac_cv_sizeof_short_int=$ac_lo;;
11403'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
11404See \`config.log' for more details." >&5
11405echo "$as_me: error: cannot compute sizeof (short int), 77
11406See \`config.log' for more details." >&2;}
11407 { (exit 1); exit 1; }; } ;;
11408esac
11409else
11410 if test "$cross_compiling" = yes; then
11411 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11412See \`config.log' for more details." >&5
11413echo "$as_me: error: cannot run test program while cross compiling
11414See \`config.log' for more details." >&2;}
11415 { (exit 1); exit 1; }; }
11416else
11417 cat >conftest.$ac_ext <<_ACEOF
11418#line $LINENO "configure"
11419/* confdefs.h. */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h. */
11424$ac_includes_default
11425long longval () { return (long) (sizeof (short int)); }
11426unsigned long ulongval () { return (long) (sizeof (short int)); }
11427@%:@include <stdio.h>
11428@%:@include <stdlib.h>
11429int
11430main ()
11431{
11432
11433 FILE *f = fopen ("conftest.val", "w");
11434 if (! f)
11435 exit (1);
11436 if (((long) (sizeof (short int))) < 0)
11437 {
11438 long i = longval ();
11439 if (i != ((long) (sizeof (short int))))
11440 exit (1);
11441 fprintf (f, "%ld\n", i);
11442 }
11443 else
11444 {
11445 unsigned long i = ulongval ();
11446 if (i != ((long) (sizeof (short int))))
11447 exit (1);
11448 fprintf (f, "%lu\n", i);
11449 }
11450 exit (ferror (f) || fclose (f) != 0);
11451
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456rm -f conftest$ac_exeext
11457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 ac_cv_sizeof_short_int=`cat conftest.val`
11468else
11469 echo "$as_me: program exited with status $ac_status" >&5
11470echo "$as_me: failed program was:" >&5
11471sed 's/^/| /' conftest.$ac_ext >&5
11472
11473( exit $ac_status )
11474{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
11475See \`config.log' for more details." >&5
11476echo "$as_me: error: cannot compute sizeof (short int), 77
11477See \`config.log' for more details." >&2;}
11478 { (exit 1); exit 1; }; }
11479fi
11480rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11481fi
11482fi
11483rm -f conftest.val
11484else
11485 ac_cv_sizeof_short_int=0
11486fi
11487fi
11488echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
11489echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
11490cat >>confdefs.h <<_ACEOF
11491@%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11492_ACEOF
11493
11494
11495echo "$as_me:$LINENO: checking for int" >&5
11496echo $ECHO_N "checking for int... $ECHO_C" >&6
11497if test "${ac_cv_type_int+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499else
11500 cat >conftest.$ac_ext <<_ACEOF
11501#line $LINENO "configure"
11502/* confdefs.h. */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h. */
11507$ac_includes_default
11508int
11509main ()
11510{
11511if ((int *) 0)
11512 return 0;
11513if (sizeof (int))
11514 return 0;
11515 ;
11516 return 0;
11517}
11518_ACEOF
11519rm -f conftest.$ac_objext
11520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521 (eval $ac_compile) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -s conftest.$ac_objext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_type_int=yes
11532else
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536ac_cv_type_int=no
11537fi
11538rm -f conftest.$ac_objext conftest.$ac_ext
11539fi
11540echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11541echo "${ECHO_T}$ac_cv_type_int" >&6
11542
11543echo "$as_me:$LINENO: checking size of int" >&5
11544echo $ECHO_N "checking size of int... $ECHO_C" >&6
11545if test "${ac_cv_sizeof_int+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 if test "$ac_cv_type_int" = yes; then
11549 # The cast to unsigned long works around a bug in the HP C Compiler
11550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11552 # This bug is HP SR number 8606223364.
11553 if test "$cross_compiling" = yes; then
11554 # Depending upon the size, compute the lo and hi bounds.
11555cat >conftest.$ac_ext <<_ACEOF
11556#line $LINENO "configure"
11557/* confdefs.h. */
11558_ACEOF
11559cat confdefs.h >>conftest.$ac_ext
11560cat >>conftest.$ac_ext <<_ACEOF
11561/* end confdefs.h. */
11562$ac_includes_default
11563int
11564main ()
11565{
11566static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
11567test_array @<:@0@:>@ = 0
11568
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_lo=0 ac_mid=0
11586 while :; do
11587 cat >conftest.$ac_ext <<_ACEOF
11588#line $LINENO "configure"
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
11594$ac_includes_default
11595int
11596main ()
11597{
11598static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
11599test_array @<:@0@:>@ = 0
11600
11601 ;
11602 return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext
11606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -s conftest.$ac_objext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_hi=$ac_mid; break
11618else
11619 echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
11622ac_lo=`expr $ac_mid + 1`
11623 if test $ac_lo -le $ac_mid; then
11624 ac_lo= ac_hi=
11625 break
11626 fi
11627 ac_mid=`expr 2 '*' $ac_mid + 1`
11628fi
11629rm -f conftest.$ac_objext conftest.$ac_ext
11630 done
11631else
11632 echo "$as_me: failed program was:" >&5
11633sed 's/^/| /' conftest.$ac_ext >&5
11634
11635cat >conftest.$ac_ext <<_ACEOF
11636#line $LINENO "configure"
11637/* confdefs.h. */
11638_ACEOF
11639cat confdefs.h >>conftest.$ac_ext
11640cat >>conftest.$ac_ext <<_ACEOF
11641/* end confdefs.h. */
11642$ac_includes_default
11643int
11644main ()
11645{
11646static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
11647test_array @<:@0@:>@ = 0
11648
11649 ;
11650 return 0;
11651}
11652_ACEOF
11653rm -f conftest.$ac_objext
11654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11655 (eval $ac_compile) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ac_hi=-1 ac_mid=-1
11666 while :; do
11667 cat >conftest.$ac_ext <<_ACEOF
11668#line $LINENO "configure"
11669/* confdefs.h. */
11670_ACEOF
11671cat confdefs.h >>conftest.$ac_ext
11672cat >>conftest.$ac_ext <<_ACEOF
11673/* end confdefs.h. */
11674$ac_includes_default
11675int
11676main ()
11677{
11678static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
11679test_array @<:@0@:>@ = 0
11680
11681 ;
11682 return 0;
11683}
11684_ACEOF
11685rm -f conftest.$ac_objext
11686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_lo=$ac_mid; break
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702ac_hi=`expr '(' $ac_mid ')' - 1`
11703 if test $ac_mid -le $ac_hi; then
11704 ac_lo= ac_hi=
11705 break
11706 fi
11707 ac_mid=`expr 2 '*' $ac_mid`
11708fi
11709rm -f conftest.$ac_objext conftest.$ac_ext
11710 done
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715ac_lo= ac_hi=
11716fi
11717rm -f conftest.$ac_objext conftest.$ac_ext
11718fi
11719rm -f conftest.$ac_objext conftest.$ac_ext
11720# Binary search between lo and hi bounds.
11721while test "x$ac_lo" != "x$ac_hi"; do
11722 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11723 cat >conftest.$ac_ext <<_ACEOF
11724#line $LINENO "configure"
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730$ac_includes_default
11731int
11732main ()
11733{
11734static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
11735test_array @<:@0@:>@ = 0
11736
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_hi=$ac_mid
11754else
11755 echo "$as_me: failed program was:" >&5
11756sed 's/^/| /' conftest.$ac_ext >&5
11757
11758ac_lo=`expr '(' $ac_mid ')' + 1`
11759fi
11760rm -f conftest.$ac_objext conftest.$ac_ext
11761done
11762case $ac_lo in
11763?*) ac_cv_sizeof_int=$ac_lo;;
11764'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11765See \`config.log' for more details." >&5
11766echo "$as_me: error: cannot compute sizeof (int), 77
11767See \`config.log' for more details." >&2;}
11768 { (exit 1); exit 1; }; } ;;
11769esac
11770else
11771 if test "$cross_compiling" = yes; then
11772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11773See \`config.log' for more details." >&5
11774echo "$as_me: error: cannot run test program while cross compiling
11775See \`config.log' for more details." >&2;}
11776 { (exit 1); exit 1; }; }
11777else
11778 cat >conftest.$ac_ext <<_ACEOF
11779#line $LINENO "configure"
11780/* confdefs.h. */
11781_ACEOF
11782cat confdefs.h >>conftest.$ac_ext
11783cat >>conftest.$ac_ext <<_ACEOF
11784/* end confdefs.h. */
11785$ac_includes_default
11786long longval () { return (long) (sizeof (int)); }
11787unsigned long ulongval () { return (long) (sizeof (int)); }
11788@%:@include <stdio.h>
11789@%:@include <stdlib.h>
11790int
11791main ()
11792{
11793
11794 FILE *f = fopen ("conftest.val", "w");
11795 if (! f)
11796 exit (1);
11797 if (((long) (sizeof (int))) < 0)
11798 {
11799 long i = longval ();
11800 if (i != ((long) (sizeof (int))))
11801 exit (1);
11802 fprintf (f, "%ld\n", i);
11803 }
11804 else
11805 {
11806 unsigned long i = ulongval ();
11807 if (i != ((long) (sizeof (int))))
11808 exit (1);
11809 fprintf (f, "%lu\n", i);
11810 }
11811 exit (ferror (f) || fclose (f) != 0);
11812
11813 ;
11814 return 0;
11815}
11816_ACEOF
11817rm -f conftest$ac_exeext
11818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819 (eval $ac_link) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_cv_sizeof_int=`cat conftest.val`
11829else
11830 echo "$as_me: program exited with status $ac_status" >&5
11831echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
11833
11834( exit $ac_status )
11835{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11836See \`config.log' for more details." >&5
11837echo "$as_me: error: cannot compute sizeof (int), 77
11838See \`config.log' for more details." >&2;}
11839 { (exit 1); exit 1; }; }
11840fi
11841rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11842fi
11843fi
11844rm -f conftest.val
11845else
11846 ac_cv_sizeof_int=0
11847fi
11848fi
11849echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11850echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11851cat >>confdefs.h <<_ACEOF
11852@%:@define SIZEOF_INT $ac_cv_sizeof_int
11853_ACEOF
11854
11855
11856echo "$as_me:$LINENO: checking for long int" >&5
11857echo $ECHO_N "checking for long int... $ECHO_C" >&6
11858if test "${ac_cv_type_long_int+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860else
11861 cat >conftest.$ac_ext <<_ACEOF
11862#line $LINENO "configure"
11863/* confdefs.h. */
11864_ACEOF
11865cat confdefs.h >>conftest.$ac_ext
11866cat >>conftest.$ac_ext <<_ACEOF
11867/* end confdefs.h. */
11868$ac_includes_default
11869int
11870main ()
11871{
11872if ((long int *) 0)
11873 return 0;
11874if (sizeof (long int))
11875 return 0;
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest.$ac_objext
11881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882 (eval $ac_compile) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -s conftest.$ac_objext'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 ac_cv_type_long_int=yes
11893else
11894 echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897ac_cv_type_long_int=no
11898fi
11899rm -f conftest.$ac_objext conftest.$ac_ext
11900fi
11901echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
11902echo "${ECHO_T}$ac_cv_type_long_int" >&6
11903
11904echo "$as_me:$LINENO: checking size of long int" >&5
11905echo $ECHO_N "checking size of long int... $ECHO_C" >&6
11906if test "${ac_cv_sizeof_long_int+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 if test "$ac_cv_type_long_int" = yes; then
11910 # The cast to unsigned long works around a bug in the HP C Compiler
11911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11913 # This bug is HP SR number 8606223364.
11914 if test "$cross_compiling" = yes; then
11915 # Depending upon the size, compute the lo and hi bounds.
11916cat >conftest.$ac_ext <<_ACEOF
11917#line $LINENO "configure"
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h. */
11923$ac_includes_default
11924int
11925main ()
11926{
11927static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
11928test_array @<:@0@:>@ = 0
11929
11930 ;
11931 return 0;
11932}
11933_ACEOF
11934rm -f conftest.$ac_objext
11935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest.$ac_objext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_lo=0 ac_mid=0
11947 while :; do
11948 cat >conftest.$ac_ext <<_ACEOF
11949#line $LINENO "configure"
11950/* confdefs.h. */
11951_ACEOF
11952cat confdefs.h >>conftest.$ac_ext
11953cat >>conftest.$ac_ext <<_ACEOF
11954/* end confdefs.h. */
11955$ac_includes_default
11956int
11957main ()
11958{
11959static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
11960test_array @<:@0@:>@ = 0
11961
11962 ;
11963 return 0;
11964}
11965_ACEOF
11966rm -f conftest.$ac_objext
11967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11968 (eval $ac_compile) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -s conftest.$ac_objext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_hi=$ac_mid; break
11979else
11980 echo "$as_me: failed program was:" >&5
11981sed 's/^/| /' conftest.$ac_ext >&5
11982
11983ac_lo=`expr $ac_mid + 1`
11984 if test $ac_lo -le $ac_mid; then
11985 ac_lo= ac_hi=
11986 break
11987 fi
11988 ac_mid=`expr 2 '*' $ac_mid + 1`
11989fi
11990rm -f conftest.$ac_objext conftest.$ac_ext
11991 done
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996cat >conftest.$ac_ext <<_ACEOF
11997#line $LINENO "configure"
11998/* confdefs.h. */
11999_ACEOF
12000cat confdefs.h >>conftest.$ac_ext
12001cat >>conftest.$ac_ext <<_ACEOF
12002/* end confdefs.h. */
12003$ac_includes_default
12004int
12005main ()
12006{
12007static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
12008test_array @<:@0@:>@ = 0
12009
12010 ;
12011 return 0;
12012}
12013_ACEOF
12014rm -f conftest.$ac_objext
12015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016 (eval $ac_compile) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_hi=-1 ac_mid=-1
12027 while :; do
12028 cat >conftest.$ac_ext <<_ACEOF
12029#line $LINENO "configure"
12030/* confdefs.h. */
12031_ACEOF
12032cat confdefs.h >>conftest.$ac_ext
12033cat >>conftest.$ac_ext <<_ACEOF
12034/* end confdefs.h. */
12035$ac_includes_default
12036int
12037main ()
12038{
12039static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
12040test_array @<:@0@:>@ = 0
12041
12042 ;
12043 return 0;
12044}
12045_ACEOF
12046rm -f conftest.$ac_objext
12047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12048 (eval $ac_compile) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -s conftest.$ac_objext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 ac_lo=$ac_mid; break
12059else
12060 echo "$as_me: failed program was:" >&5
12061sed 's/^/| /' conftest.$ac_ext >&5
12062
12063ac_hi=`expr '(' $ac_mid ')' - 1`
12064 if test $ac_mid -le $ac_hi; then
12065 ac_lo= ac_hi=
12066 break
12067 fi
12068 ac_mid=`expr 2 '*' $ac_mid`
12069fi
12070rm -f conftest.$ac_objext conftest.$ac_ext
12071 done
12072else
12073 echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
12075
12076ac_lo= ac_hi=
12077fi
12078rm -f conftest.$ac_objext conftest.$ac_ext
12079fi
12080rm -f conftest.$ac_objext conftest.$ac_ext
12081# Binary search between lo and hi bounds.
12082while test "x$ac_lo" != "x$ac_hi"; do
12083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12084 cat >conftest.$ac_ext <<_ACEOF
12085#line $LINENO "configure"
12086/* confdefs.h. */
12087_ACEOF
12088cat confdefs.h >>conftest.$ac_ext
12089cat >>conftest.$ac_ext <<_ACEOF
12090/* end confdefs.h. */
12091$ac_includes_default
12092int
12093main ()
12094{
12095static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
12096test_array @<:@0@:>@ = 0
12097
12098 ;
12099 return 0;
12100}
12101_ACEOF
12102rm -f conftest.$ac_objext
12103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -s conftest.$ac_objext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 ac_hi=$ac_mid
12115else
12116 echo "$as_me: failed program was:" >&5
12117sed 's/^/| /' conftest.$ac_ext >&5
12118
12119ac_lo=`expr '(' $ac_mid ')' + 1`
12120fi
12121rm -f conftest.$ac_objext conftest.$ac_ext
12122done
12123case $ac_lo in
12124?*) ac_cv_sizeof_long_int=$ac_lo;;
12125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
12126See \`config.log' for more details." >&5
12127echo "$as_me: error: cannot compute sizeof (long int), 77
12128See \`config.log' for more details." >&2;}
12129 { (exit 1); exit 1; }; } ;;
12130esac
12131else
12132 if test "$cross_compiling" = yes; then
12133 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12134See \`config.log' for more details." >&5
12135echo "$as_me: error: cannot run test program while cross compiling
12136See \`config.log' for more details." >&2;}
12137 { (exit 1); exit 1; }; }
12138else
12139 cat >conftest.$ac_ext <<_ACEOF
12140#line $LINENO "configure"
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
12146$ac_includes_default
12147long longval () { return (long) (sizeof (long int)); }
12148unsigned long ulongval () { return (long) (sizeof (long int)); }
12149@%:@include <stdio.h>
12150@%:@include <stdlib.h>
12151int
12152main ()
12153{
12154
12155 FILE *f = fopen ("conftest.val", "w");
12156 if (! f)
12157 exit (1);
12158 if (((long) (sizeof (long int))) < 0)
12159 {
12160 long i = longval ();
12161 if (i != ((long) (sizeof (long int))))
12162 exit (1);
12163 fprintf (f, "%ld\n", i);
12164 }
12165 else
12166 {
12167 unsigned long i = ulongval ();
12168 if (i != ((long) (sizeof (long int))))
12169 exit (1);
12170 fprintf (f, "%lu\n", i);
12171 }
12172 exit (ferror (f) || fclose (f) != 0);
12173
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178rm -f conftest$ac_exeext
12179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12180 (eval $ac_link) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_cv_sizeof_long_int=`cat conftest.val`
12190else
12191 echo "$as_me: program exited with status $ac_status" >&5
12192echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195( exit $ac_status )
12196{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
12197See \`config.log' for more details." >&5
12198echo "$as_me: error: cannot compute sizeof (long int), 77
12199See \`config.log' for more details." >&2;}
12200 { (exit 1); exit 1; }; }
12201fi
12202rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12203fi
12204fi
12205rm -f conftest.val
12206else
12207 ac_cv_sizeof_long_int=0
12208fi
12209fi
12210echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
12211echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
12212cat >>confdefs.h <<_ACEOF
12213@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
12214_ACEOF
12215
12216
12217echo "$as_me:$LINENO: checking for long long int" >&5
12218echo $ECHO_N "checking for long long int... $ECHO_C" >&6
12219if test "${ac_cv_type_long_long_int+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221else
12222 cat >conftest.$ac_ext <<_ACEOF
12223#line $LINENO "configure"
12224/* confdefs.h. */
12225_ACEOF
12226cat confdefs.h >>conftest.$ac_ext
12227cat >>conftest.$ac_ext <<_ACEOF
12228/* end confdefs.h. */
12229$ac_includes_default
12230int
12231main ()
12232{
12233if ((long long int *) 0)
12234 return 0;
12235if (sizeof (long long int))
12236 return 0;
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241rm -f conftest.$ac_objext
12242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -s conftest.$ac_objext'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 ac_cv_type_long_long_int=yes
12254else
12255 echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
12258ac_cv_type_long_long_int=no
12259fi
12260rm -f conftest.$ac_objext conftest.$ac_ext
12261fi
12262echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
12263echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
12264
12265echo "$as_me:$LINENO: checking size of long long int" >&5
12266echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
12267if test "${ac_cv_sizeof_long_long_int+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269else
12270 if test "$ac_cv_type_long_long_int" = yes; then
12271 # The cast to unsigned long works around a bug in the HP C Compiler
12272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12274 # This bug is HP SR number 8606223364.
12275 if test "$cross_compiling" = yes; then
12276 # Depending upon the size, compute the lo and hi bounds.
12277cat >conftest.$ac_ext <<_ACEOF
12278#line $LINENO "configure"
12279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
12284$ac_includes_default
12285int
12286main ()
12287{
12288static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
12289test_array @<:@0@:>@ = 0
12290
12291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext
12296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12297 (eval $ac_compile) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -s conftest.$ac_objext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_lo=0 ac_mid=0
12308 while :; do
12309 cat >conftest.$ac_ext <<_ACEOF
12310#line $LINENO "configure"
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
12316$ac_includes_default
12317int
12318main ()
12319{
12320static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
12321test_array @<:@0@:>@ = 0
12322
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327rm -f conftest.$ac_objext
12328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -s conftest.$ac_objext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_hi=$ac_mid; break
12340else
12341 echo "$as_me: failed program was:" >&5
12342sed 's/^/| /' conftest.$ac_ext >&5
12343
12344ac_lo=`expr $ac_mid + 1`
12345 if test $ac_lo -le $ac_mid; then
12346 ac_lo= ac_hi=
12347 break
12348 fi
12349 ac_mid=`expr 2 '*' $ac_mid + 1`
12350fi
12351rm -f conftest.$ac_objext conftest.$ac_ext
12352 done
12353else
12354 echo "$as_me: failed program was:" >&5
12355sed 's/^/| /' conftest.$ac_ext >&5
12356
12357cat >conftest.$ac_ext <<_ACEOF
12358#line $LINENO "configure"
12359/* confdefs.h. */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h. */
12364$ac_includes_default
12365int
12366main ()
12367{
12368static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
12369test_array @<:@0@:>@ = 0
12370
12371 ;
12372 return 0;
12373}
12374_ACEOF
12375rm -f conftest.$ac_objext
12376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -s conftest.$ac_objext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_hi=-1 ac_mid=-1
12388 while :; do
12389 cat >conftest.$ac_ext <<_ACEOF
12390#line $LINENO "configure"
12391/* confdefs.h. */
12392_ACEOF
12393cat confdefs.h >>conftest.$ac_ext
12394cat >>conftest.$ac_ext <<_ACEOF
12395/* end confdefs.h. */
12396$ac_includes_default
12397int
12398main ()
12399{
12400static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
12401test_array @<:@0@:>@ = 0
12402
12403 ;
12404 return 0;
12405}
12406_ACEOF
12407rm -f conftest.$ac_objext
12408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409 (eval $ac_compile) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -s conftest.$ac_objext'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419 ac_lo=$ac_mid; break
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424ac_hi=`expr '(' $ac_mid ')' - 1`
12425 if test $ac_mid -le $ac_hi; then
12426 ac_lo= ac_hi=
12427 break
12428 fi
12429 ac_mid=`expr 2 '*' $ac_mid`
12430fi
12431rm -f conftest.$ac_objext conftest.$ac_ext
12432 done
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437ac_lo= ac_hi=
12438fi
12439rm -f conftest.$ac_objext conftest.$ac_ext
12440fi
12441rm -f conftest.$ac_objext conftest.$ac_ext
12442# Binary search between lo and hi bounds.
12443while test "x$ac_lo" != "x$ac_hi"; do
12444 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12445 cat >conftest.$ac_ext <<_ACEOF
12446#line $LINENO "configure"
12447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
12451/* end confdefs.h. */
12452$ac_includes_default
12453int
12454main ()
12455{
12456static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
12457test_array @<:@0@:>@ = 0
12458
12459 ;
12460 return 0;
12461}
12462_ACEOF
12463rm -f conftest.$ac_objext
12464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12465 (eval $ac_compile) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -s conftest.$ac_objext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_hi=$ac_mid
12476else
12477 echo "$as_me: failed program was:" >&5
12478sed 's/^/| /' conftest.$ac_ext >&5
12479
12480ac_lo=`expr '(' $ac_mid ')' + 1`
12481fi
12482rm -f conftest.$ac_objext conftest.$ac_ext
12483done
12484case $ac_lo in
12485?*) ac_cv_sizeof_long_long_int=$ac_lo;;
12486'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
12487See \`config.log' for more details." >&5
12488echo "$as_me: error: cannot compute sizeof (long long int), 77
12489See \`config.log' for more details." >&2;}
12490 { (exit 1); exit 1; }; } ;;
12491esac
12492else
12493 if test "$cross_compiling" = yes; then
12494 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12495See \`config.log' for more details." >&5
12496echo "$as_me: error: cannot run test program while cross compiling
12497See \`config.log' for more details." >&2;}
12498 { (exit 1); exit 1; }; }
12499else
12500 cat >conftest.$ac_ext <<_ACEOF
12501#line $LINENO "configure"
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507$ac_includes_default
12508long longval () { return (long) (sizeof (long long int)); }
12509unsigned long ulongval () { return (long) (sizeof (long long int)); }
12510@%:@include <stdio.h>
12511@%:@include <stdlib.h>
12512int
12513main ()
12514{
12515
12516 FILE *f = fopen ("conftest.val", "w");
12517 if (! f)
12518 exit (1);
12519 if (((long) (sizeof (long long int))) < 0)
12520 {
12521 long i = longval ();
12522 if (i != ((long) (sizeof (long long int))))
12523 exit (1);
12524 fprintf (f, "%ld\n", i);
12525 }
12526 else
12527 {
12528 unsigned long i = ulongval ();
12529 if (i != ((long) (sizeof (long long int))))
12530 exit (1);
12531 fprintf (f, "%lu\n", i);
12532 }
12533 exit (ferror (f) || fclose (f) != 0);
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539rm -f conftest$ac_exeext
12540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12541 (eval $ac_link) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_sizeof_long_long_int=`cat conftest.val`
12551else
12552 echo "$as_me: program exited with status $ac_status" >&5
12553echo "$as_me: failed program was:" >&5
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
12556( exit $ac_status )
12557{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
12558See \`config.log' for more details." >&5
12559echo "$as_me: error: cannot compute sizeof (long long int), 77
12560See \`config.log' for more details." >&2;}
12561 { (exit 1); exit 1; }; }
12562fi
12563rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12564fi
12565fi
12566rm -f conftest.val
12567else
12568 ac_cv_sizeof_long_long_int=0
12569fi
12570fi
12571echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
12572echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
12573cat >>confdefs.h <<_ACEOF
12574@%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
12575_ACEOF
12576
12577
12578
12579# Sanity check long long for some platforms (AIX)
12580if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
12581 ac_cv_sizeof_long_long_int=0
12582fi
12583
12584# More checks for data types
12585echo "$as_me:$LINENO: checking for u_int type" >&5
12586echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
12587if test "${ac_cv_have_u_int+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12589else
12590
12591 cat >conftest.$ac_ext <<_ACEOF
12592#line $LINENO "configure"
12593/* confdefs.h. */
12594_ACEOF
12595cat confdefs.h >>conftest.$ac_ext
12596cat >>conftest.$ac_ext <<_ACEOF
12597/* end confdefs.h. */
12598 #include <sys/types.h>
12599int
12600main ()
12601{
12602 u_int a; a = 1;
12603 ;
12604 return 0;
12605}
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12609 (eval $ac_compile) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -s conftest.$ac_objext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_have_u_int="yes"
12620else
12621 echo "$as_me: failed program was:" >&5
12622sed 's/^/| /' conftest.$ac_ext >&5
12623
12624 ac_cv_have_u_int="no"
12625
12626fi
12627rm -f conftest.$ac_objext conftest.$ac_ext
12628
12629fi
12630echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
12631echo "${ECHO_T}$ac_cv_have_u_int" >&6
12632if test "x$ac_cv_have_u_int" = "xyes" ; then
12633 cat >>confdefs.h <<\_ACEOF
12634@%:@define HAVE_U_INT 1
12635_ACEOF
12636
12637 have_u_int=1
12638fi
12639
12640echo "$as_me:$LINENO: checking for intXX_t types" >&5
12641echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
12642if test "${ac_cv_have_intxx_t+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644else
12645
12646 cat >conftest.$ac_ext <<_ACEOF
12647#line $LINENO "configure"
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */
12653 #include <sys/types.h>
12654int
12655main ()
12656{
12657 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext
12663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -s conftest.$ac_objext'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 ac_cv_have_intxx_t="yes"
12675else
12676 echo "$as_me: failed program was:" >&5
12677sed 's/^/| /' conftest.$ac_ext >&5
12678
12679 ac_cv_have_intxx_t="no"
12680
12681fi
12682rm -f conftest.$ac_objext conftest.$ac_ext
12683
12684fi
12685echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
12686echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
12687if test "x$ac_cv_have_intxx_t" = "xyes" ; then
12688 cat >>confdefs.h <<\_ACEOF
12689@%:@define HAVE_INTXX_T 1
12690_ACEOF
12691
12692 have_intxx_t=1
12693fi
12694
12695if (test -z "$have_intxx_t" && \
12696 test "x$ac_cv_header_stdint_h" = "xyes")
12697then
12698 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
12699echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
12700 cat >conftest.$ac_ext <<_ACEOF
12701#line $LINENO "configure"
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
12707 #include <stdint.h>
12708int
12709main ()
12710{
12711 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12712 ;
12713 return 0;
12714}
12715_ACEOF
12716rm -f conftest.$ac_objext
12717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728
12729 cat >>confdefs.h <<\_ACEOF
12730@%:@define HAVE_INTXX_T 1
12731_ACEOF
12732
12733 echo "$as_me:$LINENO: result: yes" >&5
12734echo "${ECHO_T}yes" >&6
12735
12736else
12737 echo "$as_me: failed program was:" >&5
12738sed 's/^/| /' conftest.$ac_ext >&5
12739
12740 echo "$as_me:$LINENO: result: no" >&5
12741echo "${ECHO_T}no" >&6
12742
12743fi
12744rm -f conftest.$ac_objext conftest.$ac_ext
12745fi
12746
12747echo "$as_me:$LINENO: checking for int64_t type" >&5
12748echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
12749if test "${ac_cv_have_int64_t+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12751else
12752
12753 cat >conftest.$ac_ext <<_ACEOF
12754#line $LINENO "configure"
12755/* confdefs.h. */
12756_ACEOF
12757cat confdefs.h >>conftest.$ac_ext
12758cat >>conftest.$ac_ext <<_ACEOF
12759/* end confdefs.h. */
12760
12761#include <sys/types.h>
12762#ifdef HAVE_STDINT_H
12763# include <stdint.h>
12764#endif
12765#include <sys/socket.h>
12766#ifdef HAVE_SYS_BITYPES_H
12767# include <sys/bitypes.h>
12768#endif
12769
12770int
12771main ()
12772{
12773 int64_t a; a = 1;
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778rm -f conftest.$ac_objext
12779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -s conftest.$ac_objext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_cv_have_int64_t="yes"
12791else
12792 echo "$as_me: failed program was:" >&5
12793sed 's/^/| /' conftest.$ac_ext >&5
12794
12795 ac_cv_have_int64_t="no"
12796
12797fi
12798rm -f conftest.$ac_objext conftest.$ac_ext
12799
12800fi
12801echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
12802echo "${ECHO_T}$ac_cv_have_int64_t" >&6
12803if test "x$ac_cv_have_int64_t" = "xyes" ; then
12804 cat >>confdefs.h <<\_ACEOF
12805@%:@define HAVE_INT64_T 1
12806_ACEOF
12807
12808fi
12809
12810echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
12811echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
12812if test "${ac_cv_have_u_intxx_t+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815
12816 cat >conftest.$ac_ext <<_ACEOF
12817#line $LINENO "configure"
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
12823 #include <sys/types.h>
12824int
12825main ()
12826{
12827 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext
12833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12834 (eval $ac_compile) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -s conftest.$ac_objext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 ac_cv_have_u_intxx_t="yes"
12845else
12846 echo "$as_me: failed program was:" >&5
12847sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 ac_cv_have_u_intxx_t="no"
12850
12851fi
12852rm -f conftest.$ac_objext conftest.$ac_ext
12853
12854fi
12855echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
12856echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
12857if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
12858 cat >>confdefs.h <<\_ACEOF
12859@%:@define HAVE_U_INTXX_T 1
12860_ACEOF
12861
12862 have_u_intxx_t=1
12863fi
12864
12865if test -z "$have_u_intxx_t" ; then
12866 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
12867echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
12868 cat >conftest.$ac_ext <<_ACEOF
12869#line $LINENO "configure"
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
12875 #include <sys/socket.h>
12876int
12877main ()
12878{
12879 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12880 ;
12881 return 0;
12882}
12883_ACEOF
12884rm -f conftest.$ac_objext
12885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896
12897 cat >>confdefs.h <<\_ACEOF
12898@%:@define HAVE_U_INTXX_T 1
12899_ACEOF
12900
12901 echo "$as_me:$LINENO: result: yes" >&5
12902echo "${ECHO_T}yes" >&6
12903
12904else
12905 echo "$as_me: failed program was:" >&5
12906sed 's/^/| /' conftest.$ac_ext >&5
12907
12908 echo "$as_me:$LINENO: result: no" >&5
12909echo "${ECHO_T}no" >&6
12910
12911fi
12912rm -f conftest.$ac_objext conftest.$ac_ext
12913fi
12914
12915echo "$as_me:$LINENO: checking for u_int64_t types" >&5
12916echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
12917if test "${ac_cv_have_u_int64_t+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919else
12920
12921 cat >conftest.$ac_ext <<_ACEOF
12922#line $LINENO "configure"
12923/* confdefs.h. */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
12927/* end confdefs.h. */
12928 #include <sys/types.h>
12929int
12930main ()
12931{
12932 u_int64_t a; a = 1;
12933 ;
12934 return 0;
12935}
12936_ACEOF
12937rm -f conftest.$ac_objext
12938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_cv_have_u_int64_t="yes"
12950else
12951 echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 ac_cv_have_u_int64_t="no"
12955
12956fi
12957rm -f conftest.$ac_objext conftest.$ac_ext
12958
12959fi
12960echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
12961echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
12962if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12963 cat >>confdefs.h <<\_ACEOF
12964@%:@define HAVE_U_INT64_T 1
12965_ACEOF
12966
12967 have_u_int64_t=1
12968fi
12969
12970if test -z "$have_u_int64_t" ; then
12971 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
12972echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
12973 cat >conftest.$ac_ext <<_ACEOF
12974#line $LINENO "configure"
12975/* confdefs.h. */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h. */
12980 #include <sys/bitypes.h>
12981int
12982main ()
12983{
12984 u_int64_t a; a = 1
12985 ;
12986 return 0;
12987}
12988_ACEOF
12989rm -f conftest.$ac_objext
12990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001
13002 cat >>confdefs.h <<\_ACEOF
13003@%:@define HAVE_U_INT64_T 1
13004_ACEOF
13005
13006 echo "$as_me:$LINENO: result: yes" >&5
13007echo "${ECHO_T}yes" >&6
13008
13009else
13010 echo "$as_me: failed program was:" >&5
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
13013 echo "$as_me:$LINENO: result: no" >&5
13014echo "${ECHO_T}no" >&6
13015
13016fi
13017rm -f conftest.$ac_objext conftest.$ac_ext
13018fi
13019
13020if test -z "$have_u_intxx_t" ; then
13021 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
13022echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
13023if test "${ac_cv_have_uintxx_t+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025else
13026
13027 cat >conftest.$ac_ext <<_ACEOF
13028#line $LINENO "configure"
13029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
13034
13035#include <sys/types.h>
13036
13037int
13038main ()
13039{
13040 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
13041 ;
13042 return 0;
13043}
13044_ACEOF
13045rm -f conftest.$ac_objext
13046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13047 (eval $ac_compile) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -s conftest.$ac_objext'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_cv_have_uintxx_t="yes"
13058else
13059 echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062 ac_cv_have_uintxx_t="no"
13063
13064fi
13065rm -f conftest.$ac_objext conftest.$ac_ext
13066
13067fi
13068echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
13069echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
13070 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
13071 cat >>confdefs.h <<\_ACEOF
13072@%:@define HAVE_UINTXX_T 1
13073_ACEOF
13074
13075 fi
13076fi
13077
13078if test -z "$have_uintxx_t" ; then
13079 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
13080echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
13081 cat >conftest.$ac_ext <<_ACEOF
13082#line $LINENO "configure"
13083/* confdefs.h. */
13084_ACEOF
13085cat confdefs.h >>conftest.$ac_ext
13086cat >>conftest.$ac_ext <<_ACEOF
13087/* end confdefs.h. */
13088 #include <stdint.h>
13089int
13090main ()
13091{
13092 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
13093 ;
13094 return 0;
13095}
13096_ACEOF
13097rm -f conftest.$ac_objext
13098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -s conftest.$ac_objext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109
13110 cat >>confdefs.h <<\_ACEOF
13111@%:@define HAVE_UINTXX_T 1
13112_ACEOF
13113
13114 echo "$as_me:$LINENO: result: yes" >&5
13115echo "${ECHO_T}yes" >&6
13116
13117else
13118 echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 echo "$as_me:$LINENO: result: no" >&5
13122echo "${ECHO_T}no" >&6
13123
13124fi
13125rm -f conftest.$ac_objext conftest.$ac_ext
13126fi
13127
13128if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
13129 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
13130then
13131 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
13132echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
13133 cat >conftest.$ac_ext <<_ACEOF
13134#line $LINENO "configure"
13135/* confdefs.h. */
13136_ACEOF
13137cat confdefs.h >>conftest.$ac_ext
13138cat >>conftest.$ac_ext <<_ACEOF
13139/* end confdefs.h. */
13140
13141#include <sys/bitypes.h>
13142
13143int
13144main ()
13145{
13146
13147 int8_t a; int16_t b; int32_t c;
13148 u_int8_t e; u_int16_t f; u_int32_t g;
13149 a = b = c = e = f = g = 1;
13150
13151 ;
13152 return 0;
13153}
13154_ACEOF
13155rm -f conftest.$ac_objext
13156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -s conftest.$ac_objext'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167
13168 cat >>confdefs.h <<\_ACEOF
13169@%:@define HAVE_U_INTXX_T 1
13170_ACEOF
13171
13172 cat >>confdefs.h <<\_ACEOF
13173@%:@define HAVE_INTXX_T 1
13174_ACEOF
13175
13176 echo "$as_me:$LINENO: result: yes" >&5
13177echo "${ECHO_T}yes" >&6
13178
13179else
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
13183echo "$as_me:$LINENO: result: no" >&5
13184echo "${ECHO_T}no" >&6
13185
13186fi
13187rm -f conftest.$ac_objext conftest.$ac_ext
13188fi
13189
13190
13191echo "$as_me:$LINENO: checking for u_char" >&5
13192echo $ECHO_N "checking for u_char... $ECHO_C" >&6
13193if test "${ac_cv_have_u_char+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195else
13196
13197 cat >conftest.$ac_ext <<_ACEOF
13198#line $LINENO "configure"
13199/* confdefs.h. */
13200_ACEOF
13201cat confdefs.h >>conftest.$ac_ext
13202cat >>conftest.$ac_ext <<_ACEOF
13203/* end confdefs.h. */
13204
13205#include <sys/types.h>
13206
13207int
13208main ()
13209{
13210 u_char foo; foo = 125;
13211 ;
13212 return 0;
13213}
13214_ACEOF
13215rm -f conftest.$ac_objext
13216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -s conftest.$ac_objext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_have_u_char="yes"
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 ac_cv_have_u_char="no"
13233
13234fi
13235rm -f conftest.$ac_objext conftest.$ac_ext
13236
13237fi
13238echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
13239echo "${ECHO_T}$ac_cv_have_u_char" >&6
13240if test "x$ac_cv_have_u_char" = "xyes" ; then
13241 cat >>confdefs.h <<\_ACEOF
13242@%:@define HAVE_U_CHAR 1
13243_ACEOF
13244
13245fi
13246
13247
13248 echo "$as_me:$LINENO: checking for socklen_t" >&5
13249echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13250if test "${ac_cv_type_socklen_t+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252else
13253 cat >conftest.$ac_ext <<_ACEOF
13254#line $LINENO "configure"
13255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */
13260#include <sys/types.h>
13261#include <sys/socket.h>
13262
13263int
13264main ()
13265{
13266if ((socklen_t *) 0)
13267 return 0;
13268if (sizeof (socklen_t))
13269 return 0;
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274rm -f conftest.$ac_objext
13275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276 (eval $ac_compile) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -s conftest.$ac_objext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_cv_type_socklen_t=yes
13287else
13288 echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
13291ac_cv_type_socklen_t=no
13292fi
13293rm -f conftest.$ac_objext conftest.$ac_ext
13294fi
13295echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13296echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13297if test $ac_cv_type_socklen_t = yes; then
13298 :
13299else
13300
13301 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
13302echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
13303 if test "${curl_cv_socklen_t_equiv+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305else
13306
13307 # Systems have either "struct sockaddr *" or
13308 # "void *" as the second argument to getpeername
13309 curl_cv_socklen_t_equiv=
13310 for arg2 in "struct sockaddr" void; do
13311 for t in int size_t unsigned long "unsigned long"; do
13312 cat >conftest.$ac_ext <<_ACEOF
13313#line $LINENO "configure"
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
13319
13320 #include <sys/types.h>
13321 #include <sys/socket.h>
13322
13323 int getpeername (int, $arg2 *, $t *);
13324
13325int
13326main ()
13327{
13328
13329 $t len;
13330 getpeername(0,0,&len);
13331
13332 ;
13333 return 0;
13334}
13335_ACEOF
13336rm -f conftest.$ac_objext
13337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13338 (eval $ac_compile) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348
13349 curl_cv_socklen_t_equiv="$t"
13350 break
13351
13352else
13353 echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
13356fi
13357rm -f conftest.$ac_objext conftest.$ac_ext
13358 done
13359 done
13360
13361 if test "x$curl_cv_socklen_t_equiv" = x; then
13362 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
13363echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
13364 { (exit 1); exit 1; }; }
13365 fi
13366
13367fi
13368
13369 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
13370echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
13371
13372cat >>confdefs.h <<_ACEOF
13373@%:@define socklen_t $curl_cv_socklen_t_equiv
13374_ACEOF
13375
13376fi
13377
13378
13379
13380echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
13381echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
13382if test "${ac_cv_type_sig_atomic_t+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384else
13385 cat >conftest.$ac_ext <<_ACEOF
13386#line $LINENO "configure"
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
13392#include <signal.h>
13393
13394int
13395main ()
13396{
13397if ((sig_atomic_t *) 0)
13398 return 0;
13399if (sizeof (sig_atomic_t))
13400 return 0;
13401 ;
13402 return 0;
13403}
13404_ACEOF
13405rm -f conftest.$ac_objext
13406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } &&
13411 { ac_try='test -s conftest.$ac_objext'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 ac_cv_type_sig_atomic_t=yes
13418else
13419 echo "$as_me: failed program was:" >&5
13420sed 's/^/| /' conftest.$ac_ext >&5
13421
13422ac_cv_type_sig_atomic_t=no
13423fi
13424rm -f conftest.$ac_objext conftest.$ac_ext
13425fi
13426echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
13427echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
13428if test $ac_cv_type_sig_atomic_t = yes; then
13429
13430cat >>confdefs.h <<_ACEOF
13431@%:@define HAVE_SIG_ATOMIC_T 1
13432_ACEOF
13433
13434
13435fi
13436
13437
13438echo "$as_me:$LINENO: checking for size_t" >&5
13439echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13440if test "${ac_cv_have_size_t+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442else
13443
13444 cat >conftest.$ac_ext <<_ACEOF
13445#line $LINENO "configure"
13446/* confdefs.h. */
13447_ACEOF
13448cat confdefs.h >>conftest.$ac_ext
13449cat >>conftest.$ac_ext <<_ACEOF
13450/* end confdefs.h. */
13451
13452#include <sys/types.h>
13453
13454int
13455main ()
13456{
13457 size_t foo; foo = 1235;
13458 ;
13459 return 0;
13460}
13461_ACEOF
13462rm -f conftest.$ac_objext
13463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -s conftest.$ac_objext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_have_size_t="yes"
13475else
13476 echo "$as_me: failed program was:" >&5
13477sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 ac_cv_have_size_t="no"
13480
13481fi
13482rm -f conftest.$ac_objext conftest.$ac_ext
13483
13484fi
13485echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
13486echo "${ECHO_T}$ac_cv_have_size_t" >&6
13487if test "x$ac_cv_have_size_t" = "xyes" ; then
13488 cat >>confdefs.h <<\_ACEOF
13489@%:@define HAVE_SIZE_T 1
13490_ACEOF
13491
13492fi
13493
13494echo "$as_me:$LINENO: checking for ssize_t" >&5
13495echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13496if test "${ac_cv_have_ssize_t+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13498else
13499
13500 cat >conftest.$ac_ext <<_ACEOF
13501#line $LINENO "configure"
13502/* confdefs.h. */
13503_ACEOF
13504cat confdefs.h >>conftest.$ac_ext
13505cat >>conftest.$ac_ext <<_ACEOF
13506/* end confdefs.h. */
13507
13508#include <sys/types.h>
13509
13510int
13511main ()
13512{
13513 ssize_t foo; foo = 1235;
13514 ;
13515 return 0;
13516}
13517_ACEOF
13518rm -f conftest.$ac_objext
13519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13520 (eval $ac_compile) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } &&
13524 { ac_try='test -s conftest.$ac_objext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 ac_cv_have_ssize_t="yes"
13531else
13532 echo "$as_me: failed program was:" >&5
13533sed 's/^/| /' conftest.$ac_ext >&5
13534
13535 ac_cv_have_ssize_t="no"
13536
13537fi
13538rm -f conftest.$ac_objext conftest.$ac_ext
13539
13540fi
13541echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
13542echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
13543if test "x$ac_cv_have_ssize_t" = "xyes" ; then
13544 cat >>confdefs.h <<\_ACEOF
13545@%:@define HAVE_SSIZE_T 1
13546_ACEOF
13547
13548fi
13549
13550echo "$as_me:$LINENO: checking for clock_t" >&5
13551echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
13552if test "${ac_cv_have_clock_t+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554else
13555
13556 cat >conftest.$ac_ext <<_ACEOF
13557#line $LINENO "configure"
13558/* confdefs.h. */
13559_ACEOF
13560cat confdefs.h >>conftest.$ac_ext
13561cat >>conftest.$ac_ext <<_ACEOF
13562/* end confdefs.h. */
13563
13564#include <time.h>
13565
13566int
13567main ()
13568{
13569 clock_t foo; foo = 1235;
13570 ;
13571 return 0;
13572}
13573_ACEOF
13574rm -f conftest.$ac_objext
13575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -s conftest.$ac_objext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_cv_have_clock_t="yes"
13587else
13588 echo "$as_me: failed program was:" >&5
13589sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 ac_cv_have_clock_t="no"
13592
13593fi
13594rm -f conftest.$ac_objext conftest.$ac_ext
13595
13596fi
13597echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
13598echo "${ECHO_T}$ac_cv_have_clock_t" >&6
13599if test "x$ac_cv_have_clock_t" = "xyes" ; then
13600 cat >>confdefs.h <<\_ACEOF
13601@%:@define HAVE_CLOCK_T 1
13602_ACEOF
13603
13604fi
13605
13606echo "$as_me:$LINENO: checking for sa_family_t" >&5
13607echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
13608if test "${ac_cv_have_sa_family_t+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610else
13611
13612 cat >conftest.$ac_ext <<_ACEOF
13613#line $LINENO "configure"
13614/* confdefs.h. */
13615_ACEOF
13616cat confdefs.h >>conftest.$ac_ext
13617cat >>conftest.$ac_ext <<_ACEOF
13618/* end confdefs.h. */
13619
13620#include <sys/types.h>
13621#include <sys/socket.h>
13622
13623int
13624main ()
13625{
13626 sa_family_t foo; foo = 1235;
13627 ;
13628 return 0;
13629}
13630_ACEOF
13631rm -f conftest.$ac_objext
13632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633 (eval $ac_compile) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -s conftest.$ac_objext'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; }; then
13643 ac_cv_have_sa_family_t="yes"
13644else
13645 echo "$as_me: failed program was:" >&5
13646sed 's/^/| /' conftest.$ac_ext >&5
13647
13648 cat >conftest.$ac_ext <<_ACEOF
13649#line $LINENO "configure"
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
13655
13656#include <sys/types.h>
13657#include <sys/socket.h>
13658#include <netinet/in.h>
13659
13660int
13661main ()
13662{
13663 sa_family_t foo; foo = 1235;
13664 ;
13665 return 0;
13666}
13667_ACEOF
13668rm -f conftest.$ac_objext
13669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_cv_have_sa_family_t="yes"
13681else
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 ac_cv_have_sa_family_t="no"
13686
13687fi
13688rm -f conftest.$ac_objext conftest.$ac_ext
13689
13690fi
13691rm -f conftest.$ac_objext conftest.$ac_ext
13692
13693fi
13694echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
13695echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
13696if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
13697 cat >>confdefs.h <<\_ACEOF
13698@%:@define HAVE_SA_FAMILY_T 1
13699_ACEOF
13700
13701fi
13702
13703echo "$as_me:$LINENO: checking for pid_t" >&5
13704echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13705if test "${ac_cv_have_pid_t+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707else
13708
13709 cat >conftest.$ac_ext <<_ACEOF
13710#line $LINENO "configure"
13711/* confdefs.h. */
13712_ACEOF
13713cat confdefs.h >>conftest.$ac_ext
13714cat >>conftest.$ac_ext <<_ACEOF
13715/* end confdefs.h. */
13716
13717#include <sys/types.h>
13718
13719int
13720main ()
13721{
13722 pid_t foo; foo = 1235;
13723 ;
13724 return 0;
13725}
13726_ACEOF
13727rm -f conftest.$ac_objext
13728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13729 (eval $ac_compile) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
13733 { ac_try='test -s conftest.$ac_objext'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739 ac_cv_have_pid_t="yes"
13740else
13741 echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 ac_cv_have_pid_t="no"
13745
13746fi
13747rm -f conftest.$ac_objext conftest.$ac_ext
13748
13749fi
13750echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
13751echo "${ECHO_T}$ac_cv_have_pid_t" >&6
13752if test "x$ac_cv_have_pid_t" = "xyes" ; then
13753 cat >>confdefs.h <<\_ACEOF
13754@%:@define HAVE_PID_T 1
13755_ACEOF
13756
13757fi
13758
13759echo "$as_me:$LINENO: checking for mode_t" >&5
13760echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13761if test "${ac_cv_have_mode_t+set}" = set; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13763else
13764
13765 cat >conftest.$ac_ext <<_ACEOF
13766#line $LINENO "configure"
13767/* confdefs.h. */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
13771/* end confdefs.h. */
13772
13773#include <sys/types.h>
13774
13775int
13776main ()
13777{
13778 mode_t foo; foo = 1235;
13779 ;
13780 return 0;
13781}
13782_ACEOF
13783rm -f conftest.$ac_objext
13784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
13789 { ac_try='test -s conftest.$ac_objext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 ac_cv_have_mode_t="yes"
13796else
13797 echo "$as_me: failed program was:" >&5
13798sed 's/^/| /' conftest.$ac_ext >&5
13799
13800 ac_cv_have_mode_t="no"
13801
13802fi
13803rm -f conftest.$ac_objext conftest.$ac_ext
13804
13805fi
13806echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
13807echo "${ECHO_T}$ac_cv_have_mode_t" >&6
13808if test "x$ac_cv_have_mode_t" = "xyes" ; then
13809 cat >>confdefs.h <<\_ACEOF
13810@%:@define HAVE_MODE_T 1
13811_ACEOF
13812
13813fi
13814
13815
13816echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13817echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
13818if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
13821
13822 cat >conftest.$ac_ext <<_ACEOF
13823#line $LINENO "configure"
13824/* confdefs.h. */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
13828/* end confdefs.h. */
13829
13830#include <sys/types.h>
13831#include <sys/socket.h>
13832
13833int
13834main ()
13835{
13836 struct sockaddr_storage s;
13837 ;
13838 return 0;
13839}
13840_ACEOF
13841rm -f conftest.$ac_objext
13842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_have_struct_sockaddr_storage="yes"
13854else
13855 echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_cv_have_struct_sockaddr_storage="no"
13859
13860fi
13861rm -f conftest.$ac_objext conftest.$ac_ext
13862
13863fi
13864echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
13865echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
13866if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
13867 cat >>confdefs.h <<\_ACEOF
13868@%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
13869_ACEOF
13870
13871fi
13872
13873echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13874echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13875if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877else
13878
13879 cat >conftest.$ac_ext <<_ACEOF
13880#line $LINENO "configure"
13881/* confdefs.h. */
13882_ACEOF
13883cat confdefs.h >>conftest.$ac_ext
13884cat >>conftest.$ac_ext <<_ACEOF
13885/* end confdefs.h. */
13886
13887#include <sys/types.h>
13888#include <netinet/in.h>
13889
13890int
13891main ()
13892{
13893 struct sockaddr_in6 s; s.sin6_family = 0;
13894 ;
13895 return 0;
13896}
13897_ACEOF
13898rm -f conftest.$ac_objext
13899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13900 (eval $ac_compile) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try='test -s conftest.$ac_objext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13910 ac_cv_have_struct_sockaddr_in6="yes"
13911else
13912 echo "$as_me: failed program was:" >&5
13913sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 ac_cv_have_struct_sockaddr_in6="no"
13916
13917fi
13918rm -f conftest.$ac_objext conftest.$ac_ext
13919
13920fi
13921echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
13922echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
13923if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
13924 cat >>confdefs.h <<\_ACEOF
13925@%:@define HAVE_STRUCT_SOCKADDR_IN6 1
13926_ACEOF
13927
13928fi
13929
13930echo "$as_me:$LINENO: checking for struct in6_addr" >&5
13931echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
13932if test "${ac_cv_have_struct_in6_addr+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934else
13935
13936 cat >conftest.$ac_ext <<_ACEOF
13937#line $LINENO "configure"
13938/* confdefs.h. */
13939_ACEOF
13940cat confdefs.h >>conftest.$ac_ext
13941cat >>conftest.$ac_ext <<_ACEOF
13942/* end confdefs.h. */
13943
13944#include <sys/types.h>
13945#include <netinet/in.h>
13946
13947int
13948main ()
13949{
13950 struct in6_addr s; s.s6_addr[0] = 0;
13951 ;
13952 return 0;
13953}
13954_ACEOF
13955rm -f conftest.$ac_objext
13956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13957 (eval $ac_compile) 2>&5
13958 ac_status=$?
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
13961 { ac_try='test -s conftest.$ac_objext'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 ac_cv_have_struct_in6_addr="yes"
13968else
13969 echo "$as_me: failed program was:" >&5
13970sed 's/^/| /' conftest.$ac_ext >&5
13971
13972 ac_cv_have_struct_in6_addr="no"
13973
13974fi
13975rm -f conftest.$ac_objext conftest.$ac_ext
13976
13977fi
13978echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
13979echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
13980if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13981 cat >>confdefs.h <<\_ACEOF
13982@%:@define HAVE_STRUCT_IN6_ADDR 1
13983_ACEOF
13984
13985fi
13986
13987echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13988echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13989if test "${ac_cv_have_struct_addrinfo+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991else
13992
13993 cat >conftest.$ac_ext <<_ACEOF
13994#line $LINENO "configure"
13995/* confdefs.h. */
13996_ACEOF
13997cat confdefs.h >>conftest.$ac_ext
13998cat >>conftest.$ac_ext <<_ACEOF
13999/* end confdefs.h. */
14000
14001#include <sys/types.h>
14002#include <sys/socket.h>
14003#include <netdb.h>
14004
14005int
14006main ()
14007{
14008 struct addrinfo s; s.ai_flags = AI_PASSIVE;
14009 ;
14010 return 0;
14011}
14012_ACEOF
14013rm -f conftest.$ac_objext
14014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14015 (eval $ac_compile) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_have_struct_addrinfo="yes"
14026else
14027 echo "$as_me: failed program was:" >&5
14028sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 ac_cv_have_struct_addrinfo="no"
14031
14032fi
14033rm -f conftest.$ac_objext conftest.$ac_ext
14034
14035fi
14036echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
14037echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
14038if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
14039 cat >>confdefs.h <<\_ACEOF
14040@%:@define HAVE_STRUCT_ADDRINFO 1
14041_ACEOF
14042
14043fi
14044
14045echo "$as_me:$LINENO: checking for struct timeval" >&5
14046echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
14047if test "${ac_cv_have_struct_timeval+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049else
14050
14051 cat >conftest.$ac_ext <<_ACEOF
14052#line $LINENO "configure"
14053/* confdefs.h. */
14054_ACEOF
14055cat confdefs.h >>conftest.$ac_ext
14056cat >>conftest.$ac_ext <<_ACEOF
14057/* end confdefs.h. */
14058 #include <sys/time.h>
14059int
14060main ()
14061{
14062 struct timeval tv; tv.tv_sec = 1;
14063 ;
14064 return 0;
14065}
14066_ACEOF
14067rm -f conftest.$ac_objext
14068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14069 (eval $ac_compile) 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } &&
14073 { ac_try='test -s conftest.$ac_objext'
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
14079 ac_cv_have_struct_timeval="yes"
14080else
14081 echo "$as_me: failed program was:" >&5
14082sed 's/^/| /' conftest.$ac_ext >&5
14083
14084 ac_cv_have_struct_timeval="no"
14085
14086fi
14087rm -f conftest.$ac_objext conftest.$ac_ext
14088
14089fi
14090echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
14091echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
14092if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
14093 cat >>confdefs.h <<\_ACEOF
14094@%:@define HAVE_STRUCT_TIMEVAL 1
14095_ACEOF
14096
14097 have_struct_timeval=1
14098fi
14099
14100echo "$as_me:$LINENO: checking for struct timespec" >&5
14101echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
14102if test "${ac_cv_type_struct_timespec+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104else
14105 cat >conftest.$ac_ext <<_ACEOF
14106#line $LINENO "configure"
14107/* confdefs.h. */
14108_ACEOF
14109cat confdefs.h >>conftest.$ac_ext
14110cat >>conftest.$ac_ext <<_ACEOF
14111/* end confdefs.h. */
14112$ac_includes_default
14113int
14114main ()
14115{
14116if ((struct timespec *) 0)
14117 return 0;
14118if (sizeof (struct timespec))
14119 return 0;
14120 ;
14121 return 0;
14122}
14123_ACEOF
14124rm -f conftest.$ac_objext
14125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -s conftest.$ac_objext'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 ac_cv_type_struct_timespec=yes
14137else
14138 echo "$as_me: failed program was:" >&5
14139sed 's/^/| /' conftest.$ac_ext >&5
14140
14141ac_cv_type_struct_timespec=no
14142fi
14143rm -f conftest.$ac_objext conftest.$ac_ext
14144fi
14145echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14146echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
14147if test $ac_cv_type_struct_timespec = yes; then
14148
14149cat >>confdefs.h <<_ACEOF
14150@%:@define HAVE_STRUCT_TIMESPEC 1
14151_ACEOF
14152
14153
14154fi
14155
14156
14157# We need int64_t or else certian parts of the compile will fail.
14158if test "x$ac_cv_have_int64_t" = "xno" -a \
14159 "x$ac_cv_sizeof_long_int" != "x8" -a \
14160 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
14161 echo "OpenSSH requires int64_t support. Contact your vendor or install"
14162 echo "an alternative compiler (I.E., GCC) before continuing."
14163 echo ""
14164 exit 1;
14165else
14166 if test "$cross_compiling" = yes; then
14167 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14168See \`config.log' for more details." >&5
14169echo "$as_me: error: cannot run test program while cross compiling
14170See \`config.log' for more details." >&2;}
14171 { (exit 1); exit 1; }; }
14172else
14173 cat >conftest.$ac_ext <<_ACEOF
14174#line $LINENO "configure"
14175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
14179/* end confdefs.h. */
14180
14181#include <stdio.h>
14182#include <string.h>
14183#ifdef HAVE_SNPRINTF
14184main()
14185{
14186 char buf[50];
14187 char expected_out[50];
14188 int mazsize = 50 ;
14189#if (SIZEOF_LONG_INT == 8)
14190 long int num = 0x7fffffffffffffff;
14191#else
14192 long long num = 0x7fffffffffffffffll;
14193#endif
14194 strcpy(expected_out, "9223372036854775807");
14195 snprintf(buf, mazsize, "%lld", num);
14196 if(strcmp(buf, expected_out) != 0)
14197 exit(1);
14198 exit(0);
14199}
14200#else
14201main() { exit(0); }
14202#endif
14203
14204_ACEOF
14205rm -f conftest$ac_exeext
14206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207 (eval $ac_link) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 true
14217else
14218 echo "$as_me: program exited with status $ac_status" >&5
14219echo "$as_me: failed program was:" >&5
14220sed 's/^/| /' conftest.$ac_ext >&5
14221
14222( exit $ac_status )
14223 cat >>confdefs.h <<\_ACEOF
14224@%:@define BROKEN_SNPRINTF 1
14225_ACEOF
14226
14227
14228fi
14229rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14230fi
14231fi
14232
14233
14234# look for field 'ut_host' in header 'utmp.h'
14235 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14236 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14237 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
14238echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
14239 if eval "test \"\${$ossh_varname+set}\" = set"; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14241else
14242
14243 cat >conftest.$ac_ext <<_ACEOF
14244#line $LINENO "configure"
14245/* confdefs.h. */
14246_ACEOF
14247cat confdefs.h >>conftest.$ac_ext
14248cat >>conftest.$ac_ext <<_ACEOF
14249/* end confdefs.h. */
14250#include <utmp.h>
14251
14252_ACEOF
14253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14254 $EGREP "ut_host" >/dev/null 2>&1; then
14255 eval "$ossh_varname=yes"
14256else
14257 eval "$ossh_varname=no"
14258fi
14259rm -f conftest*
14260
14261fi
14262
14263 ossh_result=`eval 'echo $'"$ossh_varname"`
14264 if test -n "`echo $ossh_varname`"; then
14265 echo "$as_me:$LINENO: result: $ossh_result" >&5
14266echo "${ECHO_T}$ossh_result" >&6
14267 if test "x$ossh_result" = "xyes"; then
14268 cat >>confdefs.h <<\_ACEOF
14269@%:@define HAVE_HOST_IN_UTMP 1
14270_ACEOF
14271
14272 fi
14273 else
14274 echo "$as_me:$LINENO: result: no" >&5
14275echo "${ECHO_T}no" >&6
14276 fi
14277
14278
14279# look for field 'ut_host' in header 'utmpx.h'
14280 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14281 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14282 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
14283echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
14284 if eval "test \"\${$ossh_varname+set}\" = set"; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287
14288 cat >conftest.$ac_ext <<_ACEOF
14289#line $LINENO "configure"
14290/* confdefs.h. */
14291_ACEOF
14292cat confdefs.h >>conftest.$ac_ext
14293cat >>conftest.$ac_ext <<_ACEOF
14294/* end confdefs.h. */
14295#include <utmpx.h>
14296
14297_ACEOF
14298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14299 $EGREP "ut_host" >/dev/null 2>&1; then
14300 eval "$ossh_varname=yes"
14301else
14302 eval "$ossh_varname=no"
14303fi
14304rm -f conftest*
14305
14306fi
14307
14308 ossh_result=`eval 'echo $'"$ossh_varname"`
14309 if test -n "`echo $ossh_varname`"; then
14310 echo "$as_me:$LINENO: result: $ossh_result" >&5
14311echo "${ECHO_T}$ossh_result" >&6
14312 if test "x$ossh_result" = "xyes"; then
14313 cat >>confdefs.h <<\_ACEOF
14314@%:@define HAVE_HOST_IN_UTMPX 1
14315_ACEOF
14316
14317 fi
14318 else
14319 echo "$as_me:$LINENO: result: no" >&5
14320echo "${ECHO_T}no" >&6
14321 fi
14322
14323
14324# look for field 'syslen' in header 'utmpx.h'
14325 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14326 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
14327 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
14328echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
14329 if eval "test \"\${$ossh_varname+set}\" = set"; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331else
14332
14333 cat >conftest.$ac_ext <<_ACEOF
14334#line $LINENO "configure"
14335/* confdefs.h. */
14336_ACEOF
14337cat confdefs.h >>conftest.$ac_ext
14338cat >>conftest.$ac_ext <<_ACEOF
14339/* end confdefs.h. */
14340#include <utmpx.h>
14341
14342_ACEOF
14343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344 $EGREP "syslen" >/dev/null 2>&1; then
14345 eval "$ossh_varname=yes"
14346else
14347 eval "$ossh_varname=no"
14348fi
14349rm -f conftest*
14350
14351fi
14352
14353 ossh_result=`eval 'echo $'"$ossh_varname"`
14354 if test -n "`echo $ossh_varname`"; then
14355 echo "$as_me:$LINENO: result: $ossh_result" >&5
14356echo "${ECHO_T}$ossh_result" >&6
14357 if test "x$ossh_result" = "xyes"; then
14358 cat >>confdefs.h <<\_ACEOF
14359@%:@define HAVE_SYSLEN_IN_UTMPX 1
14360_ACEOF
14361
14362 fi
14363 else
14364 echo "$as_me:$LINENO: result: no" >&5
14365echo "${ECHO_T}no" >&6
14366 fi
14367
14368
14369# look for field 'ut_pid' in header 'utmp.h'
14370 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14371 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
14372 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
14373echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
14374 if eval "test \"\${$ossh_varname+set}\" = set"; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14376else
14377
14378 cat >conftest.$ac_ext <<_ACEOF
14379#line $LINENO "configure"
14380/* confdefs.h. */
14381_ACEOF
14382cat confdefs.h >>conftest.$ac_ext
14383cat >>conftest.$ac_ext <<_ACEOF
14384/* end confdefs.h. */
14385#include <utmp.h>
14386
14387_ACEOF
14388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14389 $EGREP "ut_pid" >/dev/null 2>&1; then
14390 eval "$ossh_varname=yes"
14391else
14392 eval "$ossh_varname=no"
14393fi
14394rm -f conftest*
14395
14396fi
14397
14398 ossh_result=`eval 'echo $'"$ossh_varname"`
14399 if test -n "`echo $ossh_varname`"; then
14400 echo "$as_me:$LINENO: result: $ossh_result" >&5
14401echo "${ECHO_T}$ossh_result" >&6
14402 if test "x$ossh_result" = "xyes"; then
14403 cat >>confdefs.h <<\_ACEOF
14404@%:@define HAVE_PID_IN_UTMP 1
14405_ACEOF
14406
14407 fi
14408 else
14409 echo "$as_me:$LINENO: result: no" >&5
14410echo "${ECHO_T}no" >&6
14411 fi
14412
14413
14414# look for field 'ut_type' in header 'utmp.h'
14415 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14416 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
14417 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
14418echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
14419 if eval "test \"\${$ossh_varname+set}\" = set"; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421else
14422
14423 cat >conftest.$ac_ext <<_ACEOF
14424#line $LINENO "configure"
14425/* confdefs.h. */
14426_ACEOF
14427cat confdefs.h >>conftest.$ac_ext
14428cat >>conftest.$ac_ext <<_ACEOF
14429/* end confdefs.h. */
14430#include <utmp.h>
14431
14432_ACEOF
14433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14434 $EGREP "ut_type" >/dev/null 2>&1; then
14435 eval "$ossh_varname=yes"
14436else
14437 eval "$ossh_varname=no"
14438fi
14439rm -f conftest*
14440
14441fi
14442
14443 ossh_result=`eval 'echo $'"$ossh_varname"`
14444 if test -n "`echo $ossh_varname`"; then
14445 echo "$as_me:$LINENO: result: $ossh_result" >&5
14446echo "${ECHO_T}$ossh_result" >&6
14447 if test "x$ossh_result" = "xyes"; then
14448 cat >>confdefs.h <<\_ACEOF
14449@%:@define HAVE_TYPE_IN_UTMP 1
14450_ACEOF
14451
14452 fi
14453 else
14454 echo "$as_me:$LINENO: result: no" >&5
14455echo "${ECHO_T}no" >&6
14456 fi
14457
14458
14459# look for field 'ut_type' in header 'utmpx.h'
14460 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14461 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
14462 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
14463echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
14464 if eval "test \"\${$ossh_varname+set}\" = set"; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466else
14467
14468 cat >conftest.$ac_ext <<_ACEOF
14469#line $LINENO "configure"
14470/* confdefs.h. */
14471_ACEOF
14472cat confdefs.h >>conftest.$ac_ext
14473cat >>conftest.$ac_ext <<_ACEOF
14474/* end confdefs.h. */
14475#include <utmpx.h>
14476
14477_ACEOF
14478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14479 $EGREP "ut_type" >/dev/null 2>&1; then
14480 eval "$ossh_varname=yes"
14481else
14482 eval "$ossh_varname=no"
14483fi
14484rm -f conftest*
14485
14486fi
14487
14488 ossh_result=`eval 'echo $'"$ossh_varname"`
14489 if test -n "`echo $ossh_varname`"; then
14490 echo "$as_me:$LINENO: result: $ossh_result" >&5
14491echo "${ECHO_T}$ossh_result" >&6
14492 if test "x$ossh_result" = "xyes"; then
14493 cat >>confdefs.h <<\_ACEOF
14494@%:@define HAVE_TYPE_IN_UTMPX 1
14495_ACEOF
14496
14497 fi
14498 else
14499 echo "$as_me:$LINENO: result: no" >&5
14500echo "${ECHO_T}no" >&6
14501 fi
14502
14503
14504# look for field 'ut_tv' in header 'utmp.h'
14505 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14506 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
14507 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
14508echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
14509 if eval "test \"\${$ossh_varname+set}\" = set"; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511else
14512
14513 cat >conftest.$ac_ext <<_ACEOF
14514#line $LINENO "configure"
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h. */
14520#include <utmp.h>
14521
14522_ACEOF
14523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524 $EGREP "ut_tv" >/dev/null 2>&1; then
14525 eval "$ossh_varname=yes"
14526else
14527 eval "$ossh_varname=no"
14528fi
14529rm -f conftest*
14530
14531fi
14532
14533 ossh_result=`eval 'echo $'"$ossh_varname"`
14534 if test -n "`echo $ossh_varname`"; then
14535 echo "$as_me:$LINENO: result: $ossh_result" >&5
14536echo "${ECHO_T}$ossh_result" >&6
14537 if test "x$ossh_result" = "xyes"; then
14538 cat >>confdefs.h <<\_ACEOF
14539@%:@define HAVE_TV_IN_UTMP 1
14540_ACEOF
14541
14542 fi
14543 else
14544 echo "$as_me:$LINENO: result: no" >&5
14545echo "${ECHO_T}no" >&6
14546 fi
14547
14548
14549# look for field 'ut_id' in header 'utmp.h'
14550 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14551 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
14552 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
14553echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
14554 if eval "test \"\${$ossh_varname+set}\" = set"; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556else
14557
14558 cat >conftest.$ac_ext <<_ACEOF
14559#line $LINENO "configure"
14560/* confdefs.h. */
14561_ACEOF
14562cat confdefs.h >>conftest.$ac_ext
14563cat >>conftest.$ac_ext <<_ACEOF
14564/* end confdefs.h. */
14565#include <utmp.h>
14566
14567_ACEOF
14568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14569 $EGREP "ut_id" >/dev/null 2>&1; then
14570 eval "$ossh_varname=yes"
14571else
14572 eval "$ossh_varname=no"
14573fi
14574rm -f conftest*
14575
14576fi
14577
14578 ossh_result=`eval 'echo $'"$ossh_varname"`
14579 if test -n "`echo $ossh_varname`"; then
14580 echo "$as_me:$LINENO: result: $ossh_result" >&5
14581echo "${ECHO_T}$ossh_result" >&6
14582 if test "x$ossh_result" = "xyes"; then
14583 cat >>confdefs.h <<\_ACEOF
14584@%:@define HAVE_ID_IN_UTMP 1
14585_ACEOF
14586
14587 fi
14588 else
14589 echo "$as_me:$LINENO: result: no" >&5
14590echo "${ECHO_T}no" >&6
14591 fi
14592
14593
14594# look for field 'ut_id' in header 'utmpx.h'
14595 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14596 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
14597 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
14598echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
14599 if eval "test \"\${$ossh_varname+set}\" = set"; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14601else
14602
14603 cat >conftest.$ac_ext <<_ACEOF
14604#line $LINENO "configure"
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
14610#include <utmpx.h>
14611
14612_ACEOF
14613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14614 $EGREP "ut_id" >/dev/null 2>&1; then
14615 eval "$ossh_varname=yes"
14616else
14617 eval "$ossh_varname=no"
14618fi
14619rm -f conftest*
14620
14621fi
14622
14623 ossh_result=`eval 'echo $'"$ossh_varname"`
14624 if test -n "`echo $ossh_varname`"; then
14625 echo "$as_me:$LINENO: result: $ossh_result" >&5
14626echo "${ECHO_T}$ossh_result" >&6
14627 if test "x$ossh_result" = "xyes"; then
14628 cat >>confdefs.h <<\_ACEOF
14629@%:@define HAVE_ID_IN_UTMPX 1
14630_ACEOF
14631
14632 fi
14633 else
14634 echo "$as_me:$LINENO: result: no" >&5
14635echo "${ECHO_T}no" >&6
14636 fi
14637
14638
14639# look for field 'ut_addr' in header 'utmp.h'
14640 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14641 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
14642 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
14643echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
14644 if eval "test \"\${$ossh_varname+set}\" = set"; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646else
14647
14648 cat >conftest.$ac_ext <<_ACEOF
14649#line $LINENO "configure"
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
14654/* end confdefs.h. */
14655#include <utmp.h>
14656
14657_ACEOF
14658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14659 $EGREP "ut_addr" >/dev/null 2>&1; then
14660 eval "$ossh_varname=yes"
14661else
14662 eval "$ossh_varname=no"
14663fi
14664rm -f conftest*
14665
14666fi
14667
14668 ossh_result=`eval 'echo $'"$ossh_varname"`
14669 if test -n "`echo $ossh_varname`"; then
14670 echo "$as_me:$LINENO: result: $ossh_result" >&5
14671echo "${ECHO_T}$ossh_result" >&6
14672 if test "x$ossh_result" = "xyes"; then
14673 cat >>confdefs.h <<\_ACEOF
14674@%:@define HAVE_ADDR_IN_UTMP 1
14675_ACEOF
14676
14677 fi
14678 else
14679 echo "$as_me:$LINENO: result: no" >&5
14680echo "${ECHO_T}no" >&6
14681 fi
14682
14683
14684# look for field 'ut_addr' in header 'utmpx.h'
14685 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14686 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
14687 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
14688echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
14689 if eval "test \"\${$ossh_varname+set}\" = set"; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692
14693 cat >conftest.$ac_ext <<_ACEOF
14694#line $LINENO "configure"
14695/* confdefs.h. */
14696_ACEOF
14697cat confdefs.h >>conftest.$ac_ext
14698cat >>conftest.$ac_ext <<_ACEOF
14699/* end confdefs.h. */
14700#include <utmpx.h>
14701
14702_ACEOF
14703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14704 $EGREP "ut_addr" >/dev/null 2>&1; then
14705 eval "$ossh_varname=yes"
14706else
14707 eval "$ossh_varname=no"
14708fi
14709rm -f conftest*
14710
14711fi
14712
14713 ossh_result=`eval 'echo $'"$ossh_varname"`
14714 if test -n "`echo $ossh_varname`"; then
14715 echo "$as_me:$LINENO: result: $ossh_result" >&5
14716echo "${ECHO_T}$ossh_result" >&6
14717 if test "x$ossh_result" = "xyes"; then
14718 cat >>confdefs.h <<\_ACEOF
14719@%:@define HAVE_ADDR_IN_UTMPX 1
14720_ACEOF
14721
14722 fi
14723 else
14724 echo "$as_me:$LINENO: result: no" >&5
14725echo "${ECHO_T}no" >&6
14726 fi
14727
14728
14729# look for field 'ut_addr_v6' in header 'utmp.h'
14730 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14731 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
14732 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
14733echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
14734 if eval "test \"\${$ossh_varname+set}\" = set"; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736else
14737
14738 cat >conftest.$ac_ext <<_ACEOF
14739#line $LINENO "configure"
14740/* confdefs.h. */
14741_ACEOF
14742cat confdefs.h >>conftest.$ac_ext
14743cat >>conftest.$ac_ext <<_ACEOF
14744/* end confdefs.h. */
14745#include <utmp.h>
14746
14747_ACEOF
14748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
14750 eval "$ossh_varname=yes"
14751else
14752 eval "$ossh_varname=no"
14753fi
14754rm -f conftest*
14755
14756fi
14757
14758 ossh_result=`eval 'echo $'"$ossh_varname"`
14759 if test -n "`echo $ossh_varname`"; then
14760 echo "$as_me:$LINENO: result: $ossh_result" >&5
14761echo "${ECHO_T}$ossh_result" >&6
14762 if test "x$ossh_result" = "xyes"; then
14763 cat >>confdefs.h <<\_ACEOF
14764@%:@define HAVE_ADDR_V6_IN_UTMP 1
14765_ACEOF
14766
14767 fi
14768 else
14769 echo "$as_me:$LINENO: result: no" >&5
14770echo "${ECHO_T}no" >&6
14771 fi
14772
14773
14774# look for field 'ut_addr_v6' in header 'utmpx.h'
14775 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14776 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
14777 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
14778echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
14779 if eval "test \"\${$ossh_varname+set}\" = set"; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781else
14782
14783 cat >conftest.$ac_ext <<_ACEOF
14784#line $LINENO "configure"
14785/* confdefs.h. */
14786_ACEOF
14787cat confdefs.h >>conftest.$ac_ext
14788cat >>conftest.$ac_ext <<_ACEOF
14789/* end confdefs.h. */
14790#include <utmpx.h>
14791
14792_ACEOF
14793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14794 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
14795 eval "$ossh_varname=yes"
14796else
14797 eval "$ossh_varname=no"
14798fi
14799rm -f conftest*
14800
14801fi
14802
14803 ossh_result=`eval 'echo $'"$ossh_varname"`
14804 if test -n "`echo $ossh_varname`"; then
14805 echo "$as_me:$LINENO: result: $ossh_result" >&5
14806echo "${ECHO_T}$ossh_result" >&6
14807 if test "x$ossh_result" = "xyes"; then
14808 cat >>confdefs.h <<\_ACEOF
14809@%:@define HAVE_ADDR_V6_IN_UTMPX 1
14810_ACEOF
14811
14812 fi
14813 else
14814 echo "$as_me:$LINENO: result: no" >&5
14815echo "${ECHO_T}no" >&6
14816 fi
14817
14818
14819# look for field 'ut_exit' in header 'utmp.h'
14820 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14821 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
14822 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
14823echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
14824 if eval "test \"\${$ossh_varname+set}\" = set"; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826else
14827
14828 cat >conftest.$ac_ext <<_ACEOF
14829#line $LINENO "configure"
14830/* confdefs.h. */
14831_ACEOF
14832cat confdefs.h >>conftest.$ac_ext
14833cat >>conftest.$ac_ext <<_ACEOF
14834/* end confdefs.h. */
14835#include <utmp.h>
14836
14837_ACEOF
14838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14839 $EGREP "ut_exit" >/dev/null 2>&1; then
14840 eval "$ossh_varname=yes"
14841else
14842 eval "$ossh_varname=no"
14843fi
14844rm -f conftest*
14845
14846fi
14847
14848 ossh_result=`eval 'echo $'"$ossh_varname"`
14849 if test -n "`echo $ossh_varname`"; then
14850 echo "$as_me:$LINENO: result: $ossh_result" >&5
14851echo "${ECHO_T}$ossh_result" >&6
14852 if test "x$ossh_result" = "xyes"; then
14853 cat >>confdefs.h <<\_ACEOF
14854@%:@define HAVE_EXIT_IN_UTMP 1
14855_ACEOF
14856
14857 fi
14858 else
14859 echo "$as_me:$LINENO: result: no" >&5
14860echo "${ECHO_T}no" >&6
14861 fi
14862
14863
14864# look for field 'ut_time' in header 'utmp.h'
14865 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14866 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
14867 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
14868echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
14869 if eval "test \"\${$ossh_varname+set}\" = set"; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14871else
14872
14873 cat >conftest.$ac_ext <<_ACEOF
14874#line $LINENO "configure"
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
14880#include <utmp.h>
14881
14882_ACEOF
14883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14884 $EGREP "ut_time" >/dev/null 2>&1; then
14885 eval "$ossh_varname=yes"
14886else
14887 eval "$ossh_varname=no"
14888fi
14889rm -f conftest*
14890
14891fi
14892
14893 ossh_result=`eval 'echo $'"$ossh_varname"`
14894 if test -n "`echo $ossh_varname`"; then
14895 echo "$as_me:$LINENO: result: $ossh_result" >&5
14896echo "${ECHO_T}$ossh_result" >&6
14897 if test "x$ossh_result" = "xyes"; then
14898 cat >>confdefs.h <<\_ACEOF
14899@%:@define HAVE_TIME_IN_UTMP 1
14900_ACEOF
14901
14902 fi
14903 else
14904 echo "$as_me:$LINENO: result: no" >&5
14905echo "${ECHO_T}no" >&6
14906 fi
14907
14908
14909# look for field 'ut_time' in header 'utmpx.h'
14910 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14911 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
14912 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
14913echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
14914 if eval "test \"\${$ossh_varname+set}\" = set"; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14916else
14917
14918 cat >conftest.$ac_ext <<_ACEOF
14919#line $LINENO "configure"
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925#include <utmpx.h>
14926
14927_ACEOF
14928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14929 $EGREP "ut_time" >/dev/null 2>&1; then
14930 eval "$ossh_varname=yes"
14931else
14932 eval "$ossh_varname=no"
14933fi
14934rm -f conftest*
14935
14936fi
14937
14938 ossh_result=`eval 'echo $'"$ossh_varname"`
14939 if test -n "`echo $ossh_varname`"; then
14940 echo "$as_me:$LINENO: result: $ossh_result" >&5
14941echo "${ECHO_T}$ossh_result" >&6
14942 if test "x$ossh_result" = "xyes"; then
14943 cat >>confdefs.h <<\_ACEOF
14944@%:@define HAVE_TIME_IN_UTMPX 1
14945_ACEOF
14946
14947 fi
14948 else
14949 echo "$as_me:$LINENO: result: no" >&5
14950echo "${ECHO_T}no" >&6
14951 fi
14952
14953
14954# look for field 'ut_tv' in header 'utmpx.h'
14955 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14956 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
14957 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
14958echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
14959 if eval "test \"\${$ossh_varname+set}\" = set"; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961else
14962
14963 cat >conftest.$ac_ext <<_ACEOF
14964#line $LINENO "configure"
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
14970#include <utmpx.h>
14971
14972_ACEOF
14973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14974 $EGREP "ut_tv" >/dev/null 2>&1; then
14975 eval "$ossh_varname=yes"
14976else
14977 eval "$ossh_varname=no"
14978fi
14979rm -f conftest*
14980
14981fi
14982
14983 ossh_result=`eval 'echo $'"$ossh_varname"`
14984 if test -n "`echo $ossh_varname`"; then
14985 echo "$as_me:$LINENO: result: $ossh_result" >&5
14986echo "${ECHO_T}$ossh_result" >&6
14987 if test "x$ossh_result" = "xyes"; then
14988 cat >>confdefs.h <<\_ACEOF
14989@%:@define HAVE_TV_IN_UTMPX 1
14990_ACEOF
14991
14992 fi
14993 else
14994 echo "$as_me:$LINENO: result: no" >&5
14995echo "${ECHO_T}no" >&6
14996 fi
14997
14998
14999echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15000echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
15001if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15003else
15004 cat >conftest.$ac_ext <<_ACEOF
15005#line $LINENO "configure"
15006/* confdefs.h. */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h. */
15011$ac_includes_default
15012int
15013main ()
15014{
15015static struct stat ac_aggr;
15016if (ac_aggr.st_blksize)
15017return 0;
15018 ;
15019 return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext
15023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -s conftest.$ac_objext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_member_struct_stat_st_blksize=yes
15035else
15036 echo "$as_me: failed program was:" >&5
15037sed 's/^/| /' conftest.$ac_ext >&5
15038
15039cat >conftest.$ac_ext <<_ACEOF
15040#line $LINENO "configure"
15041/* confdefs.h. */
15042_ACEOF
15043cat confdefs.h >>conftest.$ac_ext
15044cat >>conftest.$ac_ext <<_ACEOF
15045/* end confdefs.h. */
15046$ac_includes_default
15047int
15048main ()
15049{
15050static struct stat ac_aggr;
15051if (sizeof ac_aggr.st_blksize)
15052return 0;
15053 ;
15054 return 0;
15055}
15056_ACEOF
15057rm -f conftest.$ac_objext
15058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15059 (eval $ac_compile) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -s conftest.$ac_objext'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
15069 ac_cv_member_struct_stat_st_blksize=yes
15070else
15071 echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074ac_cv_member_struct_stat_st_blksize=no
15075fi
15076rm -f conftest.$ac_objext conftest.$ac_ext
15077fi
15078rm -f conftest.$ac_objext conftest.$ac_ext
15079fi
15080echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15081echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
15082if test $ac_cv_member_struct_stat_st_blksize = yes; then
15083
15084cat >>confdefs.h <<_ACEOF
15085@%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15086_ACEOF
15087
15088
15089fi
15090
15091
15092echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
15093echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
15094if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096else
15097
15098 cat >conftest.$ac_ext <<_ACEOF
15099#line $LINENO "configure"
15100/* confdefs.h. */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h. */
15105
15106#include <sys/types.h>
15107#include <sys/socket.h>
15108
15109int
15110main ()
15111{
15112 struct sockaddr_storage s; s.ss_family = 1;
15113 ;
15114 return 0;
15115}
15116_ACEOF
15117rm -f conftest.$ac_objext
15118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15119 (eval $ac_compile) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_cv_have_ss_family_in_struct_ss="yes"
15130else
15131 echo "$as_me: failed program was:" >&5
15132sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 ac_cv_have_ss_family_in_struct_ss="no"
15135fi
15136rm -f conftest.$ac_objext conftest.$ac_ext
15137
15138fi
15139echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
15140echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
15141if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
15142 cat >>confdefs.h <<\_ACEOF
15143@%:@define HAVE_SS_FAMILY_IN_SS 1
15144_ACEOF
15145
15146fi
15147
15148echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
15149echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
15150if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152else
15153
15154 cat >conftest.$ac_ext <<_ACEOF
15155#line $LINENO "configure"
15156/* confdefs.h. */
15157_ACEOF
15158cat confdefs.h >>conftest.$ac_ext
15159cat >>conftest.$ac_ext <<_ACEOF
15160/* end confdefs.h. */
15161
15162#include <sys/types.h>
15163#include <sys/socket.h>
15164
15165int
15166main ()
15167{
15168 struct sockaddr_storage s; s.__ss_family = 1;
15169 ;
15170 return 0;
15171}
15172_ACEOF
15173rm -f conftest.$ac_objext
15174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15175 (eval $ac_compile) 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -s conftest.$ac_objext'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15182 ac_status=$?
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; }; then
15185 ac_cv_have___ss_family_in_struct_ss="yes"
15186else
15187 echo "$as_me: failed program was:" >&5
15188sed 's/^/| /' conftest.$ac_ext >&5
15189
15190 ac_cv_have___ss_family_in_struct_ss="no"
15191
15192fi
15193rm -f conftest.$ac_objext conftest.$ac_ext
15194
15195fi
15196echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
15197echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
15198if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
15199 cat >>confdefs.h <<\_ACEOF
15200@%:@define HAVE___SS_FAMILY_IN_SS 1
15201_ACEOF
15202
15203fi
15204
15205echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
15206echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
15207if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209else
15210
15211 cat >conftest.$ac_ext <<_ACEOF
15212#line $LINENO "configure"
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218
15219#include <pwd.h>
15220
15221int
15222main ()
15223{
15224 struct passwd p; p.pw_class = 0;
15225 ;
15226 return 0;
15227}
15228_ACEOF
15229rm -f conftest.$ac_objext
15230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15231 (eval $ac_compile) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -s conftest.$ac_objext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_have_pw_class_in_struct_passwd="yes"
15242else
15243 echo "$as_me: failed program was:" >&5
15244sed 's/^/| /' conftest.$ac_ext >&5
15245
15246 ac_cv_have_pw_class_in_struct_passwd="no"
15247
15248fi
15249rm -f conftest.$ac_objext conftest.$ac_ext
15250
15251fi
15252echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
15253echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
15254if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
15255 cat >>confdefs.h <<\_ACEOF
15256@%:@define HAVE_PW_CLASS_IN_PASSWD 1
15257_ACEOF
15258
15259fi
15260
15261echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
15262echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
15263if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265else
15266
15267 cat >conftest.$ac_ext <<_ACEOF
15268#line $LINENO "configure"
15269/* confdefs.h. */
15270_ACEOF
15271cat confdefs.h >>conftest.$ac_ext
15272cat >>conftest.$ac_ext <<_ACEOF
15273/* end confdefs.h. */
15274
15275#include <pwd.h>
15276
15277int
15278main ()
15279{
15280 struct passwd p; p.pw_expire = 0;
15281 ;
15282 return 0;
15283}
15284_ACEOF
15285rm -f conftest.$ac_objext
15286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -s conftest.$ac_objext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 ac_cv_have_pw_expire_in_struct_passwd="yes"
15298else
15299 echo "$as_me: failed program was:" >&5
15300sed 's/^/| /' conftest.$ac_ext >&5
15301
15302 ac_cv_have_pw_expire_in_struct_passwd="no"
15303
15304fi
15305rm -f conftest.$ac_objext conftest.$ac_ext
15306
15307fi
15308echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
15309echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
15310if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
15311 cat >>confdefs.h <<\_ACEOF
15312@%:@define HAVE_PW_EXPIRE_IN_PASSWD 1
15313_ACEOF
15314
15315fi
15316
15317echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
15318echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
15319if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321else
15322
15323 cat >conftest.$ac_ext <<_ACEOF
15324#line $LINENO "configure"
15325/* confdefs.h. */
15326_ACEOF
15327cat confdefs.h >>conftest.$ac_ext
15328cat >>conftest.$ac_ext <<_ACEOF
15329/* end confdefs.h. */
15330
15331#include <pwd.h>
15332
15333int
15334main ()
15335{
15336 struct passwd p; p.pw_change = 0;
15337 ;
15338 return 0;
15339}
15340_ACEOF
15341rm -f conftest.$ac_objext
15342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15343 (eval $ac_compile) 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_cv_have_pw_change_in_struct_passwd="yes"
15354else
15355 echo "$as_me: failed program was:" >&5
15356sed 's/^/| /' conftest.$ac_ext >&5
15357
15358 ac_cv_have_pw_change_in_struct_passwd="no"
15359
15360fi
15361rm -f conftest.$ac_objext conftest.$ac_ext
15362
15363fi
15364echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
15365echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
15366if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
15367 cat >>confdefs.h <<\_ACEOF
15368@%:@define HAVE_PW_CHANGE_IN_PASSWD 1
15369_ACEOF
15370
15371fi
15372
15373echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
15374echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
15375if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377else
15378
15379 if test "$cross_compiling" = yes; then
15380 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15381See \`config.log' for more details." >&5
15382echo "$as_me: error: cannot run test program while cross compiling
15383See \`config.log' for more details." >&2;}
15384 { (exit 1); exit 1; }; }
15385else
15386 cat >conftest.$ac_ext <<_ACEOF
15387#line $LINENO "configure"
15388/* confdefs.h. */
15389_ACEOF
15390cat confdefs.h >>conftest.$ac_ext
15391cat >>conftest.$ac_ext <<_ACEOF
15392/* end confdefs.h. */
15393
15394#include <sys/types.h>
15395#include <sys/socket.h>
15396#include <sys/uio.h>
15397int main() {
15398#ifdef msg_accrights
15399exit(1);
15400#endif
15401struct msghdr m;
15402m.msg_accrights = 0;
15403exit(0);
15404}
15405
15406_ACEOF
15407rm -f conftest$ac_exeext
15408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15409 (eval $ac_link) 2>&5
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_cv_have_accrights_in_msghdr="yes"
15419else
15420 echo "$as_me: program exited with status $ac_status" >&5
15421echo "$as_me: failed program was:" >&5
15422sed 's/^/| /' conftest.$ac_ext >&5
15423
15424( exit $ac_status )
15425 ac_cv_have_accrights_in_msghdr="no"
15426
15427fi
15428rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15429fi
15430
15431fi
15432echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
15433echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
15434if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
15435 cat >>confdefs.h <<\_ACEOF
15436@%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
15437_ACEOF
15438
15439fi
15440
15441echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
15442echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
15443if test "${ac_cv_have_control_in_msghdr+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445else
15446
15447 if test "$cross_compiling" = yes; then
15448 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15449See \`config.log' for more details." >&5
15450echo "$as_me: error: cannot run test program while cross compiling
15451See \`config.log' for more details." >&2;}
15452 { (exit 1); exit 1; }; }
15453else
15454 cat >conftest.$ac_ext <<_ACEOF
15455#line $LINENO "configure"
15456/* confdefs.h. */
15457_ACEOF
15458cat confdefs.h >>conftest.$ac_ext
15459cat >>conftest.$ac_ext <<_ACEOF
15460/* end confdefs.h. */
15461
15462#include <sys/types.h>
15463#include <sys/socket.h>
15464#include <sys/uio.h>
15465int main() {
15466#ifdef msg_control
15467exit(1);
15468#endif
15469struct msghdr m;
15470m.msg_control = 0;
15471exit(0);
15472}
15473
15474_ACEOF
15475rm -f conftest$ac_exeext
15476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15477 (eval $ac_link) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_cv_have_control_in_msghdr="yes"
15487else
15488 echo "$as_me: program exited with status $ac_status" >&5
15489echo "$as_me: failed program was:" >&5
15490sed 's/^/| /' conftest.$ac_ext >&5
15491
15492( exit $ac_status )
15493 ac_cv_have_control_in_msghdr="no"
15494
15495fi
15496rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15497fi
15498
15499fi
15500echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
15501echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
15502if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
15503 cat >>confdefs.h <<\_ACEOF
15504@%:@define HAVE_CONTROL_IN_MSGHDR 1
15505_ACEOF
15506
15507fi
15508
15509echo "$as_me:$LINENO: checking if libc defines __progname" >&5
15510echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
15511if test "${ac_cv_libc_defines___progname+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513else
15514
15515 cat >conftest.$ac_ext <<_ACEOF
15516#line $LINENO "configure"
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522
15523int
15524main ()
15525{
15526 extern char *__progname; printf("%s", __progname);
15527 ;
15528 return 0;
15529}
15530_ACEOF
15531rm -f conftest.$ac_objext conftest$ac_exeext
15532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -s conftest$ac_exeext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_cv_libc_defines___progname="yes"
15544else
15545 echo "$as_me: failed program was:" >&5
15546sed 's/^/| /' conftest.$ac_ext >&5
15547
15548 ac_cv_libc_defines___progname="no"
15549
15550fi
15551rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15552
15553fi
15554echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
15555echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
15556if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
15557 cat >>confdefs.h <<\_ACEOF
15558@%:@define HAVE___PROGNAME 1
15559_ACEOF
15560
15561fi
15562
15563echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
15564echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
15565if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567else
15568
15569 cat >conftest.$ac_ext <<_ACEOF
15570#line $LINENO "configure"
15571/* confdefs.h. */
15572_ACEOF
15573cat confdefs.h >>conftest.$ac_ext
15574cat >>conftest.$ac_ext <<_ACEOF
15575/* end confdefs.h. */
15576
15577#include <stdio.h>
15578
15579int
15580main ()
15581{
15582 printf("%s", __FUNCTION__);
15583 ;
15584 return 0;
15585}
15586_ACEOF
15587rm -f conftest.$ac_objext conftest$ac_exeext
15588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } &&
15593 { ac_try='test -s conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_cv_cc_implements___FUNCTION__="yes"
15600else
15601 echo "$as_me: failed program was:" >&5
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
15604 ac_cv_cc_implements___FUNCTION__="no"
15605
15606fi
15607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15608
15609fi
15610echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
15611echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
15612if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
15613 cat >>confdefs.h <<\_ACEOF
15614@%:@define HAVE___FUNCTION__ 1
15615_ACEOF
15616
15617fi
15618
15619echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
15620echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
15621if test "${ac_cv_cc_implements___func__+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623else
15624
15625 cat >conftest.$ac_ext <<_ACEOF
15626#line $LINENO "configure"
15627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h. */
15632
15633#include <stdio.h>
15634
15635int
15636main ()
15637{
15638 printf("%s", __func__);
15639 ;
15640 return 0;
15641}
15642_ACEOF
15643rm -f conftest.$ac_objext conftest$ac_exeext
15644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15645 (eval $ac_link) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -s conftest$ac_exeext'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 ac_cv_cc_implements___func__="yes"
15656else
15657 echo "$as_me: failed program was:" >&5
15658sed 's/^/| /' conftest.$ac_ext >&5
15659
15660 ac_cv_cc_implements___func__="no"
15661
15662fi
15663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15664
15665fi
15666echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
15667echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
15668if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
15669 cat >>confdefs.h <<\_ACEOF
15670@%:@define HAVE___func__ 1
15671_ACEOF
15672
15673fi
15674
15675echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
15676echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
15677if test "${ac_cv_have_getopt_optreset+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679else
15680
15681 cat >conftest.$ac_ext <<_ACEOF
15682#line $LINENO "configure"
15683/* confdefs.h. */
15684_ACEOF
15685cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h. */
15688
15689#include <getopt.h>
15690
15691int
15692main ()
15693{
15694 extern int optreset; optreset = 0;
15695 ;
15696 return 0;
15697}
15698_ACEOF
15699rm -f conftest.$ac_objext conftest$ac_exeext
15700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701 (eval $ac_link) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } &&
15705 { ac_try='test -s conftest$ac_exeext'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; }; then
15711 ac_cv_have_getopt_optreset="yes"
15712else
15713 echo "$as_me: failed program was:" >&5
15714sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 ac_cv_have_getopt_optreset="no"
15717
15718fi
15719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15720
15721fi
15722echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
15723echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
15724if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
15725 cat >>confdefs.h <<\_ACEOF
15726@%:@define HAVE_GETOPT_OPTRESET 1
15727_ACEOF
15728
15729fi
15730
15731echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
15732echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
15733if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15735else
15736
15737 cat >conftest.$ac_ext <<_ACEOF
15738#line $LINENO "configure"
15739/* confdefs.h. */
15740_ACEOF
15741cat confdefs.h >>conftest.$ac_ext
15742cat >>conftest.$ac_ext <<_ACEOF
15743/* end confdefs.h. */
15744
15745int
15746main ()
15747{
15748 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
15749 ;
15750 return 0;
15751}
15752_ACEOF
15753rm -f conftest.$ac_objext conftest$ac_exeext
15754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15755 (eval $ac_link) 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -s conftest$ac_exeext'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_cv_libc_defines_sys_errlist="yes"
15766else
15767 echo "$as_me: failed program was:" >&5
15768sed 's/^/| /' conftest.$ac_ext >&5
15769
15770 ac_cv_libc_defines_sys_errlist="no"
15771
15772fi
15773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15774
15775fi
15776echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
15777echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
15778if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
15779 cat >>confdefs.h <<\_ACEOF
15780@%:@define HAVE_SYS_ERRLIST 1
15781_ACEOF
15782
15783fi
15784
15785
15786echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
15787echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
15788if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790else
15791
15792 cat >conftest.$ac_ext <<_ACEOF
15793#line $LINENO "configure"
15794/* confdefs.h. */
15795_ACEOF
15796cat confdefs.h >>conftest.$ac_ext
15797cat >>conftest.$ac_ext <<_ACEOF
15798/* end confdefs.h. */
15799
15800int
15801main ()
15802{
15803 extern int sys_nerr; printf("%i", sys_nerr);
15804 ;
15805 return 0;
15806}
15807_ACEOF
15808rm -f conftest.$ac_objext conftest$ac_exeext
15809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810 (eval $ac_link) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -s conftest$ac_exeext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15820 ac_cv_libc_defines_sys_nerr="yes"
15821else
15822 echo "$as_me: failed program was:" >&5
15823sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 ac_cv_libc_defines_sys_nerr="no"
15826
15827fi
15828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15829
15830fi
15831echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
15832echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
15833if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
15834 cat >>confdefs.h <<\_ACEOF
15835@%:@define HAVE_SYS_NERR 1
15836_ACEOF
15837
15838fi
15839
15840SCARD_MSG="no"
15841
15842# Check whether user wants sectok support
15843
15844# Check whether --with-sectok or --without-sectok was given.
15845if test "${with_sectok+set}" = set; then
15846 withval="$with_sectok"
15847
15848 if test "x$withval" != "xno" ; then
15849 if test "x$withval" != "xyes" ; then
15850 CPPFLAGS="$CPPFLAGS -I${withval}"
15851 LDFLAGS="$LDFLAGS -L${withval}"
15852 if test ! -z "$need_dash_r" ; then
15853 LDFLAGS="$LDFLAGS -R${withval}"
15854 fi
15855 if test ! -z "$blibpath" ; then
15856 blibpath="$blibpath:${withval}"
15857 fi
15858 fi
15859
15860for ac_header in sectok.h
15861do
15862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863if eval "test \"\${$as_ac_Header+set}\" = set"; then
15864 echo "$as_me:$LINENO: checking for $ac_header" >&5
15865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15866if eval "test \"\${$as_ac_Header+set}\" = set"; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868fi
15869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15871else
15872 # Is the header compilable?
15873echo "$as_me:$LINENO: checking $ac_header usability" >&5
15874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15875cat >conftest.$ac_ext <<_ACEOF
15876#line $LINENO "configure"
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882$ac_includes_default
15883@%:@include <$ac_header>
15884_ACEOF
15885rm -f conftest.$ac_objext
15886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
15891 { ac_try='test -s conftest.$ac_objext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 ac_header_compiler=yes
15898else
15899 echo "$as_me: failed program was:" >&5
15900sed 's/^/| /' conftest.$ac_ext >&5
15901
15902ac_header_compiler=no
15903fi
15904rm -f conftest.$ac_objext conftest.$ac_ext
15905echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15906echo "${ECHO_T}$ac_header_compiler" >&6
15907
15908# Is the header present?
15909echo "$as_me:$LINENO: checking $ac_header presence" >&5
15910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15911cat >conftest.$ac_ext <<_ACEOF
15912#line $LINENO "configure"
15913/* confdefs.h. */
15914_ACEOF
15915cat confdefs.h >>conftest.$ac_ext
15916cat >>conftest.$ac_ext <<_ACEOF
15917/* end confdefs.h. */
15918@%:@include <$ac_header>
15919_ACEOF
15920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15922 ac_status=$?
15923 grep -v '^ *+' conftest.er1 >conftest.err
15924 rm -f conftest.er1
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } >/dev/null; then
15928 if test -s conftest.err; then
15929 ac_cpp_err=$ac_c_preproc_warn_flag
15930 else
15931 ac_cpp_err=
15932 fi
15933else
15934 ac_cpp_err=yes
15935fi
15936if test -z "$ac_cpp_err"; then
15937 ac_header_preproc=yes
15938else
15939 echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 ac_header_preproc=no
15943fi
15944rm -f conftest.err conftest.$ac_ext
15945echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946echo "${ECHO_T}$ac_header_preproc" >&6
15947
15948# So? What about this header?
15949case $ac_header_compiler:$ac_header_preproc in
15950 yes:no )
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15955 (
15956 cat <<\_ASBOX
15957@%:@@%:@ ------------------------------------ @%:@@%:@
15958@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
15959@%:@@%:@ ------------------------------------ @%:@@%:@
15960_ASBOX
15961 ) |
15962 sed "s/^/$as_me: WARNING: /" >&2
15963 ;;
15964 no:yes )
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15971 (
15972 cat <<\_ASBOX
15973@%:@@%:@ ------------------------------------ @%:@@%:@
15974@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
15975@%:@@%:@ ------------------------------------ @%:@@%:@
15976_ASBOX
15977 ) |
15978 sed "s/^/$as_me: WARNING: /" >&2
15979 ;;
15980esac
15981echo "$as_me:$LINENO: checking for $ac_header" >&5
15982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15983if eval "test \"\${$as_ac_Header+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985else
15986 eval "$as_ac_Header=$ac_header_preproc"
15987fi
15988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15990
15991fi
15992if test `eval echo '${'$as_ac_Header'}'` = yes; then
15993 cat >>confdefs.h <<_ACEOF
15994@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15995_ACEOF
15996
15997fi
15998
15999done
16000
16001 if test "$ac_cv_header_sectok_h" != yes; then
16002 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
16003echo "$as_me: error: Can't find sectok.h" >&2;}
16004 { (exit 1); exit 1; }; }
16005 fi
16006
16007echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
16008echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
16009if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011else
16012 ac_check_lib_save_LIBS=$LIBS
16013LIBS="-lsectok $LIBS"
16014cat >conftest.$ac_ext <<_ACEOF
16015#line $LINENO "configure"
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021
16022/* Override any gcc2 internal prototype to avoid an error. */
16023#ifdef __cplusplus
16024extern "C"
16025#endif
16026/* We use char because int might match the return type of a gcc2
16027 builtin and then its argument prototype would still apply. */
16028char sectok_open ();
16029int
16030main ()
16031{
16032sectok_open ();
16033 ;
16034 return 0;
16035}
16036_ACEOF
16037rm -f conftest.$ac_objext conftest$ac_exeext
16038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039 (eval $ac_link) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try='test -s conftest$ac_exeext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_cv_lib_sectok_sectok_open=yes
16050else
16051 echo "$as_me: failed program was:" >&5
16052sed 's/^/| /' conftest.$ac_ext >&5
16053
16054ac_cv_lib_sectok_sectok_open=no
16055fi
16056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16057LIBS=$ac_check_lib_save_LIBS
16058fi
16059echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
16060echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
16061if test $ac_cv_lib_sectok_sectok_open = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063@%:@define HAVE_LIBSECTOK 1
16064_ACEOF
16065
16066 LIBS="-lsectok $LIBS"
16067
16068fi
16069
16070 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
16071 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
16072echo "$as_me: error: Can't find libsectok" >&2;}
16073 { (exit 1); exit 1; }; }
16074 fi
16075 cat >>confdefs.h <<\_ACEOF
16076@%:@define SMARTCARD 1
16077_ACEOF
16078
16079 cat >>confdefs.h <<\_ACEOF
16080@%:@define USE_SECTOK 1
16081_ACEOF
16082
16083 SCARD_MSG="yes, using sectok"
16084 fi
16085
16086
16087fi;
16088
16089# Check whether user wants OpenSC support
16090
16091# Check whether --with-opensc or --without-opensc was given.
16092if test "${with_opensc+set}" = set; then
16093 withval="$with_opensc"
16094 opensc_config_prefix="$withval"
16095else
16096 opensc_config_prefix=""
16097fi;
16098if test x$opensc_config_prefix != x ; then
16099 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
16100 # Extract the first word of "opensc-config", so it can be a program name with args.
16101set dummy opensc-config; ac_word=$2
16102echo "$as_me:$LINENO: checking for $ac_word" >&5
16103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16104if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16106else
16107 case $OPENSC_CONFIG in
16108 [\\/]* | ?:[\\/]*)
16109 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
16110 ;;
16111 *)
16112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16113for as_dir in $PATH
16114do
16115 IFS=$as_save_IFS
16116 test -z "$as_dir" && as_dir=.
16117 for ac_exec_ext in '' $ac_executable_extensions; do
16118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16119 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16121 break 2
16122 fi
16123done
16124done
16125
16126 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
16127 ;;
16128esac
16129fi
16130OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
16131
16132if test -n "$OPENSC_CONFIG"; then
16133 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
16134echo "${ECHO_T}$OPENSC_CONFIG" >&6
16135else
16136 echo "$as_me:$LINENO: result: no" >&5
16137echo "${ECHO_T}no" >&6
16138fi
16139
16140 if test "$OPENSC_CONFIG" != "no"; then
16141 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
16142 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
16143 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
16144 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
16145 cat >>confdefs.h <<\_ACEOF
16146@%:@define SMARTCARD 1
16147_ACEOF
16148
16149 cat >>confdefs.h <<\_ACEOF
16150@%:@define USE_OPENSC 1
16151_ACEOF
16152
16153 SCARD_MSG="yes, using OpenSC"
16154 fi
16155fi
16156
16157# Check whether user wants Kerberos 5 support
16158KRB5_MSG="no"
16159
16160# Check whether --with-kerberos5 or --without-kerberos5 was given.
16161if test "${with_kerberos5+set}" = set; then
16162 withval="$with_kerberos5"
16163
16164 if test "x$withval" != "xno" ; then
16165 if test "x$withval" = "xyes" ; then
16166 KRB5ROOT="/usr/local"
16167 else
16168 KRB5ROOT=${withval}
16169 fi
16170 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
16171 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
16172 cat >>confdefs.h <<\_ACEOF
16173@%:@define KRB5 1
16174_ACEOF
16175
16176 KRB5_MSG="yes"
16177 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
16178echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
16179 cat >conftest.$ac_ext <<_ACEOF
16180#line $LINENO "configure"
16181/* confdefs.h. */
16182_ACEOF
16183cat confdefs.h >>conftest.$ac_ext
16184cat >>conftest.$ac_ext <<_ACEOF
16185/* end confdefs.h. */
16186 #include <krb5.h>
16187int
16188main ()
16189{
16190 char *tmp = heimdal_version;
16191 ;
16192 return 0;
16193}
16194_ACEOF
16195rm -f conftest.$ac_objext
16196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197 (eval $ac_compile) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 echo "$as_me:$LINENO: result: yes" >&5
16208echo "${ECHO_T}yes" >&6
16209 cat >>confdefs.h <<\_ACEOF
16210@%:@define HEIMDAL 1
16211_ACEOF
16212
16213 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
16214
16215else
16216 echo "$as_me: failed program was:" >&5
16217sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 echo "$as_me:$LINENO: result: no" >&5
16220echo "${ECHO_T}no" >&6
16221 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
16222
16223
16224fi
16225rm -f conftest.$ac_objext conftest.$ac_ext
16226 if test ! -z "$need_dash_r" ; then
16227 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
16228 fi
16229 if test ! -z "$blibpath" ; then
16230 blibpath="$blibpath:${KRB5ROOT}/lib"
16231 fi
16232
16233echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
16234echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
16235if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16237else
16238 ac_check_lib_save_LIBS=$LIBS
16239LIBS="-lresolv $LIBS"
16240cat >conftest.$ac_ext <<_ACEOF
16241#line $LINENO "configure"
16242/* confdefs.h. */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h. */
16247
16248/* Override any gcc2 internal prototype to avoid an error. */
16249#ifdef __cplusplus
16250extern "C"
16251#endif
16252/* We use char because int might match the return type of a gcc2
16253 builtin and then its argument prototype would still apply. */
16254char dn_expand ();
16255int
16256main ()
16257{
16258dn_expand ();
16259 ;
16260 return 0;
16261}
16262_ACEOF
16263rm -f conftest.$ac_objext conftest$ac_exeext
16264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265 (eval $ac_link) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -s conftest$ac_exeext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_cv_lib_resolv_dn_expand=yes
16276else
16277 echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
16279
16280ac_cv_lib_resolv_dn_expand=no
16281fi
16282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16283LIBS=$ac_check_lib_save_LIBS
16284fi
16285echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
16286echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
16287if test $ac_cv_lib_resolv_dn_expand = yes; then
16288 cat >>confdefs.h <<_ACEOF
16289@%:@define HAVE_LIBRESOLV 1
16290_ACEOF
16291
16292 LIBS="-lresolv $LIBS"
16293
16294fi
16295
16296
16297 KRB5=yes
16298 fi
16299
16300
16301fi;
16302# Check whether user wants Kerberos 4 support
16303KRB4_MSG="no"
16304
16305# Check whether --with-kerberos4 or --without-kerberos4 was given.
16306if test "${with_kerberos4+set}" = set; then
16307 withval="$with_kerberos4"
16308
16309 if test "x$withval" != "xno" ; then
16310 if test "x$withval" != "xyes" ; then
16311 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16312 LDFLAGS="$LDFLAGS -L${withval}/lib"
16313 if test ! -z "$need_dash_r" ; then
16314 LDFLAGS="$LDFLAGS -R${withval}/lib"
16315 fi
16316 if test ! -z "$blibpath" ; then
16317 blibpath="$blibpath:${withval}/lib"
16318 fi
16319 else
16320 if test -d /usr/include/kerberosIV ; then
16321 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
16322 fi
16323 fi
16324
16325
16326for ac_header in krb.h
16327do
16328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16329if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330 echo "$as_me:$LINENO: checking for $ac_header" >&5
16331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16332if eval "test \"\${$as_ac_Header+set}\" = set"; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334fi
16335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16337else
16338 # Is the header compilable?
16339echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16341cat >conftest.$ac_ext <<_ACEOF
16342#line $LINENO "configure"
16343/* confdefs.h. */
16344_ACEOF
16345cat confdefs.h >>conftest.$ac_ext
16346cat >>conftest.$ac_ext <<_ACEOF
16347/* end confdefs.h. */
16348$ac_includes_default
16349@%:@include <$ac_header>
16350_ACEOF
16351rm -f conftest.$ac_objext
16352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16353 (eval $ac_compile) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -s conftest.$ac_objext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_header_compiler=yes
16364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368ac_header_compiler=no
16369fi
16370rm -f conftest.$ac_objext conftest.$ac_ext
16371echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16372echo "${ECHO_T}$ac_header_compiler" >&6
16373
16374# Is the header present?
16375echo "$as_me:$LINENO: checking $ac_header presence" >&5
16376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16377cat >conftest.$ac_ext <<_ACEOF
16378#line $LINENO "configure"
16379/* confdefs.h. */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h. */
16384@%:@include <$ac_header>
16385_ACEOF
16386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16388 ac_status=$?
16389 grep -v '^ *+' conftest.er1 >conftest.err
16390 rm -f conftest.er1
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } >/dev/null; then
16394 if test -s conftest.err; then
16395 ac_cpp_err=$ac_c_preproc_warn_flag
16396 else
16397 ac_cpp_err=
16398 fi
16399else
16400 ac_cpp_err=yes
16401fi
16402if test -z "$ac_cpp_err"; then
16403 ac_header_preproc=yes
16404else
16405 echo "$as_me: failed program was:" >&5
16406sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 ac_header_preproc=no
16409fi
16410rm -f conftest.err conftest.$ac_ext
16411echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16412echo "${ECHO_T}$ac_header_preproc" >&6
16413
16414# So? What about this header?
16415case $ac_header_compiler:$ac_header_preproc in
16416 yes:no )
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16421 (
16422 cat <<\_ASBOX
16423@%:@@%:@ ------------------------------------ @%:@@%:@
16424@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
16425@%:@@%:@ ------------------------------------ @%:@@%:@
16426_ASBOX
16427 ) |
16428 sed "s/^/$as_me: WARNING: /" >&2
16429 ;;
16430 no:yes )
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16437 (
16438 cat <<\_ASBOX
16439@%:@@%:@ ------------------------------------ @%:@@%:@
16440@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
16441@%:@@%:@ ------------------------------------ @%:@@%:@
16442_ASBOX
16443 ) |
16444 sed "s/^/$as_me: WARNING: /" >&2
16445 ;;
16446esac
16447echo "$as_me:$LINENO: checking for $ac_header" >&5
16448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16449if eval "test \"\${$as_ac_Header+set}\" = set"; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16451else
16452 eval "$as_ac_Header=$ac_header_preproc"
16453fi
16454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16456
16457fi
16458if test `eval echo '${'$as_ac_Header'}'` = yes; then
16459 cat >>confdefs.h <<_ACEOF
16460@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16461_ACEOF
16462
16463fi
16464
16465done
16466
16467 if test "$ac_cv_header_krb_h" != yes; then
16468 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
16469echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
16470 fi
16471
16472echo "$as_me:$LINENO: checking for main in -lkrb" >&5
16473echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
16474if test "${ac_cv_lib_krb_main+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476else
16477 ac_check_lib_save_LIBS=$LIBS
16478LIBS="-lkrb $LIBS"
16479cat >conftest.$ac_ext <<_ACEOF
16480#line $LINENO "configure"
16481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
16486
16487
16488int
16489main ()
16490{
16491main ();
16492 ;
16493 return 0;
16494}
16495_ACEOF
16496rm -f conftest.$ac_objext conftest$ac_exeext
16497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498 (eval $ac_link) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
16502 { ac_try='test -s conftest$ac_exeext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_cv_lib_krb_main=yes
16509else
16510 echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
16513ac_cv_lib_krb_main=no
16514fi
16515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16516LIBS=$ac_check_lib_save_LIBS
16517fi
16518echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
16519echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
16520if test $ac_cv_lib_krb_main = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522@%:@define HAVE_LIBKRB 1
16523_ACEOF
16524
16525 LIBS="-lkrb $LIBS"
16526
16527fi
16528
16529 if test "$ac_cv_lib_krb_main" != yes; then
16530
16531echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
16532echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
16533if test "${ac_cv_lib_krb4_main+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535else
16536 ac_check_lib_save_LIBS=$LIBS
16537LIBS="-lkrb4 $LIBS"
16538cat >conftest.$ac_ext <<_ACEOF
16539#line $LINENO "configure"
16540/* confdefs.h. */
16541_ACEOF
16542cat confdefs.h >>conftest.$ac_ext
16543cat >>conftest.$ac_ext <<_ACEOF
16544/* end confdefs.h. */
16545
16546
16547int
16548main ()
16549{
16550main ();
16551 ;
16552 return 0;
16553}
16554_ACEOF
16555rm -f conftest.$ac_objext conftest$ac_exeext
16556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16557 (eval $ac_link) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -s conftest$ac_exeext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 ac_cv_lib_krb4_main=yes
16568else
16569 echo "$as_me: failed program was:" >&5
16570sed 's/^/| /' conftest.$ac_ext >&5
16571
16572ac_cv_lib_krb4_main=no
16573fi
16574rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16575LIBS=$ac_check_lib_save_LIBS
16576fi
16577echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
16578echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
16579if test $ac_cv_lib_krb4_main = yes; then
16580 cat >>confdefs.h <<_ACEOF
16581@%:@define HAVE_LIBKRB4 1
16582_ACEOF
16583
16584 LIBS="-lkrb4 $LIBS"
16585
16586fi
16587
16588 if test "$ac_cv_lib_krb4_main" != yes; then
16589 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
16590echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
16591 else
16592 KLIBS="-lkrb4"
16593 fi
16594 else
16595 KLIBS="-lkrb"
16596 fi
16597
16598echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16599echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
16600if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16602else
16603 ac_check_lib_save_LIBS=$LIBS
16604LIBS="-ldes $LIBS"
16605cat >conftest.$ac_ext <<_ACEOF
16606#line $LINENO "configure"
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612
16613/* Override any gcc2 internal prototype to avoid an error. */
16614#ifdef __cplusplus
16615extern "C"
16616#endif
16617/* We use char because int might match the return type of a gcc2
16618 builtin and then its argument prototype would still apply. */
16619char des_cbc_encrypt ();
16620int
16621main ()
16622{
16623des_cbc_encrypt ();
16624 ;
16625 return 0;
16626}
16627_ACEOF
16628rm -f conftest.$ac_objext conftest$ac_exeext
16629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16630 (eval $ac_link) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try='test -s conftest$ac_exeext'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_cv_lib_des_des_cbc_encrypt=yes
16641else
16642 echo "$as_me: failed program was:" >&5
16643sed 's/^/| /' conftest.$ac_ext >&5
16644
16645ac_cv_lib_des_des_cbc_encrypt=no
16646fi
16647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16648LIBS=$ac_check_lib_save_LIBS
16649fi
16650echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16651echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
16652if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16653 cat >>confdefs.h <<_ACEOF
16654@%:@define HAVE_LIBDES 1
16655_ACEOF
16656
16657 LIBS="-ldes $LIBS"
16658
16659fi
16660
16661 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
16662
16663echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
16664echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
16665if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667else
16668 ac_check_lib_save_LIBS=$LIBS
16669LIBS="-ldes425 $LIBS"
16670cat >conftest.$ac_ext <<_ACEOF
16671#line $LINENO "configure"
16672/* confdefs.h. */
16673_ACEOF
16674cat confdefs.h >>conftest.$ac_ext
16675cat >>conftest.$ac_ext <<_ACEOF
16676/* end confdefs.h. */
16677
16678/* Override any gcc2 internal prototype to avoid an error. */
16679#ifdef __cplusplus
16680extern "C"
16681#endif
16682/* We use char because int might match the return type of a gcc2
16683 builtin and then its argument prototype would still apply. */
16684char des_cbc_encrypt ();
16685int
16686main ()
16687{
16688des_cbc_encrypt ();
16689 ;
16690 return 0;
16691}
16692_ACEOF
16693rm -f conftest.$ac_objext conftest$ac_exeext
16694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16695 (eval $ac_link) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -s conftest$ac_exeext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_lib_des425_des_cbc_encrypt=yes
16706else
16707 echo "$as_me: failed program was:" >&5
16708sed 's/^/| /' conftest.$ac_ext >&5
16709
16710ac_cv_lib_des425_des_cbc_encrypt=no
16711fi
16712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16713LIBS=$ac_check_lib_save_LIBS
16714fi
16715echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16716echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
16717if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
16718 cat >>confdefs.h <<_ACEOF
16719@%:@define HAVE_LIBDES425 1
16720_ACEOF
16721
16722 LIBS="-ldes425 $LIBS"
16723
16724fi
16725
16726 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
16727 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
16728echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
16729 else
16730 KLIBS="-ldes425"
16731 fi
16732 else
16733 KLIBS="-ldes"
16734 fi
16735
16736echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
16737echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
16738if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740else
16741 ac_check_lib_save_LIBS=$LIBS
16742LIBS="-lresolv $LIBS"
16743cat >conftest.$ac_ext <<_ACEOF
16744#line $LINENO "configure"
16745/* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
16750
16751/* Override any gcc2 internal prototype to avoid an error. */
16752#ifdef __cplusplus
16753extern "C"
16754#endif
16755/* We use char because int might match the return type of a gcc2
16756 builtin and then its argument prototype would still apply. */
16757char dn_expand ();
16758int
16759main ()
16760{
16761dn_expand ();
16762 ;
16763 return 0;
16764}
16765_ACEOF
16766rm -f conftest.$ac_objext conftest$ac_exeext
16767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768 (eval $ac_link) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -s conftest$ac_exeext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 ac_cv_lib_resolv_dn_expand=yes
16779else
16780 echo "$as_me: failed program was:" >&5
16781sed 's/^/| /' conftest.$ac_ext >&5
16782
16783ac_cv_lib_resolv_dn_expand=no
16784fi
16785rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16786LIBS=$ac_check_lib_save_LIBS
16787fi
16788echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
16789echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
16790if test $ac_cv_lib_resolv_dn_expand = yes; then
16791 cat >>confdefs.h <<_ACEOF
16792@%:@define HAVE_LIBRESOLV 1
16793_ACEOF
16794
16795 LIBS="-lresolv $LIBS"
16796
16797fi
16798
16799 KRB4=yes
16800 KRB4_MSG="yes"
16801 cat >>confdefs.h <<\_ACEOF
16802@%:@define KRB4 1
16803_ACEOF
16804
16805 fi
16806
16807
16808fi;
16809
16810# Check whether user wants AFS support
16811AFS_MSG="no"
16812
16813# Check whether --with-afs or --without-afs was given.
16814if test "${with_afs+set}" = set; then
16815 withval="$with_afs"
16816
16817 if test "x$withval" != "xno" ; then
16818
16819 if test "x$withval" != "xyes" ; then
16820 CPPFLAGS="$CPPFLAGS -I${withval}/include"
16821 LDFLAGS="$LDFLAGS -L${withval}/lib"
16822 fi
16823
16824 if test -z "$KRB4" ; then
16825 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
16826echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
16827 fi
16828
16829 LIBS="-lkafs $LIBS"
16830 if test ! -z "$AFS_LIBS" ; then
16831 LIBS="$LIBS $AFS_LIBS"
16832 fi
16833 cat >>confdefs.h <<\_ACEOF
16834@%:@define AFS 1
16835_ACEOF
16836
16837 AFS_MSG="yes"
16838 fi
16839
16840
16841fi;
16842LIBS="$LIBS $KLIBS $K5LIBS"
16843
16844# Looking for programs, paths and files
16845
16846PRIVSEP_PATH=/var/empty
16847
16848# Check whether --with-privsep-path or --without-privsep-path was given.
16849if test "${with_privsep_path+set}" = set; then
16850 withval="$with_privsep_path"
16851
16852 if test "x$withval" != "$no" ; then
16853 PRIVSEP_PATH=$withval
16854 fi
16855
16856
16857fi;
16858
16859
16860
16861# Check whether --with-xauth or --without-xauth was given.
16862if test "${with_xauth+set}" = set; then
16863 withval="$with_xauth"
16864
16865 if test "x$withval" != "xno" ; then
16866 xauth_path=$withval
16867 fi
16868
16869else
16870
16871 TestPath="$PATH"
16872 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
16873 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
16874 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
16875 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
16876 # Extract the first word of "xauth", so it can be a program name with args.
16877set dummy xauth; ac_word=$2
16878echo "$as_me:$LINENO: checking for $ac_word" >&5
16879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16880if test "${ac_cv_path_xauth_path+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882else
16883 case $xauth_path in
16884 [\\/]* | ?:[\\/]*)
16885 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
16886 ;;
16887 *)
16888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16889for as_dir in $TestPath
16890do
16891 IFS=$as_save_IFS
16892 test -z "$as_dir" && as_dir=.
16893 for ac_exec_ext in '' $ac_executable_extensions; do
16894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16895 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
16896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16897 break 2
16898 fi
16899done
16900done
16901
16902 ;;
16903esac
16904fi
16905xauth_path=$ac_cv_path_xauth_path
16906
16907if test -n "$xauth_path"; then
16908 echo "$as_me:$LINENO: result: $xauth_path" >&5
16909echo "${ECHO_T}$xauth_path" >&6
16910else
16911 echo "$as_me:$LINENO: result: no" >&5
16912echo "${ECHO_T}no" >&6
16913fi
16914
16915 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
16916 xauth_path="/usr/openwin/bin/xauth"
16917 fi
16918
16919
16920fi;
16921
16922STRIP_OPT=-s
16923# Check whether --enable-strip or --disable-strip was given.
16924if test "${enable_strip+set}" = set; then
16925 enableval="$enable_strip"
16926
16927 if test "x$enableval" = "xno" ; then
16928 STRIP_OPT=
16929 fi
16930
16931
16932fi;
16933
16934
16935if test -z "$xauth_path" ; then
16936 XAUTH_PATH="undefined"
16937
16938else
16939 cat >>confdefs.h <<_ACEOF
16940@%:@define XAUTH_PATH "$xauth_path"
16941_ACEOF
16942
16943 XAUTH_PATH=$xauth_path
16944
16945fi
16946
16947# Check for mail directory (last resort if we cannot get it from headers)
16948if test ! -z "$MAIL" ; then
16949 maildir=`dirname $MAIL`
16950 cat >>confdefs.h <<_ACEOF
16951@%:@define MAIL_DIRECTORY "$maildir"
16952_ACEOF
16953
16954fi
16955
16956if test -z "$no_dev_ptmx" ; then
16957 if test "x$disable_ptmx_check" != "xyes" ; then
16958 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
16959echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
16960if test "${ac_cv_file___dev_ptmx_+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962else
16963 test "$cross_compiling" = yes &&
16964 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16965echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16966 { (exit 1); exit 1; }; }
16967if test -r ""/dev/ptmx""; then
16968 ac_cv_file___dev_ptmx_=yes
16969else
16970 ac_cv_file___dev_ptmx_=no
16971fi
16972fi
16973echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
16974echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
16975if test $ac_cv_file___dev_ptmx_ = yes; then
16976
16977 cat >>confdefs.h <<_ACEOF
16978@%:@define HAVE_DEV_PTMX 1
16979_ACEOF
16980
16981 have_dev_ptmx=1
16982
16983
16984fi
16985
16986 fi
16987fi
16988echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
16989echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
16990if test "${ac_cv_file___dev_ptc_+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992else
16993 test "$cross_compiling" = yes &&
16994 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16995echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16996 { (exit 1); exit 1; }; }
16997if test -r ""/dev/ptc""; then
16998 ac_cv_file___dev_ptc_=yes
16999else
17000 ac_cv_file___dev_ptc_=no
17001fi
17002fi
17003echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
17004echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
17005if test $ac_cv_file___dev_ptc_ = yes; then
17006
17007 cat >>confdefs.h <<_ACEOF
17008@%:@define HAVE_DEV_PTS_AND_PTC 1
17009_ACEOF
17010
17011 have_dev_ptc=1
17012
17013
17014fi
17015
17016
17017# Options from here on. Some of these are preset by platform above
17018
17019# Check whether --with-mantype or --without-mantype was given.
17020if test "${with_mantype+set}" = set; then
17021 withval="$with_mantype"
17022
17023 case "$withval" in
17024 man|cat|doc)
17025 MANTYPE=$withval
17026 ;;
17027 *)
17028 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
17029echo "$as_me: error: invalid man type: $withval" >&2;}
17030 { (exit 1); exit 1; }; }
17031 ;;
17032 esac
17033
17034
17035fi;
17036if test -z "$MANTYPE"; then
17037 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
17038 for ac_prog in nroff awf
17039do
17040 # Extract the first word of "$ac_prog", so it can be a program name with args.
17041set dummy $ac_prog; ac_word=$2
17042echo "$as_me:$LINENO: checking for $ac_word" >&5
17043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17044if test "${ac_cv_path_NROFF+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047 case $NROFF in
17048 [\\/]* | ?:[\\/]*)
17049 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
17050 ;;
17051 *)
17052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17053for as_dir in $TestPath
17054do
17055 IFS=$as_save_IFS
17056 test -z "$as_dir" && as_dir=.
17057 for ac_exec_ext in '' $ac_executable_extensions; do
17058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17059 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
17060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17061 break 2
17062 fi
17063done
17064done
17065
17066 ;;
17067esac
17068fi
17069NROFF=$ac_cv_path_NROFF
17070
17071if test -n "$NROFF"; then
17072 echo "$as_me:$LINENO: result: $NROFF" >&5
17073echo "${ECHO_T}$NROFF" >&6
17074else
17075 echo "$as_me:$LINENO: result: no" >&5
17076echo "${ECHO_T}no" >&6
17077fi
17078
17079 test -n "$NROFF" && break
17080done
17081test -n "$NROFF" || NROFF="/bin/false"
17082
17083 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
17084 MANTYPE=doc
17085 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
17086 MANTYPE=man
17087 else
17088 MANTYPE=cat
17089 fi
17090fi
17091
17092if test "$MANTYPE" = "doc"; then
17093 mansubdir=man;
17094else
17095 mansubdir=$MANTYPE;
17096fi
17097
17098
17099# Check whether to enable MD5 passwords
17100MD5_MSG="no"
17101
17102# Check whether --with-md5-passwords or --without-md5-passwords was given.
17103if test "${with_md5_passwords+set}" = set; then
17104 withval="$with_md5_passwords"
17105
17106 if test "x$withval" != "xno" ; then
17107 cat >>confdefs.h <<\_ACEOF
17108@%:@define HAVE_MD5_PASSWORDS 1
17109_ACEOF
17110
17111 MD5_MSG="yes"
17112 fi
17113
17114
17115fi;
17116
17117# Whether to disable shadow password support
17118
17119# Check whether --with-shadow or --without-shadow was given.
17120if test "${with_shadow+set}" = set; then
17121 withval="$with_shadow"
17122
17123 if test "x$withval" = "xno" ; then
17124 cat >>confdefs.h <<\_ACEOF
17125@%:@define DISABLE_SHADOW 1
17126_ACEOF
17127
17128 disable_shadow=yes
17129 fi
17130
17131
17132fi;
17133
17134if test -z "$disable_shadow" ; then
17135 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
17136echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
17137 cat >conftest.$ac_ext <<_ACEOF
17138#line $LINENO "configure"
17139/* confdefs.h. */
17140_ACEOF
17141cat confdefs.h >>conftest.$ac_ext
17142cat >>conftest.$ac_ext <<_ACEOF
17143/* end confdefs.h. */
17144
17145#include <sys/types.h>
17146#include <shadow.h>
17147 struct spwd sp;
17148
17149int
17150main ()
17151{
17152 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
17153 ;
17154 return 0;
17155}
17156_ACEOF
17157rm -f conftest.$ac_objext
17158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17159 (eval $ac_compile) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
17163 { ac_try='test -s conftest.$ac_objext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 sp_expire_available=yes
17170else
17171 echo "$as_me: failed program was:" >&5
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
17174
17175
17176fi
17177rm -f conftest.$ac_objext conftest.$ac_ext
17178
17179 if test "x$sp_expire_available" = "xyes" ; then
17180 echo "$as_me:$LINENO: result: yes" >&5
17181echo "${ECHO_T}yes" >&6
17182 cat >>confdefs.h <<\_ACEOF
17183@%:@define HAS_SHADOW_EXPIRE 1
17184_ACEOF
17185
17186 else
17187 echo "$as_me:$LINENO: result: no" >&5
17188echo "${ECHO_T}no" >&6
17189 fi
17190fi
17191
17192# Use ip address instead of hostname in $DISPLAY
17193if test ! -z "$IPADDR_IN_DISPLAY" ; then
17194 DISPLAY_HACK_MSG="yes"
17195 cat >>confdefs.h <<\_ACEOF
17196@%:@define IPADDR_IN_DISPLAY 1
17197_ACEOF
17198
17199else
17200 DISPLAY_HACK_MSG="no"
17201
17202# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
17203if test "${with_ipaddr_display+set}" = set; then
17204 withval="$with_ipaddr_display"
17205
17206 if test "x$withval" != "xno" ; then
17207 cat >>confdefs.h <<\_ACEOF
17208@%:@define IPADDR_IN_DISPLAY 1
17209_ACEOF
17210
17211 DISPLAY_HACK_MSG="yes"
17212 fi
17213
17214
17215fi;
17216fi
17217
17218if test $ac_cv_func_login_getcapbool = "yes" -a \
17219 $ac_cv_header_login_cap_h = "yes" ; then
17220 USES_LOGIN_CONF=yes
17221fi
17222# Whether to mess with the default path
17223SERVER_PATH_MSG="(default)"
17224
17225# Check whether --with-default-path or --without-default-path was given.
17226if test "${with_default_path+set}" = set; then
17227 withval="$with_default_path"
17228
17229 if test "$USES_LOGIN_CONF" = "yes" ; then
17230 { echo "$as_me:$LINENO: WARNING:
17231--with-default-path=PATH has no effect on this system.
17232Edit /etc/login.conf instead." >&5
17233echo "$as_me: WARNING:
17234--with-default-path=PATH has no effect on this system.
17235Edit /etc/login.conf instead." >&2;}
17236 elif test "x$withval" != "xno" ; then
17237 user_path="$withval"
17238 SERVER_PATH_MSG="$withval"
17239 fi
17240
17241else
17242 if test "$USES_LOGIN_CONF" = "yes" ; then
17243 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
17244echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
17245 else
17246 if test "$cross_compiling" = yes; then
17247 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17248
17249else
17250 cat >conftest.$ac_ext <<_ACEOF
17251#line $LINENO "configure"
17252/* confdefs.h. */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h. */
17257
17258/* find out what STDPATH is */
17259#include <stdio.h>
17260#ifdef HAVE_PATHS_H
17261# include <paths.h>
17262#endif
17263#ifndef _PATH_STDPATH
17264# ifdef _PATH_USERPATH /* Irix */
17265# define _PATH_STDPATH _PATH_USERPATH
17266# else
17267# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
17268# endif
17269#endif
17270#include <sys/types.h>
17271#include <sys/stat.h>
17272#include <fcntl.h>
17273#define DATA "conftest.stdpath"
17274
17275main()
17276{
17277 FILE *fd;
17278 int rc;
17279
17280 fd = fopen(DATA,"w");
17281 if(fd == NULL)
17282 exit(1);
17283
17284 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
17285 exit(1);
17286
17287 exit(0);
17288}
17289
17290_ACEOF
17291rm -f conftest$ac_exeext
17292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17293 (eval $ac_link) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 user_path=`cat conftest.stdpath`
17303else
17304 echo "$as_me: program exited with status $ac_status" >&5
17305echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308( exit $ac_status )
17309 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17310fi
17311rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17312fi
17313# make sure $bindir is in USER_PATH so scp will work
17314 t_bindir=`eval echo ${bindir}`
17315 case $t_bindir in
17316 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
17317 esac
17318 case $t_bindir in
17319 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
17320 esac
17321 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
17322 if test $? -ne 0 ; then
17323 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
17324 if test $? -ne 0 ; then
17325 user_path=$user_path:$t_bindir
17326 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
17327echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
17328 fi
17329 fi
17330 fi
17331
17332fi;
17333if test "$USES_LOGIN_CONF" != "yes" ; then
17334 cat >>confdefs.h <<_ACEOF
17335@%:@define USER_PATH "$user_path"
17336_ACEOF
17337
17338
17339fi
17340
17341# Set superuser path separately to user path
17342
17343# Check whether --with-superuser-path or --without-superuser-path was given.
17344if test "${with_superuser_path+set}" = set; then
17345 withval="$with_superuser_path"
17346
17347 if test "x$withval" != "xno" ; then
17348 cat >>confdefs.h <<_ACEOF
17349@%:@define SUPERUSER_PATH "$withval"
17350_ACEOF
17351
17352 superuser_path=$withval
17353 fi
17354
17355
17356fi;
17357
17358
17359# Whether to force IPv4 by default (needed on broken glibc Linux)
17360IPV4_HACK_MSG="no"
17361
17362# Check whether --with-ipv4-default or --without-ipv4-default was given.
17363if test "${with_ipv4_default+set}" = set; then
17364 withval="$with_ipv4_default"
17365
17366 if test "x$withval" != "xno" ; then
17367 cat >>confdefs.h <<\_ACEOF
17368@%:@define IPV4_DEFAULT 1
17369_ACEOF
17370
17371 IPV4_HACK_MSG="yes"
17372 fi
17373
17374
17375fi;
17376
17377echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
17378echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
17379IPV4_IN6_HACK_MSG="no"
17380
17381# Check whether --with-4in6 or --without-4in6 was given.
17382if test "${with_4in6+set}" = set; then
17383 withval="$with_4in6"
17384
17385 if test "x$withval" != "xno" ; then
17386 echo "$as_me:$LINENO: result: yes" >&5
17387echo "${ECHO_T}yes" >&6
17388 cat >>confdefs.h <<\_ACEOF
17389@%:@define IPV4_IN_IPV6 1
17390_ACEOF
17391
17392 IPV4_IN6_HACK_MSG="yes"
17393 else
17394 echo "$as_me:$LINENO: result: no" >&5
17395echo "${ECHO_T}no" >&6
17396 fi
17397
17398else
17399
17400 if test "x$inet6_default_4in6" = "xyes"; then
17401 echo "$as_me:$LINENO: result: yes (default)" >&5
17402echo "${ECHO_T}yes (default)" >&6
17403 cat >>confdefs.h <<\_ACEOF
17404@%:@define IPV4_IN_IPV6 1
17405_ACEOF
17406
17407 IPV4_IN6_HACK_MSG="yes"
17408 else
17409 echo "$as_me:$LINENO: result: no (default)" >&5
17410echo "${ECHO_T}no (default)" >&6
17411 fi
17412
17413
17414fi;
17415
17416# Whether to enable BSD auth support
17417BSD_AUTH_MSG=no
17418
17419# Check whether --with-bsd-auth or --without-bsd-auth was given.
17420if test "${with_bsd_auth+set}" = set; then
17421 withval="$with_bsd_auth"
17422
17423 if test "x$withval" != "xno" ; then
17424 cat >>confdefs.h <<\_ACEOF
17425@%:@define BSD_AUTH 1
17426_ACEOF
17427
17428 BSD_AUTH_MSG=yes
17429 fi
17430
17431
17432fi;
17433
17434# Where to place sshd.pid
17435piddir=/var/run
17436# make sure the directory exists
17437if test ! -d $piddir ; then
17438 piddir=`eval echo ${sysconfdir}`
17439 case $piddir in
17440 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
17441 esac
17442fi
17443
17444
17445# Check whether --with-pid-dir or --without-pid-dir was given.
17446if test "${with_pid_dir+set}" = set; then
17447 withval="$with_pid_dir"
17448
17449 if test "x$withval" != "xno" ; then
17450 piddir=$withval
17451 if test ! -d $piddir ; then
17452 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
17453echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
17454 fi
17455 fi
17456
17457
17458fi;
17459
17460cat >>confdefs.h <<_ACEOF
17461@%:@define _PATH_SSH_PIDDIR "$piddir"
17462_ACEOF
17463
17464
17465
17466# Check whether --enable-lastlog or --disable-lastlog was given.
17467if test "${enable_lastlog+set}" = set; then
17468 enableval="$enable_lastlog"
17469 cat >>confdefs.h <<\_ACEOF
17470@%:@define DISABLE_LASTLOG 1
17471_ACEOF
17472
17473
17474fi;
17475# Check whether --enable-utmp or --disable-utmp was given.
17476if test "${enable_utmp+set}" = set; then
17477 enableval="$enable_utmp"
17478 cat >>confdefs.h <<\_ACEOF
17479@%:@define DISABLE_UTMP 1
17480_ACEOF
17481
17482
17483fi;
17484# Check whether --enable-utmpx or --disable-utmpx was given.
17485if test "${enable_utmpx+set}" = set; then
17486 enableval="$enable_utmpx"
17487 cat >>confdefs.h <<\_ACEOF
17488@%:@define DISABLE_UTMPX 1
17489_ACEOF
17490
17491
17492fi;
17493# Check whether --enable-wtmp or --disable-wtmp was given.
17494if test "${enable_wtmp+set}" = set; then
17495 enableval="$enable_wtmp"
17496 cat >>confdefs.h <<\_ACEOF
17497@%:@define DISABLE_WTMP 1
17498_ACEOF
17499
17500
17501fi;
17502# Check whether --enable-wtmpx or --disable-wtmpx was given.
17503if test "${enable_wtmpx+set}" = set; then
17504 enableval="$enable_wtmpx"
17505 cat >>confdefs.h <<\_ACEOF
17506@%:@define DISABLE_WTMPX 1
17507_ACEOF
17508
17509
17510fi;
17511# Check whether --enable-libutil or --disable-libutil was given.
17512if test "${enable_libutil+set}" = set; then
17513 enableval="$enable_libutil"
17514 cat >>confdefs.h <<\_ACEOF
17515@%:@define DISABLE_LOGIN 1
17516_ACEOF
17517
17518
17519fi;
17520# Check whether --enable-pututline or --disable-pututline was given.
17521if test "${enable_pututline+set}" = set; then
17522 enableval="$enable_pututline"
17523 cat >>confdefs.h <<\_ACEOF
17524@%:@define DISABLE_PUTUTLINE 1
17525_ACEOF
17526
17527
17528fi;
17529# Check whether --enable-pututxline or --disable-pututxline was given.
17530if test "${enable_pututxline+set}" = set; then
17531 enableval="$enable_pututxline"
17532 cat >>confdefs.h <<\_ACEOF
17533@%:@define DISABLE_PUTUTXLINE 1
17534_ACEOF
17535
17536
17537fi;
17538
17539# Check whether --with-lastlog or --without-lastlog was given.
17540if test "${with_lastlog+set}" = set; then
17541 withval="$with_lastlog"
17542
17543 if test "x$withval" = "xno" ; then
17544 cat >>confdefs.h <<\_ACEOF
17545@%:@define DISABLE_LASTLOG 1
17546_ACEOF
17547
17548 else
17549 conf_lastlog_location=$withval
17550 fi
17551
17552
17553fi;
17554
17555
17556echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
17557echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
17558cat >conftest.$ac_ext <<_ACEOF
17559#line $LINENO "configure"
17560/* confdefs.h. */
17561_ACEOF
17562cat confdefs.h >>conftest.$ac_ext
17563cat >>conftest.$ac_ext <<_ACEOF
17564/* end confdefs.h. */
17565
17566#include <sys/types.h>
17567#include <utmp.h>
17568#ifdef HAVE_LASTLOG_H
17569# include <lastlog.h>
17570#endif
17571#ifdef HAVE_PATHS_H
17572# include <paths.h>
17573#endif
17574#ifdef HAVE_LOGIN_H
17575# include <login.h>
17576#endif
17577
17578int
17579main ()
17580{
17581 char *lastlog = LASTLOG_FILE;
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext
17587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -s conftest.$ac_objext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 echo "$as_me:$LINENO: result: yes" >&5
17599echo "${ECHO_T}yes" >&6
17600else
17601 echo "$as_me: failed program was:" >&5
17602sed 's/^/| /' conftest.$ac_ext >&5
17603
17604
17605 echo "$as_me:$LINENO: result: no" >&5
17606echo "${ECHO_T}no" >&6
17607 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
17608echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
17609 cat >conftest.$ac_ext <<_ACEOF
17610#line $LINENO "configure"
17611/* confdefs.h. */
17612_ACEOF
17613cat confdefs.h >>conftest.$ac_ext
17614cat >>conftest.$ac_ext <<_ACEOF
17615/* end confdefs.h. */
17616
17617#include <sys/types.h>
17618#include <utmp.h>
17619#ifdef HAVE_LASTLOG_H
17620# include <lastlog.h>
17621#endif
17622#ifdef HAVE_PATHS_H
17623# include <paths.h>
17624#endif
17625
17626int
17627main ()
17628{
17629 char *lastlog = _PATH_LASTLOG;
17630 ;
17631 return 0;
17632}
17633_ACEOF
17634rm -f conftest.$ac_objext
17635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try='test -s conftest.$ac_objext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 echo "$as_me:$LINENO: result: yes" >&5
17647echo "${ECHO_T}yes" >&6
17648else
17649 echo "$as_me: failed program was:" >&5
17650sed 's/^/| /' conftest.$ac_ext >&5
17651
17652
17653 echo "$as_me:$LINENO: result: no" >&5
17654echo "${ECHO_T}no" >&6
17655 system_lastlog_path=no
17656
17657fi
17658rm -f conftest.$ac_objext conftest.$ac_ext
17659
17660
17661fi
17662rm -f conftest.$ac_objext conftest.$ac_ext
17663
17664if test -z "$conf_lastlog_location"; then
17665 if test x"$system_lastlog_path" = x"no" ; then
17666 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
17667 if (test -d "$f" || test -f "$f") ; then
17668 conf_lastlog_location=$f
17669 fi
17670 done
17671 if test -z "$conf_lastlog_location"; then
17672 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
17673echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
17674 fi
17675 fi
17676fi
17677
17678if test -n "$conf_lastlog_location"; then
17679 cat >>confdefs.h <<_ACEOF
17680@%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
17681_ACEOF
17682
17683fi
17684
17685echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
17686echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
17687cat >conftest.$ac_ext <<_ACEOF
17688#line $LINENO "configure"
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
17694
17695#include <sys/types.h>
17696#include <utmp.h>
17697#ifdef HAVE_PATHS_H
17698# include <paths.h>
17699#endif
17700
17701int
17702main ()
17703{
17704 char *utmp = UTMP_FILE;
17705 ;
17706 return 0;
17707}
17708_ACEOF
17709rm -f conftest.$ac_objext
17710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17711 (eval $ac_compile) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -s conftest.$ac_objext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 echo "$as_me:$LINENO: result: yes" >&5
17722echo "${ECHO_T}yes" >&6
17723else
17724 echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 echo "$as_me:$LINENO: result: no" >&5
17728echo "${ECHO_T}no" >&6
17729 system_utmp_path=no
17730
17731fi
17732rm -f conftest.$ac_objext conftest.$ac_ext
17733if test -z "$conf_utmp_location"; then
17734 if test x"$system_utmp_path" = x"no" ; then
17735 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
17736 if test -f $f ; then
17737 conf_utmp_location=$f
17738 fi
17739 done
17740 if test -z "$conf_utmp_location"; then
17741 cat >>confdefs.h <<\_ACEOF
17742@%:@define DISABLE_UTMP 1
17743_ACEOF
17744
17745 fi
17746 fi
17747fi
17748if test -n "$conf_utmp_location"; then
17749 cat >>confdefs.h <<_ACEOF
17750@%:@define CONF_UTMP_FILE "$conf_utmp_location"
17751_ACEOF
17752
17753fi
17754
17755echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
17756echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
17757cat >conftest.$ac_ext <<_ACEOF
17758#line $LINENO "configure"
17759/* confdefs.h. */
17760_ACEOF
17761cat confdefs.h >>conftest.$ac_ext
17762cat >>conftest.$ac_ext <<_ACEOF
17763/* end confdefs.h. */
17764
17765#include <sys/types.h>
17766#include <utmp.h>
17767#ifdef HAVE_PATHS_H
17768# include <paths.h>
17769#endif
17770
17771int
17772main ()
17773{
17774 char *wtmp = WTMP_FILE;
17775 ;
17776 return 0;
17777}
17778_ACEOF
17779rm -f conftest.$ac_objext
17780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17781 (eval $ac_compile) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -s conftest.$ac_objext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 echo "$as_me:$LINENO: result: yes" >&5
17792echo "${ECHO_T}yes" >&6
17793else
17794 echo "$as_me: failed program was:" >&5
17795sed 's/^/| /' conftest.$ac_ext >&5
17796
17797 echo "$as_me:$LINENO: result: no" >&5
17798echo "${ECHO_T}no" >&6
17799 system_wtmp_path=no
17800
17801fi
17802rm -f conftest.$ac_objext conftest.$ac_ext
17803if test -z "$conf_wtmp_location"; then
17804 if test x"$system_wtmp_path" = x"no" ; then
17805 for f in /usr/adm/wtmp /var/log/wtmp; do
17806 if test -f $f ; then
17807 conf_wtmp_location=$f
17808 fi
17809 done
17810 if test -z "$conf_wtmp_location"; then
17811 cat >>confdefs.h <<\_ACEOF
17812@%:@define DISABLE_WTMP 1
17813_ACEOF
17814
17815 fi
17816 fi
17817fi
17818if test -n "$conf_wtmp_location"; then
17819 cat >>confdefs.h <<_ACEOF
17820@%:@define CONF_WTMP_FILE "$conf_wtmp_location"
17821_ACEOF
17822
17823fi
17824
17825
17826echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
17827echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
17828cat >conftest.$ac_ext <<_ACEOF
17829#line $LINENO "configure"
17830/* confdefs.h. */
17831_ACEOF
17832cat confdefs.h >>conftest.$ac_ext
17833cat >>conftest.$ac_ext <<_ACEOF
17834/* end confdefs.h. */
17835
17836#include <sys/types.h>
17837#include <utmp.h>
17838#ifdef HAVE_UTMPX_H
17839#include <utmpx.h>
17840#endif
17841#ifdef HAVE_PATHS_H
17842# include <paths.h>
17843#endif
17844
17845int
17846main ()
17847{
17848 char *utmpx = UTMPX_FILE;
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853rm -f conftest.$ac_objext
17854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17855 (eval $ac_compile) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 echo "$as_me:$LINENO: result: yes" >&5
17866echo "${ECHO_T}yes" >&6
17867else
17868 echo "$as_me: failed program was:" >&5
17869sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 echo "$as_me:$LINENO: result: no" >&5
17872echo "${ECHO_T}no" >&6
17873 system_utmpx_path=no
17874
17875fi
17876rm -f conftest.$ac_objext conftest.$ac_ext
17877if test -z "$conf_utmpx_location"; then
17878 if test x"$system_utmpx_path" = x"no" ; then
17879 cat >>confdefs.h <<\_ACEOF
17880@%:@define DISABLE_UTMPX 1
17881_ACEOF
17882
17883 fi
17884else
17885 cat >>confdefs.h <<_ACEOF
17886@%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
17887_ACEOF
17888
17889fi
17890
17891echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
17892echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
17893cat >conftest.$ac_ext <<_ACEOF
17894#line $LINENO "configure"
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
17900
17901#include <sys/types.h>
17902#include <utmp.h>
17903#ifdef HAVE_UTMPX_H
17904#include <utmpx.h>
17905#endif
17906#ifdef HAVE_PATHS_H
17907# include <paths.h>
17908#endif
17909
17910int
17911main ()
17912{
17913 char *wtmpx = WTMPX_FILE;
17914 ;
17915 return 0;
17916}
17917_ACEOF
17918rm -f conftest.$ac_objext
17919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920 (eval $ac_compile) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 echo "$as_me:$LINENO: result: yes" >&5
17931echo "${ECHO_T}yes" >&6
17932else
17933 echo "$as_me: failed program was:" >&5
17934sed 's/^/| /' conftest.$ac_ext >&5
17935
17936 echo "$as_me:$LINENO: result: no" >&5
17937echo "${ECHO_T}no" >&6
17938 system_wtmpx_path=no
17939
17940fi
17941rm -f conftest.$ac_objext conftest.$ac_ext
17942if test -z "$conf_wtmpx_location"; then
17943 if test x"$system_wtmpx_path" = x"no" ; then
17944 cat >>confdefs.h <<\_ACEOF
17945@%:@define DISABLE_WTMPX 1
17946_ACEOF
17947
17948 fi
17949else
17950 cat >>confdefs.h <<_ACEOF
17951@%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
17952_ACEOF
17953
17954fi
17955
17956
17957if test ! -z "$blibpath" ; then
17958 LDFLAGS="$LDFLAGS $blibflags$blibpath"
17959 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
17960echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
17961fi
17962
17963if test "$PAM_MSG" = yes ; then
17964 LIBS=`echo $LIBS | sed 's/-lpam //'`
17965fi
17966if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
17967 LIBS=`echo $LIBS | sed 's/-ldl //'`
17968fi
17969
17970
17971 ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
17972
17973cat >confcache <<\_ACEOF
17974# This file is a shell script that caches the results of configure
17975# tests run on this system so they can be shared between configure
17976# scripts and configure runs, see configure's option --config-cache.
17977# It is not useful on other systems. If it contains results you don't
17978# want to keep, you may remove or edit it.
17979#
17980# config.status only pays attention to the cache file if you give it
17981# the --recheck option to rerun configure.
17982#
17983# `ac_cv_env_foo' variables (set or unset) will be overridden when
17984# loading this file, other *unset* `ac_cv_foo' will be assigned the
17985# following values.
17986
17987_ACEOF
17988
17989# The following way of writing the cache mishandles newlines in values,
17990# but we know of no workaround that is simple, portable, and efficient.
17991# So, don't put newlines in cache variables' values.
17992# Ultrix sh set writes to stderr and can't be redirected directly,
17993# and sets the high bit in the cache file unless we assign to the vars.
17994{
17995 (set) 2>&1 |
17996 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17997 *ac_space=\ *)
17998 # `set' does not quote correctly, so add quotes (double-quote
17999 # substitution turns \\\\ into \\, and sed turns \\ into \).
18000 sed -n \
18001 "s/'/'\\\\''/g;
18002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18003 ;;
18004 *)
18005 # `set' quotes correctly as required by POSIX, so do not add quotes.
18006 sed -n \
18007 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18008 ;;
18009 esac;
18010} |
18011 sed '
18012 t clear
18013 : clear
18014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18015 t end
18016 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18017 : end' >>confcache
18018if diff $cache_file confcache >/dev/null 2>&1; then :; else
18019 if test -w $cache_file; then
18020 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18021 cat confcache >$cache_file
18022 else
18023 echo "not updating unwritable cache $cache_file"
18024 fi
18025fi
18026rm -f confcache
18027
18028test "x$prefix" = xNONE && prefix=$ac_default_prefix
18029# Let make expand exec_prefix.
18030test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18031
18032# VPATH may cause trouble with some makes, so we remove $(srcdir),
18033# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18034# trailing colons and then remove the whole line if VPATH becomes empty
18035# (actually we leave an empty line to preserve line numbers).
18036if test "x$srcdir" = x.; then
18037 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18038s/:*\$(srcdir):*/:/;
18039s/:*\${srcdir}:*/:/;
18040s/:*@srcdir@:*/:/;
18041s/^\([^=]*=[ ]*\):*/\1/;
18042s/:*$//;
18043s/^[^=]*=[ ]*$//;
18044}'
18045fi
18046
18047DEFS=-DHAVE_CONFIG_H
18048
18049ac_libobjs=
18050ac_ltlibobjs=
18051for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
18052 # 1. Remove the extension, and $U if already installed.
18053 ac_i=`echo "$ac_i" |
18054 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18055 # 2. Add them.
18056 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18057 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18058done
18059LIB@&t@OBJS=$ac_libobjs
18060
18061LTLIBOBJS=$ac_ltlibobjs
18062
18063
18064
18065: ${CONFIG_STATUS=./config.status}
18066ac_clean_files_save=$ac_clean_files
18067ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18068{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18069echo "$as_me: creating $CONFIG_STATUS" >&6;}
18070cat >$CONFIG_STATUS <<_ACEOF
18071#! $SHELL
18072# Generated by $as_me.
18073# Run this file to recreate the current configuration.
18074# Compiler output produced by configure, useful for debugging
18075# configure, is in config.log if it exists.
18076
18077debug=false
18078ac_cs_recheck=false
18079ac_cs_silent=false
18080SHELL=\${CONFIG_SHELL-$SHELL}
18081_ACEOF
18082
18083cat >>$CONFIG_STATUS <<\_ACEOF
18084## --------------------- ##
18085## M4sh Initialization. ##
18086## --------------------- ##
18087
18088# Be Bourne compatible
18089if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18090 emulate sh
18091 NULLCMD=:
18092 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18093 # is contrary to our usage. Disable this feature.
18094 alias -g '${1+"$@"}'='"$@"'
18095elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18096 set -o posix
18097fi
18098
18099# Support unset when possible.
18100if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18101 as_unset=unset
18102else
18103 as_unset=false
18104fi
18105
18106
18107# Work around bugs in pre-3.0 UWIN ksh.
18108$as_unset ENV MAIL MAILPATH
18109PS1='$ '
18110PS2='> '
18111PS4='+ '
18112
18113# NLS nuisances.
18114for as_var in \
18115 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18116 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18117 LC_TELEPHONE LC_TIME
18118do
18119 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18120 eval $as_var=C; export $as_var
18121 else
18122 $as_unset $as_var
18123 fi
18124done
18125
18126# Required to use basename.
18127if expr a : '\(a\)' >/dev/null 2>&1; then
18128 as_expr=expr
18129else
18130 as_expr=false
18131fi
18132
18133if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18134 as_basename=basename
18135else
18136 as_basename=false
18137fi
18138
18139
18140# Name of the executable.
18141as_me=`$as_basename "$0" ||
18142$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18143 X"$0" : 'X\(//\)$' \| \
18144 X"$0" : 'X\(/\)$' \| \
18145 . : '\(.\)' 2>/dev/null ||
18146echo X/"$0" |
18147 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18148 /^X\/\(\/\/\)$/{ s//\1/; q; }
18149 /^X\/\(\/\).*/{ s//\1/; q; }
18150 s/.*/./; q'`
18151
18152
18153# PATH needs CR, and LINENO needs CR and PATH.
18154# Avoid depending upon Character Ranges.
18155as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18156as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18157as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18158as_cr_digits='0123456789'
18159as_cr_alnum=$as_cr_Letters$as_cr_digits
18160
18161# The user is always right.
18162if test "${PATH_SEPARATOR+set}" != set; then
18163 echo "#! /bin/sh" >conf$$.sh
18164 echo "exit 0" >>conf$$.sh
18165 chmod +x conf$$.sh
18166 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18167 PATH_SEPARATOR=';'
18168 else
18169 PATH_SEPARATOR=:
18170 fi
18171 rm -f conf$$.sh
18172fi
18173
18174
18175 as_lineno_1=$LINENO
18176 as_lineno_2=$LINENO
18177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18178 test "x$as_lineno_1" != "x$as_lineno_2" &&
18179 test "x$as_lineno_3" = "x$as_lineno_2" || {
18180 # Find who we are. Look in the path if we contain no path at all
18181 # relative or not.
18182 case $0 in
18183 *[\\/]* ) as_myself=$0 ;;
18184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185for as_dir in $PATH
18186do
18187 IFS=$as_save_IFS
18188 test -z "$as_dir" && as_dir=.
18189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18190done
18191
18192 ;;
18193 esac
18194 # We did not find ourselves, most probably we were run as `sh COMMAND'
18195 # in which case we are not to be found in the path.
18196 if test "x$as_myself" = x; then
18197 as_myself=$0
18198 fi
18199 if test ! -f "$as_myself"; then
18200 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18201echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18202 { (exit 1); exit 1; }; }
18203 fi
18204 case $CONFIG_SHELL in
18205 '')
18206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18208do
18209 IFS=$as_save_IFS
18210 test -z "$as_dir" && as_dir=.
18211 for as_base in sh bash ksh sh5; do
18212 case $as_dir in
18213 /*)
18214 if ("$as_dir/$as_base" -c '
18215 as_lineno_1=$LINENO
18216 as_lineno_2=$LINENO
18217 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18218 test "x$as_lineno_1" != "x$as_lineno_2" &&
18219 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18220 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18221 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18222 CONFIG_SHELL=$as_dir/$as_base
18223 export CONFIG_SHELL
18224 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18225 fi;;
18226 esac
18227 done
18228done
18229;;
18230 esac
18231
18232 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18233 # uniformly replaced by the line number. The first 'sed' inserts a
18234 # line-number line before each line; the second 'sed' does the real
18235 # work. The second script uses 'N' to pair each line-number line
18236 # with the numbered line, and appends trailing '-' during
18237 # substitution so that $LINENO is not a special case at line end.
18238 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18239 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18240 sed '=' <$as_myself |
18241 sed '
18242 N
18243 s,$,-,
18244 : loop
18245 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18246 t loop
18247 s,-$,,
18248 s,^['$as_cr_digits']*\n,,
18249 ' >$as_me.lineno &&
18250 chmod +x $as_me.lineno ||
18251 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18252echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18253 { (exit 1); exit 1; }; }
18254
18255 # Don't try to exec as it changes $[0], causing all sort of problems
18256 # (the dirname of $[0] is not the place where we might find the
18257 # original and so on. Autoconf is especially sensible to this).
18258 . ./$as_me.lineno
18259 # Exit status is that of the last command.
18260 exit
18261}
18262
18263
18264case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18265 *c*,-n*) ECHO_N= ECHO_C='
18266' ECHO_T=' ' ;;
18267 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18268 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18269esac
18270
18271if expr a : '\(a\)' >/dev/null 2>&1; then
18272 as_expr=expr
18273else
18274 as_expr=false
18275fi
18276
18277rm -f conf$$ conf$$.exe conf$$.file
18278echo >conf$$.file
18279if ln -s conf$$.file conf$$ 2>/dev/null; then
18280 # We could just check for DJGPP; but this test a) works b) is more generic
18281 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18282 if test -f conf$$.exe; then
18283 # Don't use ln at all; we don't have any links
18284 as_ln_s='cp -p'
18285 else
18286 as_ln_s='ln -s'
18287 fi
18288elif ln conf$$.file conf$$ 2>/dev/null; then
18289 as_ln_s=ln
18290else
18291 as_ln_s='cp -p'
18292fi
18293rm -f conf$$ conf$$.exe conf$$.file
18294
18295if mkdir -p . 2>/dev/null; then
18296 as_mkdir_p=:
18297else
18298 as_mkdir_p=false
18299fi
18300
18301as_executable_p="test -f"
18302
18303# Sed expression to map a string onto a valid CPP name.
18304as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18305
18306# Sed expression to map a string onto a valid variable name.
18307as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18308
18309
18310# IFS
18311# We need space, tab and new line, in precisely that order.
18312as_nl='
18313'
18314IFS=" $as_nl"
18315
18316# CDPATH.
18317$as_unset CDPATH
18318
18319exec 6>&1
18320
18321# Open the log real soon, to keep \$[0] and so on meaningful, and to
18322# report actual input values of CONFIG_FILES etc. instead of their
18323# values after options handling. Logging --version etc. is OK.
18324exec 5>>config.log
18325{
18326 echo
18327 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
18328@%:@@%:@ Running $as_me. @%:@@%:@
18329_ASBOX
18330} >&5
18331cat >&5 <<_CSEOF
18332
18333This file was extended by $as_me, which was
18334generated by GNU Autoconf 2.57. Invocation command line was
18335
18336 CONFIG_FILES = $CONFIG_FILES
18337 CONFIG_HEADERS = $CONFIG_HEADERS
18338 CONFIG_LINKS = $CONFIG_LINKS
18339 CONFIG_COMMANDS = $CONFIG_COMMANDS
18340 $ $0 $@
18341
18342_CSEOF
18343echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18344echo >&5
18345_ACEOF
18346
18347# Files that config.status was made for.
18348if test -n "$ac_config_files"; then
18349 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18350fi
18351
18352if test -n "$ac_config_headers"; then
18353 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18354fi
18355
18356if test -n "$ac_config_links"; then
18357 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18358fi
18359
18360if test -n "$ac_config_commands"; then
18361 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18362fi
18363
18364cat >>$CONFIG_STATUS <<\_ACEOF
18365
18366ac_cs_usage="\
18367\`$as_me' instantiates files from templates according to the
18368current configuration.
18369
18370Usage: $0 [OPTIONS] [FILE]...
18371
18372 -h, --help print this help, then exit
18373 -V, --version print version number, then exit
18374 -q, --quiet do not print progress messages
18375 -d, --debug don't remove temporary files
18376 --recheck update $as_me by reconfiguring in the same conditions
18377 --file=FILE[:TEMPLATE]
18378 instantiate the configuration file FILE
18379 --header=FILE[:TEMPLATE]
18380 instantiate the configuration header FILE
18381
18382Configuration files:
18383$config_files
18384
18385Configuration headers:
18386$config_headers
18387
18388Report bugs to <bug-autoconf@gnu.org>."
18389_ACEOF
18390
18391cat >>$CONFIG_STATUS <<_ACEOF
18392ac_cs_version="\\
18393config.status
18394configured by $0, generated by GNU Autoconf 2.57,
18395 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18396
18397Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18398Free Software Foundation, Inc.
18399This config.status script is free software; the Free Software Foundation
18400gives unlimited permission to copy, distribute and modify it."
18401srcdir=$srcdir
18402INSTALL="$INSTALL"
18403_ACEOF
18404
18405cat >>$CONFIG_STATUS <<\_ACEOF
18406# If no file are specified by the user, then we need to provide default
18407# value. By we need to know if files were specified by the user.
18408ac_need_defaults=:
18409while test $# != 0
18410do
18411 case $1 in
18412 --*=*)
18413 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18414 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18415 ac_shift=:
18416 ;;
18417 -*)
18418 ac_option=$1
18419 ac_optarg=$2
18420 ac_shift=shift
18421 ;;
18422 *) # This is not an option, so the user has probably given explicit
18423 # arguments.
18424 ac_option=$1
18425 ac_need_defaults=false;;
18426 esac
18427
18428 case $ac_option in
18429 # Handling of the options.
18430_ACEOF
18431cat >>$CONFIG_STATUS <<\_ACEOF
18432 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18433 ac_cs_recheck=: ;;
18434 --version | --vers* | -V )
18435 echo "$ac_cs_version"; exit 0 ;;
18436 --he | --h)
18437 # Conflict between --help and --header
18438 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18439Try \`$0 --help' for more information." >&5
18440echo "$as_me: error: ambiguous option: $1
18441Try \`$0 --help' for more information." >&2;}
18442 { (exit 1); exit 1; }; };;
18443 --help | --hel | -h )
18444 echo "$ac_cs_usage"; exit 0 ;;
18445 --debug | --d* | -d )
18446 debug=: ;;
18447 --file | --fil | --fi | --f )
18448 $ac_shift
18449 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18450 ac_need_defaults=false;;
18451 --header | --heade | --head | --hea )
18452 $ac_shift
18453 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18454 ac_need_defaults=false;;
18455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18456 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18457 ac_cs_silent=: ;;
18458
18459 # This is an error.
18460 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18461Try \`$0 --help' for more information." >&5
18462echo "$as_me: error: unrecognized option: $1
18463Try \`$0 --help' for more information." >&2;}
18464 { (exit 1); exit 1; }; } ;;
18465
18466 *) ac_config_targets="$ac_config_targets $1" ;;
18467
18468 esac
18469 shift
18470done
18471
18472ac_configure_extra_args=
18473
18474if $ac_cs_silent; then
18475 exec 6>/dev/null
18476 ac_configure_extra_args="$ac_configure_extra_args --silent"
18477fi
18478
18479_ACEOF
18480cat >>$CONFIG_STATUS <<_ACEOF
18481if \$ac_cs_recheck; then
18482 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18483 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18484fi
18485
18486_ACEOF
18487
18488
18489
18490
18491
18492cat >>$CONFIG_STATUS <<\_ACEOF
18493for ac_config_target in $ac_config_targets
18494do
18495 case "$ac_config_target" in
18496 # Handling of arguments.
18497 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18498 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
18499 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
18500 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
18501 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18503echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18504 { (exit 1); exit 1; }; };;
18505 esac
18506done
18507
18508# If the user did not use the arguments to specify the items to instantiate,
18509# then the envvar interface is used. Set only those that are not.
18510# We use the long form for the default assignment because of an extremely
18511# bizarre bug on SunOS 4.1.3.
18512if $ac_need_defaults; then
18513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18515fi
18516
18517# Have a temporary directory for convenience. Make it in the build tree
18518# simply because there is no reason to put it here, and in addition,
18519# creating and moving files from /tmp can sometimes cause problems.
18520# Create a temporary directory, and hook for its removal unless debugging.
18521$debug ||
18522{
18523 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18524 trap '{ (exit 1); exit 1; }' 1 2 13 15
18525}
18526
18527# Create a (secure) tmp directory for tmp files.
18528
18529{
18530 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18531 test -n "$tmp" && test -d "$tmp"
18532} ||
18533{
18534 tmp=./confstat$$-$RANDOM
18535 (umask 077 && mkdir $tmp)
18536} ||
18537{
18538 echo "$me: cannot create a temporary directory in ." >&2
18539 { (exit 1); exit 1; }
18540}
18541
18542_ACEOF
18543
18544cat >>$CONFIG_STATUS <<_ACEOF
18545
18546#
18547# CONFIG_FILES section.
18548#
18549
18550# No need to generate the scripts if there are no CONFIG_FILES.
18551# This happens for instance when ./config.status config.h
18552if test -n "\$CONFIG_FILES"; then
18553 # Protect against being on the right side of a sed subst in config.status.
18554 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18555 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18556s,@SHELL@,$SHELL,;t t
18557s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18558s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18559s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18560s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18561s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18562s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18563s,@exec_prefix@,$exec_prefix,;t t
18564s,@prefix@,$prefix,;t t
18565s,@program_transform_name@,$program_transform_name,;t t
18566s,@bindir@,$bindir,;t t
18567s,@sbindir@,$sbindir,;t t
18568s,@libexecdir@,$libexecdir,;t t
18569s,@datadir@,$datadir,;t t
18570s,@sysconfdir@,$sysconfdir,;t t
18571s,@sharedstatedir@,$sharedstatedir,;t t
18572s,@localstatedir@,$localstatedir,;t t
18573s,@libdir@,$libdir,;t t
18574s,@includedir@,$includedir,;t t
18575s,@oldincludedir@,$oldincludedir,;t t
18576s,@infodir@,$infodir,;t t
18577s,@mandir@,$mandir,;t t
18578s,@build_alias@,$build_alias,;t t
18579s,@host_alias@,$host_alias,;t t
18580s,@target_alias@,$target_alias,;t t
18581s,@DEFS@,$DEFS,;t t
18582s,@ECHO_C@,$ECHO_C,;t t
18583s,@ECHO_N@,$ECHO_N,;t t
18584s,@ECHO_T@,$ECHO_T,;t t
18585s,@LIBS@,$LIBS,;t t
18586s,@CC@,$CC,;t t
18587s,@CFLAGS@,$CFLAGS,;t t
18588s,@LDFLAGS@,$LDFLAGS,;t t
18589s,@CPPFLAGS@,$CPPFLAGS,;t t
18590s,@ac_ct_CC@,$ac_ct_CC,;t t
18591s,@EXEEXT@,$EXEEXT,;t t
18592s,@OBJEXT@,$OBJEXT,;t t
18593s,@build@,$build,;t t
18594s,@build_cpu@,$build_cpu,;t t
18595s,@build_vendor@,$build_vendor,;t t
18596s,@build_os@,$build_os,;t t
18597s,@host@,$host,;t t
18598s,@host_cpu@,$host_cpu,;t t
18599s,@host_vendor@,$host_vendor,;t t
18600s,@host_os@,$host_os,;t t
18601s,@CPP@,$CPP,;t t
18602s,@RANLIB@,$RANLIB,;t t
18603s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18604s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18605s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18606s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18607s,@AR@,$AR,;t t
18608s,@PERL@,$PERL,;t t
18609s,@SED@,$SED,;t t
18610s,@ENT@,$ENT,;t t
18611s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
18612s,@SH@,$SH,;t t
18613s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
18614s,@LD@,$LD,;t t
18615s,@EGREP@,$EGREP,;t t
18616s,@LIBWRAP@,$LIBWRAP,;t t
18617s,@LIBPAM@,$LIBPAM,;t t
18618s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
18619s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
18620s,@PROG_LS@,$PROG_LS,;t t
18621s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
18622s,@PROG_ARP@,$PROG_ARP,;t t
18623s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
18624s,@PROG_JSTAT@,$PROG_JSTAT,;t t
18625s,@PROG_PS@,$PROG_PS,;t t
18626s,@PROG_SAR@,$PROG_SAR,;t t
18627s,@PROG_W@,$PROG_W,;t t
18628s,@PROG_WHO@,$PROG_WHO,;t t
18629s,@PROG_LAST@,$PROG_LAST,;t t
18630s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
18631s,@PROG_DF@,$PROG_DF,;t t
18632s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
18633s,@PROG_UPTIME@,$PROG_UPTIME,;t t
18634s,@PROG_IPCS@,$PROG_IPCS,;t t
18635s,@PROG_TAIL@,$PROG_TAIL,;t t
18636s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
18637s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
18638s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
18639s,@xauth_path@,$xauth_path,;t t
18640s,@STRIP_OPT@,$STRIP_OPT,;t t
18641s,@XAUTH_PATH@,$XAUTH_PATH,;t t
18642s,@NROFF@,$NROFF,;t t
18643s,@MANTYPE@,$MANTYPE,;t t
18644s,@mansubdir@,$mansubdir,;t t
18645s,@user_path@,$user_path,;t t
18646s,@piddir@,$piddir,;t t
18647s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
18648s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18649CEOF
18650
18651_ACEOF
18652
18653 cat >>$CONFIG_STATUS <<\_ACEOF
18654 # Split the substitutions into bite-sized pieces for seds with
18655 # small command number limits, like on Digital OSF/1 and HP-UX.
18656 ac_max_sed_lines=48
18657 ac_sed_frag=1 # Number of current file.
18658 ac_beg=1 # First line for current file.
18659 ac_end=$ac_max_sed_lines # Line after last line for current file.
18660 ac_more_lines=:
18661 ac_sed_cmds=
18662 while $ac_more_lines; do
18663 if test $ac_beg -gt 1; then
18664 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18665 else
18666 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18667 fi
18668 if test ! -s $tmp/subs.frag; then
18669 ac_more_lines=false
18670 else
18671 # The purpose of the label and of the branching condition is to
18672 # speed up the sed processing (if there are no `@' at all, there
18673 # is no need to browse any of the substitutions).
18674 # These are the two extra sed commands mentioned above.
18675 (echo ':t
18676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18677 if test -z "$ac_sed_cmds"; then
18678 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18679 else
18680 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18681 fi
18682 ac_sed_frag=`expr $ac_sed_frag + 1`
18683 ac_beg=$ac_end
18684 ac_end=`expr $ac_end + $ac_max_sed_lines`
18685 fi
18686 done
18687 if test -z "$ac_sed_cmds"; then
18688 ac_sed_cmds=cat
18689 fi
18690fi # test -n "$CONFIG_FILES"
18691
18692_ACEOF
18693cat >>$CONFIG_STATUS <<\_ACEOF
18694for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18696 case $ac_file in
18697 - | *:- | *:-:* ) # input from stdin
18698 cat >$tmp/stdin
18699 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18701 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18702 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18703 * ) ac_file_in=$ac_file.in ;;
18704 esac
18705
18706 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18707 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18708$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18709 X"$ac_file" : 'X\(//\)[^/]' \| \
18710 X"$ac_file" : 'X\(//\)$' \| \
18711 X"$ac_file" : 'X\(/\)' \| \
18712 . : '\(.\)' 2>/dev/null ||
18713echo X"$ac_file" |
18714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18716 /^X\(\/\/\)$/{ s//\1/; q; }
18717 /^X\(\/\).*/{ s//\1/; q; }
18718 s/.*/./; q'`
18719 { if $as_mkdir_p; then
18720 mkdir -p "$ac_dir"
18721 else
18722 as_dir="$ac_dir"
18723 as_dirs=
18724 while test ! -d "$as_dir"; do
18725 as_dirs="$as_dir $as_dirs"
18726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18727$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18728 X"$as_dir" : 'X\(//\)[^/]' \| \
18729 X"$as_dir" : 'X\(//\)$' \| \
18730 X"$as_dir" : 'X\(/\)' \| \
18731 . : '\(.\)' 2>/dev/null ||
18732echo X"$as_dir" |
18733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18735 /^X\(\/\/\)$/{ s//\1/; q; }
18736 /^X\(\/\).*/{ s//\1/; q; }
18737 s/.*/./; q'`
18738 done
18739 test ! -n "$as_dirs" || mkdir $as_dirs
18740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18741echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18742 { (exit 1); exit 1; }; }; }
18743
18744 ac_builddir=.
18745
18746if test "$ac_dir" != .; then
18747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18748 # A "../" for each directory in $ac_dir_suffix.
18749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18750else
18751 ac_dir_suffix= ac_top_builddir=
18752fi
18753
18754case $srcdir in
18755 .) # No --srcdir option. We are building in place.
18756 ac_srcdir=.
18757 if test -z "$ac_top_builddir"; then
18758 ac_top_srcdir=.
18759 else
18760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18761 fi ;;
18762 [\\/]* | ?:[\\/]* ) # Absolute path.
18763 ac_srcdir=$srcdir$ac_dir_suffix;
18764 ac_top_srcdir=$srcdir ;;
18765 *) # Relative path.
18766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18768esac
18769# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18770# absolute.
18771ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18772ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18773ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18774ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18775
18776
18777 case $INSTALL in
18778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18779 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18780 esac
18781
18782 if test x"$ac_file" != x-; then
18783 { echo "$as_me:$LINENO: creating $ac_file" >&5
18784echo "$as_me: creating $ac_file" >&6;}
18785 rm -f "$ac_file"
18786 fi
18787 # Let's still pretend it is `configure' which instantiates (i.e., don't
18788 # use $as_me), people would be surprised to read:
18789 # /* config.h. Generated by config.status. */
18790 if test x"$ac_file" = x-; then
18791 configure_input=
18792 else
18793 configure_input="$ac_file. "
18794 fi
18795 configure_input=$configure_input"Generated from `echo $ac_file_in |
18796 sed 's,.*/,,'` by configure."
18797
18798 # First look for the input files in the build tree, otherwise in the
18799 # src tree.
18800 ac_file_inputs=`IFS=:
18801 for f in $ac_file_in; do
18802 case $f in
18803 -) echo $tmp/stdin ;;
18804 [\\/$]*)
18805 # Absolute (can't be DOS-style, as IFS=:)
18806 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18807echo "$as_me: error: cannot find input file: $f" >&2;}
18808 { (exit 1); exit 1; }; }
18809 echo $f;;
18810 *) # Relative
18811 if test -f "$f"; then
18812 # Build tree
18813 echo $f
18814 elif test -f "$srcdir/$f"; then
18815 # Source tree
18816 echo $srcdir/$f
18817 else
18818 # /dev/null tree
18819 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18820echo "$as_me: error: cannot find input file: $f" >&2;}
18821 { (exit 1); exit 1; }; }
18822 fi;;
18823 esac
18824 done` || { (exit 1); exit 1; }
18825_ACEOF
18826cat >>$CONFIG_STATUS <<_ACEOF
18827 sed "$ac_vpsub
18828$extrasub
18829_ACEOF
18830cat >>$CONFIG_STATUS <<\_ACEOF
18831:t
18832/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18833s,@configure_input@,$configure_input,;t t
18834s,@srcdir@,$ac_srcdir,;t t
18835s,@abs_srcdir@,$ac_abs_srcdir,;t t
18836s,@top_srcdir@,$ac_top_srcdir,;t t
18837s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18838s,@builddir@,$ac_builddir,;t t
18839s,@abs_builddir@,$ac_abs_builddir,;t t
18840s,@top_builddir@,$ac_top_builddir,;t t
18841s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18842s,@INSTALL@,$ac_INSTALL,;t t
18843" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18844 rm -f $tmp/stdin
18845 if test x"$ac_file" != x-; then
18846 mv $tmp/out $ac_file
18847 else
18848 cat $tmp/out
18849 rm -f $tmp/out
18850 fi
18851
18852done
18853_ACEOF
18854cat >>$CONFIG_STATUS <<\_ACEOF
18855
18856#
18857# CONFIG_HEADER section.
18858#
18859
18860# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18861# NAME is the cpp macro being defined and VALUE is the value it is being given.
18862#
18863# ac_d sets the value in "#define NAME VALUE" lines.
18864ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18865ac_dB='[ ].*$,\1#\2'
18866ac_dC=' '
18867ac_dD=',;t'
18868# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18869ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18870ac_uB='$,\1#\2define\3'
18871ac_uC=' '
18872ac_uD=',;t'
18873
18874for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18876 case $ac_file in
18877 - | *:- | *:-:* ) # input from stdin
18878 cat >$tmp/stdin
18879 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18881 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18883 * ) ac_file_in=$ac_file.in ;;
18884 esac
18885
18886 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18887echo "$as_me: creating $ac_file" >&6;}
18888
18889 # First look for the input files in the build tree, otherwise in the
18890 # src tree.
18891 ac_file_inputs=`IFS=:
18892 for f in $ac_file_in; do
18893 case $f in
18894 -) echo $tmp/stdin ;;
18895 [\\/$]*)
18896 # Absolute (can't be DOS-style, as IFS=:)
18897 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18898echo "$as_me: error: cannot find input file: $f" >&2;}
18899 { (exit 1); exit 1; }; }
18900 echo $f;;
18901 *) # Relative
18902 if test -f "$f"; then
18903 # Build tree
18904 echo $f
18905 elif test -f "$srcdir/$f"; then
18906 # Source tree
18907 echo $srcdir/$f
18908 else
18909 # /dev/null tree
18910 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18911echo "$as_me: error: cannot find input file: $f" >&2;}
18912 { (exit 1); exit 1; }; }
18913 fi;;
18914 esac
18915 done` || { (exit 1); exit 1; }
18916 # Remove the trailing spaces.
18917 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18918
18919_ACEOF
18920
18921# Transform confdefs.h into two sed scripts, `conftest.defines' and
18922# `conftest.undefs', that substitutes the proper values into
18923# config.h.in to produce config.h. The first handles `#define'
18924# templates, and the second `#undef' templates.
18925# And first: Protect against being on the right side of a sed subst in
18926# config.status. Protect against being in an unquoted here document
18927# in config.status.
18928rm -f conftest.defines conftest.undefs
18929# Using a here document instead of a string reduces the quoting nightmare.
18930# Putting comments in sed scripts is not portable.
18931#
18932# `end' is used to avoid that the second main sed command (meant for
18933# 0-ary CPP macros) applies to n-ary macro definitions.
18934# See the Autoconf documentation for `clear'.
18935cat >confdef2sed.sed <<\_ACEOF
18936s/[\\&,]/\\&/g
18937s,[\\$`],\\&,g
18938t clear
18939: clear
18940s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18941t end
18942s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18943: end
18944_ACEOF
18945# If some macros were called several times there might be several times
18946# the same #defines, which is useless. Nevertheless, we may not want to
18947# sort them, since we want the *last* AC-DEFINE to be honored.
18948uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18949sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18950rm -f confdef2sed.sed
18951
18952# This sed command replaces #undef with comments. This is necessary, for
18953# example, in the case of _POSIX_SOURCE, which is predefined and required
18954# on some systems where configure will not decide to define it.
18955cat >>conftest.undefs <<\_ACEOF
18956s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18957_ACEOF
18958
18959# Break up conftest.defines because some shells have a limit on the size
18960# of here documents, and old seds have small limits too (100 cmds).
18961echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18962echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18963echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18964echo ' :' >>$CONFIG_STATUS
18965rm -f conftest.tail
18966while grep . conftest.defines >/dev/null
18967do
18968 # Write a limited-size here document to $tmp/defines.sed.
18969 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18970 # Speed up: don't consider the non `#define' lines.
18971 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18972 # Work around the forget-to-reset-the-flag bug.
18973 echo 't clr' >>$CONFIG_STATUS
18974 echo ': clr' >>$CONFIG_STATUS
18975 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18976 echo 'CEOF
18977 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18978 rm -f $tmp/in
18979 mv $tmp/out $tmp/in
18980' >>$CONFIG_STATUS
18981 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18982 rm -f conftest.defines
18983 mv conftest.tail conftest.defines
18984done
18985rm -f conftest.defines
18986echo ' fi # grep' >>$CONFIG_STATUS
18987echo >>$CONFIG_STATUS
18988
18989# Break up conftest.undefs because some shells have a limit on the size
18990# of here documents, and old seds have small limits too (100 cmds).
18991echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18992rm -f conftest.tail
18993while grep . conftest.undefs >/dev/null
18994do
18995 # Write a limited-size here document to $tmp/undefs.sed.
18996 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18997 # Speed up: don't consider the non `#undef'
18998 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18999 # Work around the forget-to-reset-the-flag bug.
19000 echo 't clr' >>$CONFIG_STATUS
19001 echo ': clr' >>$CONFIG_STATUS
19002 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19003 echo 'CEOF
19004 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19005 rm -f $tmp/in
19006 mv $tmp/out $tmp/in
19007' >>$CONFIG_STATUS
19008 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19009 rm -f conftest.undefs
19010 mv conftest.tail conftest.undefs
19011done
19012rm -f conftest.undefs
19013
19014cat >>$CONFIG_STATUS <<\_ACEOF
19015 # Let's still pretend it is `configure' which instantiates (i.e., don't
19016 # use $as_me), people would be surprised to read:
19017 # /* config.h. Generated by config.status. */
19018 if test x"$ac_file" = x-; then
19019 echo "/* Generated by configure. */" >$tmp/config.h
19020 else
19021 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19022 fi
19023 cat $tmp/in >>$tmp/config.h
19024 rm -f $tmp/in
19025 if test x"$ac_file" != x-; then
19026 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19027 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19028echo "$as_me: $ac_file is unchanged" >&6;}
19029 else
19030 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19031$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19032 X"$ac_file" : 'X\(//\)[^/]' \| \
19033 X"$ac_file" : 'X\(//\)$' \| \
19034 X"$ac_file" : 'X\(/\)' \| \
19035 . : '\(.\)' 2>/dev/null ||
19036echo X"$ac_file" |
19037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19039 /^X\(\/\/\)$/{ s//\1/; q; }
19040 /^X\(\/\).*/{ s//\1/; q; }
19041 s/.*/./; q'`
19042 { if $as_mkdir_p; then
19043 mkdir -p "$ac_dir"
19044 else
19045 as_dir="$ac_dir"
19046 as_dirs=
19047 while test ! -d "$as_dir"; do
19048 as_dirs="$as_dir $as_dirs"
19049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051 X"$as_dir" : 'X\(//\)[^/]' \| \
19052 X"$as_dir" : 'X\(//\)$' \| \
19053 X"$as_dir" : 'X\(/\)' \| \
19054 . : '\(.\)' 2>/dev/null ||
19055echo X"$as_dir" |
19056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19058 /^X\(\/\/\)$/{ s//\1/; q; }
19059 /^X\(\/\).*/{ s//\1/; q; }
19060 s/.*/./; q'`
19061 done
19062 test ! -n "$as_dirs" || mkdir $as_dirs
19063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19064echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19065 { (exit 1); exit 1; }; }; }
19066
19067 rm -f $ac_file
19068 mv $tmp/config.h $ac_file
19069 fi
19070 else
19071 cat $tmp/config.h
19072 rm -f $tmp/config.h
19073 fi
19074done
19075_ACEOF
19076
19077cat >>$CONFIG_STATUS <<\_ACEOF
19078
19079{ (exit 0); exit 0; }
19080_ACEOF
19081chmod +x $CONFIG_STATUS
19082ac_clean_files=$ac_clean_files_save
19083
19084
19085# configure is writing to config.log, and then calls config.status.
19086# config.status does its own redirection, appending to config.log.
19087# Unfortunately, on DOS this fails, as config.log is still kept open
19088# by configure, so config.status won't be able to write to it; its
19089# output is simply discarded. So we exec the FD to /dev/null,
19090# effectively closing config.log, so it can be properly (re)opened and
19091# appended to by config.status. When coming back to configure, we
19092# need to make the FD available again.
19093if test "$no_create" != yes; then
19094 ac_cs_success=:
19095 ac_config_status_args=
19096 test "$silent" = yes &&
19097 ac_config_status_args="$ac_config_status_args --quiet"
19098 exec 5>/dev/null
19099 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19100 exec 5>>config.log
19101 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19102 # would make configure fail if this is the last instruction.
19103 $ac_cs_success || { (exit 1); exit 1; }
19104fi
19105
19106
19107# Print summary of options
19108
19109# Someone please show me a better way :)
19110A=`eval echo ${prefix}` ; A=`eval echo ${A}`
19111B=`eval echo ${bindir}` ; B=`eval echo ${B}`
19112C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
19113D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
19114E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
19115F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
19116G=`eval echo ${piddir}` ; G=`eval echo ${G}`
19117H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
19118I=`eval echo ${user_path}` ; I=`eval echo ${I}`
19119J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
19120
19121echo ""
19122echo "OpenSSH has been configured with the following options:"
19123echo " User binaries: $B"
19124echo " System binaries: $C"
19125echo " Configuration files: $D"
19126echo " Askpass program: $E"
19127echo " Manual pages: $F"
19128echo " PID file: $G"
19129echo " Privilege separation chroot path: $H"
19130if test "$USES_LOGIN_CONF" = "yes" ; then
19131echo " At runtime, sshd will use the path defined in /etc/login.conf"
19132else
19133echo " sshd default user PATH: $I"
19134fi
19135if test ! -z "$superuser_path" ; then
19136echo " sshd superuser user PATH: $J"
19137fi
19138echo " Manpage format: $MANTYPE"
19139echo " PAM support: ${PAM_MSG}"
19140echo " KerberosIV support: $KRB4_MSG"
19141echo " KerberosV support: $KRB5_MSG"
19142echo " Smartcard support: $SCARD_MSG"
19143echo " AFS support: $AFS_MSG"
19144echo " S/KEY support: $SKEY_MSG"
19145echo " TCP Wrappers support: $TCPW_MSG"
19146echo " MD5 password support: $MD5_MSG"
19147echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
19148echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
19149echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
19150echo " BSD Auth support: $BSD_AUTH_MSG"
19151echo " Random number source: $RAND_MSG"
19152if test ! -z "$USE_RAND_HELPER" ; then
19153echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
19154fi
19155
19156echo ""
19157
19158echo " Host: ${host}"
19159echo " Compiler: ${CC}"
19160echo " Compiler flags: ${CFLAGS}"
19161echo "Preprocessor flags: ${CPPFLAGS}"
19162echo " Linker flags: ${LDFLAGS}"
19163echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
19164
19165echo ""
19166
19167if test "x$PAM_MSG" = "xyes" ; then
19168 echo "PAM is enabled. You may need to install a PAM control file "
19169 echo "for sshd, otherwise password authentication may fail. "
19170 echo "Example PAM control files can be found in the contrib/ "
19171 echo "subdirectory"
19172 echo ""
19173fi
19174
19175if test ! -z "$RAND_HELPER_CMDHASH" ; then
19176 echo "WARNING: you are using the builtin random number collection "
19177 echo "service. Please read WARNING.RNG and request that your OS "
19178 echo "vendor includes kernel-based random number collection in "
19179 echo "future versions of your OS."
19180 echo ""
19181fi
19182
diff --git a/autom4te.cache/requests b/autom4te.cache/requests
new file mode 100644
index 000000000..72598fb0c
--- /dev/null
+++ b/autom4te.cache/requests
@@ -0,0 +1,111 @@
1# This file was created by autom4te.
2# It contains the lists of macros which have been traced.
3# It can be safely removed.
4
5@request = (
6 bless( [
7 '0',
8 1,
9 [
10 '/usr/share/autoconf'
11 ],
12 [
13 '/usr/share/autoconf/autoconf/autoconf.m4f',
14 'aclocal.m4',
15 'configure.ac'
16 ],
17 {
18 'm4_pattern_forbid' => 1,
19 'AC_TYPE_OFF_T' => 1,
20 'AC_C_VOLATILE' => 1,
21 'AC_FUNC_CLOSEDIR_VOID' => 1,
22 'AC_REPLACE_FNMATCH' => 1,
23 'AC_PROG_LIBTOOL' => 1,
24 'AC_FUNC_STAT' => 1,
25 'AC_HEADER_TIME' => 1,
26 'AC_FUNC_WAIT3' => 1,
27 'AM_AUTOMAKE_VERSION' => 1,
28 'AC_STRUCT_TM' => 1,
29 'AC_FUNC_LSTAT' => 1,
30 'AC_TYPE_MODE_T' => 1,
31 'AC_FUNC_GETMNTENT' => 1,
32 'AC_FUNC_STRTOD' => 1,
33 'AC_CHECK_HEADERS' => 1,
34 'AC_FUNC_STRNLEN' => 1,
35 'AC_PROG_CXX' => 1,
36 'AC_PATH_X' => 1,
37 'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
38 'AC_PROG_AWK' => 1,
39 'AC_HEADER_STDC' => 1,
40 'AC_HEADER_MAJOR' => 1,
41 'AC_FUNC_ERROR_AT_LINE' => 1,
42 'AC_PROG_GCC_TRADITIONAL' => 1,
43 'AC_LIBSOURCE' => 1,
44 'AC_FUNC_MBRTOWC' => 1,
45 'AC_STRUCT_ST_BLOCKS' => 1,
46 'AC_TYPE_SIGNAL' => 1,
47 'AC_TYPE_UID_T' => 1,
48 'AC_CONFIG_AUX_DIR' => 1,
49 'AC_PROG_MAKE_SET' => 1,
50 'm4_pattern_allow' => 1,
51 'AC_DEFINE_TRACE_LITERAL' => 1,
52 'AC_FUNC_STRERROR_R' => 1,
53 'AC_PROG_CC' => 1,
54 'AC_DECL_SYS_SIGLIST' => 1,
55 'AC_FUNC_FORK' => 1,
56 'AC_FUNC_VPRINTF' => 1,
57 'AC_FUNC_STRCOLL' => 1,
58 'AC_PROG_YACC' => 1,
59 'AC_INIT' => 1,
60 'AC_STRUCT_TIMEZONE' => 1,
61 'AC_FUNC_CHOWN' => 1,
62 'AC_SUBST' => 1,
63 'AC_FUNC_ALLOCA' => 1,
64 'AC_CANONICAL_HOST' => 1,
65 'AC_FUNC_GETPGRP' => 1,
66 'AC_PROG_RANLIB' => 1,
67 'AM_INIT_AUTOMAKE' => 1,
68 'AC_FUNC_SETPGRP' => 1,
69 'AC_CONFIG_SUBDIRS' => 1,
70 'AC_FUNC_MMAP' => 1,
71 'AC_FUNC_REALLOC' => 1,
72 'AC_TYPE_SIZE_T' => 1,
73 'AC_CHECK_TYPES' => 1,
74 'AC_CHECK_MEMBERS' => 1,
75 'AM_MAINTAINER_MODE' => 1,
76 'AC_FUNC_UTIME_NULL' => 1,
77 'AC_FUNC_SELECT_ARGTYPES' => 1,
78 'AC_FUNC_STRFTIME' => 1,
79 'AC_HEADER_STAT' => 1,
80 'AC_C_INLINE' => 1,
81 'AC_PROG_CPP' => 1,
82 'AC_TYPE_PID_T' => 1,
83 'AC_C_CONST' => 1,
84 'AC_PROG_LEX' => 1,
85 'AC_CONFIG_FILES' => 1,
86 'include' => 1,
87 'AC_FUNC_SETVBUF_REVERSED' => 1,
88 'AC_PROG_INSTALL' => 1,
89 'AM_GNU_GETTEXT' => 1,
90 'AC_FUNC_OBSTACK' => 1,
91 'AC_CHECK_LIB' => 1,
92 'AC_FUNC_MALLOC' => 1,
93 'AC_FUNC_GETGROUPS' => 1,
94 'AC_FUNC_GETLOADAVG' => 1,
95 'AH_OUTPUT' => 1,
96 'AC_FUNC_FSEEKO' => 1,
97 'AM_PROG_CC_C_O' => 1,
98 'AM_CONDITIONAL' => 1,
99 'AC_CANONICAL_SYSTEM' => 1,
100 'AC_FUNC_MKTIME' => 1,
101 'AC_CONFIG_HEADERS' => 1,
102 'AC_HEADER_SYS_WAIT' => 1,
103 'AC_FUNC_MEMCMP' => 1,
104 'AC_PROG_LN_S' => 1,
105 'm4_include' => 1,
106 'AC_HEADER_DIRENT' => 1,
107 'AC_CHECK_FUNCS' => 1
108 }
109 ], 'Request' )
110 );
111
diff --git a/autom4te.cache/traces.0 b/autom4te.cache/traces.0
new file mode 100644
index 000000000..8c9b72476
--- /dev/null
+++ b/autom4te.cache/traces.0
@@ -0,0 +1,947 @@
1m4trace:configure.ac:3: -1- AC_INIT
2m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_])
3m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_])
4m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
5m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$])
6m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_])
7m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$])
8m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?AS_])
9m4trace:configure.ac:3: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
10m4trace:configure.ac:3: -1- AC_SUBST([PATH_SEPARATOR])
11m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
12m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
13m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
14m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
15m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
16m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE])
17m4trace:configure.ac:3: -1- AC_SUBST([prefix], [NONE])
18m4trace:configure.ac:3: -1- AC_SUBST([program_transform_name], [s,x,x,])
19m4trace:configure.ac:3: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
20m4trace:configure.ac:3: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
21m4trace:configure.ac:3: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
22m4trace:configure.ac:3: -1- AC_SUBST([datadir], ['${prefix}/share'])
23m4trace:configure.ac:3: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
24m4trace:configure.ac:3: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
25m4trace:configure.ac:3: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
26m4trace:configure.ac:3: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
27m4trace:configure.ac:3: -1- AC_SUBST([includedir], ['${prefix}/include'])
28m4trace:configure.ac:3: -1- AC_SUBST([oldincludedir], ['/usr/include'])
29m4trace:configure.ac:3: -1- AC_SUBST([infodir], ['${prefix}/info'])
30m4trace:configure.ac:3: -1- AC_SUBST([mandir], ['${prefix}/man'])
31m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
32m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
33#undef PACKAGE_NAME])
34m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
35m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
36#undef PACKAGE_TARNAME])
37m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
38m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
39#undef PACKAGE_VERSION])
40m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
41m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
42#undef PACKAGE_STRING])
43m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
44m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
45#undef PACKAGE_BUGREPORT])
46m4trace:configure.ac:3: -1- AC_SUBST([build_alias])
47m4trace:configure.ac:3: -1- AC_SUBST([host_alias])
48m4trace:configure.ac:3: -1- AC_SUBST([target_alias])
49m4trace:configure.ac:3: -1- AC_SUBST([DEFS])
50m4trace:configure.ac:3: -1- AC_SUBST([ECHO_C])
51m4trace:configure.ac:3: -1- AC_SUBST([ECHO_N])
52m4trace:configure.ac:3: -1- AC_SUBST([ECHO_T])
53m4trace:configure.ac:3: -1- AC_SUBST([LIBS])
54m4trace:configure.ac:6: -1- AC_CONFIG_HEADERS([config.h])
55m4trace:configure.ac:7: -1- AC_PROG_CC
56m4trace:configure.ac:7: -1- AC_SUBST([CC])
57m4trace:configure.ac:7: -1- AC_SUBST([CFLAGS])
58m4trace:configure.ac:7: -1- AC_SUBST([LDFLAGS])
59m4trace:configure.ac:7: -1- AC_SUBST([CPPFLAGS])
60m4trace:configure.ac:7: -1- AC_SUBST([CC])
61m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
62m4trace:configure.ac:7: -1- AC_SUBST([CC])
63m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
64m4trace:configure.ac:7: -1- AC_SUBST([CC])
65m4trace:configure.ac:7: -1- AC_SUBST([CC])
66m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
67m4trace:configure.ac:7: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
68m4trace:configure.ac:7: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
69m4trace:configure.ac:8: -1- AC_CANONICAL_HOST
70m4trace:configure.ac:8: -1- AC_SUBST([build], [$ac_cv_build])
71m4trace:configure.ac:8: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
72m4trace:configure.ac:8: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
73m4trace:configure.ac:8: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
74m4trace:configure.ac:8: -1- AC_SUBST([host], [$ac_cv_host])
75m4trace:configure.ac:8: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
76m4trace:configure.ac:8: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
77m4trace:configure.ac:8: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
78m4trace:configure.ac:9: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN])
79m4trace:configure.ac:9: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define to 1 if your processor stores words with the most significant byte
80 first (like Motorola and SPARC, unlike Intel and VAX). */
81#undef WORDS_BIGENDIAN])
82m4trace:configure.ac:12: -1- AC_PROG_CPP
83m4trace:configure.ac:12: -1- AC_SUBST([CPP])
84m4trace:configure.ac:12: -1- AC_SUBST([CPPFLAGS])
85m4trace:configure.ac:12: -1- AC_SUBST([CPP])
86m4trace:configure.ac:13: -1- AC_PROG_RANLIB
87m4trace:configure.ac:13: -1- AC_SUBST([RANLIB])
88m4trace:configure.ac:13: -1- AC_SUBST([ac_ct_RANLIB])
89m4trace:configure.ac:14: -1- AC_PROG_INSTALL
90m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_PROGRAM])
91m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_SCRIPT])
92m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_DATA])
93m4trace:configure.ac:15: -1- AC_SUBST([AR], [$ac_cv_path_AR])
94m4trace:configure.ac:16: -1- AC_SUBST([PERL], [$ac_cv_path_PERL])
95m4trace:configure.ac:17: -1- AC_SUBST([SED], [$ac_cv_path_SED])
96m4trace:configure.ac:18: -1- AC_SUBST([PERL])
97m4trace:configure.ac:19: -1- AC_SUBST([ENT], [$ac_cv_path_ENT])
98m4trace:configure.ac:20: -1- AC_SUBST([ENT])
99m4trace:configure.ac:21: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
100m4trace:configure.ac:22: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
101m4trace:configure.ac:23: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
102m4trace:configure.ac:24: -1- AC_SUBST([SH], [$ac_cv_path_SH])
103m4trace:configure.ac:27: -1- AC_DEFINE_TRACE_LITERAL([_FILE_OFFSET_BITS])
104m4trace:configure.ac:27: -1- AH_OUTPUT([_FILE_OFFSET_BITS], [/* Number of bits in a file offset, on hosts where this is settable. */
105#undef _FILE_OFFSET_BITS])
106m4trace:configure.ac:27: -1- AC_DEFINE_TRACE_LITERAL([_LARGE_FILES])
107m4trace:configure.ac:27: -1- AH_OUTPUT([_LARGE_FILES], [/* Define for large files, on AIX-style hosts. */
108#undef _LARGE_FILES])
109m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_PROGRAM_FALLBACK])
110m4trace:configure.ac:38: -1- AC_SUBST([LOGIN_PROGRAM_FALLBACK], [$ac_cv_path_LOGIN_PROGRAM_FALLBACK])
111m4trace:configure.ac:40: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_PROGRAM_FALLBACK])
112m4trace:configure.ac:47: -1- AC_SUBST([LD])
113m4trace:configure.ac:49: -1- AC_C_INLINE
114m4trace:configure.ac:49: -1- AC_DEFINE_TRACE_LITERAL([inline])
115m4trace:configure.ac:49: -1- AH_OUTPUT([inline], [/* Define as `__inline\' if that\'s what the C compiler calls it, or to nothing
116 if it is not supported. */
117#undef inline])
118m4trace:configure.ac:49: -1- AC_DEFINE_TRACE_LITERAL([inline])
119m4trace:configure.ac:83: -1- AC_DEFINE_TRACE_LITERAL([WITH_AIXAUTHENTICATE])
120m4trace:configure.ac:83: -1- AC_CHECK_LIB([s], [authenticate], [ AC_DEFINE(WITH_AIXAUTHENTICATE)
121 LIBS="$LIBS -ls"
122 ])
123m4trace:configure.ac:83: -1- AC_DEFINE_TRACE_LITERAL([WITH_AIXAUTHENTICATE])
124m4trace:configure.ac:84: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_GETADDRINFO])
125m4trace:configure.ac:85: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_REALPATH])
126m4trace:configure.ac:87: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
127m4trace:configure.ac:88: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
128m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
129m4trace:configure.ac:90: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_PS_PADDING])
130m4trace:configure.ac:95: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CYGWIN])
131m4trace:configure.ac:96: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
132m4trace:configure.ac:97: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
133m4trace:configure.ac:98: -1- AC_DEFINE_TRACE_LITERAL([IPV4_DEFAULT])
134m4trace:configure.ac:99: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
135m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([NO_X11_UNIX_SOCKETS])
136m4trace:configure.ac:101: -1- AC_DEFINE_TRACE_LITERAL([NO_IPPORT_RESERVED_CONCEPT])
137m4trace:configure.ac:102: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
138m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([SETGROUPS_NOOP])
139m4trace:configure.ac:106: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
140m4trace:configure.ac:118: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_GETADDRINFO])
141m4trace:configure.ac:126: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
142m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
143m4trace:configure.ac:128: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
144m4trace:configure.ac:129: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
145m4trace:configure.ac:130: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
146m4trace:configure.ac:131: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
147m4trace:configure.ac:132: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
148m4trace:configure.ac:134: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
149echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
150 { (exit 1); exit 1; }; }])
151m4trace:configure.ac:134: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the `xnet\' library (-lxnet). */
152#undef HAVE_LIBXNET])
153m4trace:configure.ac:134: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
154m4trace:configure.ac:143: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
155m4trace:configure.ac:144: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
156m4trace:configure.ac:145: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
157m4trace:configure.ac:146: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
158m4trace:configure.ac:147: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
159m4trace:configure.ac:148: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
160m4trace:configure.ac:150: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
161echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
162 { (exit 1); exit 1; }; }])
163m4trace:configure.ac:150: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the `xnet\' library (-lxnet). */
164#undef HAVE_LIBXNET])
165m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
166m4trace:configure.ac:155: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
167m4trace:configure.ac:156: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
168m4trace:configure.ac:157: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
169m4trace:configure.ac:158: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
170m4trace:configure.ac:159: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
171m4trace:configure.ac:160: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
172m4trace:configure.ac:161: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
173m4trace:configure.ac:163: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
174echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
175 { (exit 1); exit 1; }; }])
176m4trace:configure.ac:163: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the `xnet\' library (-lxnet). */
177#undef HAVE_LIBXNET])
178m4trace:configure.ac:163: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
179m4trace:configure.ac:169: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_INET_NTOA])
180m4trace:configure.ac:170: -1- AC_DEFINE_TRACE_LITERAL([WITH_ABBREV_NO_TTY])
181m4trace:configure.ac:176: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_ARRAY])
182m4trace:configure.ac:177: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_PROJECT])
183m4trace:configure.ac:178: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_AUDIT])
184m4trace:configure.ac:179: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_JOBS])
185m4trace:configure.ac:180: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_INET_NTOA])
186m4trace:configure.ac:181: -1- AC_DEFINE_TRACE_LITERAL([WITH_ABBREV_NO_TTY])
187m4trace:configure.ac:186: -1- AC_DEFINE_TRACE_LITERAL([DONT_TRY_OTHER_AF])
188m4trace:configure.ac:187: -1- AC_DEFINE_TRACE_LITERAL([PAM_TTY_KLUDGE])
189m4trace:configure.ac:188: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY])
190m4trace:configure.ac:189: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_PS_PADDING])
191m4trace:configure.ac:193: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEWS4])
192m4trace:configure.ac:208: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEXT])
193m4trace:configure.ac:209: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_REALPATH])
194m4trace:configure.ac:210: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
195m4trace:configure.ac:211: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SAVED_UIDS])
196m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
197m4trace:configure.ac:220: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
198m4trace:configure.ac:221: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_TERM])
199m4trace:configure.ac:222: -1- AC_DEFINE_TRACE_LITERAL([PAM_TTY_KLUDGE])
200m4trace:configure.ac:223: -1- AC_DEFINE_TRACE_LITERAL([STREAMS_PUSH_ACQUIRES_CTTY])
201m4trace:configure.ac:230: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
202m4trace:configure.ac:231: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
203m4trace:configure.ac:238: -1- AC_CHECK_FUNCS([getpwanam])
204m4trace:configure.ac:238: -1- AH_OUTPUT([HAVE_GETPWANAM], [/* Define to 1 if you have the `getpwanam\' function. */
205#undef HAVE_GETPWANAM])
206m4trace:configure.ac:239: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
207m4trace:configure.ac:243: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
208m4trace:configure.ac:249: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
209m4trace:configure.ac:256: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
210m4trace:configure.ac:257: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
211m4trace:configure.ac:265: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
212m4trace:configure.ac:270: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
213m4trace:configure.ac:282: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SYS_TERMIO_H])
214m4trace:configure.ac:283: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
215m4trace:configure.ac:284: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
216m4trace:configure.ac:285: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
217m4trace:configure.ac:286: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SAVED_UIDS])
218m4trace:configure.ac:287: -1- AC_CHECK_FUNCS([getluid setluid])
219m4trace:configure.ac:287: -1- AH_OUTPUT([HAVE_GETLUID], [/* Define to 1 if you have the `getluid\' function. */
220#undef HAVE_GETLUID])
221m4trace:configure.ac:287: -1- AH_OUTPUT([HAVE_SETLUID], [/* Define to 1 if you have the `setluid\' function. */
222#undef HAVE_SETLUID])
223m4trace:configure.ac:299: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
224m4trace:configure.ac:300: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
225m4trace:configure.ac:301: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
226m4trace:configure.ac:302: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
227m4trace:configure.ac:303: -1- AC_CHECK_FUNCS([getluid setluid])
228m4trace:configure.ac:303: -1- AH_OUTPUT([HAVE_GETLUID], [/* Define to 1 if you have the `getluid\' function. */
229#undef HAVE_GETLUID])
230m4trace:configure.ac:303: -1- AH_OUTPUT([HAVE_SETLUID], [/* Define to 1 if you have the `setluid\' function. */
231#undef HAVE_SETLUID])
232m4trace:configure.ac:307: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
233m4trace:configure.ac:308: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
234m4trace:configure.ac:314: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
235m4trace:configure.ac:315: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
236m4trace:configure.ac:316: -1- AC_DEFINE_TRACE_LITERAL([NO_SSH_LASTLOG])
237m4trace:configure.ac:336: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OSF_SIA])
238m4trace:configure.ac:337: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LOGIN])
239m4trace:configure.ac:338: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
240m4trace:configure.ac:344: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
241m4trace:configure.ac:348: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
242m4trace:configure.ac:349: -1- AC_DEFINE_TRACE_LITERAL([NO_X11_UNIX_SOCKETS])
243m4trace:configure.ac:350: -1- AC_DEFINE_TRACE_LITERAL([MISSING_NFDBITS])
244m4trace:configure.ac:351: -1- AC_DEFINE_TRACE_LITERAL([MISSING_HOWMANY])
245m4trace:configure.ac:352: -1- AC_DEFINE_TRACE_LITERAL([MISSING_FD_MASK])
246m4trace:configure.ac:400: -1- AC_CHECK_HEADERS([bstring.h crypt.h endian.h floatingpoint.h \
247 getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \
248 login_cap.h maillock.h netdb.h netgroup.h \
249 netinet/in_systm.h paths.h pty.h readpassphrase.h \
250 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
251 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
252 sys/mman.h sys/pstat.h sys/select.h sys/stat.h \
253 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \
254 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
255 util.h utime.h utmp.h utmpx.h])
256m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_BSTRING_H], [/* Define to 1 if you have the <bstring.h> header file. */
257#undef HAVE_BSTRING_H])
258m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_CRYPT_H], [/* Define to 1 if you have the <crypt.h> header file. */
259#undef HAVE_CRYPT_H])
260m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_ENDIAN_H], [/* Define to 1 if you have the <endian.h> header file. */
261#undef HAVE_ENDIAN_H])
262m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_FLOATINGPOINT_H], [/* Define to 1 if you have the <floatingpoint.h> header file. */
263#undef HAVE_FLOATINGPOINT_H])
264m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_GETOPT_H], [/* Define to 1 if you have the <getopt.h> header file. */
265#undef HAVE_GETOPT_H])
266m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_GLOB_H], [/* Define to 1 if you have the <glob.h> header file. */
267#undef HAVE_GLOB_H])
268m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_IA_H], [/* Define to 1 if you have the <ia.h> header file. */
269#undef HAVE_IA_H])
270m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_LASTLOG_H], [/* Define to 1 if you have the <lastlog.h> header file. */
271#undef HAVE_LASTLOG_H])
272m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */
273#undef HAVE_LIBGEN_H])
274m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_LIMITS_H], [/* Define to 1 if you have the <limits.h> header file. */
275#undef HAVE_LIMITS_H])
276m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_LOGIN_H], [/* Define to 1 if you have the <login.h> header file. */
277#undef HAVE_LOGIN_H])
278m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_LOGIN_CAP_H], [/* Define to 1 if you have the <login_cap.h> header file. */
279#undef HAVE_LOGIN_CAP_H])
280m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_MAILLOCK_H], [/* Define to 1 if you have the <maillock.h> header file. */
281#undef HAVE_MAILLOCK_H])
282m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_NETDB_H], [/* Define to 1 if you have the <netdb.h> header file. */
283#undef HAVE_NETDB_H])
284m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_NETGROUP_H], [/* Define to 1 if you have the <netgroup.h> header file. */
285#undef HAVE_NETGROUP_H])
286m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_NETINET_IN_SYSTM_H], [/* Define to 1 if you have the <netinet/in_systm.h> header file. */
287#undef HAVE_NETINET_IN_SYSTM_H])
288m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_PATHS_H], [/* Define to 1 if you have the <paths.h> header file. */
289#undef HAVE_PATHS_H])
290m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_PTY_H], [/* Define to 1 if you have the <pty.h> header file. */
291#undef HAVE_PTY_H])
292m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_READPASSPHRASE_H], [/* Define to 1 if you have the <readpassphrase.h> header file. */
293#undef HAVE_READPASSPHRASE_H])
294m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_RPC_TYPES_H], [/* Define to 1 if you have the <rpc/types.h> header file. */
295#undef HAVE_RPC_TYPES_H])
296m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SECURITY_PAM_APPL_H], [/* Define to 1 if you have the <security/pam_appl.h> header file. */
297#undef HAVE_SECURITY_PAM_APPL_H])
298m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SHADOW_H], [/* Define to 1 if you have the <shadow.h> header file. */
299#undef HAVE_SHADOW_H])
300m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_STDDEF_H], [/* Define to 1 if you have the <stddef.h> header file. */
301#undef HAVE_STDDEF_H])
302m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
303#undef HAVE_STDINT_H])
304m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
305#undef HAVE_STRINGS_H])
306m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_BITYPES_H], [/* Define to 1 if you have the <sys/bitypes.h> header file. */
307#undef HAVE_SYS_BITYPES_H])
308m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_BSDTTY_H], [/* Define to 1 if you have the <sys/bsdtty.h> header file. */
309#undef HAVE_SYS_BSDTTY_H])
310m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_CDEFS_H], [/* Define to 1 if you have the <sys/cdefs.h> header file. */
311#undef HAVE_SYS_CDEFS_H])
312m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_MMAN_H], [/* Define to 1 if you have the <sys/mman.h> header file. */
313#undef HAVE_SYS_MMAN_H])
314m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_PSTAT_H], [/* Define to 1 if you have the <sys/pstat.h> header file. */
315#undef HAVE_SYS_PSTAT_H])
316m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the <sys/select.h> header file. */
317#undef HAVE_SYS_SELECT_H])
318m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
319#undef HAVE_SYS_STAT_H])
320m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_STROPTS_H], [/* Define to 1 if you have the <sys/stropts.h> header file. */
321#undef HAVE_SYS_STROPTS_H])
322m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_SYSMACROS_H], [/* Define to 1 if you have the <sys/sysmacros.h> header file. */
323#undef HAVE_SYS_SYSMACROS_H])
324m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the <sys/time.h> header file. */
325#undef HAVE_SYS_TIME_H])
326m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_TIMERS_H], [/* Define to 1 if you have the <sys/timers.h> header file. */
327#undef HAVE_SYS_TIMERS_H])
328m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_UN_H], [/* Define to 1 if you have the <sys/un.h> header file. */
329#undef HAVE_SYS_UN_H])
330m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_TIME_H], [/* Define to 1 if you have the <time.h> header file. */
331#undef HAVE_TIME_H])
332m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_TMPDIR_H], [/* Define to 1 if you have the <tmpdir.h> header file. */
333#undef HAVE_TMPDIR_H])
334m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_TTYENT_H], [/* Define to 1 if you have the <ttyent.h> header file. */
335#undef HAVE_TTYENT_H])
336m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_USERSEC_H], [/* Define to 1 if you have the <usersec.h> header file. */
337#undef HAVE_USERSEC_H])
338m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_UTIL_H], [/* Define to 1 if you have the <util.h> header file. */
339#undef HAVE_UTIL_H])
340m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_UTIME_H], [/* Define to 1 if you have the <utime.h> header file. */
341#undef HAVE_UTIME_H])
342m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_UTMP_H], [/* Define to 1 if you have the <utmp.h> header file. */
343#undef HAVE_UTMP_H])
344m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_UTMPX_H], [/* Define to 1 if you have the <utmpx.h> header file. */
345#undef HAVE_UTMPX_H])
346m4trace:configure.ac:400: -1- AC_HEADER_STDC
347m4trace:configure.ac:400: -1- AC_SUBST([EGREP])
348m4trace:configure.ac:400: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
349m4trace:configure.ac:400: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
350#undef STDC_HEADERS])
351m4trace:configure.ac:400: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
352 inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
353m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
354#undef HAVE_SYS_TYPES_H])
355m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
356#undef HAVE_SYS_STAT_H])
357m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
358#undef HAVE_STDLIB_H])
359m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
360#undef HAVE_STRING_H])
361m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
362#undef HAVE_MEMORY_H])
363m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
364#undef HAVE_STRINGS_H])
365m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
366#undef HAVE_INTTYPES_H])
367m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
368#undef HAVE_STDINT_H])
369m4trace:configure.ac:400: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
370#undef HAVE_UNISTD_H])
371m4trace:configure.ac:403: -2- AC_CHECK_LIB([nsl], [yp_match])
372m4trace:configure.ac:403: -2- AH_OUTPUT([HAVE_LIBNSL], [/* Define to 1 if you have the `nsl\' library (-lnsl). */
373#undef HAVE_LIBNSL])
374m4trace:configure.ac:403: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBNSL])
375m4trace:configure.ac:404: -2- AC_CHECK_LIB([socket], [setsockopt])
376m4trace:configure.ac:404: -2- AH_OUTPUT([HAVE_LIBSOCKET], [/* Define to 1 if you have the `socket\' library (-lsocket). */
377#undef HAVE_LIBSOCKET])
378m4trace:configure.ac:404: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSOCKET])
379m4trace:configure.ac:409: -1- AC_CHECK_LIB([rpc], [innetgr], [LIBS="-lrpc -lyp -lrpc $LIBS" ], [], [-lyp -lrpc])
380m4trace:configure.ac:414: -2- AC_CHECK_LIB([gen], [getspnam], [LIBS="$LIBS -lgen"])
381m4trace:configure.ac:456: -1- AC_CHECK_LIB([z], [deflate], [], [{ { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
382echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
383 { (exit 1); exit 1; }; }])
384m4trace:configure.ac:456: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the `z\' library (-lz). */
385#undef HAVE_LIBZ])
386m4trace:configure.ac:456: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ])
387m4trace:configure.ac:461: -1- AC_CHECK_LIB([resolv], [strcasecmp], [LIBS="$LIBS -lresolv"])
388m4trace:configure.ac:465: -1- AC_CHECK_LIB([c89], [utimes], [AC_DEFINE(HAVE_UTIMES)
389 LIBS="$LIBS -lc89"])
390m4trace:configure.ac:465: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UTIMES])
391m4trace:configure.ac:468: -1- AC_CHECK_HEADERS([libutil.h])
392m4trace:configure.ac:468: -1- AH_OUTPUT([HAVE_LIBUTIL_H], [/* Define to 1 if you have the <libutil.h> header file. */
393#undef HAVE_LIBUTIL_H])
394m4trace:configure.ac:469: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LOGIN])
395m4trace:configure.ac:470: -1- AC_CHECK_FUNCS([logout updwtmp logwtmp])
396m4trace:configure.ac:470: -1- AH_OUTPUT([HAVE_LOGOUT], [/* Define to 1 if you have the `logout\' function. */
397#undef HAVE_LOGOUT])
398m4trace:configure.ac:470: -1- AH_OUTPUT([HAVE_UPDWTMP], [/* Define to 1 if you have the `updwtmp\' function. */
399#undef HAVE_UPDWTMP])
400m4trace:configure.ac:470: -1- AH_OUTPUT([HAVE_LOGWTMP], [/* Define to 1 if you have the `logwtmp\' function. */
401#undef HAVE_LOGWTMP])
402m4trace:configure.ac:472: -1- AC_FUNC_STRFTIME
403m4trace:configure.ac:472: -1- AC_CHECK_FUNCS([strftime], [], [# strftime is in -lintl on SCO UNIX.
404AC_CHECK_LIB(intl, strftime,
405 [AC_DEFINE(HAVE_STRFTIME)
406LIBS="-lintl $LIBS"])])
407m4trace:configure.ac:472: -1- AH_OUTPUT([HAVE_STRFTIME], [/* Define to 1 if you have the `strftime\' function. */
408#undef HAVE_STRFTIME])
409m4trace:configure.ac:472: -1- AC_CHECK_LIB([intl], [strftime], [AC_DEFINE(HAVE_STRFTIME)
410LIBS="-lintl $LIBS"])
411m4trace:configure.ac:472: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRFTIME])
412m4trace:configure.ac:490: -1- AC_DEFINE_TRACE_LITERAL([GLOB_HAS_ALTDIRFUNC])
413m4trace:configure.ac:506: -1- AC_DEFINE_TRACE_LITERAL([GLOB_HAS_GL_MATCHC])
414m4trace:configure.ac:520: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_ONE_BYTE_DIRENT_D_NAME])
415m4trace:configure.ac:553: -1- AC_DEFINE_TRACE_LITERAL([SKEY])
416m4trace:configure.ac:607: -1- AC_DEFINE_TRACE_LITERAL([LIBWRAP])
417m4trace:configure.ac:607: -1- AC_SUBST([LIBWRAP])
418m4trace:configure.ac:622: -1- AC_CHECK_FUNCS([\
419 arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \
420 bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
421 gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \
422 getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \
423 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
424 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \
425 readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \
426 setegid setenv seteuid setgroups setlogin setpcred setproctitle \
427 setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \
428 snprintf socketpair strerror strlcat strlcpy strmode strnvis \
429 sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \
430])
431m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_ARC4RANDOM], [/* Define to 1 if you have the `arc4random\' function. */
432#undef HAVE_ARC4RANDOM])
433m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE___B64_NTOP], [/* Define to 1 if you have the `__b64_ntop\' function. */
434#undef HAVE___B64_NTOP])
435m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_B64_NTOP], [/* Define to 1 if you have the `b64_ntop\' function. */
436#undef HAVE_B64_NTOP])
437m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE___B64_PTON], [/* Define to 1 if you have the `__b64_pton\' function. */
438#undef HAVE___B64_PTON])
439m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_B64_PTON], [/* Define to 1 if you have the `b64_pton\' function. */
440#undef HAVE_B64_PTON])
441m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_BASENAME], [/* Define to 1 if you have the `basename\' function. */
442#undef HAVE_BASENAME])
443m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_BCOPY], [/* Define to 1 if you have the `bcopy\' function. */
444#undef HAVE_BCOPY])
445m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_BINDRESVPORT_SA], [/* Define to 1 if you have the `bindresvport_sa\' function. */
446#undef HAVE_BINDRESVPORT_SA])
447m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_CLOCK], [/* Define to 1 if you have the `clock\' function. */
448#undef HAVE_CLOCK])
449m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_FCHMOD], [/* Define to 1 if you have the `fchmod\' function. */
450#undef HAVE_FCHMOD])
451m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_FCHOWN], [/* Define to 1 if you have the `fchown\' function. */
452#undef HAVE_FCHOWN])
453m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_FREEADDRINFO], [/* Define to 1 if you have the `freeaddrinfo\' function. */
454#undef HAVE_FREEADDRINFO])
455m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_FUTIMES], [/* Define to 1 if you have the `futimes\' function. */
456#undef HAVE_FUTIMES])
457m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GAI_STRERROR], [/* Define to 1 if you have the `gai_strerror\' function. */
458#undef HAVE_GAI_STRERROR])
459m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETADDRINFO], [/* Define to 1 if you have the `getaddrinfo\' function. */
460#undef HAVE_GETADDRINFO])
461m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETCWD], [/* Define to 1 if you have the `getcwd\' function. */
462#undef HAVE_GETCWD])
463m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETGROUPLIST], [/* Define to 1 if you have the `getgrouplist\' function. */
464#undef HAVE_GETGROUPLIST])
465m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETNAMEINFO], [/* Define to 1 if you have the `getnameinfo\' function. */
466#undef HAVE_GETNAMEINFO])
467m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETOPT], [/* Define to 1 if you have the `getopt\' function. */
468#undef HAVE_GETOPT])
469m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETPEEREID], [/* Define to 1 if you have the `getpeereid\' function. */
470#undef HAVE_GETPEEREID])
471m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE__GETPTY], [/* Define to 1 if you have the `_getpty\' function. */
472#undef HAVE__GETPTY])
473m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETRLIMIT], [/* Define to 1 if you have the `getrlimit\' function. */
474#undef HAVE_GETRLIMIT])
475m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETRUSAGE], [/* Define to 1 if you have the `getrusage\' function. */
476#undef HAVE_GETRUSAGE])
477m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GETTTYENT], [/* Define to 1 if you have the `getttyent\' function. */
478#undef HAVE_GETTTYENT])
479m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_GLOB], [/* Define to 1 if you have the `glob\' function. */
480#undef HAVE_GLOB])
481m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_INET_ATON], [/* Define to 1 if you have the `inet_aton\' function. */
482#undef HAVE_INET_ATON])
483m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_INET_NTOA], [/* Define to 1 if you have the `inet_ntoa\' function. */
484#undef HAVE_INET_NTOA])
485m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_INET_NTOP], [/* Define to 1 if you have the `inet_ntop\' function. */
486#undef HAVE_INET_NTOP])
487m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_INNETGR], [/* Define to 1 if you have the `innetgr\' function. */
488#undef HAVE_INNETGR])
489m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_LOGIN_GETCAPBOOL], [/* Define to 1 if you have the `login_getcapbool\' function. */
490#undef HAVE_LOGIN_GETCAPBOOL])
491m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_MD5_CRYPT], [/* Define to 1 if you have the `md5_crypt\' function. */
492#undef HAVE_MD5_CRYPT])
493m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_MEMMOVE], [/* Define to 1 if you have the `memmove\' function. */
494#undef HAVE_MEMMOVE])
495m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_MKDTEMP], [/* Define to 1 if you have the `mkdtemp\' function. */
496#undef HAVE_MKDTEMP])
497m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_MMAP], [/* Define to 1 if you have the `mmap\' function. */
498#undef HAVE_MMAP])
499m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_NGETADDRINFO], [/* Define to 1 if you have the `ngetaddrinfo\' function. */
500#undef HAVE_NGETADDRINFO])
501m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_NSLEEP], [/* Define to 1 if you have the `nsleep\' function. */
502#undef HAVE_NSLEEP])
503m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_OGETADDRINFO], [/* Define to 1 if you have the `ogetaddrinfo\' function. */
504#undef HAVE_OGETADDRINFO])
505m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_OPENPTY], [/* Define to 1 if you have the `openpty\' function. */
506#undef HAVE_OPENPTY])
507m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_PSTAT], [/* Define to 1 if you have the `pstat\' function. */
508#undef HAVE_PSTAT])
509m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_READPASSPHRASE], [/* Define to 1 if you have the `readpassphrase\' function. */
510#undef HAVE_READPASSPHRASE])
511m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_REALPATH], [/* Define to 1 if you have the `realpath\' function. */
512#undef HAVE_REALPATH])
513m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_RECVMSG], [/* Define to 1 if you have the `recvmsg\' function. */
514#undef HAVE_RECVMSG])
515m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_RRESVPORT_AF], [/* Define to 1 if you have the `rresvport_af\' function. */
516#undef HAVE_RRESVPORT_AF])
517m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SENDMSG], [/* Define to 1 if you have the `sendmsg\' function. */
518#undef HAVE_SENDMSG])
519m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETDTABLESIZE], [/* Define to 1 if you have the `setdtablesize\' function. */
520#undef HAVE_SETDTABLESIZE])
521m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETEGID], [/* Define to 1 if you have the `setegid\' function. */
522#undef HAVE_SETEGID])
523m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETENV], [/* Define to 1 if you have the `setenv\' function. */
524#undef HAVE_SETENV])
525m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETEUID], [/* Define to 1 if you have the `seteuid\' function. */
526#undef HAVE_SETEUID])
527m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETGROUPS], [/* Define to 1 if you have the `setgroups\' function. */
528#undef HAVE_SETGROUPS])
529m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETLOGIN], [/* Define to 1 if you have the `setlogin\' function. */
530#undef HAVE_SETLOGIN])
531m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETPCRED], [/* Define to 1 if you have the `setpcred\' function. */
532#undef HAVE_SETPCRED])
533m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETPROCTITLE], [/* Define to 1 if you have the `setproctitle\' function. */
534#undef HAVE_SETPROCTITLE])
535m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETRESGID], [/* Define to 1 if you have the `setresgid\' function. */
536#undef HAVE_SETRESGID])
537m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETREUID], [/* Define to 1 if you have the `setreuid\' function. */
538#undef HAVE_SETREUID])
539m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETRLIMIT], [/* Define to 1 if you have the `setrlimit\' function. */
540#undef HAVE_SETRLIMIT])
541m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETSID], [/* Define to 1 if you have the `setsid\' function. */
542#undef HAVE_SETSID])
543m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SETVBUF], [/* Define to 1 if you have the `setvbuf\' function. */
544#undef HAVE_SETVBUF])
545m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SIGACTION], [/* Define to 1 if you have the `sigaction\' function. */
546#undef HAVE_SIGACTION])
547m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SIGVEC], [/* Define to 1 if you have the `sigvec\' function. */
548#undef HAVE_SIGVEC])
549m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the `snprintf\' function. */
550#undef HAVE_SNPRINTF])
551m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SOCKETPAIR], [/* Define to 1 if you have the `socketpair\' function. */
552#undef HAVE_SOCKETPAIR])
553m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_STRERROR], [/* Define to 1 if you have the `strerror\' function. */
554#undef HAVE_STRERROR])
555m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_STRLCAT], [/* Define to 1 if you have the `strlcat\' function. */
556#undef HAVE_STRLCAT])
557m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_STRLCPY], [/* Define to 1 if you have the `strlcpy\' function. */
558#undef HAVE_STRLCPY])
559m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_STRMODE], [/* Define to 1 if you have the `strmode\' function. */
560#undef HAVE_STRMODE])
561m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_STRNVIS], [/* Define to 1 if you have the `strnvis\' function. */
562#undef HAVE_STRNVIS])
563m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_SYSCONF], [/* Define to 1 if you have the `sysconf\' function. */
564#undef HAVE_SYSCONF])
565m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_TCGETPGRP], [/* Define to 1 if you have the `tcgetpgrp\' function. */
566#undef HAVE_TCGETPGRP])
567m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_TRUNCATE], [/* Define to 1 if you have the `truncate\' function. */
568#undef HAVE_TRUNCATE])
569m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_UTIMES], [/* Define to 1 if you have the `utimes\' function. */
570#undef HAVE_UTIMES])
571m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_VHANGUP], [/* Define to 1 if you have the `vhangup\' function. */
572#undef HAVE_VHANGUP])
573m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the `vsnprintf\' function. */
574#undef HAVE_VSNPRINTF])
575m4trace:configure.ac:622: -1- AH_OUTPUT([HAVE_WAITPID], [/* Define to 1 if you have the `waitpid\' function. */
576#undef HAVE_WAITPID])
577m4trace:configure.ac:624: -2- AC_DEFINE_TRACE_LITERAL([HAVE_NANOSLEEP])
578m4trace:configure.ac:625: -2- AC_DEFINE_TRACE_LITERAL([HAVE_BASENAME])
579m4trace:configure.ac:628: -1- AC_CHECK_FUNCS([strsep])
580m4trace:configure.ac:628: -1- AH_OUTPUT([HAVE_STRSEP], [/* Define to 1 if you have the `strsep\' function. */
581#undef HAVE_STRSEP])
582m4trace:configure.ac:665: -1- AC_CHECK_FUNCS([dirname], [AC_CHECK_HEADERS(libgen.h) ], [
583 AC_CHECK_LIB(gen, dirname,[
584 AC_CACHE_CHECK([for broken dirname],
585 ac_cv_have_broken_dirname, [
586 save_LIBS="$LIBS"
587 LIBS="$LIBS -lgen"
588 AC_TRY_RUN(
589 [
590#include <libgen.h>
591#include <string.h>
592
593int main(int argc, char **argv) {
594 char *s, buf[32];
595
596 strncpy(buf,"/etc", 32);
597 s = dirname(buf);
598 if (!s || strncmp(s, "/", 32) != 0) {
599 exit(1);
600 } else {
601 exit(0);
602 }
603}
604 ],
605 [ ac_cv_have_broken_dirname="no" ],
606 [ ac_cv_have_broken_dirname="yes" ]
607 )
608 LIBS="$save_LIBS"
609 ])
610 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
611 LIBS="$LIBS -lgen"
612 AC_DEFINE(HAVE_DIRNAME)
613 AC_CHECK_HEADERS(libgen.h)
614 fi
615 ])
616])
617m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_DIRNAME], [/* Define to 1 if you have the `dirname\' function. */
618#undef HAVE_DIRNAME])
619m4trace:configure.ac:665: -1- AC_CHECK_HEADERS([libgen.h])
620m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */
621#undef HAVE_LIBGEN_H])
622m4trace:configure.ac:665: -1- AC_CHECK_LIB([gen], [dirname], [
623 AC_CACHE_CHECK([for broken dirname],
624 ac_cv_have_broken_dirname, [
625 save_LIBS="$LIBS"
626 LIBS="$LIBS -lgen"
627 AC_TRY_RUN(
628 [
629#include <libgen.h>
630#include <string.h>
631
632int main(int argc, char **argv) {
633 char *s, buf[32];
634
635 strncpy(buf,"/etc", 32);
636 s = dirname(buf);
637 if (!s || strncmp(s, "/", 32) != 0) {
638 exit(1);
639 } else {
640 exit(0);
641 }
642}
643 ],
644 [ ac_cv_have_broken_dirname="no" ],
645 [ ac_cv_have_broken_dirname="yes" ]
646 )
647 LIBS="$save_LIBS"
648 ])
649 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
650 LIBS="$LIBS -lgen"
651 AC_DEFINE(HAVE_DIRNAME)
652 AC_CHECK_HEADERS(libgen.h)
653 fi
654 ])
655m4trace:configure.ac:665: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DIRNAME])
656m4trace:configure.ac:665: -1- AC_CHECK_HEADERS([libgen.h])
657m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */
658#undef HAVE_LIBGEN_H])
659m4trace:configure.ac:668: -1- AC_CHECK_FUNCS([gettimeofday time])
660m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_GETTIMEOFDAY], [/* Define to 1 if you have the `gettimeofday\' function. */
661#undef HAVE_GETTIMEOFDAY])
662m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_TIME], [/* Define to 1 if you have the `time\' function. */
663#undef HAVE_TIME])
664m4trace:configure.ac:670: -1- AC_CHECK_FUNCS([endutent getutent getutid getutline pututline setutent])
665m4trace:configure.ac:670: -1- AH_OUTPUT([HAVE_ENDUTENT], [/* Define to 1 if you have the `endutent\' function. */
666#undef HAVE_ENDUTENT])
667m4trace:configure.ac:670: -1- AH_OUTPUT([HAVE_GETUTENT], [/* Define to 1 if you have the `getutent\' function. */
668#undef HAVE_GETUTENT])
669m4trace:configure.ac:670: -1- AH_OUTPUT([HAVE_GETUTID], [/* Define to 1 if you have the `getutid\' function. */
670#undef HAVE_GETUTID])
671m4trace:configure.ac:670: -1- AH_OUTPUT([HAVE_GETUTLINE], [/* Define to 1 if you have the `getutline\' function. */
672#undef HAVE_GETUTLINE])
673m4trace:configure.ac:670: -1- AH_OUTPUT([HAVE_PUTUTLINE], [/* Define to 1 if you have the `pututline\' function. */
674#undef HAVE_PUTUTLINE])
675m4trace:configure.ac:670: -1- AH_OUTPUT([HAVE_SETUTENT], [/* Define to 1 if you have the `setutent\' function. */
676#undef HAVE_SETUTENT])
677m4trace:configure.ac:671: -1- AC_CHECK_FUNCS([utmpname])
678m4trace:configure.ac:671: -1- AH_OUTPUT([HAVE_UTMPNAME], [/* Define to 1 if you have the `utmpname\' function. */
679#undef HAVE_UTMPNAME])
680m4trace:configure.ac:673: -1- AC_CHECK_FUNCS([endutxent getutxent getutxid getutxline pututxline ])
681m4trace:configure.ac:673: -1- AH_OUTPUT([HAVE_ENDUTXENT], [/* Define to 1 if you have the `endutxent\' function. */
682#undef HAVE_ENDUTXENT])
683m4trace:configure.ac:673: -1- AH_OUTPUT([HAVE_GETUTXENT], [/* Define to 1 if you have the `getutxent\' function. */
684#undef HAVE_GETUTXENT])
685m4trace:configure.ac:673: -1- AH_OUTPUT([HAVE_GETUTXID], [/* Define to 1 if you have the `getutxid\' function. */
686#undef HAVE_GETUTXID])
687m4trace:configure.ac:673: -1- AH_OUTPUT([HAVE_GETUTXLINE], [/* Define to 1 if you have the `getutxline\' function. */
688#undef HAVE_GETUTXLINE])
689m4trace:configure.ac:673: -1- AH_OUTPUT([HAVE_PUTUTXLINE], [/* Define to 1 if you have the `pututxline\' function. */
690#undef HAVE_PUTUTXLINE])
691m4trace:configure.ac:674: -1- AC_CHECK_FUNCS([setutxent utmpxname])
692m4trace:configure.ac:674: -1- AH_OUTPUT([HAVE_SETUTXENT], [/* Define to 1 if you have the `setutxent\' function. */
693#undef HAVE_SETUTXENT])
694m4trace:configure.ac:674: -1- AH_OUTPUT([HAVE_UTMPXNAME], [/* Define to 1 if you have the `utmpxname\' function. */
695#undef HAVE_UTMPXNAME])
696m4trace:configure.ac:679: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DAEMON])
697m4trace:configure.ac:679: -1- AC_CHECK_LIB([bsd], [daemon], [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])
698m4trace:configure.ac:679: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DAEMON])
699m4trace:configure.ac:684: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE])
700m4trace:configure.ac:684: -1- AC_CHECK_LIB([ucb], [getpagesize], [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])
701m4trace:configure.ac:684: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE])
702m4trace:configure.ac:700: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SNPRINTF])
703m4trace:configure.ac:726: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRICT_MKSTEMP])
704m4trace:configure.ac:726: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRICT_MKSTEMP])
705m4trace:configure.ac:729: -1- AC_FUNC_GETPGRP
706m4trace:configure.ac:729: -1- AC_DEFINE_TRACE_LITERAL([GETPGRP_VOID])
707m4trace:configure.ac:729: -1- AH_OUTPUT([GETPGRP_VOID], [/* Define to 1 if the `getpgrp\' function requires zero arguments. */
708#undef GETPGRP_VOID])
709m4trace:configure.ac:757: -1- AC_CHECK_LIB([dl], [dlopen], [], [])
710m4trace:configure.ac:757: -1- AH_OUTPUT([HAVE_LIBDL], [/* Define to 1 if you have the `dl\' library (-ldl). */
711#undef HAVE_LIBDL])
712m4trace:configure.ac:757: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDL])
713m4trace:configure.ac:757: -1- AC_CHECK_LIB([pam], [pam_set_item], [], [{ { echo "$as_me:$LINENO: error: *** libpam missing" >&5
714echo "$as_me: error: *** libpam missing" >&2;}
715 { (exit 1); exit 1; }; }])
716m4trace:configure.ac:757: -1- AH_OUTPUT([HAVE_LIBPAM], [/* Define to 1 if you have the `pam\' library (-lpam). */
717#undef HAVE_LIBPAM])
718m4trace:configure.ac:757: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPAM])
719m4trace:configure.ac:757: -1- AC_CHECK_FUNCS([pam_getenvlist])
720m4trace:configure.ac:757: -1- AH_OUTPUT([HAVE_PAM_GETENVLIST], [/* Define to 1 if you have the `pam_getenvlist\' function. */
721#undef HAVE_PAM_GETENVLIST])
722m4trace:configure.ac:757: -1- AC_DEFINE_TRACE_LITERAL([USE_PAM])
723m4trace:configure.ac:757: -1- AC_SUBST([LIBPAM])
724m4trace:configure.ac:775: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OLD_PAM])
725m4trace:configure.ac:781: -1- AC_CHECK_LIB([crypt], [crypt])
726m4trace:configure.ac:781: -1- AH_OUTPUT([HAVE_LIBCRYPT], [/* Define to 1 if you have the `crypt\' library (-lcrypt). */
727#undef HAVE_LIBCRYPT])
728m4trace:configure.ac:781: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBCRYPT])
729m4trace:configure.ac:813: -2- AC_DEFINE_TRACE_LITERAL([HAVE_OPENSSL])
730m4trace:configure.ac:828: -2- AC_DEFINE_TRACE_LITERAL([HAVE_OPENSSL])
731m4trace:configure.ac:915: -1- AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"])
732m4trace:configure.ac:963: -1- AC_DEFINE_TRACE_LITERAL([OPENSSL_PRNG_ONLY])
733m4trace:configure.ac:971: -1- AC_SUBST([INSTALL_SSH_RAND_HELPER])
734m4trace:configure.ac:994: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_PORT])
735m4trace:configure.ac:1044: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_SOCKET])
736m4trace:configure.ac:1044: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_SOCKET])
737m4trace:configure.ac:1056: -1- AC_DEFINE_TRACE_LITERAL([ENTROPY_TIMEOUT_MSEC])
738m4trace:configure.ac:1067: -1- AC_DEFINE_TRACE_LITERAL([SSH_PRIVSEP_USER])
739m4trace:configure.ac:1068: -1- AC_SUBST([SSH_PRIVSEP_USER])
740m4trace:configure.ac:1085: -1- AC_SUBST([PROG_LS], [$ac_cv_path_PROG_LS])
741m4trace:configure.ac:1085: -1- AC_SUBST([PROG_LS])
742m4trace:configure.ac:1086: -1- AC_SUBST([PROG_NETSTAT], [$ac_cv_path_PROG_NETSTAT])
743m4trace:configure.ac:1086: -1- AC_SUBST([PROG_NETSTAT])
744m4trace:configure.ac:1087: -1- AC_SUBST([PROG_ARP], [$ac_cv_path_PROG_ARP])
745m4trace:configure.ac:1087: -1- AC_SUBST([PROG_ARP])
746m4trace:configure.ac:1088: -1- AC_SUBST([PROG_IFCONFIG], [$ac_cv_path_PROG_IFCONFIG])
747m4trace:configure.ac:1088: -1- AC_SUBST([PROG_IFCONFIG])
748m4trace:configure.ac:1089: -1- AC_SUBST([PROG_JSTAT], [$ac_cv_path_PROG_JSTAT])
749m4trace:configure.ac:1089: -1- AC_SUBST([PROG_JSTAT])
750m4trace:configure.ac:1090: -1- AC_SUBST([PROG_PS], [$ac_cv_path_PROG_PS])
751m4trace:configure.ac:1090: -1- AC_SUBST([PROG_PS])
752m4trace:configure.ac:1091: -1- AC_SUBST([PROG_SAR], [$ac_cv_path_PROG_SAR])
753m4trace:configure.ac:1091: -1- AC_SUBST([PROG_SAR])
754m4trace:configure.ac:1092: -1- AC_SUBST([PROG_W], [$ac_cv_path_PROG_W])
755m4trace:configure.ac:1092: -1- AC_SUBST([PROG_W])
756m4trace:configure.ac:1093: -1- AC_SUBST([PROG_WHO], [$ac_cv_path_PROG_WHO])
757m4trace:configure.ac:1093: -1- AC_SUBST([PROG_WHO])
758m4trace:configure.ac:1094: -1- AC_SUBST([PROG_LAST], [$ac_cv_path_PROG_LAST])
759m4trace:configure.ac:1094: -1- AC_SUBST([PROG_LAST])
760m4trace:configure.ac:1095: -1- AC_SUBST([PROG_LASTLOG], [$ac_cv_path_PROG_LASTLOG])
761m4trace:configure.ac:1095: -1- AC_SUBST([PROG_LASTLOG])
762m4trace:configure.ac:1096: -1- AC_SUBST([PROG_DF], [$ac_cv_path_PROG_DF])
763m4trace:configure.ac:1096: -1- AC_SUBST([PROG_DF])
764m4trace:configure.ac:1097: -1- AC_SUBST([PROG_VMSTAT], [$ac_cv_path_PROG_VMSTAT])
765m4trace:configure.ac:1097: -1- AC_SUBST([PROG_VMSTAT])
766m4trace:configure.ac:1098: -1- AC_SUBST([PROG_UPTIME], [$ac_cv_path_PROG_UPTIME])
767m4trace:configure.ac:1098: -1- AC_SUBST([PROG_UPTIME])
768m4trace:configure.ac:1099: -1- AC_SUBST([PROG_IPCS], [$ac_cv_path_PROG_IPCS])
769m4trace:configure.ac:1099: -1- AC_SUBST([PROG_IPCS])
770m4trace:configure.ac:1100: -1- AC_SUBST([PROG_TAIL], [$ac_cv_path_PROG_TAIL])
771m4trace:configure.ac:1100: -1- AC_SUBST([PROG_TAIL])
772m4trace:configure.ac:1117: -1- AC_SUBST([INSTALL_SSH_PRNG_CMDS])
773m4trace:configure.ac:1126: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_CHAR])
774m4trace:configure.ac:1126: -1- AH_OUTPUT([SIZEOF_CHAR], [/* The size of a `char\', as computed by sizeof. */
775#undef SIZEOF_CHAR])
776m4trace:configure.ac:1127: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_SHORT_INT])
777m4trace:configure.ac:1127: -1- AH_OUTPUT([SIZEOF_SHORT_INT], [/* The size of a `short int\', as computed by sizeof. */
778#undef SIZEOF_SHORT_INT])
779m4trace:configure.ac:1128: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_INT])
780m4trace:configure.ac:1128: -1- AH_OUTPUT([SIZEOF_INT], [/* The size of a `int\', as computed by sizeof. */
781#undef SIZEOF_INT])
782m4trace:configure.ac:1129: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_INT])
783m4trace:configure.ac:1129: -1- AH_OUTPUT([SIZEOF_LONG_INT], [/* The size of a `long int\', as computed by sizeof. */
784#undef SIZEOF_LONG_INT])
785m4trace:configure.ac:1130: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_LONG_INT])
786m4trace:configure.ac:1130: -1- AH_OUTPUT([SIZEOF_LONG_LONG_INT], [/* The size of a `long long int\', as computed by sizeof. */
787#undef SIZEOF_LONG_LONG_INT])
788m4trace:configure.ac:1147: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT])
789m4trace:configure.ac:1160: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
790m4trace:configure.ac:1176: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
791m4trace:configure.ac:1197: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INT64_T])
792m4trace:configure.ac:1209: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
793m4trace:configure.ac:1223: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
794m4trace:configure.ac:1235: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT64_T])
795m4trace:configure.ac:1249: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT64_T])
796m4trace:configure.ac:1264: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTXX_T])
797m4trace:configure.ac:1278: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTXX_T])
798m4trace:configure.ac:1300: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
799m4trace:configure.ac:1300: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
800m4trace:configure.ac:1315: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_CHAR])
801m4trace:configure.ac:1318: -1- AC_DEFINE_TRACE_LITERAL([socklen_t])
802m4trace:configure.ac:1318: -1- AH_OUTPUT([socklen_t], [/* type to use in place of socklen_t if not defined */
803#undef socklen_t])
804m4trace:configure.ac:1320: -1- AC_CHECK_TYPES([sig_atomic_t], [], [], [#include <signal.h>])
805m4trace:configure.ac:1320: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIG_ATOMIC_T])
806m4trace:configure.ac:1320: -1- AH_OUTPUT([HAVE_SIG_ATOMIC_T], [/* Define to 1 if the system has the type `sig_atomic_t\'. */
807#undef HAVE_SIG_ATOMIC_T])
808m4trace:configure.ac:1333: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIZE_T])
809m4trace:configure.ac:1347: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T])
810m4trace:configure.ac:1361: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CLOCK_T])
811m4trace:configure.ac:1386: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SA_FAMILY_T])
812m4trace:configure.ac:1400: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PID_T])
813m4trace:configure.ac:1414: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MODE_T])
814m4trace:configure.ac:1430: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_STORAGE])
815m4trace:configure.ac:1445: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_IN6])
816m4trace:configure.ac:1460: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_IN6_ADDR])
817m4trace:configure.ac:1476: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_ADDRINFO])
818m4trace:configure.ac:1488: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_TIMEVAL])
819m4trace:configure.ac:1492: -1- AC_CHECK_TYPES([struct timespec])
820m4trace:configure.ac:1492: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_TIMESPEC])
821m4trace:configure.ac:1492: -1- AH_OUTPUT([HAVE_STRUCT_TIMESPEC], [/* Define to 1 if the system has the type `struct timespec\'. */
822#undef HAVE_STRUCT_TIMESPEC])
823m4trace:configure.ac:1529: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SNPRINTF])
824m4trace:configure.ac:1533: -1- AC_DEFINE_TRACE_LITERAL([HAVE_HOST_IN_UTMP])
825m4trace:configure.ac:1534: -1- AC_DEFINE_TRACE_LITERAL([HAVE_HOST_IN_UTMPX])
826m4trace:configure.ac:1535: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYSLEN_IN_UTMPX])
827m4trace:configure.ac:1536: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PID_IN_UTMP])
828m4trace:configure.ac:1537: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TYPE_IN_UTMP])
829m4trace:configure.ac:1538: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TYPE_IN_UTMPX])
830m4trace:configure.ac:1539: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TV_IN_UTMP])
831m4trace:configure.ac:1540: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ID_IN_UTMP])
832m4trace:configure.ac:1541: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ID_IN_UTMPX])
833m4trace:configure.ac:1542: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_IN_UTMP])
834m4trace:configure.ac:1543: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_IN_UTMPX])
835m4trace:configure.ac:1544: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_V6_IN_UTMP])
836m4trace:configure.ac:1545: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_V6_IN_UTMPX])
837m4trace:configure.ac:1546: -1- AC_DEFINE_TRACE_LITERAL([HAVE_EXIT_IN_UTMP])
838m4trace:configure.ac:1547: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME_IN_UTMP])
839m4trace:configure.ac:1548: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME_IN_UTMPX])
840m4trace:configure.ac:1549: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TV_IN_UTMPX])
841m4trace:configure.ac:1551: -1- AC_CHECK_MEMBERS([struct stat.st_blksize])
842m4trace:configure.ac:1551: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_STAT_ST_BLKSIZE])
843m4trace:configure.ac:1551: -1- AH_OUTPUT([HAVE_STRUCT_STAT_ST_BLKSIZE], [/* Define to 1 if `st_blksize\' is member of `struct stat\'. */
844#undef HAVE_STRUCT_STAT_ST_BLKSIZE])
845m4trace:configure.ac:1566: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SS_FAMILY_IN_SS])
846m4trace:configure.ac:1582: -1- AC_DEFINE_TRACE_LITERAL([HAVE___SS_FAMILY_IN_SS])
847m4trace:configure.ac:1597: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_CLASS_IN_PASSWD])
848m4trace:configure.ac:1612: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_EXPIRE_IN_PASSWD])
849m4trace:configure.ac:1627: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_CHANGE_IN_PASSWD])
850m4trace:configure.ac:1652: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ACCRIGHTS_IN_MSGHDR])
851m4trace:configure.ac:1676: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CONTROL_IN_MSGHDR])
852m4trace:configure.ac:1687: -1- AC_DEFINE_TRACE_LITERAL([HAVE___PROGNAME])
853m4trace:configure.ac:1700: -1- AC_DEFINE_TRACE_LITERAL([HAVE___FUNCTION__])
854m4trace:configure.ac:1713: -1- AC_DEFINE_TRACE_LITERAL([HAVE___func__])
855m4trace:configure.ac:1728: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETOPT_OPTRESET])
856m4trace:configure.ac:1739: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYS_ERRLIST])
857m4trace:configure.ac:1751: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYS_NERR])
858m4trace:configure.ac:1784: -1- AC_CHECK_HEADERS([sectok.h])
859m4trace:configure.ac:1784: -1- AH_OUTPUT([HAVE_SECTOK_H], [/* Define to 1 if you have the <sectok.h> header file. */
860#undef HAVE_SECTOK_H])
861m4trace:configure.ac:1784: -1- AC_CHECK_LIB([sectok], [sectok_open])
862m4trace:configure.ac:1784: -1- AH_OUTPUT([HAVE_LIBSECTOK], [/* Define to 1 if you have the `sectok\' library (-lsectok). */
863#undef HAVE_LIBSECTOK])
864m4trace:configure.ac:1784: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSECTOK])
865m4trace:configure.ac:1784: -1- AC_DEFINE_TRACE_LITERAL([SMARTCARD])
866m4trace:configure.ac:1784: -1- AC_DEFINE_TRACE_LITERAL([USE_SECTOK])
867m4trace:configure.ac:1793: -1- AC_SUBST([OPENSC_CONFIG], [$ac_cv_path_OPENSC_CONFIG])
868m4trace:configure.ac:1799: -1- AC_DEFINE_TRACE_LITERAL([SMARTCARD])
869m4trace:configure.ac:1800: -1- AC_DEFINE_TRACE_LITERAL([USE_OPENSC])
870m4trace:configure.ac:1842: -1- AC_DEFINE_TRACE_LITERAL([KRB5])
871m4trace:configure.ac:1842: -1- AC_DEFINE_TRACE_LITERAL([HEIMDAL])
872m4trace:configure.ac:1842: -1- AC_CHECK_LIB([resolv], [dn_expand], [], [])
873m4trace:configure.ac:1842: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the `resolv\' library (-lresolv). */
874#undef HAVE_LIBRESOLV])
875m4trace:configure.ac:1842: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV])
876m4trace:configure.ac:1896: -1- AC_CHECK_HEADERS([krb.h])
877m4trace:configure.ac:1896: -1- AH_OUTPUT([HAVE_KRB_H], [/* Define to 1 if you have the <krb.h> header file. */
878#undef HAVE_KRB_H])
879m4trace:configure.ac:1896: -1- AC_CHECK_LIB([krb], [main])
880m4trace:configure.ac:1896: -1- AH_OUTPUT([HAVE_LIBKRB], [/* Define to 1 if you have the `krb\' library (-lkrb). */
881#undef HAVE_LIBKRB])
882m4trace:configure.ac:1896: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBKRB])
883m4trace:configure.ac:1896: -1- AC_CHECK_LIB([krb4], [main])
884m4trace:configure.ac:1896: -1- AH_OUTPUT([HAVE_LIBKRB4], [/* Define to 1 if you have the `krb4\' library (-lkrb4). */
885#undef HAVE_LIBKRB4])
886m4trace:configure.ac:1896: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBKRB4])
887m4trace:configure.ac:1896: -1- AC_CHECK_LIB([des], [des_cbc_encrypt])
888m4trace:configure.ac:1896: -1- AH_OUTPUT([HAVE_LIBDES], [/* Define to 1 if you have the `des\' library (-ldes). */
889#undef HAVE_LIBDES])
890m4trace:configure.ac:1896: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDES])
891m4trace:configure.ac:1896: -1- AC_CHECK_LIB([des425], [des_cbc_encrypt])
892m4trace:configure.ac:1896: -1- AH_OUTPUT([HAVE_LIBDES425], [/* Define to 1 if you have the `des425\' library (-ldes425). */
893#undef HAVE_LIBDES425])
894m4trace:configure.ac:1896: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDES425])
895m4trace:configure.ac:1896: -1- AC_CHECK_LIB([resolv], [dn_expand], [], [])
896m4trace:configure.ac:1896: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the `resolv\' library (-lresolv). */
897#undef HAVE_LIBRESOLV])
898m4trace:configure.ac:1896: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV])
899m4trace:configure.ac:1896: -1- AC_DEFINE_TRACE_LITERAL([KRB4])
900m4trace:configure.ac:1922: -1- AC_DEFINE_TRACE_LITERAL([AFS])
901m4trace:configure.ac:1936: -1- AC_SUBST([PRIVSEP_PATH])
902m4trace:configure.ac:1956: -1- AC_SUBST([xauth_path], [$ac_cv_path_xauth_path])
903m4trace:configure.ac:1967: -1- AC_SUBST([STRIP_OPT])
904m4trace:configure.ac:1971: -1- AC_SUBST([XAUTH_PATH])
905m4trace:configure.ac:1973: -1- AC_DEFINE_TRACE_LITERAL([XAUTH_PATH])
906m4trace:configure.ac:1975: -1- AC_SUBST([XAUTH_PATH])
907m4trace:configure.ac:1981: -1- AC_DEFINE_TRACE_LITERAL([MAIL_DIRECTORY])
908m4trace:configure.ac:1991: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_PTMX])
909m4trace:configure.ac:1999: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_PTS_AND_PTC])
910m4trace:configure.ac:2017: -1- AC_SUBST([NROFF], [$ac_cv_path_NROFF])
911m4trace:configure.ac:2026: -1- AC_SUBST([MANTYPE])
912m4trace:configure.ac:2032: -1- AC_SUBST([mansubdir])
913m4trace:configure.ac:2044: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MD5_PASSWORDS])
914m4trace:configure.ac:2055: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
915m4trace:configure.ac:2070: -1- AC_DEFINE_TRACE_LITERAL([HAS_SHADOW_EXPIRE])
916m4trace:configure.ac:2079: -1- AC_DEFINE_TRACE_LITERAL([IPADDR_IN_DISPLAY])
917m4trace:configure.ac:2090: -1- AC_DEFINE_TRACE_LITERAL([IPADDR_IN_DISPLAY])
918m4trace:configure.ac:2171: -1- AC_DEFINE_TRACE_LITERAL([USER_PATH])
919m4trace:configure.ac:2172: -1- AC_SUBST([user_path])
920m4trace:configure.ac:2184: -1- AC_DEFINE_TRACE_LITERAL([SUPERUSER_PATH])
921m4trace:configure.ac:2197: -1- AC_DEFINE_TRACE_LITERAL([IPV4_DEFAULT])
922m4trace:configure.ac:2220: -1- AC_DEFINE_TRACE_LITERAL([IPV4_IN_IPV6])
923m4trace:configure.ac:2220: -1- AC_DEFINE_TRACE_LITERAL([IPV4_IN_IPV6])
924m4trace:configure.ac:2232: -1- AC_DEFINE_TRACE_LITERAL([BSD_AUTH])
925m4trace:configure.ac:2256: -1- AC_DEFINE_TRACE_LITERAL([_PATH_SSH_PIDDIR])
926m4trace:configure.ac:2257: -1- AC_SUBST([piddir])
927m4trace:configure.ac:2263: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
928m4trace:configure.ac:2267: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
929m4trace:configure.ac:2271: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMPX])
930m4trace:configure.ac:2275: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
931m4trace:configure.ac:2279: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMPX])
932m4trace:configure.ac:2283: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LOGIN])
933m4trace:configure.ac:2287: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_PUTUTLINE])
934m4trace:configure.ac:2291: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_PUTUTXLINE])
935m4trace:configure.ac:2301: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
936m4trace:configure.ac:2363: -1- AC_DEFINE_TRACE_LITERAL([CONF_LASTLOG_FILE])
937m4trace:configure.ac:2388: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
938m4trace:configure.ac:2393: -1- AC_DEFINE_TRACE_LITERAL([CONF_UTMP_FILE])
939m4trace:configure.ac:2418: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
940m4trace:configure.ac:2423: -1- AC_DEFINE_TRACE_LITERAL([CONF_WTMP_FILE])
941m4trace:configure.ac:2448: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMPX])
942m4trace:configure.ac:2451: -1- AC_DEFINE_TRACE_LITERAL([CONF_UTMPX_FILE])
943m4trace:configure.ac:2473: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMPX])
944m4trace:configure.ac:2476: -1- AC_DEFINE_TRACE_LITERAL([CONF_WTMPX_FILE])
945m4trace:configure.ac:2494: -1- AC_CONFIG_FILES([Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds])
946m4trace:configure.ac:2495: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
947m4trace:configure.ac:2495: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
diff --git a/bufaux.h b/bufaux.h
new file mode 100644
index 000000000..f5efaed3e
--- /dev/null
+++ b/bufaux.h
@@ -0,0 +1,55 @@
1/* $OpenBSD: bufaux.h,v 1.21 2005/03/10 22:01:05 deraadt Exp $ */
2
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
14
15#ifndef BUFAUX_H
16#define BUFAUX_H
17
18#include "buffer.h"
19#include <openssl/bn.h>
20
21void buffer_put_bignum(Buffer *, const BIGNUM *);
22void buffer_put_bignum2(Buffer *, const BIGNUM *);
23void buffer_get_bignum(Buffer *, BIGNUM *);
24void buffer_get_bignum2(Buffer *, BIGNUM *);
25
26u_short buffer_get_short(Buffer *);
27void buffer_put_short(Buffer *, u_short);
28
29u_int buffer_get_int(Buffer *);
30void buffer_put_int(Buffer *, u_int);
31
32u_int64_t buffer_get_int64(Buffer *);
33void buffer_put_int64(Buffer *, u_int64_t);
34
35int buffer_get_char(Buffer *);
36void buffer_put_char(Buffer *, int);
37
38void *buffer_get_string(Buffer *, u_int *);
39void buffer_put_string(Buffer *, const void *, u_int);
40void buffer_put_cstring(Buffer *, const char *);
41
42#define buffer_skip_string(b) \
43 do { u_int l = buffer_get_int(b); buffer_consume(b, l); } while (0)
44
45int buffer_put_bignum_ret(Buffer *, const BIGNUM *);
46int buffer_get_bignum_ret(Buffer *, BIGNUM *);
47int buffer_put_bignum2_ret(Buffer *, const BIGNUM *);
48int buffer_get_bignum2_ret(Buffer *, BIGNUM *);
49int buffer_get_short_ret(u_short *, Buffer *);
50int buffer_get_int_ret(u_int *, Buffer *);
51int buffer_get_int64_ret(u_int64_t *, Buffer *);
52void *buffer_get_string_ret(Buffer *, u_int *);
53int buffer_get_char_ret(char *, Buffer *);
54
55#endif /* BUFAUX_H */
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..a650bdba8
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1423 @@
1/* config.h.in. Generated from configure.ac by autoheader. */
2
3/* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address
4 */
5#undef AIX_GETNAMEINFO_HACK
6
7/* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */
8#undef AIX_LOGINFAILED_4ARG
9
10/* System only supports IPv4 audit records */
11#undef AU_IPv4
12
13/* Define if your resolver libs need this for getrrsetbyname */
14#undef BIND_8_COMPAT
15
16/* Define if cmsg_type is not passed correctly */
17#undef BROKEN_CMSG_TYPE
18
19/* getaddrinfo is broken (if present) */
20#undef BROKEN_GETADDRINFO
21
22/* getgroups(0,NULL) will return -1 */
23#undef BROKEN_GETGROUPS
24
25/* FreeBSD glob does not do what we need */
26#undef BROKEN_GLOB
27
28/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
29#undef BROKEN_INET_NTOA
30
31/* ia_uinfo routines not supported by OS yet */
32#undef BROKEN_LIBIAF
33
34/* Ultrix mmap can't map files */
35#undef BROKEN_MMAP
36
37/* Define if your struct dirent expects you to allocate extra space for d_name
38 */
39#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
40
41/* Can't do comparisons on readv */
42#undef BROKEN_READV_COMPARISON
43
44/* Define if you have a broken realpath. */
45#undef BROKEN_REALPATH
46
47/* Needed for NeXT */
48#undef BROKEN_SAVED_UIDS
49
50/* Define if your setregid() is broken */
51#undef BROKEN_SETREGID
52
53/* Define if your setresgid() is broken */
54#undef BROKEN_SETRESGID
55
56/* Define if your setresuid() is broken */
57#undef BROKEN_SETRESUID
58
59/* Define if your setreuid() is broken */
60#undef BROKEN_SETREUID
61
62/* LynxOS has broken setvbuf() implementation */
63#undef BROKEN_SETVBUF
64
65/* QNX shadow support is broken */
66#undef BROKEN_SHADOW_EXPIRE
67
68/* Define if your snprintf is busted */
69#undef BROKEN_SNPRINTF
70
71/* updwtmpx is broken (if present) */
72#undef BROKEN_UPDWTMPX
73
74/* Define if you have BSD auth support */
75#undef BSD_AUTH
76
77/* Define if you want to specify the path to your lastlog file */
78#undef CONF_LASTLOG_FILE
79
80/* Define if you want to specify the path to your utmpx file */
81#undef CONF_UTMPX_FILE
82
83/* Define if you want to specify the path to your utmp file */
84#undef CONF_UTMP_FILE
85
86/* Define if you want to specify the path to your wtmpx file */
87#undef CONF_WTMPX_FILE
88
89/* Define if you want to specify the path to your wtmp file */
90#undef CONF_WTMP_FILE
91
92/* Define if your platform needs to skip post auth file descriptor passing */
93#undef DISABLE_FD_PASSING
94
95/* Define if you don't want to use lastlog */
96#undef DISABLE_LASTLOG
97
98/* Define if you don't want to use your system's login() call */
99#undef DISABLE_LOGIN
100
101/* Define if you don't want to use pututline() etc. to write [uw]tmp */
102#undef DISABLE_PUTUTLINE
103
104/* Define if you don't want to use pututxline() etc. to write [uw]tmpx */
105#undef DISABLE_PUTUTXLINE
106
107/* Define if you want to disable shadow passwords */
108#undef DISABLE_SHADOW
109
110/* Define if you don't want to use utmp */
111#undef DISABLE_UTMP
112
113/* Define if you don't want to use utmpx */
114#undef DISABLE_UTMPX
115
116/* Define if you don't want to use wtmp */
117#undef DISABLE_WTMP
118
119/* Define if you don't want to use wtmpx */
120#undef DISABLE_WTMPX
121
122/* Builtin PRNG command timeout */
123#undef ENTROPY_TIMEOUT_MSEC
124
125/* f_fsid has members */
126#undef FSID_HAS_VAL
127
128/* Define to 1 if the `getpgrp' function requires zero arguments. */
129#undef GETPGRP_VOID
130
131/* Conflicting defs for getspnam */
132#undef GETSPNAM_CONFLICTING_DEFS
133
134/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
135#undef GLOB_HAS_ALTDIRFUNC
136
137/* Define if your system glob() function has gl_matchc options in glob_t */
138#undef GLOB_HAS_GL_MATCHC
139
140/* Define this if you want GSSAPI support in the version 2 protocol */
141#undef GSSAPI
142
143/* Define if you want to use shadow password expire field */
144#undef HAS_SHADOW_EXPIRE
145
146/* Define if your system uses access rights style file descriptor passing */
147#undef HAVE_ACCRIGHTS_IN_MSGHDR
148
149/* Define if you have ut_addr in utmp.h */
150#undef HAVE_ADDR_IN_UTMP
151
152/* Define if you have ut_addr in utmpx.h */
153#undef HAVE_ADDR_IN_UTMPX
154
155/* Define if you have ut_addr_v6 in utmp.h */
156#undef HAVE_ADDR_V6_IN_UTMP
157
158/* Define if you have ut_addr_v6 in utmpx.h */
159#undef HAVE_ADDR_V6_IN_UTMPX
160
161/* Define to 1 if you have the `arc4random' function. */
162#undef HAVE_ARC4RANDOM
163
164/* Define to 1 if you have the `arc4random_buf' function. */
165#undef HAVE_ARC4RANDOM_BUF
166
167/* Define to 1 if you have the `arc4random_uniform' function. */
168#undef HAVE_ARC4RANDOM_UNIFORM
169
170/* Define to 1 if you have the `asprintf' function. */
171#undef HAVE_ASPRINTF
172
173/* OpenBSD's gcc has bounded */
174#undef HAVE_ATTRIBUTE__BOUNDED__
175
176/* Have attribute nonnull */
177#undef HAVE_ATTRIBUTE__NONNULL__
178
179/* OpenBSD's gcc has sentinel */
180#undef HAVE_ATTRIBUTE__SENTINEL__
181
182/* Define to 1 if you have the `aug_get_machine' function. */
183#undef HAVE_AUG_GET_MACHINE
184
185/* Define to 1 if you have the `b64_ntop' function. */
186#undef HAVE_B64_NTOP
187
188/* Define to 1 if you have the `b64_pton' function. */
189#undef HAVE_B64_PTON
190
191/* Define if you have the basename function. */
192#undef HAVE_BASENAME
193
194/* Define to 1 if you have the `bcopy' function. */
195#undef HAVE_BCOPY
196
197/* Define to 1 if you have the `bindresvport_sa' function. */
198#undef HAVE_BINDRESVPORT_SA
199
200/* Define to 1 if you have the <bsm/audit.h> header file. */
201#undef HAVE_BSM_AUDIT_H
202
203/* Define to 1 if you have the <bstring.h> header file. */
204#undef HAVE_BSTRING_H
205
206/* Define to 1 if you have the `clock' function. */
207#undef HAVE_CLOCK
208
209/* define if you have clock_t data type */
210#undef HAVE_CLOCK_T
211
212/* Define to 1 if you have the `closefrom' function. */
213#undef HAVE_CLOSEFROM
214
215/* Define if gai_strerror() returns const char * */
216#undef HAVE_CONST_GAI_STRERROR_PROTO
217
218/* Define if your system uses ancillary data style file descriptor passing */
219#undef HAVE_CONTROL_IN_MSGHDR
220
221/* Define to 1 if you have the <crypto/sha2.h> header file. */
222#undef HAVE_CRYPTO_SHA2_H
223
224/* Define to 1 if you have the <crypt.h> header file. */
225#undef HAVE_CRYPT_H
226
227/* Define if you are on Cygwin */
228#undef HAVE_CYGWIN
229
230/* Define if your libraries define daemon() */
231#undef HAVE_DAEMON
232
233/* Define to 1 if you have the declaration of `authenticate', and to 0 if you
234 don't. */
235#undef HAVE_DECL_AUTHENTICATE
236
237/* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you
238 don't. */
239#undef HAVE_DECL_GLOB_NOMATCH
240
241/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
242 don't. */
243#undef HAVE_DECL_H_ERRNO
244
245/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
246 don't. */
247#undef HAVE_DECL_LOGINFAILED
248
249/* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if
250 you don't. */
251#undef HAVE_DECL_LOGINRESTRICTIONS
252
253/* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you
254 don't. */
255#undef HAVE_DECL_LOGINSUCCESS
256
257/* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you
258 don't. */
259#undef HAVE_DECL_MAXSYMLINKS
260
261/* Define to 1 if you have the declaration of `offsetof', and to 0 if you
262 don't. */
263#undef HAVE_DECL_OFFSETOF
264
265/* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you
266 don't. */
267#undef HAVE_DECL_O_NONBLOCK
268
269/* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you
270 don't. */
271#undef HAVE_DECL_PASSWDEXPIRED
272
273/* Define to 1 if you have the declaration of `setauthdb', and to 0 if you
274 don't. */
275#undef HAVE_DECL_SETAUTHDB
276
277/* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you
278 don't. */
279#undef HAVE_DECL_SHUT_RD
280
281/* Define to 1 if you have the declaration of `writev', and to 0 if you don't.
282 */
283#undef HAVE_DECL_WRITEV
284
285/* Define to 1 if you have the declaration of `_getlong', and to 0 if you
286 don't. */
287#undef HAVE_DECL__GETLONG
288
289/* Define to 1 if you have the declaration of `_getshort', and to 0 if you
290 don't. */
291#undef HAVE_DECL__GETSHORT
292
293/* Define if you have /dev/ptmx */
294#undef HAVE_DEV_PTMX
295
296/* Define if you have /dev/ptc */
297#undef HAVE_DEV_PTS_AND_PTC
298
299/* Define to 1 if you have the <dirent.h> header file. */
300#undef HAVE_DIRENT_H
301
302/* Define to 1 if you have the `dirfd' function. */
303#undef HAVE_DIRFD
304
305/* Define to 1 if you have the `dirname' function. */
306#undef HAVE_DIRNAME
307
308/* Define to 1 if you have the <endian.h> header file. */
309#undef HAVE_ENDIAN_H
310
311/* Define to 1 if you have the `endutent' function. */
312#undef HAVE_ENDUTENT
313
314/* Define to 1 if you have the `endutxent' function. */
315#undef HAVE_ENDUTXENT
316
317/* Define if your system has /etc/default/login */
318#undef HAVE_ETC_DEFAULT_LOGIN
319
320/* Define to 1 if you have the `EVP_sha256' function. */
321#undef HAVE_EVP_SHA256
322
323/* Define if you have ut_exit in utmp.h */
324#undef HAVE_EXIT_IN_UTMP
325
326/* Define to 1 if you have the `fchmod' function. */
327#undef HAVE_FCHMOD
328
329/* Define to 1 if you have the `fchown' function. */
330#undef HAVE_FCHOWN
331
332/* Use F_CLOSEM fcntl for closefrom */
333#undef HAVE_FCNTL_CLOSEM
334
335/* Define to 1 if you have the <fcntl.h> header file. */
336#undef HAVE_FCNTL_H
337
338/* Define to 1 if you have the <features.h> header file. */
339#undef HAVE_FEATURES_H
340
341/* Define to 1 if you have the <floatingpoint.h> header file. */
342#undef HAVE_FLOATINGPOINT_H
343
344/* Define to 1 if you have the `fmt_scaled' function. */
345#undef HAVE_FMT_SCALED
346
347/* Define to 1 if you have the `freeaddrinfo' function. */
348#undef HAVE_FREEADDRINFO
349
350/* Define to 1 if the system has the type `fsblkcnt_t'. */
351#undef HAVE_FSBLKCNT_T
352
353/* Define to 1 if the system has the type `fsfilcnt_t'. */
354#undef HAVE_FSFILCNT_T
355
356/* Define to 1 if you have the `fstatvfs' function. */
357#undef HAVE_FSTATVFS
358
359/* Define to 1 if you have the `futimes' function. */
360#undef HAVE_FUTIMES
361
362/* Define to 1 if you have the `gai_strerror' function. */
363#undef HAVE_GAI_STRERROR
364
365/* Define to 1 if you have the `getaddrinfo' function. */
366#undef HAVE_GETADDRINFO
367
368/* Define to 1 if you have the `getaudit' function. */
369#undef HAVE_GETAUDIT
370
371/* Define to 1 if you have the `getaudit_addr' function. */
372#undef HAVE_GETAUDIT_ADDR
373
374/* Define to 1 if you have the `getcwd' function. */
375#undef HAVE_GETCWD
376
377/* Define to 1 if you have the `getgrouplist' function. */
378#undef HAVE_GETGROUPLIST
379
380/* Define to 1 if you have the `getgrset' function. */
381#undef HAVE_GETGRSET
382
383/* Define to 1 if you have the `getluid' function. */
384#undef HAVE_GETLUID
385
386/* Define to 1 if you have the `getnameinfo' function. */
387#undef HAVE_GETNAMEINFO
388
389/* Define to 1 if you have the `getopt' function. */
390#undef HAVE_GETOPT
391
392/* Define to 1 if you have the <getopt.h> header file. */
393#undef HAVE_GETOPT_H
394
395/* Define if your getopt(3) defines and uses optreset */
396#undef HAVE_GETOPT_OPTRESET
397
398/* Define if your libraries define getpagesize() */
399#undef HAVE_GETPAGESIZE
400
401/* Define to 1 if you have the `getpeereid' function. */
402#undef HAVE_GETPEEREID
403
404/* Define to 1 if you have the `getpeerucred' function. */
405#undef HAVE_GETPEERUCRED
406
407/* Define to 1 if you have the `getpwanam' function. */
408#undef HAVE_GETPWANAM
409
410/* Define to 1 if you have the `getrlimit' function. */
411#undef HAVE_GETRLIMIT
412
413/* Define if getrrsetbyname() exists */
414#undef HAVE_GETRRSETBYNAME
415
416/* Define to 1 if you have the `getrusage' function. */
417#undef HAVE_GETRUSAGE
418
419/* Define to 1 if you have the `getseuserbyname' function. */
420#undef HAVE_GETSEUSERBYNAME
421
422/* Define to 1 if you have the `gettimeofday' function. */
423#undef HAVE_GETTIMEOFDAY
424
425/* Define to 1 if you have the `getttyent' function. */
426#undef HAVE_GETTTYENT
427
428/* Define to 1 if you have the `getutent' function. */
429#undef HAVE_GETUTENT
430
431/* Define to 1 if you have the `getutid' function. */
432#undef HAVE_GETUTID
433
434/* Define to 1 if you have the `getutline' function. */
435#undef HAVE_GETUTLINE
436
437/* Define to 1 if you have the `getutxent' function. */
438#undef HAVE_GETUTXENT
439
440/* Define to 1 if you have the `getutxid' function. */
441#undef HAVE_GETUTXID
442
443/* Define to 1 if you have the `getutxline' function. */
444#undef HAVE_GETUTXLINE
445
446/* Define to 1 if you have the `get_default_context_with_level' function. */
447#undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
448
449/* Define to 1 if you have the `glob' function. */
450#undef HAVE_GLOB
451
452/* Define to 1 if you have the <glob.h> header file. */
453#undef HAVE_GLOB_H
454
455/* Define to 1 if you have the <gssapi_generic.h> header file. */
456#undef HAVE_GSSAPI_GENERIC_H
457
458/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */
459#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
460
461/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
462#undef HAVE_GSSAPI_GSSAPI_H
463
464/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
465#undef HAVE_GSSAPI_GSSAPI_KRB5_H
466
467/* Define to 1 if you have the <gssapi.h> header file. */
468#undef HAVE_GSSAPI_H
469
470/* Define to 1 if you have the <gssapi_krb5.h> header file. */
471#undef HAVE_GSSAPI_KRB5_H
472
473/* Define if HEADER.ad exists in arpa/nameser.h */
474#undef HAVE_HEADER_AD
475
476/* Define if you have ut_host in utmp.h */
477#undef HAVE_HOST_IN_UTMP
478
479/* Define if you have ut_host in utmpx.h */
480#undef HAVE_HOST_IN_UTMPX
481
482/* Define to 1 if you have the <iaf.h> header file. */
483#undef HAVE_IAF_H
484
485/* Define to 1 if you have the <ia.h> header file. */
486#undef HAVE_IA_H
487
488/* Define if you have ut_id in utmp.h */
489#undef HAVE_ID_IN_UTMP
490
491/* Define if you have ut_id in utmpx.h */
492#undef HAVE_ID_IN_UTMPX
493
494/* Define to 1 if you have the `inet_aton' function. */
495#undef HAVE_INET_ATON
496
497/* Define to 1 if you have the `inet_ntoa' function. */
498#undef HAVE_INET_NTOA
499
500/* Define to 1 if you have the `inet_ntop' function. */
501#undef HAVE_INET_NTOP
502
503/* Define to 1 if you have the `innetgr' function. */
504#undef HAVE_INNETGR
505
506/* define if you have int64_t data type */
507#undef HAVE_INT64_T
508
509/* Define to 1 if you have the <inttypes.h> header file. */
510#undef HAVE_INTTYPES_H
511
512/* define if you have intxx_t data type */
513#undef HAVE_INTXX_T
514
515/* Define to 1 if the system has the type `in_addr_t'. */
516#undef HAVE_IN_ADDR_T
517
518/* Define to 1 if you have the <lastlog.h> header file. */
519#undef HAVE_LASTLOG_H
520
521/* Define to 1 if you have the `bsm' library (-lbsm). */
522#undef HAVE_LIBBSM
523
524/* Define to 1 if you have the `crypt' library (-lcrypt). */
525#undef HAVE_LIBCRYPT
526
527/* Define to 1 if you have the `dl' library (-ldl). */
528#undef HAVE_LIBDL
529
530/* Define to 1 if you have the <libgen.h> header file. */
531#undef HAVE_LIBGEN_H
532
533/* Define if system has libiaf that supports set_id */
534#undef HAVE_LIBIAF
535
536/* Define to 1 if you have the `nsl' library (-lnsl). */
537#undef HAVE_LIBNSL
538
539/* Define to 1 if you have the `pam' library (-lpam). */
540#undef HAVE_LIBPAM
541
542/* Define to 1 if you have the `sectok' library (-lsectok). */
543#undef HAVE_LIBSECTOK
544
545/* Define to 1 if you have the `socket' library (-lsocket). */
546#undef HAVE_LIBSOCKET
547
548/* Define to 1 if you have the <libutil.h> header file. */
549#undef HAVE_LIBUTIL_H
550
551/* Define to 1 if you have the `xnet' library (-lxnet). */
552#undef HAVE_LIBXNET
553
554/* Define to 1 if you have the `z' library (-lz). */
555#undef HAVE_LIBZ
556
557/* Define to 1 if you have the <limits.h> header file. */
558#undef HAVE_LIMITS_H
559
560/* Define to 1 if you have the <linux/if_tun.h> header file. */
561#undef HAVE_LINUX_IF_TUN_H
562
563/* Define if your libraries define login() */
564#undef HAVE_LOGIN
565
566/* Define to 1 if you have the <login_cap.h> header file. */
567#undef HAVE_LOGIN_CAP_H
568
569/* Define to 1 if you have the `login_getcapbool' function. */
570#undef HAVE_LOGIN_GETCAPBOOL
571
572/* Define to 1 if you have the <login.h> header file. */
573#undef HAVE_LOGIN_H
574
575/* Define to 1 if you have the `logout' function. */
576#undef HAVE_LOGOUT
577
578/* Define to 1 if you have the `logwtmp' function. */
579#undef HAVE_LOGWTMP
580
581/* Define to 1 if the system has the type `long double'. */
582#undef HAVE_LONG_DOUBLE
583
584/* Define to 1 if the system has the type `long long'. */
585#undef HAVE_LONG_LONG
586
587/* Define to 1 if you have the <maillock.h> header file. */
588#undef HAVE_MAILLOCK_H
589
590/* Define to 1 if you have the `md5_crypt' function. */
591#undef HAVE_MD5_CRYPT
592
593/* Define if you want to allow MD5 passwords */
594#undef HAVE_MD5_PASSWORDS
595
596/* Define to 1 if you have the `memmove' function. */
597#undef HAVE_MEMMOVE
598
599/* Define to 1 if you have the <memory.h> header file. */
600#undef HAVE_MEMORY_H
601
602/* Define to 1 if you have the `mkdtemp' function. */
603#undef HAVE_MKDTEMP
604
605/* Define to 1 if you have the `mmap' function. */
606#undef HAVE_MMAP
607
608/* define if you have mode_t data type */
609#undef HAVE_MODE_T
610
611/* Some systems put nanosleep outside of libc */
612#undef HAVE_NANOSLEEP
613
614/* Define to 1 if you have the <ndir.h> header file. */
615#undef HAVE_NDIR_H
616
617/* Define to 1 if you have the <netdb.h> header file. */
618#undef HAVE_NETDB_H
619
620/* Define to 1 if you have the <netgroup.h> header file. */
621#undef HAVE_NETGROUP_H
622
623/* Define to 1 if you have the <net/if_tun.h> header file. */
624#undef HAVE_NET_IF_TUN_H
625
626/* Define if you are on NeXT */
627#undef HAVE_NEXT
628
629/* Define to 1 if you have the `ngetaddrinfo' function. */
630#undef HAVE_NGETADDRINFO
631
632/* Define to 1 if you have the `nsleep' function. */
633#undef HAVE_NSLEEP
634
635/* Define to 1 if you have the `ogetaddrinfo' function. */
636#undef HAVE_OGETADDRINFO
637
638/* Define if you have an old version of PAM which takes only one argument to
639 pam_strerror */
640#undef HAVE_OLD_PAM
641
642/* Define to 1 if you have the `openlog_r' function. */
643#undef HAVE_OPENLOG_R
644
645/* Define to 1 if you have the `openpty' function. */
646#undef HAVE_OPENPTY
647
648/* Define if your ssl headers are included with #include <openssl/header.h> */
649#undef HAVE_OPENSSL
650
651/* Define if you have Digital Unix Security Integration Architecture */
652#undef HAVE_OSF_SIA
653
654/* Define to 1 if you have the `pam_getenvlist' function. */
655#undef HAVE_PAM_GETENVLIST
656
657/* Define to 1 if you have the <pam/pam_appl.h> header file. */
658#undef HAVE_PAM_PAM_APPL_H
659
660/* Define to 1 if you have the `pam_putenv' function. */
661#undef HAVE_PAM_PUTENV
662
663/* Define to 1 if you have the <paths.h> header file. */
664#undef HAVE_PATHS_H
665
666/* Define if you have ut_pid in utmp.h */
667#undef HAVE_PID_IN_UTMP
668
669/* define if you have pid_t data type */
670#undef HAVE_PID_T
671
672/* Define to 1 if you have the `poll' function. */
673#undef HAVE_POLL
674
675/* Define to 1 if you have the <poll.h> header file. */
676#undef HAVE_POLL_H
677
678/* Define to 1 if you have the `prctl' function. */
679#undef HAVE_PRCTL
680
681/* Define if you have /proc/$pid/fd */
682#undef HAVE_PROC_PID
683
684/* Define to 1 if you have the `pstat' function. */
685#undef HAVE_PSTAT
686
687/* Define to 1 if you have the <pty.h> header file. */
688#undef HAVE_PTY_H
689
690/* Define to 1 if you have the `pututline' function. */
691#undef HAVE_PUTUTLINE
692
693/* Define to 1 if you have the `pututxline' function. */
694#undef HAVE_PUTUTXLINE
695
696/* Define if your password has a pw_change field */
697#undef HAVE_PW_CHANGE_IN_PASSWD
698
699/* Define if your password has a pw_class field */
700#undef HAVE_PW_CLASS_IN_PASSWD
701
702/* Define if your password has a pw_expire field */
703#undef HAVE_PW_EXPIRE_IN_PASSWD
704
705/* Define to 1 if you have the `readpassphrase' function. */
706#undef HAVE_READPASSPHRASE
707
708/* Define to 1 if you have the <readpassphrase.h> header file. */
709#undef HAVE_READPASSPHRASE_H
710
711/* Define to 1 if you have the `realpath' function. */
712#undef HAVE_REALPATH
713
714/* Define to 1 if you have the `recvmsg' function. */
715#undef HAVE_RECVMSG
716
717/* Define to 1 if you have the <rpc/types.h> header file. */
718#undef HAVE_RPC_TYPES_H
719
720/* Define to 1 if you have the `rresvport_af' function. */
721#undef HAVE_RRESVPORT_AF
722
723/* define if you have sa_family_t data type */
724#undef HAVE_SA_FAMILY_T
725
726/* Define to 1 if you have the <sectok.h> header file. */
727#undef HAVE_SECTOK_H
728
729/* Define if you have SecureWare-based protected password database */
730#undef HAVE_SECUREWARE
731
732/* Define to 1 if you have the <security/pam_appl.h> header file. */
733#undef HAVE_SECURITY_PAM_APPL_H
734
735/* Define to 1 if you have the `sendmsg' function. */
736#undef HAVE_SENDMSG
737
738/* Define to 1 if you have the `setauthdb' function. */
739#undef HAVE_SETAUTHDB
740
741/* Define to 1 if you have the `setdtablesize' function. */
742#undef HAVE_SETDTABLESIZE
743
744/* Define to 1 if you have the `setegid' function. */
745#undef HAVE_SETEGID
746
747/* Define to 1 if you have the `setenv' function. */
748#undef HAVE_SETENV
749
750/* Define to 1 if you have the `seteuid' function. */
751#undef HAVE_SETEUID
752
753/* Define to 1 if you have the `setgroups' function. */
754#undef HAVE_SETGROUPS
755
756/* Define to 1 if you have the `setlogin' function. */
757#undef HAVE_SETLOGIN
758
759/* Define to 1 if you have the `setluid' function. */
760#undef HAVE_SETLUID
761
762/* Define to 1 if you have the `setpcred' function. */
763#undef HAVE_SETPCRED
764
765/* Define to 1 if you have the `setproctitle' function. */
766#undef HAVE_SETPROCTITLE
767
768/* Define to 1 if you have the `setregid' function. */
769#undef HAVE_SETREGID
770
771/* Define to 1 if you have the `setresgid' function. */
772#undef HAVE_SETRESGID
773
774/* Define to 1 if you have the `setresuid' function. */
775#undef HAVE_SETRESUID
776
777/* Define to 1 if you have the `setreuid' function. */
778#undef HAVE_SETREUID
779
780/* Define to 1 if you have the `setrlimit' function. */
781#undef HAVE_SETRLIMIT
782
783/* Define to 1 if you have the `setsid' function. */
784#undef HAVE_SETSID
785
786/* Define to 1 if you have the `setutent' function. */
787#undef HAVE_SETUTENT
788
789/* Define to 1 if you have the `setutxent' function. */
790#undef HAVE_SETUTXENT
791
792/* Define to 1 if you have the `setvbuf' function. */
793#undef HAVE_SETVBUF
794
795/* Define to 1 if you have the `set_id' function. */
796#undef HAVE_SET_ID
797
798/* Define to 1 if you have the `SHA256_Update' function. */
799#undef HAVE_SHA256_UPDATE
800
801/* Define to 1 if you have the <sha2.h> header file. */
802#undef HAVE_SHA2_H
803
804/* Define to 1 if you have the <shadow.h> header file. */
805#undef HAVE_SHADOW_H
806
807/* Define to 1 if you have the `sigaction' function. */
808#undef HAVE_SIGACTION
809
810/* Define to 1 if you have the `sigvec' function. */
811#undef HAVE_SIGVEC
812
813/* Define to 1 if the system has the type `sig_atomic_t'. */
814#undef HAVE_SIG_ATOMIC_T
815
816/* define if you have size_t data type */
817#undef HAVE_SIZE_T
818
819/* Define to 1 if you have the `snprintf' function. */
820#undef HAVE_SNPRINTF
821
822/* Define to 1 if you have the `socketpair' function. */
823#undef HAVE_SOCKETPAIR
824
825/* Have PEERCRED socket option */
826#undef HAVE_SO_PEERCRED
827
828/* define if you have ssize_t data type */
829#undef HAVE_SSIZE_T
830
831/* Fields in struct sockaddr_storage */
832#undef HAVE_SS_FAMILY_IN_SS
833
834/* Define to 1 if you have the `statfs' function. */
835#undef HAVE_STATFS
836
837/* Define to 1 if you have the `statvfs' function. */
838#undef HAVE_STATVFS
839
840/* Define to 1 if you have the <stddef.h> header file. */
841#undef HAVE_STDDEF_H
842
843/* Define to 1 if you have the <stdint.h> header file. */
844#undef HAVE_STDINT_H
845
846/* Define to 1 if you have the <stdlib.h> header file. */
847#undef HAVE_STDLIB_H
848
849/* Define to 1 if you have the `strdup' function. */
850#undef HAVE_STRDUP
851
852/* Define to 1 if you have the `strerror' function. */
853#undef HAVE_STRERROR
854
855/* Define to 1 if you have the `strftime' function. */
856#undef HAVE_STRFTIME
857
858/* Silly mkstemp() */
859#undef HAVE_STRICT_MKSTEMP
860
861/* Define to 1 if you have the <strings.h> header file. */
862#undef HAVE_STRINGS_H
863
864/* Define to 1 if you have the <string.h> header file. */
865#undef HAVE_STRING_H
866
867/* Define to 1 if you have the `strlcat' function. */
868#undef HAVE_STRLCAT
869
870/* Define to 1 if you have the `strlcpy' function. */
871#undef HAVE_STRLCPY
872
873/* Define to 1 if you have the `strmode' function. */
874#undef HAVE_STRMODE
875
876/* Define to 1 if you have the `strnvis' function. */
877#undef HAVE_STRNVIS
878
879/* Define to 1 if you have the `strsep' function. */
880#undef HAVE_STRSEP
881
882/* Define to 1 if you have the `strtoll' function. */
883#undef HAVE_STRTOLL
884
885/* Define to 1 if you have the `strtonum' function. */
886#undef HAVE_STRTONUM
887
888/* Define to 1 if you have the `strtoul' function. */
889#undef HAVE_STRTOUL
890
891/* define if you have struct addrinfo data type */
892#undef HAVE_STRUCT_ADDRINFO
893
894/* define if you have struct in6_addr data type */
895#undef HAVE_STRUCT_IN6_ADDR
896
897/* define if you have struct sockaddr_in6 data type */
898#undef HAVE_STRUCT_SOCKADDR_IN6
899
900/* define if you have struct sockaddr_storage data type */
901#undef HAVE_STRUCT_SOCKADDR_STORAGE
902
903/* Define to 1 if `st_blksize' is member of `struct stat'. */
904#undef HAVE_STRUCT_STAT_ST_BLKSIZE
905
906/* Define to 1 if the system has the type `struct timespec'. */
907#undef HAVE_STRUCT_TIMESPEC
908
909/* define if you have struct timeval */
910#undef HAVE_STRUCT_TIMEVAL
911
912/* Define to 1 if you have the `swap32' function. */
913#undef HAVE_SWAP32
914
915/* Define to 1 if you have the `sysconf' function. */
916#undef HAVE_SYSCONF
917
918/* Define if you have syslen in utmpx.h */
919#undef HAVE_SYSLEN_IN_UTMPX
920
921/* Define to 1 if you have the <sys/audit.h> header file. */
922#undef HAVE_SYS_AUDIT_H
923
924/* Define to 1 if you have the <sys/bitypes.h> header file. */
925#undef HAVE_SYS_BITYPES_H
926
927/* Define to 1 if you have the <sys/bsdtty.h> header file. */
928#undef HAVE_SYS_BSDTTY_H
929
930/* Define to 1 if you have the <sys/cdefs.h> header file. */
931#undef HAVE_SYS_CDEFS_H
932
933/* Define to 1 if you have the <sys/dir.h> header file. */
934#undef HAVE_SYS_DIR_H
935
936/* Define if your system defines sys_errlist[] */
937#undef HAVE_SYS_ERRLIST
938
939/* Define to 1 if you have the <sys/mman.h> header file. */
940#undef HAVE_SYS_MMAN_H
941
942/* Define to 1 if you have the <sys/mount.h> header file. */
943#undef HAVE_SYS_MOUNT_H
944
945/* Define to 1 if you have the <sys/ndir.h> header file. */
946#undef HAVE_SYS_NDIR_H
947
948/* Define if your system defines sys_nerr */
949#undef HAVE_SYS_NERR
950
951/* Define to 1 if you have the <sys/poll.h> header file. */
952#undef HAVE_SYS_POLL_H
953
954/* Define to 1 if you have the <sys/prctl.h> header file. */
955#undef HAVE_SYS_PRCTL_H
956
957/* Define to 1 if you have the <sys/pstat.h> header file. */
958#undef HAVE_SYS_PSTAT_H
959
960/* Define to 1 if you have the <sys/ptms.h> header file. */
961#undef HAVE_SYS_PTMS_H
962
963/* Define to 1 if you have the <sys/select.h> header file. */
964#undef HAVE_SYS_SELECT_H
965
966/* Define to 1 if you have the <sys/statvfs.h> header file. */
967#undef HAVE_SYS_STATVFS_H
968
969/* Define to 1 if you have the <sys/stat.h> header file. */
970#undef HAVE_SYS_STAT_H
971
972/* Define to 1 if you have the <sys/stream.h> header file. */
973#undef HAVE_SYS_STREAM_H
974
975/* Define to 1 if you have the <sys/stropts.h> header file. */
976#undef HAVE_SYS_STROPTS_H
977
978/* Define to 1 if you have the <sys/strtio.h> header file. */
979#undef HAVE_SYS_STRTIO_H
980
981/* Force use of sys/syslog.h on Ultrix */
982#undef HAVE_SYS_SYSLOG_H
983
984/* Define to 1 if you have the <sys/sysmacros.h> header file. */
985#undef HAVE_SYS_SYSMACROS_H
986
987/* Define to 1 if you have the <sys/timers.h> header file. */
988#undef HAVE_SYS_TIMERS_H
989
990/* Define to 1 if you have the <sys/time.h> header file. */
991#undef HAVE_SYS_TIME_H
992
993/* Define to 1 if you have the <sys/types.h> header file. */
994#undef HAVE_SYS_TYPES_H
995
996/* Define to 1 if you have the <sys/un.h> header file. */
997#undef HAVE_SYS_UN_H
998
999/* Define to 1 if you have the `tcgetpgrp' function. */
1000#undef HAVE_TCGETPGRP
1001
1002/* Define to 1 if you have the `tcsendbreak' function. */
1003#undef HAVE_TCSENDBREAK
1004
1005/* Define to 1 if you have the `time' function. */
1006#undef HAVE_TIME
1007
1008/* Define to 1 if you have the <time.h> header file. */
1009#undef HAVE_TIME_H
1010
1011/* Define if you have ut_time in utmp.h */
1012#undef HAVE_TIME_IN_UTMP
1013
1014/* Define if you have ut_time in utmpx.h */
1015#undef HAVE_TIME_IN_UTMPX
1016
1017/* Define to 1 if you have the <tmpdir.h> header file. */
1018#undef HAVE_TMPDIR_H
1019
1020/* Define to 1 if you have the `truncate' function. */
1021#undef HAVE_TRUNCATE
1022
1023/* Define to 1 if you have the <ttyent.h> header file. */
1024#undef HAVE_TTYENT_H
1025
1026/* Define if you have ut_tv in utmp.h */
1027#undef HAVE_TV_IN_UTMP
1028
1029/* Define if you have ut_tv in utmpx.h */
1030#undef HAVE_TV_IN_UTMPX
1031
1032/* Define if you have ut_type in utmp.h */
1033#undef HAVE_TYPE_IN_UTMP
1034
1035/* Define if you have ut_type in utmpx.h */
1036#undef HAVE_TYPE_IN_UTMPX
1037
1038/* Define to 1 if you have the <ucred.h> header file. */
1039#undef HAVE_UCRED_H
1040
1041/* define if you have uintxx_t data type */
1042#undef HAVE_UINTXX_T
1043
1044/* Define to 1 if you have the <unistd.h> header file. */
1045#undef HAVE_UNISTD_H
1046
1047/* Define to 1 if you have the `unsetenv' function. */
1048#undef HAVE_UNSETENV
1049
1050/* Define to 1 if the system has the type `unsigned long long'. */
1051#undef HAVE_UNSIGNED_LONG_LONG
1052
1053/* Define to 1 if you have the `updwtmp' function. */
1054#undef HAVE_UPDWTMP
1055
1056/* Define to 1 if you have the `updwtmpx' function. */
1057#undef HAVE_UPDWTMPX
1058
1059/* Define to 1 if you have the <usersec.h> header file. */
1060#undef HAVE_USERSEC_H
1061
1062/* Define to 1 if you have the <util.h> header file. */
1063#undef HAVE_UTIL_H
1064
1065/* Define to 1 if you have the `utimes' function. */
1066#undef HAVE_UTIMES
1067
1068/* Define to 1 if you have the <utime.h> header file. */
1069#undef HAVE_UTIME_H
1070
1071/* Define to 1 if you have the `utmpname' function. */
1072#undef HAVE_UTMPNAME
1073
1074/* Define to 1 if you have the `utmpxname' function. */
1075#undef HAVE_UTMPXNAME
1076
1077/* Define to 1 if you have the <utmpx.h> header file. */
1078#undef HAVE_UTMPX_H
1079
1080/* Define to 1 if you have the <utmp.h> header file. */
1081#undef HAVE_UTMP_H
1082
1083/* define if you have u_char data type */
1084#undef HAVE_U_CHAR
1085
1086/* define if you have u_int data type */
1087#undef HAVE_U_INT
1088
1089/* define if you have u_int64_t data type */
1090#undef HAVE_U_INT64_T
1091
1092/* define if you have u_intxx_t data type */
1093#undef HAVE_U_INTXX_T
1094
1095/* Define to 1 if you have the `vasprintf' function. */
1096#undef HAVE_VASPRINTF
1097
1098/* Define if va_copy exists */
1099#undef HAVE_VA_COPY
1100
1101/* Define to 1 if you have the `vhangup' function. */
1102#undef HAVE_VHANGUP
1103
1104/* Define to 1 if you have the <vis.h> header file. */
1105#undef HAVE_VIS_H
1106
1107/* Define to 1 if you have the `vsnprintf' function. */
1108#undef HAVE_VSNPRINTF
1109
1110/* Define to 1 if you have the `waitpid' function. */
1111#undef HAVE_WAITPID
1112
1113/* Define to 1 if you have the `_getlong' function. */
1114#undef HAVE__GETLONG
1115
1116/* Define to 1 if you have the `_getpty' function. */
1117#undef HAVE__GETPTY
1118
1119/* Define to 1 if you have the `_getshort' function. */
1120#undef HAVE__GETSHORT
1121
1122/* Define if you have struct __res_state _res as an extern */
1123#undef HAVE__RES_EXTERN
1124
1125/* Define to 1 if you have the `__b64_ntop' function. */
1126#undef HAVE___B64_NTOP
1127
1128/* Define to 1 if you have the `__b64_pton' function. */
1129#undef HAVE___B64_PTON
1130
1131/* Define if compiler implements __FUNCTION__ */
1132#undef HAVE___FUNCTION__
1133
1134/* Define if libc defines __progname */
1135#undef HAVE___PROGNAME
1136
1137/* Fields in struct sockaddr_storage */
1138#undef HAVE___SS_FAMILY_IN_SS
1139
1140/* Define if __va_copy exists */
1141#undef HAVE___VA_COPY
1142
1143/* Define if compiler implements __func__ */
1144#undef HAVE___func__
1145
1146/* Define this if you are using the Heimdal version of Kerberos V5 */
1147#undef HEIMDAL
1148
1149/* Define if you need to use IP address instead of hostname in $DISPLAY */
1150#undef IPADDR_IN_DISPLAY
1151
1152/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1153#undef IPV4_IN_IPV6
1154
1155/* Define if your system choked on IP TOS setting */
1156#undef IP_TOS_IS_BROKEN
1157
1158/* Define if you want Kerberos 5 support */
1159#undef KRB5
1160
1161/* Define if you want TCP Wrappers support */
1162#undef LIBWRAP
1163
1164/* Define to whatever link() returns for "not supported" if it doesn't return
1165 EOPNOTSUPP. */
1166#undef LINK_OPNOTSUPP_ERRNO
1167
1168/* max value of long long calculated by configure */
1169#undef LLONG_MAX
1170
1171/* min value of long long calculated by configure */
1172#undef LLONG_MIN
1173
1174/* Account locked with pw(1) */
1175#undef LOCKED_PASSWD_PREFIX
1176
1177/* String used in /etc/passwd to denote locked account */
1178#undef LOCKED_PASSWD_STRING
1179
1180/* String used in /etc/passwd to denote locked account */
1181#undef LOCKED_PASSWD_SUBSTR
1182
1183/* Some versions of /bin/login need the TERM supplied on the commandline */
1184#undef LOGIN_NEEDS_TERM
1185
1186/* Some systems need a utmpx entry for /bin/login to work */
1187#undef LOGIN_NEEDS_UTMPX
1188
1189/* Define if your login program cannot handle end of options ("--") */
1190#undef LOGIN_NO_ENDOPT
1191
1192/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1193 from environment and PATH */
1194#undef LOGIN_PROGRAM_FALLBACK
1195
1196/* Set this to your mail directory if you don't have maillock.h */
1197#undef MAIL_DIRECTORY
1198
1199/* Define on *nto-qnx systems */
1200#undef MISSING_FD_MASK
1201
1202/* Define on *nto-qnx systems */
1203#undef MISSING_HOWMANY
1204
1205/* Define on *nto-qnx systems */
1206#undef MISSING_NFDBITS
1207
1208/* Need setpgrp to acquire controlling tty */
1209#undef NEED_SETPGRP
1210
1211/* Define if the concept of ports only accessible to superusers isn't known */
1212#undef NO_IPPORT_RESERVED_CONCEPT
1213
1214/* Define if you don't want to use lastlog in session.c */
1215#undef NO_SSH_LASTLOG
1216
1217/* Define if X11 doesn't support AF_UNIX sockets on that system */
1218#undef NO_X11_UNIX_SOCKETS
1219
1220/* libcrypto is missing AES 192 and 256 bit functions */
1221#undef OPENSSL_LOBOTOMISED_AES
1222
1223/* Define if you want OpenSSL's internally seeded PRNG only */
1224#undef OPENSSL_PRNG_ONLY
1225
1226/* Define to the address where bug reports for this package should be sent. */
1227#undef PACKAGE_BUGREPORT
1228
1229/* Define to the full name of this package. */
1230#undef PACKAGE_NAME
1231
1232/* Define to the full name and version of this package. */
1233#undef PACKAGE_STRING
1234
1235/* Define to the one symbol short name of this package. */
1236#undef PACKAGE_TARNAME
1237
1238/* Define to the version of this package. */
1239#undef PACKAGE_VERSION
1240
1241/* Define if you are using Solaris-derived PAM which passes pam_messages to
1242 the conversation function with an extra level of indirection */
1243#undef PAM_SUN_CODEBASE
1244
1245/* Work around problematic Linux PAM modules handling of PAM_TTY */
1246#undef PAM_TTY_KLUDGE
1247
1248/* must supply username to passwd */
1249#undef PASSWD_NEEDS_USERNAME
1250
1251/* Port number of PRNGD/EGD random number socket */
1252#undef PRNGD_PORT
1253
1254/* Location of PRNGD/EGD random number socket */
1255#undef PRNGD_SOCKET
1256
1257/* read(1) can return 0 for a non-closed fd */
1258#undef PTY_ZEROREAD
1259
1260/* Define if your platform breaks doing a seteuid before a setuid */
1261#undef SETEUID_BREAKS_SETUID
1262
1263/* The size of `char', as computed by sizeof. */
1264#undef SIZEOF_CHAR
1265
1266/* The size of `int', as computed by sizeof. */
1267#undef SIZEOF_INT
1268
1269/* The size of `long int', as computed by sizeof. */
1270#undef SIZEOF_LONG_INT
1271
1272/* The size of `long long int', as computed by sizeof. */
1273#undef SIZEOF_LONG_LONG_INT
1274
1275/* The size of `short int', as computed by sizeof. */
1276#undef SIZEOF_SHORT_INT
1277
1278/* Define if you want S/Key support */
1279#undef SKEY
1280
1281/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1282#undef SKEYCHALLENGE_4ARG
1283
1284/* Define if you want smartcard support */
1285#undef SMARTCARD
1286
1287/* Define as const if snprintf() can declare const char *fmt */
1288#undef SNPRINTF_CONST
1289
1290/* Define to a Set Process Title type if your system is supported by
1291 bsd-setproctitle.c */
1292#undef SPT_TYPE
1293
1294/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1295#undef SSHD_ACQUIRES_CTTY
1296
1297/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1298#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1299
1300/* Use audit debugging module */
1301#undef SSH_AUDIT_EVENTS
1302
1303/* non-privileged user for privilege separation */
1304#undef SSH_PRIVSEP_USER
1305
1306/* Use tunnel device compatibility to OpenBSD */
1307#undef SSH_TUN_COMPAT_AF
1308
1309/* Open tunnel devices the FreeBSD way */
1310#undef SSH_TUN_FREEBSD
1311
1312/* Open tunnel devices the Linux tun/tap way */
1313#undef SSH_TUN_LINUX
1314
1315/* No layer 2 tunnel support */
1316#undef SSH_TUN_NO_L2
1317
1318/* Open tunnel devices the OpenBSD way */
1319#undef SSH_TUN_OPENBSD
1320
1321/* Prepend the address family to IP tunnel traffic */
1322#undef SSH_TUN_PREPEND_AF
1323
1324/* Define to 1 if you have the ANSI C header files. */
1325#undef STDC_HEADERS
1326
1327/* Define if you want a different $PATH for the superuser */
1328#undef SUPERUSER_PATH
1329
1330/* syslog_r function is safe to use in in a signal handler */
1331#undef SYSLOG_R_SAFE_IN_SIGHAND
1332
1333/* Support passwords > 8 chars */
1334#undef UNIXWARE_LONG_PASSWORDS
1335
1336/* Specify default $PATH */
1337#undef USER_PATH
1338
1339/* Define this if you want to use libkafs' AFS support */
1340#undef USE_AFS
1341
1342/* Use BSM audit module */
1343#undef USE_BSM_AUDIT
1344
1345/* Use btmp to log bad logins */
1346#undef USE_BTMP
1347
1348/* Use libedit for sftp */
1349#undef USE_LIBEDIT
1350
1351/* Define if you want smartcard support using OpenSC */
1352#undef USE_OPENSC
1353
1354/* Enable OpenSSL engine support */
1355#undef USE_OPENSSL_ENGINE
1356
1357/* Define if you want to enable PAM support */
1358#undef USE_PAM
1359
1360/* Use PIPES instead of a socketpair() */
1361#undef USE_PIPES
1362
1363/* Define if you want smartcard support using sectok */
1364#undef USE_SECTOK
1365
1366/* Define if you have Solaris process contracts */
1367#undef USE_SOLARIS_PROCESS_CONTRACTS
1368
1369/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1370#undef WITH_ABBREV_NO_TTY
1371
1372/* Define if you want to enable AIX4's authenticate function */
1373#undef WITH_AIXAUTHENTICATE
1374
1375/* Define if you have/want arrays (cluster-wide session managment, not C
1376 arrays) */
1377#undef WITH_IRIX_ARRAY
1378
1379/* Define if you want IRIX audit trails */
1380#undef WITH_IRIX_AUDIT
1381
1382/* Define if you want IRIX kernel jobs */
1383#undef WITH_IRIX_JOBS
1384
1385/* Define if you want IRIX project management */
1386#undef WITH_IRIX_PROJECT
1387
1388/* Define if you want SELinux support. */
1389#undef WITH_SELINUX
1390
1391/* Define to 1 if your processor stores words with the most significant byte
1392 first (like Motorola and SPARC, unlike Intel and VAX). */
1393#undef WORDS_BIGENDIAN
1394
1395/* Define if xauth is found in your path */
1396#undef XAUTH_PATH
1397
1398/* Number of bits in a file offset, on hosts where this is settable. */
1399#undef _FILE_OFFSET_BITS
1400
1401/* Define for large files, on AIX-style hosts. */
1402#undef _LARGE_FILES
1403
1404/* log for bad login attempts */
1405#undef _PATH_BTMP
1406
1407/* Full path of your "passwd" program */
1408#undef _PATH_PASSWD_PROG
1409
1410/* Specify location of ssh.pid */
1411#undef _PATH_SSH_PIDDIR
1412
1413/* Define if we don't have struct __res_state in resolv.h */
1414#undef __res_state
1415
1416/* Define to `__inline__' or `__inline' if that's what the C compiler
1417 calls it, or to nothing if 'inline' is not supported under any name. */
1418#ifndef __cplusplus
1419#undef inline
1420#endif
1421
1422/* type to use in place of socklen_t if not defined */
1423#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..19cc20c84
--- /dev/null
+++ b/configure
@@ -0,0 +1,30197 @@
1#! /bin/sh
2# From configure.ac Revision: 1.409 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if (set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
230 /*)
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if (set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 7<&0 </dev/null 6>&1
556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
586#ifdef HAVE_SYS_TYPES_H
587# include <sys/types.h>
588#endif
589#ifdef HAVE_SYS_STAT_H
590# include <sys/stat.h>
591#endif
592#ifdef STDC_HEADERS
593# include <stdlib.h>
594# include <stddef.h>
595#else
596# ifdef HAVE_STDLIB_H
597# include <stdlib.h>
598# endif
599#endif
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602# include <memory.h>
603# endif
604# include <string.h>
605#endif
606#ifdef HAVE_STRINGS_H
607# include <strings.h>
608#endif
609#ifdef HAVE_INTTYPES_H
610# include <inttypes.h>
611#endif
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
616# include <unistd.h>
617#endif"
618
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680CAT
681KILL
682PERL
683SED
684ENT
685TEST_MINUS_S_SH
686SH
687TEST_SHELL
688PATH_GROUPADD_PROG
689PATH_USERADD_PROG
690MAKE_PACKAGE_SUPPORTED
691STARTUP_SCRIPT_SHELL
692LOGIN_PROGRAM_FALLBACK
693PATH_PASSWD_PROG
694LD
695SSHDLIBS
696LIBEDIT
697INSTALL_SSH_RAND_HELPER
698SSH_PRIVSEP_USER
699PROG_LS
700PROG_NETSTAT
701PROG_ARP
702PROG_IFCONFIG
703PROG_JSTAT
704PROG_PS
705PROG_SAR
706PROG_W
707PROG_WHO
708PROG_LAST
709PROG_LASTLOG
710PROG_DF
711PROG_VMSTAT
712PROG_UPTIME
713PROG_IPCS
714PROG_TAIL
715INSTALL_SSH_PRNG_CMDS
716OPENSC_CONFIG
717PRIVSEP_PATH
718xauth_path
719STRIP_OPT
720XAUTH_PATH
721NROFF
722MANTYPE
723mansubdir
724user_path
725piddir
726TEST_SSH_IPV6
727LIBOBJS
728LTLIBOBJS'
729ac_subst_files=''
730 ac_precious_vars='build_alias
731host_alias
732target_alias
733CC
734CFLAGS
735LDFLAGS
736LIBS
737CPPFLAGS
738CPP'
739
740
741# Initialize some variables set by options.
742ac_init_help=
743ac_init_version=false
744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
766# (The list follows the same order as the GNU Coding Standards.)
767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
775includedir='${prefix}/include'
776oldincludedir='/usr/include'
777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
786
787ac_prev=
788ac_dashdash=
789for ac_option
790do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116done
1117
1118if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122fi
1123
1124# Be sure to have absolute directory names.
1125for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129do
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137done
1138
1139# There might be people who depend on the old broken behavior: `$host'
1140# used to hold the argument of --host etc.
1141# FIXME: To remove some day.
1142build=$build_alias
1143host=$host_alias
1144target=$target_alias
1145
1146# FIXME: To remove some day.
1147if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155fi
1156
1157ac_tool_prefix=
1158test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160test "$silent" = yes && exec 6>/dev/null
1161
1162
1163ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164ac_ls_di=`ls -di .` &&
1165ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
1173# Find the source files, if location was not specified.
1174if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204else
1205 ac_srcdir_defaulted=no
1206fi
1207if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1211fi
1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217# When building in place, set srcdir=.
1218if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220fi
1221# Remove unnecessary trailing slashes from srcdir.
1222# Double slashes in file names in object file debugging info
1223# mess up M-x gdb in Emacs.
1224case $srcdir in
1225*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226esac
1227for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232done
1233
1234#
1235# Report the --help message.
1236#
1237if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1242
1243Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248Defaults for the options are specified in brackets.
1249
1250Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267By default, \`make install' will install all the files in
1268\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270for instance \`--prefix=\$HOME'.
1271
1272For better control, use the options below.
1273
1274Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294_ACEOF
1295
1296 cat <<\_ACEOF
1297
1298System types:
1299 --build=BUILD configure for building on BUILD [guessed]
1300 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1301_ACEOF
1302fi
1303
1304if test -n "$ac_init_help"; then
1305 case $ac_init_help in
1306 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1307 esac
1308 cat <<\_ACEOF
1309
1310Optional Features:
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --disable-largefile omit support for large files
1314 --disable-strip Disable calling strip(1) on install
1315 --disable-etc-default-login Disable using PATH from /etc/default/login no
1316 --disable-lastlog disable use of lastlog even if detected no
1317 --disable-utmp disable use of utmp even if detected no
1318 --disable-utmpx disable use of utmpx even if detected no
1319 --disable-wtmp disable use of wtmp even if detected no
1320 --disable-wtmpx disable use of wtmpx even if detected no
1321 --disable-libutil disable use of libutil (login() etc.) no
1322 --disable-pututline disable use of pututline() etc. (uwtmp) no
1323 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1324
1325Optional Packages:
1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328 --without-stackprotect Don't use compiler's stack protection
1329 --without-rpath Disable auto-added -R linker paths
1330 --with-cflags Specify additional flags to pass to compiler
1331 --with-cppflags Specify additional flags to pass to preprocessor
1332 --with-ldflags Specify additional flags to pass to linker
1333 --with-libs Specify additional libraries to link with
1334 --with-Werror Build main code with -Werror
1335 --with-solaris-contracts Enable Solaris process contracts (experimental)
1336 --with-osfsia Enable Digital Unix SIA
1337 --with-zlib=PATH Use zlib in PATH
1338 --without-zlib-version-check Disable zlib version check
1339 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1340 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1341 --with-libedit[=PATH] Enable libedit support for sftp
1342 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1343 --with-ssl-dir=PATH Specify path to OpenSSL installation
1344 --without-openssl-header-check Disable OpenSSL version consistency check
1345 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1346 --with-pam Enable PAM support
1347 --with-rand-helper Use subprocess to gather strong randomness
1348 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1349 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1350 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1351 --with-privsep-user=user Specify non-privileged user for privilege separation
1352 --with-sectok Enable smartcard support using libsectok
1353 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1354 --with-selinux Enable SELinux support
1355 --with-kerberos5=PATH Enable Kerberos 5 support
1356 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1357 --with-xauth=PATH Specify path to xauth program
1358 --with-mantype=man|cat|doc Set man page type
1359 --with-md5-passwords Enable use of MD5 passwords
1360 --without-shadow Disable shadow password support
1361 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1362 --with-default-path= Specify default \$PATH environment for server
1363 --with-superuser-path= Specify different path for super-user
1364 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1365 --with-bsd-auth Enable BSD auth support
1366 --with-pid-dir=PATH Specify location of ssh.pid file
1367 --with-lastlog=FILE|DIR specify lastlog location common locations
1368
1369Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1378
1379Use these variables to override the choices made by `configure' or to help
1380it to find libraries and programs with nonstandard names/locations.
1381
1382Report bugs to <openssh-unix-dev@mindrot.org>.
1383_ACEOF
1384ac_status=$?
1385fi
1386
1387if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1391 ac_builddir=.
1392
1393case "$ac_dir" in
1394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395*)
1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403esac
1404ac_abs_top_builddir=$ac_pwd
1405ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406# for backward compatibility:
1407ac_top_builddir=$ac_top_build_prefix
1408
1409case $srcdir in
1410 .) # We are building in place.
1411 ac_srcdir=.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422esac
1423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1433 else
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1437 done
1438fi
1439
1440test -n "$ac_init_help" && exit $ac_status
1441if $ac_init_version; then
1442 cat <<\_ACEOF
1443OpenSSH configure Portable
1444generated by GNU Autoconf 2.61
1445
1446Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448This configure script is free software; the Free Software Foundation
1449gives unlimited permission to copy, distribute and modify it.
1450_ACEOF
1451 exit
1452fi
1453cat >config.log <<_ACEOF
1454This file contains any messages produced by compilers while
1455running configure, to aid debugging if configure makes a mistake.
1456
1457It was created by OpenSSH $as_me Portable, which was
1458generated by GNU Autoconf 2.61. Invocation command line was
1459
1460 $ $0 $@
1461
1462_ACEOF
1463exec 5>>config.log
1464{
1465cat <<_ASUNAME
1466## --------- ##
1467## Platform. ##
1468## --------- ##
1469
1470hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475
1476/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1478
1479/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1486
1487_ASUNAME
1488
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1495done
1496IFS=$as_save_IFS
1497
1498} >&5
1499
1500cat >&5 <<_ACEOF
1501
1502
1503## ----------- ##
1504## Core tests. ##
1505## ----------- ##
1506
1507_ACEOF
1508
1509
1510# Keep a trace of the command line.
1511# Strip out --no-create and --no-recursion so they do not pile up.
1512# Strip out --silent because we don't want to record it for future runs.
1513# Also quote any args containing shell meta-characters.
1514# Make two passes to allow for proper duplicate-argument suppression.
1515ac_configure_args=
1516ac_configure_args0=
1517ac_configure_args1=
1518ac_must_keep_next=false
1519for ac_pass in 1 2
1520do
1521 for ac_arg
1522 do
1523 case $ac_arg in
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1527 continue ;;
1528 *\'*)
1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530 esac
1531 case $ac_pass in
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1533 2)
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1537 else
1538 case $ac_arg in
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 esac
1546 ;;
1547 -* ) ac_must_keep_next=true ;;
1548 esac
1549 fi
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1551 ;;
1552 esac
1553 done
1554done
1555$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1557
1558# When interrupted or exit'd, cleanup temporary files, and complete
1559# config.log. We remove comments because anyway the quotes in there
1560# would cause problems or look ugly.
1561# WARNING: Use '\'' to represent an apostrophe within the trap.
1562# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1565 {
1566 echo
1567
1568 cat <<\_ASBOX
1569## ---------------- ##
1570## Cache variables. ##
1571## ---------------- ##
1572_ASBOX
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1575(
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1587 esac ;;
1588 esac
1589 done
1590 (set) 2>&1 |
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1593 sed -n \
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 ;; #(
1597 *)
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 ;;
1600 esac |
1601 sort
1602)
1603 echo
1604
1605 cat <<\_ASBOX
1606## ----------------- ##
1607## Output variables. ##
1608## ----------------- ##
1609_ASBOX
1610 echo
1611 for ac_var in $ac_subst_vars
1612 do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1620
1621 if test -n "$ac_subst_files"; then
1622 cat <<\_ASBOX
1623## ------------------- ##
1624## File substitutions. ##
1625## ------------------- ##
1626_ASBOX
1627 echo
1628 for ac_var in $ac_subst_files
1629 do
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 echo "$ac_var='\''$ac_val'\''"
1635 done | sort
1636 echo
1637 fi
1638
1639 if test -s confdefs.h; then
1640 cat <<\_ASBOX
1641## ----------- ##
1642## confdefs.h. ##
1643## ----------- ##
1644_ASBOX
1645 echo
1646 cat confdefs.h
1647 echo
1648 fi
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1652 } >&5
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 exit $exit_status
1656' 0
1657for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659done
1660ac_signal=0
1661
1662# confdefs.h avoids OS command line length limits that DEFS can exceed.
1663rm -f -r conftest* confdefs.h
1664
1665# Predefined preprocessor variables.
1666
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_NAME "$PACKAGE_NAME"
1669_ACEOF
1670
1671
1672cat >>confdefs.h <<_ACEOF
1673#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674_ACEOF
1675
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_VERSION "$PACKAGE_VERSION"
1679_ACEOF
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_STRING "$PACKAGE_STRING"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689_ACEOF
1690
1691
1692# Let the site file select an alternate cache file if it wants to.
1693# Prefer explicitly selected file to automatically selected ones.
1694if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698else
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1701fi
1702shift
1703for ac_site_file
1704do
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1709 . "$ac_site_file"
1710 fi
1711done
1712
1713if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718echo "$as_me: loading cache $cache_file" >&6;}
1719 case $cache_file in
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1722 esac
1723 fi
1724else
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726echo "$as_me: creating cache $cache_file" >&6;}
1727 >$cache_file
1728fi
1729
1730# Check that the precious variables saved in the cache have kept the same
1731# value.
1732ac_cache_corrupted=false
1733for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1739 set,)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,set)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,);;
1748 *)
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1757 fi;;
1758 esac
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 esac
1769 fi
1770done
1771if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1777fi
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808
1809
1810
1811
1812
1813ac_config_headers="$ac_config_headers config.h"
1814
1815ac_ext=c
1816ac_cpp='$CPP $CPPFLAGS'
1817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820if test -n "$ac_tool_prefix"; then
1821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1822set dummy ${ac_tool_prefix}gcc; ac_word=$2
1823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1825if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842done
1843done
1844IFS=$as_save_IFS
1845
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
1850 { echo "$as_me:$LINENO: result: $CC" >&5
1851echo "${ECHO_T}$CC" >&6; }
1852else
1853 { echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6; }
1855fi
1856
1857
1858fi
1859if test -z "$ac_cv_prog_CC"; then
1860 ac_ct_CC=$CC
1861 # Extract the first word of "gcc", so it can be a program name with args.
1862set dummy gcc; ac_word=$2
1863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1865if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1878 ac_cv_prog_ac_ct_CC="gcc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1881 fi
1882done
1883done
1884IFS=$as_save_IFS
1885
1886fi
1887fi
1888ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889if test -n "$ac_ct_CC"; then
1890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891echo "${ECHO_T}$ac_ct_CC" >&6; }
1892else
1893 { echo "$as_me:$LINENO: result: no" >&5
1894echo "${ECHO_T}no" >&6; }
1895fi
1896
1897 if test "x$ac_ct_CC" = x; then
1898 CC=""
1899 else
1900 case $cross_compiling:$ac_tool_warned in
1901yes:)
1902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1903whose name does not start with the host triplet. If you think this
1904configuration is useful to you, please write to autoconf@gnu.org." >&5
1905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1906whose name does not start with the host triplet. If you think this
1907configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1908ac_tool_warned=yes ;;
1909esac
1910 CC=$ac_ct_CC
1911 fi
1912else
1913 CC="$ac_cv_prog_CC"
1914fi
1915
1916if test -z "$CC"; then
1917 if test -n "$ac_tool_prefix"; then
1918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1919set dummy ${ac_tool_prefix}cc; ac_word=$2
1920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1922if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1935 ac_cv_prog_CC="${ac_tool_prefix}cc"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 break 2
1938 fi
1939done
1940done
1941IFS=$as_save_IFS
1942
1943fi
1944fi
1945CC=$ac_cv_prog_CC
1946if test -n "$CC"; then
1947 { echo "$as_me:$LINENO: result: $CC" >&5
1948echo "${ECHO_T}$CC" >&6; }
1949else
1950 { echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6; }
1952fi
1953
1954
1955 fi
1956fi
1957if test -z "$CC"; then
1958 # Extract the first word of "cc", so it can be a program name with args.
1959set dummy cc; ac_word=$2
1960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1967else
1968 ac_prog_rejected=no
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1977 ac_prog_rejected=yes
1978 continue
1979 fi
1980 ac_cv_prog_CC="cc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 break 2
1983 fi
1984done
1985done
1986IFS=$as_save_IFS
1987
1988if test $ac_prog_rejected = yes; then
1989 # We found a bogon in the path, so make sure we never use it.
1990 set dummy $ac_cv_prog_CC
1991 shift
1992 if test $# != 0; then
1993 # We chose a different compiler from the bogus one.
1994 # However, it has the same basename, so the bogon will be chosen
1995 # first if we set CC to just the basename; use the full file name.
1996 shift
1997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1998 fi
1999fi
2000fi
2001fi
2002CC=$ac_cv_prog_CC
2003if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6; }
2006else
2007 { echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6; }
2009fi
2010
2011
2012fi
2013if test -z "$CC"; then
2014 if test -n "$ac_tool_prefix"; then
2015 for ac_prog in cl.exe
2016 do
2017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2018set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021if test "${ac_cv_prog_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2026else
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2037 fi
2038done
2039done
2040IFS=$as_save_IFS
2041
2042fi
2043fi
2044CC=$ac_cv_prog_CC
2045if test -n "$CC"; then
2046 { echo "$as_me:$LINENO: result: $CC" >&5
2047echo "${ECHO_T}$CC" >&6; }
2048else
2049 { echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6; }
2051fi
2052
2053
2054 test -n "$CC" && break
2055 done
2056fi
2057if test -z "$CC"; then
2058 ac_ct_CC=$CC
2059 for ac_prog in cl.exe
2060do
2061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2062set dummy $ac_prog; ac_word=$2
2063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2078 ac_cv_prog_ac_ct_CC="$ac_prog"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2081 fi
2082done
2083done
2084IFS=$as_save_IFS
2085
2086fi
2087fi
2088ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089if test -n "$ac_ct_CC"; then
2090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091echo "${ECHO_T}$ac_ct_CC" >&6; }
2092else
2093 { echo "$as_me:$LINENO: result: no" >&5
2094echo "${ECHO_T}no" >&6; }
2095fi
2096
2097
2098 test -n "$ac_ct_CC" && break
2099done
2100
2101 if test "x$ac_ct_CC" = x; then
2102 CC=""
2103 else
2104 case $cross_compiling:$ac_tool_warned in
2105yes:)
2106{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2107whose name does not start with the host triplet. If you think this
2108configuration is useful to you, please write to autoconf@gnu.org." >&5
2109echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2110whose name does not start with the host triplet. If you think this
2111configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2112ac_tool_warned=yes ;;
2113esac
2114 CC=$ac_ct_CC
2115 fi
2116fi
2117
2118fi
2119
2120
2121test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&5
2123echo "$as_me: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2126
2127# Provide some information about the compiler.
2128echo "$as_me:$LINENO: checking for C compiler version" >&5
2129ac_compiler=`set X $ac_compile; echo $2`
2130{ (ac_try="$ac_compiler --version >&5"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_compiler --version >&5") 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140{ (ac_try="$ac_compiler -v >&5"
2141case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144esac
2145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146 (eval "$ac_compiler -v >&5") 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150{ (ac_try="$ac_compiler -V >&5"
2151case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154esac
2155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2156 (eval "$ac_compiler -V >&5") 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160
2161cat >conftest.$ac_ext <<_ACEOF
2162/* confdefs.h. */
2163_ACEOF
2164cat confdefs.h >>conftest.$ac_ext
2165cat >>conftest.$ac_ext <<_ACEOF
2166/* end confdefs.h. */
2167
2168int
2169main ()
2170{
2171
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176ac_clean_files_save=$ac_clean_files
2177ac_clean_files="$ac_clean_files a.out a.exe b.out"
2178# Try to create an executable without -o first, disregard a.out.
2179# It will help us diagnose broken compilers, and finding out an intuition
2180# of exeext.
2181{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2182echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2183ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2184#
2185# List of possible output files, starting from the most likely.
2186# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2187# only as a last resort. b.out is created by i960 compilers.
2188ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2189#
2190# The IRIX 6 linker writes into existing files which may not be
2191# executable, retaining their permissions. Remove them first so a
2192# subsequent execution test works.
2193ac_rmfiles=
2194for ac_file in $ac_files
2195do
2196 case $ac_file in
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2199 esac
2200done
2201rm -f $ac_rmfiles
2202
2203if { (ac_try="$ac_link_default"
2204case "(($ac_try" in
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2207esac
2208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2209 (eval "$ac_link_default") 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2214# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2215# in a Makefile. We should not override ac_cv_exeext if it was cached,
2216# so that the user can short-circuit this test for compilers unknown to
2217# Autoconf.
2218for ac_file in $ac_files ''
2219do
2220 test -f "$ac_file" || continue
2221 case $ac_file in
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2223 ;;
2224 [ab].out )
2225 # We found the default executable, but exeext='' is most
2226 # certainly right.
2227 break;;
2228 *.* )
2229 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2230 then :; else
2231 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 fi
2233 # We set ac_cv_exeext here because the later test for it is not
2234 # safe: cross compilers may not add the suffix if given an `-o'
2235 # argument, so we may need to know it at that point already.
2236 # Even if this section looks crufty: it has the advantage of
2237 # actually working.
2238 break;;
2239 * )
2240 break;;
2241 esac
2242done
2243test "$ac_cv_exeext" = no && ac_cv_exeext=
2244
2245else
2246 ac_file=''
2247fi
2248
2249{ echo "$as_me:$LINENO: result: $ac_file" >&5
2250echo "${ECHO_T}$ac_file" >&6; }
2251if test -z "$ac_file"; then
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: C compiler cannot create executables
2258See \`config.log' for more details." >&2;}
2259 { (exit 77); exit 77; }; }
2260fi
2261
2262ac_exeext=$ac_cv_exeext
2263
2264# Check that the compiler produces executables we can run. If not, either
2265# the compiler is broken, or we cross compile.
2266{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269# If not cross compiling, check that we can run a simple program.
2270if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_try") 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 cross_compiling=no
2282 else
2283 if test "$cross_compiling" = maybe; then
2284 cross_compiling=yes
2285 else
2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2293 fi
2294 fi
2295fi
2296{ echo "$as_me:$LINENO: result: yes" >&5
2297echo "${ECHO_T}yes" >&6; }
2298
2299rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300ac_clean_files=$ac_clean_files_save
2301# Check that the compiler produces executables we can run. If not, either
2302# the compiler is broken, or we cross compile.
2303{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306echo "${ECHO_T}$cross_compiling" >&6; }
2307
2308{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310if { (ac_try="$ac_link"
2311case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314esac
2315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316 (eval "$ac_link") 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322# work properly (i.e., refer to `conftest.exe'), while it won't with
2323# `rm'.
2324for ac_file in conftest.exe conftest conftest.*; do
2325 test -f "$ac_file" || continue
2326 case $ac_file in
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 break;;
2330 * ) break;;
2331 esac
2332done
2333else
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest$ac_cv_exeext
2342{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343echo "${ECHO_T}$ac_cv_exeext" >&6; }
2344
2345rm -f conftest.$ac_ext
2346EXEEXT=$ac_cv_exeext
2347ac_exeext=$EXEEXT
2348{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350if test "${ac_cv_objext+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352else
2353 cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h. */
2359
2360int
2361main ()
2362{
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368rm -f conftest.o conftest.obj
2369if { (ac_try="$ac_compile"
2370case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373esac
2374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_compile") 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 for ac_file in conftest.o conftest.obj conftest.*; do
2380 test -f "$ac_file" || continue;
2381 case $ac_file in
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384 break;;
2385 esac
2386done
2387else
2388 echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
2396fi
2397
2398rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399fi
2400{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401echo "${ECHO_T}$ac_cv_objext" >&6; }
2402OBJEXT=$ac_cv_objext
2403ac_objext=$OBJEXT
2404{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409 cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h. */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h. */
2415
2416int
2417main ()
2418{
2419#ifndef __GNUC__
2420 choke me
2421#endif
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (ac_try="$ac_compile"
2429case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432esac
2433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_compile") 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } && {
2441 test -z "$ac_c_werror_flag" ||
2442 test ! -s conftest.err
2443 } && test -s conftest.$ac_objext; then
2444 ac_compiler_gnu=yes
2445else
2446 echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 ac_compiler_gnu=no
2450fi
2451
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454
2455fi
2456{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2458GCC=`test $ac_compiler_gnu = yes && echo yes`
2459ac_test_CFLAGS=${CFLAGS+set}
2460ac_save_CFLAGS=$CFLAGS
2461{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2463if test "${ac_cv_prog_cc_g+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466 ac_save_c_werror_flag=$ac_c_werror_flag
2467 ac_c_werror_flag=yes
2468 ac_cv_prog_cc_g=no
2469 CFLAGS="-g"
2470 cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h. */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h. */
2476
2477int
2478main ()
2479{
2480
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (ac_try="$ac_compile"
2487case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490esac
2491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_compile") 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } && {
2499 test -z "$ac_c_werror_flag" ||
2500 test ! -s conftest.err
2501 } && test -s conftest.$ac_objext; then
2502 ac_cv_prog_cc_g=yes
2503else
2504 echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 CFLAGS=""
2508 cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h. */
2514
2515int
2516main ()
2517{
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523rm -f conftest.$ac_objext
2524if { (ac_try="$ac_compile"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } && {
2537 test -z "$ac_c_werror_flag" ||
2538 test ! -s conftest.err
2539 } && test -s conftest.$ac_objext; then
2540 :
2541else
2542 echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_c_werror_flag=$ac_save_c_werror_flag
2546 CFLAGS="-g"
2547 cat >conftest.$ac_ext <<_ACEOF
2548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h. */
2553
2554int
2555main ()
2556{
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562rm -f conftest.$ac_objext
2563if { (ac_try="$ac_compile"
2564case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } && {
2576 test -z "$ac_c_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest.$ac_objext; then
2579 ac_cv_prog_cc_g=yes
2580else
2581 echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584
2585fi
2586
2587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588fi
2589
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 ac_c_werror_flag=$ac_save_c_werror_flag
2595fi
2596{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2597echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2598if test "$ac_test_CFLAGS" = set; then
2599 CFLAGS=$ac_save_CFLAGS
2600elif test $ac_cv_prog_cc_g = yes; then
2601 if test "$GCC" = yes; then
2602 CFLAGS="-g -O2"
2603 else
2604 CFLAGS="-g"
2605 fi
2606else
2607 if test "$GCC" = yes; then
2608 CFLAGS="-O2"
2609 else
2610 CFLAGS=
2611 fi
2612fi
2613{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2614echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2615if test "${ac_cv_prog_cc_c89+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 ac_cv_prog_cc_c89=no
2619ac_save_CC=$CC
2620cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
2626#include <stdarg.h>
2627#include <stdio.h>
2628#include <sys/types.h>
2629#include <sys/stat.h>
2630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2631struct buf { int x; };
2632FILE * (*rcsopen) (struct buf *, struct stat *, int);
2633static char *e (p, i)
2634 char **p;
2635 int i;
2636{
2637 return p[i];
2638}
2639static char *f (char * (*g) (char **, int), char **p, ...)
2640{
2641 char *s;
2642 va_list v;
2643 va_start (v,p);
2644 s = g (p, va_arg (v,int));
2645 va_end (v);
2646 return s;
2647}
2648
2649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2650 function prototypes and stuff, but not '\xHH' hex character constants.
2651 These don't provoke an error unfortunately, instead are silently treated
2652 as 'x'. The following induces an error, until -std is added to get
2653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2654 array size at least. It's necessary to write '\x00'==0 to get something
2655 that's true only with -std. */
2656int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2657
2658/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2659 inside strings and character constants. */
2660#define FOO(x) 'x'
2661int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2662
2663int test (int i, double x);
2664struct s1 {int (*f) (int a);};
2665struct s2 {int (*f) (double a);};
2666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2667int argc;
2668char **argv;
2669int
2670main ()
2671{
2672return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2679do
2680 CC="$ac_save_CC $ac_arg"
2681 rm -f conftest.$ac_objext
2682if { (ac_try="$ac_compile"
2683case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686esac
2687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compile") 2>conftest.er1
2689 ac_status=$?
2690 grep -v '^ *+' conftest.er1 >conftest.err
2691 rm -f conftest.er1
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } && {
2695 test -z "$ac_c_werror_flag" ||
2696 test ! -s conftest.err
2697 } && test -s conftest.$ac_objext; then
2698 ac_cv_prog_cc_c89=$ac_arg
2699else
2700 echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703
2704fi
2705
2706rm -f core conftest.err conftest.$ac_objext
2707 test "x$ac_cv_prog_cc_c89" != "xno" && break
2708done
2709rm -f conftest.$ac_ext
2710CC=$ac_save_CC
2711
2712fi
2713# AC_CACHE_VAL
2714case "x$ac_cv_prog_cc_c89" in
2715 x)
2716 { echo "$as_me:$LINENO: result: none needed" >&5
2717echo "${ECHO_T}none needed" >&6; } ;;
2718 xno)
2719 { echo "$as_me:$LINENO: result: unsupported" >&5
2720echo "${ECHO_T}unsupported" >&6; } ;;
2721 *)
2722 CC="$CC $ac_cv_prog_cc_c89"
2723 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2724echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2725esac
2726
2727
2728ac_ext=c
2729ac_cpp='$CPP $CPPFLAGS'
2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734ac_aux_dir=
2735for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2739 break
2740 elif test -f "$ac_dir/install.sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2743 break
2744 elif test -f "$ac_dir/shtool"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2747 break
2748 fi
2749done
2750if test -z "$ac_aux_dir"; then
2751 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2752echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2753 { (exit 1); exit 1; }; }
2754fi
2755
2756# These three variables are undocumented and unsupported,
2757# and are intended to be withdrawn in a future Autoconf release.
2758# They can cause serious problems if a builder's source tree is in a directory
2759# whose full name contains unusual characters.
2760ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2761ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2762ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763
2764
2765# Make sure we can run config.sub.
2766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2768echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2769 { (exit 1); exit 1; }; }
2770
2771{ echo "$as_me:$LINENO: checking build system type" >&5
2772echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2773if test "${ac_cv_build+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
2776 ac_build_alias=$build_alias
2777test "x$ac_build_alias" = x &&
2778 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2779test "x$ac_build_alias" = x &&
2780 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2781echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2782 { (exit 1); exit 1; }; }
2783ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2784 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2785echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2786 { (exit 1); exit 1; }; }
2787
2788fi
2789{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2790echo "${ECHO_T}$ac_cv_build" >&6; }
2791case $ac_cv_build in
2792*-*-*) ;;
2793*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2794echo "$as_me: error: invalid value of canonical build" >&2;}
2795 { (exit 1); exit 1; }; };;
2796esac
2797build=$ac_cv_build
2798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_build
2800shift
2801build_cpu=$1
2802build_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806build_os=$*
2807IFS=$ac_save_IFS
2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
2810
2811{ echo "$as_me:$LINENO: checking host system type" >&5
2812echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2813if test "${ac_cv_host+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818else
2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2820 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2821echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2822 { (exit 1); exit 1; }; }
2823fi
2824
2825fi
2826{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2827echo "${ECHO_T}$ac_cv_host" >&6; }
2828case $ac_cv_host in
2829*-*-*) ;;
2830*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2831echo "$as_me: error: invalid value of canonical host" >&2;}
2832 { (exit 1); exit 1; }; };;
2833esac
2834host=$ac_cv_host
2835ac_save_IFS=$IFS; IFS='-'
2836set x $ac_cv_host
2837shift
2838host_cpu=$1
2839host_vendor=$2
2840shift; shift
2841# Remember, the first character of IFS is used to create $*,
2842# except with old shells:
2843host_os=$*
2844IFS=$ac_save_IFS
2845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2846
2847
2848
2849ac_ext=c
2850ac_cpp='$CPP $CPPFLAGS'
2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2855echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2856# On Suns, sometimes $CPP names a directory.
2857if test -n "$CPP" && test -d "$CPP"; then
2858 CPP=
2859fi
2860if test -z "$CPP"; then
2861 if test "${ac_cv_prog_CPP+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863else
2864 # Double quotes because CPP needs to be expanded
2865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2866 do
2867 ac_preproc_ok=false
2868for ac_c_preproc_warn_flag in '' yes
2869do
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h. */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
2881/* end confdefs.h. */
2882#ifdef __STDC__
2883# include <limits.h>
2884#else
2885# include <assert.h>
2886#endif
2887 Syntax error
2888_ACEOF
2889if { (ac_try="$ac_cpp conftest.$ac_ext"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2896 ac_status=$?
2897 grep -v '^ *+' conftest.er1 >conftest.err
2898 rm -f conftest.er1
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } >/dev/null && {
2902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2903 test ! -s conftest.err
2904 }; then
2905 :
2906else
2907 echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 # Broken: fails on valid input.
2911continue
2912fi
2913
2914rm -f conftest.err conftest.$ac_ext
2915
2916 # OK, works on sane cases. Now check whether nonexistent headers
2917 # can be detected and how.
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924#include <ac_nonexistent.h>
2925_ACEOF
2926if { (ac_try="$ac_cpp conftest.$ac_ext"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev/null && {
2939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2940 test ! -s conftest.err
2941 }; then
2942 # Broken: success on invalid input.
2943continue
2944else
2945 echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 # Passes both tests.
2949ac_preproc_ok=:
2950break
2951fi
2952
2953rm -f conftest.err conftest.$ac_ext
2954
2955done
2956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2957rm -f conftest.err conftest.$ac_ext
2958if $ac_preproc_ok; then
2959 break
2960fi
2961
2962 done
2963 ac_cv_prog_CPP=$CPP
2964
2965fi
2966 CPP=$ac_cv_prog_CPP
2967else
2968 ac_cv_prog_CPP=$CPP
2969fi
2970{ echo "$as_me:$LINENO: result: $CPP" >&5
2971echo "${ECHO_T}$CPP" >&6; }
2972ac_preproc_ok=false
2973for ac_c_preproc_warn_flag in '' yes
2974do
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
2987#ifdef __STDC__
2988# include <limits.h>
2989#else
2990# include <assert.h>
2991#endif
2992 Syntax error
2993_ACEOF
2994if { (ac_try="$ac_cpp conftest.$ac_ext"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null && {
3007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3009 }; then
3010 :
3011else
3012 echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 # Broken: fails on valid input.
3016continue
3017fi
3018
3019rm -f conftest.err conftest.$ac_ext
3020
3021 # OK, works on sane cases. Now check whether nonexistent headers
3022 # can be detected and how.
3023 cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h. */
3029#include <ac_nonexistent.h>
3030_ACEOF
3031if { (ac_try="$ac_cpp conftest.$ac_ext"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null && {
3044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 }; then
3047 # Broken: success on invalid input.
3048continue
3049else
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Passes both tests.
3054ac_preproc_ok=:
3055break
3056fi
3057
3058rm -f conftest.err conftest.$ac_ext
3059
3060done
3061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062rm -f conftest.err conftest.$ac_ext
3063if $ac_preproc_ok; then
3064 :
3065else
3066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067See \`config.log' for more details." >&5
3068echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3071fi
3072
3073ac_ext=c
3074ac_cpp='$CPP $CPPFLAGS'
3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3081echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3082if test "${ac_cv_path_GREP+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 # Extract the first word of "grep ggrep" to use in msg output
3086if test -z "$GREP"; then
3087set dummy grep ggrep; ac_prog_name=$2
3088if test "${ac_cv_path_GREP+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091 ac_path_GREP_found=false
3092# Loop through the user's path and test for each of PROGNAME-LIST
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_prog in grep ggrep; do
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3101 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3102 # Check for GNU ac_path_GREP and select it if it is found.
3103 # Check for GNU $ac_path_GREP
3104case `"$ac_path_GREP" --version 2>&1` in
3105*GNU*)
3106 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3107*)
3108 ac_count=0
3109 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3110 while :
3111 do
3112 cat "conftest.in" "conftest.in" >"conftest.tmp"
3113 mv "conftest.tmp" "conftest.in"
3114 cp "conftest.in" "conftest.nl"
3115 echo 'GREP' >> "conftest.nl"
3116 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3118 ac_count=`expr $ac_count + 1`
3119 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3120 # Best one so far, save it but keep looking for a better one
3121 ac_cv_path_GREP="$ac_path_GREP"
3122 ac_path_GREP_max=$ac_count
3123 fi
3124 # 10*(2^10) chars as input seems more than enough
3125 test $ac_count -gt 10 && break
3126 done
3127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3128esac
3129
3130
3131 $ac_path_GREP_found && break 3
3132 done
3133done
3134
3135done
3136IFS=$as_save_IFS
3137
3138
3139fi
3140
3141GREP="$ac_cv_path_GREP"
3142if test -z "$GREP"; then
3143 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3144echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3145 { (exit 1); exit 1; }; }
3146fi
3147
3148else
3149 ac_cv_path_GREP=$GREP
3150fi
3151
3152
3153fi
3154{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3155echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3156 GREP="$ac_cv_path_GREP"
3157
3158
3159{ echo "$as_me:$LINENO: checking for egrep" >&5
3160echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3161if test "${ac_cv_path_EGREP+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3165 then ac_cv_path_EGREP="$GREP -E"
3166 else
3167 # Extract the first word of "egrep" to use in msg output
3168if test -z "$EGREP"; then
3169set dummy egrep; ac_prog_name=$2
3170if test "${ac_cv_path_EGREP+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 ac_path_EGREP_found=false
3174# Loop through the user's path and test for each of PROGNAME-LIST
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_prog in egrep; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3184 # Check for GNU ac_path_EGREP and select it if it is found.
3185 # Check for GNU $ac_path_EGREP
3186case `"$ac_path_EGREP" --version 2>&1` in
3187*GNU*)
3188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3189*)
3190 ac_count=0
3191 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3192 while :
3193 do
3194 cat "conftest.in" "conftest.in" >"conftest.tmp"
3195 mv "conftest.tmp" "conftest.in"
3196 cp "conftest.in" "conftest.nl"
3197 echo 'EGREP' >> "conftest.nl"
3198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3200 ac_count=`expr $ac_count + 1`
3201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3202 # Best one so far, save it but keep looking for a better one
3203 ac_cv_path_EGREP="$ac_path_EGREP"
3204 ac_path_EGREP_max=$ac_count
3205 fi
3206 # 10*(2^10) chars as input seems more than enough
3207 test $ac_count -gt 10 && break
3208 done
3209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3210esac
3211
3212
3213 $ac_path_EGREP_found && break 3
3214 done
3215done
3216
3217done
3218IFS=$as_save_IFS
3219
3220
3221fi
3222
3223EGREP="$ac_cv_path_EGREP"
3224if test -z "$EGREP"; then
3225 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3226echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3227 { (exit 1); exit 1; }; }
3228fi
3229
3230else
3231 ac_cv_path_EGREP=$EGREP
3232fi
3233
3234
3235 fi
3236fi
3237{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3238echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3239 EGREP="$ac_cv_path_EGREP"
3240
3241
3242{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3243echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3244if test "${ac_cv_header_stdc+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253#include <stdlib.h>
3254#include <stdarg.h>
3255#include <string.h>
3256#include <float.h>
3257
3258int
3259main ()
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (ac_try="$ac_compile"
3268case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271esac
3272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3283 ac_cv_header_stdc=yes
3284else
3285 echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 ac_cv_header_stdc=no
3289fi
3290
3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292
3293if test $ac_cv_header_stdc = yes; then
3294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301#include <string.h>
3302
3303_ACEOF
3304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "memchr" >/dev/null 2>&1; then
3306 :
3307else
3308 ac_cv_header_stdc=no
3309fi
3310rm -f conftest*
3311
3312fi
3313
3314if test $ac_cv_header_stdc = yes; then
3315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322#include <stdlib.h>
3323
3324_ACEOF
3325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "free" >/dev/null 2>&1; then
3327 :
3328else
3329 ac_cv_header_stdc=no
3330fi
3331rm -f conftest*
3332
3333fi
3334
3335if test $ac_cv_header_stdc = yes; then
3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337 if test "$cross_compiling" = yes; then
3338 :
3339else
3340 cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
3346#include <ctype.h>
3347#include <stdlib.h>
3348#if ((' ' & 0x0FF) == 0x020)
3349# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3350# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3351#else
3352# define ISLOWER(c) \
3353 (('a' <= (c) && (c) <= 'i') \
3354 || ('j' <= (c) && (c) <= 'r') \
3355 || ('s' <= (c) && (c) <= 'z'))
3356# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3357#endif
3358
3359#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3360int
3361main ()
3362{
3363 int i;
3364 for (i = 0; i < 256; i++)
3365 if (XOR (islower (i), ISLOWER (i))
3366 || toupper (i) != TOUPPER (i))
3367 return 2;
3368 return 0;
3369}
3370_ACEOF
3371rm -f conftest$ac_exeext
3372if { (ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 :
3392else
3393 echo "$as_me: program exited with status $ac_status" >&5
3394echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397( exit $ac_status )
3398ac_cv_header_stdc=no
3399fi
3400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3401fi
3402
3403
3404fi
3405fi
3406{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3407echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3408if test $ac_cv_header_stdc = yes; then
3409
3410cat >>confdefs.h <<\_ACEOF
3411#define STDC_HEADERS 1
3412_ACEOF
3413
3414fi
3415
3416# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3427 inttypes.h stdint.h unistd.h
3428do
3429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3430{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441$ac_includes_default
3442
3443#include <$ac_header>
3444_ACEOF
3445rm -f conftest.$ac_objext
3446if { (ac_try="$ac_compile"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3462 eval "$as_ac_Header=yes"
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 eval "$as_ac_Header=no"
3468fi
3469
3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471fi
3472ac_res=`eval echo '${'$as_ac_Header'}'`
3473 { echo "$as_me:$LINENO: result: $ac_res" >&5
3474echo "${ECHO_T}$ac_res" >&6; }
3475if test `eval echo '${'$as_ac_Header'}'` = yes; then
3476 cat >>confdefs.h <<_ACEOF
3477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3478_ACEOF
3479
3480fi
3481
3482done
3483
3484
3485{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3486echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3487if test "${ac_cv_c_bigendian+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 # See if sys/param.h defines the BYTE_ORDER macro.
3491cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h. */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h. */
3497#include <sys/types.h>
3498#include <sys/param.h>
3499
3500int
3501main ()
3502{
3503#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3504 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3505 bogus endian macros
3506#endif
3507
3508 ;
3509 return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext
3513if { (ac_try="$ac_compile"
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
3518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.$ac_objext; then
3529 # It does; now see whether it defined to BIG_ENDIAN or not.
3530cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h. */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h. */
3536#include <sys/types.h>
3537#include <sys/param.h>
3538
3539int
3540main ()
3541{
3542#if BYTE_ORDER != BIG_ENDIAN
3543 not big endian
3544#endif
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
3550rm -f conftest.$ac_objext
3551if { (ac_try="$ac_compile"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3567 ac_cv_c_bigendian=yes
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 ac_cv_c_bigendian=no
3573fi
3574
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 # It does not; compile a test program.
3581if test "$cross_compiling" = yes; then
3582 # try to guess the endianness by grepping values into an object file
3583 ac_cv_c_bigendian=unknown
3584 cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
3590short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3591short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3592void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3593short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3594short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3595void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3596int
3597main ()
3598{
3599 _ascii (); _ebcdic ();
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (ac_try="$ac_compile"
3606case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609esac
3610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_compile") 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && {
3618 test -z "$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3620 } && test -s conftest.$ac_objext; then
3621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3622 ac_cv_c_bigendian=yes
3623fi
3624if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3625 if test "$ac_cv_c_bigendian" = unknown; then
3626 ac_cv_c_bigendian=no
3627 else
3628 # finding both strings is unlikely to happen, but who knows?
3629 ac_cv_c_bigendian=unknown
3630 fi
3631fi
3632else
3633 echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636
3637fi
3638
3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640else
3641 cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h. */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h. */
3647$ac_includes_default
3648int
3649main ()
3650{
3651
3652 /* Are we little or big endian? From Harbison&Steele. */
3653 union
3654 {
3655 long int l;
3656 char c[sizeof (long int)];
3657 } u;
3658 u.l = 1;
3659 return u.c[sizeof (long int) - 1] == 1;
3660
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665rm -f conftest$ac_exeext
3666if { (ac_try="$ac_link"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_link") 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3676 { (case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_try") 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_c_bigendian=no
3686else
3687 echo "$as_me: program exited with status $ac_status" >&5
3688echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691( exit $ac_status )
3692ac_cv_c_bigendian=yes
3693fi
3694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3695fi
3696
3697
3698fi
3699
3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701fi
3702{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3703echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3704case $ac_cv_c_bigendian in
3705 yes)
3706
3707cat >>confdefs.h <<\_ACEOF
3708#define WORDS_BIGENDIAN 1
3709_ACEOF
3710 ;;
3711 no)
3712 ;;
3713 *)
3714 { { echo "$as_me:$LINENO: error: unknown endianness
3715presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3716echo "$as_me: error: unknown endianness
3717presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3718 { (exit 1); exit 1; }; } ;;
3719esac
3720
3721
3722# Checks for programs.
3723for ac_prog in gawk mawk nawk awk
3724do
3725 # Extract the first word of "$ac_prog", so it can be a program name with args.
3726set dummy $ac_prog; ac_word=$2
3727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3729if test "${ac_cv_prog_AWK+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732 if test -n "$AWK"; then
3733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3734else
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_AWK="$ac_prog"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746done
3747done
3748IFS=$as_save_IFS
3749
3750fi
3751fi
3752AWK=$ac_cv_prog_AWK
3753if test -n "$AWK"; then
3754 { echo "$as_me:$LINENO: result: $AWK" >&5
3755echo "${ECHO_T}$AWK" >&6; }
3756else
3757 { echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6; }
3759fi
3760
3761
3762 test -n "$AWK" && break
3763done
3764
3765ac_ext=c
3766ac_cpp='$CPP $CPPFLAGS'
3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3771echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3772# On Suns, sometimes $CPP names a directory.
3773if test -n "$CPP" && test -d "$CPP"; then
3774 CPP=
3775fi
3776if test -z "$CPP"; then
3777 if test "${ac_cv_prog_CPP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780 # Double quotes because CPP needs to be expanded
3781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 do
3783 ac_preproc_ok=false
3784for ac_c_preproc_warn_flag in '' yes
3785do
3786 # Use a header file that comes with gcc, so configuring glibc
3787 # with a fresh cross-compiler works.
3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789 # <limits.h> exists even on freestanding compilers.
3790 # On the NeXT, cc -E runs the code through the compiler's parser,
3791 # not just through cpp. "Syntax error" is here to catch this case.
3792 cat >conftest.$ac_ext <<_ACEOF
3793/* confdefs.h. */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h. */
3798#ifdef __STDC__
3799# include <limits.h>
3800#else
3801# include <assert.h>
3802#endif
3803 Syntax error
3804_ACEOF
3805if { (ac_try="$ac_cpp conftest.$ac_ext"
3806case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809esac
3810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 }; then
3821 :
3822else
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 # Broken: fails on valid input.
3827continue
3828fi
3829
3830rm -f conftest.err conftest.$ac_ext
3831
3832 # OK, works on sane cases. Now check whether nonexistent headers
3833 # can be detected and how.
3834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
3840#include <ac_nonexistent.h>
3841_ACEOF
3842if { (ac_try="$ac_cpp conftest.$ac_ext"
3843case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null && {
3855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 }; then
3858 # Broken: success on invalid input.
3859continue
3860else
3861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 # Passes both tests.
3865ac_preproc_ok=:
3866break
3867fi
3868
3869rm -f conftest.err conftest.$ac_ext
3870
3871done
3872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873rm -f conftest.err conftest.$ac_ext
3874if $ac_preproc_ok; then
3875 break
3876fi
3877
3878 done
3879 ac_cv_prog_CPP=$CPP
3880
3881fi
3882 CPP=$ac_cv_prog_CPP
3883else
3884 ac_cv_prog_CPP=$CPP
3885fi
3886{ echo "$as_me:$LINENO: result: $CPP" >&5
3887echo "${ECHO_T}$CPP" >&6; }
3888ac_preproc_ok=false
3889for ac_c_preproc_warn_flag in '' yes
3890do
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
3903#ifdef __STDC__
3904# include <limits.h>
3905#else
3906# include <assert.h>
3907#endif
3908 Syntax error
3909_ACEOF
3910if { (ac_try="$ac_cpp conftest.$ac_ext"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 }; then
3926 :
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 # Broken: fails on valid input.
3932continue
3933fi
3934
3935rm -f conftest.err conftest.$ac_ext
3936
3937 # OK, works on sane cases. Now check whether nonexistent headers
3938 # can be detected and how.
3939 cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
3945#include <ac_nonexistent.h>
3946_ACEOF
3947if { (ac_try="$ac_cpp conftest.$ac_ext"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } >/dev/null && {
3960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 }; then
3963 # Broken: success on invalid input.
3964continue
3965else
3966 echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 # Passes both tests.
3970ac_preproc_ok=:
3971break
3972fi
3973
3974rm -f conftest.err conftest.$ac_ext
3975
3976done
3977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978rm -f conftest.err conftest.$ac_ext
3979if $ac_preproc_ok; then
3980 :
3981else
3982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3983See \`config.log' for more details." >&5
3984echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3985See \`config.log' for more details." >&2;}
3986 { (exit 1); exit 1; }; }
3987fi
3988
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3997set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4000if test "${ac_cv_prog_RANLIB+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003 if test -n "$RANLIB"; then
4004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017done
4018done
4019IFS=$as_save_IFS
4020
4021fi
4022fi
4023RANLIB=$ac_cv_prog_RANLIB
4024if test -n "$RANLIB"; then
4025 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4026echo "${ECHO_T}$RANLIB" >&6; }
4027else
4028 { echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6; }
4030fi
4031
4032
4033fi
4034if test -z "$ac_cv_prog_RANLIB"; then
4035 ac_ct_RANLIB=$RANLIB
4036 # Extract the first word of "ranlib", so it can be a program name with args.
4037set dummy ranlib; ac_word=$2
4038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4040if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043 if test -n "$ac_ct_RANLIB"; then
4044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_ac_ct_RANLIB="ranlib"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057done
4058done
4059IFS=$as_save_IFS
4060
4061fi
4062fi
4063ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4064if test -n "$ac_ct_RANLIB"; then
4065 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4066echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4067else
4068 { echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6; }
4070fi
4071
4072 if test "x$ac_ct_RANLIB" = x; then
4073 RANLIB=":"
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4078whose name does not start with the host triplet. If you think this
4079configuration is useful to you, please write to autoconf@gnu.org." >&5
4080echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4081whose name does not start with the host triplet. If you think this
4082configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4083ac_tool_warned=yes ;;
4084esac
4085 RANLIB=$ac_ct_RANLIB
4086 fi
4087else
4088 RANLIB="$ac_cv_prog_RANLIB"
4089fi
4090
4091# Find a good install program. We prefer a C program (faster),
4092# so one script is as good as another. But avoid the broken or
4093# incompatible versions:
4094# SysV /etc/install, /usr/sbin/install
4095# SunOS /usr/etc/install
4096# IRIX /sbin/install
4097# AIX /bin/install
4098# AmigaOS /C/install, which installs bootblocks on floppy discs
4099# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4100# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4101# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4102# OS/2's system install, which has a completely different semantic
4103# ./install, which can be erroneously created by make from ./install.sh.
4104{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4105echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4106if test -z "$INSTALL"; then
4107if test "${ac_cv_path_install+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 # Account for people who put trailing slashes in PATH elements.
4116case $as_dir/ in
4117 ./ | .// | /cC/* | \
4118 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4119 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4120 /usr/ucb/* ) ;;
4121 *)
4122 # OSF1 and SCO ODT 3.0 have their own names for install.
4123 # Don't use installbsd from OSF since it installs stuff as root
4124 # by default.
4125 for ac_prog in ginstall scoinst install; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4128 if test $ac_prog = install &&
4129 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4130 # AIX install. It has an incompatible calling convention.
4131 :
4132 elif test $ac_prog = install &&
4133 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4134 # program-specific install script used by HP pwplus--don't use.
4135 :
4136 else
4137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4138 break 3
4139 fi
4140 fi
4141 done
4142 done
4143 ;;
4144esac
4145done
4146IFS=$as_save_IFS
4147
4148
4149fi
4150 if test "${ac_cv_path_install+set}" = set; then
4151 INSTALL=$ac_cv_path_install
4152 else
4153 # As a last resort, use the slow shell script. Don't cache a
4154 # value for INSTALL within a source directory, because that will
4155 # break other packages using the cache if that directory is
4156 # removed, or if the value is a relative name.
4157 INSTALL=$ac_install_sh
4158 fi
4159fi
4160{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4161echo "${ECHO_T}$INSTALL" >&6; }
4162
4163# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4164# It thinks the first close brace ends the variable substitution.
4165test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4166
4167test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4168
4169test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4170
4171{ echo "$as_me:$LINENO: checking for egrep" >&5
4172echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4173if test "${ac_cv_path_EGREP+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4177 then ac_cv_path_EGREP="$GREP -E"
4178 else
4179 # Extract the first word of "egrep" to use in msg output
4180if test -z "$EGREP"; then
4181set dummy egrep; ac_prog_name=$2
4182if test "${ac_cv_path_EGREP+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185 ac_path_EGREP_found=false
4186# Loop through the user's path and test for each of PROGNAME-LIST
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in egrep; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4195 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4196 # Check for GNU ac_path_EGREP and select it if it is found.
4197 # Check for GNU $ac_path_EGREP
4198case `"$ac_path_EGREP" --version 2>&1` in
4199*GNU*)
4200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4201*)
4202 ac_count=0
4203 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4204 while :
4205 do
4206 cat "conftest.in" "conftest.in" >"conftest.tmp"
4207 mv "conftest.tmp" "conftest.in"
4208 cp "conftest.in" "conftest.nl"
4209 echo 'EGREP' >> "conftest.nl"
4210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212 ac_count=`expr $ac_count + 1`
4213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4214 # Best one so far, save it but keep looking for a better one
4215 ac_cv_path_EGREP="$ac_path_EGREP"
4216 ac_path_EGREP_max=$ac_count
4217 fi
4218 # 10*(2^10) chars as input seems more than enough
4219 test $ac_count -gt 10 && break
4220 done
4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222esac
4223
4224
4225 $ac_path_EGREP_found && break 3
4226 done
4227done
4228
4229done
4230IFS=$as_save_IFS
4231
4232
4233fi
4234
4235EGREP="$ac_cv_path_EGREP"
4236if test -z "$EGREP"; then
4237 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4238echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4239 { (exit 1); exit 1; }; }
4240fi
4241
4242else
4243 ac_cv_path_EGREP=$EGREP
4244fi
4245
4246
4247 fi
4248fi
4249{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4250echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4251 EGREP="$ac_cv_path_EGREP"
4252
4253
4254# Extract the first word of "ar", so it can be a program name with args.
4255set dummy ar; ac_word=$2
4256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4258if test "${ac_cv_path_AR+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261 case $AR in
4262 [\\/]* | ?:[\\/]*)
4263 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4264 ;;
4265 *)
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279IFS=$as_save_IFS
4280
4281 ;;
4282esac
4283fi
4284AR=$ac_cv_path_AR
4285if test -n "$AR"; then
4286 { echo "$as_me:$LINENO: result: $AR" >&5
4287echo "${ECHO_T}$AR" >&6; }
4288else
4289 { echo "$as_me:$LINENO: result: no" >&5
4290echo "${ECHO_T}no" >&6; }
4291fi
4292
4293
4294# Extract the first word of "cat", so it can be a program name with args.
4295set dummy cat; ac_word=$2
4296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298if test "${ac_cv_path_CAT+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 case $CAT in
4302 [\\/]* | ?:[\\/]*)
4303 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4304 ;;
4305 *)
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317done
4318done
4319IFS=$as_save_IFS
4320
4321 ;;
4322esac
4323fi
4324CAT=$ac_cv_path_CAT
4325if test -n "$CAT"; then
4326 { echo "$as_me:$LINENO: result: $CAT" >&5
4327echo "${ECHO_T}$CAT" >&6; }
4328else
4329 { echo "$as_me:$LINENO: result: no" >&5
4330echo "${ECHO_T}no" >&6; }
4331fi
4332
4333
4334# Extract the first word of "kill", so it can be a program name with args.
4335set dummy kill; ac_word=$2
4336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338if test "${ac_cv_path_KILL+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 case $KILL in
4342 [\\/]* | ?:[\\/]*)
4343 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4344 ;;
4345 *)
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
4358done
4359IFS=$as_save_IFS
4360
4361 ;;
4362esac
4363fi
4364KILL=$ac_cv_path_KILL
4365if test -n "$KILL"; then
4366 { echo "$as_me:$LINENO: result: $KILL" >&5
4367echo "${ECHO_T}$KILL" >&6; }
4368else
4369 { echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6; }
4371fi
4372
4373
4374for ac_prog in perl5 perl
4375do
4376 # Extract the first word of "$ac_prog", so it can be a program name with args.
4377set dummy $ac_prog; ac_word=$2
4378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380if test "${ac_cv_path_PERL+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383 case $PERL in
4384 [\\/]* | ?:[\\/]*)
4385 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4386 ;;
4387 *)
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399done
4400done
4401IFS=$as_save_IFS
4402
4403 ;;
4404esac
4405fi
4406PERL=$ac_cv_path_PERL
4407if test -n "$PERL"; then
4408 { echo "$as_me:$LINENO: result: $PERL" >&5
4409echo "${ECHO_T}$PERL" >&6; }
4410else
4411 { echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6; }
4413fi
4414
4415
4416 test -n "$PERL" && break
4417done
4418
4419# Extract the first word of "sed", so it can be a program name with args.
4420set dummy sed; ac_word=$2
4421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4423if test "${ac_cv_path_SED+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 case $SED in
4427 [\\/]* | ?:[\\/]*)
4428 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4429 ;;
4430 *)
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442done
4443done
4444IFS=$as_save_IFS
4445
4446 ;;
4447esac
4448fi
4449SED=$ac_cv_path_SED
4450if test -n "$SED"; then
4451 { echo "$as_me:$LINENO: result: $SED" >&5
4452echo "${ECHO_T}$SED" >&6; }
4453else
4454 { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
4456fi
4457
4458
4459
4460# Extract the first word of "ent", so it can be a program name with args.
4461set dummy ent; ac_word=$2
4462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464if test "${ac_cv_path_ENT+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 case $ENT in
4468 [\\/]* | ?:[\\/]*)
4469 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4470 ;;
4471 *)
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483done
4484done
4485IFS=$as_save_IFS
4486
4487 ;;
4488esac
4489fi
4490ENT=$ac_cv_path_ENT
4491if test -n "$ENT"; then
4492 { echo "$as_me:$LINENO: result: $ENT" >&5
4493echo "${ECHO_T}$ENT" >&6; }
4494else
4495 { echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6; }
4497fi
4498
4499
4500
4501# Extract the first word of "bash", so it can be a program name with args.
4502set dummy bash; ac_word=$2
4503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508 case $TEST_MINUS_S_SH in
4509 [\\/]* | ?:[\\/]*)
4510 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4511 ;;
4512 *)
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524done
4525done
4526IFS=$as_save_IFS
4527
4528 ;;
4529esac
4530fi
4531TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4532if test -n "$TEST_MINUS_S_SH"; then
4533 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4534echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4535else
4536 { echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6; }
4538fi
4539
4540
4541# Extract the first word of "ksh", so it can be a program name with args.
4542set dummy ksh; ac_word=$2
4543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4545if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548 case $TEST_MINUS_S_SH in
4549 [\\/]* | ?:[\\/]*)
4550 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4551 ;;
4552 *)
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564done
4565done
4566IFS=$as_save_IFS
4567
4568 ;;
4569esac
4570fi
4571TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4572if test -n "$TEST_MINUS_S_SH"; then
4573 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4574echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4575else
4576 { echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6; }
4578fi
4579
4580
4581# Extract the first word of "sh", so it can be a program name with args.
4582set dummy sh; ac_word=$2
4583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 case $TEST_MINUS_S_SH in
4589 [\\/]* | ?:[\\/]*)
4590 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4591 ;;
4592 *)
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
4606IFS=$as_save_IFS
4607
4608 ;;
4609esac
4610fi
4611TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4612if test -n "$TEST_MINUS_S_SH"; then
4613 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4614echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4615else
4616 { echo "$as_me:$LINENO: result: no" >&5
4617echo "${ECHO_T}no" >&6; }
4618fi
4619
4620
4621# Extract the first word of "sh", so it can be a program name with args.
4622set dummy sh; ac_word=$2
4623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625if test "${ac_cv_path_SH+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 case $SH in
4629 [\\/]* | ?:[\\/]*)
4630 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4631 ;;
4632 *)
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4643 fi
4644done
4645done
4646IFS=$as_save_IFS
4647
4648 ;;
4649esac
4650fi
4651SH=$ac_cv_path_SH
4652if test -n "$SH"; then
4653 { echo "$as_me:$LINENO: result: $SH" >&5
4654echo "${ECHO_T}$SH" >&6; }
4655else
4656 { echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6; }
4658fi
4659
4660
4661TEST_SHELL=sh
4662
4663
4664# Extract the first word of "groupadd", so it can be a program name with args.
4665set dummy groupadd; ac_word=$2
4666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671 case $PATH_GROUPADD_PROG in
4672 [\\/]* | ?:[\\/]*)
4673 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4674 ;;
4675 *)
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4678do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687done
4688done
4689IFS=$as_save_IFS
4690
4691 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4692 ;;
4693esac
4694fi
4695PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4696if test -n "$PATH_GROUPADD_PROG"; then
4697 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4698echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4699else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6; }
4702fi
4703
4704
4705# Extract the first word of "useradd", so it can be a program name with args.
4706set dummy useradd; ac_word=$2
4707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712 case $PATH_USERADD_PROG in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
4729done
4730IFS=$as_save_IFS
4731
4732 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4733 ;;
4734esac
4735fi
4736PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4737if test -n "$PATH_USERADD_PROG"; then
4738 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4739echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4740else
4741 { echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6; }
4743fi
4744
4745
4746# Extract the first word of "pkgmk", so it can be a program name with args.
4747set dummy pkgmk; ac_word=$2
4748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4750if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4754 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767done
4768done
4769IFS=$as_save_IFS
4770
4771 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4772fi
4773fi
4774MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4775if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4776 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4777echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4778else
4779 { echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6; }
4781fi
4782
4783
4784if test -x /sbin/sh; then
4785 STARTUP_SCRIPT_SHELL=/sbin/sh
4786
4787else
4788 STARTUP_SCRIPT_SHELL=/bin/sh
4789
4790fi
4791
4792# System features
4793# Check whether --enable-largefile was given.
4794if test "${enable_largefile+set}" = set; then
4795 enableval=$enable_largefile;
4796fi
4797
4798if test "$enable_largefile" != no; then
4799
4800 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4801echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4802if test "${ac_cv_sys_largefile_CC+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805 ac_cv_sys_largefile_CC=no
4806 if test "$GCC" != yes; then
4807 ac_save_CC=$CC
4808 while :; do
4809 # IRIX 6.2 and later do not support large files by default,
4810 # so use the C compiler's -n32 option if that helps.
4811 cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h. */
4817#include <sys/types.h>
4818 /* Check that off_t can represent 2**63 - 1 correctly.
4819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4820 since some C++ compilers masquerading as C compilers
4821 incorrectly reject 9223372036854775807. */
4822#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4824 && LARGE_OFF_T % 2147483647 == 1)
4825 ? 1 : -1];
4826int
4827main ()
4828{
4829
4830 ;
4831 return 0;
4832}
4833_ACEOF
4834 rm -f conftest.$ac_objext
4835if { (ac_try="$ac_compile"
4836case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839esac
4840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_compile") 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && {
4848 test -z "$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 } && test -s conftest.$ac_objext; then
4851 break
4852else
4853 echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856
4857fi
4858
4859rm -f core conftest.err conftest.$ac_objext
4860 CC="$CC -n32"
4861 rm -f conftest.$ac_objext
4862if { (ac_try="$ac_compile"
4863case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866esac
4867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_cv_sys_largefile_CC=' -n32'; break
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883
4884fi
4885
4886rm -f core conftest.err conftest.$ac_objext
4887 break
4888 done
4889 CC=$ac_save_CC
4890 rm -f conftest.$ac_ext
4891 fi
4892fi
4893{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4894echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4895 if test "$ac_cv_sys_largefile_CC" != no; then
4896 CC=$CC$ac_cv_sys_largefile_CC
4897 fi
4898
4899 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4900echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4901if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 while :; do
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
4911#include <sys/types.h>
4912 /* Check that off_t can represent 2**63 - 1 correctly.
4913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4914 since some C++ compilers masquerading as C compilers
4915 incorrectly reject 9223372036854775807. */
4916#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4918 && LARGE_OFF_T % 2147483647 == 1)
4919 ? 1 : -1];
4920int
4921main ()
4922{
4923
4924 ;
4925 return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4945 ac_cv_sys_file_offset_bits=no; break
4946else
4947 echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950
4951fi
4952
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960#define _FILE_OFFSET_BITS 64
4961#include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4969 ? 1 : -1];
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978rm -f conftest.$ac_objext
4979if { (ac_try="$ac_compile"
4980case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983esac
4984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4995 ac_cv_sys_file_offset_bits=64; break
4996else
4997 echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000
5001fi
5002
5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_cv_sys_file_offset_bits=unknown
5005 break
5006done
5007fi
5008{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5009echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5010case $ac_cv_sys_file_offset_bits in #(
5011 no | unknown) ;;
5012 *)
5013cat >>confdefs.h <<_ACEOF
5014#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5015_ACEOF
5016;;
5017esac
5018rm -f conftest*
5019 if test $ac_cv_sys_file_offset_bits = unknown; then
5020 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5021echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5022if test "${ac_cv_sys_large_files+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025 while :; do
5026 cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
5032#include <sys/types.h>
5033 /* Check that off_t can represent 2**63 - 1 correctly.
5034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5035 since some C++ compilers masquerading as C compilers
5036 incorrectly reject 9223372036854775807. */
5037#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5039 && LARGE_OFF_T % 2147483647 == 1)
5040 ? 1 : -1];
5041int
5042main ()
5043{
5044
5045 ;
5046 return 0;
5047}
5048_ACEOF
5049rm -f conftest.$ac_objext
5050if { (ac_try="$ac_compile"
5051case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_sys_large_files=no; break
5067else
5068 echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071
5072fi
5073
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081#define _LARGE_FILES 1
5082#include <sys/types.h>
5083 /* Check that off_t can represent 2**63 - 1 correctly.
5084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5085 since some C++ compilers masquerading as C compilers
5086 incorrectly reject 9223372036854775807. */
5087#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5089 && LARGE_OFF_T % 2147483647 == 1)
5090 ? 1 : -1];
5091int
5092main ()
5093{
5094
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext
5100if { (ac_try="$ac_compile"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5116 ac_cv_sys_large_files=1; break
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121
5122fi
5123
5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 ac_cv_sys_large_files=unknown
5126 break
5127done
5128fi
5129{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5130echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5131case $ac_cv_sys_large_files in #(
5132 no | unknown) ;;
5133 *)
5134cat >>confdefs.h <<_ACEOF
5135#define _LARGE_FILES $ac_cv_sys_large_files
5136_ACEOF
5137;;
5138esac
5139rm -f conftest*
5140 fi
5141fi
5142
5143
5144if test -z "$AR" ; then
5145 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5146echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5147 { (exit 1); exit 1; }; }
5148fi
5149
5150# Use LOGIN_PROGRAM from environment if possible
5151if test ! -z "$LOGIN_PROGRAM" ; then
5152
5153cat >>confdefs.h <<_ACEOF
5154#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5155_ACEOF
5156
5157else
5158 # Search for login
5159 # Extract the first word of "login", so it can be a program name with args.
5160set dummy login; ac_word=$2
5161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 case $LOGIN_PROGRAM_FALLBACK in
5167 [\\/]* | ?:[\\/]*)
5168 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5169 ;;
5170 *)
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH
5173do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182done
5183done
5184IFS=$as_save_IFS
5185
5186 ;;
5187esac
5188fi
5189LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5190if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5191 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5192echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5193else
5194 { echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6; }
5196fi
5197
5198
5199 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5200 cat >>confdefs.h <<_ACEOF
5201#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5202_ACEOF
5203
5204 fi
5205fi
5206
5207# Extract the first word of "passwd", so it can be a program name with args.
5208set dummy passwd; ac_word=$2
5209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5211if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 case $PATH_PASSWD_PROG in
5215 [\\/]* | ?:[\\/]*)
5216 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5217 ;;
5218 *)
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230done
5231done
5232IFS=$as_save_IFS
5233
5234 ;;
5235esac
5236fi
5237PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5238if test -n "$PATH_PASSWD_PROG"; then
5239 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5240echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5241else
5242 { echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6; }
5244fi
5245
5246
5247if test ! -z "$PATH_PASSWD_PROG" ; then
5248
5249cat >>confdefs.h <<_ACEOF
5250#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5251_ACEOF
5252
5253fi
5254
5255if test -z "$LD" ; then
5256 LD=$CC
5257fi
5258
5259
5260{ echo "$as_me:$LINENO: checking for inline" >&5
5261echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5262if test "${ac_cv_c_inline+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 ac_cv_c_inline=no
5266for ac_kw in inline __inline__ __inline; do
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273#ifndef __cplusplus
5274typedef int foo_t;
5275static $ac_kw foo_t static_foo () {return 0; }
5276$ac_kw foo_t foo () {return 0; }
5277#endif
5278
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (ac_try="$ac_compile"
5282case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285esac
5286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_cv_c_inline=$ac_kw
5298else
5299 echo "$as_me: failed program was:" >&5
5300sed 's/^/| /' conftest.$ac_ext >&5
5301
5302
5303fi
5304
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 test "$ac_cv_c_inline" != no && break
5307done
5308
5309fi
5310{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5311echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5312
5313
5314case $ac_cv_c_inline in
5315 inline | yes) ;;
5316 *)
5317 case $ac_cv_c_inline in
5318 no) ac_val=;;
5319 *) ac_val=$ac_cv_c_inline;;
5320 esac
5321 cat >>confdefs.h <<_ACEOF
5322#ifndef __cplusplus
5323#define inline $ac_val
5324#endif
5325_ACEOF
5326 ;;
5327esac
5328
5329
5330{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5331echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5332if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 cat >conftest.$ac_ext <<_ACEOF
5336/* confdefs.h. */
5337_ACEOF
5338cat confdefs.h >>conftest.$ac_ext
5339cat >>conftest.$ac_ext <<_ACEOF
5340/* end confdefs.h. */
5341#include <limits.h>
5342
5343int
5344main ()
5345{
5346#ifndef LLONG_MAX
5347 (void) LLONG_MAX;
5348#endif
5349
5350 ;
5351 return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (ac_try="$ac_compile"
5356case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_cv_have_decl_LLONG_MAX=yes
5372else
5373 echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_cv_have_decl_LLONG_MAX=no
5377fi
5378
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380fi
5381{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5382echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5383if test $ac_cv_have_decl_LLONG_MAX = yes; then
5384 have_llong_max=1
5385fi
5386
5387
5388use_stack_protector=1
5389
5390# Check whether --with-stackprotect was given.
5391if test "${with_stackprotect+set}" = set; then
5392 withval=$with_stackprotect;
5393 if test "x$withval" = "xno"; then
5394 use_stack_protector=0
5395 fi
5396fi
5397
5398
5399if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5400 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5401 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5402 case $GCC_VER in
5403 1.*) no_attrib_nonnull=1 ;;
5404 2.8* | 2.9*)
5405 CFLAGS="$CFLAGS -Wsign-compare"
5406 no_attrib_nonnull=1
5407 ;;
5408 2.*) no_attrib_nonnull=1 ;;
5409 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5410 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;;
5411 *) ;;
5412 esac
5413
5414 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5415echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5416 saved_CFLAGS="$CFLAGS"
5417 CFLAGS="$CFLAGS -fno-builtin-memset"
5418 cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424
5425#include <string.h>
5426int main(void){char b[10]; memset(b, 0, sizeof(b));}
5427
5428_ACEOF
5429rm -f conftest.$ac_objext conftest$ac_exeext
5430if { (ac_try="$ac_link"
5431case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434esac
5435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_link") 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } && {
5443 test -z "$ac_c_werror_flag" ||
5444 test ! -s conftest.err
5445 } && test -s conftest$ac_exeext &&
5446 $as_test_x conftest$ac_exeext; then
5447 { echo "$as_me:$LINENO: result: yes" >&5
5448echo "${ECHO_T}yes" >&6; }
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 { echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6; }
5455 CFLAGS="$saved_CFLAGS"
5456
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460 conftest$ac_exeext conftest.$ac_ext
5461
5462 # -fstack-protector-all doesn't always work for some GCC versions
5463 # and/or platforms, so we test if we can. If it's not supported
5464 # on a give platform gcc will emit a warning so we use -Werror.
5465 if test "x$use_stack_protector" = "x1"; then
5466 for t in -fstack-protector-all -fstack-protector; do
5467 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5468echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5469 saved_CFLAGS="$CFLAGS"
5470 saved_LDFLAGS="$LDFLAGS"
5471 CFLAGS="$CFLAGS $t -Werror"
5472 LDFLAGS="$LDFLAGS $t -Werror"
5473 cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479
5480#include <stdlib.h>
5481int main(void){return 0;}
5482
5483_ACEOF
5484rm -f conftest.$ac_objext conftest$ac_exeext
5485if { (ac_try="$ac_link"
5486case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_link") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest$ac_exeext &&
5501 $as_test_x conftest$ac_exeext; then
5502 { echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6; }
5504 CFLAGS="$saved_CFLAGS $t"
5505 LDFLAGS="$saved_LDFLAGS $t"
5506 { echo "$as_me:$LINENO: checking if $t works" >&5
5507echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5508 if test "$cross_compiling" = yes; then
5509 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5510echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5511 break
5512
5513else
5514 cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
5520
5521#include <stdlib.h>
5522int main(void){exit(0);}
5523
5524_ACEOF
5525rm -f conftest$ac_exeext
5526if { (ac_try="$ac_link"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_link") 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5536 { (case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_try") 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 { echo "$as_me:$LINENO: result: yes" >&5
5546echo "${ECHO_T}yes" >&6; }
5547 break
5548else
5549 echo "$as_me: program exited with status $ac_status" >&5
5550echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553( exit $ac_status )
5554 { echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6; }
5556fi
5557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558fi
5559
5560
5561
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 { echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6; }
5568
5569fi
5570
5571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5572 conftest$ac_exeext conftest.$ac_ext
5573 CFLAGS="$saved_CFLAGS"
5574 LDFLAGS="$saved_LDFLAGS"
5575 done
5576 fi
5577
5578 if test -z "$have_llong_max"; then
5579 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5580 unset ac_cv_have_decl_LLONG_MAX
5581 saved_CFLAGS="$CFLAGS"
5582 CFLAGS="$CFLAGS -std=gnu99"
5583 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5584echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5585if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588 cat >conftest.$ac_ext <<_ACEOF
5589/* confdefs.h. */
5590_ACEOF
5591cat confdefs.h >>conftest.$ac_ext
5592cat >>conftest.$ac_ext <<_ACEOF
5593/* end confdefs.h. */
5594#include <limits.h>
5595
5596
5597int
5598main ()
5599{
5600#ifndef LLONG_MAX
5601 (void) LLONG_MAX;
5602#endif
5603
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (ac_try="$ac_compile"
5610case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613esac
5614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_c_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest.$ac_objext; then
5625 ac_cv_have_decl_LLONG_MAX=yes
5626else
5627 echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_cv_have_decl_LLONG_MAX=no
5631fi
5632
5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634fi
5635{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5636echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5637if test $ac_cv_have_decl_LLONG_MAX = yes; then
5638 have_llong_max=1
5639else
5640 CFLAGS="$saved_CFLAGS"
5641fi
5642
5643 fi
5644fi
5645
5646if test "x$no_attrib_nonnull" != "x1" ; then
5647
5648cat >>confdefs.h <<\_ACEOF
5649#define HAVE_ATTRIBUTE__NONNULL__ 1
5650_ACEOF
5651
5652fi
5653
5654
5655# Check whether --with-rpath was given.
5656if test "${with_rpath+set}" = set; then
5657 withval=$with_rpath;
5658 if test "x$withval" = "xno" ; then
5659 need_dash_r=""
5660 fi
5661 if test "x$withval" = "xyes" ; then
5662 need_dash_r=1
5663 fi
5664
5665
5666fi
5667
5668
5669# Allow user to specify flags
5670
5671# Check whether --with-cflags was given.
5672if test "${with_cflags+set}" = set; then
5673 withval=$with_cflags;
5674 if test -n "$withval" && test "x$withval" != "xno" && \
5675 test "x${withval}" != "xyes"; then
5676 CFLAGS="$CFLAGS $withval"
5677 fi
5678
5679
5680fi
5681
5682
5683# Check whether --with-cppflags was given.
5684if test "${with_cppflags+set}" = set; then
5685 withval=$with_cppflags;
5686 if test -n "$withval" && test "x$withval" != "xno" && \
5687 test "x${withval}" != "xyes"; then
5688 CPPFLAGS="$CPPFLAGS $withval"
5689 fi
5690
5691
5692fi
5693
5694
5695# Check whether --with-ldflags was given.
5696if test "${with_ldflags+set}" = set; then
5697 withval=$with_ldflags;
5698 if test -n "$withval" && test "x$withval" != "xno" && \
5699 test "x${withval}" != "xyes"; then
5700 LDFLAGS="$LDFLAGS $withval"
5701 fi
5702
5703
5704fi
5705
5706
5707# Check whether --with-libs was given.
5708if test "${with_libs+set}" = set; then
5709 withval=$with_libs;
5710 if test -n "$withval" && test "x$withval" != "xno" && \
5711 test "x${withval}" != "xyes"; then
5712 LIBS="$LIBS $withval"
5713 fi
5714
5715
5716fi
5717
5718
5719# Check whether --with-Werror was given.
5720if test "${with_Werror+set}" = set; then
5721 withval=$with_Werror;
5722 if test -n "$withval" && test "x$withval" != "xno"; then
5723 werror_flags="-Werror"
5724 if test "x${withval}" != "xyes"; then
5725 werror_flags="$withval"
5726 fi
5727 fi
5728
5729
5730fi
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797for ac_header in \
5798 bstring.h \
5799 crypt.h \
5800 crypto/sha2.h \
5801 dirent.h \
5802 endian.h \
5803 features.h \
5804 fcntl.h \
5805 floatingpoint.h \
5806 getopt.h \
5807 glob.h \
5808 ia.h \
5809 iaf.h \
5810 limits.h \
5811 login.h \
5812 maillock.h \
5813 ndir.h \
5814 net/if_tun.h \
5815 netdb.h \
5816 netgroup.h \
5817 pam/pam_appl.h \
5818 paths.h \
5819 poll.h \
5820 pty.h \
5821 readpassphrase.h \
5822 rpc/types.h \
5823 security/pam_appl.h \
5824 sha2.h \
5825 shadow.h \
5826 stddef.h \
5827 stdint.h \
5828 string.h \
5829 strings.h \
5830 sys/audit.h \
5831 sys/bitypes.h \
5832 sys/bsdtty.h \
5833 sys/cdefs.h \
5834 sys/dir.h \
5835 sys/mman.h \
5836 sys/mount.h \
5837 sys/ndir.h \
5838 sys/poll.h \
5839 sys/prctl.h \
5840 sys/pstat.h \
5841 sys/select.h \
5842 sys/stat.h \
5843 sys/stream.h \
5844 sys/stropts.h \
5845 sys/strtio.h \
5846 sys/statvfs.h \
5847 sys/sysmacros.h \
5848 sys/time.h \
5849 sys/timers.h \
5850 sys/un.h \
5851 time.h \
5852 tmpdir.h \
5853 ttyent.h \
5854 ucred.h \
5855 unistd.h \
5856 usersec.h \
5857 util.h \
5858 utime.h \
5859 utmp.h \
5860 utmpx.h \
5861 vis.h \
5862
5863do
5864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870fi
5871ac_res=`eval echo '${'$as_ac_Header'}'`
5872 { echo "$as_me:$LINENO: result: $ac_res" >&5
5873echo "${ECHO_T}$ac_res" >&6; }
5874else
5875 # Is the header compilable?
5876{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5878cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h. */
5884$ac_includes_default
5885#include <$ac_header>
5886_ACEOF
5887rm -f conftest.$ac_objext
5888if { (ac_try="$ac_compile"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && {
5901 test -z "$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5903 } && test -s conftest.$ac_objext; then
5904 ac_header_compiler=yes
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_header_compiler=no
5910fi
5911
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5914echo "${ECHO_T}$ac_header_compiler" >&6; }
5915
5916# Is the header present?
5917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5919cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925#include <$ac_header>
5926_ACEOF
5927if { (ac_try="$ac_cpp conftest.$ac_ext"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 }; then
5943 ac_header_preproc=yes
5944else
5945 echo "$as_me: failed program was:" >&5
5946sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_header_preproc=no
5949fi
5950
5951rm -f conftest.err conftest.$ac_ext
5952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5953echo "${ECHO_T}$ac_header_preproc" >&6; }
5954
5955# So? What about this header?
5956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5957 yes:no: )
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5962 ac_header_preproc=yes
5963 ;;
5964 no:yes:* )
5965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5977 ( cat <<\_ASBOX
5978## ------------------------------------------- ##
5979## Report this to openssh-unix-dev@mindrot.org ##
5980## ------------------------------------------- ##
5981_ASBOX
5982 ) | sed "s/^/$as_me: WARNING: /" >&2
5983 ;;
5984esac
5985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990 eval "$as_ac_Header=\$ac_header_preproc"
5991fi
5992ac_res=`eval echo '${'$as_ac_Header'}'`
5993 { echo "$as_me:$LINENO: result: $ac_res" >&5
5994echo "${ECHO_T}$ac_res" >&6; }
5995
5996fi
5997if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000_ACEOF
6001
6002fi
6003
6004done
6005
6006
6007# lastlog.h requires sys/time.h to be included first on Solaris
6008
6009for ac_header in lastlog.h
6010do
6011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017 cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h. */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h. */
6023
6024#ifdef HAVE_SYS_TIME_H
6025# include <sys/time.h>
6026#endif
6027
6028
6029#include <$ac_header>
6030_ACEOF
6031rm -f conftest.$ac_objext
6032if { (ac_try="$ac_compile"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest.$ac_objext; then
6048 eval "$as_ac_Header=yes"
6049else
6050 echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 eval "$as_ac_Header=no"
6054fi
6055
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058ac_res=`eval echo '${'$as_ac_Header'}'`
6059 { echo "$as_me:$LINENO: result: $ac_res" >&5
6060echo "${ECHO_T}$ac_res" >&6; }
6061if test `eval echo '${'$as_ac_Header'}'` = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064_ACEOF
6065
6066fi
6067
6068done
6069
6070
6071# sys/ptms.h requires sys/stream.h to be included first on Solaris
6072
6073for ac_header in sys/ptms.h
6074do
6075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081 cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
6087
6088#ifdef HAVE_SYS_STREAM_H
6089# include <sys/stream.h>
6090#endif
6091
6092
6093#include <$ac_header>
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (ac_try="$ac_compile"
6097case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100esac
6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && {
6109 test -z "$ac_c_werror_flag" ||
6110 test ! -s conftest.err
6111 } && test -s conftest.$ac_objext; then
6112 eval "$as_ac_Header=yes"
6113else
6114 echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 eval "$as_ac_Header=no"
6118fi
6119
6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121fi
6122ac_res=`eval echo '${'$as_ac_Header'}'`
6123 { echo "$as_me:$LINENO: result: $ac_res" >&5
6124echo "${ECHO_T}$ac_res" >&6; }
6125if test `eval echo '${'$as_ac_Header'}'` = yes; then
6126 cat >>confdefs.h <<_ACEOF
6127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6128_ACEOF
6129
6130fi
6131
6132done
6133
6134
6135# login_cap.h requires sys/types.h on NetBSD
6136
6137for ac_header in login_cap.h
6138do
6139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151
6152#include <sys/types.h>
6153
6154
6155#include <$ac_header>
6156_ACEOF
6157rm -f conftest.$ac_objext
6158if { (ac_try="$ac_compile"
6159case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162esac
6163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_compile") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest.$ac_objext; then
6174 eval "$as_ac_Header=yes"
6175else
6176 echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 eval "$as_ac_Header=no"
6180fi
6181
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183fi
6184ac_res=`eval echo '${'$as_ac_Header'}'`
6185 { echo "$as_me:$LINENO: result: $ac_res" >&5
6186echo "${ECHO_T}$ac_res" >&6; }
6187if test `eval echo '${'$as_ac_Header'}'` = yes; then
6188 cat >>confdefs.h <<_ACEOF
6189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6190_ACEOF
6191
6192fi
6193
6194done
6195
6196
6197# Messages for features tested for in target-specific section
6198SIA_MSG="no"
6199SPC_MSG="no"
6200
6201# Check for some target-specific stuff
6202case "$host" in
6203*-*-aix*)
6204 # Some versions of VAC won't allow macro redefinitions at
6205 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6206 # particularly with older versions of vac or xlc.
6207 # It also throws errors about null macro argments, but these are
6208 # not fatal.
6209 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6210echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6211 cat >conftest.$ac_ext <<_ACEOF
6212/* confdefs.h. */
6213_ACEOF
6214cat confdefs.h >>conftest.$ac_ext
6215cat >>conftest.$ac_ext <<_ACEOF
6216/* end confdefs.h. */
6217
6218#define testmacro foo
6219#define testmacro bar
6220int main(void) { exit(0); }
6221
6222_ACEOF
6223rm -f conftest.$ac_objext
6224if { (ac_try="$ac_compile"
6225case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228esac
6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 { echo "$as_me:$LINENO: result: yes" >&5
6241echo "${ECHO_T}yes" >&6; }
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 { echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6; }
6248 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6249 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6250 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6251 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6252
6253
6254fi
6255
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257
6258 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6259echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6260 if (test -z "$blibpath"); then
6261 blibpath="/usr/lib:/lib"
6262 fi
6263 saved_LDFLAGS="$LDFLAGS"
6264 if test "$GCC" = "yes"; then
6265 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6266 else
6267 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6268 fi
6269 for tryflags in $flags ;do
6270 if (test -z "$blibflags"); then
6271 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6272 cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h. */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h. */
6278
6279int
6280main ()
6281{
6282
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (ac_try="$ac_link"
6289case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_link") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && {
6301 test -z "$ac_c_werror_flag" ||
6302 test ! -s conftest.err
6303 } && test -s conftest$ac_exeext &&
6304 $as_test_x conftest$ac_exeext; then
6305 blibflags=$tryflags
6306else
6307 echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310
6311fi
6312
6313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6314 conftest$ac_exeext conftest.$ac_ext
6315 fi
6316 done
6317 if (test -z "$blibflags"); then
6318 { echo "$as_me:$LINENO: result: not found" >&5
6319echo "${ECHO_T}not found" >&6; }
6320 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6321echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6322 { (exit 1); exit 1; }; }
6323 else
6324 { echo "$as_me:$LINENO: result: $blibflags" >&5
6325echo "${ECHO_T}$blibflags" >&6; }
6326 fi
6327 LDFLAGS="$saved_LDFLAGS"
6328 { echo "$as_me:$LINENO: checking for authenticate" >&5
6329echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6330if test "${ac_cv_func_authenticate+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333 cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
6339/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6341#define authenticate innocuous_authenticate
6342
6343/* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char authenticate (); below.
6345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346 <limits.h> exists even on freestanding compilers. */
6347
6348#ifdef __STDC__
6349# include <limits.h>
6350#else
6351# include <assert.h>
6352#endif
6353
6354#undef authenticate
6355
6356/* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply. */
6359#ifdef __cplusplus
6360extern "C"
6361#endif
6362char authenticate ();
6363/* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366#if defined __stub_authenticate || defined __stub___authenticate
6367choke me
6368#endif
6369
6370int
6371main ()
6372{
6373return authenticate ();
6374 ;
6375 return 0;
6376}
6377_ACEOF
6378rm -f conftest.$ac_objext conftest$ac_exeext
6379if { (ac_try="$ac_link"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_link") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest$ac_exeext &&
6395 $as_test_x conftest$ac_exeext; then
6396 ac_cv_func_authenticate=yes
6397else
6398 echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 ac_cv_func_authenticate=no
6402fi
6403
6404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6405 conftest$ac_exeext conftest.$ac_ext
6406fi
6407{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6408echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6409if test $ac_cv_func_authenticate = yes; then
6410
6411cat >>confdefs.h <<\_ACEOF
6412#define WITH_AIXAUTHENTICATE 1
6413_ACEOF
6414
6415else
6416 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6417echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6418if test "${ac_cv_lib_s_authenticate+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421 ac_check_lib_save_LIBS=$LIBS
6422LIBS="-ls $LIBS"
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h. */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */
6429
6430/* Override any GCC internal prototype to avoid an error.
6431 Use char because int might match the return type of a GCC
6432 builtin and then its argument prototype would still apply. */
6433#ifdef __cplusplus
6434extern "C"
6435#endif
6436char authenticate ();
6437int
6438main ()
6439{
6440return authenticate ();
6441 ;
6442 return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
6446if { (ac_try="$ac_link"
6447case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_link") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest$ac_exeext &&
6462 $as_test_x conftest$ac_exeext; then
6463 ac_cv_lib_s_authenticate=yes
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_cv_lib_s_authenticate=no
6469fi
6470
6471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6472 conftest$ac_exeext conftest.$ac_ext
6473LIBS=$ac_check_lib_save_LIBS
6474fi
6475{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6476echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6477if test $ac_cv_lib_s_authenticate = yes; then
6478 cat >>confdefs.h <<\_ACEOF
6479#define WITH_AIXAUTHENTICATE 1
6480_ACEOF
6481
6482 LIBS="$LIBS -ls"
6483
6484fi
6485
6486
6487fi
6488
6489 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6490echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6491if test "${ac_cv_have_decl_authenticate+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494 cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
6500#include <usersec.h>
6501
6502int
6503main ()
6504{
6505#ifndef authenticate
6506 (void) authenticate;
6507#endif
6508
6509 ;
6510 return 0;
6511}
6512_ACEOF
6513rm -f conftest.$ac_objext
6514if { (ac_try="$ac_compile"
6515case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_compile") 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && {
6527 test -z "$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 } && test -s conftest.$ac_objext; then
6530 ac_cv_have_decl_authenticate=yes
6531else
6532 echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ac_cv_have_decl_authenticate=no
6536fi
6537
6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539fi
6540{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6541echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6542if test $ac_cv_have_decl_authenticate = yes; then
6543
6544cat >>confdefs.h <<_ACEOF
6545#define HAVE_DECL_AUTHENTICATE 1
6546_ACEOF
6547
6548
6549else
6550 cat >>confdefs.h <<_ACEOF
6551#define HAVE_DECL_AUTHENTICATE 0
6552_ACEOF
6553
6554
6555fi
6556{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6557echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6558if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h. */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h. */
6567#include <usersec.h>
6568
6569int
6570main ()
6571{
6572#ifndef loginrestrictions
6573 (void) loginrestrictions;
6574#endif
6575
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext
6581if { (ac_try="$ac_compile"
6582case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585esac
6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 ac_cv_have_decl_loginrestrictions=yes
6598else
6599 echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 ac_cv_have_decl_loginrestrictions=no
6603fi
6604
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606fi
6607{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6608echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6609if test $ac_cv_have_decl_loginrestrictions = yes; then
6610
6611cat >>confdefs.h <<_ACEOF
6612#define HAVE_DECL_LOGINRESTRICTIONS 1
6613_ACEOF
6614
6615
6616else
6617 cat >>confdefs.h <<_ACEOF
6618#define HAVE_DECL_LOGINRESTRICTIONS 0
6619_ACEOF
6620
6621
6622fi
6623{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6624echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6625if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628 cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h. */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h. */
6634#include <usersec.h>
6635
6636int
6637main ()
6638{
6639#ifndef loginsuccess
6640 (void) loginsuccess;
6641#endif
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647rm -f conftest.$ac_objext
6648if { (ac_try="$ac_compile"
6649case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_cv_have_decl_loginsuccess=yes
6665else
6666 echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 ac_cv_have_decl_loginsuccess=no
6670fi
6671
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6675echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6676if test $ac_cv_have_decl_loginsuccess = yes; then
6677
6678cat >>confdefs.h <<_ACEOF
6679#define HAVE_DECL_LOGINSUCCESS 1
6680_ACEOF
6681
6682
6683else
6684 cat >>confdefs.h <<_ACEOF
6685#define HAVE_DECL_LOGINSUCCESS 0
6686_ACEOF
6687
6688
6689fi
6690{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6691echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6692if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695 cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h. */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h. */
6701#include <usersec.h>
6702
6703int
6704main ()
6705{
6706#ifndef passwdexpired
6707 (void) passwdexpired;
6708#endif
6709
6710 ;
6711 return 0;
6712}
6713_ACEOF
6714rm -f conftest.$ac_objext
6715if { (ac_try="$ac_compile"
6716case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_compile") 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest.$ac_objext; then
6731 ac_cv_have_decl_passwdexpired=yes
6732else
6733 echo "$as_me: failed program was:" >&5
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 ac_cv_have_decl_passwdexpired=no
6737fi
6738
6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740fi
6741{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6742echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6743if test $ac_cv_have_decl_passwdexpired = yes; then
6744
6745cat >>confdefs.h <<_ACEOF
6746#define HAVE_DECL_PASSWDEXPIRED 1
6747_ACEOF
6748
6749
6750else
6751 cat >>confdefs.h <<_ACEOF
6752#define HAVE_DECL_PASSWDEXPIRED 0
6753_ACEOF
6754
6755
6756fi
6757{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6758echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6759if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761else
6762 cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h. */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h. */
6768#include <usersec.h>
6769
6770int
6771main ()
6772{
6773#ifndef setauthdb
6774 (void) setauthdb;
6775#endif
6776
6777 ;
6778 return 0;
6779}
6780_ACEOF
6781rm -f conftest.$ac_objext
6782if { (ac_try="$ac_compile"
6783case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786esac
6787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 ac_cv_have_decl_setauthdb=yes
6799else
6800 echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_cv_have_decl_setauthdb=no
6804fi
6805
6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807fi
6808{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6809echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6810if test $ac_cv_have_decl_setauthdb = yes; then
6811
6812cat >>confdefs.h <<_ACEOF
6813#define HAVE_DECL_SETAUTHDB 1
6814_ACEOF
6815
6816
6817else
6818 cat >>confdefs.h <<_ACEOF
6819#define HAVE_DECL_SETAUTHDB 0
6820_ACEOF
6821
6822
6823fi
6824
6825
6826 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6827echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6828if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831 cat >conftest.$ac_ext <<_ACEOF
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837#include <usersec.h>
6838
6839
6840int
6841main ()
6842{
6843#ifndef loginfailed
6844 (void) loginfailed;
6845#endif
6846
6847 ;
6848 return 0;
6849}
6850_ACEOF
6851rm -f conftest.$ac_objext
6852if { (ac_try="$ac_compile"
6853case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856esac
6857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
6868 ac_cv_have_decl_loginfailed=yes
6869else
6870 echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 ac_cv_have_decl_loginfailed=no
6874fi
6875
6876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877fi
6878{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6879echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6880if test $ac_cv_have_decl_loginfailed = yes; then
6881
6882cat >>confdefs.h <<_ACEOF
6883#define HAVE_DECL_LOGINFAILED 1
6884_ACEOF
6885
6886{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6887echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6888 cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h. */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h. */
6894#include <usersec.h>
6895int
6896main ()
6897{
6898(void)loginfailed("user","host","tty",0);
6899 ;
6900 return 0;
6901}
6902_ACEOF
6903rm -f conftest.$ac_objext
6904if { (ac_try="$ac_compile"
6905case "(($ac_try" in
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6908esac
6909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910 (eval "$ac_compile") 2>conftest.er1
6911 ac_status=$?
6912 grep -v '^ *+' conftest.er1 >conftest.err
6913 rm -f conftest.er1
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } && {
6917 test -z "$ac_c_werror_flag" ||
6918 test ! -s conftest.err
6919 } && test -s conftest.$ac_objext; then
6920 { echo "$as_me:$LINENO: result: yes" >&5
6921echo "${ECHO_T}yes" >&6; }
6922
6923cat >>confdefs.h <<\_ACEOF
6924#define AIX_LOGINFAILED_4ARG 1
6925_ACEOF
6926
6927else
6928 echo "$as_me: failed program was:" >&5
6929sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
6933
6934fi
6935
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937else
6938 cat >>confdefs.h <<_ACEOF
6939#define HAVE_DECL_LOGINFAILED 0
6940_ACEOF
6941
6942
6943fi
6944
6945
6946
6947
6948for ac_func in getgrset setauthdb
6949do
6950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 cat >conftest.$ac_ext <<_ACEOF
6957/* confdefs.h. */
6958_ACEOF
6959cat confdefs.h >>conftest.$ac_ext
6960cat >>conftest.$ac_ext <<_ACEOF
6961/* end confdefs.h. */
6962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6964#define $ac_func innocuous_$ac_func
6965
6966/* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char $ac_func (); below.
6968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969 <limits.h> exists even on freestanding compilers. */
6970
6971#ifdef __STDC__
6972# include <limits.h>
6973#else
6974# include <assert.h>
6975#endif
6976
6977#undef $ac_func
6978
6979/* Override any GCC internal prototype to avoid an error.
6980 Use char because int might match the return type of a GCC
6981 builtin and then its argument prototype would still apply. */
6982#ifdef __cplusplus
6983extern "C"
6984#endif
6985char $ac_func ();
6986/* The GNU C library defines this for functions which it implements
6987 to always fail with ENOSYS. Some functions are actually named
6988 something starting with __ and the normal name is an alias. */
6989#if defined __stub_$ac_func || defined __stub___$ac_func
6990choke me
6991#endif
6992
6993int
6994main ()
6995{
6996return $ac_func ();
6997 ;
6998 return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext conftest$ac_exeext
7002if { (ac_try="$ac_link"
7003case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006esac
7007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_link") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest$ac_exeext &&
7018 $as_test_x conftest$ac_exeext; then
7019 eval "$as_ac_var=yes"
7020else
7021 echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 eval "$as_ac_var=no"
7025fi
7026
7027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7028 conftest$ac_exeext conftest.$ac_ext
7029fi
7030ac_res=`eval echo '${'$as_ac_var'}'`
7031 { echo "$as_me:$LINENO: result: $ac_res" >&5
7032echo "${ECHO_T}$ac_res" >&6; }
7033if test `eval echo '${'$as_ac_var'}'` = yes; then
7034 cat >>confdefs.h <<_ACEOF
7035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7036_ACEOF
7037
7038fi
7039done
7040
7041 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7042echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
7043if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
7052 #include <limits.h>
7053 #include <fcntl.h>
7054
7055
7056int
7057main ()
7058{
7059#ifndef F_CLOSEM
7060 (void) F_CLOSEM;
7061#endif
7062
7063 ;
7064 return 0;
7065}
7066_ACEOF
7067rm -f conftest.$ac_objext
7068if { (ac_try="$ac_compile"
7069case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_have_decl_F_CLOSEM=yes
7085else
7086 echo "$as_me: failed program was:" >&5
7087sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ac_cv_have_decl_F_CLOSEM=no
7090fi
7091
7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093fi
7094{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7095echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7096if test $ac_cv_have_decl_F_CLOSEM = yes; then
7097
7098cat >>confdefs.h <<\_ACEOF
7099#define HAVE_FCNTL_CLOSEM 1
7100_ACEOF
7101
7102fi
7103
7104 check_for_aix_broken_getaddrinfo=1
7105
7106cat >>confdefs.h <<\_ACEOF
7107#define BROKEN_REALPATH 1
7108_ACEOF
7109
7110
7111cat >>confdefs.h <<\_ACEOF
7112#define SETEUID_BREAKS_SETUID 1
7113_ACEOF
7114
7115
7116cat >>confdefs.h <<\_ACEOF
7117#define BROKEN_SETREUID 1
7118_ACEOF
7119
7120
7121cat >>confdefs.h <<\_ACEOF
7122#define BROKEN_SETREGID 1
7123_ACEOF
7124
7125
7126cat >>confdefs.h <<\_ACEOF
7127#define DISABLE_LASTLOG 1
7128_ACEOF
7129
7130
7131cat >>confdefs.h <<\_ACEOF
7132#define LOGIN_NEEDS_UTMPX 1
7133_ACEOF
7134
7135
7136cat >>confdefs.h <<\_ACEOF
7137#define SPT_TYPE SPT_REUSEARGV
7138_ACEOF
7139
7140
7141cat >>confdefs.h <<\_ACEOF
7142#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7143_ACEOF
7144
7145
7146cat >>confdefs.h <<\_ACEOF
7147#define PTY_ZEROREAD 1
7148_ACEOF
7149
7150 ;;
7151*-*-cygwin*)
7152 check_for_libcrypt_later=1
7153 LIBS="$LIBS /usr/lib/textreadmode.o"
7154
7155cat >>confdefs.h <<\_ACEOF
7156#define HAVE_CYGWIN 1
7157_ACEOF
7158
7159
7160cat >>confdefs.h <<\_ACEOF
7161#define USE_PIPES 1
7162_ACEOF
7163
7164
7165cat >>confdefs.h <<\_ACEOF
7166#define DISABLE_SHADOW 1
7167_ACEOF
7168
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define IP_TOS_IS_BROKEN 1
7172_ACEOF
7173
7174
7175cat >>confdefs.h <<\_ACEOF
7176#define NO_X11_UNIX_SOCKETS 1
7177_ACEOF
7178
7179
7180cat >>confdefs.h <<\_ACEOF
7181#define NO_IPPORT_RESERVED_CONCEPT 1
7182_ACEOF
7183
7184
7185cat >>confdefs.h <<\_ACEOF
7186#define DISABLE_FD_PASSING 1
7187_ACEOF
7188
7189 ;;
7190*-*-dgux*)
7191 cat >>confdefs.h <<\_ACEOF
7192#define IP_TOS_IS_BROKEN 1
7193_ACEOF
7194
7195 cat >>confdefs.h <<\_ACEOF
7196#define SETEUID_BREAKS_SETUID 1
7197_ACEOF
7198
7199 cat >>confdefs.h <<\_ACEOF
7200#define BROKEN_SETREUID 1
7201_ACEOF
7202
7203 cat >>confdefs.h <<\_ACEOF
7204#define BROKEN_SETREGID 1
7205_ACEOF
7206
7207 ;;
7208*-*-darwin*)
7209 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7210echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7211 if test "$cross_compiling" = yes; then
7212 { echo "$as_me:$LINENO: result: assume it is working" >&5
7213echo "${ECHO_T}assume it is working" >&6; }
7214else
7215 cat >conftest.$ac_ext <<_ACEOF
7216/* confdefs.h. */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h. */
7221#include <mach-o/dyld.h>
7222main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7223 exit(0);
7224 else
7225 exit(1);
7226}
7227_ACEOF
7228rm -f conftest$ac_exeext
7229if { (ac_try="$ac_link"
7230case "(($ac_try" in
7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232 *) ac_try_echo=$ac_try;;
7233esac
7234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235 (eval "$ac_link") 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7239 { (case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_try") 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 { echo "$as_me:$LINENO: result: working" >&5
7249echo "${ECHO_T}working" >&6; }
7250else
7251 echo "$as_me: program exited with status $ac_status" >&5
7252echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
7255( exit $ac_status )
7256{ echo "$as_me:$LINENO: result: buggy" >&5
7257echo "${ECHO_T}buggy" >&6; }
7258
7259cat >>confdefs.h <<\_ACEOF
7260#define BROKEN_GETADDRINFO 1
7261_ACEOF
7262
7263fi
7264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7265fi
7266
7267
7268 cat >>confdefs.h <<\_ACEOF
7269#define SETEUID_BREAKS_SETUID 1
7270_ACEOF
7271
7272 cat >>confdefs.h <<\_ACEOF
7273#define BROKEN_SETREUID 1
7274_ACEOF
7275
7276 cat >>confdefs.h <<\_ACEOF
7277#define BROKEN_SETREGID 1
7278_ACEOF
7279
7280
7281cat >>confdefs.h <<\_ACEOF
7282#define BROKEN_GLOB 1
7283_ACEOF
7284
7285
7286cat >>confdefs.h <<_ACEOF
7287#define BIND_8_COMPAT 1
7288_ACEOF
7289
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define SSH_TUN_FREEBSD 1
7293_ACEOF
7294
7295
7296cat >>confdefs.h <<\_ACEOF
7297#define SSH_TUN_COMPAT_AF 1
7298_ACEOF
7299
7300
7301cat >>confdefs.h <<\_ACEOF
7302#define SSH_TUN_PREPEND_AF 1
7303_ACEOF
7304
7305
7306 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7307echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7308if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 cat >conftest.$ac_ext <<_ACEOF
7312/* confdefs.h. */
7313_ACEOF
7314cat confdefs.h >>conftest.$ac_ext
7315cat >>conftest.$ac_ext <<_ACEOF
7316/* end confdefs.h. */
7317$ac_includes_default
7318int
7319main ()
7320{
7321#ifndef AU_IPv4
7322 (void) AU_IPv4;
7323#endif
7324
7325 ;
7326 return 0;
7327}
7328_ACEOF
7329rm -f conftest.$ac_objext
7330if { (ac_try="$ac_compile"
7331case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334esac
7335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_have_decl_AU_IPv4=yes
7347else
7348 echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ac_cv_have_decl_AU_IPv4=no
7352fi
7353
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355fi
7356{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7357echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7358if test $ac_cv_have_decl_AU_IPv4 = yes; then
7359 :
7360else
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define AU_IPv4 0
7364_ACEOF
7365
7366 #include <bsm/audit.h>
7367
7368fi
7369
7370 ;;
7371*-*-dragonfly*)
7372 SSHDLIBS="$SSHDLIBS -lcrypt"
7373 ;;
7374*-*-hpux*)
7375 # first we define all of the options common to all HP-UX releases
7376 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7377 IPADDR_IN_DISPLAY=yes
7378 cat >>confdefs.h <<\_ACEOF
7379#define USE_PIPES 1
7380_ACEOF
7381
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define LOGIN_NO_ENDOPT 1
7385_ACEOF
7386
7387 cat >>confdefs.h <<\_ACEOF
7388#define LOGIN_NEEDS_UTMPX 1
7389_ACEOF
7390
7391
7392cat >>confdefs.h <<\_ACEOF
7393#define LOCKED_PASSWD_STRING "*"
7394_ACEOF
7395
7396 cat >>confdefs.h <<\_ACEOF
7397#define SPT_TYPE SPT_PSTAT
7398_ACEOF
7399
7400 MAIL="/var/mail/username"
7401 LIBS="$LIBS -lsec"
7402
7403{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7404echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7405if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 ac_check_lib_save_LIBS=$LIBS
7409LIBS="-lxnet $LIBS"
7410cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h. */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h. */
7416
7417/* Override any GCC internal prototype to avoid an error.
7418 Use char because int might match the return type of a GCC
7419 builtin and then its argument prototype would still apply. */
7420#ifdef __cplusplus
7421extern "C"
7422#endif
7423char t_error ();
7424int
7425main ()
7426{
7427return t_error ();
7428 ;
7429 return 0;
7430}
7431_ACEOF
7432rm -f conftest.$ac_objext conftest$ac_exeext
7433if { (ac_try="$ac_link"
7434case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437esac
7438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_link") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest$ac_exeext &&
7449 $as_test_x conftest$ac_exeext; then
7450 ac_cv_lib_xnet_t_error=yes
7451else
7452 echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ac_cv_lib_xnet_t_error=no
7456fi
7457
7458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7459 conftest$ac_exeext conftest.$ac_ext
7460LIBS=$ac_check_lib_save_LIBS
7461fi
7462{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7463echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7464if test $ac_cv_lib_xnet_t_error = yes; then
7465 cat >>confdefs.h <<_ACEOF
7466#define HAVE_LIBXNET 1
7467_ACEOF
7468
7469 LIBS="-lxnet $LIBS"
7470
7471else
7472 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7473echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7474 { (exit 1); exit 1; }; }
7475fi
7476
7477
7478 # next, we define all of the options specific to major releases
7479 case "$host" in
7480 *-*-hpux10*)
7481 if test -z "$GCC"; then
7482 CFLAGS="$CFLAGS -Ae"
7483 fi
7484 ;;
7485 *-*-hpux11*)
7486
7487cat >>confdefs.h <<\_ACEOF
7488#define PAM_SUN_CODEBASE 1
7489_ACEOF
7490
7491
7492cat >>confdefs.h <<\_ACEOF
7493#define DISABLE_UTMP 1
7494_ACEOF
7495
7496
7497cat >>confdefs.h <<\_ACEOF
7498#define USE_BTMP 1
7499_ACEOF
7500
7501 check_for_hpux_broken_getaddrinfo=1
7502 check_for_conflicting_getspnam=1
7503 ;;
7504 esac
7505
7506 # lastly, we define options specific to minor releases
7507 case "$host" in
7508 *-*-hpux10.26)
7509
7510cat >>confdefs.h <<\_ACEOF
7511#define HAVE_SECUREWARE 1
7512_ACEOF
7513
7514 disable_ptmx_check=yes
7515 LIBS="$LIBS -lsecpw"
7516 ;;
7517 esac
7518 ;;
7519*-*-irix5*)
7520 PATH="$PATH:/usr/etc"
7521
7522cat >>confdefs.h <<\_ACEOF
7523#define BROKEN_INET_NTOA 1
7524_ACEOF
7525
7526 cat >>confdefs.h <<\_ACEOF
7527#define SETEUID_BREAKS_SETUID 1
7528_ACEOF
7529
7530 cat >>confdefs.h <<\_ACEOF
7531#define BROKEN_SETREUID 1
7532_ACEOF
7533
7534 cat >>confdefs.h <<\_ACEOF
7535#define BROKEN_SETREGID 1
7536_ACEOF
7537
7538
7539cat >>confdefs.h <<\_ACEOF
7540#define WITH_ABBREV_NO_TTY 1
7541_ACEOF
7542
7543 cat >>confdefs.h <<\_ACEOF
7544#define LOCKED_PASSWD_STRING "*LK*"
7545_ACEOF
7546
7547 ;;
7548*-*-irix6*)
7549 PATH="$PATH:/usr/etc"
7550
7551cat >>confdefs.h <<\_ACEOF
7552#define WITH_IRIX_ARRAY 1
7553_ACEOF
7554
7555
7556cat >>confdefs.h <<\_ACEOF
7557#define WITH_IRIX_PROJECT 1
7558_ACEOF
7559
7560
7561cat >>confdefs.h <<\_ACEOF
7562#define WITH_IRIX_AUDIT 1
7563_ACEOF
7564
7565 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7566echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7567if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
7576/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7578#define jlimit_startjob innocuous_jlimit_startjob
7579
7580/* System header to define __stub macros and hopefully few prototypes,
7581 which can conflict with char jlimit_startjob (); below.
7582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7583 <limits.h> exists even on freestanding compilers. */
7584
7585#ifdef __STDC__
7586# include <limits.h>
7587#else
7588# include <assert.h>
7589#endif
7590
7591#undef jlimit_startjob
7592
7593/* Override any GCC internal prototype to avoid an error.
7594 Use char because int might match the return type of a GCC
7595 builtin and then its argument prototype would still apply. */
7596#ifdef __cplusplus
7597extern "C"
7598#endif
7599char jlimit_startjob ();
7600/* The GNU C library defines this for functions which it implements
7601 to always fail with ENOSYS. Some functions are actually named
7602 something starting with __ and the normal name is an alias. */
7603#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7604choke me
7605#endif
7606
7607int
7608main ()
7609{
7610return jlimit_startjob ();
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext conftest$ac_exeext
7616if { (ac_try="$ac_link"
7617case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620esac
7621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_link") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest$ac_exeext &&
7632 $as_test_x conftest$ac_exeext; then
7633 ac_cv_func_jlimit_startjob=yes
7634else
7635 echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_cv_func_jlimit_startjob=no
7639fi
7640
7641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642 conftest$ac_exeext conftest.$ac_ext
7643fi
7644{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7645echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7646if test $ac_cv_func_jlimit_startjob = yes; then
7647
7648cat >>confdefs.h <<\_ACEOF
7649#define WITH_IRIX_JOBS 1
7650_ACEOF
7651
7652fi
7653
7654 cat >>confdefs.h <<\_ACEOF
7655#define BROKEN_INET_NTOA 1
7656_ACEOF
7657
7658 cat >>confdefs.h <<\_ACEOF
7659#define SETEUID_BREAKS_SETUID 1
7660_ACEOF
7661
7662 cat >>confdefs.h <<\_ACEOF
7663#define BROKEN_SETREUID 1
7664_ACEOF
7665
7666 cat >>confdefs.h <<\_ACEOF
7667#define BROKEN_SETREGID 1
7668_ACEOF
7669
7670
7671cat >>confdefs.h <<\_ACEOF
7672#define BROKEN_UPDWTMPX 1
7673_ACEOF
7674
7675 cat >>confdefs.h <<\_ACEOF
7676#define WITH_ABBREV_NO_TTY 1
7677_ACEOF
7678
7679 cat >>confdefs.h <<\_ACEOF
7680#define LOCKED_PASSWD_STRING "*LK*"
7681_ACEOF
7682
7683 ;;
7684*-*-linux*)
7685 no_dev_ptmx=1
7686 check_for_libcrypt_later=1
7687 check_for_openpty_ctty_bug=1
7688
7689cat >>confdefs.h <<\_ACEOF
7690#define PAM_TTY_KLUDGE 1
7691_ACEOF
7692
7693
7694cat >>confdefs.h <<\_ACEOF
7695#define LOCKED_PASSWD_PREFIX "!"
7696_ACEOF
7697
7698 cat >>confdefs.h <<\_ACEOF
7699#define SPT_TYPE SPT_REUSEARGV
7700_ACEOF
7701
7702
7703cat >>confdefs.h <<\_ACEOF
7704#define LINK_OPNOTSUPP_ERRNO EPERM
7705_ACEOF
7706
7707
7708cat >>confdefs.h <<\_ACEOF
7709#define _PATH_BTMP "/var/log/btmp"
7710_ACEOF
7711
7712 cat >>confdefs.h <<\_ACEOF
7713#define USE_BTMP 1
7714_ACEOF
7715
7716 inet6_default_4in6=yes
7717 case `uname -r` in
7718 1.*|2.0.*)
7719
7720cat >>confdefs.h <<\_ACEOF
7721#define BROKEN_CMSG_TYPE 1
7722_ACEOF
7723
7724 ;;
7725 esac
7726 # tun(4) forwarding compat code
7727
7728for ac_header in linux/if_tun.h
7729do
7730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736fi
7737ac_res=`eval echo '${'$as_ac_Header'}'`
7738 { echo "$as_me:$LINENO: result: $ac_res" >&5
7739echo "${ECHO_T}$ac_res" >&6; }
7740else
7741 # Is the header compilable?
7742{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7744cat >conftest.$ac_ext <<_ACEOF
7745/* confdefs.h. */
7746_ACEOF
7747cat confdefs.h >>conftest.$ac_ext
7748cat >>conftest.$ac_ext <<_ACEOF
7749/* end confdefs.h. */
7750$ac_includes_default
7751#include <$ac_header>
7752_ACEOF
7753rm -f conftest.$ac_objext
7754if { (ac_try="$ac_compile"
7755case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758esac
7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_compile") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest.$ac_objext; then
7770 ac_header_compiler=yes
7771else
7772 echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_header_compiler=no
7776fi
7777
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7780echo "${ECHO_T}$ac_header_compiler" >&6; }
7781
7782# Is the header present?
7783{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7785cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h. */
7791#include <$ac_header>
7792_ACEOF
7793if { (ac_try="$ac_cpp conftest.$ac_ext"
7794case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797esac
7798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } >/dev/null && {
7806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 }; then
7809 ac_header_preproc=yes
7810else
7811 echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 ac_header_preproc=no
7815fi
7816
7817rm -f conftest.err conftest.$ac_ext
7818{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7819echo "${ECHO_T}$ac_header_preproc" >&6; }
7820
7821# So? What about this header?
7822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7823 yes:no: )
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7828 ac_header_preproc=yes
7829 ;;
7830 no:yes:* )
7831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7843 ( cat <<\_ASBOX
7844## ------------------------------------------- ##
7845## Report this to openssh-unix-dev@mindrot.org ##
7846## ------------------------------------------- ##
7847_ASBOX
7848 ) | sed "s/^/$as_me: WARNING: /" >&2
7849 ;;
7850esac
7851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 eval "$as_ac_Header=\$ac_header_preproc"
7857fi
7858ac_res=`eval echo '${'$as_ac_Header'}'`
7859 { echo "$as_me:$LINENO: result: $ac_res" >&5
7860echo "${ECHO_T}$ac_res" >&6; }
7861
7862fi
7863if test `eval echo '${'$as_ac_Header'}'` = yes; then
7864 cat >>confdefs.h <<_ACEOF
7865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866_ACEOF
7867
7868fi
7869
7870done
7871
7872 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7873
7874cat >>confdefs.h <<\_ACEOF
7875#define SSH_TUN_LINUX 1
7876_ACEOF
7877
7878
7879cat >>confdefs.h <<\_ACEOF
7880#define SSH_TUN_COMPAT_AF 1
7881_ACEOF
7882
7883
7884cat >>confdefs.h <<\_ACEOF
7885#define SSH_TUN_PREPEND_AF 1
7886_ACEOF
7887
7888 fi
7889 ;;
7890mips-sony-bsd|mips-sony-newsos4)
7891
7892cat >>confdefs.h <<\_ACEOF
7893#define NEED_SETPGRP 1
7894_ACEOF
7895
7896 SONY=1
7897 ;;
7898*-*-netbsd*)
7899 check_for_libcrypt_before=1
7900 if test "x$withval" != "xno" ; then
7901 need_dash_r=1
7902 fi
7903
7904cat >>confdefs.h <<\_ACEOF
7905#define SSH_TUN_FREEBSD 1
7906_ACEOF
7907
7908 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7909 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7910echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7911if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913fi
7914{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7915echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7916else
7917 # Is the header compilable?
7918{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7919echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7920cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h. */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h. */
7926$ac_includes_default
7927#include <net/if_tap.h>
7928_ACEOF
7929rm -f conftest.$ac_objext
7930if { (ac_try="$ac_compile"
7931case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934esac
7935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_header_compiler=yes
7947else
7948 echo "$as_me: failed program was:" >&5
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_header_compiler=no
7952fi
7953
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7956echo "${ECHO_T}$ac_header_compiler" >&6; }
7957
7958# Is the header present?
7959{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7960echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7961cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h. */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h. */
7967#include <net/if_tap.h>
7968_ACEOF
7969if { (ac_try="$ac_cpp conftest.$ac_ext"
7970case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973esac
7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } >/dev/null && {
7982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 }; then
7985 ac_header_preproc=yes
7986else
7987 echo "$as_me: failed program was:" >&5
7988sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_header_preproc=no
7991fi
7992
7993rm -f conftest.err conftest.$ac_ext
7994{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7995echo "${ECHO_T}$ac_header_preproc" >&6; }
7996
7997# So? What about this header?
7998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7999 yes:no: )
8000 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8001echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8002 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8003echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8004 ac_header_preproc=yes
8005 ;;
8006 no:yes:* )
8007 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8008echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8010echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8012echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8013 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8014echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8016echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8017 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8018echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8019 ( cat <<\_ASBOX
8020## ------------------------------------------- ##
8021## Report this to openssh-unix-dev@mindrot.org ##
8022## ------------------------------------------- ##
8023_ASBOX
8024 ) | sed "s/^/$as_me: WARNING: /" >&2
8025 ;;
8026esac
8027{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8028echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8029if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 ac_cv_header_net_if_tap_h=$ac_header_preproc
8033fi
8034{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8035echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8036
8037fi
8038if test $ac_cv_header_net_if_tap_h = yes; then
8039 :
8040else
8041
8042cat >>confdefs.h <<\_ACEOF
8043#define SSH_TUN_NO_L2 1
8044_ACEOF
8045
8046fi
8047
8048
8049
8050cat >>confdefs.h <<\_ACEOF
8051#define SSH_TUN_PREPEND_AF 1
8052_ACEOF
8053
8054 ;;
8055*-*-freebsd*)
8056 check_for_libcrypt_later=1
8057
8058cat >>confdefs.h <<\_ACEOF
8059#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8060_ACEOF
8061
8062
8063cat >>confdefs.h <<\_ACEOF
8064#define SSH_TUN_FREEBSD 1
8065_ACEOF
8066
8067 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8068 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8069echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8070if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072fi
8073{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8074echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8075else
8076 # Is the header compilable?
8077{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8078echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8079cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
8085$ac_includes_default
8086#include <net/if_tap.h>
8087_ACEOF
8088rm -f conftest.$ac_objext
8089if { (ac_try="$ac_compile"
8090case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093esac
8094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 ac_header_compiler=yes
8106else
8107 echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_header_compiler=no
8111fi
8112
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8115echo "${ECHO_T}$ac_header_compiler" >&6; }
8116
8117# Is the header present?
8118{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8119echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8120cat >conftest.$ac_ext <<_ACEOF
8121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
8126#include <net/if_tap.h>
8127_ACEOF
8128if { (ac_try="$ac_cpp conftest.$ac_ext"
8129case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } >/dev/null && {
8141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 }; then
8144 ac_header_preproc=yes
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_header_preproc=no
8150fi
8151
8152rm -f conftest.err conftest.$ac_ext
8153{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8154echo "${ECHO_T}$ac_header_preproc" >&6; }
8155
8156# So? What about this header?
8157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8158 yes:no: )
8159 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8160echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8162echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8163 ac_header_preproc=yes
8164 ;;
8165 no:yes:* )
8166 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8167echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8169echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8171echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8173echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8174 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8175echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8177echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8178 ( cat <<\_ASBOX
8179## ------------------------------------------- ##
8180## Report this to openssh-unix-dev@mindrot.org ##
8181## ------------------------------------------- ##
8182_ASBOX
8183 ) | sed "s/^/$as_me: WARNING: /" >&2
8184 ;;
8185esac
8186{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8187echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8188if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 ac_cv_header_net_if_tap_h=$ac_header_preproc
8192fi
8193{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8194echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8195
8196fi
8197if test $ac_cv_header_net_if_tap_h = yes; then
8198 :
8199else
8200
8201cat >>confdefs.h <<\_ACEOF
8202#define SSH_TUN_NO_L2 1
8203_ACEOF
8204
8205fi
8206
8207
8208
8209cat >>confdefs.h <<\_ACEOF
8210#define BROKEN_GLOB 1
8211_ACEOF
8212
8213 ;;
8214*-*-bsdi*)
8215 cat >>confdefs.h <<\_ACEOF
8216#define SETEUID_BREAKS_SETUID 1
8217_ACEOF
8218
8219 cat >>confdefs.h <<\_ACEOF
8220#define BROKEN_SETREUID 1
8221_ACEOF
8222
8223 cat >>confdefs.h <<\_ACEOF
8224#define BROKEN_SETREGID 1
8225_ACEOF
8226
8227 ;;
8228*-next-*)
8229 conf_lastlog_location="/usr/adm/lastlog"
8230 conf_utmp_location=/etc/utmp
8231 conf_wtmp_location=/usr/adm/wtmp
8232 MAIL=/usr/spool/mail
8233
8234cat >>confdefs.h <<\_ACEOF
8235#define HAVE_NEXT 1
8236_ACEOF
8237
8238 cat >>confdefs.h <<\_ACEOF
8239#define BROKEN_REALPATH 1
8240_ACEOF
8241
8242 cat >>confdefs.h <<\_ACEOF
8243#define USE_PIPES 1
8244_ACEOF
8245
8246
8247cat >>confdefs.h <<\_ACEOF
8248#define BROKEN_SAVED_UIDS 1
8249_ACEOF
8250
8251 ;;
8252*-*-openbsd*)
8253
8254cat >>confdefs.h <<\_ACEOF
8255#define HAVE_ATTRIBUTE__SENTINEL__ 1
8256_ACEOF
8257
8258
8259cat >>confdefs.h <<\_ACEOF
8260#define HAVE_ATTRIBUTE__BOUNDED__ 1
8261_ACEOF
8262
8263
8264cat >>confdefs.h <<\_ACEOF
8265#define SSH_TUN_OPENBSD 1
8266_ACEOF
8267
8268
8269cat >>confdefs.h <<\_ACEOF
8270#define SYSLOG_R_SAFE_IN_SIGHAND 1
8271_ACEOF
8272
8273 ;;
8274*-*-solaris*)
8275 if test "x$withval" != "xno" ; then
8276 need_dash_r=1
8277 fi
8278 cat >>confdefs.h <<\_ACEOF
8279#define PAM_SUN_CODEBASE 1
8280_ACEOF
8281
8282 cat >>confdefs.h <<\_ACEOF
8283#define LOGIN_NEEDS_UTMPX 1
8284_ACEOF
8285
8286
8287cat >>confdefs.h <<\_ACEOF
8288#define LOGIN_NEEDS_TERM 1
8289_ACEOF
8290
8291 cat >>confdefs.h <<\_ACEOF
8292#define PAM_TTY_KLUDGE 1
8293_ACEOF
8294
8295
8296cat >>confdefs.h <<\_ACEOF
8297#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8298_ACEOF
8299
8300 cat >>confdefs.h <<\_ACEOF
8301#define LOCKED_PASSWD_STRING "*LK*"
8302_ACEOF
8303
8304 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8305
8306cat >>confdefs.h <<\_ACEOF
8307#define SSHD_ACQUIRES_CTTY 1
8308_ACEOF
8309
8310
8311cat >>confdefs.h <<\_ACEOF
8312#define PASSWD_NEEDS_USERNAME 1
8313_ACEOF
8314
8315 external_path_file=/etc/default/login
8316 # hardwire lastlog location (can't detect it on some versions)
8317 conf_lastlog_location="/var/adm/lastlog"
8318 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8319echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8320 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8321 if test "$sol2ver" -ge 8; then
8322 { echo "$as_me:$LINENO: result: yes" >&5
8323echo "${ECHO_T}yes" >&6; }
8324 cat >>confdefs.h <<\_ACEOF
8325#define DISABLE_UTMP 1
8326_ACEOF
8327
8328
8329cat >>confdefs.h <<\_ACEOF
8330#define DISABLE_WTMP 1
8331_ACEOF
8332
8333 else
8334 { echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6; }
8336 fi
8337
8338# Check whether --with-solaris-contracts was given.
8339if test "${with_solaris_contracts+set}" = set; then
8340 withval=$with_solaris_contracts;
8341 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8342echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8343if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346 ac_check_lib_save_LIBS=$LIBS
8347LIBS="-lcontract $LIBS"
8348cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h. */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h. */
8354
8355/* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8358#ifdef __cplusplus
8359extern "C"
8360#endif
8361char ct_tmpl_activate ();
8362int
8363main ()
8364{
8365return ct_tmpl_activate ();
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (ac_try="$ac_link"
8372case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_link") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest$ac_exeext &&
8387 $as_test_x conftest$ac_exeext; then
8388 ac_cv_lib_contract_ct_tmpl_activate=yes
8389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 ac_cv_lib_contract_ct_tmpl_activate=no
8394fi
8395
8396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8397 conftest$ac_exeext conftest.$ac_ext
8398LIBS=$ac_check_lib_save_LIBS
8399fi
8400{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8401echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8402if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8403
8404cat >>confdefs.h <<\_ACEOF
8405#define USE_SOLARIS_PROCESS_CONTRACTS 1
8406_ACEOF
8407
8408 SSHDLIBS="$SSHDLIBS -lcontract"
8409
8410 SPC_MSG="yes"
8411fi
8412
8413
8414fi
8415
8416 ;;
8417*-*-sunos4*)
8418 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8419
8420for ac_func in getpwanam
8421do
8422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8423{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
8434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8436#define $ac_func innocuous_$ac_func
8437
8438/* System header to define __stub macros and hopefully few prototypes,
8439 which can conflict with char $ac_func (); below.
8440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8441 <limits.h> exists even on freestanding compilers. */
8442
8443#ifdef __STDC__
8444# include <limits.h>
8445#else
8446# include <assert.h>
8447#endif
8448
8449#undef $ac_func
8450
8451/* Override any GCC internal prototype to avoid an error.
8452 Use char because int might match the return type of a GCC
8453 builtin and then its argument prototype would still apply. */
8454#ifdef __cplusplus
8455extern "C"
8456#endif
8457char $ac_func ();
8458/* The GNU C library defines this for functions which it implements
8459 to always fail with ENOSYS. Some functions are actually named
8460 something starting with __ and the normal name is an alias. */
8461#if defined __stub_$ac_func || defined __stub___$ac_func
8462choke me
8463#endif
8464
8465int
8466main ()
8467{
8468return $ac_func ();
8469 ;
8470 return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext conftest$ac_exeext
8474if { (ac_try="$ac_link"
8475case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478esac
8479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_link") 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest$ac_exeext &&
8490 $as_test_x conftest$ac_exeext; then
8491 eval "$as_ac_var=yes"
8492else
8493 echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 eval "$as_ac_var=no"
8497fi
8498
8499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8500 conftest$ac_exeext conftest.$ac_ext
8501fi
8502ac_res=`eval echo '${'$as_ac_var'}'`
8503 { echo "$as_me:$LINENO: result: $ac_res" >&5
8504echo "${ECHO_T}$ac_res" >&6; }
8505if test `eval echo '${'$as_ac_var'}'` = yes; then
8506 cat >>confdefs.h <<_ACEOF
8507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8508_ACEOF
8509
8510fi
8511done
8512
8513 cat >>confdefs.h <<\_ACEOF
8514#define PAM_SUN_CODEBASE 1
8515_ACEOF
8516
8517 conf_utmp_location=/etc/utmp
8518 conf_wtmp_location=/var/adm/wtmp
8519 conf_lastlog_location=/var/adm/lastlog
8520 cat >>confdefs.h <<\_ACEOF
8521#define USE_PIPES 1
8522_ACEOF
8523
8524 ;;
8525*-ncr-sysv*)
8526 LIBS="$LIBS -lc89"
8527 cat >>confdefs.h <<\_ACEOF
8528#define USE_PIPES 1
8529_ACEOF
8530
8531 cat >>confdefs.h <<\_ACEOF
8532#define SSHD_ACQUIRES_CTTY 1
8533_ACEOF
8534
8535 cat >>confdefs.h <<\_ACEOF
8536#define SETEUID_BREAKS_SETUID 1
8537_ACEOF
8538
8539 cat >>confdefs.h <<\_ACEOF
8540#define BROKEN_SETREUID 1
8541_ACEOF
8542
8543 cat >>confdefs.h <<\_ACEOF
8544#define BROKEN_SETREGID 1
8545_ACEOF
8546
8547 ;;
8548*-sni-sysv*)
8549 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8550
8551{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8552echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8553if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556 ac_check_lib_save_LIBS=$LIBS
8557LIBS="-ldl $LIBS"
8558cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char dlsym ();
8572int
8573main ()
8574{
8575return dlsym ();
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580rm -f conftest.$ac_objext conftest$ac_exeext
8581if { (ac_try="$ac_link"
8582case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest$ac_exeext &&
8597 $as_test_x conftest$ac_exeext; then
8598 ac_cv_lib_dl_dlsym=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 ac_cv_lib_dl_dlsym=no
8604fi
8605
8606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607 conftest$ac_exeext conftest.$ac_ext
8608LIBS=$ac_check_lib_save_LIBS
8609fi
8610{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8611echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8612if test $ac_cv_lib_dl_dlsym = yes; then
8613 cat >>confdefs.h <<_ACEOF
8614#define HAVE_LIBDL 1
8615_ACEOF
8616
8617 LIBS="-ldl $LIBS"
8618
8619fi
8620
8621 # -lresolv needs to be at the end of LIBS or DNS lookups break
8622 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8623echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8624if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626else
8627 ac_check_lib_save_LIBS=$LIBS
8628LIBS="-lresolv $LIBS"
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635
8636/* Override any GCC internal prototype to avoid an error.
8637 Use char because int might match the return type of a GCC
8638 builtin and then its argument prototype would still apply. */
8639#ifdef __cplusplus
8640extern "C"
8641#endif
8642char res_query ();
8643int
8644main ()
8645{
8646return res_query ();
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext conftest$ac_exeext
8652if { (ac_try="$ac_link"
8653case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656esac
8657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_link") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest$ac_exeext &&
8668 $as_test_x conftest$ac_exeext; then
8669 ac_cv_lib_resolv_res_query=yes
8670else
8671 echo "$as_me: failed program was:" >&5
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_lib_resolv_res_query=no
8675fi
8676
8677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8678 conftest$ac_exeext conftest.$ac_ext
8679LIBS=$ac_check_lib_save_LIBS
8680fi
8681{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8682echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8683if test $ac_cv_lib_resolv_res_query = yes; then
8684 LIBS="$LIBS -lresolv"
8685fi
8686
8687 IPADDR_IN_DISPLAY=yes
8688 cat >>confdefs.h <<\_ACEOF
8689#define USE_PIPES 1
8690_ACEOF
8691
8692 cat >>confdefs.h <<\_ACEOF
8693#define IP_TOS_IS_BROKEN 1
8694_ACEOF
8695
8696 cat >>confdefs.h <<\_ACEOF
8697#define SETEUID_BREAKS_SETUID 1
8698_ACEOF
8699
8700 cat >>confdefs.h <<\_ACEOF
8701#define BROKEN_SETREUID 1
8702_ACEOF
8703
8704 cat >>confdefs.h <<\_ACEOF
8705#define BROKEN_SETREGID 1
8706_ACEOF
8707
8708 cat >>confdefs.h <<\_ACEOF
8709#define SSHD_ACQUIRES_CTTY 1
8710_ACEOF
8711
8712 external_path_file=/etc/default/login
8713 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8714 # Attention: always take care to bind libsocket and libnsl before libc,
8715 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8716 ;;
8717# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8718*-*-sysv4.2*)
8719 cat >>confdefs.h <<\_ACEOF
8720#define USE_PIPES 1
8721_ACEOF
8722
8723 cat >>confdefs.h <<\_ACEOF
8724#define SETEUID_BREAKS_SETUID 1
8725_ACEOF
8726
8727 cat >>confdefs.h <<\_ACEOF
8728#define BROKEN_SETREUID 1
8729_ACEOF
8730
8731 cat >>confdefs.h <<\_ACEOF
8732#define BROKEN_SETREGID 1
8733_ACEOF
8734
8735
8736cat >>confdefs.h <<\_ACEOF
8737#define PASSWD_NEEDS_USERNAME 1
8738_ACEOF
8739
8740 cat >>confdefs.h <<\_ACEOF
8741#define LOCKED_PASSWD_STRING "*LK*"
8742_ACEOF
8743
8744 ;;
8745# UnixWare 7.x, OpenUNIX 8
8746*-*-sysv5*)
8747 check_for_libcrypt_later=1
8748
8749cat >>confdefs.h <<\_ACEOF
8750#define UNIXWARE_LONG_PASSWORDS 1
8751_ACEOF
8752
8753 cat >>confdefs.h <<\_ACEOF
8754#define USE_PIPES 1
8755_ACEOF
8756
8757 cat >>confdefs.h <<\_ACEOF
8758#define SETEUID_BREAKS_SETUID 1
8759_ACEOF
8760
8761 cat >>confdefs.h <<\_ACEOF
8762#define BROKEN_SETREUID 1
8763_ACEOF
8764
8765 cat >>confdefs.h <<\_ACEOF
8766#define BROKEN_SETREGID 1
8767_ACEOF
8768
8769 cat >>confdefs.h <<\_ACEOF
8770#define PASSWD_NEEDS_USERNAME 1
8771_ACEOF
8772
8773 case "$host" in
8774 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8775 TEST_SHELL=/u95/bin/sh
8776
8777cat >>confdefs.h <<\_ACEOF
8778#define BROKEN_LIBIAF 1
8779_ACEOF
8780
8781 cat >>confdefs.h <<\_ACEOF
8782#define BROKEN_UPDWTMPX 1
8783_ACEOF
8784
8785 ;;
8786 *) cat >>confdefs.h <<\_ACEOF
8787#define LOCKED_PASSWD_STRING "*LK*"
8788_ACEOF
8789
8790 ;;
8791 esac
8792 ;;
8793*-*-sysv*)
8794 ;;
8795# SCO UNIX and OEM versions of SCO UNIX
8796*-*-sco3.2v4*)
8797 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8798echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8799 { (exit 1); exit 1; }; }
8800 ;;
8801# SCO OpenServer 5.x
8802*-*-sco3.2v5*)
8803 if test -z "$GCC"; then
8804 CFLAGS="$CFLAGS -belf"
8805 fi
8806 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8807 no_dev_ptmx=1
8808 cat >>confdefs.h <<\_ACEOF
8809#define USE_PIPES 1
8810_ACEOF
8811
8812 cat >>confdefs.h <<\_ACEOF
8813#define HAVE_SECUREWARE 1
8814_ACEOF
8815
8816 cat >>confdefs.h <<\_ACEOF
8817#define DISABLE_SHADOW 1
8818_ACEOF
8819
8820 cat >>confdefs.h <<\_ACEOF
8821#define DISABLE_FD_PASSING 1
8822_ACEOF
8823
8824 cat >>confdefs.h <<\_ACEOF
8825#define SETEUID_BREAKS_SETUID 1
8826_ACEOF
8827
8828 cat >>confdefs.h <<\_ACEOF
8829#define BROKEN_SETREUID 1
8830_ACEOF
8831
8832 cat >>confdefs.h <<\_ACEOF
8833#define BROKEN_SETREGID 1
8834_ACEOF
8835
8836 cat >>confdefs.h <<\_ACEOF
8837#define WITH_ABBREV_NO_TTY 1
8838_ACEOF
8839
8840 cat >>confdefs.h <<\_ACEOF
8841#define BROKEN_UPDWTMPX 1
8842_ACEOF
8843
8844 cat >>confdefs.h <<\_ACEOF
8845#define PASSWD_NEEDS_USERNAME 1
8846_ACEOF
8847
8848
8849
8850for ac_func in getluid setluid
8851do
8852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857else
8858 cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
8864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8866#define $ac_func innocuous_$ac_func
8867
8868/* System header to define __stub macros and hopefully few prototypes,
8869 which can conflict with char $ac_func (); below.
8870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8871 <limits.h> exists even on freestanding compilers. */
8872
8873#ifdef __STDC__
8874# include <limits.h>
8875#else
8876# include <assert.h>
8877#endif
8878
8879#undef $ac_func
8880
8881/* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8884#ifdef __cplusplus
8885extern "C"
8886#endif
8887char $ac_func ();
8888/* The GNU C library defines this for functions which it implements
8889 to always fail with ENOSYS. Some functions are actually named
8890 something starting with __ and the normal name is an alias. */
8891#if defined __stub_$ac_func || defined __stub___$ac_func
8892choke me
8893#endif
8894
8895int
8896main ()
8897{
8898return $ac_func ();
8899 ;
8900 return 0;
8901}
8902_ACEOF
8903rm -f conftest.$ac_objext conftest$ac_exeext
8904if { (ac_try="$ac_link"
8905case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908esac
8909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_link") 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 } && test -s conftest$ac_exeext &&
8920 $as_test_x conftest$ac_exeext; then
8921 eval "$as_ac_var=yes"
8922else
8923 echo "$as_me: failed program was:" >&5
8924sed 's/^/| /' conftest.$ac_ext >&5
8925
8926 eval "$as_ac_var=no"
8927fi
8928
8929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8930 conftest$ac_exeext conftest.$ac_ext
8931fi
8932ac_res=`eval echo '${'$as_ac_var'}'`
8933 { echo "$as_me:$LINENO: result: $ac_res" >&5
8934echo "${ECHO_T}$ac_res" >&6; }
8935if test `eval echo '${'$as_ac_var'}'` = yes; then
8936 cat >>confdefs.h <<_ACEOF
8937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8938_ACEOF
8939
8940fi
8941done
8942
8943 MANTYPE=man
8944 TEST_SHELL=ksh
8945 ;;
8946*-*-unicosmk*)
8947
8948cat >>confdefs.h <<\_ACEOF
8949#define NO_SSH_LASTLOG 1
8950_ACEOF
8951
8952 cat >>confdefs.h <<\_ACEOF
8953#define SETEUID_BREAKS_SETUID 1
8954_ACEOF
8955
8956 cat >>confdefs.h <<\_ACEOF
8957#define BROKEN_SETREUID 1
8958_ACEOF
8959
8960 cat >>confdefs.h <<\_ACEOF
8961#define BROKEN_SETREGID 1
8962_ACEOF
8963
8964 cat >>confdefs.h <<\_ACEOF
8965#define USE_PIPES 1
8966_ACEOF
8967
8968 cat >>confdefs.h <<\_ACEOF
8969#define DISABLE_FD_PASSING 1
8970_ACEOF
8971
8972 LDFLAGS="$LDFLAGS"
8973 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8974 MANTYPE=cat
8975 ;;
8976*-*-unicosmp*)
8977 cat >>confdefs.h <<\_ACEOF
8978#define SETEUID_BREAKS_SETUID 1
8979_ACEOF
8980
8981 cat >>confdefs.h <<\_ACEOF
8982#define BROKEN_SETREUID 1
8983_ACEOF
8984
8985 cat >>confdefs.h <<\_ACEOF
8986#define BROKEN_SETREGID 1
8987_ACEOF
8988
8989 cat >>confdefs.h <<\_ACEOF
8990#define WITH_ABBREV_NO_TTY 1
8991_ACEOF
8992
8993 cat >>confdefs.h <<\_ACEOF
8994#define USE_PIPES 1
8995_ACEOF
8996
8997 cat >>confdefs.h <<\_ACEOF
8998#define DISABLE_FD_PASSING 1
8999_ACEOF
9000
9001 LDFLAGS="$LDFLAGS"
9002 LIBS="$LIBS -lgen -lacid -ldb"
9003 MANTYPE=cat
9004 ;;
9005*-*-unicos*)
9006 cat >>confdefs.h <<\_ACEOF
9007#define SETEUID_BREAKS_SETUID 1
9008_ACEOF
9009
9010 cat >>confdefs.h <<\_ACEOF
9011#define BROKEN_SETREUID 1
9012_ACEOF
9013
9014 cat >>confdefs.h <<\_ACEOF
9015#define BROKEN_SETREGID 1
9016_ACEOF
9017
9018 cat >>confdefs.h <<\_ACEOF
9019#define USE_PIPES 1
9020_ACEOF
9021
9022 cat >>confdefs.h <<\_ACEOF
9023#define DISABLE_FD_PASSING 1
9024_ACEOF
9025
9026 cat >>confdefs.h <<\_ACEOF
9027#define NO_SSH_LASTLOG 1
9028_ACEOF
9029
9030 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9031 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9032 MANTYPE=cat
9033 ;;
9034*-dec-osf*)
9035 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9036echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9037 no_osfsia=""
9038
9039# Check whether --with-osfsia was given.
9040if test "${with_osfsia+set}" = set; then
9041 withval=$with_osfsia;
9042 if test "x$withval" = "xno" ; then
9043 { echo "$as_me:$LINENO: result: disabled" >&5
9044echo "${ECHO_T}disabled" >&6; }
9045 no_osfsia=1
9046 fi
9047
9048fi
9049
9050 if test -z "$no_osfsia" ; then
9051 if test -f /etc/sia/matrix.conf; then
9052 { echo "$as_me:$LINENO: result: yes" >&5
9053echo "${ECHO_T}yes" >&6; }
9054
9055cat >>confdefs.h <<\_ACEOF
9056#define HAVE_OSF_SIA 1
9057_ACEOF
9058
9059
9060cat >>confdefs.h <<\_ACEOF
9061#define DISABLE_LOGIN 1
9062_ACEOF
9063
9064 cat >>confdefs.h <<\_ACEOF
9065#define DISABLE_FD_PASSING 1
9066_ACEOF
9067
9068 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9069 SIA_MSG="yes"
9070 else
9071 { echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6; }
9073
9074cat >>confdefs.h <<\_ACEOF
9075#define LOCKED_PASSWD_SUBSTR "Nologin"
9076_ACEOF
9077
9078 fi
9079 fi
9080 cat >>confdefs.h <<\_ACEOF
9081#define BROKEN_GETADDRINFO 1
9082_ACEOF
9083
9084 cat >>confdefs.h <<\_ACEOF
9085#define SETEUID_BREAKS_SETUID 1
9086_ACEOF
9087
9088 cat >>confdefs.h <<\_ACEOF
9089#define BROKEN_SETREUID 1
9090_ACEOF
9091
9092 cat >>confdefs.h <<\_ACEOF
9093#define BROKEN_SETREGID 1
9094_ACEOF
9095
9096
9097cat >>confdefs.h <<\_ACEOF
9098#define BROKEN_READV_COMPARISON 1
9099_ACEOF
9100
9101 ;;
9102
9103*-*-nto-qnx*)
9104 cat >>confdefs.h <<\_ACEOF
9105#define USE_PIPES 1
9106_ACEOF
9107
9108 cat >>confdefs.h <<\_ACEOF
9109#define NO_X11_UNIX_SOCKETS 1
9110_ACEOF
9111
9112
9113cat >>confdefs.h <<\_ACEOF
9114#define MISSING_NFDBITS 1
9115_ACEOF
9116
9117
9118cat >>confdefs.h <<\_ACEOF
9119#define MISSING_HOWMANY 1
9120_ACEOF
9121
9122
9123cat >>confdefs.h <<\_ACEOF
9124#define MISSING_FD_MASK 1
9125_ACEOF
9126
9127 cat >>confdefs.h <<\_ACEOF
9128#define DISABLE_LASTLOG 1
9129_ACEOF
9130
9131 cat >>confdefs.h <<\_ACEOF
9132#define SSHD_ACQUIRES_CTTY 1
9133_ACEOF
9134
9135
9136cat >>confdefs.h <<\_ACEOF
9137#define BROKEN_SHADOW_EXPIRE 1
9138_ACEOF
9139
9140 enable_etc_default_login=no # has incompatible /etc/default/login
9141 case "$host" in
9142 *-*-nto-qnx6*)
9143 cat >>confdefs.h <<\_ACEOF
9144#define DISABLE_FD_PASSING 1
9145_ACEOF
9146
9147 ;;
9148 esac
9149 ;;
9150
9151*-*-ultrix*)
9152
9153cat >>confdefs.h <<\_ACEOF
9154#define BROKEN_GETGROUPS 1
9155_ACEOF
9156
9157
9158cat >>confdefs.h <<\_ACEOF
9159#define BROKEN_MMAP 1
9160_ACEOF
9161
9162 cat >>confdefs.h <<\_ACEOF
9163#define NEED_SETPGRP 1
9164_ACEOF
9165
9166
9167cat >>confdefs.h <<\_ACEOF
9168#define HAVE_SYS_SYSLOG_H 1
9169_ACEOF
9170
9171 ;;
9172
9173*-*-lynxos)
9174 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9175 cat >>confdefs.h <<\_ACEOF
9176#define MISSING_HOWMANY 1
9177_ACEOF
9178
9179
9180cat >>confdefs.h <<\_ACEOF
9181#define BROKEN_SETVBUF 1
9182_ACEOF
9183
9184 ;;
9185esac
9186
9187{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9188echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9189if test "$cross_compiling" = yes; then
9190 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9191echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9192
9193else
9194 cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200
9201#include <stdio.h>
9202int main(){exit(0);}
9203
9204_ACEOF
9205rm -f conftest$ac_exeext
9206if { (ac_try="$ac_link"
9207case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210esac
9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9216 { (case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219esac
9220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_try") 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 { echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6; }
9227else
9228 echo "$as_me: program exited with status $ac_status" >&5
9229echo "$as_me: failed program was:" >&5
9230sed 's/^/| /' conftest.$ac_ext >&5
9231
9232( exit $ac_status )
9233
9234 { echo "$as_me:$LINENO: result: no" >&5
9235echo "${ECHO_T}no" >&6; }
9236 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9237echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9238 { (exit 1); exit 1; }; }
9239
9240fi
9241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9242fi
9243
9244
9245
9246# Checks for libraries.
9247{ echo "$as_me:$LINENO: checking for yp_match" >&5
9248echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9249if test "${ac_cv_func_yp_match+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252 cat >conftest.$ac_ext <<_ACEOF
9253/* confdefs.h. */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h. */
9258/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9260#define yp_match innocuous_yp_match
9261
9262/* System header to define __stub macros and hopefully few prototypes,
9263 which can conflict with char yp_match (); below.
9264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9265 <limits.h> exists even on freestanding compilers. */
9266
9267#ifdef __STDC__
9268# include <limits.h>
9269#else
9270# include <assert.h>
9271#endif
9272
9273#undef yp_match
9274
9275/* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278#ifdef __cplusplus
9279extern "C"
9280#endif
9281char yp_match ();
9282/* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285#if defined __stub_yp_match || defined __stub___yp_match
9286choke me
9287#endif
9288
9289int
9290main ()
9291{
9292return yp_match ();
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext conftest$ac_exeext
9298if { (ac_try="$ac_link"
9299case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_link") 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest$ac_exeext &&
9314 $as_test_x conftest$ac_exeext; then
9315 ac_cv_func_yp_match=yes
9316else
9317 echo "$as_me: failed program was:" >&5
9318sed 's/^/| /' conftest.$ac_ext >&5
9319
9320 ac_cv_func_yp_match=no
9321fi
9322
9323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9324 conftest$ac_exeext conftest.$ac_ext
9325fi
9326{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9327echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9328if test $ac_cv_func_yp_match = yes; then
9329 :
9330else
9331
9332{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9333echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9334if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337 ac_check_lib_save_LIBS=$LIBS
9338LIBS="-lnsl $LIBS"
9339cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h. */
9345
9346/* Override any GCC internal prototype to avoid an error.
9347 Use char because int might match the return type of a GCC
9348 builtin and then its argument prototype would still apply. */
9349#ifdef __cplusplus
9350extern "C"
9351#endif
9352char yp_match ();
9353int
9354main ()
9355{
9356return yp_match ();
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (ac_try="$ac_link"
9363case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366esac
9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_link") 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } && {
9375 test -z "$ac_c_werror_flag" ||
9376 test ! -s conftest.err
9377 } && test -s conftest$ac_exeext &&
9378 $as_test_x conftest$ac_exeext; then
9379 ac_cv_lib_nsl_yp_match=yes
9380else
9381 echo "$as_me: failed program was:" >&5
9382sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 ac_cv_lib_nsl_yp_match=no
9385fi
9386
9387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9388 conftest$ac_exeext conftest.$ac_ext
9389LIBS=$ac_check_lib_save_LIBS
9390fi
9391{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9392echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9393if test $ac_cv_lib_nsl_yp_match = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395#define HAVE_LIBNSL 1
9396_ACEOF
9397
9398 LIBS="-lnsl $LIBS"
9399
9400fi
9401
9402fi
9403
9404{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9405echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9406if test "${ac_cv_func_setsockopt+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408else
9409 cat >conftest.$ac_ext <<_ACEOF
9410/* confdefs.h. */
9411_ACEOF
9412cat confdefs.h >>conftest.$ac_ext
9413cat >>conftest.$ac_ext <<_ACEOF
9414/* end confdefs.h. */
9415/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9417#define setsockopt innocuous_setsockopt
9418
9419/* System header to define __stub macros and hopefully few prototypes,
9420 which can conflict with char setsockopt (); below.
9421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9422 <limits.h> exists even on freestanding compilers. */
9423
9424#ifdef __STDC__
9425# include <limits.h>
9426#else
9427# include <assert.h>
9428#endif
9429
9430#undef setsockopt
9431
9432/* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
9435#ifdef __cplusplus
9436extern "C"
9437#endif
9438char setsockopt ();
9439/* The GNU C library defines this for functions which it implements
9440 to always fail with ENOSYS. Some functions are actually named
9441 something starting with __ and the normal name is an alias. */
9442#if defined __stub_setsockopt || defined __stub___setsockopt
9443choke me
9444#endif
9445
9446int
9447main ()
9448{
9449return setsockopt ();
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454rm -f conftest.$ac_objext conftest$ac_exeext
9455if { (ac_try="$ac_link"
9456case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459esac
9460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_link") 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest$ac_exeext &&
9471 $as_test_x conftest$ac_exeext; then
9472 ac_cv_func_setsockopt=yes
9473else
9474 echo "$as_me: failed program was:" >&5
9475sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 ac_cv_func_setsockopt=no
9478fi
9479
9480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9481 conftest$ac_exeext conftest.$ac_ext
9482fi
9483{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9484echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9485if test $ac_cv_func_setsockopt = yes; then
9486 :
9487else
9488
9489{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9490echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9491if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494 ac_check_lib_save_LIBS=$LIBS
9495LIBS="-lsocket $LIBS"
9496cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h. */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h. */
9502
9503/* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9506#ifdef __cplusplus
9507extern "C"
9508#endif
9509char setsockopt ();
9510int
9511main ()
9512{
9513return setsockopt ();
9514 ;
9515 return 0;
9516}
9517_ACEOF
9518rm -f conftest.$ac_objext conftest$ac_exeext
9519if { (ac_try="$ac_link"
9520case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest$ac_exeext &&
9535 $as_test_x conftest$ac_exeext; then
9536 ac_cv_lib_socket_setsockopt=yes
9537else
9538 echo "$as_me: failed program was:" >&5
9539sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 ac_cv_lib_socket_setsockopt=no
9542fi
9543
9544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9546LIBS=$ac_check_lib_save_LIBS
9547fi
9548{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9549echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9550if test $ac_cv_lib_socket_setsockopt = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552#define HAVE_LIBSOCKET 1
9553_ACEOF
9554
9555 LIBS="-lsocket $LIBS"
9556
9557fi
9558
9559fi
9560
9561
9562
9563for ac_func in dirname
9564do
9565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571 cat >conftest.$ac_ext <<_ACEOF
9572/* confdefs.h. */
9573_ACEOF
9574cat confdefs.h >>conftest.$ac_ext
9575cat >>conftest.$ac_ext <<_ACEOF
9576/* end confdefs.h. */
9577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9579#define $ac_func innocuous_$ac_func
9580
9581/* System header to define __stub macros and hopefully few prototypes,
9582 which can conflict with char $ac_func (); below.
9583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584 <limits.h> exists even on freestanding compilers. */
9585
9586#ifdef __STDC__
9587# include <limits.h>
9588#else
9589# include <assert.h>
9590#endif
9591
9592#undef $ac_func
9593
9594/* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597#ifdef __cplusplus
9598extern "C"
9599#endif
9600char $ac_func ();
9601/* The GNU C library defines this for functions which it implements
9602 to always fail with ENOSYS. Some functions are actually named
9603 something starting with __ and the normal name is an alias. */
9604#if defined __stub_$ac_func || defined __stub___$ac_func
9605choke me
9606#endif
9607
9608int
9609main ()
9610{
9611return $ac_func ();
9612 ;
9613 return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext conftest$ac_exeext
9617if { (ac_try="$ac_link"
9618case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621esac
9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_link") 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest$ac_exeext &&
9633 $as_test_x conftest$ac_exeext; then
9634 eval "$as_ac_var=yes"
9635else
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 eval "$as_ac_var=no"
9640fi
9641
9642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9643 conftest$ac_exeext conftest.$ac_ext
9644fi
9645ac_res=`eval echo '${'$as_ac_var'}'`
9646 { echo "$as_me:$LINENO: result: $ac_res" >&5
9647echo "${ECHO_T}$ac_res" >&6; }
9648if test `eval echo '${'$as_ac_var'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651_ACEOF
9652
9653for ac_header in libgen.h
9654do
9655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661fi
9662ac_res=`eval echo '${'$as_ac_Header'}'`
9663 { echo "$as_me:$LINENO: result: $ac_res" >&5
9664echo "${ECHO_T}$ac_res" >&6; }
9665else
9666 # Is the header compilable?
9667{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9669cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
9675$ac_includes_default
9676#include <$ac_header>
9677_ACEOF
9678rm -f conftest.$ac_objext
9679if { (ac_try="$ac_compile"
9680case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683esac
9684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_compile") 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } && {
9692 test -z "$ac_c_werror_flag" ||
9693 test ! -s conftest.err
9694 } && test -s conftest.$ac_objext; then
9695 ac_header_compiler=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_header_compiler=no
9701fi
9702
9703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9705echo "${ECHO_T}$ac_header_compiler" >&6; }
9706
9707# Is the header present?
9708{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9710cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h. */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h. */
9716#include <$ac_header>
9717_ACEOF
9718if { (ac_try="$ac_cpp conftest.$ac_ext"
9719case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } >/dev/null && {
9731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 }; then
9734 ac_header_preproc=yes
9735else
9736 echo "$as_me: failed program was:" >&5
9737sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 ac_header_preproc=no
9740fi
9741
9742rm -f conftest.err conftest.$ac_ext
9743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744echo "${ECHO_T}$ac_header_preproc" >&6; }
9745
9746# So? What about this header?
9747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9748 yes:no: )
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9753 ac_header_preproc=yes
9754 ;;
9755 no:yes:* )
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9759echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9763echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9768 ( cat <<\_ASBOX
9769## ------------------------------------------- ##
9770## Report this to openssh-unix-dev@mindrot.org ##
9771## ------------------------------------------- ##
9772_ASBOX
9773 ) | sed "s/^/$as_me: WARNING: /" >&2
9774 ;;
9775esac
9776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781 eval "$as_ac_Header=\$ac_header_preproc"
9782fi
9783ac_res=`eval echo '${'$as_ac_Header'}'`
9784 { echo "$as_me:$LINENO: result: $ac_res" >&5
9785echo "${ECHO_T}$ac_res" >&6; }
9786
9787fi
9788if test `eval echo '${'$as_ac_Header'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9791_ACEOF
9792
9793fi
9794
9795done
9796
9797else
9798
9799 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
9800echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
9801if test "${ac_cv_lib_gen_dirname+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804 ac_check_lib_save_LIBS=$LIBS
9805LIBS="-lgen $LIBS"
9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
9812
9813/* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9816#ifdef __cplusplus
9817extern "C"
9818#endif
9819char dirname ();
9820int
9821main ()
9822{
9823return dirname ();
9824 ;
9825 return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
9829if { (ac_try="$ac_link"
9830case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_link") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest$ac_exeext &&
9845 $as_test_x conftest$ac_exeext; then
9846 ac_cv_lib_gen_dirname=yes
9847else
9848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_cv_lib_gen_dirname=no
9852fi
9853
9854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855 conftest$ac_exeext conftest.$ac_ext
9856LIBS=$ac_check_lib_save_LIBS
9857fi
9858{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
9859echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
9860if test $ac_cv_lib_gen_dirname = yes; then
9861
9862 { echo "$as_me:$LINENO: checking for broken dirname" >&5
9863echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
9864if test "${ac_cv_have_broken_dirname+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866else
9867
9868 save_LIBS="$LIBS"
9869 LIBS="$LIBS -lgen"
9870 if test "$cross_compiling" = yes; then
9871 ac_cv_have_broken_dirname="no"
9872else
9873 cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
9879
9880#include <libgen.h>
9881#include <string.h>
9882
9883int main(int argc, char **argv) {
9884 char *s, buf[32];
9885
9886 strncpy(buf,"/etc", 32);
9887 s = dirname(buf);
9888 if (!s || strncmp(s, "/", 32) != 0) {
9889 exit(1);
9890 } else {
9891 exit(0);
9892 }
9893}
9894
9895_ACEOF
9896rm -f conftest$ac_exeext
9897if { (ac_try="$ac_link"
9898case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_have_broken_dirname="no"
9917else
9918 echo "$as_me: program exited with status $ac_status" >&5
9919echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
9922( exit $ac_status )
9923 ac_cv_have_broken_dirname="yes"
9924fi
9925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9926fi
9927
9928
9929 LIBS="$save_LIBS"
9930
9931fi
9932{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
9933echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
9934 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
9935 LIBS="$LIBS -lgen"
9936 cat >>confdefs.h <<\_ACEOF
9937#define HAVE_DIRNAME 1
9938_ACEOF
9939
9940
9941for ac_header in libgen.h
9942do
9943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949fi
9950ac_res=`eval echo '${'$as_ac_Header'}'`
9951 { echo "$as_me:$LINENO: result: $ac_res" >&5
9952echo "${ECHO_T}$ac_res" >&6; }
9953else
9954 # Is the header compilable?
9955{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9957cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963$ac_includes_default
9964#include <$ac_header>
9965_ACEOF
9966rm -f conftest.$ac_objext
9967if { (ac_try="$ac_compile"
9968case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_compile") 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest.$ac_objext; then
9983 ac_header_compiler=yes
9984else
9985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_header_compiler=no
9989fi
9990
9991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9993echo "${ECHO_T}$ac_header_compiler" >&6; }
9994
9995# Is the header present?
9996{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004#include <$ac_header>
10005_ACEOF
10006if { (ac_try="$ac_cpp conftest.$ac_ext"
10007case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } >/dev/null && {
10019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 }; then
10022 ac_header_preproc=yes
10023else
10024 echo "$as_me: failed program was:" >&5
10025sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 ac_header_preproc=no
10028fi
10029
10030rm -f conftest.err conftest.$ac_ext
10031{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10032echo "${ECHO_T}$ac_header_preproc" >&6; }
10033
10034# So? What about this header?
10035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10036 yes:no: )
10037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10041 ac_header_preproc=yes
10042 ;;
10043 no:yes:* )
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10056 ( cat <<\_ASBOX
10057## ------------------------------------------- ##
10058## Report this to openssh-unix-dev@mindrot.org ##
10059## ------------------------------------------- ##
10060_ASBOX
10061 ) | sed "s/^/$as_me: WARNING: /" >&2
10062 ;;
10063esac
10064{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 eval "$as_ac_Header=\$ac_header_preproc"
10070fi
10071ac_res=`eval echo '${'$as_ac_Header'}'`
10072 { echo "$as_me:$LINENO: result: $ac_res" >&5
10073echo "${ECHO_T}$ac_res" >&6; }
10074
10075fi
10076if test `eval echo '${'$as_ac_Header'}'` = yes; then
10077 cat >>confdefs.h <<_ACEOF
10078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10079_ACEOF
10080
10081fi
10082
10083done
10084
10085 fi
10086
10087fi
10088
10089
10090fi
10091done
10092
10093
10094{ echo "$as_me:$LINENO: checking for getspnam" >&5
10095echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10096if test "${ac_cv_func_getspnam+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099 cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h. */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h. */
10105/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10107#define getspnam innocuous_getspnam
10108
10109/* System header to define __stub macros and hopefully few prototypes,
10110 which can conflict with char getspnam (); below.
10111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112 <limits.h> exists even on freestanding compilers. */
10113
10114#ifdef __STDC__
10115# include <limits.h>
10116#else
10117# include <assert.h>
10118#endif
10119
10120#undef getspnam
10121
10122/* Override any GCC internal prototype to avoid an error.
10123 Use char because int might match the return type of a GCC
10124 builtin and then its argument prototype would still apply. */
10125#ifdef __cplusplus
10126extern "C"
10127#endif
10128char getspnam ();
10129/* The GNU C library defines this for functions which it implements
10130 to always fail with ENOSYS. Some functions are actually named
10131 something starting with __ and the normal name is an alias. */
10132#if defined __stub_getspnam || defined __stub___getspnam
10133choke me
10134#endif
10135
10136int
10137main ()
10138{
10139return getspnam ();
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (ac_try="$ac_link"
10146case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_link") 2>conftest.er1
10152 ac_status=$?
10153 grep -v '^ *+' conftest.er1 >conftest.err
10154 rm -f conftest.er1
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } && {
10158 test -z "$ac_c_werror_flag" ||
10159 test ! -s conftest.err
10160 } && test -s conftest$ac_exeext &&
10161 $as_test_x conftest$ac_exeext; then
10162 ac_cv_func_getspnam=yes
10163else
10164 echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ac_cv_func_getspnam=no
10168fi
10169
10170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171 conftest$ac_exeext conftest.$ac_ext
10172fi
10173{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10174echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10175if test $ac_cv_func_getspnam = yes; then
10176 :
10177else
10178 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10179echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10180if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182else
10183 ac_check_lib_save_LIBS=$LIBS
10184LIBS="-lgen $LIBS"
10185cat >conftest.$ac_ext <<_ACEOF
10186/* confdefs.h. */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h. */
10191
10192/* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10195#ifdef __cplusplus
10196extern "C"
10197#endif
10198char getspnam ();
10199int
10200main ()
10201{
10202return getspnam ();
10203 ;
10204 return 0;
10205}
10206_ACEOF
10207rm -f conftest.$ac_objext conftest$ac_exeext
10208if { (ac_try="$ac_link"
10209case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest$ac_exeext &&
10224 $as_test_x conftest$ac_exeext; then
10225 ac_cv_lib_gen_getspnam=yes
10226else
10227 echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lib_gen_getspnam=no
10231fi
10232
10233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10234 conftest$ac_exeext conftest.$ac_ext
10235LIBS=$ac_check_lib_save_LIBS
10236fi
10237{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10238echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10239if test $ac_cv_lib_gen_getspnam = yes; then
10240 LIBS="$LIBS -lgen"
10241fi
10242
10243fi
10244
10245{ echo "$as_me:$LINENO: checking for library containing basename" >&5
10246echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10247if test "${ac_cv_search_basename+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 ac_func_search_save_LIBS=$LIBS
10251cat >conftest.$ac_ext <<_ACEOF
10252/* confdefs.h. */
10253_ACEOF
10254cat confdefs.h >>conftest.$ac_ext
10255cat >>conftest.$ac_ext <<_ACEOF
10256/* end confdefs.h. */
10257
10258/* Override any GCC internal prototype to avoid an error.
10259 Use char because int might match the return type of a GCC
10260 builtin and then its argument prototype would still apply. */
10261#ifdef __cplusplus
10262extern "C"
10263#endif
10264char basename ();
10265int
10266main ()
10267{
10268return basename ();
10269 ;
10270 return 0;
10271}
10272_ACEOF
10273for ac_lib in '' gen; do
10274 if test -z "$ac_lib"; then
10275 ac_res="none required"
10276 else
10277 ac_res=-l$ac_lib
10278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10279 fi
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281if { (ac_try="$ac_link"
10282case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_link") 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } && {
10294 test -z "$ac_c_werror_flag" ||
10295 test ! -s conftest.err
10296 } && test -s conftest$ac_exeext &&
10297 $as_test_x conftest$ac_exeext; then
10298 ac_cv_search_basename=$ac_res
10299else
10300 echo "$as_me: failed program was:" >&5
10301sed 's/^/| /' conftest.$ac_ext >&5
10302
10303
10304fi
10305
10306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10307 conftest$ac_exeext
10308 if test "${ac_cv_search_basename+set}" = set; then
10309 break
10310fi
10311done
10312if test "${ac_cv_search_basename+set}" = set; then
10313 :
10314else
10315 ac_cv_search_basename=no
10316fi
10317rm conftest.$ac_ext
10318LIBS=$ac_func_search_save_LIBS
10319fi
10320{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10321echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10322ac_res=$ac_cv_search_basename
10323if test "$ac_res" != no; then
10324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10325
10326cat >>confdefs.h <<\_ACEOF
10327#define HAVE_BASENAME 1
10328_ACEOF
10329
10330fi
10331
10332
10333
10334# Check whether --with-zlib was given.
10335if test "${with_zlib+set}" = set; then
10336 withval=$with_zlib; if test "x$withval" = "xno" ; then
10337 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10338echo "$as_me: error: *** zlib is required ***" >&2;}
10339 { (exit 1); exit 1; }; }
10340 elif test "x$withval" != "xyes"; then
10341 if test -d "$withval/lib"; then
10342 if test -n "${need_dash_r}"; then
10343 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10344 else
10345 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10346 fi
10347 else
10348 if test -n "${need_dash_r}"; then
10349 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10350 else
10351 LDFLAGS="-L${withval} ${LDFLAGS}"
10352 fi
10353 fi
10354 if test -d "$withval/include"; then
10355 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10356 else
10357 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10358 fi
10359 fi
10360
10361fi
10362
10363
10364
10365{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10366echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10367if test "${ac_cv_lib_z_deflate+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370 ac_check_lib_save_LIBS=$LIBS
10371LIBS="-lz $LIBS"
10372cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378
10379/* Override any GCC internal prototype to avoid an error.
10380 Use char because int might match the return type of a GCC
10381 builtin and then its argument prototype would still apply. */
10382#ifdef __cplusplus
10383extern "C"
10384#endif
10385char deflate ();
10386int
10387main ()
10388{
10389return deflate ();
10390 ;
10391 return 0;
10392}
10393_ACEOF
10394rm -f conftest.$ac_objext conftest$ac_exeext
10395if { (ac_try="$ac_link"
10396case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_link") 2>conftest.er1
10402 ac_status=$?
10403 grep -v '^ *+' conftest.er1 >conftest.err
10404 rm -f conftest.er1
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } && {
10408 test -z "$ac_c_werror_flag" ||
10409 test ! -s conftest.err
10410 } && test -s conftest$ac_exeext &&
10411 $as_test_x conftest$ac_exeext; then
10412 ac_cv_lib_z_deflate=yes
10413else
10414 echo "$as_me: failed program was:" >&5
10415sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 ac_cv_lib_z_deflate=no
10418fi
10419
10420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext conftest.$ac_ext
10422LIBS=$ac_check_lib_save_LIBS
10423fi
10424{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10425echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10426if test $ac_cv_lib_z_deflate = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428#define HAVE_LIBZ 1
10429_ACEOF
10430
10431 LIBS="-lz $LIBS"
10432
10433else
10434
10435 saved_CPPFLAGS="$CPPFLAGS"
10436 saved_LDFLAGS="$LDFLAGS"
10437 save_LIBS="$LIBS"
10438 if test -n "${need_dash_r}"; then
10439 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10440 else
10441 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10442 fi
10443 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10444 LIBS="$LIBS -lz"
10445 cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
10451
10452/* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10455#ifdef __cplusplus
10456extern "C"
10457#endif
10458char deflate ();
10459int
10460main ()
10461{
10462return deflate ();
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
10468if { (ac_try="$ac_link"
10469case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472esac
10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_link") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest$ac_exeext &&
10484 $as_test_x conftest$ac_exeext; then
10485 cat >>confdefs.h <<\_ACEOF
10486#define HAVE_LIBZ 1
10487_ACEOF
10488
10489else
10490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493
10494 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10495echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10496 { (exit 1); exit 1; }; }
10497
10498
10499fi
10500
10501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503
10504
10505fi
10506
10507if test "${ac_cv_header_zlib_h+set}" = set; then
10508 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10509echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10510if test "${ac_cv_header_zlib_h+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512fi
10513{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10514echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10515else
10516 # Is the header compilable?
10517{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
10518echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10519cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
10525$ac_includes_default
10526#include <zlib.h>
10527_ACEOF
10528rm -f conftest.$ac_objext
10529if { (ac_try="$ac_compile"
10530case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10533esac
10534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_compile") 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest.$ac_objext; then
10545 ac_header_compiler=yes
10546else
10547 echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_header_compiler=no
10551fi
10552
10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555echo "${ECHO_T}$ac_header_compiler" >&6; }
10556
10557# Is the header present?
10558{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
10559echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10560cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566#include <zlib.h>
10567_ACEOF
10568if { (ac_try="$ac_cpp conftest.$ac_ext"
10569case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null && {
10581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 }; then
10584 ac_header_preproc=yes
10585else
10586 echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 ac_header_preproc=no
10590fi
10591
10592rm -f conftest.err conftest.$ac_ext
10593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10594echo "${ECHO_T}$ac_header_preproc" >&6; }
10595
10596# So? What about this header?
10597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10598 yes:no: )
10599 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10600echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10602echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10603 ac_header_preproc=yes
10604 ;;
10605 no:yes:* )
10606 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10607echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10609echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10611echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10613echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10615echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10617echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10618 ( cat <<\_ASBOX
10619## ------------------------------------------- ##
10620## Report this to openssh-unix-dev@mindrot.org ##
10621## ------------------------------------------- ##
10622_ASBOX
10623 ) | sed "s/^/$as_me: WARNING: /" >&2
10624 ;;
10625esac
10626{ echo "$as_me:$LINENO: checking for zlib.h" >&5
10627echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10628if test "${ac_cv_header_zlib_h+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630else
10631 ac_cv_header_zlib_h=$ac_header_preproc
10632fi
10633{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10634echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10635
10636fi
10637if test $ac_cv_header_zlib_h = yes; then
10638 :
10639else
10640 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10641echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10642 { (exit 1); exit 1; }; }
10643fi
10644
10645
10646
10647
10648# Check whether --with-zlib-version-check was given.
10649if test "${with_zlib_version_check+set}" = set; then
10650 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
10651 zlib_check_nonfatal=1
10652 fi
10653
10654
10655fi
10656
10657
10658{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
10659echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
10660if test "$cross_compiling" = yes; then
10661 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
10662echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
10663
10664else
10665 cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
10671
10672#include <stdio.h>
10673#include <zlib.h>
10674int main()
10675{
10676 int a=0, b=0, c=0, d=0, n, v;
10677 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
10678 if (n != 3 && n != 4)
10679 exit(1);
10680 v = a*1000000 + b*10000 + c*100 + d;
10681 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
10682
10683 /* 1.1.4 is OK */
10684 if (a == 1 && b == 1 && c >= 4)
10685 exit(0);
10686
10687 /* 1.2.3 and up are OK */
10688 if (v >= 1020300)
10689 exit(0);
10690
10691 exit(2);
10692}
10693
10694_ACEOF
10695rm -f conftest$ac_exeext
10696if { (ac_try="$ac_link"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 { echo "$as_me:$LINENO: result: no" >&5
10716echo "${ECHO_T}no" >&6; }
10717else
10718 echo "$as_me: program exited with status $ac_status" >&5
10719echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722( exit $ac_status )
10723 { echo "$as_me:$LINENO: result: yes" >&5
10724echo "${ECHO_T}yes" >&6; }
10725 if test -z "$zlib_check_nonfatal" ; then
10726 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
10727Your reported zlib version has known security problems. It's possible your
10728vendor has fixed these problems without changing the version number. If you
10729are sure this is the case, you can disable the check by running
10730\"./configure --without-zlib-version-check\".
10731If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10732See http://www.gzip.org/zlib/ for details." >&5
10733echo "$as_me: error: *** zlib too old - check config.log ***
10734Your reported zlib version has known security problems. It's possible your
10735vendor has fixed these problems without changing the version number. If you
10736are sure this is the case, you can disable the check by running
10737\"./configure --without-zlib-version-check\".
10738If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10739See http://www.gzip.org/zlib/ for details." >&2;}
10740 { (exit 1); exit 1; }; }
10741 else
10742 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
10743echo "$as_me: WARNING: zlib version may have security problems" >&2;}
10744 fi
10745
10746fi
10747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10748fi
10749
10750
10751
10752{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
10753echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
10754if test "${ac_cv_func_strcasecmp+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765#define strcasecmp innocuous_strcasecmp
10766
10767/* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char strcasecmp (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10771
10772#ifdef __STDC__
10773# include <limits.h>
10774#else
10775# include <assert.h>
10776#endif
10777
10778#undef strcasecmp
10779
10780/* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10783#ifdef __cplusplus
10784extern "C"
10785#endif
10786char strcasecmp ();
10787/* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790#if defined __stub_strcasecmp || defined __stub___strcasecmp
10791choke me
10792#endif
10793
10794int
10795main ()
10796{
10797return strcasecmp ();
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext conftest$ac_exeext
10803if { (ac_try="$ac_link"
10804case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_link") 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } && {
10816 test -z "$ac_c_werror_flag" ||
10817 test ! -s conftest.err
10818 } && test -s conftest$ac_exeext &&
10819 $as_test_x conftest$ac_exeext; then
10820 ac_cv_func_strcasecmp=yes
10821else
10822 echo "$as_me: failed program was:" >&5
10823sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_cv_func_strcasecmp=no
10826fi
10827
10828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10829 conftest$ac_exeext conftest.$ac_ext
10830fi
10831{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
10832echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
10833if test $ac_cv_func_strcasecmp = yes; then
10834 :
10835else
10836 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
10837echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
10838if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 ac_check_lib_save_LIBS=$LIBS
10842LIBS="-lresolv $LIBS"
10843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849
10850/* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853#ifdef __cplusplus
10854extern "C"
10855#endif
10856char strcasecmp ();
10857int
10858main ()
10859{
10860return strcasecmp ();
10861 ;
10862 return 0;
10863}
10864_ACEOF
10865rm -f conftest.$ac_objext conftest$ac_exeext
10866if { (ac_try="$ac_link"
10867case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870esac
10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_link") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext &&
10882 $as_test_x conftest$ac_exeext; then
10883 ac_cv_lib_resolv_strcasecmp=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_lib_resolv_strcasecmp=no
10889fi
10890
10891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10892 conftest$ac_exeext conftest.$ac_ext
10893LIBS=$ac_check_lib_save_LIBS
10894fi
10895{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
10896echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
10897if test $ac_cv_lib_resolv_strcasecmp = yes; then
10898 LIBS="$LIBS -lresolv"
10899fi
10900
10901
10902fi
10903
10904
10905for ac_func in utimes
10906do
10907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10908{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913 cat >conftest.$ac_ext <<_ACEOF
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10921#define $ac_func innocuous_$ac_func
10922
10923/* System header to define __stub macros and hopefully few prototypes,
10924 which can conflict with char $ac_func (); below.
10925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10926 <limits.h> exists even on freestanding compilers. */
10927
10928#ifdef __STDC__
10929# include <limits.h>
10930#else
10931# include <assert.h>
10932#endif
10933
10934#undef $ac_func
10935
10936/* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939#ifdef __cplusplus
10940extern "C"
10941#endif
10942char $ac_func ();
10943/* The GNU C library defines this for functions which it implements
10944 to always fail with ENOSYS. Some functions are actually named
10945 something starting with __ and the normal name is an alias. */
10946#if defined __stub_$ac_func || defined __stub___$ac_func
10947choke me
10948#endif
10949
10950int
10951main ()
10952{
10953return $ac_func ();
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958rm -f conftest.$ac_objext conftest$ac_exeext
10959if { (ac_try="$ac_link"
10960case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_link") 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && {
10972 test -z "$ac_c_werror_flag" ||
10973 test ! -s conftest.err
10974 } && test -s conftest$ac_exeext &&
10975 $as_test_x conftest$ac_exeext; then
10976 eval "$as_ac_var=yes"
10977else
10978 echo "$as_me: failed program was:" >&5
10979sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 eval "$as_ac_var=no"
10982fi
10983
10984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10985 conftest$ac_exeext conftest.$ac_ext
10986fi
10987ac_res=`eval echo '${'$as_ac_var'}'`
10988 { echo "$as_me:$LINENO: result: $ac_res" >&5
10989echo "${ECHO_T}$ac_res" >&6; }
10990if test `eval echo '${'$as_ac_var'}'` = yes; then
10991 cat >>confdefs.h <<_ACEOF
10992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10993_ACEOF
10994
10995else
10996 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
10997echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
10998if test "${ac_cv_lib_c89_utimes+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000else
11001 ac_check_lib_save_LIBS=$LIBS
11002LIBS="-lc89 $LIBS"
11003cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009
11010/* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11013#ifdef __cplusplus
11014extern "C"
11015#endif
11016char utimes ();
11017int
11018main ()
11019{
11020return utimes ();
11021 ;
11022 return 0;
11023}
11024_ACEOF
11025rm -f conftest.$ac_objext conftest$ac_exeext
11026if { (ac_try="$ac_link"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext &&
11042 $as_test_x conftest$ac_exeext; then
11043 ac_cv_lib_c89_utimes=yes
11044else
11045 echo "$as_me: failed program was:" >&5
11046sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 ac_cv_lib_c89_utimes=no
11049fi
11050
11051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052 conftest$ac_exeext conftest.$ac_ext
11053LIBS=$ac_check_lib_save_LIBS
11054fi
11055{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11056echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11057if test $ac_cv_lib_c89_utimes = yes; then
11058 cat >>confdefs.h <<\_ACEOF
11059#define HAVE_UTIMES 1
11060_ACEOF
11061
11062 LIBS="$LIBS -lc89"
11063fi
11064
11065
11066fi
11067done
11068
11069
11070
11071for ac_header in libutil.h
11072do
11073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079fi
11080ac_res=`eval echo '${'$as_ac_Header'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082echo "${ECHO_T}$ac_res" >&6; }
11083else
11084 # Is the header compilable?
11085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11087cat >conftest.$ac_ext <<_ACEOF
11088/* confdefs.h. */
11089_ACEOF
11090cat confdefs.h >>conftest.$ac_ext
11091cat >>conftest.$ac_ext <<_ACEOF
11092/* end confdefs.h. */
11093$ac_includes_default
11094#include <$ac_header>
11095_ACEOF
11096rm -f conftest.$ac_objext
11097if { (ac_try="$ac_compile"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest.$ac_objext; then
11113 ac_header_compiler=yes
11114else
11115 echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 ac_header_compiler=no
11119fi
11120
11121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123echo "${ECHO_T}$ac_header_compiler" >&6; }
11124
11125# Is the header present?
11126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11128cat >conftest.$ac_ext <<_ACEOF
11129/* confdefs.h. */
11130_ACEOF
11131cat confdefs.h >>conftest.$ac_ext
11132cat >>conftest.$ac_ext <<_ACEOF
11133/* end confdefs.h. */
11134#include <$ac_header>
11135_ACEOF
11136if { (ac_try="$ac_cpp conftest.$ac_ext"
11137case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } >/dev/null && {
11149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 }; then
11152 ac_header_preproc=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_header_preproc=no
11158fi
11159
11160rm -f conftest.err conftest.$ac_ext
11161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162echo "${ECHO_T}$ac_header_preproc" >&6; }
11163
11164# So? What about this header?
11165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11166 yes:no: )
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11172 ;;
11173 no:yes:* )
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11186 ( cat <<\_ASBOX
11187## ------------------------------------------- ##
11188## Report this to openssh-unix-dev@mindrot.org ##
11189## ------------------------------------------- ##
11190_ASBOX
11191 ) | sed "s/^/$as_me: WARNING: /" >&2
11192 ;;
11193esac
11194{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 eval "$as_ac_Header=\$ac_header_preproc"
11200fi
11201ac_res=`eval echo '${'$as_ac_Header'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203echo "${ECHO_T}$ac_res" >&6; }
11204
11205fi
11206if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11209_ACEOF
11210
11211fi
11212
11213done
11214
11215{ echo "$as_me:$LINENO: checking for library containing login" >&5
11216echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
11217if test "${ac_cv_search_login+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 ac_func_search_save_LIBS=$LIBS
11221cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227
11228/* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231#ifdef __cplusplus
11232extern "C"
11233#endif
11234char login ();
11235int
11236main ()
11237{
11238return login ();
11239 ;
11240 return 0;
11241}
11242_ACEOF
11243for ac_lib in '' util bsd; do
11244 if test -z "$ac_lib"; then
11245 ac_res="none required"
11246 else
11247 ac_res=-l$ac_lib
11248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11249 fi
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251if { (ac_try="$ac_link"
11252case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_link") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest$ac_exeext &&
11267 $as_test_x conftest$ac_exeext; then
11268 ac_cv_search_login=$ac_res
11269else
11270 echo "$as_me: failed program was:" >&5
11271sed 's/^/| /' conftest.$ac_ext >&5
11272
11273
11274fi
11275
11276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11277 conftest$ac_exeext
11278 if test "${ac_cv_search_login+set}" = set; then
11279 break
11280fi
11281done
11282if test "${ac_cv_search_login+set}" = set; then
11283 :
11284else
11285 ac_cv_search_login=no
11286fi
11287rm conftest.$ac_ext
11288LIBS=$ac_func_search_save_LIBS
11289fi
11290{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11291echo "${ECHO_T}$ac_cv_search_login" >&6; }
11292ac_res=$ac_cv_search_login
11293if test "$ac_res" != no; then
11294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11295
11296cat >>confdefs.h <<\_ACEOF
11297#define HAVE_LOGIN 1
11298_ACEOF
11299
11300fi
11301
11302
11303
11304
11305
11306for ac_func in fmt_scaled logout updwtmp logwtmp
11307do
11308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313else
11314 cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
11320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11322#define $ac_func innocuous_$ac_func
11323
11324/* System header to define __stub macros and hopefully few prototypes,
11325 which can conflict with char $ac_func (); below.
11326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11327 <limits.h> exists even on freestanding compilers. */
11328
11329#ifdef __STDC__
11330# include <limits.h>
11331#else
11332# include <assert.h>
11333#endif
11334
11335#undef $ac_func
11336
11337/* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char $ac_func ();
11344/* The GNU C library defines this for functions which it implements
11345 to always fail with ENOSYS. Some functions are actually named
11346 something starting with __ and the normal name is an alias. */
11347#if defined __stub_$ac_func || defined __stub___$ac_func
11348choke me
11349#endif
11350
11351int
11352main ()
11353{
11354return $ac_func ();
11355 ;
11356 return 0;
11357}
11358_ACEOF
11359rm -f conftest.$ac_objext conftest$ac_exeext
11360if { (ac_try="$ac_link"
11361case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364esac
11365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_link") 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest$ac_exeext &&
11376 $as_test_x conftest$ac_exeext; then
11377 eval "$as_ac_var=yes"
11378else
11379 echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 eval "$as_ac_var=no"
11383fi
11384
11385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11386 conftest$ac_exeext conftest.$ac_ext
11387fi
11388ac_res=`eval echo '${'$as_ac_var'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390echo "${ECHO_T}$ac_res" >&6; }
11391if test `eval echo '${'$as_ac_var'}'` = yes; then
11392 cat >>confdefs.h <<_ACEOF
11393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11394_ACEOF
11395
11396fi
11397done
11398
11399
11400
11401for ac_func in strftime
11402do
11403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11404{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408else
11409 cat >conftest.$ac_ext <<_ACEOF
11410/* confdefs.h. */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h. */
11415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11417#define $ac_func innocuous_$ac_func
11418
11419/* System header to define __stub macros and hopefully few prototypes,
11420 which can conflict with char $ac_func (); below.
11421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11422 <limits.h> exists even on freestanding compilers. */
11423
11424#ifdef __STDC__
11425# include <limits.h>
11426#else
11427# include <assert.h>
11428#endif
11429
11430#undef $ac_func
11431
11432/* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435#ifdef __cplusplus
11436extern "C"
11437#endif
11438char $ac_func ();
11439/* The GNU C library defines this for functions which it implements
11440 to always fail with ENOSYS. Some functions are actually named
11441 something starting with __ and the normal name is an alias. */
11442#if defined __stub_$ac_func || defined __stub___$ac_func
11443choke me
11444#endif
11445
11446int
11447main ()
11448{
11449return $ac_func ();
11450 ;
11451 return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext conftest$ac_exeext
11455if { (ac_try="$ac_link"
11456case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459esac
11460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_link") 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } && {
11468 test -z "$ac_c_werror_flag" ||
11469 test ! -s conftest.err
11470 } && test -s conftest$ac_exeext &&
11471 $as_test_x conftest$ac_exeext; then
11472 eval "$as_ac_var=yes"
11473else
11474 echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 eval "$as_ac_var=no"
11478fi
11479
11480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481 conftest$ac_exeext conftest.$ac_ext
11482fi
11483ac_res=`eval echo '${'$as_ac_var'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485echo "${ECHO_T}$ac_res" >&6; }
11486if test `eval echo '${'$as_ac_var'}'` = yes; then
11487 cat >>confdefs.h <<_ACEOF
11488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11489_ACEOF
11490
11491else
11492 # strftime is in -lintl on SCO UNIX.
11493{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11494echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11495if test "${ac_cv_lib_intl_strftime+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 ac_check_lib_save_LIBS=$LIBS
11499LIBS="-lintl $LIBS"
11500cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506
11507/* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11510#ifdef __cplusplus
11511extern "C"
11512#endif
11513char strftime ();
11514int
11515main ()
11516{
11517return strftime ();
11518 ;
11519 return 0;
11520}
11521_ACEOF
11522rm -f conftest.$ac_objext conftest$ac_exeext
11523if { (ac_try="$ac_link"
11524case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527esac
11528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_link") 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && {
11536 test -z "$ac_c_werror_flag" ||
11537 test ! -s conftest.err
11538 } && test -s conftest$ac_exeext &&
11539 $as_test_x conftest$ac_exeext; then
11540 ac_cv_lib_intl_strftime=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 ac_cv_lib_intl_strftime=no
11546fi
11547
11548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11549 conftest$ac_exeext conftest.$ac_ext
11550LIBS=$ac_check_lib_save_LIBS
11551fi
11552{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11553echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11554if test $ac_cv_lib_intl_strftime = yes; then
11555 cat >>confdefs.h <<\_ACEOF
11556#define HAVE_STRFTIME 1
11557_ACEOF
11558
11559LIBS="-lintl $LIBS"
11560fi
11561
11562fi
11563done
11564
11565
11566# Check for ALTDIRFUNC glob() extension
11567{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11568echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11569cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
11575
11576 #include <glob.h>
11577 #ifdef GLOB_ALTDIRFUNC
11578 FOUNDIT
11579 #endif
11580
11581_ACEOF
11582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11583 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11584
11585
11586cat >>confdefs.h <<\_ACEOF
11587#define GLOB_HAS_ALTDIRFUNC 1
11588_ACEOF
11589
11590 { echo "$as_me:$LINENO: result: yes" >&5
11591echo "${ECHO_T}yes" >&6; }
11592
11593else
11594
11595 { echo "$as_me:$LINENO: result: no" >&5
11596echo "${ECHO_T}no" >&6; }
11597
11598
11599fi
11600rm -f conftest*
11601
11602
11603# Check for g.gl_matchc glob() extension
11604{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11605echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11606cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612 #include <glob.h>
11613int
11614main ()
11615{
11616glob_t g; g.gl_matchc = 1;
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (ac_try="$ac_compile"
11623case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_compile") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest.$ac_objext; then
11638
11639
11640cat >>confdefs.h <<\_ACEOF
11641#define GLOB_HAS_GL_MATCHC 1
11642_ACEOF
11643
11644 { echo "$as_me:$LINENO: result: yes" >&5
11645echo "${ECHO_T}yes" >&6; }
11646
11647else
11648 echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651
11652 { echo "$as_me:$LINENO: result: no" >&5
11653echo "${ECHO_T}no" >&6; }
11654
11655
11656fi
11657
11658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659
11660{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
11661echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
11662if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671#include <glob.h>
11672
11673int
11674main ()
11675{
11676#ifndef GLOB_NOMATCH
11677 (void) GLOB_NOMATCH;
11678#endif
11679
11680 ;
11681 return 0;
11682}
11683_ACEOF
11684rm -f conftest.$ac_objext
11685if { (ac_try="$ac_compile"
11686case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689esac
11690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_cv_have_decl_GLOB_NOMATCH=yes
11702else
11703 echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_cv_have_decl_GLOB_NOMATCH=no
11707fi
11708
11709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710fi
11711{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
11712echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
11713if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
11714
11715cat >>confdefs.h <<_ACEOF
11716#define HAVE_DECL_GLOB_NOMATCH 1
11717_ACEOF
11718
11719
11720else
11721 cat >>confdefs.h <<_ACEOF
11722#define HAVE_DECL_GLOB_NOMATCH 0
11723_ACEOF
11724
11725
11726fi
11727
11728
11729
11730{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
11731echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
11732if test "$cross_compiling" = yes; then
11733
11734 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
11735echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
11736 cat >>confdefs.h <<\_ACEOF
11737#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11738_ACEOF
11739
11740
11741
11742else
11743 cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749
11750#include <sys/types.h>
11751#include <dirent.h>
11752int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
11753
11754_ACEOF
11755rm -f conftest$ac_exeext
11756if { (ac_try="$ac_link"
11757case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_link") 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769esac
11770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 { echo "$as_me:$LINENO: result: yes" >&5
11776echo "${ECHO_T}yes" >&6; }
11777else
11778 echo "$as_me: program exited with status $ac_status" >&5
11779echo "$as_me: failed program was:" >&5
11780sed 's/^/| /' conftest.$ac_ext >&5
11781
11782( exit $ac_status )
11783
11784 { echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6; }
11786
11787cat >>confdefs.h <<\_ACEOF
11788#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11789_ACEOF
11790
11791
11792fi
11793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11794fi
11795
11796
11797
11798{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
11799echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
11800if test -d "/proc/$$/fd" ; then
11801
11802cat >>confdefs.h <<\_ACEOF
11803#define HAVE_PROC_PID 1
11804_ACEOF
11805
11806 { echo "$as_me:$LINENO: result: yes" >&5
11807echo "${ECHO_T}yes" >&6; }
11808else
11809 { echo "$as_me:$LINENO: result: no" >&5
11810echo "${ECHO_T}no" >&6; }
11811fi
11812
11813# Check whether user wants S/Key support
11814SKEY_MSG="no"
11815
11816# Check whether --with-skey was given.
11817if test "${with_skey+set}" = set; then
11818 withval=$with_skey;
11819 if test "x$withval" != "xno" ; then
11820
11821 if test "x$withval" != "xyes" ; then
11822 CPPFLAGS="$CPPFLAGS -I${withval}/include"
11823 LDFLAGS="$LDFLAGS -L${withval}/lib"
11824 fi
11825
11826
11827cat >>confdefs.h <<\_ACEOF
11828#define SKEY 1
11829_ACEOF
11830
11831 LIBS="-lskey $LIBS"
11832 SKEY_MSG="yes"
11833
11834 { echo "$as_me:$LINENO: checking for s/key support" >&5
11835echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
11836 cat >conftest.$ac_ext <<_ACEOF
11837/* confdefs.h. */
11838_ACEOF
11839cat confdefs.h >>conftest.$ac_ext
11840cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */
11842
11843#include <stdio.h>
11844#include <skey.h>
11845int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
11846
11847_ACEOF
11848rm -f conftest.$ac_objext conftest$ac_exeext
11849if { (ac_try="$ac_link"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest$ac_exeext &&
11865 $as_test_x conftest$ac_exeext; then
11866 { echo "$as_me:$LINENO: result: yes" >&5
11867echo "${ECHO_T}yes" >&6; }
11868else
11869 echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
11872
11873 { echo "$as_me:$LINENO: result: no" >&5
11874echo "${ECHO_T}no" >&6; }
11875 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
11876echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
11877 { (exit 1); exit 1; }; }
11878
11879fi
11880
11881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11882 conftest$ac_exeext conftest.$ac_ext
11883 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
11884echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891#include <stdio.h>
11892 #include <skey.h>
11893int
11894main ()
11895{
11896(void)skeychallenge(NULL,"name","",0);
11897 ;
11898 return 0;
11899}
11900_ACEOF
11901rm -f conftest.$ac_objext
11902if { (ac_try="$ac_compile"
11903case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.$ac_objext; then
11918 { echo "$as_me:$LINENO: result: yes" >&5
11919echo "${ECHO_T}yes" >&6; }
11920
11921cat >>confdefs.h <<\_ACEOF
11922#define SKEYCHALLENGE_4ARG 1
11923_ACEOF
11924
11925else
11926 echo "$as_me: failed program was:" >&5
11927sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 { echo "$as_me:$LINENO: result: no" >&5
11930echo "${ECHO_T}no" >&6; }
11931
11932fi
11933
11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 fi
11936
11937
11938fi
11939
11940
11941# Check whether user wants TCP wrappers support
11942TCPW_MSG="no"
11943
11944# Check whether --with-tcp-wrappers was given.
11945if test "${with_tcp_wrappers+set}" = set; then
11946 withval=$with_tcp_wrappers;
11947 if test "x$withval" != "xno" ; then
11948 saved_LIBS="$LIBS"
11949 saved_LDFLAGS="$LDFLAGS"
11950 saved_CPPFLAGS="$CPPFLAGS"
11951 if test -n "${withval}" && \
11952 test "x${withval}" != "xyes"; then
11953 if test -d "${withval}/lib"; then
11954 if test -n "${need_dash_r}"; then
11955 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11956 else
11957 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11958 fi
11959 else
11960 if test -n "${need_dash_r}"; then
11961 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11962 else
11963 LDFLAGS="-L${withval} ${LDFLAGS}"
11964 fi
11965 fi
11966 if test -d "${withval}/include"; then
11967 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11968 else
11969 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11970 fi
11971 fi
11972 LIBS="-lwrap $LIBS"
11973 { echo "$as_me:$LINENO: checking for libwrap" >&5
11974echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
11975 cat >conftest.$ac_ext <<_ACEOF
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
11981
11982#include <sys/types.h>
11983#include <sys/socket.h>
11984#include <netinet/in.h>
11985#include <tcpd.h>
11986 int deny_severity = 0, allow_severity = 0;
11987
11988int
11989main ()
11990{
11991hosts_access(0);
11992 ;
11993 return 0;
11994}
11995_ACEOF
11996rm -f conftest.$ac_objext conftest$ac_exeext
11997if { (ac_try="$ac_link"
11998case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001esac
12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_link") 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } && {
12010 test -z "$ac_c_werror_flag" ||
12011 test ! -s conftest.err
12012 } && test -s conftest$ac_exeext &&
12013 $as_test_x conftest$ac_exeext; then
12014
12015 { echo "$as_me:$LINENO: result: yes" >&5
12016echo "${ECHO_T}yes" >&6; }
12017
12018cat >>confdefs.h <<\_ACEOF
12019#define LIBWRAP 1
12020_ACEOF
12021
12022 SSHDLIBS="$SSHDLIBS -lwrap"
12023 TCPW_MSG="yes"
12024
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029
12030 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12031echo "$as_me: error: *** libwrap missing" >&2;}
12032 { (exit 1); exit 1; }; }
12033
12034
12035fi
12036
12037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12038 conftest$ac_exeext conftest.$ac_ext
12039 LIBS="$saved_LIBS"
12040 fi
12041
12042
12043fi
12044
12045
12046# Check whether user wants libedit support
12047LIBEDIT_MSG="no"
12048
12049# Check whether --with-libedit was given.
12050if test "${with_libedit+set}" = set; then
12051 withval=$with_libedit; if test "x$withval" != "xno" ; then
12052 if test "x$withval" != "xyes"; then
12053 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12054 if test -n "${need_dash_r}"; then
12055 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12056 else
12057 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12058 fi
12059 fi
12060 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12061echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
12062if test "${ac_cv_lib_edit_el_init+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
12065 ac_check_lib_save_LIBS=$LIBS
12066LIBS="-ledit -lcurses
12067 $LIBS"
12068cat >conftest.$ac_ext <<_ACEOF
12069/* confdefs.h. */
12070_ACEOF
12071cat confdefs.h >>conftest.$ac_ext
12072cat >>conftest.$ac_ext <<_ACEOF
12073/* end confdefs.h. */
12074
12075/* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078#ifdef __cplusplus
12079extern "C"
12080#endif
12081char el_init ();
12082int
12083main ()
12084{
12085return el_init ();
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090rm -f conftest.$ac_objext conftest$ac_exeext
12091if { (ac_try="$ac_link"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } && {
12104 test -z "$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 } && test -s conftest$ac_exeext &&
12107 $as_test_x conftest$ac_exeext; then
12108 ac_cv_lib_edit_el_init=yes
12109else
12110 echo "$as_me: failed program was:" >&5
12111sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_cv_lib_edit_el_init=no
12114fi
12115
12116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12117 conftest$ac_exeext conftest.$ac_ext
12118LIBS=$ac_check_lib_save_LIBS
12119fi
12120{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
12121echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
12122if test $ac_cv_lib_edit_el_init = yes; then
12123
12124cat >>confdefs.h <<\_ACEOF
12125#define USE_LIBEDIT 1
12126_ACEOF
12127
12128 LIBEDIT="-ledit -lcurses"
12129 LIBEDIT_MSG="yes"
12130
12131
12132else
12133 { { echo "$as_me:$LINENO: error: libedit not found" >&5
12134echo "$as_me: error: libedit not found" >&2;}
12135 { (exit 1); exit 1; }; }
12136fi
12137
12138 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
12139echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
12146
12147#include <histedit.h>
12148int main(void)
12149{
12150 int i = H_SETSIZE;
12151 el_init("", NULL, NULL, NULL);
12152 exit(0);
12153}
12154
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (ac_try="$ac_compile"
12158case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12161esac
12162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_compile") 2>conftest.er1
12164 ac_status=$?
12165 grep -v '^ *+' conftest.er1 >conftest.err
12166 rm -f conftest.er1
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } && {
12170 test -z "$ac_c_werror_flag" ||
12171 test ! -s conftest.err
12172 } && test -s conftest.$ac_objext; then
12173 { echo "$as_me:$LINENO: result: yes" >&5
12174echo "${ECHO_T}yes" >&6; }
12175else
12176 echo "$as_me: failed program was:" >&5
12177sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 { echo "$as_me:$LINENO: result: no" >&5
12180echo "${ECHO_T}no" >&6; }
12181 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
12182echo "$as_me: error: libedit version is not compatible" >&2;}
12183 { (exit 1); exit 1; }; }
12184
12185fi
12186
12187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188 fi
12189
12190fi
12191
12192
12193AUDIT_MODULE=none
12194
12195# Check whether --with-audit was given.
12196if test "${with_audit+set}" = set; then
12197 withval=$with_audit;
12198 { echo "$as_me:$LINENO: checking for supported audit module" >&5
12199echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
12200 case "$withval" in
12201 bsm)
12202 { echo "$as_me:$LINENO: result: bsm" >&5
12203echo "${ECHO_T}bsm" >&6; }
12204 AUDIT_MODULE=bsm
12205
12206for ac_header in bsm/audit.h
12207do
12208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214 cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220
12221#ifdef HAVE_TIME_H
12222# include <time.h>
12223#endif
12224
12225
12226
12227#include <$ac_header>
12228_ACEOF
12229rm -f conftest.$ac_objext
12230if { (ac_try="$ac_compile"
12231case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_compile") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest.$ac_objext; then
12246 eval "$as_ac_Header=yes"
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 eval "$as_ac_Header=no"
12252fi
12253
12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255fi
12256ac_res=`eval echo '${'$as_ac_Header'}'`
12257 { echo "$as_me:$LINENO: result: $ac_res" >&5
12258echo "${ECHO_T}$ac_res" >&6; }
12259if test `eval echo '${'$as_ac_Header'}'` = yes; then
12260 cat >>confdefs.h <<_ACEOF
12261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12262_ACEOF
12263
12264else
12265 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
12266echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
12267 { (exit 1); exit 1; }; }
12268fi
12269
12270done
12271
12272
12273{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
12274echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
12275if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277else
12278 ac_check_lib_save_LIBS=$LIBS
12279LIBS="-lbsm $LIBS"
12280cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286
12287/* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290#ifdef __cplusplus
12291extern "C"
12292#endif
12293char getaudit ();
12294int
12295main ()
12296{
12297return getaudit ();
12298 ;
12299 return 0;
12300}
12301_ACEOF
12302rm -f conftest.$ac_objext conftest$ac_exeext
12303if { (ac_try="$ac_link"
12304case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307esac
12308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_link") 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest$ac_exeext &&
12319 $as_test_x conftest$ac_exeext; then
12320 ac_cv_lib_bsm_getaudit=yes
12321else
12322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_lib_bsm_getaudit=no
12326fi
12327
12328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12329 conftest$ac_exeext conftest.$ac_ext
12330LIBS=$ac_check_lib_save_LIBS
12331fi
12332{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12333echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12334if test $ac_cv_lib_bsm_getaudit = yes; then
12335 cat >>confdefs.h <<_ACEOF
12336#define HAVE_LIBBSM 1
12337_ACEOF
12338
12339 LIBS="-lbsm $LIBS"
12340
12341else
12342 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12343echo "$as_me: error: BSM enabled and required library not found" >&2;}
12344 { (exit 1); exit 1; }; }
12345fi
12346
12347
12348for ac_func in getaudit
12349do
12350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356 cat >conftest.$ac_ext <<_ACEOF
12357/* confdefs.h. */
12358_ACEOF
12359cat confdefs.h >>conftest.$ac_ext
12360cat >>conftest.$ac_ext <<_ACEOF
12361/* end confdefs.h. */
12362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364#define $ac_func innocuous_$ac_func
12365
12366/* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char $ac_func (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12370
12371#ifdef __STDC__
12372# include <limits.h>
12373#else
12374# include <assert.h>
12375#endif
12376
12377#undef $ac_func
12378
12379/* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382#ifdef __cplusplus
12383extern "C"
12384#endif
12385char $ac_func ();
12386/* The GNU C library defines this for functions which it implements
12387 to always fail with ENOSYS. Some functions are actually named
12388 something starting with __ and the normal name is an alias. */
12389#if defined __stub_$ac_func || defined __stub___$ac_func
12390choke me
12391#endif
12392
12393int
12394main ()
12395{
12396return $ac_func ();
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401rm -f conftest.$ac_objext conftest$ac_exeext
12402if { (ac_try="$ac_link"
12403case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406esac
12407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest$ac_exeext &&
12418 $as_test_x conftest$ac_exeext; then
12419 eval "$as_ac_var=yes"
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 eval "$as_ac_var=no"
12425fi
12426
12427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12428 conftest$ac_exeext conftest.$ac_ext
12429fi
12430ac_res=`eval echo '${'$as_ac_var'}'`
12431 { echo "$as_me:$LINENO: result: $ac_res" >&5
12432echo "${ECHO_T}$ac_res" >&6; }
12433if test `eval echo '${'$as_ac_var'}'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12436_ACEOF
12437
12438else
12439 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12440echo "$as_me: error: BSM enabled and required function not found" >&2;}
12441 { (exit 1); exit 1; }; }
12442fi
12443done
12444
12445 # These are optional
12446
12447
12448for ac_func in getaudit_addr aug_get_machine
12449do
12450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12451{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12453if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455else
12456 cat >conftest.$ac_ext <<_ACEOF
12457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
12462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12464#define $ac_func innocuous_$ac_func
12465
12466/* System header to define __stub macros and hopefully few prototypes,
12467 which can conflict with char $ac_func (); below.
12468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469 <limits.h> exists even on freestanding compilers. */
12470
12471#ifdef __STDC__
12472# include <limits.h>
12473#else
12474# include <assert.h>
12475#endif
12476
12477#undef $ac_func
12478
12479/* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482#ifdef __cplusplus
12483extern "C"
12484#endif
12485char $ac_func ();
12486/* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489#if defined __stub_$ac_func || defined __stub___$ac_func
12490choke me
12491#endif
12492
12493int
12494main ()
12495{
12496return $ac_func ();
12497 ;
12498 return 0;
12499}
12500_ACEOF
12501rm -f conftest.$ac_objext conftest$ac_exeext
12502if { (ac_try="$ac_link"
12503case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506esac
12507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_link") 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest$ac_exeext &&
12518 $as_test_x conftest$ac_exeext; then
12519 eval "$as_ac_var=yes"
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
12524 eval "$as_ac_var=no"
12525fi
12526
12527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12528 conftest$ac_exeext conftest.$ac_ext
12529fi
12530ac_res=`eval echo '${'$as_ac_var'}'`
12531 { echo "$as_me:$LINENO: result: $ac_res" >&5
12532echo "${ECHO_T}$ac_res" >&6; }
12533if test `eval echo '${'$as_ac_var'}'` = yes; then
12534 cat >>confdefs.h <<_ACEOF
12535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12536_ACEOF
12537
12538fi
12539done
12540
12541
12542cat >>confdefs.h <<\_ACEOF
12543#define USE_BSM_AUDIT 1
12544_ACEOF
12545
12546 ;;
12547 debug)
12548 AUDIT_MODULE=debug
12549 { echo "$as_me:$LINENO: result: debug" >&5
12550echo "${ECHO_T}debug" >&6; }
12551
12552cat >>confdefs.h <<\_ACEOF
12553#define SSH_AUDIT_EVENTS 1
12554_ACEOF
12555
12556 ;;
12557 no)
12558 { echo "$as_me:$LINENO: result: no" >&5
12559echo "${ECHO_T}no" >&6; }
12560 ;;
12561 *)
12562 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12563echo "$as_me: error: Unknown audit module $withval" >&2;}
12564 { (exit 1); exit 1; }; }
12565 ;;
12566 esac
12567
12568fi
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660for ac_func in \
12661 arc4random \
12662 arc4random_buf \
12663 arc4random_uniform \
12664 asprintf \
12665 b64_ntop \
12666 __b64_ntop \
12667 b64_pton \
12668 __b64_pton \
12669 bcopy \
12670 bindresvport_sa \
12671 clock \
12672 closefrom \
12673 dirfd \
12674 fchmod \
12675 fchown \
12676 freeaddrinfo \
12677 fstatvfs \
12678 futimes \
12679 getaddrinfo \
12680 getcwd \
12681 getgrouplist \
12682 getnameinfo \
12683 getopt \
12684 getpeereid \
12685 getpeerucred \
12686 _getpty \
12687 getrlimit \
12688 getttyent \
12689 glob \
12690 inet_aton \
12691 inet_ntoa \
12692 inet_ntop \
12693 innetgr \
12694 login_getcapbool \
12695 md5_crypt \
12696 memmove \
12697 mkdtemp \
12698 mmap \
12699 ngetaddrinfo \
12700 nsleep \
12701 ogetaddrinfo \
12702 openlog_r \
12703 openpty \
12704 poll \
12705 prctl \
12706 pstat \
12707 readpassphrase \
12708 realpath \
12709 recvmsg \
12710 rresvport_af \
12711 sendmsg \
12712 setdtablesize \
12713 setegid \
12714 setenv \
12715 seteuid \
12716 setgroups \
12717 setlogin \
12718 setpcred \
12719 setproctitle \
12720 setregid \
12721 setreuid \
12722 setrlimit \
12723 setsid \
12724 setvbuf \
12725 sigaction \
12726 sigvec \
12727 snprintf \
12728 socketpair \
12729 statfs \
12730 statvfs \
12731 strdup \
12732 strerror \
12733 strlcat \
12734 strlcpy \
12735 strmode \
12736 strnvis \
12737 strtonum \
12738 strtoll \
12739 strtoul \
12740 swap32 \
12741 sysconf \
12742 tcgetpgrp \
12743 truncate \
12744 unsetenv \
12745 updwtmpx \
12746 vasprintf \
12747 vhangup \
12748 vsnprintf \
12749 waitpid \
12750
12751do
12752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757else
12758 cat >conftest.$ac_ext <<_ACEOF
12759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12766#define $ac_func innocuous_$ac_func
12767
12768/* System header to define __stub macros and hopefully few prototypes,
12769 which can conflict with char $ac_func (); below.
12770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12771 <limits.h> exists even on freestanding compilers. */
12772
12773#ifdef __STDC__
12774# include <limits.h>
12775#else
12776# include <assert.h>
12777#endif
12778
12779#undef $ac_func
12780
12781/* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12784#ifdef __cplusplus
12785extern "C"
12786#endif
12787char $ac_func ();
12788/* The GNU C library defines this for functions which it implements
12789 to always fail with ENOSYS. Some functions are actually named
12790 something starting with __ and the normal name is an alias. */
12791#if defined __stub_$ac_func || defined __stub___$ac_func
12792choke me
12793#endif
12794
12795int
12796main ()
12797{
12798return $ac_func ();
12799 ;
12800 return 0;
12801}
12802_ACEOF
12803rm -f conftest.$ac_objext conftest$ac_exeext
12804if { (ac_try="$ac_link"
12805case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest$ac_exeext &&
12820 $as_test_x conftest$ac_exeext; then
12821 eval "$as_ac_var=yes"
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 eval "$as_ac_var=no"
12827fi
12828
12829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12830 conftest$ac_exeext conftest.$ac_ext
12831fi
12832ac_res=`eval echo '${'$as_ac_var'}'`
12833 { echo "$as_me:$LINENO: result: $ac_res" >&5
12834echo "${ECHO_T}$ac_res" >&6; }
12835if test `eval echo '${'$as_ac_var'}'` = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12838_ACEOF
12839
12840fi
12841done
12842
12843
12844# IRIX has a const char return value for gai_strerror()
12845
12846for ac_func in gai_strerror
12847do
12848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853else
12854 cat >conftest.$ac_ext <<_ACEOF
12855/* confdefs.h. */
12856_ACEOF
12857cat confdefs.h >>conftest.$ac_ext
12858cat >>conftest.$ac_ext <<_ACEOF
12859/* end confdefs.h. */
12860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12862#define $ac_func innocuous_$ac_func
12863
12864/* System header to define __stub macros and hopefully few prototypes,
12865 which can conflict with char $ac_func (); below.
12866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867 <limits.h> exists even on freestanding compilers. */
12868
12869#ifdef __STDC__
12870# include <limits.h>
12871#else
12872# include <assert.h>
12873#endif
12874
12875#undef $ac_func
12876
12877/* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12880#ifdef __cplusplus
12881extern "C"
12882#endif
12883char $ac_func ();
12884/* The GNU C library defines this for functions which it implements
12885 to always fail with ENOSYS. Some functions are actually named
12886 something starting with __ and the normal name is an alias. */
12887#if defined __stub_$ac_func || defined __stub___$ac_func
12888choke me
12889#endif
12890
12891int
12892main ()
12893{
12894return $ac_func ();
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext conftest$ac_exeext
12900if { (ac_try="$ac_link"
12901case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_link") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest$ac_exeext &&
12916 $as_test_x conftest$ac_exeext; then
12917 eval "$as_ac_var=yes"
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922 eval "$as_ac_var=no"
12923fi
12924
12925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926 conftest$ac_exeext conftest.$ac_ext
12927fi
12928ac_res=`eval echo '${'$as_ac_var'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930echo "${ECHO_T}$ac_res" >&6; }
12931if test `eval echo '${'$as_ac_var'}'` = yes; then
12932 cat >>confdefs.h <<_ACEOF
12933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934_ACEOF
12935
12936 cat >>confdefs.h <<\_ACEOF
12937#define HAVE_GAI_STRERROR 1
12938_ACEOF
12939
12940 cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946
12947#include <sys/types.h>
12948#include <sys/socket.h>
12949#include <netdb.h>
12950
12951const char *gai_strerror(int);
12952int
12953main ()
12954{
12955
12956char *str;
12957
12958str = gai_strerror(0);
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963rm -f conftest.$ac_objext
12964if { (ac_try="$ac_compile"
12965case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12968esac
12969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_compile") 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } && {
12977 test -z "$ac_c_werror_flag" ||
12978 test ! -s conftest.err
12979 } && test -s conftest.$ac_objext; then
12980
12981
12982cat >>confdefs.h <<\_ACEOF
12983#define HAVE_CONST_GAI_STRERROR_PROTO 1
12984_ACEOF
12985
12986else
12987 echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
12990
12991fi
12992
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994fi
12995done
12996
12997
12998{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
12999echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
13000if test "${ac_cv_search_nanosleep+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003 ac_func_search_save_LIBS=$LIBS
13004cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h. */
13010
13011/* Override any GCC internal prototype to avoid an error.
13012 Use char because int might match the return type of a GCC
13013 builtin and then its argument prototype would still apply. */
13014#ifdef __cplusplus
13015extern "C"
13016#endif
13017char nanosleep ();
13018int
13019main ()
13020{
13021return nanosleep ();
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026for ac_lib in '' rt posix4; do
13027 if test -z "$ac_lib"; then
13028 ac_res="none required"
13029 else
13030 ac_res=-l$ac_lib
13031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13032 fi
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034if { (ac_try="$ac_link"
13035case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest$ac_exeext &&
13050 $as_test_x conftest$ac_exeext; then
13051 ac_cv_search_nanosleep=$ac_res
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056
13057fi
13058
13059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13060 conftest$ac_exeext
13061 if test "${ac_cv_search_nanosleep+set}" = set; then
13062 break
13063fi
13064done
13065if test "${ac_cv_search_nanosleep+set}" = set; then
13066 :
13067else
13068 ac_cv_search_nanosleep=no
13069fi
13070rm conftest.$ac_ext
13071LIBS=$ac_func_search_save_LIBS
13072fi
13073{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
13074echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
13075ac_res=$ac_cv_search_nanosleep
13076if test "$ac_res" != no; then
13077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13078
13079cat >>confdefs.h <<\_ACEOF
13080#define HAVE_NANOSLEEP 1
13081_ACEOF
13082
13083fi
13084
13085
13086{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
13087echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
13088if test "${ac_cv_have_decl_getrusage+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090else
13091 cat >conftest.$ac_ext <<_ACEOF
13092/* confdefs.h. */
13093_ACEOF
13094cat confdefs.h >>conftest.$ac_ext
13095cat >>conftest.$ac_ext <<_ACEOF
13096/* end confdefs.h. */
13097$ac_includes_default
13098int
13099main ()
13100{
13101#ifndef getrusage
13102 (void) getrusage;
13103#endif
13104
13105 ;
13106 return 0;
13107}
13108_ACEOF
13109rm -f conftest.$ac_objext
13110if { (ac_try="$ac_compile"
13111case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114esac
13115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 ac_cv_have_decl_getrusage=yes
13127else
13128 echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 ac_cv_have_decl_getrusage=no
13132fi
13133
13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135fi
13136{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
13137echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
13138if test $ac_cv_have_decl_getrusage = yes; then
13139
13140for ac_func in getrusage
13141do
13142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148 cat >conftest.$ac_ext <<_ACEOF
13149/* confdefs.h. */
13150_ACEOF
13151cat confdefs.h >>conftest.$ac_ext
13152cat >>conftest.$ac_ext <<_ACEOF
13153/* end confdefs.h. */
13154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156#define $ac_func innocuous_$ac_func
13157
13158/* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13162
13163#ifdef __STDC__
13164# include <limits.h>
13165#else
13166# include <assert.h>
13167#endif
13168
13169#undef $ac_func
13170
13171/* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174#ifdef __cplusplus
13175extern "C"
13176#endif
13177char $ac_func ();
13178/* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181#if defined __stub_$ac_func || defined __stub___$ac_func
13182choke me
13183#endif
13184
13185int
13186main ()
13187{
13188return $ac_func ();
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
13194if { (ac_try="$ac_link"
13195case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest$ac_exeext &&
13210 $as_test_x conftest$ac_exeext; then
13211 eval "$as_ac_var=yes"
13212else
13213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 eval "$as_ac_var=no"
13217fi
13218
13219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13220 conftest$ac_exeext conftest.$ac_ext
13221fi
13222ac_res=`eval echo '${'$as_ac_var'}'`
13223 { echo "$as_me:$LINENO: result: $ac_res" >&5
13224echo "${ECHO_T}$ac_res" >&6; }
13225if test `eval echo '${'$as_ac_var'}'` = yes; then
13226 cat >>confdefs.h <<_ACEOF
13227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13228_ACEOF
13229
13230fi
13231done
13232
13233fi
13234
13235{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
13236echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
13237if test "${ac_cv_have_decl_strsep+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239else
13240 cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246
13247#ifdef HAVE_STRING_H
13248# include <string.h>
13249#endif
13250
13251
13252int
13253main ()
13254{
13255#ifndef strsep
13256 (void) strsep;
13257#endif
13258
13259 ;
13260 return 0;
13261}
13262_ACEOF
13263rm -f conftest.$ac_objext
13264if { (ac_try="$ac_compile"
13265case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268esac
13269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_compile") 2>conftest.er1
13271 ac_status=$?
13272 grep -v '^ *+' conftest.er1 >conftest.err
13273 rm -f conftest.er1
13274 cat conftest.err >&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } && {
13277 test -z "$ac_c_werror_flag" ||
13278 test ! -s conftest.err
13279 } && test -s conftest.$ac_objext; then
13280 ac_cv_have_decl_strsep=yes
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_cv_have_decl_strsep=no
13286fi
13287
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289fi
13290{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
13291echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
13292if test $ac_cv_have_decl_strsep = yes; then
13293
13294for ac_func in strsep
13295do
13296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301else
13302 cat >conftest.$ac_ext <<_ACEOF
13303/* confdefs.h. */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h. */
13308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13310#define $ac_func innocuous_$ac_func
13311
13312/* System header to define __stub macros and hopefully few prototypes,
13313 which can conflict with char $ac_func (); below.
13314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13315 <limits.h> exists even on freestanding compilers. */
13316
13317#ifdef __STDC__
13318# include <limits.h>
13319#else
13320# include <assert.h>
13321#endif
13322
13323#undef $ac_func
13324
13325/* Override any GCC internal prototype to avoid an error.
13326 Use char because int might match the return type of a GCC
13327 builtin and then its argument prototype would still apply. */
13328#ifdef __cplusplus
13329extern "C"
13330#endif
13331char $ac_func ();
13332/* The GNU C library defines this for functions which it implements
13333 to always fail with ENOSYS. Some functions are actually named
13334 something starting with __ and the normal name is an alias. */
13335#if defined __stub_$ac_func || defined __stub___$ac_func
13336choke me
13337#endif
13338
13339int
13340main ()
13341{
13342return $ac_func ();
13343 ;
13344 return 0;
13345}
13346_ACEOF
13347rm -f conftest.$ac_objext conftest$ac_exeext
13348if { (ac_try="$ac_link"
13349case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352esac
13353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext &&
13364 $as_test_x conftest$ac_exeext; then
13365 eval "$as_ac_var=yes"
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 eval "$as_ac_var=no"
13371fi
13372
13373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374 conftest$ac_exeext conftest.$ac_ext
13375fi
13376ac_res=`eval echo '${'$as_ac_var'}'`
13377 { echo "$as_me:$LINENO: result: $ac_res" >&5
13378echo "${ECHO_T}$ac_res" >&6; }
13379if test `eval echo '${'$as_ac_var'}'` = yes; then
13380 cat >>confdefs.h <<_ACEOF
13381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13382_ACEOF
13383
13384fi
13385done
13386
13387fi
13388
13389
13390{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13391echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13392if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401#include <termios.h>
13402
13403
13404int
13405main ()
13406{
13407#ifndef tcsendbreak
13408 (void) tcsendbreak;
13409#endif
13410
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (ac_try="$ac_compile"
13417case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_compile") 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && {
13429 test -z "$ac_c_werror_flag" ||
13430 test ! -s conftest.err
13431 } && test -s conftest.$ac_objext; then
13432 ac_cv_have_decl_tcsendbreak=yes
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 ac_cv_have_decl_tcsendbreak=no
13438fi
13439
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441fi
13442{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13443echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13444if test $ac_cv_have_decl_tcsendbreak = yes; then
13445 cat >>confdefs.h <<\_ACEOF
13446#define HAVE_TCSENDBREAK 1
13447_ACEOF
13448
13449else
13450
13451for ac_func in tcsendbreak
13452do
13453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13467#define $ac_func innocuous_$ac_func
13468
13469/* System header to define __stub macros and hopefully few prototypes,
13470 which can conflict with char $ac_func (); below.
13471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472 <limits.h> exists even on freestanding compilers. */
13473
13474#ifdef __STDC__
13475# include <limits.h>
13476#else
13477# include <assert.h>
13478#endif
13479
13480#undef $ac_func
13481
13482/* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485#ifdef __cplusplus
13486extern "C"
13487#endif
13488char $ac_func ();
13489/* The GNU C library defines this for functions which it implements
13490 to always fail with ENOSYS. Some functions are actually named
13491 something starting with __ and the normal name is an alias. */
13492#if defined __stub_$ac_func || defined __stub___$ac_func
13493choke me
13494#endif
13495
13496int
13497main ()
13498{
13499return $ac_func ();
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext conftest$ac_exeext
13505if { (ac_try="$ac_link"
13506case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509esac
13510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest$ac_exeext &&
13521 $as_test_x conftest$ac_exeext; then
13522 eval "$as_ac_var=yes"
13523else
13524 echo "$as_me: failed program was:" >&5
13525sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 eval "$as_ac_var=no"
13528fi
13529
13530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13531 conftest$ac_exeext conftest.$ac_ext
13532fi
13533ac_res=`eval echo '${'$as_ac_var'}'`
13534 { echo "$as_me:$LINENO: result: $ac_res" >&5
13535echo "${ECHO_T}$ac_res" >&6; }
13536if test `eval echo '${'$as_ac_var'}'` = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13539_ACEOF
13540
13541fi
13542done
13543
13544fi
13545
13546
13547{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
13548echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
13549if test "${ac_cv_have_decl_h_errno+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551else
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558#include <netdb.h>
13559
13560int
13561main ()
13562{
13563#ifndef h_errno
13564 (void) h_errno;
13565#endif
13566
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571rm -f conftest.$ac_objext
13572if { (ac_try="$ac_compile"
13573case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_compile") 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } && {
13585 test -z "$ac_c_werror_flag" ||
13586 test ! -s conftest.err
13587 } && test -s conftest.$ac_objext; then
13588 ac_cv_have_decl_h_errno=yes
13589else
13590 echo "$as_me: failed program was:" >&5
13591sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_have_decl_h_errno=no
13594fi
13595
13596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597fi
13598{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
13599echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
13600if test $ac_cv_have_decl_h_errno = yes; then
13601
13602cat >>confdefs.h <<_ACEOF
13603#define HAVE_DECL_H_ERRNO 1
13604_ACEOF
13605
13606
13607else
13608 cat >>confdefs.h <<_ACEOF
13609#define HAVE_DECL_H_ERRNO 0
13610_ACEOF
13611
13612
13613fi
13614
13615
13616
13617{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
13618echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
13619if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622 cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628
13629#include <sys/types.h>
13630#include <sys/socket.h>
13631
13632
13633int
13634main ()
13635{
13636#ifndef SHUT_RD
13637 (void) SHUT_RD;
13638#endif
13639
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
13645if { (ac_try="$ac_compile"
13646case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compile") 2>conftest.er1
13652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } && {
13658 test -z "$ac_c_werror_flag" ||
13659 test ! -s conftest.err
13660 } && test -s conftest.$ac_objext; then
13661 ac_cv_have_decl_SHUT_RD=yes
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666 ac_cv_have_decl_SHUT_RD=no
13667fi
13668
13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670fi
13671{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
13672echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
13673if test $ac_cv_have_decl_SHUT_RD = yes; then
13674
13675cat >>confdefs.h <<_ACEOF
13676#define HAVE_DECL_SHUT_RD 1
13677_ACEOF
13678
13679
13680else
13681 cat >>confdefs.h <<_ACEOF
13682#define HAVE_DECL_SHUT_RD 0
13683_ACEOF
13684
13685
13686fi
13687
13688
13689
13690{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
13691echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
13692if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694else
13695 cat >conftest.$ac_ext <<_ACEOF
13696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
13700/* end confdefs.h. */
13701
13702#include <sys/types.h>
13703#ifdef HAVE_SYS_STAT_H
13704# include <sys/stat.h>
13705#endif
13706#ifdef HAVE_FCNTL_H
13707# include <fcntl.h>
13708#endif
13709
13710
13711int
13712main ()
13713{
13714#ifndef O_NONBLOCK
13715 (void) O_NONBLOCK;
13716#endif
13717
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext
13723if { (ac_try="$ac_compile"
13724case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_compile") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } && {
13736 test -z "$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 } && test -s conftest.$ac_objext; then
13739 ac_cv_have_decl_O_NONBLOCK=yes
13740else
13741 echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 ac_cv_have_decl_O_NONBLOCK=no
13745fi
13746
13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748fi
13749{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
13750echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
13751if test $ac_cv_have_decl_O_NONBLOCK = yes; then
13752
13753cat >>confdefs.h <<_ACEOF
13754#define HAVE_DECL_O_NONBLOCK 1
13755_ACEOF
13756
13757
13758else
13759 cat >>confdefs.h <<_ACEOF
13760#define HAVE_DECL_O_NONBLOCK 0
13761_ACEOF
13762
13763
13764fi
13765
13766
13767
13768{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
13769echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
13770if test "${ac_cv_have_decl_writev+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772else
13773 cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
13779
13780#include <sys/types.h>
13781#include <sys/uio.h>
13782#include <unistd.h>
13783
13784
13785int
13786main ()
13787{
13788#ifndef writev
13789 (void) writev;
13790#endif
13791
13792 ;
13793 return 0;
13794}
13795_ACEOF
13796rm -f conftest.$ac_objext
13797if { (ac_try="$ac_compile"
13798case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801esac
13802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_compile") 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } && {
13810 test -z "$ac_c_werror_flag" ||
13811 test ! -s conftest.err
13812 } && test -s conftest.$ac_objext; then
13813 ac_cv_have_decl_writev=yes
13814else
13815 echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
13818 ac_cv_have_decl_writev=no
13819fi
13820
13821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822fi
13823{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
13824echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
13825if test $ac_cv_have_decl_writev = yes; then
13826
13827cat >>confdefs.h <<_ACEOF
13828#define HAVE_DECL_WRITEV 1
13829_ACEOF
13830
13831
13832else
13833 cat >>confdefs.h <<_ACEOF
13834#define HAVE_DECL_WRITEV 0
13835_ACEOF
13836
13837
13838fi
13839
13840
13841
13842{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
13843echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
13844if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846else
13847 cat >conftest.$ac_ext <<_ACEOF
13848/* confdefs.h. */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
13852/* end confdefs.h. */
13853
13854#include <sys/param.h>
13855
13856
13857int
13858main ()
13859{
13860#ifndef MAXSYMLINKS
13861 (void) MAXSYMLINKS;
13862#endif
13863
13864 ;
13865 return 0;
13866}
13867_ACEOF
13868rm -f conftest.$ac_objext
13869if { (ac_try="$ac_compile"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest.$ac_objext; then
13885 ac_cv_have_decl_MAXSYMLINKS=yes
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 ac_cv_have_decl_MAXSYMLINKS=no
13891fi
13892
13893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894fi
13895{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
13896echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
13897if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
13898
13899cat >>confdefs.h <<_ACEOF
13900#define HAVE_DECL_MAXSYMLINKS 1
13901_ACEOF
13902
13903
13904else
13905 cat >>confdefs.h <<_ACEOF
13906#define HAVE_DECL_MAXSYMLINKS 0
13907_ACEOF
13908
13909
13910fi
13911
13912
13913
13914{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
13915echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
13916if test "${ac_cv_have_decl_offsetof+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919 cat >conftest.$ac_ext <<_ACEOF
13920/* confdefs.h. */
13921_ACEOF
13922cat confdefs.h >>conftest.$ac_ext
13923cat >>conftest.$ac_ext <<_ACEOF
13924/* end confdefs.h. */
13925
13926#include <stddef.h>
13927
13928
13929int
13930main ()
13931{
13932#ifndef offsetof
13933 (void) offsetof;
13934#endif
13935
13936 ;
13937 return 0;
13938}
13939_ACEOF
13940rm -f conftest.$ac_objext
13941if { (ac_try="$ac_compile"
13942case "(($ac_try" in
13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944 *) ac_try_echo=$ac_try;;
13945esac
13946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947 (eval "$ac_compile") 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } && {
13954 test -z "$ac_c_werror_flag" ||
13955 test ! -s conftest.err
13956 } && test -s conftest.$ac_objext; then
13957 ac_cv_have_decl_offsetof=yes
13958else
13959 echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962 ac_cv_have_decl_offsetof=no
13963fi
13964
13965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966fi
13967{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
13968echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
13969if test $ac_cv_have_decl_offsetof = yes; then
13970
13971cat >>confdefs.h <<_ACEOF
13972#define HAVE_DECL_OFFSETOF 1
13973_ACEOF
13974
13975
13976else
13977 cat >>confdefs.h <<_ACEOF
13978#define HAVE_DECL_OFFSETOF 0
13979_ACEOF
13980
13981
13982fi
13983
13984
13985
13986
13987for ac_func in setresuid
13988do
13989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994else
13995 cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003#define $ac_func innocuous_$ac_func
14004
14005/* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char $ac_func (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14009
14010#ifdef __STDC__
14011# include <limits.h>
14012#else
14013# include <assert.h>
14014#endif
14015
14016#undef $ac_func
14017
14018/* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14021#ifdef __cplusplus
14022extern "C"
14023#endif
14024char $ac_func ();
14025/* The GNU C library defines this for functions which it implements
14026 to always fail with ENOSYS. Some functions are actually named
14027 something starting with __ and the normal name is an alias. */
14028#if defined __stub_$ac_func || defined __stub___$ac_func
14029choke me
14030#endif
14031
14032int
14033main ()
14034{
14035return $ac_func ();
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040rm -f conftest.$ac_objext conftest$ac_exeext
14041if { (ac_try="$ac_link"
14042case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_link") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest$ac_exeext &&
14057 $as_test_x conftest$ac_exeext; then
14058 eval "$as_ac_var=yes"
14059else
14060 echo "$as_me: failed program was:" >&5
14061sed 's/^/| /' conftest.$ac_ext >&5
14062
14063 eval "$as_ac_var=no"
14064fi
14065
14066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14067 conftest$ac_exeext conftest.$ac_ext
14068fi
14069ac_res=`eval echo '${'$as_ac_var'}'`
14070 { echo "$as_me:$LINENO: result: $ac_res" >&5
14071echo "${ECHO_T}$ac_res" >&6; }
14072if test `eval echo '${'$as_ac_var'}'` = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14075_ACEOF
14076
14077 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
14078echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
14079 if test "$cross_compiling" = yes; then
14080 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14081echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14082
14083else
14084 cat >conftest.$ac_ext <<_ACEOF
14085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h. */
14090
14091#include <stdlib.h>
14092#include <errno.h>
14093int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14094
14095_ACEOF
14096rm -f conftest$ac_exeext
14097if { (ac_try="$ac_link"
14098case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_link") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 { echo "$as_me:$LINENO: result: yes" >&5
14117echo "${ECHO_T}yes" >&6; }
14118else
14119 echo "$as_me: program exited with status $ac_status" >&5
14120echo "$as_me: failed program was:" >&5
14121sed 's/^/| /' conftest.$ac_ext >&5
14122
14123( exit $ac_status )
14124
14125cat >>confdefs.h <<\_ACEOF
14126#define BROKEN_SETRESUID 1
14127_ACEOF
14128
14129 { echo "$as_me:$LINENO: result: not implemented" >&5
14130echo "${ECHO_T}not implemented" >&6; }
14131fi
14132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14133fi
14134
14135
14136
14137fi
14138done
14139
14140
14141
14142for ac_func in setresgid
14143do
14144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149else
14150 cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14158#define $ac_func innocuous_$ac_func
14159
14160/* System header to define __stub macros and hopefully few prototypes,
14161 which can conflict with char $ac_func (); below.
14162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14163 <limits.h> exists even on freestanding compilers. */
14164
14165#ifdef __STDC__
14166# include <limits.h>
14167#else
14168# include <assert.h>
14169#endif
14170
14171#undef $ac_func
14172
14173/* Override any GCC internal prototype to avoid an error.
14174 Use char because int might match the return type of a GCC
14175 builtin and then its argument prototype would still apply. */
14176#ifdef __cplusplus
14177extern "C"
14178#endif
14179char $ac_func ();
14180/* The GNU C library defines this for functions which it implements
14181 to always fail with ENOSYS. Some functions are actually named
14182 something starting with __ and the normal name is an alias. */
14183#if defined __stub_$ac_func || defined __stub___$ac_func
14184choke me
14185#endif
14186
14187int
14188main ()
14189{
14190return $ac_func ();
14191 ;
14192 return 0;
14193}
14194_ACEOF
14195rm -f conftest.$ac_objext conftest$ac_exeext
14196if { (ac_try="$ac_link"
14197case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest$ac_exeext &&
14212 $as_test_x conftest$ac_exeext; then
14213 eval "$as_ac_var=yes"
14214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 eval "$as_ac_var=no"
14219fi
14220
14221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14222 conftest$ac_exeext conftest.$ac_ext
14223fi
14224ac_res=`eval echo '${'$as_ac_var'}'`
14225 { echo "$as_me:$LINENO: result: $ac_res" >&5
14226echo "${ECHO_T}$ac_res" >&6; }
14227if test `eval echo '${'$as_ac_var'}'` = yes; then
14228 cat >>confdefs.h <<_ACEOF
14229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14230_ACEOF
14231
14232 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
14233echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
14234 if test "$cross_compiling" = yes; then
14235 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14236echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14237
14238else
14239 cat >conftest.$ac_ext <<_ACEOF
14240/* confdefs.h. */
14241_ACEOF
14242cat confdefs.h >>conftest.$ac_ext
14243cat >>conftest.$ac_ext <<_ACEOF
14244/* end confdefs.h. */
14245
14246#include <stdlib.h>
14247#include <errno.h>
14248int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14249
14250_ACEOF
14251rm -f conftest$ac_exeext
14252if { (ac_try="$ac_link"
14253case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256esac
14257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_link") 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 { echo "$as_me:$LINENO: result: yes" >&5
14272echo "${ECHO_T}yes" >&6; }
14273else
14274 echo "$as_me: program exited with status $ac_status" >&5
14275echo "$as_me: failed program was:" >&5
14276sed 's/^/| /' conftest.$ac_ext >&5
14277
14278( exit $ac_status )
14279
14280cat >>confdefs.h <<\_ACEOF
14281#define BROKEN_SETRESGID 1
14282_ACEOF
14283
14284 { echo "$as_me:$LINENO: result: not implemented" >&5
14285echo "${ECHO_T}not implemented" >&6; }
14286fi
14287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14288fi
14289
14290
14291
14292fi
14293done
14294
14295
14296
14297
14298for ac_func in gettimeofday time
14299do
14300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14301{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306 cat >conftest.$ac_ext <<_ACEOF
14307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
14311/* end confdefs.h. */
14312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14314#define $ac_func innocuous_$ac_func
14315
14316/* System header to define __stub macros and hopefully few prototypes,
14317 which can conflict with char $ac_func (); below.
14318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319 <limits.h> exists even on freestanding compilers. */
14320
14321#ifdef __STDC__
14322# include <limits.h>
14323#else
14324# include <assert.h>
14325#endif
14326
14327#undef $ac_func
14328
14329/* Override any GCC internal prototype to avoid an error.
14330 Use char because int might match the return type of a GCC
14331 builtin and then its argument prototype would still apply. */
14332#ifdef __cplusplus
14333extern "C"
14334#endif
14335char $ac_func ();
14336/* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339#if defined __stub_$ac_func || defined __stub___$ac_func
14340choke me
14341#endif
14342
14343int
14344main ()
14345{
14346return $ac_func ();
14347 ;
14348 return 0;
14349}
14350_ACEOF
14351rm -f conftest.$ac_objext conftest$ac_exeext
14352if { (ac_try="$ac_link"
14353case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356esac
14357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_link") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest$ac_exeext &&
14368 $as_test_x conftest$ac_exeext; then
14369 eval "$as_ac_var=yes"
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 eval "$as_ac_var=no"
14375fi
14376
14377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14378 conftest$ac_exeext conftest.$ac_ext
14379fi
14380ac_res=`eval echo '${'$as_ac_var'}'`
14381 { echo "$as_me:$LINENO: result: $ac_res" >&5
14382echo "${ECHO_T}$ac_res" >&6; }
14383if test `eval echo '${'$as_ac_var'}'` = yes; then
14384 cat >>confdefs.h <<_ACEOF
14385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14386_ACEOF
14387
14388fi
14389done
14390
14391
14392
14393
14394
14395
14396
14397for ac_func in endutent getutent getutid getutline pututline setutent
14398do
14399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14400{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14402if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 cat >conftest.$ac_ext <<_ACEOF
14406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
14410/* end confdefs.h. */
14411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14413#define $ac_func innocuous_$ac_func
14414
14415/* System header to define __stub macros and hopefully few prototypes,
14416 which can conflict with char $ac_func (); below.
14417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14418 <limits.h> exists even on freestanding compilers. */
14419
14420#ifdef __STDC__
14421# include <limits.h>
14422#else
14423# include <assert.h>
14424#endif
14425
14426#undef $ac_func
14427
14428/* Override any GCC internal prototype to avoid an error.
14429 Use char because int might match the return type of a GCC
14430 builtin and then its argument prototype would still apply. */
14431#ifdef __cplusplus
14432extern "C"
14433#endif
14434char $ac_func ();
14435/* The GNU C library defines this for functions which it implements
14436 to always fail with ENOSYS. Some functions are actually named
14437 something starting with __ and the normal name is an alias. */
14438#if defined __stub_$ac_func || defined __stub___$ac_func
14439choke me
14440#endif
14441
14442int
14443main ()
14444{
14445return $ac_func ();
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext conftest$ac_exeext
14451if { (ac_try="$ac_link"
14452case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455esac
14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_link") 2>conftest.er1
14458 ac_status=$?
14459 grep -v '^ *+' conftest.er1 >conftest.err
14460 rm -f conftest.er1
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && {
14464 test -z "$ac_c_werror_flag" ||
14465 test ! -s conftest.err
14466 } && test -s conftest$ac_exeext &&
14467 $as_test_x conftest$ac_exeext; then
14468 eval "$as_ac_var=yes"
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 eval "$as_ac_var=no"
14474fi
14475
14476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477 conftest$ac_exeext conftest.$ac_ext
14478fi
14479ac_res=`eval echo '${'$as_ac_var'}'`
14480 { echo "$as_me:$LINENO: result: $ac_res" >&5
14481echo "${ECHO_T}$ac_res" >&6; }
14482if test `eval echo '${'$as_ac_var'}'` = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14485_ACEOF
14486
14487fi
14488done
14489
14490
14491for ac_func in utmpname
14492do
14493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498else
14499 cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14507#define $ac_func innocuous_$ac_func
14508
14509/* System header to define __stub macros and hopefully few prototypes,
14510 which can conflict with char $ac_func (); below.
14511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14512 <limits.h> exists even on freestanding compilers. */
14513
14514#ifdef __STDC__
14515# include <limits.h>
14516#else
14517# include <assert.h>
14518#endif
14519
14520#undef $ac_func
14521
14522/* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14525#ifdef __cplusplus
14526extern "C"
14527#endif
14528char $ac_func ();
14529/* The GNU C library defines this for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532#if defined __stub_$ac_func || defined __stub___$ac_func
14533choke me
14534#endif
14535
14536int
14537main ()
14538{
14539return $ac_func ();
14540 ;
14541 return 0;
14542}
14543_ACEOF
14544rm -f conftest.$ac_objext conftest$ac_exeext
14545if { (ac_try="$ac_link"
14546case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549esac
14550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_link") 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } && {
14558 test -z "$ac_c_werror_flag" ||
14559 test ! -s conftest.err
14560 } && test -s conftest$ac_exeext &&
14561 $as_test_x conftest$ac_exeext; then
14562 eval "$as_ac_var=yes"
14563else
14564 echo "$as_me: failed program was:" >&5
14565sed 's/^/| /' conftest.$ac_ext >&5
14566
14567 eval "$as_ac_var=no"
14568fi
14569
14570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14571 conftest$ac_exeext conftest.$ac_ext
14572fi
14573ac_res=`eval echo '${'$as_ac_var'}'`
14574 { echo "$as_me:$LINENO: result: $ac_res" >&5
14575echo "${ECHO_T}$ac_res" >&6; }
14576if test `eval echo '${'$as_ac_var'}'` = yes; then
14577 cat >>confdefs.h <<_ACEOF
14578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14579_ACEOF
14580
14581fi
14582done
14583
14584
14585
14586
14587
14588
14589for ac_func in endutxent getutxent getutxid getutxline pututxline
14590do
14591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14592{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14594if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596else
14597 cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14605#define $ac_func innocuous_$ac_func
14606
14607/* System header to define __stub macros and hopefully few prototypes,
14608 which can conflict with char $ac_func (); below.
14609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14610 <limits.h> exists even on freestanding compilers. */
14611
14612#ifdef __STDC__
14613# include <limits.h>
14614#else
14615# include <assert.h>
14616#endif
14617
14618#undef $ac_func
14619
14620/* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14623#ifdef __cplusplus
14624extern "C"
14625#endif
14626char $ac_func ();
14627/* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630#if defined __stub_$ac_func || defined __stub___$ac_func
14631choke me
14632#endif
14633
14634int
14635main ()
14636{
14637return $ac_func ();
14638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext conftest$ac_exeext
14643if { (ac_try="$ac_link"
14644case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest$ac_exeext &&
14659 $as_test_x conftest$ac_exeext; then
14660 eval "$as_ac_var=yes"
14661else
14662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 eval "$as_ac_var=no"
14666fi
14667
14668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14669 conftest$ac_exeext conftest.$ac_ext
14670fi
14671ac_res=`eval echo '${'$as_ac_var'}'`
14672 { echo "$as_me:$LINENO: result: $ac_res" >&5
14673echo "${ECHO_T}$ac_res" >&6; }
14674if test `eval echo '${'$as_ac_var'}'` = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14677_ACEOF
14678
14679fi
14680done
14681
14682
14683
14684for ac_func in setutxent utmpxname
14685do
14686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 cat >conftest.$ac_ext <<_ACEOF
14693/* confdefs.h. */
14694_ACEOF
14695cat confdefs.h >>conftest.$ac_ext
14696cat >>conftest.$ac_ext <<_ACEOF
14697/* end confdefs.h. */
14698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14700#define $ac_func innocuous_$ac_func
14701
14702/* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char $ac_func (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14706
14707#ifdef __STDC__
14708# include <limits.h>
14709#else
14710# include <assert.h>
14711#endif
14712
14713#undef $ac_func
14714
14715/* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14718#ifdef __cplusplus
14719extern "C"
14720#endif
14721char $ac_func ();
14722/* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725#if defined __stub_$ac_func || defined __stub___$ac_func
14726choke me
14727#endif
14728
14729int
14730main ()
14731{
14732return $ac_func ();
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737rm -f conftest.$ac_objext conftest$ac_exeext
14738if { (ac_try="$ac_link"
14739case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742esac
14743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_link") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && {
14751 test -z "$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest$ac_exeext &&
14754 $as_test_x conftest$ac_exeext; then
14755 eval "$as_ac_var=yes"
14756else
14757 echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 eval "$as_ac_var=no"
14761fi
14762
14763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764 conftest$ac_exeext conftest.$ac_ext
14765fi
14766ac_res=`eval echo '${'$as_ac_var'}'`
14767 { echo "$as_me:$LINENO: result: $ac_res" >&5
14768echo "${ECHO_T}$ac_res" >&6; }
14769if test `eval echo '${'$as_ac_var'}'` = yes; then
14770 cat >>confdefs.h <<_ACEOF
14771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14772_ACEOF
14773
14774fi
14775done
14776
14777
14778{ echo "$as_me:$LINENO: checking for daemon" >&5
14779echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
14780if test "${ac_cv_func_daemon+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782else
14783 cat >conftest.$ac_ext <<_ACEOF
14784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
14789/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
14790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14791#define daemon innocuous_daemon
14792
14793/* System header to define __stub macros and hopefully few prototypes,
14794 which can conflict with char daemon (); below.
14795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14796 <limits.h> exists even on freestanding compilers. */
14797
14798#ifdef __STDC__
14799# include <limits.h>
14800#else
14801# include <assert.h>
14802#endif
14803
14804#undef daemon
14805
14806/* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
14809#ifdef __cplusplus
14810extern "C"
14811#endif
14812char daemon ();
14813/* The GNU C library defines this for functions which it implements
14814 to always fail with ENOSYS. Some functions are actually named
14815 something starting with __ and the normal name is an alias. */
14816#if defined __stub_daemon || defined __stub___daemon
14817choke me
14818#endif
14819
14820int
14821main ()
14822{
14823return daemon ();
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext conftest$ac_exeext
14829if { (ac_try="$ac_link"
14830case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833esac
14834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_link") 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 } && test -s conftest$ac_exeext &&
14845 $as_test_x conftest$ac_exeext; then
14846 ac_cv_func_daemon=yes
14847else
14848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_cv_func_daemon=no
14852fi
14853
14854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14855 conftest$ac_exeext conftest.$ac_ext
14856fi
14857{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
14858echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
14859if test $ac_cv_func_daemon = yes; then
14860
14861cat >>confdefs.h <<\_ACEOF
14862#define HAVE_DAEMON 1
14863_ACEOF
14864
14865else
14866 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
14867echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
14868if test "${ac_cv_lib_bsd_daemon+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870else
14871 ac_check_lib_save_LIBS=$LIBS
14872LIBS="-lbsd $LIBS"
14873cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879
14880/* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14883#ifdef __cplusplus
14884extern "C"
14885#endif
14886char daemon ();
14887int
14888main ()
14889{
14890return daemon ();
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext conftest$ac_exeext
14896if { (ac_try="$ac_link"
14897case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_link") 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest$ac_exeext &&
14912 $as_test_x conftest$ac_exeext; then
14913 ac_cv_lib_bsd_daemon=yes
14914else
14915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_cv_lib_bsd_daemon=no
14919fi
14920
14921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14922 conftest$ac_exeext conftest.$ac_ext
14923LIBS=$ac_check_lib_save_LIBS
14924fi
14925{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
14926echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
14927if test $ac_cv_lib_bsd_daemon = yes; then
14928 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
14929#define HAVE_DAEMON 1
14930_ACEOF
14931
14932fi
14933
14934
14935fi
14936
14937
14938{ echo "$as_me:$LINENO: checking for getpagesize" >&5
14939echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
14940if test "${ac_cv_func_getpagesize+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942else
14943 cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
14950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14951#define getpagesize innocuous_getpagesize
14952
14953/* System header to define __stub macros and hopefully few prototypes,
14954 which can conflict with char getpagesize (); below.
14955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14956 <limits.h> exists even on freestanding compilers. */
14957
14958#ifdef __STDC__
14959# include <limits.h>
14960#else
14961# include <assert.h>
14962#endif
14963
14964#undef getpagesize
14965
14966/* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14969#ifdef __cplusplus
14970extern "C"
14971#endif
14972char getpagesize ();
14973/* The GNU C library defines this for functions which it implements
14974 to always fail with ENOSYS. Some functions are actually named
14975 something starting with __ and the normal name is an alias. */
14976#if defined __stub_getpagesize || defined __stub___getpagesize
14977choke me
14978#endif
14979
14980int
14981main ()
14982{
14983return getpagesize ();
14984 ;
14985 return 0;
14986}
14987_ACEOF
14988rm -f conftest.$ac_objext conftest$ac_exeext
14989if { (ac_try="$ac_link"
14990case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_link") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && {
15002 test -z "$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 } && test -s conftest$ac_exeext &&
15005 $as_test_x conftest$ac_exeext; then
15006 ac_cv_func_getpagesize=yes
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_cv_func_getpagesize=no
15012fi
15013
15014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015 conftest$ac_exeext conftest.$ac_ext
15016fi
15017{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
15018echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
15019if test $ac_cv_func_getpagesize = yes; then
15020
15021cat >>confdefs.h <<\_ACEOF
15022#define HAVE_GETPAGESIZE 1
15023_ACEOF
15024
15025else
15026 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
15027echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
15028if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 ac_check_lib_save_LIBS=$LIBS
15032LIBS="-lucb $LIBS"
15033cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039
15040/* Override any GCC internal prototype to avoid an error.
15041 Use char because int might match the return type of a GCC
15042 builtin and then its argument prototype would still apply. */
15043#ifdef __cplusplus
15044extern "C"
15045#endif
15046char getpagesize ();
15047int
15048main ()
15049{
15050return getpagesize ();
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext conftest$ac_exeext
15056if { (ac_try="$ac_link"
15057case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_link") 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } && {
15069 test -z "$ac_c_werror_flag" ||
15070 test ! -s conftest.err
15071 } && test -s conftest$ac_exeext &&
15072 $as_test_x conftest$ac_exeext; then
15073 ac_cv_lib_ucb_getpagesize=yes
15074else
15075 echo "$as_me: failed program was:" >&5
15076sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 ac_cv_lib_ucb_getpagesize=no
15079fi
15080
15081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15082 conftest$ac_exeext conftest.$ac_ext
15083LIBS=$ac_check_lib_save_LIBS
15084fi
15085{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
15086echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
15087if test $ac_cv_lib_ucb_getpagesize = yes; then
15088 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
15089#define HAVE_GETPAGESIZE 1
15090_ACEOF
15091
15092fi
15093
15094
15095fi
15096
15097
15098# Check for broken snprintf
15099if test "x$ac_cv_func_snprintf" = "xyes" ; then
15100 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
15101echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
15102 if test "$cross_compiling" = yes; then
15103 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
15104echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15105
15106else
15107 cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
15113
15114#include <stdio.h>
15115int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
15116
15117_ACEOF
15118rm -f conftest$ac_exeext
15119if { (ac_try="$ac_link"
15120case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_link") 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15129 { (case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
15133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_try") 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 { echo "$as_me:$LINENO: result: yes" >&5
15139echo "${ECHO_T}yes" >&6; }
15140else
15141 echo "$as_me: program exited with status $ac_status" >&5
15142echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145( exit $ac_status )
15146
15147 { echo "$as_me:$LINENO: result: no" >&5
15148echo "${ECHO_T}no" >&6; }
15149
15150cat >>confdefs.h <<\_ACEOF
15151#define BROKEN_SNPRINTF 1
15152_ACEOF
15153
15154 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
15155echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
15156
15157fi
15158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15159fi
15160
15161
15162fi
15163
15164# If we don't have a working asprintf, then we strongly depend on vsnprintf
15165# returning the right thing on overflow: the number of characters it tried to
15166# create (as per SUSv3)
15167if test "x$ac_cv_func_asprintf" != "xyes" && \
15168 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
15169 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
15170echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
15171 if test "$cross_compiling" = yes; then
15172 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
15173echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
15174
15175else
15176 cat >conftest.$ac_ext <<_ACEOF
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
15181/* end confdefs.h. */
15182
15183#include <sys/types.h>
15184#include <stdio.h>
15185#include <stdarg.h>
15186
15187int x_snprintf(char *str,size_t count,const char *fmt,...)
15188{
15189 size_t ret; va_list ap;
15190 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
15191 return ret;
15192}
15193int main(void)
15194{
15195 char x[1];
15196 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
15197}
15198_ACEOF
15199rm -f conftest$ac_exeext
15200if { (ac_try="$ac_link"
15201case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 { echo "$as_me:$LINENO: result: yes" >&5
15220echo "${ECHO_T}yes" >&6; }
15221else
15222 echo "$as_me: program exited with status $ac_status" >&5
15223echo "$as_me: failed program was:" >&5
15224sed 's/^/| /' conftest.$ac_ext >&5
15225
15226( exit $ac_status )
15227
15228 { echo "$as_me:$LINENO: result: no" >&5
15229echo "${ECHO_T}no" >&6; }
15230
15231cat >>confdefs.h <<\_ACEOF
15232#define BROKEN_SNPRINTF 1
15233_ACEOF
15234
15235 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
15236echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
15237
15238fi
15239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15240fi
15241
15242
15243fi
15244
15245# On systems where [v]snprintf is broken, but is declared in stdio,
15246# check that the fmt argument is const char * or just char *.
15247# This is only useful for when BROKEN_SNPRINTF
15248{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
15249echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256#include <stdio.h>
15257 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
15258 int main(void) { snprintf(0, 0, 0); }
15259
15260_ACEOF
15261rm -f conftest.$ac_objext
15262if { (ac_try="$ac_compile"
15263case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 { echo "$as_me:$LINENO: result: yes" >&5
15279echo "${ECHO_T}yes" >&6; }
15280
15281cat >>confdefs.h <<\_ACEOF
15282#define SNPRINTF_CONST const
15283_ACEOF
15284
15285else
15286 echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 { echo "$as_me:$LINENO: result: no" >&5
15290echo "${ECHO_T}no" >&6; }
15291 cat >>confdefs.h <<\_ACEOF
15292#define SNPRINTF_CONST /* not const */
15293_ACEOF
15294
15295fi
15296
15297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298
15299# Check for missing getpeereid (or equiv) support
15300NO_PEERCHECK=""
15301if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
15302 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
15303echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
15304 cat >conftest.$ac_ext <<_ACEOF
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310#include <sys/types.h>
15311 #include <sys/socket.h>
15312int
15313main ()
15314{
15315int i = SO_PEERCRED;
15316 ;
15317 return 0;
15318}
15319_ACEOF
15320rm -f conftest.$ac_objext
15321if { (ac_try="$ac_compile"
15322case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_compile") 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && {
15334 test -z "$ac_c_werror_flag" ||
15335 test ! -s conftest.err
15336 } && test -s conftest.$ac_objext; then
15337 { echo "$as_me:$LINENO: result: yes" >&5
15338echo "${ECHO_T}yes" >&6; }
15339
15340cat >>confdefs.h <<\_ACEOF
15341#define HAVE_SO_PEERCRED 1
15342_ACEOF
15343
15344
15345else
15346 echo "$as_me: failed program was:" >&5
15347sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 { echo "$as_me:$LINENO: result: no" >&5
15350echo "${ECHO_T}no" >&6; }
15351 NO_PEERCHECK=1
15352
15353fi
15354
15355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356fi
15357
15358if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
15359{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
15360echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
15361if test "$cross_compiling" = yes; then
15362
15363 { echo "$as_me:$LINENO: result: yes" >&5
15364echo "${ECHO_T}yes" >&6; }
15365 cat >>confdefs.h <<\_ACEOF
15366#define HAVE_STRICT_MKSTEMP 1
15367_ACEOF
15368
15369
15370
15371else
15372 cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378
15379#include <stdlib.h>
15380main() { char template[]="conftest.mkstemp-test";
15381if (mkstemp(template) == -1)
15382 exit(1);
15383unlink(template); exit(0);
15384}
15385
15386_ACEOF
15387rm -f conftest$ac_exeext
15388if { (ac_try="$ac_link"
15389case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392esac
15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_link") 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
15402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407
15408 { echo "$as_me:$LINENO: result: no" >&5
15409echo "${ECHO_T}no" >&6; }
15410
15411else
15412 echo "$as_me: program exited with status $ac_status" >&5
15413echo "$as_me: failed program was:" >&5
15414sed 's/^/| /' conftest.$ac_ext >&5
15415
15416( exit $ac_status )
15417
15418 { echo "$as_me:$LINENO: result: yes" >&5
15419echo "${ECHO_T}yes" >&6; }
15420
15421cat >>confdefs.h <<\_ACEOF
15422#define HAVE_STRICT_MKSTEMP 1
15423_ACEOF
15424
15425
15426fi
15427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15428fi
15429
15430
15431fi
15432
15433if test ! -z "$check_for_openpty_ctty_bug"; then
15434 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
15435echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
15436 if test "$cross_compiling" = yes; then
15437
15438 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15439echo "${ECHO_T}cross-compiling" >&6; }
15440
15441
15442else
15443 cat >conftest.$ac_ext <<_ACEOF
15444/* confdefs.h. */
15445_ACEOF
15446cat confdefs.h >>conftest.$ac_ext
15447cat >>conftest.$ac_ext <<_ACEOF
15448/* end confdefs.h. */
15449
15450#include <stdio.h>
15451#include <sys/fcntl.h>
15452#include <sys/types.h>
15453#include <sys/wait.h>
15454
15455int
15456main()
15457{
15458 pid_t pid;
15459 int fd, ptyfd, ttyfd, status;
15460
15461 pid = fork();
15462 if (pid < 0) { /* failed */
15463 exit(1);
15464 } else if (pid > 0) { /* parent */
15465 waitpid(pid, &status, 0);
15466 if (WIFEXITED(status))
15467 exit(WEXITSTATUS(status));
15468 else
15469 exit(2);
15470 } else { /* child */
15471 close(0); close(1); close(2);
15472 setsid();
15473 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
15474 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
15475 if (fd >= 0)
15476 exit(3); /* Acquired ctty: broken */
15477 else
15478 exit(0); /* Did not acquire ctty: OK */
15479 }
15480}
15481
15482_ACEOF
15483rm -f conftest$ac_exeext
15484if { (ac_try="$ac_link"
15485case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488esac
15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503
15504 { echo "$as_me:$LINENO: result: yes" >&5
15505echo "${ECHO_T}yes" >&6; }
15506
15507else
15508 echo "$as_me: program exited with status $ac_status" >&5
15509echo "$as_me: failed program was:" >&5
15510sed 's/^/| /' conftest.$ac_ext >&5
15511
15512( exit $ac_status )
15513
15514 { echo "$as_me:$LINENO: result: no" >&5
15515echo "${ECHO_T}no" >&6; }
15516 cat >>confdefs.h <<\_ACEOF
15517#define SSHD_ACQUIRES_CTTY 1
15518_ACEOF
15519
15520
15521fi
15522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15523fi
15524
15525
15526fi
15527
15528if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15529 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
15530 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15531echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15532 if test "$cross_compiling" = yes; then
15533
15534 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15535echo "${ECHO_T}cross-compiling" >&6; }
15536
15537
15538else
15539 cat >conftest.$ac_ext <<_ACEOF
15540/* confdefs.h. */
15541_ACEOF
15542cat confdefs.h >>conftest.$ac_ext
15543cat >>conftest.$ac_ext <<_ACEOF
15544/* end confdefs.h. */
15545
15546#include <stdio.h>
15547#include <sys/socket.h>
15548#include <netdb.h>
15549#include <errno.h>
15550#include <netinet/in.h>
15551
15552#define TEST_PORT "2222"
15553
15554int
15555main(void)
15556{
15557 int err, sock;
15558 struct addrinfo *gai_ai, *ai, hints;
15559 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15560
15561 memset(&hints, 0, sizeof(hints));
15562 hints.ai_family = PF_UNSPEC;
15563 hints.ai_socktype = SOCK_STREAM;
15564 hints.ai_flags = AI_PASSIVE;
15565
15566 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15567 if (err != 0) {
15568 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15569 exit(1);
15570 }
15571
15572 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15573 if (ai->ai_family != AF_INET6)
15574 continue;
15575
15576 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15577 sizeof(ntop), strport, sizeof(strport),
15578 NI_NUMERICHOST|NI_NUMERICSERV);
15579
15580 if (err != 0) {
15581 if (err == EAI_SYSTEM)
15582 perror("getnameinfo EAI_SYSTEM");
15583 else
15584 fprintf(stderr, "getnameinfo failed: %s\n",
15585 gai_strerror(err));
15586 exit(2);
15587 }
15588
15589 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
15590 if (sock < 0)
15591 perror("socket");
15592 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
15593 if (errno == EBADF)
15594 exit(3);
15595 }
15596 }
15597 exit(0);
15598}
15599
15600_ACEOF
15601rm -f conftest$ac_exeext
15602if { (ac_try="$ac_link"
15603case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_link") 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15612 { (case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615esac
15616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_try") 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621
15622 { echo "$as_me:$LINENO: result: yes" >&5
15623echo "${ECHO_T}yes" >&6; }
15624
15625else
15626 echo "$as_me: program exited with status $ac_status" >&5
15627echo "$as_me: failed program was:" >&5
15628sed 's/^/| /' conftest.$ac_ext >&5
15629
15630( exit $ac_status )
15631
15632 { echo "$as_me:$LINENO: result: no" >&5
15633echo "${ECHO_T}no" >&6; }
15634 cat >>confdefs.h <<\_ACEOF
15635#define BROKEN_GETADDRINFO 1
15636_ACEOF
15637
15638
15639fi
15640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15641fi
15642
15643
15644fi
15645
15646if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15647 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
15648 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15649echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15650 if test "$cross_compiling" = yes; then
15651
15652 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15653echo "${ECHO_T}cross-compiling" >&6; }
15654
15655
15656else
15657 cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663
15664#include <stdio.h>
15665#include <sys/socket.h>
15666#include <netdb.h>
15667#include <errno.h>
15668#include <netinet/in.h>
15669
15670#define TEST_PORT "2222"
15671
15672int
15673main(void)
15674{
15675 int err, sock;
15676 struct addrinfo *gai_ai, *ai, hints;
15677 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15678
15679 memset(&hints, 0, sizeof(hints));
15680 hints.ai_family = PF_UNSPEC;
15681 hints.ai_socktype = SOCK_STREAM;
15682 hints.ai_flags = AI_PASSIVE;
15683
15684 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15685 if (err != 0) {
15686 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15687 exit(1);
15688 }
15689
15690 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15691 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
15692 continue;
15693
15694 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15695 sizeof(ntop), strport, sizeof(strport),
15696 NI_NUMERICHOST|NI_NUMERICSERV);
15697
15698 if (ai->ai_family == AF_INET && err != 0) {
15699 perror("getnameinfo");
15700 exit(2);
15701 }
15702 }
15703 exit(0);
15704}
15705
15706_ACEOF
15707rm -f conftest$ac_exeext
15708if { (ac_try="$ac_link"
15709case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712esac
15713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_link") 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15718 { (case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721esac
15722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_try") 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727
15728 { echo "$as_me:$LINENO: result: yes" >&5
15729echo "${ECHO_T}yes" >&6; }
15730
15731cat >>confdefs.h <<\_ACEOF
15732#define AIX_GETNAMEINFO_HACK 1
15733_ACEOF
15734
15735
15736else
15737 echo "$as_me: program exited with status $ac_status" >&5
15738echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741( exit $ac_status )
15742
15743 { echo "$as_me:$LINENO: result: no" >&5
15744echo "${ECHO_T}no" >&6; }
15745 cat >>confdefs.h <<\_ACEOF
15746#define BROKEN_GETADDRINFO 1
15747_ACEOF
15748
15749
15750fi
15751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15752fi
15753
15754
15755fi
15756
15757if test "x$check_for_conflicting_getspnam" = "x1"; then
15758 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
15759echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
15760 cat >conftest.$ac_ext <<_ACEOF
15761
15762#include <shadow.h>
15763int main(void) {exit(0);}
15764
15765_ACEOF
15766rm -f conftest.$ac_objext
15767if { (ac_try="$ac_compile"
15768case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771esac
15772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_compile") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest.$ac_objext; then
15783
15784 { echo "$as_me:$LINENO: result: no" >&5
15785echo "${ECHO_T}no" >&6; }
15786
15787else
15788 echo "$as_me: failed program was:" >&5
15789sed 's/^/| /' conftest.$ac_ext >&5
15790
15791
15792 { echo "$as_me:$LINENO: result: yes" >&5
15793echo "${ECHO_T}yes" >&6; }
15794
15795cat >>confdefs.h <<\_ACEOF
15796#define GETSPNAM_CONFLICTING_DEFS 1
15797_ACEOF
15798
15799
15800
15801fi
15802
15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804fi
15805
15806{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15807echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
15808if test "${ac_cv_func_getpgrp_void+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810else
15811 # Use it with a single arg.
15812cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818$ac_includes_default
15819int
15820main ()
15821{
15822getpgrp (0);
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (ac_try="$ac_compile"
15829case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15832esac
15833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_compile") 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } && {
15841 test -z "$ac_c_werror_flag" ||
15842 test ! -s conftest.err
15843 } && test -s conftest.$ac_objext; then
15844 ac_cv_func_getpgrp_void=no
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ac_cv_func_getpgrp_void=yes
15850fi
15851
15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853
15854fi
15855{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15856echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
15857if test $ac_cv_func_getpgrp_void = yes; then
15858
15859cat >>confdefs.h <<\_ACEOF
15860#define GETPGRP_VOID 1
15861_ACEOF
15862
15863fi
15864
15865
15866# Search for OpenSSL
15867saved_CPPFLAGS="$CPPFLAGS"
15868saved_LDFLAGS="$LDFLAGS"
15869
15870# Check whether --with-ssl-dir was given.
15871if test "${with_ssl_dir+set}" = set; then
15872 withval=$with_ssl_dir;
15873 if test "x$withval" != "xno" ; then
15874 case "$withval" in
15875 # Relative paths
15876 ./*|../*) withval="`pwd`/$withval"
15877 esac
15878 if test -d "$withval/lib"; then
15879 if test -n "${need_dash_r}"; then
15880 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15881 else
15882 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15883 fi
15884 else
15885 if test -n "${need_dash_r}"; then
15886 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
15887 else
15888 LDFLAGS="-L${withval} ${LDFLAGS}"
15889 fi
15890 fi
15891 if test -d "$withval/include"; then
15892 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
15893 else
15894 CPPFLAGS="-I${withval} ${CPPFLAGS}"
15895 fi
15896 fi
15897
15898
15899fi
15900
15901LIBS="-lcrypto $LIBS"
15902cat >conftest.$ac_ext <<_ACEOF
15903/* confdefs.h. */
15904_ACEOF
15905cat confdefs.h >>conftest.$ac_ext
15906cat >>conftest.$ac_ext <<_ACEOF
15907/* end confdefs.h. */
15908
15909/* Override any GCC internal prototype to avoid an error.
15910 Use char because int might match the return type of a GCC
15911 builtin and then its argument prototype would still apply. */
15912#ifdef __cplusplus
15913extern "C"
15914#endif
15915char RAND_add ();
15916int
15917main ()
15918{
15919return RAND_add ();
15920 ;
15921 return 0;
15922}
15923_ACEOF
15924rm -f conftest.$ac_objext conftest$ac_exeext
15925if { (ac_try="$ac_link"
15926case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929esac
15930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_link") 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest$ac_exeext &&
15941 $as_test_x conftest$ac_exeext; then
15942
15943cat >>confdefs.h <<\_ACEOF
15944#define HAVE_OPENSSL 1
15945_ACEOF
15946
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951
15952 if test -n "${need_dash_r}"; then
15953 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
15954 else
15955 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
15956 fi
15957 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
15958 cat >conftest.$ac_ext <<_ACEOF
15959/* confdefs.h. */
15960_ACEOF
15961cat confdefs.h >>conftest.$ac_ext
15962cat >>conftest.$ac_ext <<_ACEOF
15963/* end confdefs.h. */
15964
15965/* Override any GCC internal prototype to avoid an error.
15966 Use char because int might match the return type of a GCC
15967 builtin and then its argument prototype would still apply. */
15968#ifdef __cplusplus
15969extern "C"
15970#endif
15971char RAND_add ();
15972int
15973main ()
15974{
15975return RAND_add ();
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest.$ac_objext conftest$ac_exeext
15981if { (ac_try="$ac_link"
15982case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985esac
15986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest$ac_exeext &&
15997 $as_test_x conftest$ac_exeext; then
15998 cat >>confdefs.h <<\_ACEOF
15999#define HAVE_OPENSSL 1
16000_ACEOF
16001
16002else
16003 echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
16006
16007 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
16008echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
16009 { (exit 1); exit 1; }; }
16010
16011
16012fi
16013
16014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16015 conftest$ac_exeext conftest.$ac_ext
16016
16017
16018fi
16019
16020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16021 conftest$ac_exeext conftest.$ac_ext
16022
16023# Determine OpenSSL header version
16024{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
16025echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
16026if test "$cross_compiling" = yes; then
16027
16028 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16029echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16030
16031
16032else
16033 cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h. */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h. */
16039
16040#include <stdio.h>
16041#include <string.h>
16042#include <openssl/opensslv.h>
16043#define DATA "conftest.sslincver"
16044int main(void) {
16045 FILE *fd;
16046 int rc;
16047
16048 fd = fopen(DATA,"w");
16049 if(fd == NULL)
16050 exit(1);
16051
16052 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
16053 exit(1);
16054
16055 exit(0);
16056}
16057
16058_ACEOF
16059rm -f conftest$ac_exeext
16060if { (ac_try="$ac_link"
16061case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_link") 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079
16080 ssl_header_ver=`cat conftest.sslincver`
16081 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
16082echo "${ECHO_T}$ssl_header_ver" >&6; }
16083
16084else
16085 echo "$as_me: program exited with status $ac_status" >&5
16086echo "$as_me: failed program was:" >&5
16087sed 's/^/| /' conftest.$ac_ext >&5
16088
16089( exit $ac_status )
16090
16091 { echo "$as_me:$LINENO: result: not found" >&5
16092echo "${ECHO_T}not found" >&6; }
16093 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
16094echo "$as_me: error: OpenSSL version header not found." >&2;}
16095 { (exit 1); exit 1; }; }
16096
16097fi
16098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16099fi
16100
16101
16102
16103# Determine OpenSSL library version
16104{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
16105echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
16106if test "$cross_compiling" = yes; then
16107
16108 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16109echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16110
16111
16112else
16113 cat >conftest.$ac_ext <<_ACEOF
16114/* confdefs.h. */
16115_ACEOF
16116cat confdefs.h >>conftest.$ac_ext
16117cat >>conftest.$ac_ext <<_ACEOF
16118/* end confdefs.h. */
16119
16120#include <stdio.h>
16121#include <string.h>
16122#include <openssl/opensslv.h>
16123#include <openssl/crypto.h>
16124#define DATA "conftest.ssllibver"
16125int main(void) {
16126 FILE *fd;
16127 int rc;
16128
16129 fd = fopen(DATA,"w");
16130 if(fd == NULL)
16131 exit(1);
16132
16133 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
16134 exit(1);
16135
16136 exit(0);
16137}
16138
16139_ACEOF
16140rm -f conftest$ac_exeext
16141if { (ac_try="$ac_link"
16142case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145esac
16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16151 { (case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154esac
16155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_try") 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160
16161 ssl_library_ver=`cat conftest.ssllibver`
16162 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
16163echo "${ECHO_T}$ssl_library_ver" >&6; }
16164
16165else
16166 echo "$as_me: program exited with status $ac_status" >&5
16167echo "$as_me: failed program was:" >&5
16168sed 's/^/| /' conftest.$ac_ext >&5
16169
16170( exit $ac_status )
16171
16172 { echo "$as_me:$LINENO: result: not found" >&5
16173echo "${ECHO_T}not found" >&6; }
16174 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
16175echo "$as_me: error: OpenSSL library not found." >&2;}
16176 { (exit 1); exit 1; }; }
16177
16178fi
16179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16180fi
16181
16182
16183
16184
16185# Check whether --with-openssl-header-check was given.
16186if test "${with_openssl_header_check+set}" = set; then
16187 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
16188 openssl_check_nonfatal=1
16189 fi
16190
16191
16192fi
16193
16194
16195# Sanity check OpenSSL headers
16196{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
16197echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
16198if test "$cross_compiling" = yes; then
16199
16200 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16201echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16202
16203
16204else
16205 cat >conftest.$ac_ext <<_ACEOF
16206/* confdefs.h. */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h. */
16211
16212#include <string.h>
16213#include <openssl/opensslv.h>
16214int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
16215
16216_ACEOF
16217rm -f conftest$ac_exeext
16218if { (ac_try="$ac_link"
16219case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_link") 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231esac
16232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237
16238 { echo "$as_me:$LINENO: result: yes" >&5
16239echo "${ECHO_T}yes" >&6; }
16240
16241else
16242 echo "$as_me: program exited with status $ac_status" >&5
16243echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246( exit $ac_status )
16247
16248 { echo "$as_me:$LINENO: result: no" >&5
16249echo "${ECHO_T}no" >&6; }
16250 if test "x$openssl_check_nonfatal" = "x"; then
16251 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
16252library. Check config.log for details.
16253If you are sure your installation is consistent, you can disable the check
16254by running \"./configure --without-openssl-header-check\".
16255Also see contrib/findssl.sh for help identifying header/library mismatches.
16256" >&5
16257echo "$as_me: error: Your OpenSSL headers do not match your
16258library. Check config.log for details.
16259If you are sure your installation is consistent, you can disable the check
16260by running \"./configure --without-openssl-header-check\".
16261Also see contrib/findssl.sh for help identifying header/library mismatches.
16262" >&2;}
16263 { (exit 1); exit 1; }; }
16264 else
16265 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
16266library. Check config.log for details.
16267Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
16268echo "$as_me: WARNING: Your OpenSSL headers do not match your
16269library. Check config.log for details.
16270Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
16271 fi
16272
16273fi
16274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16275fi
16276
16277
16278
16279{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
16280echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
16281cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287
16288#include <openssl/evp.h>
16289int main(void) { SSLeay_add_all_algorithms(); }
16290
16291_ACEOF
16292rm -f conftest.$ac_objext conftest$ac_exeext
16293if { (ac_try="$ac_link"
16294case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
16298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_link") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } && {
16306 test -z "$ac_c_werror_flag" ||
16307 test ! -s conftest.err
16308 } && test -s conftest$ac_exeext &&
16309 $as_test_x conftest$ac_exeext; then
16310
16311 { echo "$as_me:$LINENO: result: yes" >&5
16312echo "${ECHO_T}yes" >&6; }
16313
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318
16319 { echo "$as_me:$LINENO: result: no" >&5
16320echo "${ECHO_T}no" >&6; }
16321 saved_LIBS="$LIBS"
16322 LIBS="$LIBS -ldl"
16323 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
16324echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331
16332#include <openssl/evp.h>
16333int main(void) { SSLeay_add_all_algorithms(); }
16334
16335_ACEOF
16336rm -f conftest.$ac_objext conftest$ac_exeext
16337if { (ac_try="$ac_link"
16338case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341esac
16342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_link") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext &&
16353 $as_test_x conftest$ac_exeext; then
16354
16355 { echo "$as_me:$LINENO: result: yes" >&5
16356echo "${ECHO_T}yes" >&6; }
16357
16358else
16359 echo "$as_me: failed program was:" >&5
16360sed 's/^/| /' conftest.$ac_ext >&5
16361
16362
16363 { echo "$as_me:$LINENO: result: no" >&5
16364echo "${ECHO_T}no" >&6; }
16365 LIBS="$saved_LIBS"
16366
16367
16368fi
16369
16370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16372
16373
16374fi
16375
16376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16377 conftest$ac_exeext conftest.$ac_ext
16378
16379
16380# Check whether --with-ssl-engine was given.
16381if test "${with_ssl_engine+set}" = set; then
16382 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
16383 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
16384echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
16385 cat >conftest.$ac_ext <<_ACEOF
16386/* confdefs.h. */
16387_ACEOF
16388cat confdefs.h >>conftest.$ac_ext
16389cat >>conftest.$ac_ext <<_ACEOF
16390/* end confdefs.h. */
16391 #include <openssl/engine.h>
16392int
16393main ()
16394{
16395
16396ENGINE_load_builtin_engines();ENGINE_register_all_complete();
16397
16398 ;
16399 return 0;
16400}
16401_ACEOF
16402rm -f conftest.$ac_objext
16403if { (ac_try="$ac_compile"
16404case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407esac
16408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_compile") 2>conftest.er1
16410 ac_status=$?
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } && {
16416 test -z "$ac_c_werror_flag" ||
16417 test ! -s conftest.err
16418 } && test -s conftest.$ac_objext; then
16419 { echo "$as_me:$LINENO: result: yes" >&5
16420echo "${ECHO_T}yes" >&6; }
16421
16422cat >>confdefs.h <<\_ACEOF
16423#define USE_OPENSSL_ENGINE 1
16424_ACEOF
16425
16426
16427else
16428 echo "$as_me: failed program was:" >&5
16429sed 's/^/| /' conftest.$ac_ext >&5
16430
16431 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
16432echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
16433 { (exit 1); exit 1; }; }
16434
16435fi
16436
16437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 fi
16439
16440fi
16441
16442
16443# Check for OpenSSL without EVP_aes_{192,256}_cbc
16444{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
16445echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
16446cat >conftest.$ac_ext <<_ACEOF
16447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
16452
16453#include <string.h>
16454#include <openssl/evp.h>
16455int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
16456
16457_ACEOF
16458rm -f conftest.$ac_objext conftest$ac_exeext
16459if { (ac_try="$ac_link"
16460case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463esac
16464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_link") 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } && {
16472 test -z "$ac_c_werror_flag" ||
16473 test ! -s conftest.err
16474 } && test -s conftest$ac_exeext &&
16475 $as_test_x conftest$ac_exeext; then
16476
16477 { echo "$as_me:$LINENO: result: no" >&5
16478echo "${ECHO_T}no" >&6; }
16479
16480else
16481 echo "$as_me: failed program was:" >&5
16482sed 's/^/| /' conftest.$ac_ext >&5
16483
16484
16485 { echo "$as_me:$LINENO: result: yes" >&5
16486echo "${ECHO_T}yes" >&6; }
16487
16488cat >>confdefs.h <<\_ACEOF
16489#define OPENSSL_LOBOTOMISED_AES 1
16490_ACEOF
16491
16492
16493
16494fi
16495
16496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16497 conftest$ac_exeext conftest.$ac_ext
16498
16499# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
16500# because the system crypt() is more featureful.
16501if test "x$check_for_libcrypt_before" = "x1"; then
16502
16503{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16504echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16505if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16507else
16508 ac_check_lib_save_LIBS=$LIBS
16509LIBS="-lcrypt $LIBS"
16510cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516
16517/* Override any GCC internal prototype to avoid an error.
16518 Use char because int might match the return type of a GCC
16519 builtin and then its argument prototype would still apply. */
16520#ifdef __cplusplus
16521extern "C"
16522#endif
16523char crypt ();
16524int
16525main ()
16526{
16527return crypt ();
16528 ;
16529 return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext conftest$ac_exeext
16533if { (ac_try="$ac_link"
16534case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_link") 2>conftest.er1
16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && {
16546 test -z "$ac_c_werror_flag" ||
16547 test ! -s conftest.err
16548 } && test -s conftest$ac_exeext &&
16549 $as_test_x conftest$ac_exeext; then
16550 ac_cv_lib_crypt_crypt=yes
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 ac_cv_lib_crypt_crypt=no
16556fi
16557
16558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16559 conftest$ac_exeext conftest.$ac_ext
16560LIBS=$ac_check_lib_save_LIBS
16561fi
16562{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16563echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16564if test $ac_cv_lib_crypt_crypt = yes; then
16565 cat >>confdefs.h <<_ACEOF
16566#define HAVE_LIBCRYPT 1
16567_ACEOF
16568
16569 LIBS="-lcrypt $LIBS"
16570
16571fi
16572
16573fi
16574
16575# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
16576# version in OpenSSL.
16577if test "x$check_for_libcrypt_later" = "x1"; then
16578 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16579echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16580if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583 ac_check_lib_save_LIBS=$LIBS
16584LIBS="-lcrypt $LIBS"
16585cat >conftest.$ac_ext <<_ACEOF
16586/* confdefs.h. */
16587_ACEOF
16588cat confdefs.h >>conftest.$ac_ext
16589cat >>conftest.$ac_ext <<_ACEOF
16590/* end confdefs.h. */
16591
16592/* Override any GCC internal prototype to avoid an error.
16593 Use char because int might match the return type of a GCC
16594 builtin and then its argument prototype would still apply. */
16595#ifdef __cplusplus
16596extern "C"
16597#endif
16598char crypt ();
16599int
16600main ()
16601{
16602return crypt ();
16603 ;
16604 return 0;
16605}
16606_ACEOF
16607rm -f conftest.$ac_objext conftest$ac_exeext
16608if { (ac_try="$ac_link"
16609case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612esac
16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_link") 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } && {
16621 test -z "$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 } && test -s conftest$ac_exeext &&
16624 $as_test_x conftest$ac_exeext; then
16625 ac_cv_lib_crypt_crypt=yes
16626else
16627 echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_cv_lib_crypt_crypt=no
16631fi
16632
16633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16634 conftest$ac_exeext conftest.$ac_ext
16635LIBS=$ac_check_lib_save_LIBS
16636fi
16637{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16638echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16639if test $ac_cv_lib_crypt_crypt = yes; then
16640 LIBS="$LIBS -lcrypt"
16641fi
16642
16643fi
16644
16645# Search for SHA256 support in libc and/or OpenSSL
16646
16647
16648for ac_func in SHA256_Update EVP_sha256
16649do
16650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655else
16656 cat >conftest.$ac_ext <<_ACEOF
16657/* confdefs.h. */
16658_ACEOF
16659cat confdefs.h >>conftest.$ac_ext
16660cat >>conftest.$ac_ext <<_ACEOF
16661/* end confdefs.h. */
16662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664#define $ac_func innocuous_$ac_func
16665
16666/* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char $ac_func (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16670
16671#ifdef __STDC__
16672# include <limits.h>
16673#else
16674# include <assert.h>
16675#endif
16676
16677#undef $ac_func
16678
16679/* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16682#ifdef __cplusplus
16683extern "C"
16684#endif
16685char $ac_func ();
16686/* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689#if defined __stub_$ac_func || defined __stub___$ac_func
16690choke me
16691#endif
16692
16693int
16694main ()
16695{
16696return $ac_func ();
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext conftest$ac_exeext
16702if { (ac_try="$ac_link"
16703case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_link") 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } && {
16715 test -z "$ac_c_werror_flag" ||
16716 test ! -s conftest.err
16717 } && test -s conftest$ac_exeext &&
16718 $as_test_x conftest$ac_exeext; then
16719 eval "$as_ac_var=yes"
16720else
16721 echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 eval "$as_ac_var=no"
16725fi
16726
16727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16728 conftest$ac_exeext conftest.$ac_ext
16729fi
16730ac_res=`eval echo '${'$as_ac_var'}'`
16731 { echo "$as_me:$LINENO: result: $ac_res" >&5
16732echo "${ECHO_T}$ac_res" >&6; }
16733if test `eval echo '${'$as_ac_var'}'` = yes; then
16734 cat >>confdefs.h <<_ACEOF
16735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16736_ACEOF
16737
16738fi
16739done
16740
16741
16742saved_LIBS="$LIBS"
16743{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
16744echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
16745if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747else
16748 ac_check_lib_save_LIBS=$LIBS
16749LIBS="-liaf $LIBS"
16750cat >conftest.$ac_ext <<_ACEOF
16751/* confdefs.h. */
16752_ACEOF
16753cat confdefs.h >>conftest.$ac_ext
16754cat >>conftest.$ac_ext <<_ACEOF
16755/* end confdefs.h. */
16756
16757/* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16760#ifdef __cplusplus
16761extern "C"
16762#endif
16763char ia_openinfo ();
16764int
16765main ()
16766{
16767return ia_openinfo ();
16768 ;
16769 return 0;
16770}
16771_ACEOF
16772rm -f conftest.$ac_objext conftest$ac_exeext
16773if { (ac_try="$ac_link"
16774case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777esac
16778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_link") 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } && {
16786 test -z "$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16788 } && test -s conftest$ac_exeext &&
16789 $as_test_x conftest$ac_exeext; then
16790 ac_cv_lib_iaf_ia_openinfo=yes
16791else
16792 echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 ac_cv_lib_iaf_ia_openinfo=no
16796fi
16797
16798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16799 conftest$ac_exeext conftest.$ac_ext
16800LIBS=$ac_check_lib_save_LIBS
16801fi
16802{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
16803echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
16804if test $ac_cv_lib_iaf_ia_openinfo = yes; then
16805
16806 LIBS="$LIBS -liaf"
16807
16808for ac_func in set_id
16809do
16810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16813if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 cat >conftest.$ac_ext <<_ACEOF
16817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
16822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16824#define $ac_func innocuous_$ac_func
16825
16826/* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char $ac_func (); below.
16828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16829 <limits.h> exists even on freestanding compilers. */
16830
16831#ifdef __STDC__
16832# include <limits.h>
16833#else
16834# include <assert.h>
16835#endif
16836
16837#undef $ac_func
16838
16839/* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842#ifdef __cplusplus
16843extern "C"
16844#endif
16845char $ac_func ();
16846/* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849#if defined __stub_$ac_func || defined __stub___$ac_func
16850choke me
16851#endif
16852
16853int
16854main ()
16855{
16856return $ac_func ();
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext conftest$ac_exeext
16862if { (ac_try="$ac_link"
16863case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } && {
16875 test -z "$ac_c_werror_flag" ||
16876 test ! -s conftest.err
16877 } && test -s conftest$ac_exeext &&
16878 $as_test_x conftest$ac_exeext; then
16879 eval "$as_ac_var=yes"
16880else
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884 eval "$as_ac_var=no"
16885fi
16886
16887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16889fi
16890ac_res=`eval echo '${'$as_ac_var'}'`
16891 { echo "$as_me:$LINENO: result: $ac_res" >&5
16892echo "${ECHO_T}$ac_res" >&6; }
16893if test `eval echo '${'$as_ac_var'}'` = yes; then
16894 cat >>confdefs.h <<_ACEOF
16895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16896_ACEOF
16897 SSHDLIBS="$SSHDLIBS -liaf"
16898
16899cat >>confdefs.h <<\_ACEOF
16900#define HAVE_LIBIAF 1
16901_ACEOF
16902
16903
16904fi
16905done
16906
16907
16908fi
16909
16910LIBS="$saved_LIBS"
16911
16912### Configure cryptographic random number support
16913
16914# Check wheter OpenSSL seeds itself
16915{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
16916echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
16917if test "$cross_compiling" = yes; then
16918
16919 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
16920echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
16921 # This is safe, since all recent OpenSSL versions will
16922 # complain at runtime if not seeded correctly.
16923 OPENSSL_SEEDS_ITSELF=yes
16924
16925
16926else
16927 cat >conftest.$ac_ext <<_ACEOF
16928/* confdefs.h. */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h. */
16933
16934#include <string.h>
16935#include <openssl/rand.h>
16936int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
16937
16938_ACEOF
16939rm -f conftest$ac_exeext
16940if { (ac_try="$ac_link"
16941case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944esac
16945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_link") 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16950 { (case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953esac
16954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_try") 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959
16960 OPENSSL_SEEDS_ITSELF=yes
16961 { echo "$as_me:$LINENO: result: yes" >&5
16962echo "${ECHO_T}yes" >&6; }
16963
16964else
16965 echo "$as_me: program exited with status $ac_status" >&5
16966echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969( exit $ac_status )
16970
16971 { echo "$as_me:$LINENO: result: no" >&5
16972echo "${ECHO_T}no" >&6; }
16973 # Default to use of the rand helper if OpenSSL doesn't
16974 # seed itself
16975 USE_RAND_HELPER=yes
16976
16977fi
16978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16979fi
16980
16981
16982
16983# Check for PAM libs
16984PAM_MSG="no"
16985
16986# Check whether --with-pam was given.
16987if test "${with_pam+set}" = set; then
16988 withval=$with_pam;
16989 if test "x$withval" != "xno" ; then
16990 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
16991 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
16992 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
16993echo "$as_me: error: PAM headers not found" >&2;}
16994 { (exit 1); exit 1; }; }
16995 fi
16996
16997 saved_LIBS="$LIBS"
16998
16999{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17000echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17001if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003else
17004 ac_check_lib_save_LIBS=$LIBS
17005LIBS="-ldl $LIBS"
17006cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
17012
17013/* Override any GCC internal prototype to avoid an error.
17014 Use char because int might match the return type of a GCC
17015 builtin and then its argument prototype would still apply. */
17016#ifdef __cplusplus
17017extern "C"
17018#endif
17019char dlopen ();
17020int
17021main ()
17022{
17023return dlopen ();
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext conftest$ac_exeext
17029if { (ac_try="$ac_link"
17030case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033esac
17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest$ac_exeext &&
17045 $as_test_x conftest$ac_exeext; then
17046 ac_cv_lib_dl_dlopen=yes
17047else
17048 echo "$as_me: failed program was:" >&5
17049sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 ac_cv_lib_dl_dlopen=no
17052fi
17053
17054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17055 conftest$ac_exeext conftest.$ac_ext
17056LIBS=$ac_check_lib_save_LIBS
17057fi
17058{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17059echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17060if test $ac_cv_lib_dl_dlopen = yes; then
17061 cat >>confdefs.h <<_ACEOF
17062#define HAVE_LIBDL 1
17063_ACEOF
17064
17065 LIBS="-ldl $LIBS"
17066
17067fi
17068
17069
17070{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
17071echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
17072if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074else
17075 ac_check_lib_save_LIBS=$LIBS
17076LIBS="-lpam $LIBS"
17077cat >conftest.$ac_ext <<_ACEOF
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
17083
17084/* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17087#ifdef __cplusplus
17088extern "C"
17089#endif
17090char pam_set_item ();
17091int
17092main ()
17093{
17094return pam_set_item ();
17095 ;
17096 return 0;
17097}
17098_ACEOF
17099rm -f conftest.$ac_objext conftest$ac_exeext
17100if { (ac_try="$ac_link"
17101case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104esac
17105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_link") 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext &&
17116 $as_test_x conftest$ac_exeext; then
17117 ac_cv_lib_pam_pam_set_item=yes
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 ac_cv_lib_pam_pam_set_item=no
17123fi
17124
17125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17126 conftest$ac_exeext conftest.$ac_ext
17127LIBS=$ac_check_lib_save_LIBS
17128fi
17129{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
17130echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
17131if test $ac_cv_lib_pam_pam_set_item = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133#define HAVE_LIBPAM 1
17134_ACEOF
17135
17136 LIBS="-lpam $LIBS"
17137
17138else
17139 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
17140echo "$as_me: error: *** libpam missing" >&2;}
17141 { (exit 1); exit 1; }; }
17142fi
17143
17144
17145for ac_func in pam_getenvlist
17146do
17147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17152else
17153 cat >conftest.$ac_ext <<_ACEOF
17154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
17159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17161#define $ac_func innocuous_$ac_func
17162
17163/* System header to define __stub macros and hopefully few prototypes,
17164 which can conflict with char $ac_func (); below.
17165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166 <limits.h> exists even on freestanding compilers. */
17167
17168#ifdef __STDC__
17169# include <limits.h>
17170#else
17171# include <assert.h>
17172#endif
17173
17174#undef $ac_func
17175
17176/* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182char $ac_func ();
17183/* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186#if defined __stub_$ac_func || defined __stub___$ac_func
17187choke me
17188#endif
17189
17190int
17191main ()
17192{
17193return $ac_func ();
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext conftest$ac_exeext
17199if { (ac_try="$ac_link"
17200case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } && {
17212 test -z "$ac_c_werror_flag" ||
17213 test ! -s conftest.err
17214 } && test -s conftest$ac_exeext &&
17215 $as_test_x conftest$ac_exeext; then
17216 eval "$as_ac_var=yes"
17217else
17218 echo "$as_me: failed program was:" >&5
17219sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 eval "$as_ac_var=no"
17222fi
17223
17224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225 conftest$ac_exeext conftest.$ac_ext
17226fi
17227ac_res=`eval echo '${'$as_ac_var'}'`
17228 { echo "$as_me:$LINENO: result: $ac_res" >&5
17229echo "${ECHO_T}$ac_res" >&6; }
17230if test `eval echo '${'$as_ac_var'}'` = yes; then
17231 cat >>confdefs.h <<_ACEOF
17232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17233_ACEOF
17234
17235fi
17236done
17237
17238
17239for ac_func in pam_putenv
17240do
17241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17242{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246else
17247 cat >conftest.$ac_ext <<_ACEOF
17248/* confdefs.h. */
17249_ACEOF
17250cat confdefs.h >>conftest.$ac_ext
17251cat >>conftest.$ac_ext <<_ACEOF
17252/* end confdefs.h. */
17253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17255#define $ac_func innocuous_$ac_func
17256
17257/* System header to define __stub macros and hopefully few prototypes,
17258 which can conflict with char $ac_func (); below.
17259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17260 <limits.h> exists even on freestanding compilers. */
17261
17262#ifdef __STDC__
17263# include <limits.h>
17264#else
17265# include <assert.h>
17266#endif
17267
17268#undef $ac_func
17269
17270/* Override any GCC internal prototype to avoid an error.
17271 Use char because int might match the return type of a GCC
17272 builtin and then its argument prototype would still apply. */
17273#ifdef __cplusplus
17274extern "C"
17275#endif
17276char $ac_func ();
17277/* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280#if defined __stub_$ac_func || defined __stub___$ac_func
17281choke me
17282#endif
17283
17284int
17285main ()
17286{
17287return $ac_func ();
17288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext conftest$ac_exeext
17293if { (ac_try="$ac_link"
17294case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } && {
17306 test -z "$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 } && test -s conftest$ac_exeext &&
17309 $as_test_x conftest$ac_exeext; then
17310 eval "$as_ac_var=yes"
17311else
17312 echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 eval "$as_ac_var=no"
17316fi
17317
17318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17319 conftest$ac_exeext conftest.$ac_ext
17320fi
17321ac_res=`eval echo '${'$as_ac_var'}'`
17322 { echo "$as_me:$LINENO: result: $ac_res" >&5
17323echo "${ECHO_T}$ac_res" >&6; }
17324if test `eval echo '${'$as_ac_var'}'` = yes; then
17325 cat >>confdefs.h <<_ACEOF
17326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17327_ACEOF
17328
17329fi
17330done
17331
17332 LIBS="$saved_LIBS"
17333
17334 PAM_MSG="yes"
17335
17336 SSHDLIBS="$SSHDLIBS -lpam"
17337
17338cat >>confdefs.h <<\_ACEOF
17339#define USE_PAM 1
17340_ACEOF
17341
17342
17343 if test $ac_cv_lib_dl_dlopen = yes; then
17344 case "$LIBS" in
17345 *-ldl*)
17346 # libdl already in LIBS
17347 ;;
17348 *)
17349 SSHDLIBS="$SSHDLIBS -ldl"
17350 ;;
17351 esac
17352 fi
17353 fi
17354
17355
17356fi
17357
17358
17359# Check for older PAM
17360if test "x$PAM_MSG" = "xyes" ; then
17361 # Check PAM strerror arguments (old PAM)
17362 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
17363echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
17364 cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
17370
17371#include <stdlib.h>
17372#if defined(HAVE_SECURITY_PAM_APPL_H)
17373#include <security/pam_appl.h>
17374#elif defined (HAVE_PAM_PAM_APPL_H)
17375#include <pam/pam_appl.h>
17376#endif
17377
17378int
17379main ()
17380{
17381(void)pam_strerror((pam_handle_t *)NULL, -1);
17382 ;
17383 return 0;
17384}
17385_ACEOF
17386rm -f conftest.$ac_objext
17387if { (ac_try="$ac_compile"
17388case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_compile") 2>conftest.er1
17394 ac_status=$?
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && {
17400 test -z "$ac_c_werror_flag" ||
17401 test ! -s conftest.err
17402 } && test -s conftest.$ac_objext; then
17403 { echo "$as_me:$LINENO: result: no" >&5
17404echo "${ECHO_T}no" >&6; }
17405else
17406 echo "$as_me: failed program was:" >&5
17407sed 's/^/| /' conftest.$ac_ext >&5
17408
17409
17410
17411cat >>confdefs.h <<\_ACEOF
17412#define HAVE_OLD_PAM 1
17413_ACEOF
17414
17415 { echo "$as_me:$LINENO: result: yes" >&5
17416echo "${ECHO_T}yes" >&6; }
17417 PAM_MSG="yes (old library)"
17418
17419
17420fi
17421
17422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423fi
17424
17425# Do we want to force the use of the rand helper?
17426
17427# Check whether --with-rand-helper was given.
17428if test "${with_rand_helper+set}" = set; then
17429 withval=$with_rand_helper;
17430 if test "x$withval" = "xno" ; then
17431 # Force use of OpenSSL's internal RNG, even if
17432 # the previous test showed it to be unseeded.
17433 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
17434 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
17435echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
17436 OPENSSL_SEEDS_ITSELF=yes
17437 USE_RAND_HELPER=""
17438 fi
17439 else
17440 USE_RAND_HELPER=yes
17441 fi
17442
17443fi
17444
17445
17446# Which randomness source do we use?
17447if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
17448 # OpenSSL only
17449
17450cat >>confdefs.h <<\_ACEOF
17451#define OPENSSL_PRNG_ONLY 1
17452_ACEOF
17453
17454 RAND_MSG="OpenSSL internal ONLY"
17455 INSTALL_SSH_RAND_HELPER=""
17456elif test ! -z "$USE_RAND_HELPER" ; then
17457 # install rand helper
17458 RAND_MSG="ssh-rand-helper"
17459 INSTALL_SSH_RAND_HELPER="yes"
17460fi
17461
17462
17463### Configuration of ssh-rand-helper
17464
17465# PRNGD TCP socket
17466
17467# Check whether --with-prngd-port was given.
17468if test "${with_prngd_port+set}" = set; then
17469 withval=$with_prngd_port;
17470 case "$withval" in
17471 no)
17472 withval=""
17473 ;;
17474 [0-9]*)
17475 ;;
17476 *)
17477 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
17478echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
17479 { (exit 1); exit 1; }; }
17480 ;;
17481 esac
17482 if test ! -z "$withval" ; then
17483 PRNGD_PORT="$withval"
17484
17485cat >>confdefs.h <<_ACEOF
17486#define PRNGD_PORT $PRNGD_PORT
17487_ACEOF
17488
17489 fi
17490
17491
17492fi
17493
17494
17495# PRNGD Unix domain socket
17496
17497# Check whether --with-prngd-socket was given.
17498if test "${with_prngd_socket+set}" = set; then
17499 withval=$with_prngd_socket;
17500 case "$withval" in
17501 yes)
17502 withval="/var/run/egd-pool"
17503 ;;
17504 no)
17505 withval=""
17506 ;;
17507 /*)
17508 ;;
17509 *)
17510 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
17511echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
17512 { (exit 1); exit 1; }; }
17513 ;;
17514 esac
17515
17516 if test ! -z "$withval" ; then
17517 if test ! -z "$PRNGD_PORT" ; then
17518 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
17519echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
17520 { (exit 1); exit 1; }; }
17521 fi
17522 if test ! -r "$withval" ; then
17523 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
17524echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
17525 fi
17526 PRNGD_SOCKET="$withval"
17527
17528cat >>confdefs.h <<_ACEOF
17529#define PRNGD_SOCKET "$PRNGD_SOCKET"
17530_ACEOF
17531
17532 fi
17533
17534else
17535
17536 # Check for existing socket only if we don't have a random device already
17537 if test "$USE_RAND_HELPER" = yes ; then
17538 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
17539echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
17540 # Insert other locations here
17541 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
17542 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
17543 PRNGD_SOCKET="$sock"
17544 cat >>confdefs.h <<_ACEOF
17545#define PRNGD_SOCKET "$PRNGD_SOCKET"
17546_ACEOF
17547
17548 break;
17549 fi
17550 done
17551 if test ! -z "$PRNGD_SOCKET" ; then
17552 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
17553echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
17554 else
17555 { echo "$as_me:$LINENO: result: not found" >&5
17556echo "${ECHO_T}not found" >&6; }
17557 fi
17558 fi
17559
17560
17561fi
17562
17563
17564# Change default command timeout for hashing entropy source
17565entropy_timeout=200
17566
17567# Check whether --with-entropy-timeout was given.
17568if test "${with_entropy_timeout+set}" = set; then
17569 withval=$with_entropy_timeout;
17570 if test -n "$withval" && test "x$withval" != "xno" && \
17571 test "x${withval}" != "xyes"; then
17572 entropy_timeout=$withval
17573 fi
17574
17575
17576fi
17577
17578
17579cat >>confdefs.h <<_ACEOF
17580#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
17581_ACEOF
17582
17583
17584SSH_PRIVSEP_USER=sshd
17585
17586# Check whether --with-privsep-user was given.
17587if test "${with_privsep_user+set}" = set; then
17588 withval=$with_privsep_user;
17589 if test -n "$withval" && test "x$withval" != "xno" && \
17590 test "x${withval}" != "xyes"; then
17591 SSH_PRIVSEP_USER=$withval
17592 fi
17593
17594
17595fi
17596
17597
17598cat >>confdefs.h <<_ACEOF
17599#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
17600_ACEOF
17601
17602
17603
17604# We do this little dance with the search path to insure
17605# that programs that we select for use by installed programs
17606# (which may be run by the super-user) come from trusted
17607# locations before they come from the user's private area.
17608# This should help avoid accidentally configuring some
17609# random version of a program in someone's personal bin.
17610
17611OPATH=$PATH
17612PATH=/bin:/usr/bin
17613test -h /bin 2> /dev/null && PATH=/usr/bin
17614test -d /sbin && PATH=$PATH:/sbin
17615test -d /usr/sbin && PATH=$PATH:/usr/sbin
17616PATH=$PATH:/etc:$OPATH
17617
17618# These programs are used by the command hashing source to gather entropy
17619
17620 # Extract the first word of "ls", so it can be a program name with args.
17621set dummy ls; ac_word=$2
17622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17624if test "${ac_cv_path_PROG_LS+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17626else
17627 case $PROG_LS in
17628 [\\/]* | ?:[\\/]*)
17629 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
17630 ;;
17631 *)
17632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17633for as_dir in $PATH
17634do
17635 IFS=$as_save_IFS
17636 test -z "$as_dir" && as_dir=.
17637 for ac_exec_ext in '' $ac_executable_extensions; do
17638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17639 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
17640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17641 break 2
17642 fi
17643done
17644done
17645IFS=$as_save_IFS
17646
17647 ;;
17648esac
17649fi
17650PROG_LS=$ac_cv_path_PROG_LS
17651if test -n "$PROG_LS"; then
17652 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
17653echo "${ECHO_T}$PROG_LS" >&6; }
17654else
17655 { echo "$as_me:$LINENO: result: no" >&5
17656echo "${ECHO_T}no" >&6; }
17657fi
17658
17659
17660 if test -z "$PROG_LS" ; then
17661 PROG_LS="undef"
17662 fi
17663
17664
17665
17666 # Extract the first word of "netstat", so it can be a program name with args.
17667set dummy netstat; ac_word=$2
17668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17670if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672else
17673 case $PROG_NETSTAT in
17674 [\\/]* | ?:[\\/]*)
17675 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
17676 ;;
17677 *)
17678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17679for as_dir in $PATH
17680do
17681 IFS=$as_save_IFS
17682 test -z "$as_dir" && as_dir=.
17683 for ac_exec_ext in '' $ac_executable_extensions; do
17684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17685 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
17686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17687 break 2
17688 fi
17689done
17690done
17691IFS=$as_save_IFS
17692
17693 ;;
17694esac
17695fi
17696PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
17697if test -n "$PROG_NETSTAT"; then
17698 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
17699echo "${ECHO_T}$PROG_NETSTAT" >&6; }
17700else
17701 { echo "$as_me:$LINENO: result: no" >&5
17702echo "${ECHO_T}no" >&6; }
17703fi
17704
17705
17706 if test -z "$PROG_NETSTAT" ; then
17707 PROG_NETSTAT="undef"
17708 fi
17709
17710
17711
17712 # Extract the first word of "arp", so it can be a program name with args.
17713set dummy arp; ac_word=$2
17714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17716if test "${ac_cv_path_PROG_ARP+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17718else
17719 case $PROG_ARP in
17720 [\\/]* | ?:[\\/]*)
17721 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
17722 ;;
17723 *)
17724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17725for as_dir in $PATH
17726do
17727 IFS=$as_save_IFS
17728 test -z "$as_dir" && as_dir=.
17729 for ac_exec_ext in '' $ac_executable_extensions; do
17730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17731 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
17732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17733 break 2
17734 fi
17735done
17736done
17737IFS=$as_save_IFS
17738
17739 ;;
17740esac
17741fi
17742PROG_ARP=$ac_cv_path_PROG_ARP
17743if test -n "$PROG_ARP"; then
17744 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
17745echo "${ECHO_T}$PROG_ARP" >&6; }
17746else
17747 { echo "$as_me:$LINENO: result: no" >&5
17748echo "${ECHO_T}no" >&6; }
17749fi
17750
17751
17752 if test -z "$PROG_ARP" ; then
17753 PROG_ARP="undef"
17754 fi
17755
17756
17757
17758 # Extract the first word of "ifconfig", so it can be a program name with args.
17759set dummy ifconfig; ac_word=$2
17760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17762if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764else
17765 case $PROG_IFCONFIG in
17766 [\\/]* | ?:[\\/]*)
17767 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
17768 ;;
17769 *)
17770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17771for as_dir in $PATH
17772do
17773 IFS=$as_save_IFS
17774 test -z "$as_dir" && as_dir=.
17775 for ac_exec_ext in '' $ac_executable_extensions; do
17776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17777 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
17778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17779 break 2
17780 fi
17781done
17782done
17783IFS=$as_save_IFS
17784
17785 ;;
17786esac
17787fi
17788PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
17789if test -n "$PROG_IFCONFIG"; then
17790 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
17791echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
17792else
17793 { echo "$as_me:$LINENO: result: no" >&5
17794echo "${ECHO_T}no" >&6; }
17795fi
17796
17797
17798 if test -z "$PROG_IFCONFIG" ; then
17799 PROG_IFCONFIG="undef"
17800 fi
17801
17802
17803
17804 # Extract the first word of "jstat", so it can be a program name with args.
17805set dummy jstat; ac_word=$2
17806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17808if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810else
17811 case $PROG_JSTAT in
17812 [\\/]* | ?:[\\/]*)
17813 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
17814 ;;
17815 *)
17816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17817for as_dir in $PATH
17818do
17819 IFS=$as_save_IFS
17820 test -z "$as_dir" && as_dir=.
17821 for ac_exec_ext in '' $ac_executable_extensions; do
17822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17823 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
17824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17825 break 2
17826 fi
17827done
17828done
17829IFS=$as_save_IFS
17830
17831 ;;
17832esac
17833fi
17834PROG_JSTAT=$ac_cv_path_PROG_JSTAT
17835if test -n "$PROG_JSTAT"; then
17836 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
17837echo "${ECHO_T}$PROG_JSTAT" >&6; }
17838else
17839 { echo "$as_me:$LINENO: result: no" >&5
17840echo "${ECHO_T}no" >&6; }
17841fi
17842
17843
17844 if test -z "$PROG_JSTAT" ; then
17845 PROG_JSTAT="undef"
17846 fi
17847
17848
17849
17850 # Extract the first word of "ps", so it can be a program name with args.
17851set dummy ps; ac_word=$2
17852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17854if test "${ac_cv_path_PROG_PS+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856else
17857 case $PROG_PS in
17858 [\\/]* | ?:[\\/]*)
17859 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
17860 ;;
17861 *)
17862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17863for as_dir in $PATH
17864do
17865 IFS=$as_save_IFS
17866 test -z "$as_dir" && as_dir=.
17867 for ac_exec_ext in '' $ac_executable_extensions; do
17868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17869 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
17870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17871 break 2
17872 fi
17873done
17874done
17875IFS=$as_save_IFS
17876
17877 ;;
17878esac
17879fi
17880PROG_PS=$ac_cv_path_PROG_PS
17881if test -n "$PROG_PS"; then
17882 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
17883echo "${ECHO_T}$PROG_PS" >&6; }
17884else
17885 { echo "$as_me:$LINENO: result: no" >&5
17886echo "${ECHO_T}no" >&6; }
17887fi
17888
17889
17890 if test -z "$PROG_PS" ; then
17891 PROG_PS="undef"
17892 fi
17893
17894
17895
17896 # Extract the first word of "sar", so it can be a program name with args.
17897set dummy sar; ac_word=$2
17898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17900if test "${ac_cv_path_PROG_SAR+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903 case $PROG_SAR in
17904 [\\/]* | ?:[\\/]*)
17905 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
17906 ;;
17907 *)
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909for as_dir in $PATH
17910do
17911 IFS=$as_save_IFS
17912 test -z "$as_dir" && as_dir=.
17913 for ac_exec_ext in '' $ac_executable_extensions; do
17914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
17916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17917 break 2
17918 fi
17919done
17920done
17921IFS=$as_save_IFS
17922
17923 ;;
17924esac
17925fi
17926PROG_SAR=$ac_cv_path_PROG_SAR
17927if test -n "$PROG_SAR"; then
17928 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
17929echo "${ECHO_T}$PROG_SAR" >&6; }
17930else
17931 { echo "$as_me:$LINENO: result: no" >&5
17932echo "${ECHO_T}no" >&6; }
17933fi
17934
17935
17936 if test -z "$PROG_SAR" ; then
17937 PROG_SAR="undef"
17938 fi
17939
17940
17941
17942 # Extract the first word of "w", so it can be a program name with args.
17943set dummy w; ac_word=$2
17944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17946if test "${ac_cv_path_PROG_W+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948else
17949 case $PROG_W in
17950 [\\/]* | ?:[\\/]*)
17951 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
17952 ;;
17953 *)
17954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17955for as_dir in $PATH
17956do
17957 IFS=$as_save_IFS
17958 test -z "$as_dir" && as_dir=.
17959 for ac_exec_ext in '' $ac_executable_extensions; do
17960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17961 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
17962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17963 break 2
17964 fi
17965done
17966done
17967IFS=$as_save_IFS
17968
17969 ;;
17970esac
17971fi
17972PROG_W=$ac_cv_path_PROG_W
17973if test -n "$PROG_W"; then
17974 { echo "$as_me:$LINENO: result: $PROG_W" >&5
17975echo "${ECHO_T}$PROG_W" >&6; }
17976else
17977 { echo "$as_me:$LINENO: result: no" >&5
17978echo "${ECHO_T}no" >&6; }
17979fi
17980
17981
17982 if test -z "$PROG_W" ; then
17983 PROG_W="undef"
17984 fi
17985
17986
17987
17988 # Extract the first word of "who", so it can be a program name with args.
17989set dummy who; ac_word=$2
17990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17992if test "${ac_cv_path_PROG_WHO+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
17995 case $PROG_WHO in
17996 [\\/]* | ?:[\\/]*)
17997 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
17998 ;;
17999 *)
18000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18001for as_dir in $PATH
18002do
18003 IFS=$as_save_IFS
18004 test -z "$as_dir" && as_dir=.
18005 for ac_exec_ext in '' $ac_executable_extensions; do
18006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18007 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
18008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18009 break 2
18010 fi
18011done
18012done
18013IFS=$as_save_IFS
18014
18015 ;;
18016esac
18017fi
18018PROG_WHO=$ac_cv_path_PROG_WHO
18019if test -n "$PROG_WHO"; then
18020 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
18021echo "${ECHO_T}$PROG_WHO" >&6; }
18022else
18023 { echo "$as_me:$LINENO: result: no" >&5
18024echo "${ECHO_T}no" >&6; }
18025fi
18026
18027
18028 if test -z "$PROG_WHO" ; then
18029 PROG_WHO="undef"
18030 fi
18031
18032
18033
18034 # Extract the first word of "last", so it can be a program name with args.
18035set dummy last; ac_word=$2
18036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18038if test "${ac_cv_path_PROG_LAST+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040else
18041 case $PROG_LAST in
18042 [\\/]* | ?:[\\/]*)
18043 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
18044 ;;
18045 *)
18046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18047for as_dir in $PATH
18048do
18049 IFS=$as_save_IFS
18050 test -z "$as_dir" && as_dir=.
18051 for ac_exec_ext in '' $ac_executable_extensions; do
18052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18053 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
18054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18055 break 2
18056 fi
18057done
18058done
18059IFS=$as_save_IFS
18060
18061 ;;
18062esac
18063fi
18064PROG_LAST=$ac_cv_path_PROG_LAST
18065if test -n "$PROG_LAST"; then
18066 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
18067echo "${ECHO_T}$PROG_LAST" >&6; }
18068else
18069 { echo "$as_me:$LINENO: result: no" >&5
18070echo "${ECHO_T}no" >&6; }
18071fi
18072
18073
18074 if test -z "$PROG_LAST" ; then
18075 PROG_LAST="undef"
18076 fi
18077
18078
18079
18080 # Extract the first word of "lastlog", so it can be a program name with args.
18081set dummy lastlog; ac_word=$2
18082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18084if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086else
18087 case $PROG_LASTLOG in
18088 [\\/]* | ?:[\\/]*)
18089 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
18090 ;;
18091 *)
18092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18093for as_dir in $PATH
18094do
18095 IFS=$as_save_IFS
18096 test -z "$as_dir" && as_dir=.
18097 for ac_exec_ext in '' $ac_executable_extensions; do
18098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18099 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
18100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18101 break 2
18102 fi
18103done
18104done
18105IFS=$as_save_IFS
18106
18107 ;;
18108esac
18109fi
18110PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
18111if test -n "$PROG_LASTLOG"; then
18112 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
18113echo "${ECHO_T}$PROG_LASTLOG" >&6; }
18114else
18115 { echo "$as_me:$LINENO: result: no" >&5
18116echo "${ECHO_T}no" >&6; }
18117fi
18118
18119
18120 if test -z "$PROG_LASTLOG" ; then
18121 PROG_LASTLOG="undef"
18122 fi
18123
18124
18125
18126 # Extract the first word of "df", so it can be a program name with args.
18127set dummy df; ac_word=$2
18128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18130if test "${ac_cv_path_PROG_DF+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132else
18133 case $PROG_DF in
18134 [\\/]* | ?:[\\/]*)
18135 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
18136 ;;
18137 *)
18138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18139for as_dir in $PATH
18140do
18141 IFS=$as_save_IFS
18142 test -z "$as_dir" && as_dir=.
18143 for ac_exec_ext in '' $ac_executable_extensions; do
18144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18145 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
18146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18147 break 2
18148 fi
18149done
18150done
18151IFS=$as_save_IFS
18152
18153 ;;
18154esac
18155fi
18156PROG_DF=$ac_cv_path_PROG_DF
18157if test -n "$PROG_DF"; then
18158 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
18159echo "${ECHO_T}$PROG_DF" >&6; }
18160else
18161 { echo "$as_me:$LINENO: result: no" >&5
18162echo "${ECHO_T}no" >&6; }
18163fi
18164
18165
18166 if test -z "$PROG_DF" ; then
18167 PROG_DF="undef"
18168 fi
18169
18170
18171
18172 # Extract the first word of "vmstat", so it can be a program name with args.
18173set dummy vmstat; ac_word=$2
18174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18176if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178else
18179 case $PROG_VMSTAT in
18180 [\\/]* | ?:[\\/]*)
18181 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
18182 ;;
18183 *)
18184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185for as_dir in $PATH
18186do
18187 IFS=$as_save_IFS
18188 test -z "$as_dir" && as_dir=.
18189 for ac_exec_ext in '' $ac_executable_extensions; do
18190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18191 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
18192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18193 break 2
18194 fi
18195done
18196done
18197IFS=$as_save_IFS
18198
18199 ;;
18200esac
18201fi
18202PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
18203if test -n "$PROG_VMSTAT"; then
18204 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
18205echo "${ECHO_T}$PROG_VMSTAT" >&6; }
18206else
18207 { echo "$as_me:$LINENO: result: no" >&5
18208echo "${ECHO_T}no" >&6; }
18209fi
18210
18211
18212 if test -z "$PROG_VMSTAT" ; then
18213 PROG_VMSTAT="undef"
18214 fi
18215
18216
18217
18218 # Extract the first word of "uptime", so it can be a program name with args.
18219set dummy uptime; ac_word=$2
18220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18222if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 case $PROG_UPTIME in
18226 [\\/]* | ?:[\\/]*)
18227 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
18228 ;;
18229 *)
18230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18231for as_dir in $PATH
18232do
18233 IFS=$as_save_IFS
18234 test -z "$as_dir" && as_dir=.
18235 for ac_exec_ext in '' $ac_executable_extensions; do
18236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18237 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
18238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18239 break 2
18240 fi
18241done
18242done
18243IFS=$as_save_IFS
18244
18245 ;;
18246esac
18247fi
18248PROG_UPTIME=$ac_cv_path_PROG_UPTIME
18249if test -n "$PROG_UPTIME"; then
18250 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
18251echo "${ECHO_T}$PROG_UPTIME" >&6; }
18252else
18253 { echo "$as_me:$LINENO: result: no" >&5
18254echo "${ECHO_T}no" >&6; }
18255fi
18256
18257
18258 if test -z "$PROG_UPTIME" ; then
18259 PROG_UPTIME="undef"
18260 fi
18261
18262
18263
18264 # Extract the first word of "ipcs", so it can be a program name with args.
18265set dummy ipcs; ac_word=$2
18266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18268if test "${ac_cv_path_PROG_IPCS+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18270else
18271 case $PROG_IPCS in
18272 [\\/]* | ?:[\\/]*)
18273 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
18274 ;;
18275 *)
18276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18277for as_dir in $PATH
18278do
18279 IFS=$as_save_IFS
18280 test -z "$as_dir" && as_dir=.
18281 for ac_exec_ext in '' $ac_executable_extensions; do
18282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18283 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
18284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18285 break 2
18286 fi
18287done
18288done
18289IFS=$as_save_IFS
18290
18291 ;;
18292esac
18293fi
18294PROG_IPCS=$ac_cv_path_PROG_IPCS
18295if test -n "$PROG_IPCS"; then
18296 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
18297echo "${ECHO_T}$PROG_IPCS" >&6; }
18298else
18299 { echo "$as_me:$LINENO: result: no" >&5
18300echo "${ECHO_T}no" >&6; }
18301fi
18302
18303
18304 if test -z "$PROG_IPCS" ; then
18305 PROG_IPCS="undef"
18306 fi
18307
18308
18309
18310 # Extract the first word of "tail", so it can be a program name with args.
18311set dummy tail; ac_word=$2
18312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18314if test "${ac_cv_path_PROG_TAIL+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316else
18317 case $PROG_TAIL in
18318 [\\/]* | ?:[\\/]*)
18319 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
18320 ;;
18321 *)
18322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18323for as_dir in $PATH
18324do
18325 IFS=$as_save_IFS
18326 test -z "$as_dir" && as_dir=.
18327 for ac_exec_ext in '' $ac_executable_extensions; do
18328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18329 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
18330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18331 break 2
18332 fi
18333done
18334done
18335IFS=$as_save_IFS
18336
18337 ;;
18338esac
18339fi
18340PROG_TAIL=$ac_cv_path_PROG_TAIL
18341if test -n "$PROG_TAIL"; then
18342 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
18343echo "${ECHO_T}$PROG_TAIL" >&6; }
18344else
18345 { echo "$as_me:$LINENO: result: no" >&5
18346echo "${ECHO_T}no" >&6; }
18347fi
18348
18349
18350 if test -z "$PROG_TAIL" ; then
18351 PROG_TAIL="undef"
18352 fi
18353
18354
18355# restore PATH
18356PATH=$OPATH
18357
18358# Where does ssh-rand-helper get its randomness from?
18359INSTALL_SSH_PRNG_CMDS=""
18360if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
18361 if test ! -z "$PRNGD_PORT" ; then
18362 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
18363 elif test ! -z "$PRNGD_SOCKET" ; then
18364 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
18365 else
18366 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
18367 RAND_HELPER_CMDHASH=yes
18368 INSTALL_SSH_PRNG_CMDS="yes"
18369 fi
18370fi
18371
18372
18373
18374# Cheap hack to ensure NEWS-OS libraries are arranged right.
18375if test ! -z "$SONY" ; then
18376 LIBS="$LIBS -liberty";
18377fi
18378
18379# Check for long long datatypes
18380{ echo "$as_me:$LINENO: checking for long long" >&5
18381echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18382if test "${ac_cv_type_long_long+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384else
18385 cat >conftest.$ac_ext <<_ACEOF
18386/* confdefs.h. */
18387_ACEOF
18388cat confdefs.h >>conftest.$ac_ext
18389cat >>conftest.$ac_ext <<_ACEOF
18390/* end confdefs.h. */
18391$ac_includes_default
18392typedef long long ac__type_new_;
18393int
18394main ()
18395{
18396if ((ac__type_new_ *) 0)
18397 return 0;
18398if (sizeof (ac__type_new_))
18399 return 0;
18400 ;
18401 return 0;
18402}
18403_ACEOF
18404rm -f conftest.$ac_objext
18405if { (ac_try="$ac_compile"
18406case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409esac
18410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_compile") 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest.$ac_objext; then
18421 ac_cv_type_long_long=yes
18422else
18423 echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426 ac_cv_type_long_long=no
18427fi
18428
18429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430fi
18431{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18432echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18433if test $ac_cv_type_long_long = yes; then
18434
18435cat >>confdefs.h <<_ACEOF
18436#define HAVE_LONG_LONG 1
18437_ACEOF
18438
18439
18440fi
18441{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
18442echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
18443if test "${ac_cv_type_unsigned_long_long+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445else
18446 cat >conftest.$ac_ext <<_ACEOF
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452$ac_includes_default
18453typedef unsigned long long ac__type_new_;
18454int
18455main ()
18456{
18457if ((ac__type_new_ *) 0)
18458 return 0;
18459if (sizeof (ac__type_new_))
18460 return 0;
18461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext
18466if { (ac_try="$ac_compile"
18467case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470esac
18471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_compile") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest.$ac_objext; then
18482 ac_cv_type_unsigned_long_long=yes
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 ac_cv_type_unsigned_long_long=no
18488fi
18489
18490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18491fi
18492{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
18493echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
18494if test $ac_cv_type_unsigned_long_long = yes; then
18495
18496cat >>confdefs.h <<_ACEOF
18497#define HAVE_UNSIGNED_LONG_LONG 1
18498_ACEOF
18499
18500
18501fi
18502{ echo "$as_me:$LINENO: checking for long double" >&5
18503echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18504if test "${ac_cv_type_long_double+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
18513$ac_includes_default
18514typedef long double ac__type_new_;
18515int
18516main ()
18517{
18518if ((ac__type_new_ *) 0)
18519 return 0;
18520if (sizeof (ac__type_new_))
18521 return 0;
18522 ;
18523 return 0;
18524}
18525_ACEOF
18526rm -f conftest.$ac_objext
18527if { (ac_try="$ac_compile"
18528case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531esac
18532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_compile") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest.$ac_objext; then
18543 ac_cv_type_long_double=yes
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_type_long_double=no
18549fi
18550
18551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18552fi
18553{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
18554echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
18555if test $ac_cv_type_long_double = yes; then
18556
18557cat >>confdefs.h <<_ACEOF
18558#define HAVE_LONG_DOUBLE 1
18559_ACEOF
18560
18561
18562fi
18563
18564
18565# Check datatype sizes
18566{ echo "$as_me:$LINENO: checking for char" >&5
18567echo $ECHO_N "checking for char... $ECHO_C" >&6; }
18568if test "${ac_cv_type_char+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570else
18571 cat >conftest.$ac_ext <<_ACEOF
18572/* confdefs.h. */
18573_ACEOF
18574cat confdefs.h >>conftest.$ac_ext
18575cat >>conftest.$ac_ext <<_ACEOF
18576/* end confdefs.h. */
18577$ac_includes_default
18578typedef char ac__type_new_;
18579int
18580main ()
18581{
18582if ((ac__type_new_ *) 0)
18583 return 0;
18584if (sizeof (ac__type_new_))
18585 return 0;
18586 ;
18587 return 0;
18588}
18589_ACEOF
18590rm -f conftest.$ac_objext
18591if { (ac_try="$ac_compile"
18592case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595esac
18596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_compile") 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } && {
18604 test -z "$ac_c_werror_flag" ||
18605 test ! -s conftest.err
18606 } && test -s conftest.$ac_objext; then
18607 ac_cv_type_char=yes
18608else
18609 echo "$as_me: failed program was:" >&5
18610sed 's/^/| /' conftest.$ac_ext >&5
18611
18612 ac_cv_type_char=no
18613fi
18614
18615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616fi
18617{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18618echo "${ECHO_T}$ac_cv_type_char" >&6; }
18619
18620# The cast to long int works around a bug in the HP C Compiler
18621# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18622# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18623# This bug is HP SR number 8606223364.
18624{ echo "$as_me:$LINENO: checking size of char" >&5
18625echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
18626if test "${ac_cv_sizeof_char+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628else
18629 if test "$cross_compiling" = yes; then
18630 # Depending upon the size, compute the lo and hi bounds.
18631cat >conftest.$ac_ext <<_ACEOF
18632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
18637$ac_includes_default
18638 typedef char ac__type_sizeof_;
18639int
18640main ()
18641{
18642static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18643test_array [0] = 0
18644
18645 ;
18646 return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext
18650if { (ac_try="$ac_compile"
18651case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654esac
18655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_compile") 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest.$ac_objext; then
18666 ac_lo=0 ac_mid=0
18667 while :; do
18668 cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674$ac_includes_default
18675 typedef char ac__type_sizeof_;
18676int
18677main ()
18678{
18679static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18680test_array [0] = 0
18681
18682 ;
18683 return 0;
18684}
18685_ACEOF
18686rm -f conftest.$ac_objext
18687if { (ac_try="$ac_compile"
18688case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691esac
18692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_compile") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest.$ac_objext; then
18703 ac_hi=$ac_mid; break
18704else
18705 echo "$as_me: failed program was:" >&5
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_lo=`expr $ac_mid + 1`
18709 if test $ac_lo -le $ac_mid; then
18710 ac_lo= ac_hi=
18711 break
18712 fi
18713 ac_mid=`expr 2 '*' $ac_mid + 1`
18714fi
18715
18716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 done
18718else
18719 echo "$as_me: failed program was:" >&5
18720sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 cat >conftest.$ac_ext <<_ACEOF
18723/* confdefs.h. */
18724_ACEOF
18725cat confdefs.h >>conftest.$ac_ext
18726cat >>conftest.$ac_ext <<_ACEOF
18727/* end confdefs.h. */
18728$ac_includes_default
18729 typedef char ac__type_sizeof_;
18730int
18731main ()
18732{
18733static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18734test_array [0] = 0
18735
18736 ;
18737 return 0;
18738}
18739_ACEOF
18740rm -f conftest.$ac_objext
18741if { (ac_try="$ac_compile"
18742case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745esac
18746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_compile") 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest.$ac_objext; then
18757 ac_hi=-1 ac_mid=-1
18758 while :; do
18759 cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h. */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h. */
18765$ac_includes_default
18766 typedef char ac__type_sizeof_;
18767int
18768main ()
18769{
18770static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18771test_array [0] = 0
18772
18773 ;
18774 return 0;
18775}
18776_ACEOF
18777rm -f conftest.$ac_objext
18778if { (ac_try="$ac_compile"
18779case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782esac
18783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_compile") 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest.$ac_objext; then
18794 ac_lo=$ac_mid; break
18795else
18796 echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_hi=`expr '(' $ac_mid ')' - 1`
18800 if test $ac_mid -le $ac_hi; then
18801 ac_lo= ac_hi=
18802 break
18803 fi
18804 ac_mid=`expr 2 '*' $ac_mid`
18805fi
18806
18807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 done
18809else
18810 echo "$as_me: failed program was:" >&5
18811sed 's/^/| /' conftest.$ac_ext >&5
18812
18813 ac_lo= ac_hi=
18814fi
18815
18816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817fi
18818
18819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18820# Binary search between lo and hi bounds.
18821while test "x$ac_lo" != "x$ac_hi"; do
18822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18823 cat >conftest.$ac_ext <<_ACEOF
18824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
18829$ac_includes_default
18830 typedef char ac__type_sizeof_;
18831int
18832main ()
18833{
18834static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18835test_array [0] = 0
18836
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext
18842if { (ac_try="$ac_compile"
18843case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_compile") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && {
18855 test -z "$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 } && test -s conftest.$ac_objext; then
18858 ac_hi=$ac_mid
18859else
18860 echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_lo=`expr '(' $ac_mid ')' + 1`
18864fi
18865
18866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867done
18868case $ac_lo in
18869?*) ac_cv_sizeof_char=$ac_lo;;
18870'') if test "$ac_cv_type_char" = yes; then
18871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18872See \`config.log' for more details." >&5
18873echo "$as_me: error: cannot compute sizeof (char)
18874See \`config.log' for more details." >&2;}
18875 { (exit 77); exit 77; }; }
18876 else
18877 ac_cv_sizeof_char=0
18878 fi ;;
18879esac
18880else
18881 cat >conftest.$ac_ext <<_ACEOF
18882/* confdefs.h. */
18883_ACEOF
18884cat confdefs.h >>conftest.$ac_ext
18885cat >>conftest.$ac_ext <<_ACEOF
18886/* end confdefs.h. */
18887$ac_includes_default
18888 typedef char ac__type_sizeof_;
18889static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18890static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18891#include <stdio.h>
18892#include <stdlib.h>
18893int
18894main ()
18895{
18896
18897 FILE *f = fopen ("conftest.val", "w");
18898 if (! f)
18899 return 1;
18900 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18901 {
18902 long int i = longval ();
18903 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18904 return 1;
18905 fprintf (f, "%ld\n", i);
18906 }
18907 else
18908 {
18909 unsigned long int i = ulongval ();
18910 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18911 return 1;
18912 fprintf (f, "%lu\n", i);
18913 }
18914 return ferror (f) || fclose (f) != 0;
18915
18916 ;
18917 return 0;
18918}
18919_ACEOF
18920rm -f conftest$ac_exeext
18921if { (ac_try="$ac_link"
18922case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_link") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18931 { (case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934esac
18935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_try") 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18940 ac_cv_sizeof_char=`cat conftest.val`
18941else
18942 echo "$as_me: program exited with status $ac_status" >&5
18943echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946( exit $ac_status )
18947if test "$ac_cv_type_char" = yes; then
18948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18949See \`config.log' for more details." >&5
18950echo "$as_me: error: cannot compute sizeof (char)
18951See \`config.log' for more details." >&2;}
18952 { (exit 77); exit 77; }; }
18953 else
18954 ac_cv_sizeof_char=0
18955 fi
18956fi
18957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18958fi
18959rm -f conftest.val
18960fi
18961{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18962echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18963
18964
18965
18966cat >>confdefs.h <<_ACEOF
18967#define SIZEOF_CHAR $ac_cv_sizeof_char
18968_ACEOF
18969
18970
18971{ echo "$as_me:$LINENO: checking for short int" >&5
18972echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
18973if test "${ac_cv_type_short_int+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976 cat >conftest.$ac_ext <<_ACEOF
18977/* confdefs.h. */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h. */
18982$ac_includes_default
18983typedef short int ac__type_new_;
18984int
18985main ()
18986{
18987if ((ac__type_new_ *) 0)
18988 return 0;
18989if (sizeof (ac__type_new_))
18990 return 0;
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995rm -f conftest.$ac_objext
18996if { (ac_try="$ac_compile"
18997case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000esac
19001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_compile") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest.$ac_objext; then
19012 ac_cv_type_short_int=yes
19013else
19014 echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017 ac_cv_type_short_int=no
19018fi
19019
19020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021fi
19022{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
19023echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
19024
19025# The cast to long int works around a bug in the HP C Compiler
19026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19028# This bug is HP SR number 8606223364.
19029{ echo "$as_me:$LINENO: checking size of short int" >&5
19030echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
19031if test "${ac_cv_sizeof_short_int+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033else
19034 if test "$cross_compiling" = yes; then
19035 # Depending upon the size, compute the lo and hi bounds.
19036cat >conftest.$ac_ext <<_ACEOF
19037/* confdefs.h. */
19038_ACEOF
19039cat confdefs.h >>conftest.$ac_ext
19040cat >>conftest.$ac_ext <<_ACEOF
19041/* end confdefs.h. */
19042$ac_includes_default
19043 typedef short int ac__type_sizeof_;
19044int
19045main ()
19046{
19047static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19048test_array [0] = 0
19049
19050 ;
19051 return 0;
19052}
19053_ACEOF
19054rm -f conftest.$ac_objext
19055if { (ac_try="$ac_compile"
19056case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_compile") 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest.$ac_objext; then
19071 ac_lo=0 ac_mid=0
19072 while :; do
19073 cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079$ac_includes_default
19080 typedef short int ac__type_sizeof_;
19081int
19082main ()
19083{
19084static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19085test_array [0] = 0
19086
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (ac_try="$ac_compile"
19093case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_compile") 2>conftest.er1
19099 ac_status=$?
19100 grep -v '^ *+' conftest.er1 >conftest.err
19101 rm -f conftest.er1
19102 cat conftest.err >&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } && {
19105 test -z "$ac_c_werror_flag" ||
19106 test ! -s conftest.err
19107 } && test -s conftest.$ac_objext; then
19108 ac_hi=$ac_mid; break
19109else
19110 echo "$as_me: failed program was:" >&5
19111sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 ac_lo=`expr $ac_mid + 1`
19114 if test $ac_lo -le $ac_mid; then
19115 ac_lo= ac_hi=
19116 break
19117 fi
19118 ac_mid=`expr 2 '*' $ac_mid + 1`
19119fi
19120
19121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19122 done
19123else
19124 echo "$as_me: failed program was:" >&5
19125sed 's/^/| /' conftest.$ac_ext >&5
19126
19127 cat >conftest.$ac_ext <<_ACEOF
19128/* confdefs.h. */
19129_ACEOF
19130cat confdefs.h >>conftest.$ac_ext
19131cat >>conftest.$ac_ext <<_ACEOF
19132/* end confdefs.h. */
19133$ac_includes_default
19134 typedef short int ac__type_sizeof_;
19135int
19136main ()
19137{
19138static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19139test_array [0] = 0
19140
19141 ;
19142 return 0;
19143}
19144_ACEOF
19145rm -f conftest.$ac_objext
19146if { (ac_try="$ac_compile"
19147case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150esac
19151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest.$ac_objext; then
19162 ac_hi=-1 ac_mid=-1
19163 while :; do
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170$ac_includes_default
19171 typedef short int ac__type_sizeof_;
19172int
19173main ()
19174{
19175static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19176test_array [0] = 0
19177
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (ac_try="$ac_compile"
19184case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187esac
19188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_compile") 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest.$ac_objext; then
19199 ac_lo=$ac_mid; break
19200else
19201 echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ac_hi=`expr '(' $ac_mid ')' - 1`
19205 if test $ac_mid -le $ac_hi; then
19206 ac_lo= ac_hi=
19207 break
19208 fi
19209 ac_mid=`expr 2 '*' $ac_mid`
19210fi
19211
19212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 done
19214else
19215 echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218 ac_lo= ac_hi=
19219fi
19220
19221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222fi
19223
19224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225# Binary search between lo and hi bounds.
19226while test "x$ac_lo" != "x$ac_hi"; do
19227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19228 cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
19234$ac_includes_default
19235 typedef short int ac__type_sizeof_;
19236int
19237main ()
19238{
19239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19240test_array [0] = 0
19241
19242 ;
19243 return 0;
19244}
19245_ACEOF
19246rm -f conftest.$ac_objext
19247if { (ac_try="$ac_compile"
19248case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251esac
19252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_compile") 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest.$ac_objext; then
19263 ac_hi=$ac_mid
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 ac_lo=`expr '(' $ac_mid ')' + 1`
19269fi
19270
19271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272done
19273case $ac_lo in
19274?*) ac_cv_sizeof_short_int=$ac_lo;;
19275'') if test "$ac_cv_type_short_int" = yes; then
19276 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19277See \`config.log' for more details." >&5
19278echo "$as_me: error: cannot compute sizeof (short int)
19279See \`config.log' for more details." >&2;}
19280 { (exit 77); exit 77; }; }
19281 else
19282 ac_cv_sizeof_short_int=0
19283 fi ;;
19284esac
19285else
19286 cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292$ac_includes_default
19293 typedef short int ac__type_sizeof_;
19294static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19295static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19296#include <stdio.h>
19297#include <stdlib.h>
19298int
19299main ()
19300{
19301
19302 FILE *f = fopen ("conftest.val", "w");
19303 if (! f)
19304 return 1;
19305 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19306 {
19307 long int i = longval ();
19308 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19309 return 1;
19310 fprintf (f, "%ld\n", i);
19311 }
19312 else
19313 {
19314 unsigned long int i = ulongval ();
19315 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19316 return 1;
19317 fprintf (f, "%lu\n", i);
19318 }
19319 return ferror (f) || fclose (f) != 0;
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest$ac_exeext
19326if { (ac_try="$ac_link"
19327case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19330esac
19331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_link") 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_cv_sizeof_short_int=`cat conftest.val`
19346else
19347 echo "$as_me: program exited with status $ac_status" >&5
19348echo "$as_me: failed program was:" >&5
19349sed 's/^/| /' conftest.$ac_ext >&5
19350
19351( exit $ac_status )
19352if test "$ac_cv_type_short_int" = yes; then
19353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19354See \`config.log' for more details." >&5
19355echo "$as_me: error: cannot compute sizeof (short int)
19356See \`config.log' for more details." >&2;}
19357 { (exit 77); exit 77; }; }
19358 else
19359 ac_cv_sizeof_short_int=0
19360 fi
19361fi
19362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19363fi
19364rm -f conftest.val
19365fi
19366{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
19367echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
19368
19369
19370
19371cat >>confdefs.h <<_ACEOF
19372#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
19373_ACEOF
19374
19375
19376{ echo "$as_me:$LINENO: checking for int" >&5
19377echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19378if test "${ac_cv_type_int+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380else
19381 cat >conftest.$ac_ext <<_ACEOF
19382/* confdefs.h. */
19383_ACEOF
19384cat confdefs.h >>conftest.$ac_ext
19385cat >>conftest.$ac_ext <<_ACEOF
19386/* end confdefs.h. */
19387$ac_includes_default
19388typedef int ac__type_new_;
19389int
19390main ()
19391{
19392if ((ac__type_new_ *) 0)
19393 return 0;
19394if (sizeof (ac__type_new_))
19395 return 0;
19396 ;
19397 return 0;
19398}
19399_ACEOF
19400rm -f conftest.$ac_objext
19401if { (ac_try="$ac_compile"
19402case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405esac
19406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.$ac_objext; then
19417 ac_cv_type_int=yes
19418else
19419 echo "$as_me: failed program was:" >&5
19420sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_cv_type_int=no
19423fi
19424
19425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426fi
19427{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19428echo "${ECHO_T}$ac_cv_type_int" >&6; }
19429
19430# The cast to long int works around a bug in the HP C Compiler
19431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19433# This bug is HP SR number 8606223364.
19434{ echo "$as_me:$LINENO: checking size of int" >&5
19435echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19436if test "${ac_cv_sizeof_int+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19438else
19439 if test "$cross_compiling" = yes; then
19440 # Depending upon the size, compute the lo and hi bounds.
19441cat >conftest.$ac_ext <<_ACEOF
19442/* confdefs.h. */
19443_ACEOF
19444cat confdefs.h >>conftest.$ac_ext
19445cat >>conftest.$ac_ext <<_ACEOF
19446/* end confdefs.h. */
19447$ac_includes_default
19448 typedef int ac__type_sizeof_;
19449int
19450main ()
19451{
19452static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19453test_array [0] = 0
19454
19455 ;
19456 return 0;
19457}
19458_ACEOF
19459rm -f conftest.$ac_objext
19460if { (ac_try="$ac_compile"
19461case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19464esac
19465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_compile") 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } && {
19473 test -z "$ac_c_werror_flag" ||
19474 test ! -s conftest.err
19475 } && test -s conftest.$ac_objext; then
19476 ac_lo=0 ac_mid=0
19477 while :; do
19478 cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484$ac_includes_default
19485 typedef int ac__type_sizeof_;
19486int
19487main ()
19488{
19489static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19490test_array [0] = 0
19491
19492 ;
19493 return 0;
19494}
19495_ACEOF
19496rm -f conftest.$ac_objext
19497if { (ac_try="$ac_compile"
19498case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_compile") 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } && {
19510 test -z "$ac_c_werror_flag" ||
19511 test ! -s conftest.err
19512 } && test -s conftest.$ac_objext; then
19513 ac_hi=$ac_mid; break
19514else
19515 echo "$as_me: failed program was:" >&5
19516sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ac_lo=`expr $ac_mid + 1`
19519 if test $ac_lo -le $ac_mid; then
19520 ac_lo= ac_hi=
19521 break
19522 fi
19523 ac_mid=`expr 2 '*' $ac_mid + 1`
19524fi
19525
19526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 done
19528else
19529 echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 cat >conftest.$ac_ext <<_ACEOF
19533/* confdefs.h. */
19534_ACEOF
19535cat confdefs.h >>conftest.$ac_ext
19536cat >>conftest.$ac_ext <<_ACEOF
19537/* end confdefs.h. */
19538$ac_includes_default
19539 typedef int ac__type_sizeof_;
19540int
19541main ()
19542{
19543static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19544test_array [0] = 0
19545
19546 ;
19547 return 0;
19548}
19549_ACEOF
19550rm -f conftest.$ac_objext
19551if { (ac_try="$ac_compile"
19552case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555esac
19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_compile") 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest.$ac_objext; then
19567 ac_hi=-1 ac_mid=-1
19568 while :; do
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575$ac_includes_default
19576 typedef int ac__type_sizeof_;
19577int
19578main ()
19579{
19580static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19581test_array [0] = 0
19582
19583 ;
19584 return 0;
19585}
19586_ACEOF
19587rm -f conftest.$ac_objext
19588if { (ac_try="$ac_compile"
19589case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest.$ac_objext; then
19604 ac_lo=$ac_mid; break
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_hi=`expr '(' $ac_mid ')' - 1`
19610 if test $ac_mid -le $ac_hi; then
19611 ac_lo= ac_hi=
19612 break
19613 fi
19614 ac_mid=`expr 2 '*' $ac_mid`
19615fi
19616
19617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19618 done
19619else
19620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_lo= ac_hi=
19624fi
19625
19626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627fi
19628
19629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630# Binary search between lo and hi bounds.
19631while test "x$ac_lo" != "x$ac_hi"; do
19632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19633 cat >conftest.$ac_ext <<_ACEOF
19634/* confdefs.h. */
19635_ACEOF
19636cat confdefs.h >>conftest.$ac_ext
19637cat >>conftest.$ac_ext <<_ACEOF
19638/* end confdefs.h. */
19639$ac_includes_default
19640 typedef int ac__type_sizeof_;
19641int
19642main ()
19643{
19644static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19645test_array [0] = 0
19646
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (ac_try="$ac_compile"
19653case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656esac
19657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_compile") 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && {
19665 test -z "$ac_c_werror_flag" ||
19666 test ! -s conftest.err
19667 } && test -s conftest.$ac_objext; then
19668 ac_hi=$ac_mid
19669else
19670 echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 ac_lo=`expr '(' $ac_mid ')' + 1`
19674fi
19675
19676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677done
19678case $ac_lo in
19679?*) ac_cv_sizeof_int=$ac_lo;;
19680'') if test "$ac_cv_type_int" = yes; then
19681 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19682See \`config.log' for more details." >&5
19683echo "$as_me: error: cannot compute sizeof (int)
19684See \`config.log' for more details." >&2;}
19685 { (exit 77); exit 77; }; }
19686 else
19687 ac_cv_sizeof_int=0
19688 fi ;;
19689esac
19690else
19691 cat >conftest.$ac_ext <<_ACEOF
19692/* confdefs.h. */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
19696/* end confdefs.h. */
19697$ac_includes_default
19698 typedef int ac__type_sizeof_;
19699static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19700static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19701#include <stdio.h>
19702#include <stdlib.h>
19703int
19704main ()
19705{
19706
19707 FILE *f = fopen ("conftest.val", "w");
19708 if (! f)
19709 return 1;
19710 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19711 {
19712 long int i = longval ();
19713 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19714 return 1;
19715 fprintf (f, "%ld\n", i);
19716 }
19717 else
19718 {
19719 unsigned long int i = ulongval ();
19720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19721 return 1;
19722 fprintf (f, "%lu\n", i);
19723 }
19724 return ferror (f) || fclose (f) != 0;
19725
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest$ac_exeext
19731if { (ac_try="$ac_link"
19732case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_link") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19741 { (case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744esac
19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_try") 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_cv_sizeof_int=`cat conftest.val`
19751else
19752 echo "$as_me: program exited with status $ac_status" >&5
19753echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
19756( exit $ac_status )
19757if test "$ac_cv_type_int" = yes; then
19758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19759See \`config.log' for more details." >&5
19760echo "$as_me: error: cannot compute sizeof (int)
19761See \`config.log' for more details." >&2;}
19762 { (exit 77); exit 77; }; }
19763 else
19764 ac_cv_sizeof_int=0
19765 fi
19766fi
19767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19768fi
19769rm -f conftest.val
19770fi
19771{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19772echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19773
19774
19775
19776cat >>confdefs.h <<_ACEOF
19777#define SIZEOF_INT $ac_cv_sizeof_int
19778_ACEOF
19779
19780
19781{ echo "$as_me:$LINENO: checking for long int" >&5
19782echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
19783if test "${ac_cv_type_long_int+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785else
19786 cat >conftest.$ac_ext <<_ACEOF
19787/* confdefs.h. */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
19791/* end confdefs.h. */
19792$ac_includes_default
19793typedef long int ac__type_new_;
19794int
19795main ()
19796{
19797if ((ac__type_new_ *) 0)
19798 return 0;
19799if (sizeof (ac__type_new_))
19800 return 0;
19801 ;
19802 return 0;
19803}
19804_ACEOF
19805rm -f conftest.$ac_objext
19806if { (ac_try="$ac_compile"
19807case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_compile") 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } && {
19819 test -z "$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 } && test -s conftest.$ac_objext; then
19822 ac_cv_type_long_int=yes
19823else
19824 echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 ac_cv_type_long_int=no
19828fi
19829
19830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831fi
19832{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
19833echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
19834
19835# The cast to long int works around a bug in the HP C Compiler
19836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19838# This bug is HP SR number 8606223364.
19839{ echo "$as_me:$LINENO: checking size of long int" >&5
19840echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
19841if test "${ac_cv_sizeof_long_int+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19843else
19844 if test "$cross_compiling" = yes; then
19845 # Depending upon the size, compute the lo and hi bounds.
19846cat >conftest.$ac_ext <<_ACEOF
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
19852$ac_includes_default
19853 typedef long int ac__type_sizeof_;
19854int
19855main ()
19856{
19857static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19858test_array [0] = 0
19859
19860 ;
19861 return 0;
19862}
19863_ACEOF
19864rm -f conftest.$ac_objext
19865if { (ac_try="$ac_compile"
19866case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19869esac
19870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_compile") 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest.$ac_objext; then
19881 ac_lo=0 ac_mid=0
19882 while :; do
19883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
19889$ac_includes_default
19890 typedef long int ac__type_sizeof_;
19891int
19892main ()
19893{
19894static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19895test_array [0] = 0
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
19902if { (ac_try="$ac_compile"
19903case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_compile") 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } && {
19915 test -z "$ac_c_werror_flag" ||
19916 test ! -s conftest.err
19917 } && test -s conftest.$ac_objext; then
19918 ac_hi=$ac_mid; break
19919else
19920 echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ac_lo=`expr $ac_mid + 1`
19924 if test $ac_lo -le $ac_mid; then
19925 ac_lo= ac_hi=
19926 break
19927 fi
19928 ac_mid=`expr 2 '*' $ac_mid + 1`
19929fi
19930
19931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 done
19933else
19934 echo "$as_me: failed program was:" >&5
19935sed 's/^/| /' conftest.$ac_ext >&5
19936
19937 cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h. */
19943$ac_includes_default
19944 typedef long int ac__type_sizeof_;
19945int
19946main ()
19947{
19948static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19949test_array [0] = 0
19950
19951 ;
19952 return 0;
19953}
19954_ACEOF
19955rm -f conftest.$ac_objext
19956if { (ac_try="$ac_compile"
19957case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960esac
19961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19963 ac_status=$?
19964 grep -v '^ *+' conftest.er1 >conftest.err
19965 rm -f conftest.er1
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && {
19969 test -z "$ac_c_werror_flag" ||
19970 test ! -s conftest.err
19971 } && test -s conftest.$ac_objext; then
19972 ac_hi=-1 ac_mid=-1
19973 while :; do
19974 cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980$ac_includes_default
19981 typedef long int ac__type_sizeof_;
19982int
19983main ()
19984{
19985static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19986test_array [0] = 0
19987
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
19993if { (ac_try="$ac_compile"
19994case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20009 ac_lo=$ac_mid; break
20010else
20011 echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_hi=`expr '(' $ac_mid ')' - 1`
20015 if test $ac_mid -le $ac_hi; then
20016 ac_lo= ac_hi=
20017 break
20018 fi
20019 ac_mid=`expr 2 '*' $ac_mid`
20020fi
20021
20022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 done
20024else
20025 echo "$as_me: failed program was:" >&5
20026sed 's/^/| /' conftest.$ac_ext >&5
20027
20028 ac_lo= ac_hi=
20029fi
20030
20031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20032fi
20033
20034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035# Binary search between lo and hi bounds.
20036while test "x$ac_lo" != "x$ac_hi"; do
20037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20038 cat >conftest.$ac_ext <<_ACEOF
20039/* confdefs.h. */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h. */
20044$ac_includes_default
20045 typedef long int ac__type_sizeof_;
20046int
20047main ()
20048{
20049static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20050test_array [0] = 0
20051
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest.$ac_objext
20057if { (ac_try="$ac_compile"
20058case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061esac
20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && {
20070 test -z "$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 } && test -s conftest.$ac_objext; then
20073 ac_hi=$ac_mid
20074else
20075 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 ac_lo=`expr '(' $ac_mid ')' + 1`
20079fi
20080
20081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082done
20083case $ac_lo in
20084?*) ac_cv_sizeof_long_int=$ac_lo;;
20085'') if test "$ac_cv_type_long_int" = yes; then
20086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20087See \`config.log' for more details." >&5
20088echo "$as_me: error: cannot compute sizeof (long int)
20089See \`config.log' for more details." >&2;}
20090 { (exit 77); exit 77; }; }
20091 else
20092 ac_cv_sizeof_long_int=0
20093 fi ;;
20094esac
20095else
20096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
20102$ac_includes_default
20103 typedef long int ac__type_sizeof_;
20104static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20105static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20106#include <stdio.h>
20107#include <stdlib.h>
20108int
20109main ()
20110{
20111
20112 FILE *f = fopen ("conftest.val", "w");
20113 if (! f)
20114 return 1;
20115 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20116 {
20117 long int i = longval ();
20118 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20119 return 1;
20120 fprintf (f, "%ld\n", i);
20121 }
20122 else
20123 {
20124 unsigned long int i = ulongval ();
20125 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20126 return 1;
20127 fprintf (f, "%lu\n", i);
20128 }
20129 return ferror (f) || fclose (f) != 0;
20130
20131 ;
20132 return 0;
20133}
20134_ACEOF
20135rm -f conftest$ac_exeext
20136if { (ac_try="$ac_link"
20137case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140esac
20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_sizeof_long_int=`cat conftest.val`
20156else
20157 echo "$as_me: program exited with status $ac_status" >&5
20158echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161( exit $ac_status )
20162if test "$ac_cv_type_long_int" = yes; then
20163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20164See \`config.log' for more details." >&5
20165echo "$as_me: error: cannot compute sizeof (long int)
20166See \`config.log' for more details." >&2;}
20167 { (exit 77); exit 77; }; }
20168 else
20169 ac_cv_sizeof_long_int=0
20170 fi
20171fi
20172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20173fi
20174rm -f conftest.val
20175fi
20176{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
20177echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
20178
20179
20180
20181cat >>confdefs.h <<_ACEOF
20182#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
20183_ACEOF
20184
20185
20186{ echo "$as_me:$LINENO: checking for long long int" >&5
20187echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
20188if test "${ac_cv_type_long_long_int+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190else
20191 cat >conftest.$ac_ext <<_ACEOF
20192/* confdefs.h. */
20193_ACEOF
20194cat confdefs.h >>conftest.$ac_ext
20195cat >>conftest.$ac_ext <<_ACEOF
20196/* end confdefs.h. */
20197$ac_includes_default
20198typedef long long int ac__type_new_;
20199int
20200main ()
20201{
20202if ((ac__type_new_ *) 0)
20203 return 0;
20204if (sizeof (ac__type_new_))
20205 return 0;
20206 ;
20207 return 0;
20208}
20209_ACEOF
20210rm -f conftest.$ac_objext
20211if { (ac_try="$ac_compile"
20212case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20215esac
20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_compile") 2>conftest.er1
20218 ac_status=$?
20219 grep -v '^ *+' conftest.er1 >conftest.err
20220 rm -f conftest.er1
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && {
20224 test -z "$ac_c_werror_flag" ||
20225 test ! -s conftest.err
20226 } && test -s conftest.$ac_objext; then
20227 ac_cv_type_long_long_int=yes
20228else
20229 echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ac_cv_type_long_long_int=no
20233fi
20234
20235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236fi
20237{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20238echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
20239
20240# The cast to long int works around a bug in the HP C Compiler
20241# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20242# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20243# This bug is HP SR number 8606223364.
20244{ echo "$as_me:$LINENO: checking size of long long int" >&5
20245echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
20246if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248else
20249 if test "$cross_compiling" = yes; then
20250 # Depending upon the size, compute the lo and hi bounds.
20251cat >conftest.$ac_ext <<_ACEOF
20252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
20257$ac_includes_default
20258 typedef long long int ac__type_sizeof_;
20259int
20260main ()
20261{
20262static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20263test_array [0] = 0
20264
20265 ;
20266 return 0;
20267}
20268_ACEOF
20269rm -f conftest.$ac_objext
20270if { (ac_try="$ac_compile"
20271case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274esac
20275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20277 ac_status=$?
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_lo=0 ac_mid=0
20287 while :; do
20288 cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
20294$ac_includes_default
20295 typedef long long int ac__type_sizeof_;
20296int
20297main ()
20298{
20299static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20300test_array [0] = 0
20301
20302 ;
20303 return 0;
20304}
20305_ACEOF
20306rm -f conftest.$ac_objext
20307if { (ac_try="$ac_compile"
20308case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311esac
20312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20314 ac_status=$?
20315 grep -v '^ *+' conftest.er1 >conftest.err
20316 rm -f conftest.er1
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } && {
20320 test -z "$ac_c_werror_flag" ||
20321 test ! -s conftest.err
20322 } && test -s conftest.$ac_objext; then
20323 ac_hi=$ac_mid; break
20324else
20325 echo "$as_me: failed program was:" >&5
20326sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ac_lo=`expr $ac_mid + 1`
20329 if test $ac_lo -le $ac_mid; then
20330 ac_lo= ac_hi=
20331 break
20332 fi
20333 ac_mid=`expr 2 '*' $ac_mid + 1`
20334fi
20335
20336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337 done
20338else
20339 echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 cat >conftest.$ac_ext <<_ACEOF
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
20348$ac_includes_default
20349 typedef long long int ac__type_sizeof_;
20350int
20351main ()
20352{
20353static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20354test_array [0] = 0
20355
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext
20361if { (ac_try="$ac_compile"
20362case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20365esac
20366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367 (eval "$ac_compile") 2>conftest.er1
20368 ac_status=$?
20369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } && {
20374 test -z "$ac_c_werror_flag" ||
20375 test ! -s conftest.err
20376 } && test -s conftest.$ac_objext; then
20377 ac_hi=-1 ac_mid=-1
20378 while :; do
20379 cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
20385$ac_includes_default
20386 typedef long long int ac__type_sizeof_;
20387int
20388main ()
20389{
20390static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20391test_array [0] = 0
20392
20393 ;
20394 return 0;
20395}
20396_ACEOF
20397rm -f conftest.$ac_objext
20398if { (ac_try="$ac_compile"
20399case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402esac
20403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_compile") 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && {
20411 test -z "$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 } && test -s conftest.$ac_objext; then
20414 ac_lo=$ac_mid; break
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_hi=`expr '(' $ac_mid ')' - 1`
20420 if test $ac_mid -le $ac_hi; then
20421 ac_lo= ac_hi=
20422 break
20423 fi
20424 ac_mid=`expr 2 '*' $ac_mid`
20425fi
20426
20427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428 done
20429else
20430 echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ac_lo= ac_hi=
20434fi
20435
20436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20437fi
20438
20439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440# Binary search between lo and hi bounds.
20441while test "x$ac_lo" != "x$ac_hi"; do
20442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20443 cat >conftest.$ac_ext <<_ACEOF
20444/* confdefs.h. */
20445_ACEOF
20446cat confdefs.h >>conftest.$ac_ext
20447cat >>conftest.$ac_ext <<_ACEOF
20448/* end confdefs.h. */
20449$ac_includes_default
20450 typedef long long int ac__type_sizeof_;
20451int
20452main ()
20453{
20454static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20455test_array [0] = 0
20456
20457 ;
20458 return 0;
20459}
20460_ACEOF
20461rm -f conftest.$ac_objext
20462if { (ac_try="$ac_compile"
20463case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466esac
20467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20478 ac_hi=$ac_mid
20479else
20480 echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_lo=`expr '(' $ac_mid ')' + 1`
20484fi
20485
20486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487done
20488case $ac_lo in
20489?*) ac_cv_sizeof_long_long_int=$ac_lo;;
20490'') if test "$ac_cv_type_long_long_int" = yes; then
20491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20492See \`config.log' for more details." >&5
20493echo "$as_me: error: cannot compute sizeof (long long int)
20494See \`config.log' for more details." >&2;}
20495 { (exit 77); exit 77; }; }
20496 else
20497 ac_cv_sizeof_long_long_int=0
20498 fi ;;
20499esac
20500else
20501 cat >conftest.$ac_ext <<_ACEOF
20502/* confdefs.h. */
20503_ACEOF
20504cat confdefs.h >>conftest.$ac_ext
20505cat >>conftest.$ac_ext <<_ACEOF
20506/* end confdefs.h. */
20507$ac_includes_default
20508 typedef long long int ac__type_sizeof_;
20509static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20510static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20511#include <stdio.h>
20512#include <stdlib.h>
20513int
20514main ()
20515{
20516
20517 FILE *f = fopen ("conftest.val", "w");
20518 if (! f)
20519 return 1;
20520 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20521 {
20522 long int i = longval ();
20523 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20524 return 1;
20525 fprintf (f, "%ld\n", i);
20526 }
20527 else
20528 {
20529 unsigned long int i = ulongval ();
20530 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20531 return 1;
20532 fprintf (f, "%lu\n", i);
20533 }
20534 return ferror (f) || fclose (f) != 0;
20535
20536 ;
20537 return 0;
20538}
20539_ACEOF
20540rm -f conftest$ac_exeext
20541if { (ac_try="$ac_link"
20542case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20545esac
20546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_link") 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20551 { (case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554esac
20555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_try") 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_sizeof_long_long_int=`cat conftest.val`
20561else
20562 echo "$as_me: program exited with status $ac_status" >&5
20563echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566( exit $ac_status )
20567if test "$ac_cv_type_long_long_int" = yes; then
20568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20569See \`config.log' for more details." >&5
20570echo "$as_me: error: cannot compute sizeof (long long int)
20571See \`config.log' for more details." >&2;}
20572 { (exit 77); exit 77; }; }
20573 else
20574 ac_cv_sizeof_long_long_int=0
20575 fi
20576fi
20577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20578fi
20579rm -f conftest.val
20580fi
20581{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
20582echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
20583
20584
20585
20586cat >>confdefs.h <<_ACEOF
20587#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
20588_ACEOF
20589
20590
20591
20592# Sanity check long long for some platforms (AIX)
20593if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
20594 ac_cv_sizeof_long_long_int=0
20595fi
20596
20597# compute LLONG_MIN and LLONG_MAX if we don't know them.
20598if test -z "$have_llong_max"; then
20599 { echo "$as_me:$LINENO: checking for max value of long long" >&5
20600echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
20601 if test "$cross_compiling" = yes; then
20602
20603 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20604echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20605
20606
20607else
20608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614
20615#include <stdio.h>
20616/* Why is this so damn hard? */
20617#ifdef __GNUC__
20618# undef __GNUC__
20619#endif
20620#define __USE_ISOC99
20621#include <limits.h>
20622#define DATA "conftest.llminmax"
20623#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
20624
20625/*
20626 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
20627 * we do this the hard way.
20628 */
20629static int
20630fprint_ll(FILE *f, long long n)
20631{
20632 unsigned int i;
20633 int l[sizeof(long long) * 8];
20634
20635 if (n < 0)
20636 if (fprintf(f, "-") < 0)
20637 return -1;
20638 for (i = 0; n != 0; i++) {
20639 l[i] = my_abs(n % 10);
20640 n /= 10;
20641 }
20642 do {
20643 if (fprintf(f, "%d", l[--i]) < 0)
20644 return -1;
20645 } while (i != 0);
20646 if (fprintf(f, " ") < 0)
20647 return -1;
20648 return 0;
20649}
20650
20651int main(void) {
20652 FILE *f;
20653 long long i, llmin, llmax = 0;
20654
20655 if((f = fopen(DATA,"w")) == NULL)
20656 exit(1);
20657
20658#if defined(LLONG_MIN) && defined(LLONG_MAX)
20659 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
20660 llmin = LLONG_MIN;
20661 llmax = LLONG_MAX;
20662#else
20663 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
20664 /* This will work on one's complement and two's complement */
20665 for (i = 1; i > llmax; i <<= 1, i++)
20666 llmax = i;
20667 llmin = llmax + 1LL; /* wrap */
20668#endif
20669
20670 /* Sanity check */
20671 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
20672 || llmax - 1 > llmax || llmin == llmax || llmin == 0
20673 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
20674 fprintf(f, "unknown unknown\n");
20675 exit(2);
20676 }
20677
20678 if (fprint_ll(f, llmin) < 0)
20679 exit(3);
20680 if (fprint_ll(f, llmax) < 0)
20681 exit(4);
20682 if (fclose(f) < 0)
20683 exit(5);
20684 exit(0);
20685}
20686
20687_ACEOF
20688rm -f conftest$ac_exeext
20689if { (ac_try="$ac_link"
20690case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693esac
20694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_link") 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702esac
20703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708
20709 llong_min=`$AWK '{print $1}' conftest.llminmax`
20710 llong_max=`$AWK '{print $2}' conftest.llminmax`
20711
20712 { echo "$as_me:$LINENO: result: $llong_max" >&5
20713echo "${ECHO_T}$llong_max" >&6; }
20714
20715cat >>confdefs.h <<_ACEOF
20716#define LLONG_MAX ${llong_max}LL
20717_ACEOF
20718
20719 { echo "$as_me:$LINENO: checking for min value of long long" >&5
20720echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
20721 { echo "$as_me:$LINENO: result: $llong_min" >&5
20722echo "${ECHO_T}$llong_min" >&6; }
20723
20724cat >>confdefs.h <<_ACEOF
20725#define LLONG_MIN ${llong_min}LL
20726_ACEOF
20727
20728
20729else
20730 echo "$as_me: program exited with status $ac_status" >&5
20731echo "$as_me: failed program was:" >&5
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
20734( exit $ac_status )
20735
20736 { echo "$as_me:$LINENO: result: not found" >&5
20737echo "${ECHO_T}not found" >&6; }
20738
20739fi
20740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20741fi
20742
20743
20744fi
20745
20746
20747# More checks for data types
20748{ echo "$as_me:$LINENO: checking for u_int type" >&5
20749echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
20750if test "${ac_cv_have_u_int+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20752else
20753
20754 cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
20760 #include <sys/types.h>
20761int
20762main ()
20763{
20764 u_int a; a = 1;
20765 ;
20766 return 0;
20767}
20768_ACEOF
20769rm -f conftest.$ac_objext
20770if { (ac_try="$ac_compile"
20771case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774esac
20775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_compile") 2>conftest.er1
20777 ac_status=$?
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest.$ac_objext; then
20786 ac_cv_have_u_int="yes"
20787else
20788 echo "$as_me: failed program was:" >&5
20789sed 's/^/| /' conftest.$ac_ext >&5
20790
20791 ac_cv_have_u_int="no"
20792
20793fi
20794
20795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796
20797fi
20798{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
20799echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
20800if test "x$ac_cv_have_u_int" = "xyes" ; then
20801
20802cat >>confdefs.h <<\_ACEOF
20803#define HAVE_U_INT 1
20804_ACEOF
20805
20806 have_u_int=1
20807fi
20808
20809{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
20810echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
20811if test "${ac_cv_have_intxx_t+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813else
20814
20815 cat >conftest.$ac_ext <<_ACEOF
20816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
20821 #include <sys/types.h>
20822int
20823main ()
20824{
20825 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20826 ;
20827 return 0;
20828}
20829_ACEOF
20830rm -f conftest.$ac_objext
20831if { (ac_try="$ac_compile"
20832case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20835esac
20836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_compile") 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } && {
20844 test -z "$ac_c_werror_flag" ||
20845 test ! -s conftest.err
20846 } && test -s conftest.$ac_objext; then
20847 ac_cv_have_intxx_t="yes"
20848else
20849 echo "$as_me: failed program was:" >&5
20850sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 ac_cv_have_intxx_t="no"
20853
20854fi
20855
20856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857
20858fi
20859{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
20860echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
20861if test "x$ac_cv_have_intxx_t" = "xyes" ; then
20862
20863cat >>confdefs.h <<\_ACEOF
20864#define HAVE_INTXX_T 1
20865_ACEOF
20866
20867 have_intxx_t=1
20868fi
20869
20870if (test -z "$have_intxx_t" && \
20871 test "x$ac_cv_header_stdint_h" = "xyes")
20872then
20873 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
20874echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
20875 cat >conftest.$ac_ext <<_ACEOF
20876/* confdefs.h. */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h. */
20881 #include <stdint.h>
20882int
20883main ()
20884{
20885 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (ac_try="$ac_compile"
20892case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895esac
20896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_compile") 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && {
20904 test -z "$ac_c_werror_flag" ||
20905 test ! -s conftest.err
20906 } && test -s conftest.$ac_objext; then
20907
20908 cat >>confdefs.h <<\_ACEOF
20909#define HAVE_INTXX_T 1
20910_ACEOF
20911
20912 { echo "$as_me:$LINENO: result: yes" >&5
20913echo "${ECHO_T}yes" >&6; }
20914
20915else
20916 echo "$as_me: failed program was:" >&5
20917sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 { echo "$as_me:$LINENO: result: no" >&5
20920echo "${ECHO_T}no" >&6; }
20921
20922fi
20923
20924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925fi
20926
20927{ echo "$as_me:$LINENO: checking for int64_t type" >&5
20928echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
20929if test "${ac_cv_have_int64_t+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20931else
20932
20933 cat >conftest.$ac_ext <<_ACEOF
20934/* confdefs.h. */
20935_ACEOF
20936cat confdefs.h >>conftest.$ac_ext
20937cat >>conftest.$ac_ext <<_ACEOF
20938/* end confdefs.h. */
20939
20940#include <sys/types.h>
20941#ifdef HAVE_STDINT_H
20942# include <stdint.h>
20943#endif
20944#include <sys/socket.h>
20945#ifdef HAVE_SYS_BITYPES_H
20946# include <sys/bitypes.h>
20947#endif
20948
20949int
20950main ()
20951{
20952 int64_t a; a = 1;
20953 ;
20954 return 0;
20955}
20956_ACEOF
20957rm -f conftest.$ac_objext
20958if { (ac_try="$ac_compile"
20959case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20974 ac_cv_have_int64_t="yes"
20975else
20976 echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
20979 ac_cv_have_int64_t="no"
20980
20981fi
20982
20983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984
20985fi
20986{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
20987echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
20988if test "x$ac_cv_have_int64_t" = "xyes" ; then
20989
20990cat >>confdefs.h <<\_ACEOF
20991#define HAVE_INT64_T 1
20992_ACEOF
20993
20994fi
20995
20996{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
20997echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
20998if test "${ac_cv_have_u_intxx_t+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21000else
21001
21002 cat >conftest.$ac_ext <<_ACEOF
21003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008 #include <sys/types.h>
21009int
21010main ()
21011{
21012 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21013 ;
21014 return 0;
21015}
21016_ACEOF
21017rm -f conftest.$ac_objext
21018if { (ac_try="$ac_compile"
21019case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21022esac
21023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_compile") 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest.$ac_objext; then
21034 ac_cv_have_u_intxx_t="yes"
21035else
21036 echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 ac_cv_have_u_intxx_t="no"
21040
21041fi
21042
21043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044
21045fi
21046{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
21047echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
21048if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
21049
21050cat >>confdefs.h <<\_ACEOF
21051#define HAVE_U_INTXX_T 1
21052_ACEOF
21053
21054 have_u_intxx_t=1
21055fi
21056
21057if test -z "$have_u_intxx_t" ; then
21058 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
21059echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
21060 cat >conftest.$ac_ext <<_ACEOF
21061/* confdefs.h. */
21062_ACEOF
21063cat confdefs.h >>conftest.$ac_ext
21064cat >>conftest.$ac_ext <<_ACEOF
21065/* end confdefs.h. */
21066 #include <sys/socket.h>
21067int
21068main ()
21069{
21070 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21071 ;
21072 return 0;
21073}
21074_ACEOF
21075rm -f conftest.$ac_objext
21076if { (ac_try="$ac_compile"
21077case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080esac
21081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092
21093 cat >>confdefs.h <<\_ACEOF
21094#define HAVE_U_INTXX_T 1
21095_ACEOF
21096
21097 { echo "$as_me:$LINENO: result: yes" >&5
21098echo "${ECHO_T}yes" >&6; }
21099
21100else
21101 echo "$as_me: failed program was:" >&5
21102sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 { echo "$as_me:$LINENO: result: no" >&5
21105echo "${ECHO_T}no" >&6; }
21106
21107fi
21108
21109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110fi
21111
21112{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
21113echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
21114if test "${ac_cv_have_u_int64_t+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21116else
21117
21118 cat >conftest.$ac_ext <<_ACEOF
21119/* confdefs.h. */
21120_ACEOF
21121cat confdefs.h >>conftest.$ac_ext
21122cat >>conftest.$ac_ext <<_ACEOF
21123/* end confdefs.h. */
21124 #include <sys/types.h>
21125int
21126main ()
21127{
21128 u_int64_t a; a = 1;
21129 ;
21130 return 0;
21131}
21132_ACEOF
21133rm -f conftest.$ac_objext
21134if { (ac_try="$ac_compile"
21135case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138esac
21139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_compile") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest.$ac_objext; then
21150 ac_cv_have_u_int64_t="yes"
21151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_cv_have_u_int64_t="no"
21156
21157fi
21158
21159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160
21161fi
21162{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
21163echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
21164if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
21165
21166cat >>confdefs.h <<\_ACEOF
21167#define HAVE_U_INT64_T 1
21168_ACEOF
21169
21170 have_u_int64_t=1
21171fi
21172
21173if test -z "$have_u_int64_t" ; then
21174 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
21175echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
21176 cat >conftest.$ac_ext <<_ACEOF
21177/* confdefs.h. */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h. */
21182 #include <sys/bitypes.h>
21183int
21184main ()
21185{
21186 u_int64_t a; a = 1
21187 ;
21188 return 0;
21189}
21190_ACEOF
21191rm -f conftest.$ac_objext
21192if { (ac_try="$ac_compile"
21193case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196esac
21197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21208
21209 cat >>confdefs.h <<\_ACEOF
21210#define HAVE_U_INT64_T 1
21211_ACEOF
21212
21213 { echo "$as_me:$LINENO: result: yes" >&5
21214echo "${ECHO_T}yes" >&6; }
21215
21216else
21217 echo "$as_me: failed program was:" >&5
21218sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 { echo "$as_me:$LINENO: result: no" >&5
21221echo "${ECHO_T}no" >&6; }
21222
21223fi
21224
21225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226fi
21227
21228if test -z "$have_u_intxx_t" ; then
21229 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
21230echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
21231if test "${ac_cv_have_uintxx_t+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233else
21234
21235 cat >conftest.$ac_ext <<_ACEOF
21236/* confdefs.h. */
21237_ACEOF
21238cat confdefs.h >>conftest.$ac_ext
21239cat >>conftest.$ac_ext <<_ACEOF
21240/* end confdefs.h. */
21241
21242#include <sys/types.h>
21243
21244int
21245main ()
21246{
21247 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21248 ;
21249 return 0;
21250}
21251_ACEOF
21252rm -f conftest.$ac_objext
21253if { (ac_try="$ac_compile"
21254case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21257esac
21258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259 (eval "$ac_compile") 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && {
21266 test -z "$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 } && test -s conftest.$ac_objext; then
21269 ac_cv_have_uintxx_t="yes"
21270else
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 ac_cv_have_uintxx_t="no"
21275
21276fi
21277
21278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279
21280fi
21281{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
21282echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
21283 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
21284
21285cat >>confdefs.h <<\_ACEOF
21286#define HAVE_UINTXX_T 1
21287_ACEOF
21288
21289 fi
21290fi
21291
21292if test -z "$have_uintxx_t" ; then
21293 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
21294echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h. */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h. */
21301 #include <stdint.h>
21302int
21303main ()
21304{
21305 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21306 ;
21307 return 0;
21308}
21309_ACEOF
21310rm -f conftest.$ac_objext
21311if { (ac_try="$ac_compile"
21312case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315esac
21316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_compile") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest.$ac_objext; then
21327
21328 cat >>confdefs.h <<\_ACEOF
21329#define HAVE_UINTXX_T 1
21330_ACEOF
21331
21332 { echo "$as_me:$LINENO: result: yes" >&5
21333echo "${ECHO_T}yes" >&6; }
21334
21335else
21336 echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 { echo "$as_me:$LINENO: result: no" >&5
21340echo "${ECHO_T}no" >&6; }
21341
21342fi
21343
21344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345fi
21346
21347if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
21348 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
21349then
21350 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
21351echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21353/* confdefs.h. */
21354_ACEOF
21355cat confdefs.h >>conftest.$ac_ext
21356cat >>conftest.$ac_ext <<_ACEOF
21357/* end confdefs.h. */
21358
21359#include <sys/bitypes.h>
21360
21361int
21362main ()
21363{
21364
21365 int8_t a; int16_t b; int32_t c;
21366 u_int8_t e; u_int16_t f; u_int32_t g;
21367 a = b = c = e = f = g = 1;
21368
21369 ;
21370 return 0;
21371}
21372_ACEOF
21373rm -f conftest.$ac_objext
21374if { (ac_try="$ac_compile"
21375case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21378esac
21379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest.$ac_objext; then
21390
21391 cat >>confdefs.h <<\_ACEOF
21392#define HAVE_U_INTXX_T 1
21393_ACEOF
21394
21395 cat >>confdefs.h <<\_ACEOF
21396#define HAVE_INTXX_T 1
21397_ACEOF
21398
21399 { echo "$as_me:$LINENO: result: yes" >&5
21400echo "${ECHO_T}yes" >&6; }
21401
21402else
21403 echo "$as_me: failed program was:" >&5
21404sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 { echo "$as_me:$LINENO: result: no" >&5
21407echo "${ECHO_T}no" >&6; }
21408
21409fi
21410
21411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412fi
21413
21414
21415{ echo "$as_me:$LINENO: checking for u_char" >&5
21416echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
21417if test "${ac_cv_have_u_char+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21419else
21420
21421 cat >conftest.$ac_ext <<_ACEOF
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
21427
21428#include <sys/types.h>
21429
21430int
21431main ()
21432{
21433 u_char foo; foo = 125;
21434 ;
21435 return 0;
21436}
21437_ACEOF
21438rm -f conftest.$ac_objext
21439if { (ac_try="$ac_compile"
21440case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21443esac
21444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest.$ac_objext; then
21455 ac_cv_have_u_char="yes"
21456else
21457 echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 ac_cv_have_u_char="no"
21461
21462fi
21463
21464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465
21466fi
21467{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
21468echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
21469if test "x$ac_cv_have_u_char" = "xyes" ; then
21470
21471cat >>confdefs.h <<\_ACEOF
21472#define HAVE_U_CHAR 1
21473_ACEOF
21474
21475fi
21476
21477
21478 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21479echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21480if test "${ac_cv_type_socklen_t+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482else
21483 cat >conftest.$ac_ext <<_ACEOF
21484/* confdefs.h. */
21485_ACEOF
21486cat confdefs.h >>conftest.$ac_ext
21487cat >>conftest.$ac_ext <<_ACEOF
21488/* end confdefs.h. */
21489#include <sys/types.h>
21490#include <sys/socket.h>
21491
21492typedef socklen_t ac__type_new_;
21493int
21494main ()
21495{
21496if ((ac__type_new_ *) 0)
21497 return 0;
21498if (sizeof (ac__type_new_))
21499 return 0;
21500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext
21505if { (ac_try="$ac_compile"
21506case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21509esac
21510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest.$ac_objext; then
21521 ac_cv_type_socklen_t=yes
21522else
21523 echo "$as_me: failed program was:" >&5
21524sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 ac_cv_type_socklen_t=no
21527fi
21528
21529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530fi
21531{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21532echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
21533if test $ac_cv_type_socklen_t = yes; then
21534 :
21535else
21536
21537 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
21538echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
21539 if test "${curl_cv_socklen_t_equiv+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542
21543 # Systems have either "struct sockaddr *" or
21544 # "void *" as the second argument to getpeername
21545 curl_cv_socklen_t_equiv=
21546 for arg2 in "struct sockaddr" void; do
21547 for t in int size_t unsigned long "unsigned long"; do
21548 cat >conftest.$ac_ext <<_ACEOF
21549/* confdefs.h. */
21550_ACEOF
21551cat confdefs.h >>conftest.$ac_ext
21552cat >>conftest.$ac_ext <<_ACEOF
21553/* end confdefs.h. */
21554
21555 #include <sys/types.h>
21556 #include <sys/socket.h>
21557
21558 int getpeername (int, $arg2 *, $t *);
21559
21560int
21561main ()
21562{
21563
21564 $t len;
21565 getpeername(0,0,&len);
21566
21567 ;
21568 return 0;
21569}
21570_ACEOF
21571rm -f conftest.$ac_objext
21572if { (ac_try="$ac_compile"
21573case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21576esac
21577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_compile") 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && {
21585 test -z "$ac_c_werror_flag" ||
21586 test ! -s conftest.err
21587 } && test -s conftest.$ac_objext; then
21588
21589 curl_cv_socklen_t_equiv="$t"
21590 break
21591
21592else
21593 echo "$as_me: failed program was:" >&5
21594sed 's/^/| /' conftest.$ac_ext >&5
21595
21596
21597fi
21598
21599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 done
21601 done
21602
21603 if test "x$curl_cv_socklen_t_equiv" = x; then
21604 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
21605echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
21606 { (exit 1); exit 1; }; }
21607 fi
21608
21609fi
21610
21611 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
21612echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
21613
21614cat >>confdefs.h <<_ACEOF
21615#define socklen_t $curl_cv_socklen_t_equiv
21616_ACEOF
21617
21618fi
21619
21620
21621
21622{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21623echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
21624if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626else
21627 cat >conftest.$ac_ext <<_ACEOF
21628/* confdefs.h. */
21629_ACEOF
21630cat confdefs.h >>conftest.$ac_ext
21631cat >>conftest.$ac_ext <<_ACEOF
21632/* end confdefs.h. */
21633#include <signal.h>
21634
21635typedef sig_atomic_t ac__type_new_;
21636int
21637main ()
21638{
21639if ((ac__type_new_ *) 0)
21640 return 0;
21641if (sizeof (ac__type_new_))
21642 return 0;
21643 ;
21644 return 0;
21645}
21646_ACEOF
21647rm -f conftest.$ac_objext
21648if { (ac_try="$ac_compile"
21649case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21652esac
21653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_compile") 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } && {
21661 test -z "$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 } && test -s conftest.$ac_objext; then
21664 ac_cv_type_sig_atomic_t=yes
21665else
21666 echo "$as_me: failed program was:" >&5
21667sed 's/^/| /' conftest.$ac_ext >&5
21668
21669 ac_cv_type_sig_atomic_t=no
21670fi
21671
21672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21673fi
21674{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21675echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
21676if test $ac_cv_type_sig_atomic_t = yes; then
21677
21678cat >>confdefs.h <<_ACEOF
21679#define HAVE_SIG_ATOMIC_T 1
21680_ACEOF
21681
21682
21683fi
21684
21685{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
21686echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
21687if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
21690 cat >conftest.$ac_ext <<_ACEOF
21691/* confdefs.h. */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
21695/* end confdefs.h. */
21696
21697#include <sys/types.h>
21698#ifdef HAVE_SYS_BITYPES_H
21699#include <sys/bitypes.h>
21700#endif
21701#ifdef HAVE_SYS_STATFS_H
21702#include <sys/statfs.h>
21703#endif
21704#ifdef HAVE_SYS_STATVFS_H
21705#include <sys/statvfs.h>
21706#endif
21707
21708
21709typedef fsblkcnt_t ac__type_new_;
21710int
21711main ()
21712{
21713if ((ac__type_new_ *) 0)
21714 return 0;
21715if (sizeof (ac__type_new_))
21716 return 0;
21717 ;
21718 return 0;
21719}
21720_ACEOF
21721rm -f conftest.$ac_objext
21722if { (ac_try="$ac_compile"
21723case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21726esac
21727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_compile") 2>conftest.er1
21729 ac_status=$?
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.$ac_objext; then
21738 ac_cv_type_fsblkcnt_t=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_cv_type_fsblkcnt_t=no
21744fi
21745
21746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747fi
21748{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
21749echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
21750if test $ac_cv_type_fsblkcnt_t = yes; then
21751
21752cat >>confdefs.h <<_ACEOF
21753#define HAVE_FSBLKCNT_T 1
21754_ACEOF
21755
21756
21757fi
21758{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
21759echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
21760if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762else
21763 cat >conftest.$ac_ext <<_ACEOF
21764/* confdefs.h. */
21765_ACEOF
21766cat confdefs.h >>conftest.$ac_ext
21767cat >>conftest.$ac_ext <<_ACEOF
21768/* end confdefs.h. */
21769
21770#include <sys/types.h>
21771#ifdef HAVE_SYS_BITYPES_H
21772#include <sys/bitypes.h>
21773#endif
21774#ifdef HAVE_SYS_STATFS_H
21775#include <sys/statfs.h>
21776#endif
21777#ifdef HAVE_SYS_STATVFS_H
21778#include <sys/statvfs.h>
21779#endif
21780
21781
21782typedef fsfilcnt_t ac__type_new_;
21783int
21784main ()
21785{
21786if ((ac__type_new_ *) 0)
21787 return 0;
21788if (sizeof (ac__type_new_))
21789 return 0;
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest.$ac_objext
21795if { (ac_try="$ac_compile"
21796case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799esac
21800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && {
21808 test -z "$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 } && test -s conftest.$ac_objext; then
21811 ac_cv_type_fsfilcnt_t=yes
21812else
21813 echo "$as_me: failed program was:" >&5
21814sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 ac_cv_type_fsfilcnt_t=no
21817fi
21818
21819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820fi
21821{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
21822echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
21823if test $ac_cv_type_fsfilcnt_t = yes; then
21824
21825cat >>confdefs.h <<_ACEOF
21826#define HAVE_FSFILCNT_T 1
21827_ACEOF
21828
21829
21830fi
21831
21832
21833{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
21834echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
21835if test "${ac_cv_type_in_addr_t+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21837else
21838 cat >conftest.$ac_ext <<_ACEOF
21839/* confdefs.h. */
21840_ACEOF
21841cat confdefs.h >>conftest.$ac_ext
21842cat >>conftest.$ac_ext <<_ACEOF
21843/* end confdefs.h. */
21844#include <sys/types.h>
21845#include <netinet/in.h>
21846
21847typedef in_addr_t ac__type_new_;
21848int
21849main ()
21850{
21851if ((ac__type_new_ *) 0)
21852 return 0;
21853if (sizeof (ac__type_new_))
21854 return 0;
21855 ;
21856 return 0;
21857}
21858_ACEOF
21859rm -f conftest.$ac_objext
21860if { (ac_try="$ac_compile"
21861case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864esac
21865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_cv_type_in_addr_t=yes
21877else
21878 echo "$as_me: failed program was:" >&5
21879sed 's/^/| /' conftest.$ac_ext >&5
21880
21881 ac_cv_type_in_addr_t=no
21882fi
21883
21884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885fi
21886{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21887echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
21888if test $ac_cv_type_in_addr_t = yes; then
21889
21890cat >>confdefs.h <<_ACEOF
21891#define HAVE_IN_ADDR_T 1
21892_ACEOF
21893
21894
21895fi
21896
21897
21898{ echo "$as_me:$LINENO: checking for size_t" >&5
21899echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21900if test "${ac_cv_have_size_t+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21902else
21903
21904 cat >conftest.$ac_ext <<_ACEOF
21905/* confdefs.h. */
21906_ACEOF
21907cat confdefs.h >>conftest.$ac_ext
21908cat >>conftest.$ac_ext <<_ACEOF
21909/* end confdefs.h. */
21910
21911#include <sys/types.h>
21912
21913int
21914main ()
21915{
21916 size_t foo; foo = 1235;
21917 ;
21918 return 0;
21919}
21920_ACEOF
21921rm -f conftest.$ac_objext
21922if { (ac_try="$ac_compile"
21923case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926esac
21927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest.$ac_objext; then
21938 ac_cv_have_size_t="yes"
21939else
21940 echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ac_cv_have_size_t="no"
21944
21945fi
21946
21947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948
21949fi
21950{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
21951echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
21952if test "x$ac_cv_have_size_t" = "xyes" ; then
21953
21954cat >>confdefs.h <<\_ACEOF
21955#define HAVE_SIZE_T 1
21956_ACEOF
21957
21958fi
21959
21960{ echo "$as_me:$LINENO: checking for ssize_t" >&5
21961echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21962if test "${ac_cv_have_ssize_t+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964else
21965
21966 cat >conftest.$ac_ext <<_ACEOF
21967/* confdefs.h. */
21968_ACEOF
21969cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF
21971/* end confdefs.h. */
21972
21973#include <sys/types.h>
21974
21975int
21976main ()
21977{
21978 ssize_t foo; foo = 1235;
21979 ;
21980 return 0;
21981}
21982_ACEOF
21983rm -f conftest.$ac_objext
21984if { (ac_try="$ac_compile"
21985case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988esac
21989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_compile") 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest.$ac_objext; then
22000 ac_cv_have_ssize_t="yes"
22001else
22002 echo "$as_me: failed program was:" >&5
22003sed 's/^/| /' conftest.$ac_ext >&5
22004
22005 ac_cv_have_ssize_t="no"
22006
22007fi
22008
22009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010
22011fi
22012{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
22013echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
22014if test "x$ac_cv_have_ssize_t" = "xyes" ; then
22015
22016cat >>confdefs.h <<\_ACEOF
22017#define HAVE_SSIZE_T 1
22018_ACEOF
22019
22020fi
22021
22022{ echo "$as_me:$LINENO: checking for clock_t" >&5
22023echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
22024if test "${ac_cv_have_clock_t+set}" = set; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22026else
22027
22028 cat >conftest.$ac_ext <<_ACEOF
22029/* confdefs.h. */
22030_ACEOF
22031cat confdefs.h >>conftest.$ac_ext
22032cat >>conftest.$ac_ext <<_ACEOF
22033/* end confdefs.h. */
22034
22035#include <time.h>
22036
22037int
22038main ()
22039{
22040 clock_t foo; foo = 1235;
22041 ;
22042 return 0;
22043}
22044_ACEOF
22045rm -f conftest.$ac_objext
22046if { (ac_try="$ac_compile"
22047case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050esac
22051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_compile") 2>conftest.er1
22053 ac_status=$?
22054 grep -v '^ *+' conftest.er1 >conftest.err
22055 rm -f conftest.er1
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest.$ac_objext; then
22062 ac_cv_have_clock_t="yes"
22063else
22064 echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067 ac_cv_have_clock_t="no"
22068
22069fi
22070
22071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22072
22073fi
22074{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
22075echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
22076if test "x$ac_cv_have_clock_t" = "xyes" ; then
22077
22078cat >>confdefs.h <<\_ACEOF
22079#define HAVE_CLOCK_T 1
22080_ACEOF
22081
22082fi
22083
22084{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
22085echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22086if test "${ac_cv_have_sa_family_t+set}" = set; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088else
22089
22090 cat >conftest.$ac_ext <<_ACEOF
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
22096
22097#include <sys/types.h>
22098#include <sys/socket.h>
22099
22100int
22101main ()
22102{
22103 sa_family_t foo; foo = 1235;
22104 ;
22105 return 0;
22106}
22107_ACEOF
22108rm -f conftest.$ac_objext
22109if { (ac_try="$ac_compile"
22110case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113esac
22114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_compile") 2>conftest.er1
22116 ac_status=$?
22117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } && {
22122 test -z "$ac_c_werror_flag" ||
22123 test ! -s conftest.err
22124 } && test -s conftest.$ac_objext; then
22125 ac_cv_have_sa_family_t="yes"
22126else
22127 echo "$as_me: failed program was:" >&5
22128sed 's/^/| /' conftest.$ac_ext >&5
22129
22130 cat >conftest.$ac_ext <<_ACEOF
22131/* confdefs.h. */
22132_ACEOF
22133cat confdefs.h >>conftest.$ac_ext
22134cat >>conftest.$ac_ext <<_ACEOF
22135/* end confdefs.h. */
22136
22137#include <sys/types.h>
22138#include <sys/socket.h>
22139#include <netinet/in.h>
22140
22141int
22142main ()
22143{
22144 sa_family_t foo; foo = 1235;
22145 ;
22146 return 0;
22147}
22148_ACEOF
22149rm -f conftest.$ac_objext
22150if { (ac_try="$ac_compile"
22151case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22154esac
22155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_compile") 2>conftest.er1
22157 ac_status=$?
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && {
22163 test -z "$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 } && test -s conftest.$ac_objext; then
22166 ac_cv_have_sa_family_t="yes"
22167else
22168 echo "$as_me: failed program was:" >&5
22169sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ac_cv_have_sa_family_t="no"
22172
22173fi
22174
22175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176
22177fi
22178
22179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180
22181fi
22182{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
22183echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
22184if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
22185
22186cat >>confdefs.h <<\_ACEOF
22187#define HAVE_SA_FAMILY_T 1
22188_ACEOF
22189
22190fi
22191
22192{ echo "$as_me:$LINENO: checking for pid_t" >&5
22193echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22194if test "${ac_cv_have_pid_t+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22196else
22197
22198 cat >conftest.$ac_ext <<_ACEOF
22199/* confdefs.h. */
22200_ACEOF
22201cat confdefs.h >>conftest.$ac_ext
22202cat >>conftest.$ac_ext <<_ACEOF
22203/* end confdefs.h. */
22204
22205#include <sys/types.h>
22206
22207int
22208main ()
22209{
22210 pid_t foo; foo = 1235;
22211 ;
22212 return 0;
22213}
22214_ACEOF
22215rm -f conftest.$ac_objext
22216if { (ac_try="$ac_compile"
22217case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22220esac
22221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_compile") 2>conftest.er1
22223 ac_status=$?
22224 grep -v '^ *+' conftest.er1 >conftest.err
22225 rm -f conftest.er1
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest.$ac_objext; then
22232 ac_cv_have_pid_t="yes"
22233else
22234 echo "$as_me: failed program was:" >&5
22235sed 's/^/| /' conftest.$ac_ext >&5
22236
22237 ac_cv_have_pid_t="no"
22238
22239fi
22240
22241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242
22243fi
22244{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
22245echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
22246if test "x$ac_cv_have_pid_t" = "xyes" ; then
22247
22248cat >>confdefs.h <<\_ACEOF
22249#define HAVE_PID_T 1
22250_ACEOF
22251
22252fi
22253
22254{ echo "$as_me:$LINENO: checking for mode_t" >&5
22255echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22256if test "${ac_cv_have_mode_t+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258else
22259
22260 cat >conftest.$ac_ext <<_ACEOF
22261/* confdefs.h. */
22262_ACEOF
22263cat confdefs.h >>conftest.$ac_ext
22264cat >>conftest.$ac_ext <<_ACEOF
22265/* end confdefs.h. */
22266
22267#include <sys/types.h>
22268
22269int
22270main ()
22271{
22272 mode_t foo; foo = 1235;
22273 ;
22274 return 0;
22275}
22276_ACEOF
22277rm -f conftest.$ac_objext
22278if { (ac_try="$ac_compile"
22279case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22282esac
22283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22285 ac_status=$?
22286 grep -v '^ *+' conftest.er1 >conftest.err
22287 rm -f conftest.er1
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest.$ac_objext; then
22294 ac_cv_have_mode_t="yes"
22295else
22296 echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299 ac_cv_have_mode_t="no"
22300
22301fi
22302
22303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304
22305fi
22306{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
22307echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
22308if test "x$ac_cv_have_mode_t" = "xyes" ; then
22309
22310cat >>confdefs.h <<\_ACEOF
22311#define HAVE_MODE_T 1
22312_ACEOF
22313
22314fi
22315
22316
22317{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22318echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
22319if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22321else
22322
22323 cat >conftest.$ac_ext <<_ACEOF
22324/* confdefs.h. */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h. */
22329
22330#include <sys/types.h>
22331#include <sys/socket.h>
22332
22333int
22334main ()
22335{
22336 struct sockaddr_storage s;
22337 ;
22338 return 0;
22339}
22340_ACEOF
22341rm -f conftest.$ac_objext
22342if { (ac_try="$ac_compile"
22343case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346esac
22347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_compile") 2>conftest.er1
22349 ac_status=$?
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && {
22355 test -z "$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22357 } && test -s conftest.$ac_objext; then
22358 ac_cv_have_struct_sockaddr_storage="yes"
22359else
22360 echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
22363 ac_cv_have_struct_sockaddr_storage="no"
22364
22365fi
22366
22367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368
22369fi
22370{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
22371echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
22372if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
22373
22374cat >>confdefs.h <<\_ACEOF
22375#define HAVE_STRUCT_SOCKADDR_STORAGE 1
22376_ACEOF
22377
22378fi
22379
22380{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22381echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
22382if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22384else
22385
22386 cat >conftest.$ac_ext <<_ACEOF
22387/* confdefs.h. */
22388_ACEOF
22389cat confdefs.h >>conftest.$ac_ext
22390cat >>conftest.$ac_ext <<_ACEOF
22391/* end confdefs.h. */
22392
22393#include <sys/types.h>
22394#include <netinet/in.h>
22395
22396int
22397main ()
22398{
22399 struct sockaddr_in6 s; s.sin6_family = 0;
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404rm -f conftest.$ac_objext
22405if { (ac_try="$ac_compile"
22406case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409esac
22410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22421 ac_cv_have_struct_sockaddr_in6="yes"
22422else
22423 echo "$as_me: failed program was:" >&5
22424sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_cv_have_struct_sockaddr_in6="no"
22427
22428fi
22429
22430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431
22432fi
22433{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
22434echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
22435if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
22436
22437cat >>confdefs.h <<\_ACEOF
22438#define HAVE_STRUCT_SOCKADDR_IN6 1
22439_ACEOF
22440
22441fi
22442
22443{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22444echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22445if test "${ac_cv_have_struct_in6_addr+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447else
22448
22449 cat >conftest.$ac_ext <<_ACEOF
22450/* confdefs.h. */
22451_ACEOF
22452cat confdefs.h >>conftest.$ac_ext
22453cat >>conftest.$ac_ext <<_ACEOF
22454/* end confdefs.h. */
22455
22456#include <sys/types.h>
22457#include <netinet/in.h>
22458
22459int
22460main ()
22461{
22462 struct in6_addr s; s.s6_addr[0] = 0;
22463 ;
22464 return 0;
22465}
22466_ACEOF
22467rm -f conftest.$ac_objext
22468if { (ac_try="$ac_compile"
22469case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472esac
22473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 ac_cv_have_struct_in6_addr="yes"
22485else
22486 echo "$as_me: failed program was:" >&5
22487sed 's/^/| /' conftest.$ac_ext >&5
22488
22489 ac_cv_have_struct_in6_addr="no"
22490
22491fi
22492
22493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494
22495fi
22496{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
22497echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
22498if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
22499
22500cat >>confdefs.h <<\_ACEOF
22501#define HAVE_STRUCT_IN6_ADDR 1
22502_ACEOF
22503
22504fi
22505
22506{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22507echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
22508if test "${ac_cv_have_struct_addrinfo+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22510else
22511
22512 cat >conftest.$ac_ext <<_ACEOF
22513/* confdefs.h. */
22514_ACEOF
22515cat confdefs.h >>conftest.$ac_ext
22516cat >>conftest.$ac_ext <<_ACEOF
22517/* end confdefs.h. */
22518
22519#include <sys/types.h>
22520#include <sys/socket.h>
22521#include <netdb.h>
22522
22523int
22524main ()
22525{
22526 struct addrinfo s; s.ai_flags = AI_PASSIVE;
22527 ;
22528 return 0;
22529}
22530_ACEOF
22531rm -f conftest.$ac_objext
22532if { (ac_try="$ac_compile"
22533case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22536esac
22537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_compile") 2>conftest.er1
22539 ac_status=$?
22540 grep -v '^ *+' conftest.er1 >conftest.err
22541 rm -f conftest.er1
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } && {
22545 test -z "$ac_c_werror_flag" ||
22546 test ! -s conftest.err
22547 } && test -s conftest.$ac_objext; then
22548 ac_cv_have_struct_addrinfo="yes"
22549else
22550 echo "$as_me: failed program was:" >&5
22551sed 's/^/| /' conftest.$ac_ext >&5
22552
22553 ac_cv_have_struct_addrinfo="no"
22554
22555fi
22556
22557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558
22559fi
22560{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
22561echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
22562if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
22563
22564cat >>confdefs.h <<\_ACEOF
22565#define HAVE_STRUCT_ADDRINFO 1
22566_ACEOF
22567
22568fi
22569
22570{ echo "$as_me:$LINENO: checking for struct timeval" >&5
22571echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
22572if test "${ac_cv_have_struct_timeval+set}" = set; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22574else
22575
22576 cat >conftest.$ac_ext <<_ACEOF
22577/* confdefs.h. */
22578_ACEOF
22579cat confdefs.h >>conftest.$ac_ext
22580cat >>conftest.$ac_ext <<_ACEOF
22581/* end confdefs.h. */
22582 #include <sys/time.h>
22583int
22584main ()
22585{
22586 struct timeval tv; tv.tv_sec = 1;
22587 ;
22588 return 0;
22589}
22590_ACEOF
22591rm -f conftest.$ac_objext
22592if { (ac_try="$ac_compile"
22593case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22596esac
22597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_compile") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
22608 ac_cv_have_struct_timeval="yes"
22609else
22610 echo "$as_me: failed program was:" >&5
22611sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 ac_cv_have_struct_timeval="no"
22614
22615fi
22616
22617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618
22619fi
22620{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
22621echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
22622if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
22623
22624cat >>confdefs.h <<\_ACEOF
22625#define HAVE_STRUCT_TIMEVAL 1
22626_ACEOF
22627
22628 have_struct_timeval=1
22629fi
22630
22631{ echo "$as_me:$LINENO: checking for struct timespec" >&5
22632echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
22633if test "${ac_cv_type_struct_timespec+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635else
22636 cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642$ac_includes_default
22643typedef struct timespec ac__type_new_;
22644int
22645main ()
22646{
22647if ((ac__type_new_ *) 0)
22648 return 0;
22649if (sizeof (ac__type_new_))
22650 return 0;
22651 ;
22652 return 0;
22653}
22654_ACEOF
22655rm -f conftest.$ac_objext
22656if { (ac_try="$ac_compile"
22657case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22660esac
22661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_compile") 2>conftest.er1
22663 ac_status=$?
22664 grep -v '^ *+' conftest.er1 >conftest.err
22665 rm -f conftest.er1
22666 cat conftest.err >&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } && {
22669 test -z "$ac_c_werror_flag" ||
22670 test ! -s conftest.err
22671 } && test -s conftest.$ac_objext; then
22672 ac_cv_type_struct_timespec=yes
22673else
22674 echo "$as_me: failed program was:" >&5
22675sed 's/^/| /' conftest.$ac_ext >&5
22676
22677 ac_cv_type_struct_timespec=no
22678fi
22679
22680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681fi
22682{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
22683echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
22684if test $ac_cv_type_struct_timespec = yes; then
22685
22686cat >>confdefs.h <<_ACEOF
22687#define HAVE_STRUCT_TIMESPEC 1
22688_ACEOF
22689
22690
22691fi
22692
22693
22694# We need int64_t or else certian parts of the compile will fail.
22695if test "x$ac_cv_have_int64_t" = "xno" && \
22696 test "x$ac_cv_sizeof_long_int" != "x8" && \
22697 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
22698 echo "OpenSSH requires int64_t support. Contact your vendor or install"
22699 echo "an alternative compiler (I.E., GCC) before continuing."
22700 echo ""
22701 exit 1;
22702else
22703 if test "$cross_compiling" = yes; then
22704 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
22705echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
22706
22707else
22708 cat >conftest.$ac_ext <<_ACEOF
22709/* confdefs.h. */
22710_ACEOF
22711cat confdefs.h >>conftest.$ac_ext
22712cat >>conftest.$ac_ext <<_ACEOF
22713/* end confdefs.h. */
22714
22715#include <stdio.h>
22716#include <string.h>
22717#ifdef HAVE_SNPRINTF
22718main()
22719{
22720 char buf[50];
22721 char expected_out[50];
22722 int mazsize = 50 ;
22723#if (SIZEOF_LONG_INT == 8)
22724 long int num = 0x7fffffffffffffff;
22725#else
22726 long long num = 0x7fffffffffffffffll;
22727#endif
22728 strcpy(expected_out, "9223372036854775807");
22729 snprintf(buf, mazsize, "%lld", num);
22730 if(strcmp(buf, expected_out) != 0)
22731 exit(1);
22732 exit(0);
22733}
22734#else
22735main() { exit(0); }
22736#endif
22737
22738_ACEOF
22739rm -f conftest$ac_exeext
22740if { (ac_try="$ac_link"
22741case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22744esac
22745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_link") 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22750 { (case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22753esac
22754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_try") 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 true
22760else
22761 echo "$as_me: program exited with status $ac_status" >&5
22762echo "$as_me: failed program was:" >&5
22763sed 's/^/| /' conftest.$ac_ext >&5
22764
22765( exit $ac_status )
22766 cat >>confdefs.h <<\_ACEOF
22767#define BROKEN_SNPRINTF 1
22768_ACEOF
22769
22770fi
22771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22772fi
22773
22774
22775fi
22776
22777
22778# look for field 'ut_host' in header 'utmp.h'
22779 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22780 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22781 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
22782echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
22783 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785else
22786
22787 cat >conftest.$ac_ext <<_ACEOF
22788/* confdefs.h. */
22789_ACEOF
22790cat confdefs.h >>conftest.$ac_ext
22791cat >>conftest.$ac_ext <<_ACEOF
22792/* end confdefs.h. */
22793#include <utmp.h>
22794
22795_ACEOF
22796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22797 $EGREP "ut_host" >/dev/null 2>&1; then
22798 eval "$ossh_varname=yes"
22799else
22800 eval "$ossh_varname=no"
22801fi
22802rm -f conftest*
22803
22804fi
22805
22806 ossh_result=`eval 'echo $'"$ossh_varname"`
22807 if test -n "`echo $ossh_varname`"; then
22808 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22809echo "${ECHO_T}$ossh_result" >&6; }
22810 if test "x$ossh_result" = "xyes"; then
22811
22812cat >>confdefs.h <<\_ACEOF
22813#define HAVE_HOST_IN_UTMP 1
22814_ACEOF
22815
22816 fi
22817 else
22818 { echo "$as_me:$LINENO: result: no" >&5
22819echo "${ECHO_T}no" >&6; }
22820 fi
22821
22822
22823# look for field 'ut_host' in header 'utmpx.h'
22824 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22825 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22826 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
22827echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
22828 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22830else
22831
22832 cat >conftest.$ac_ext <<_ACEOF
22833/* confdefs.h. */
22834_ACEOF
22835cat confdefs.h >>conftest.$ac_ext
22836cat >>conftest.$ac_ext <<_ACEOF
22837/* end confdefs.h. */
22838#include <utmpx.h>
22839
22840_ACEOF
22841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22842 $EGREP "ut_host" >/dev/null 2>&1; then
22843 eval "$ossh_varname=yes"
22844else
22845 eval "$ossh_varname=no"
22846fi
22847rm -f conftest*
22848
22849fi
22850
22851 ossh_result=`eval 'echo $'"$ossh_varname"`
22852 if test -n "`echo $ossh_varname`"; then
22853 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22854echo "${ECHO_T}$ossh_result" >&6; }
22855 if test "x$ossh_result" = "xyes"; then
22856
22857cat >>confdefs.h <<\_ACEOF
22858#define HAVE_HOST_IN_UTMPX 1
22859_ACEOF
22860
22861 fi
22862 else
22863 { echo "$as_me:$LINENO: result: no" >&5
22864echo "${ECHO_T}no" >&6; }
22865 fi
22866
22867
22868# look for field 'syslen' in header 'utmpx.h'
22869 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22870 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
22871 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
22872echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
22873 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22874 echo $ECHO_N "(cached) $ECHO_C" >&6
22875else
22876
22877 cat >conftest.$ac_ext <<_ACEOF
22878/* confdefs.h. */
22879_ACEOF
22880cat confdefs.h >>conftest.$ac_ext
22881cat >>conftest.$ac_ext <<_ACEOF
22882/* end confdefs.h. */
22883#include <utmpx.h>
22884
22885_ACEOF
22886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22887 $EGREP "syslen" >/dev/null 2>&1; then
22888 eval "$ossh_varname=yes"
22889else
22890 eval "$ossh_varname=no"
22891fi
22892rm -f conftest*
22893
22894fi
22895
22896 ossh_result=`eval 'echo $'"$ossh_varname"`
22897 if test -n "`echo $ossh_varname`"; then
22898 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22899echo "${ECHO_T}$ossh_result" >&6; }
22900 if test "x$ossh_result" = "xyes"; then
22901
22902cat >>confdefs.h <<\_ACEOF
22903#define HAVE_SYSLEN_IN_UTMPX 1
22904_ACEOF
22905
22906 fi
22907 else
22908 { echo "$as_me:$LINENO: result: no" >&5
22909echo "${ECHO_T}no" >&6; }
22910 fi
22911
22912
22913# look for field 'ut_pid' in header 'utmp.h'
22914 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22915 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
22916 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
22917echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
22918 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22919 echo $ECHO_N "(cached) $ECHO_C" >&6
22920else
22921
22922 cat >conftest.$ac_ext <<_ACEOF
22923/* confdefs.h. */
22924_ACEOF
22925cat confdefs.h >>conftest.$ac_ext
22926cat >>conftest.$ac_ext <<_ACEOF
22927/* end confdefs.h. */
22928#include <utmp.h>
22929
22930_ACEOF
22931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22932 $EGREP "ut_pid" >/dev/null 2>&1; then
22933 eval "$ossh_varname=yes"
22934else
22935 eval "$ossh_varname=no"
22936fi
22937rm -f conftest*
22938
22939fi
22940
22941 ossh_result=`eval 'echo $'"$ossh_varname"`
22942 if test -n "`echo $ossh_varname`"; then
22943 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22944echo "${ECHO_T}$ossh_result" >&6; }
22945 if test "x$ossh_result" = "xyes"; then
22946
22947cat >>confdefs.h <<\_ACEOF
22948#define HAVE_PID_IN_UTMP 1
22949_ACEOF
22950
22951 fi
22952 else
22953 { echo "$as_me:$LINENO: result: no" >&5
22954echo "${ECHO_T}no" >&6; }
22955 fi
22956
22957
22958# look for field 'ut_type' in header 'utmp.h'
22959 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22960 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22961 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
22962echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
22963 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965else
22966
22967 cat >conftest.$ac_ext <<_ACEOF
22968/* confdefs.h. */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h. */
22973#include <utmp.h>
22974
22975_ACEOF
22976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22977 $EGREP "ut_type" >/dev/null 2>&1; then
22978 eval "$ossh_varname=yes"
22979else
22980 eval "$ossh_varname=no"
22981fi
22982rm -f conftest*
22983
22984fi
22985
22986 ossh_result=`eval 'echo $'"$ossh_varname"`
22987 if test -n "`echo $ossh_varname`"; then
22988 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22989echo "${ECHO_T}$ossh_result" >&6; }
22990 if test "x$ossh_result" = "xyes"; then
22991
22992cat >>confdefs.h <<\_ACEOF
22993#define HAVE_TYPE_IN_UTMP 1
22994_ACEOF
22995
22996 fi
22997 else
22998 { echo "$as_me:$LINENO: result: no" >&5
22999echo "${ECHO_T}no" >&6; }
23000 fi
23001
23002
23003# look for field 'ut_type' in header 'utmpx.h'
23004 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23005 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23006 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
23007echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
23008 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010else
23011
23012 cat >conftest.$ac_ext <<_ACEOF
23013/* confdefs.h. */
23014_ACEOF
23015cat confdefs.h >>conftest.$ac_ext
23016cat >>conftest.$ac_ext <<_ACEOF
23017/* end confdefs.h. */
23018#include <utmpx.h>
23019
23020_ACEOF
23021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23022 $EGREP "ut_type" >/dev/null 2>&1; then
23023 eval "$ossh_varname=yes"
23024else
23025 eval "$ossh_varname=no"
23026fi
23027rm -f conftest*
23028
23029fi
23030
23031 ossh_result=`eval 'echo $'"$ossh_varname"`
23032 if test -n "`echo $ossh_varname`"; then
23033 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23034echo "${ECHO_T}$ossh_result" >&6; }
23035 if test "x$ossh_result" = "xyes"; then
23036
23037cat >>confdefs.h <<\_ACEOF
23038#define HAVE_TYPE_IN_UTMPX 1
23039_ACEOF
23040
23041 fi
23042 else
23043 { echo "$as_me:$LINENO: result: no" >&5
23044echo "${ECHO_T}no" >&6; }
23045 fi
23046
23047
23048# look for field 'ut_tv' in header 'utmp.h'
23049 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23050 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23051 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
23052echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
23053 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23055else
23056
23057 cat >conftest.$ac_ext <<_ACEOF
23058/* confdefs.h. */
23059_ACEOF
23060cat confdefs.h >>conftest.$ac_ext
23061cat >>conftest.$ac_ext <<_ACEOF
23062/* end confdefs.h. */
23063#include <utmp.h>
23064
23065_ACEOF
23066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23067 $EGREP "ut_tv" >/dev/null 2>&1; then
23068 eval "$ossh_varname=yes"
23069else
23070 eval "$ossh_varname=no"
23071fi
23072rm -f conftest*
23073
23074fi
23075
23076 ossh_result=`eval 'echo $'"$ossh_varname"`
23077 if test -n "`echo $ossh_varname`"; then
23078 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23079echo "${ECHO_T}$ossh_result" >&6; }
23080 if test "x$ossh_result" = "xyes"; then
23081
23082cat >>confdefs.h <<\_ACEOF
23083#define HAVE_TV_IN_UTMP 1
23084_ACEOF
23085
23086 fi
23087 else
23088 { echo "$as_me:$LINENO: result: no" >&5
23089echo "${ECHO_T}no" >&6; }
23090 fi
23091
23092
23093# look for field 'ut_id' in header 'utmp.h'
23094 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23095 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
23096 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
23097echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
23098 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23100else
23101
23102 cat >conftest.$ac_ext <<_ACEOF
23103/* confdefs.h. */
23104_ACEOF
23105cat confdefs.h >>conftest.$ac_ext
23106cat >>conftest.$ac_ext <<_ACEOF
23107/* end confdefs.h. */
23108#include <utmp.h>
23109
23110_ACEOF
23111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23112 $EGREP "ut_id" >/dev/null 2>&1; then
23113 eval "$ossh_varname=yes"
23114else
23115 eval "$ossh_varname=no"
23116fi
23117rm -f conftest*
23118
23119fi
23120
23121 ossh_result=`eval 'echo $'"$ossh_varname"`
23122 if test -n "`echo $ossh_varname`"; then
23123 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23124echo "${ECHO_T}$ossh_result" >&6; }
23125 if test "x$ossh_result" = "xyes"; then
23126
23127cat >>confdefs.h <<\_ACEOF
23128#define HAVE_ID_IN_UTMP 1
23129_ACEOF
23130
23131 fi
23132 else
23133 { echo "$as_me:$LINENO: result: no" >&5
23134echo "${ECHO_T}no" >&6; }
23135 fi
23136
23137
23138# look for field 'ut_id' in header 'utmpx.h'
23139 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23140 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
23141 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
23142echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
23143 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23145else
23146
23147 cat >conftest.$ac_ext <<_ACEOF
23148/* confdefs.h. */
23149_ACEOF
23150cat confdefs.h >>conftest.$ac_ext
23151cat >>conftest.$ac_ext <<_ACEOF
23152/* end confdefs.h. */
23153#include <utmpx.h>
23154
23155_ACEOF
23156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23157 $EGREP "ut_id" >/dev/null 2>&1; then
23158 eval "$ossh_varname=yes"
23159else
23160 eval "$ossh_varname=no"
23161fi
23162rm -f conftest*
23163
23164fi
23165
23166 ossh_result=`eval 'echo $'"$ossh_varname"`
23167 if test -n "`echo $ossh_varname`"; then
23168 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23169echo "${ECHO_T}$ossh_result" >&6; }
23170 if test "x$ossh_result" = "xyes"; then
23171
23172cat >>confdefs.h <<\_ACEOF
23173#define HAVE_ID_IN_UTMPX 1
23174_ACEOF
23175
23176 fi
23177 else
23178 { echo "$as_me:$LINENO: result: no" >&5
23179echo "${ECHO_T}no" >&6; }
23180 fi
23181
23182
23183# look for field 'ut_addr' in header 'utmp.h'
23184 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23185 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
23186 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
23187echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
23188 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190else
23191
23192 cat >conftest.$ac_ext <<_ACEOF
23193/* confdefs.h. */
23194_ACEOF
23195cat confdefs.h >>conftest.$ac_ext
23196cat >>conftest.$ac_ext <<_ACEOF
23197/* end confdefs.h. */
23198#include <utmp.h>
23199
23200_ACEOF
23201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23202 $EGREP "ut_addr" >/dev/null 2>&1; then
23203 eval "$ossh_varname=yes"
23204else
23205 eval "$ossh_varname=no"
23206fi
23207rm -f conftest*
23208
23209fi
23210
23211 ossh_result=`eval 'echo $'"$ossh_varname"`
23212 if test -n "`echo $ossh_varname`"; then
23213 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23214echo "${ECHO_T}$ossh_result" >&6; }
23215 if test "x$ossh_result" = "xyes"; then
23216
23217cat >>confdefs.h <<\_ACEOF
23218#define HAVE_ADDR_IN_UTMP 1
23219_ACEOF
23220
23221 fi
23222 else
23223 { echo "$as_me:$LINENO: result: no" >&5
23224echo "${ECHO_T}no" >&6; }
23225 fi
23226
23227
23228# look for field 'ut_addr' in header 'utmpx.h'
23229 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23230 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
23231 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
23232echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
23233 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
23235else
23236
23237 cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243#include <utmpx.h>
23244
23245_ACEOF
23246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23247 $EGREP "ut_addr" >/dev/null 2>&1; then
23248 eval "$ossh_varname=yes"
23249else
23250 eval "$ossh_varname=no"
23251fi
23252rm -f conftest*
23253
23254fi
23255
23256 ossh_result=`eval 'echo $'"$ossh_varname"`
23257 if test -n "`echo $ossh_varname`"; then
23258 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23259echo "${ECHO_T}$ossh_result" >&6; }
23260 if test "x$ossh_result" = "xyes"; then
23261
23262cat >>confdefs.h <<\_ACEOF
23263#define HAVE_ADDR_IN_UTMPX 1
23264_ACEOF
23265
23266 fi
23267 else
23268 { echo "$as_me:$LINENO: result: no" >&5
23269echo "${ECHO_T}no" >&6; }
23270 fi
23271
23272
23273# look for field 'ut_addr_v6' in header 'utmp.h'
23274 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23275 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
23276 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
23277echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
23278 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23280else
23281
23282 cat >conftest.$ac_ext <<_ACEOF
23283/* confdefs.h. */
23284_ACEOF
23285cat confdefs.h >>conftest.$ac_ext
23286cat >>conftest.$ac_ext <<_ACEOF
23287/* end confdefs.h. */
23288#include <utmp.h>
23289
23290_ACEOF
23291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23292 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
23293 eval "$ossh_varname=yes"
23294else
23295 eval "$ossh_varname=no"
23296fi
23297rm -f conftest*
23298
23299fi
23300
23301 ossh_result=`eval 'echo $'"$ossh_varname"`
23302 if test -n "`echo $ossh_varname`"; then
23303 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23304echo "${ECHO_T}$ossh_result" >&6; }
23305 if test "x$ossh_result" = "xyes"; then
23306
23307cat >>confdefs.h <<\_ACEOF
23308#define HAVE_ADDR_V6_IN_UTMP 1
23309_ACEOF
23310
23311 fi
23312 else
23313 { echo "$as_me:$LINENO: result: no" >&5
23314echo "${ECHO_T}no" >&6; }
23315 fi
23316
23317
23318# look for field 'ut_addr_v6' in header 'utmpx.h'
23319 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23320 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
23321 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
23322echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
23323 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325else
23326
23327 cat >conftest.$ac_ext <<_ACEOF
23328/* confdefs.h. */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h. */
23333#include <utmpx.h>
23334
23335_ACEOF
23336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23337 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
23338 eval "$ossh_varname=yes"
23339else
23340 eval "$ossh_varname=no"
23341fi
23342rm -f conftest*
23343
23344fi
23345
23346 ossh_result=`eval 'echo $'"$ossh_varname"`
23347 if test -n "`echo $ossh_varname`"; then
23348 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23349echo "${ECHO_T}$ossh_result" >&6; }
23350 if test "x$ossh_result" = "xyes"; then
23351
23352cat >>confdefs.h <<\_ACEOF
23353#define HAVE_ADDR_V6_IN_UTMPX 1
23354_ACEOF
23355
23356 fi
23357 else
23358 { echo "$as_me:$LINENO: result: no" >&5
23359echo "${ECHO_T}no" >&6; }
23360 fi
23361
23362
23363# look for field 'ut_exit' in header 'utmp.h'
23364 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23365 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
23366 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
23367echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
23368 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23370else
23371
23372 cat >conftest.$ac_ext <<_ACEOF
23373/* confdefs.h. */
23374_ACEOF
23375cat confdefs.h >>conftest.$ac_ext
23376cat >>conftest.$ac_ext <<_ACEOF
23377/* end confdefs.h. */
23378#include <utmp.h>
23379
23380_ACEOF
23381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23382 $EGREP "ut_exit" >/dev/null 2>&1; then
23383 eval "$ossh_varname=yes"
23384else
23385 eval "$ossh_varname=no"
23386fi
23387rm -f conftest*
23388
23389fi
23390
23391 ossh_result=`eval 'echo $'"$ossh_varname"`
23392 if test -n "`echo $ossh_varname`"; then
23393 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23394echo "${ECHO_T}$ossh_result" >&6; }
23395 if test "x$ossh_result" = "xyes"; then
23396
23397cat >>confdefs.h <<\_ACEOF
23398#define HAVE_EXIT_IN_UTMP 1
23399_ACEOF
23400
23401 fi
23402 else
23403 { echo "$as_me:$LINENO: result: no" >&5
23404echo "${ECHO_T}no" >&6; }
23405 fi
23406
23407
23408# look for field 'ut_time' in header 'utmp.h'
23409 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23410 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23411 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
23412echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
23413 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23415else
23416
23417 cat >conftest.$ac_ext <<_ACEOF
23418/* confdefs.h. */
23419_ACEOF
23420cat confdefs.h >>conftest.$ac_ext
23421cat >>conftest.$ac_ext <<_ACEOF
23422/* end confdefs.h. */
23423#include <utmp.h>
23424
23425_ACEOF
23426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23427 $EGREP "ut_time" >/dev/null 2>&1; then
23428 eval "$ossh_varname=yes"
23429else
23430 eval "$ossh_varname=no"
23431fi
23432rm -f conftest*
23433
23434fi
23435
23436 ossh_result=`eval 'echo $'"$ossh_varname"`
23437 if test -n "`echo $ossh_varname`"; then
23438 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23439echo "${ECHO_T}$ossh_result" >&6; }
23440 if test "x$ossh_result" = "xyes"; then
23441
23442cat >>confdefs.h <<\_ACEOF
23443#define HAVE_TIME_IN_UTMP 1
23444_ACEOF
23445
23446 fi
23447 else
23448 { echo "$as_me:$LINENO: result: no" >&5
23449echo "${ECHO_T}no" >&6; }
23450 fi
23451
23452
23453# look for field 'ut_time' in header 'utmpx.h'
23454 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23455 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23456 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
23457echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
23458 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23459 echo $ECHO_N "(cached) $ECHO_C" >&6
23460else
23461
23462 cat >conftest.$ac_ext <<_ACEOF
23463/* confdefs.h. */
23464_ACEOF
23465cat confdefs.h >>conftest.$ac_ext
23466cat >>conftest.$ac_ext <<_ACEOF
23467/* end confdefs.h. */
23468#include <utmpx.h>
23469
23470_ACEOF
23471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23472 $EGREP "ut_time" >/dev/null 2>&1; then
23473 eval "$ossh_varname=yes"
23474else
23475 eval "$ossh_varname=no"
23476fi
23477rm -f conftest*
23478
23479fi
23480
23481 ossh_result=`eval 'echo $'"$ossh_varname"`
23482 if test -n "`echo $ossh_varname`"; then
23483 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23484echo "${ECHO_T}$ossh_result" >&6; }
23485 if test "x$ossh_result" = "xyes"; then
23486
23487cat >>confdefs.h <<\_ACEOF
23488#define HAVE_TIME_IN_UTMPX 1
23489_ACEOF
23490
23491 fi
23492 else
23493 { echo "$as_me:$LINENO: result: no" >&5
23494echo "${ECHO_T}no" >&6; }
23495 fi
23496
23497
23498# look for field 'ut_tv' in header 'utmpx.h'
23499 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23500 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23501 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
23502echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
23503 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23505else
23506
23507 cat >conftest.$ac_ext <<_ACEOF
23508/* confdefs.h. */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h. */
23513#include <utmpx.h>
23514
23515_ACEOF
23516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517 $EGREP "ut_tv" >/dev/null 2>&1; then
23518 eval "$ossh_varname=yes"
23519else
23520 eval "$ossh_varname=no"
23521fi
23522rm -f conftest*
23523
23524fi
23525
23526 ossh_result=`eval 'echo $'"$ossh_varname"`
23527 if test -n "`echo $ossh_varname`"; then
23528 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23529echo "${ECHO_T}$ossh_result" >&6; }
23530 if test "x$ossh_result" = "xyes"; then
23531
23532cat >>confdefs.h <<\_ACEOF
23533#define HAVE_TV_IN_UTMPX 1
23534_ACEOF
23535
23536 fi
23537 else
23538 { echo "$as_me:$LINENO: result: no" >&5
23539echo "${ECHO_T}no" >&6; }
23540 fi
23541
23542
23543{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
23544echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
23545if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23547else
23548 cat >conftest.$ac_ext <<_ACEOF
23549/* confdefs.h. */
23550_ACEOF
23551cat confdefs.h >>conftest.$ac_ext
23552cat >>conftest.$ac_ext <<_ACEOF
23553/* end confdefs.h. */
23554$ac_includes_default
23555int
23556main ()
23557{
23558static struct stat ac_aggr;
23559if (ac_aggr.st_blksize)
23560return 0;
23561 ;
23562 return 0;
23563}
23564_ACEOF
23565rm -f conftest.$ac_objext
23566if { (ac_try="$ac_compile"
23567case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23570esac
23571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23573 ac_status=$?
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_cv_member_struct_stat_st_blksize=yes
23583else
23584 echo "$as_me: failed program was:" >&5
23585sed 's/^/| /' conftest.$ac_ext >&5
23586
23587 cat >conftest.$ac_ext <<_ACEOF
23588/* confdefs.h. */
23589_ACEOF
23590cat confdefs.h >>conftest.$ac_ext
23591cat >>conftest.$ac_ext <<_ACEOF
23592/* end confdefs.h. */
23593$ac_includes_default
23594int
23595main ()
23596{
23597static struct stat ac_aggr;
23598if (sizeof ac_aggr.st_blksize)
23599return 0;
23600 ;
23601 return 0;
23602}
23603_ACEOF
23604rm -f conftest.$ac_objext
23605if { (ac_try="$ac_compile"
23606case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609esac
23610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_compile") 2>conftest.er1
23612 ac_status=$?
23613 grep -v '^ *+' conftest.er1 >conftest.err
23614 rm -f conftest.er1
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } && {
23618 test -z "$ac_c_werror_flag" ||
23619 test ! -s conftest.err
23620 } && test -s conftest.$ac_objext; then
23621 ac_cv_member_struct_stat_st_blksize=yes
23622else
23623 echo "$as_me: failed program was:" >&5
23624sed 's/^/| /' conftest.$ac_ext >&5
23625
23626 ac_cv_member_struct_stat_st_blksize=no
23627fi
23628
23629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23630fi
23631
23632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633fi
23634{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
23635echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
23636if test $ac_cv_member_struct_stat_st_blksize = yes; then
23637
23638cat >>confdefs.h <<_ACEOF
23639#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23640_ACEOF
23641
23642
23643fi
23644
23645{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
23646echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
23647if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
23648 echo $ECHO_N "(cached) $ECHO_C" >&6
23649else
23650 cat >conftest.$ac_ext <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656
23657#include <stdio.h>
23658#if HAVE_SYS_TYPES_H
23659# include <sys/types.h>
23660#endif
23661#include <netinet/in.h>
23662#include <arpa/nameser.h>
23663#include <resolv.h>
23664
23665
23666int
23667main ()
23668{
23669static struct __res_state ac_aggr;
23670if (ac_aggr.retrans)
23671return 0;
23672 ;
23673 return 0;
23674}
23675_ACEOF
23676rm -f conftest.$ac_objext
23677if { (ac_try="$ac_compile"
23678case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681esac
23682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_compile") 2>conftest.er1
23684 ac_status=$?
23685 grep -v '^ *+' conftest.er1 >conftest.err
23686 rm -f conftest.er1
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest.$ac_objext; then
23693 ac_cv_member_struct___res_state_retrans=yes
23694else
23695 echo "$as_me: failed program was:" >&5
23696sed 's/^/| /' conftest.$ac_ext >&5
23697
23698 cat >conftest.$ac_ext <<_ACEOF
23699/* confdefs.h. */
23700_ACEOF
23701cat confdefs.h >>conftest.$ac_ext
23702cat >>conftest.$ac_ext <<_ACEOF
23703/* end confdefs.h. */
23704
23705#include <stdio.h>
23706#if HAVE_SYS_TYPES_H
23707# include <sys/types.h>
23708#endif
23709#include <netinet/in.h>
23710#include <arpa/nameser.h>
23711#include <resolv.h>
23712
23713
23714int
23715main ()
23716{
23717static struct __res_state ac_aggr;
23718if (sizeof ac_aggr.retrans)
23719return 0;
23720 ;
23721 return 0;
23722}
23723_ACEOF
23724rm -f conftest.$ac_objext
23725if { (ac_try="$ac_compile"
23726case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23729esac
23730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23731 (eval "$ac_compile") 2>conftest.er1
23732 ac_status=$?
23733 grep -v '^ *+' conftest.er1 >conftest.err
23734 rm -f conftest.er1
23735 cat conftest.err >&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); } && {
23738 test -z "$ac_c_werror_flag" ||
23739 test ! -s conftest.err
23740 } && test -s conftest.$ac_objext; then
23741 ac_cv_member_struct___res_state_retrans=yes
23742else
23743 echo "$as_me: failed program was:" >&5
23744sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 ac_cv_member_struct___res_state_retrans=no
23747fi
23748
23749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23750fi
23751
23752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753fi
23754{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
23755echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
23756if test $ac_cv_member_struct___res_state_retrans = yes; then
23757 :
23758else
23759
23760cat >>confdefs.h <<\_ACEOF
23761#define __res_state state
23762_ACEOF
23763
23764fi
23765
23766
23767{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
23768echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23769if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23771else
23772
23773 cat >conftest.$ac_ext <<_ACEOF
23774/* confdefs.h. */
23775_ACEOF
23776cat confdefs.h >>conftest.$ac_ext
23777cat >>conftest.$ac_ext <<_ACEOF
23778/* end confdefs.h. */
23779
23780#include <sys/types.h>
23781#include <sys/socket.h>
23782
23783int
23784main ()
23785{
23786 struct sockaddr_storage s; s.ss_family = 1;
23787 ;
23788 return 0;
23789}
23790_ACEOF
23791rm -f conftest.$ac_objext
23792if { (ac_try="$ac_compile"
23793case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23796esac
23797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23808 ac_cv_have_ss_family_in_struct_ss="yes"
23809else
23810 echo "$as_me: failed program was:" >&5
23811sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ac_cv_have_ss_family_in_struct_ss="no"
23814fi
23815
23816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817
23818fi
23819{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
23820echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
23821if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
23822
23823cat >>confdefs.h <<\_ACEOF
23824#define HAVE_SS_FAMILY_IN_SS 1
23825_ACEOF
23826
23827fi
23828
23829{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
23830echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23831if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23833else
23834
23835 cat >conftest.$ac_ext <<_ACEOF
23836/* confdefs.h. */
23837_ACEOF
23838cat confdefs.h >>conftest.$ac_ext
23839cat >>conftest.$ac_ext <<_ACEOF
23840/* end confdefs.h. */
23841
23842#include <sys/types.h>
23843#include <sys/socket.h>
23844
23845int
23846main ()
23847{
23848 struct sockaddr_storage s; s.__ss_family = 1;
23849 ;
23850 return 0;
23851}
23852_ACEOF
23853rm -f conftest.$ac_objext
23854if { (ac_try="$ac_compile"
23855case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23858esac
23859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_compile") 2>conftest.er1
23861 ac_status=$?
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } && {
23867 test -z "$ac_c_werror_flag" ||
23868 test ! -s conftest.err
23869 } && test -s conftest.$ac_objext; then
23870 ac_cv_have___ss_family_in_struct_ss="yes"
23871else
23872 echo "$as_me: failed program was:" >&5
23873sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 ac_cv_have___ss_family_in_struct_ss="no"
23876
23877fi
23878
23879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880
23881fi
23882{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
23883echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
23884if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
23885
23886cat >>confdefs.h <<\_ACEOF
23887#define HAVE___SS_FAMILY_IN_SS 1
23888_ACEOF
23889
23890fi
23891
23892{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
23893echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
23894if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23896else
23897
23898 cat >conftest.$ac_ext <<_ACEOF
23899/* confdefs.h. */
23900_ACEOF
23901cat confdefs.h >>conftest.$ac_ext
23902cat >>conftest.$ac_ext <<_ACEOF
23903/* end confdefs.h. */
23904
23905#include <pwd.h>
23906
23907int
23908main ()
23909{
23910 struct passwd p; p.pw_class = 0;
23911 ;
23912 return 0;
23913}
23914_ACEOF
23915rm -f conftest.$ac_objext
23916if { (ac_try="$ac_compile"
23917case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23920esac
23921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_compile") 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest.$ac_objext; then
23932 ac_cv_have_pw_class_in_struct_passwd="yes"
23933else
23934 echo "$as_me: failed program was:" >&5
23935sed 's/^/| /' conftest.$ac_ext >&5
23936
23937 ac_cv_have_pw_class_in_struct_passwd="no"
23938
23939fi
23940
23941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942
23943fi
23944{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
23945echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
23946if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
23947
23948cat >>confdefs.h <<\_ACEOF
23949#define HAVE_PW_CLASS_IN_PASSWD 1
23950_ACEOF
23951
23952fi
23953
23954{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
23955echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
23956if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23958else
23959
23960 cat >conftest.$ac_ext <<_ACEOF
23961/* confdefs.h. */
23962_ACEOF
23963cat confdefs.h >>conftest.$ac_ext
23964cat >>conftest.$ac_ext <<_ACEOF
23965/* end confdefs.h. */
23966
23967#include <pwd.h>
23968
23969int
23970main ()
23971{
23972 struct passwd p; p.pw_expire = 0;
23973 ;
23974 return 0;
23975}
23976_ACEOF
23977rm -f conftest.$ac_objext
23978if { (ac_try="$ac_compile"
23979case "(($ac_try" in
23980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981 *) ac_try_echo=$ac_try;;
23982esac
23983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23984 (eval "$ac_compile") 2>conftest.er1
23985 ac_status=$?
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && {
23991 test -z "$ac_c_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
23994 ac_cv_have_pw_expire_in_struct_passwd="yes"
23995else
23996 echo "$as_me: failed program was:" >&5
23997sed 's/^/| /' conftest.$ac_ext >&5
23998
23999 ac_cv_have_pw_expire_in_struct_passwd="no"
24000
24001fi
24002
24003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004
24005fi
24006{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
24007echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
24008if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
24009
24010cat >>confdefs.h <<\_ACEOF
24011#define HAVE_PW_EXPIRE_IN_PASSWD 1
24012_ACEOF
24013
24014fi
24015
24016{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
24017echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
24018if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24020else
24021
24022 cat >conftest.$ac_ext <<_ACEOF
24023/* confdefs.h. */
24024_ACEOF
24025cat confdefs.h >>conftest.$ac_ext
24026cat >>conftest.$ac_ext <<_ACEOF
24027/* end confdefs.h. */
24028
24029#include <pwd.h>
24030
24031int
24032main ()
24033{
24034 struct passwd p; p.pw_change = 0;
24035 ;
24036 return 0;
24037}
24038_ACEOF
24039rm -f conftest.$ac_objext
24040if { (ac_try="$ac_compile"
24041case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24044esac
24045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046 (eval "$ac_compile") 2>conftest.er1
24047 ac_status=$?
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && {
24053 test -z "$ac_c_werror_flag" ||
24054 test ! -s conftest.err
24055 } && test -s conftest.$ac_objext; then
24056 ac_cv_have_pw_change_in_struct_passwd="yes"
24057else
24058 echo "$as_me: failed program was:" >&5
24059sed 's/^/| /' conftest.$ac_ext >&5
24060
24061 ac_cv_have_pw_change_in_struct_passwd="no"
24062
24063fi
24064
24065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066
24067fi
24068{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
24069echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
24070if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
24071
24072cat >>confdefs.h <<\_ACEOF
24073#define HAVE_PW_CHANGE_IN_PASSWD 1
24074_ACEOF
24075
24076fi
24077
24078{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
24079echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
24080if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
24081 echo $ECHO_N "(cached) $ECHO_C" >&6
24082else
24083
24084 cat >conftest.$ac_ext <<_ACEOF
24085
24086#include <sys/types.h>
24087#include <sys/socket.h>
24088#include <sys/uio.h>
24089int main() {
24090#ifdef msg_accrights
24091#error "msg_accrights is a macro"
24092exit(1);
24093#endif
24094struct msghdr m;
24095m.msg_accrights = 0;
24096exit(0);
24097}
24098
24099_ACEOF
24100rm -f conftest.$ac_objext
24101if { (ac_try="$ac_compile"
24102case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24105esac
24106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107 (eval "$ac_compile") 2>conftest.er1
24108 ac_status=$?
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } && {
24114 test -z "$ac_c_werror_flag" ||
24115 test ! -s conftest.err
24116 } && test -s conftest.$ac_objext; then
24117 ac_cv_have_accrights_in_msghdr="yes"
24118else
24119 echo "$as_me: failed program was:" >&5
24120sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 ac_cv_have_accrights_in_msghdr="no"
24123
24124fi
24125
24126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127
24128fi
24129{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
24130echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
24131if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
24132
24133cat >>confdefs.h <<\_ACEOF
24134#define HAVE_ACCRIGHTS_IN_MSGHDR 1
24135_ACEOF
24136
24137fi
24138
24139{ echo "$as_me:$LINENO: checking if f_fsid has val members" >&5
24140echo $ECHO_N "checking if f_fsid has val members... $ECHO_C" >&6; }
24141cat >conftest.$ac_ext <<_ACEOF
24142/* confdefs.h. */
24143_ACEOF
24144cat confdefs.h >>conftest.$ac_ext
24145cat >>conftest.$ac_ext <<_ACEOF
24146/* end confdefs.h. */
24147
24148#include <sys/types.h>
24149#include <sys/statvfs.h>
24150int
24151main ()
24152{
24153struct fsid_t t; t.val[0] = 0;
24154 ;
24155 return 0;
24156}
24157_ACEOF
24158rm -f conftest.$ac_objext
24159if { (ac_try="$ac_compile"
24160case "(($ac_try" in
24161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24162 *) ac_try_echo=$ac_try;;
24163esac
24164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24165 (eval "$ac_compile") 2>conftest.er1
24166 ac_status=$?
24167 grep -v '^ *+' conftest.er1 >conftest.err
24168 rm -f conftest.er1
24169 cat conftest.err >&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); } && {
24172 test -z "$ac_c_werror_flag" ||
24173 test ! -s conftest.err
24174 } && test -s conftest.$ac_objext; then
24175 { echo "$as_me:$LINENO: result: yes" >&5
24176echo "${ECHO_T}yes" >&6; }
24177
24178cat >>confdefs.h <<\_ACEOF
24179#define FSID_HAS_VAL 1
24180_ACEOF
24181
24182else
24183 echo "$as_me: failed program was:" >&5
24184sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 { echo "$as_me:$LINENO: result: no" >&5
24187echo "${ECHO_T}no" >&6; }
24188
24189fi
24190
24191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192
24193{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
24194echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
24195if test "${ac_cv_have_control_in_msghdr+set}" = set; then
24196 echo $ECHO_N "(cached) $ECHO_C" >&6
24197else
24198
24199 cat >conftest.$ac_ext <<_ACEOF
24200
24201#include <sys/types.h>
24202#include <sys/socket.h>
24203#include <sys/uio.h>
24204int main() {
24205#ifdef msg_control
24206#error "msg_control is a macro"
24207exit(1);
24208#endif
24209struct msghdr m;
24210m.msg_control = 0;
24211exit(0);
24212}
24213
24214_ACEOF
24215rm -f conftest.$ac_objext
24216if { (ac_try="$ac_compile"
24217case "(($ac_try" in
24218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24219 *) ac_try_echo=$ac_try;;
24220esac
24221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24222 (eval "$ac_compile") 2>conftest.er1
24223 ac_status=$?
24224 grep -v '^ *+' conftest.er1 >conftest.err
24225 rm -f conftest.er1
24226 cat conftest.err >&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } && {
24229 test -z "$ac_c_werror_flag" ||
24230 test ! -s conftest.err
24231 } && test -s conftest.$ac_objext; then
24232 ac_cv_have_control_in_msghdr="yes"
24233else
24234 echo "$as_me: failed program was:" >&5
24235sed 's/^/| /' conftest.$ac_ext >&5
24236
24237 ac_cv_have_control_in_msghdr="no"
24238
24239fi
24240
24241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24242
24243fi
24244{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
24245echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
24246if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
24247
24248cat >>confdefs.h <<\_ACEOF
24249#define HAVE_CONTROL_IN_MSGHDR 1
24250_ACEOF
24251
24252fi
24253
24254{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
24255echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
24256if test "${ac_cv_libc_defines___progname+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24258else
24259
24260 cat >conftest.$ac_ext <<_ACEOF
24261/* confdefs.h. */
24262_ACEOF
24263cat confdefs.h >>conftest.$ac_ext
24264cat >>conftest.$ac_ext <<_ACEOF
24265/* end confdefs.h. */
24266
24267int
24268main ()
24269{
24270 extern char *__progname; printf("%s", __progname);
24271 ;
24272 return 0;
24273}
24274_ACEOF
24275rm -f conftest.$ac_objext conftest$ac_exeext
24276if { (ac_try="$ac_link"
24277case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24280esac
24281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24282 (eval "$ac_link") 2>conftest.er1
24283 ac_status=$?
24284 grep -v '^ *+' conftest.er1 >conftest.err
24285 rm -f conftest.er1
24286 cat conftest.err >&5
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); } && {
24289 test -z "$ac_c_werror_flag" ||
24290 test ! -s conftest.err
24291 } && test -s conftest$ac_exeext &&
24292 $as_test_x conftest$ac_exeext; then
24293 ac_cv_libc_defines___progname="yes"
24294else
24295 echo "$as_me: failed program was:" >&5
24296sed 's/^/| /' conftest.$ac_ext >&5
24297
24298 ac_cv_libc_defines___progname="no"
24299
24300fi
24301
24302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24303 conftest$ac_exeext conftest.$ac_ext
24304
24305fi
24306{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
24307echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
24308if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
24309
24310cat >>confdefs.h <<\_ACEOF
24311#define HAVE___PROGNAME 1
24312_ACEOF
24313
24314fi
24315
24316{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
24317echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
24318if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24320else
24321
24322 cat >conftest.$ac_ext <<_ACEOF
24323/* confdefs.h. */
24324_ACEOF
24325cat confdefs.h >>conftest.$ac_ext
24326cat >>conftest.$ac_ext <<_ACEOF
24327/* end confdefs.h. */
24328
24329#include <stdio.h>
24330
24331int
24332main ()
24333{
24334 printf("%s", __FUNCTION__);
24335 ;
24336 return 0;
24337}
24338_ACEOF
24339rm -f conftest.$ac_objext conftest$ac_exeext
24340if { (ac_try="$ac_link"
24341case "(($ac_try" in
24342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343 *) ac_try_echo=$ac_try;;
24344esac
24345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346 (eval "$ac_link") 2>conftest.er1
24347 ac_status=$?
24348 grep -v '^ *+' conftest.er1 >conftest.err
24349 rm -f conftest.er1
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } && {
24353 test -z "$ac_c_werror_flag" ||
24354 test ! -s conftest.err
24355 } && test -s conftest$ac_exeext &&
24356 $as_test_x conftest$ac_exeext; then
24357 ac_cv_cc_implements___FUNCTION__="yes"
24358else
24359 echo "$as_me: failed program was:" >&5
24360sed 's/^/| /' conftest.$ac_ext >&5
24361
24362 ac_cv_cc_implements___FUNCTION__="no"
24363
24364fi
24365
24366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367 conftest$ac_exeext conftest.$ac_ext
24368
24369fi
24370{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
24371echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
24372if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
24373
24374cat >>confdefs.h <<\_ACEOF
24375#define HAVE___FUNCTION__ 1
24376_ACEOF
24377
24378fi
24379
24380{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
24381echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
24382if test "${ac_cv_cc_implements___func__+set}" = set; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24384else
24385
24386 cat >conftest.$ac_ext <<_ACEOF
24387/* confdefs.h. */
24388_ACEOF
24389cat confdefs.h >>conftest.$ac_ext
24390cat >>conftest.$ac_ext <<_ACEOF
24391/* end confdefs.h. */
24392
24393#include <stdio.h>
24394
24395int
24396main ()
24397{
24398 printf("%s", __func__);
24399 ;
24400 return 0;
24401}
24402_ACEOF
24403rm -f conftest.$ac_objext conftest$ac_exeext
24404if { (ac_try="$ac_link"
24405case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24408esac
24409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_link") 2>conftest.er1
24411 ac_status=$?
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest$ac_exeext &&
24420 $as_test_x conftest$ac_exeext; then
24421 ac_cv_cc_implements___func__="yes"
24422else
24423 echo "$as_me: failed program was:" >&5
24424sed 's/^/| /' conftest.$ac_ext >&5
24425
24426 ac_cv_cc_implements___func__="no"
24427
24428fi
24429
24430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24431 conftest$ac_exeext conftest.$ac_ext
24432
24433fi
24434{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
24435echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
24436if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
24437
24438cat >>confdefs.h <<\_ACEOF
24439#define HAVE___func__ 1
24440_ACEOF
24441
24442fi
24443
24444{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
24445echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
24446if test "${ac_cv_have_va_copy+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24448else
24449
24450 cat >conftest.$ac_ext <<_ACEOF
24451/* confdefs.h. */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h. */
24456#include <stdarg.h>
24457 va_list x,y;
24458int
24459main ()
24460{
24461va_copy(x,y);
24462 ;
24463 return 0;
24464}
24465_ACEOF
24466rm -f conftest.$ac_objext conftest$ac_exeext
24467if { (ac_try="$ac_link"
24468case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24471esac
24472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_link") 2>conftest.er1
24474 ac_status=$?
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_c_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest$ac_exeext &&
24483 $as_test_x conftest$ac_exeext; then
24484 ac_cv_have_va_copy="yes"
24485else
24486 echo "$as_me: failed program was:" >&5
24487sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ac_cv_have_va_copy="no"
24490
24491fi
24492
24493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24494 conftest$ac_exeext conftest.$ac_ext
24495
24496fi
24497{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
24498echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
24499if test "x$ac_cv_have_va_copy" = "xyes" ; then
24500
24501cat >>confdefs.h <<\_ACEOF
24502#define HAVE_VA_COPY 1
24503_ACEOF
24504
24505fi
24506
24507{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
24508echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
24509if test "${ac_cv_have___va_copy+set}" = set; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24511else
24512
24513 cat >conftest.$ac_ext <<_ACEOF
24514/* confdefs.h. */
24515_ACEOF
24516cat confdefs.h >>conftest.$ac_ext
24517cat >>conftest.$ac_ext <<_ACEOF
24518/* end confdefs.h. */
24519#include <stdarg.h>
24520 va_list x,y;
24521int
24522main ()
24523{
24524__va_copy(x,y);
24525 ;
24526 return 0;
24527}
24528_ACEOF
24529rm -f conftest.$ac_objext conftest$ac_exeext
24530if { (ac_try="$ac_link"
24531case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24534esac
24535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536 (eval "$ac_link") 2>conftest.er1
24537 ac_status=$?
24538 grep -v '^ *+' conftest.er1 >conftest.err
24539 rm -f conftest.er1
24540 cat conftest.err >&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } && {
24543 test -z "$ac_c_werror_flag" ||
24544 test ! -s conftest.err
24545 } && test -s conftest$ac_exeext &&
24546 $as_test_x conftest$ac_exeext; then
24547 ac_cv_have___va_copy="yes"
24548else
24549 echo "$as_me: failed program was:" >&5
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ac_cv_have___va_copy="no"
24553
24554fi
24555
24556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24557 conftest$ac_exeext conftest.$ac_ext
24558
24559fi
24560{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
24561echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
24562if test "x$ac_cv_have___va_copy" = "xyes" ; then
24563
24564cat >>confdefs.h <<\_ACEOF
24565#define HAVE___VA_COPY 1
24566_ACEOF
24567
24568fi
24569
24570{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
24571echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
24572if test "${ac_cv_have_getopt_optreset+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24574else
24575
24576 cat >conftest.$ac_ext <<_ACEOF
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582
24583#include <getopt.h>
24584
24585int
24586main ()
24587{
24588 extern int optreset; optreset = 0;
24589 ;
24590 return 0;
24591}
24592_ACEOF
24593rm -f conftest.$ac_objext conftest$ac_exeext
24594if { (ac_try="$ac_link"
24595case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24598esac
24599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_link") 2>conftest.er1
24601 ac_status=$?
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && {
24607 test -z "$ac_c_werror_flag" ||
24608 test ! -s conftest.err
24609 } && test -s conftest$ac_exeext &&
24610 $as_test_x conftest$ac_exeext; then
24611 ac_cv_have_getopt_optreset="yes"
24612else
24613 echo "$as_me: failed program was:" >&5
24614sed 's/^/| /' conftest.$ac_ext >&5
24615
24616 ac_cv_have_getopt_optreset="no"
24617
24618fi
24619
24620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24621 conftest$ac_exeext conftest.$ac_ext
24622
24623fi
24624{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
24625echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
24626if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
24627
24628cat >>confdefs.h <<\_ACEOF
24629#define HAVE_GETOPT_OPTRESET 1
24630_ACEOF
24631
24632fi
24633
24634{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
24635echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
24636if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24638else
24639
24640 cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h. */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h. */
24646
24647int
24648main ()
24649{
24650 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
24651 ;
24652 return 0;
24653}
24654_ACEOF
24655rm -f conftest.$ac_objext conftest$ac_exeext
24656if { (ac_try="$ac_link"
24657case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24660esac
24661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662 (eval "$ac_link") 2>conftest.er1
24663 ac_status=$?
24664 grep -v '^ *+' conftest.er1 >conftest.err
24665 rm -f conftest.er1
24666 cat conftest.err >&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } && {
24669 test -z "$ac_c_werror_flag" ||
24670 test ! -s conftest.err
24671 } && test -s conftest$ac_exeext &&
24672 $as_test_x conftest$ac_exeext; then
24673 ac_cv_libc_defines_sys_errlist="yes"
24674else
24675 echo "$as_me: failed program was:" >&5
24676sed 's/^/| /' conftest.$ac_ext >&5
24677
24678 ac_cv_libc_defines_sys_errlist="no"
24679
24680fi
24681
24682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24683 conftest$ac_exeext conftest.$ac_ext
24684
24685fi
24686{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
24687echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
24688if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
24689
24690cat >>confdefs.h <<\_ACEOF
24691#define HAVE_SYS_ERRLIST 1
24692_ACEOF
24693
24694fi
24695
24696
24697{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
24698echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
24699if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
24700 echo $ECHO_N "(cached) $ECHO_C" >&6
24701else
24702
24703 cat >conftest.$ac_ext <<_ACEOF
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709
24710int
24711main ()
24712{
24713 extern int sys_nerr; printf("%i", sys_nerr);
24714 ;
24715 return 0;
24716}
24717_ACEOF
24718rm -f conftest.$ac_objext conftest$ac_exeext
24719if { (ac_try="$ac_link"
24720case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24723esac
24724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24725 (eval "$ac_link") 2>conftest.er1
24726 ac_status=$?
24727 grep -v '^ *+' conftest.er1 >conftest.err
24728 rm -f conftest.er1
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } && {
24732 test -z "$ac_c_werror_flag" ||
24733 test ! -s conftest.err
24734 } && test -s conftest$ac_exeext &&
24735 $as_test_x conftest$ac_exeext; then
24736 ac_cv_libc_defines_sys_nerr="yes"
24737else
24738 echo "$as_me: failed program was:" >&5
24739sed 's/^/| /' conftest.$ac_ext >&5
24740
24741 ac_cv_libc_defines_sys_nerr="no"
24742
24743fi
24744
24745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24746 conftest$ac_exeext conftest.$ac_ext
24747
24748fi
24749{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
24750echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
24751if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
24752
24753cat >>confdefs.h <<\_ACEOF
24754#define HAVE_SYS_NERR 1
24755_ACEOF
24756
24757fi
24758
24759SCARD_MSG="no"
24760# Check whether user wants sectok support
24761
24762# Check whether --with-sectok was given.
24763if test "${with_sectok+set}" = set; then
24764 withval=$with_sectok;
24765 if test "x$withval" != "xno" ; then
24766 if test "x$withval" != "xyes" ; then
24767 CPPFLAGS="$CPPFLAGS -I${withval}"
24768 LDFLAGS="$LDFLAGS -L${withval}"
24769 if test ! -z "$need_dash_r" ; then
24770 LDFLAGS="$LDFLAGS -R${withval}"
24771 fi
24772 if test ! -z "$blibpath" ; then
24773 blibpath="$blibpath:${withval}"
24774 fi
24775 fi
24776
24777for ac_header in sectok.h
24778do
24779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785fi
24786ac_res=`eval echo '${'$as_ac_Header'}'`
24787 { echo "$as_me:$LINENO: result: $ac_res" >&5
24788echo "${ECHO_T}$ac_res" >&6; }
24789else
24790 # Is the header compilable?
24791{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24793cat >conftest.$ac_ext <<_ACEOF
24794/* confdefs.h. */
24795_ACEOF
24796cat confdefs.h >>conftest.$ac_ext
24797cat >>conftest.$ac_ext <<_ACEOF
24798/* end confdefs.h. */
24799$ac_includes_default
24800#include <$ac_header>
24801_ACEOF
24802rm -f conftest.$ac_objext
24803if { (ac_try="$ac_compile"
24804case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24807esac
24808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24819 ac_header_compiler=yes
24820else
24821 echo "$as_me: failed program was:" >&5
24822sed 's/^/| /' conftest.$ac_ext >&5
24823
24824 ac_header_compiler=no
24825fi
24826
24827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24829echo "${ECHO_T}$ac_header_compiler" >&6; }
24830
24831# Is the header present?
24832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24834cat >conftest.$ac_ext <<_ACEOF
24835/* confdefs.h. */
24836_ACEOF
24837cat confdefs.h >>conftest.$ac_ext
24838cat >>conftest.$ac_ext <<_ACEOF
24839/* end confdefs.h. */
24840#include <$ac_header>
24841_ACEOF
24842if { (ac_try="$ac_cpp conftest.$ac_ext"
24843case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24846esac
24847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24849 ac_status=$?
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } >/dev/null && {
24855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24856 test ! -s conftest.err
24857 }; then
24858 ac_header_preproc=yes
24859else
24860 echo "$as_me: failed program was:" >&5
24861sed 's/^/| /' conftest.$ac_ext >&5
24862
24863 ac_header_preproc=no
24864fi
24865
24866rm -f conftest.err conftest.$ac_ext
24867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24868echo "${ECHO_T}$ac_header_preproc" >&6; }
24869
24870# So? What about this header?
24871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24872 yes:no: )
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24877 ac_header_preproc=yes
24878 ;;
24879 no:yes:* )
24880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24892 ( cat <<\_ASBOX
24893## ------------------------------------------- ##
24894## Report this to openssh-unix-dev@mindrot.org ##
24895## ------------------------------------------- ##
24896_ASBOX
24897 ) | sed "s/^/$as_me: WARNING: /" >&2
24898 ;;
24899esac
24900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903 echo $ECHO_N "(cached) $ECHO_C" >&6
24904else
24905 eval "$as_ac_Header=\$ac_header_preproc"
24906fi
24907ac_res=`eval echo '${'$as_ac_Header'}'`
24908 { echo "$as_me:$LINENO: result: $ac_res" >&5
24909echo "${ECHO_T}$ac_res" >&6; }
24910
24911fi
24912if test `eval echo '${'$as_ac_Header'}'` = yes; then
24913 cat >>confdefs.h <<_ACEOF
24914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24915_ACEOF
24916
24917fi
24918
24919done
24920
24921 if test "$ac_cv_header_sectok_h" != yes; then
24922 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
24923echo "$as_me: error: Can't find sectok.h" >&2;}
24924 { (exit 1); exit 1; }; }
24925 fi
24926
24927{ echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
24928echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
24929if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24931else
24932 ac_check_lib_save_LIBS=$LIBS
24933LIBS="-lsectok $LIBS"
24934cat >conftest.$ac_ext <<_ACEOF
24935/* confdefs.h. */
24936_ACEOF
24937cat confdefs.h >>conftest.$ac_ext
24938cat >>conftest.$ac_ext <<_ACEOF
24939/* end confdefs.h. */
24940
24941/* Override any GCC internal prototype to avoid an error.
24942 Use char because int might match the return type of a GCC
24943 builtin and then its argument prototype would still apply. */
24944#ifdef __cplusplus
24945extern "C"
24946#endif
24947char sectok_open ();
24948int
24949main ()
24950{
24951return sectok_open ();
24952 ;
24953 return 0;
24954}
24955_ACEOF
24956rm -f conftest.$ac_objext conftest$ac_exeext
24957if { (ac_try="$ac_link"
24958case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961esac
24962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_link") 2>conftest.er1
24964 ac_status=$?
24965 grep -v '^ *+' conftest.er1 >conftest.err
24966 rm -f conftest.er1
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } && {
24970 test -z "$ac_c_werror_flag" ||
24971 test ! -s conftest.err
24972 } && test -s conftest$ac_exeext &&
24973 $as_test_x conftest$ac_exeext; then
24974 ac_cv_lib_sectok_sectok_open=yes
24975else
24976 echo "$as_me: failed program was:" >&5
24977sed 's/^/| /' conftest.$ac_ext >&5
24978
24979 ac_cv_lib_sectok_sectok_open=no
24980fi
24981
24982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24983 conftest$ac_exeext conftest.$ac_ext
24984LIBS=$ac_check_lib_save_LIBS
24985fi
24986{ echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
24987echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
24988if test $ac_cv_lib_sectok_sectok_open = yes; then
24989 cat >>confdefs.h <<_ACEOF
24990#define HAVE_LIBSECTOK 1
24991_ACEOF
24992
24993 LIBS="-lsectok $LIBS"
24994
24995fi
24996
24997 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
24998 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
24999echo "$as_me: error: Can't find libsectok" >&2;}
25000 { (exit 1); exit 1; }; }
25001 fi
25002
25003cat >>confdefs.h <<\_ACEOF
25004#define SMARTCARD 1
25005_ACEOF
25006
25007
25008cat >>confdefs.h <<\_ACEOF
25009#define USE_SECTOK 1
25010_ACEOF
25011
25012 SCARD_MSG="yes, using sectok"
25013 fi
25014
25015
25016fi
25017
25018
25019# Check whether user wants OpenSC support
25020OPENSC_CONFIG="no"
25021
25022# Check whether --with-opensc was given.
25023if test "${with_opensc+set}" = set; then
25024 withval=$with_opensc;
25025 if test "x$withval" != "xno" ; then
25026 if test "x$withval" != "xyes" ; then
25027 OPENSC_CONFIG=$withval/bin/opensc-config
25028 else
25029 # Extract the first word of "opensc-config", so it can be a program name with args.
25030set dummy opensc-config; ac_word=$2
25031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25033if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25035else
25036 case $OPENSC_CONFIG in
25037 [\\/]* | ?:[\\/]*)
25038 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
25039 ;;
25040 *)
25041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25042for as_dir in $PATH
25043do
25044 IFS=$as_save_IFS
25045 test -z "$as_dir" && as_dir=.
25046 for ac_exec_ext in '' $ac_executable_extensions; do
25047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25048 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25050 break 2
25051 fi
25052done
25053done
25054IFS=$as_save_IFS
25055
25056 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
25057 ;;
25058esac
25059fi
25060OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
25061if test -n "$OPENSC_CONFIG"; then
25062 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
25063echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
25064else
25065 { echo "$as_me:$LINENO: result: no" >&5
25066echo "${ECHO_T}no" >&6; }
25067fi
25068
25069
25070 fi
25071 if test "$OPENSC_CONFIG" != "no"; then
25072 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
25073 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
25074 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
25075 LIBS="$LIBS $LIBOPENSC_LIBS"
25076 cat >>confdefs.h <<\_ACEOF
25077#define SMARTCARD 1
25078_ACEOF
25079
25080
25081cat >>confdefs.h <<\_ACEOF
25082#define USE_OPENSC 1
25083_ACEOF
25084
25085 SCARD_MSG="yes, using OpenSC"
25086 fi
25087 fi
25088
25089
25090fi
25091
25092
25093# Check libraries needed by DNS fingerprint support
25094{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
25095echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
25096if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098else
25099 ac_func_search_save_LIBS=$LIBS
25100cat >conftest.$ac_ext <<_ACEOF
25101/* confdefs.h. */
25102_ACEOF
25103cat confdefs.h >>conftest.$ac_ext
25104cat >>conftest.$ac_ext <<_ACEOF
25105/* end confdefs.h. */
25106
25107/* Override any GCC internal prototype to avoid an error.
25108 Use char because int might match the return type of a GCC
25109 builtin and then its argument prototype would still apply. */
25110#ifdef __cplusplus
25111extern "C"
25112#endif
25113char getrrsetbyname ();
25114int
25115main ()
25116{
25117return getrrsetbyname ();
25118 ;
25119 return 0;
25120}
25121_ACEOF
25122for ac_lib in '' resolv; do
25123 if test -z "$ac_lib"; then
25124 ac_res="none required"
25125 else
25126 ac_res=-l$ac_lib
25127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25128 fi
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130if { (ac_try="$ac_link"
25131case "(($ac_try" in
25132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25134esac
25135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136 (eval "$ac_link") 2>conftest.er1
25137 ac_status=$?
25138 grep -v '^ *+' conftest.er1 >conftest.err
25139 rm -f conftest.er1
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } && {
25143 test -z "$ac_c_werror_flag" ||
25144 test ! -s conftest.err
25145 } && test -s conftest$ac_exeext &&
25146 $as_test_x conftest$ac_exeext; then
25147 ac_cv_search_getrrsetbyname=$ac_res
25148else
25149 echo "$as_me: failed program was:" >&5
25150sed 's/^/| /' conftest.$ac_ext >&5
25151
25152
25153fi
25154
25155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25156 conftest$ac_exeext
25157 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25158 break
25159fi
25160done
25161if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25162 :
25163else
25164 ac_cv_search_getrrsetbyname=no
25165fi
25166rm conftest.$ac_ext
25167LIBS=$ac_func_search_save_LIBS
25168fi
25169{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
25170echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
25171ac_res=$ac_cv_search_getrrsetbyname
25172if test "$ac_res" != no; then
25173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25174
25175cat >>confdefs.h <<\_ACEOF
25176#define HAVE_GETRRSETBYNAME 1
25177_ACEOF
25178
25179else
25180
25181 # Needed by our getrrsetbyname()
25182 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
25183echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
25184if test "${ac_cv_search_res_query+set}" = set; then
25185 echo $ECHO_N "(cached) $ECHO_C" >&6
25186else
25187 ac_func_search_save_LIBS=$LIBS
25188cat >conftest.$ac_ext <<_ACEOF
25189/* confdefs.h. */
25190_ACEOF
25191cat confdefs.h >>conftest.$ac_ext
25192cat >>conftest.$ac_ext <<_ACEOF
25193/* end confdefs.h. */
25194
25195/* Override any GCC internal prototype to avoid an error.
25196 Use char because int might match the return type of a GCC
25197 builtin and then its argument prototype would still apply. */
25198#ifdef __cplusplus
25199extern "C"
25200#endif
25201char res_query ();
25202int
25203main ()
25204{
25205return res_query ();
25206 ;
25207 return 0;
25208}
25209_ACEOF
25210for ac_lib in '' resolv; do
25211 if test -z "$ac_lib"; then
25212 ac_res="none required"
25213 else
25214 ac_res=-l$ac_lib
25215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25216 fi
25217 rm -f conftest.$ac_objext conftest$ac_exeext
25218if { (ac_try="$ac_link"
25219case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25222esac
25223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_link") 2>conftest.er1
25225 ac_status=$?
25226 grep -v '^ *+' conftest.er1 >conftest.err
25227 rm -f conftest.er1
25228 cat conftest.err >&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } && {
25231 test -z "$ac_c_werror_flag" ||
25232 test ! -s conftest.err
25233 } && test -s conftest$ac_exeext &&
25234 $as_test_x conftest$ac_exeext; then
25235 ac_cv_search_res_query=$ac_res
25236else
25237 echo "$as_me: failed program was:" >&5
25238sed 's/^/| /' conftest.$ac_ext >&5
25239
25240
25241fi
25242
25243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25244 conftest$ac_exeext
25245 if test "${ac_cv_search_res_query+set}" = set; then
25246 break
25247fi
25248done
25249if test "${ac_cv_search_res_query+set}" = set; then
25250 :
25251else
25252 ac_cv_search_res_query=no
25253fi
25254rm conftest.$ac_ext
25255LIBS=$ac_func_search_save_LIBS
25256fi
25257{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
25258echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
25259ac_res=$ac_cv_search_res_query
25260if test "$ac_res" != no; then
25261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25262
25263fi
25264
25265 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
25266echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
25267if test "${ac_cv_search_dn_expand+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25269else
25270 ac_func_search_save_LIBS=$LIBS
25271cat >conftest.$ac_ext <<_ACEOF
25272/* confdefs.h. */
25273_ACEOF
25274cat confdefs.h >>conftest.$ac_ext
25275cat >>conftest.$ac_ext <<_ACEOF
25276/* end confdefs.h. */
25277
25278/* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25281#ifdef __cplusplus
25282extern "C"
25283#endif
25284char dn_expand ();
25285int
25286main ()
25287{
25288return dn_expand ();
25289 ;
25290 return 0;
25291}
25292_ACEOF
25293for ac_lib in '' resolv; do
25294 if test -z "$ac_lib"; then
25295 ac_res="none required"
25296 else
25297 ac_res=-l$ac_lib
25298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25299 fi
25300 rm -f conftest.$ac_objext conftest$ac_exeext
25301if { (ac_try="$ac_link"
25302case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25305esac
25306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_link") 2>conftest.er1
25308 ac_status=$?
25309 grep -v '^ *+' conftest.er1 >conftest.err
25310 rm -f conftest.er1
25311 cat conftest.err >&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && {
25314 test -z "$ac_c_werror_flag" ||
25315 test ! -s conftest.err
25316 } && test -s conftest$ac_exeext &&
25317 $as_test_x conftest$ac_exeext; then
25318 ac_cv_search_dn_expand=$ac_res
25319else
25320 echo "$as_me: failed program was:" >&5
25321sed 's/^/| /' conftest.$ac_ext >&5
25322
25323
25324fi
25325
25326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25327 conftest$ac_exeext
25328 if test "${ac_cv_search_dn_expand+set}" = set; then
25329 break
25330fi
25331done
25332if test "${ac_cv_search_dn_expand+set}" = set; then
25333 :
25334else
25335 ac_cv_search_dn_expand=no
25336fi
25337rm conftest.$ac_ext
25338LIBS=$ac_func_search_save_LIBS
25339fi
25340{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
25341echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
25342ac_res=$ac_cv_search_dn_expand
25343if test "$ac_res" != no; then
25344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25345
25346fi
25347
25348 { echo "$as_me:$LINENO: checking if res_query will link" >&5
25349echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
25350 cat >conftest.$ac_ext <<_ACEOF
25351/* confdefs.h. */
25352_ACEOF
25353cat confdefs.h >>conftest.$ac_ext
25354cat >>conftest.$ac_ext <<_ACEOF
25355/* end confdefs.h. */
25356
25357/* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply. */
25360#ifdef __cplusplus
25361extern "C"
25362#endif
25363char res_query ();
25364int
25365main ()
25366{
25367return res_query ();
25368 ;
25369 return 0;
25370}
25371_ACEOF
25372rm -f conftest.$ac_objext conftest$ac_exeext
25373if { (ac_try="$ac_link"
25374case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25377esac
25378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_link") 2>conftest.er1
25380 ac_status=$?
25381 grep -v '^ *+' conftest.er1 >conftest.err
25382 rm -f conftest.er1
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); } && {
25386 test -z "$ac_c_werror_flag" ||
25387 test ! -s conftest.err
25388 } && test -s conftest$ac_exeext &&
25389 $as_test_x conftest$ac_exeext; then
25390 { echo "$as_me:$LINENO: result: yes" >&5
25391echo "${ECHO_T}yes" >&6; }
25392else
25393 echo "$as_me: failed program was:" >&5
25394sed 's/^/| /' conftest.$ac_ext >&5
25395
25396 { echo "$as_me:$LINENO: result: no" >&5
25397echo "${ECHO_T}no" >&6; }
25398 saved_LIBS="$LIBS"
25399 LIBS="$LIBS -lresolv"
25400 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
25401echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25403
25404#include <resolv.h>
25405int main()
25406{
25407 res_query (0, 0, 0, 0, 0);
25408 return 0;
25409}
25410
25411_ACEOF
25412rm -f conftest.$ac_objext conftest$ac_exeext
25413if { (ac_try="$ac_link"
25414case "(($ac_try" in
25415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25416 *) ac_try_echo=$ac_try;;
25417esac
25418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25419 (eval "$ac_link") 2>conftest.er1
25420 ac_status=$?
25421 grep -v '^ *+' conftest.er1 >conftest.err
25422 rm -f conftest.er1
25423 cat conftest.err >&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); } && {
25426 test -z "$ac_c_werror_flag" ||
25427 test ! -s conftest.err
25428 } && test -s conftest$ac_exeext &&
25429 $as_test_x conftest$ac_exeext; then
25430 LIBS="$LIBS -lresolv"
25431 { echo "$as_me:$LINENO: result: yes" >&5
25432echo "${ECHO_T}yes" >&6; }
25433else
25434 echo "$as_me: failed program was:" >&5
25435sed 's/^/| /' conftest.$ac_ext >&5
25436
25437 LIBS="$saved_LIBS"
25438 { echo "$as_me:$LINENO: result: no" >&5
25439echo "${ECHO_T}no" >&6; }
25440fi
25441
25442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25443 conftest$ac_exeext conftest.$ac_ext
25444
25445fi
25446
25447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25448 conftest$ac_exeext conftest.$ac_ext
25449
25450
25451for ac_func in _getshort _getlong
25452do
25453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25458else
25459 cat >conftest.$ac_ext <<_ACEOF
25460/* confdefs.h. */
25461_ACEOF
25462cat confdefs.h >>conftest.$ac_ext
25463cat >>conftest.$ac_ext <<_ACEOF
25464/* end confdefs.h. */
25465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25467#define $ac_func innocuous_$ac_func
25468
25469/* System header to define __stub macros and hopefully few prototypes,
25470 which can conflict with char $ac_func (); below.
25471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25472 <limits.h> exists even on freestanding compilers. */
25473
25474#ifdef __STDC__
25475# include <limits.h>
25476#else
25477# include <assert.h>
25478#endif
25479
25480#undef $ac_func
25481
25482/* Override any GCC internal prototype to avoid an error.
25483 Use char because int might match the return type of a GCC
25484 builtin and then its argument prototype would still apply. */
25485#ifdef __cplusplus
25486extern "C"
25487#endif
25488char $ac_func ();
25489/* The GNU C library defines this for functions which it implements
25490 to always fail with ENOSYS. Some functions are actually named
25491 something starting with __ and the normal name is an alias. */
25492#if defined __stub_$ac_func || defined __stub___$ac_func
25493choke me
25494#endif
25495
25496int
25497main ()
25498{
25499return $ac_func ();
25500 ;
25501 return 0;
25502}
25503_ACEOF
25504rm -f conftest.$ac_objext conftest$ac_exeext
25505if { (ac_try="$ac_link"
25506case "(($ac_try" in
25507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25508 *) ac_try_echo=$ac_try;;
25509esac
25510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25511 (eval "$ac_link") 2>conftest.er1
25512 ac_status=$?
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } && {
25518 test -z "$ac_c_werror_flag" ||
25519 test ! -s conftest.err
25520 } && test -s conftest$ac_exeext &&
25521 $as_test_x conftest$ac_exeext; then
25522 eval "$as_ac_var=yes"
25523else
25524 echo "$as_me: failed program was:" >&5
25525sed 's/^/| /' conftest.$ac_ext >&5
25526
25527 eval "$as_ac_var=no"
25528fi
25529
25530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25531 conftest$ac_exeext conftest.$ac_ext
25532fi
25533ac_res=`eval echo '${'$as_ac_var'}'`
25534 { echo "$as_me:$LINENO: result: $ac_res" >&5
25535echo "${ECHO_T}$ac_res" >&6; }
25536if test `eval echo '${'$as_ac_var'}'` = yes; then
25537 cat >>confdefs.h <<_ACEOF
25538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25539_ACEOF
25540
25541fi
25542done
25543
25544 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
25545echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
25546if test "${ac_cv_have_decl__getshort+set}" = set; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25548else
25549 cat >conftest.$ac_ext <<_ACEOF
25550/* confdefs.h. */
25551_ACEOF
25552cat confdefs.h >>conftest.$ac_ext
25553cat >>conftest.$ac_ext <<_ACEOF
25554/* end confdefs.h. */
25555#include <sys/types.h>
25556 #include <arpa/nameser.h>
25557
25558int
25559main ()
25560{
25561#ifndef _getshort
25562 (void) _getshort;
25563#endif
25564
25565 ;
25566 return 0;
25567}
25568_ACEOF
25569rm -f conftest.$ac_objext
25570if { (ac_try="$ac_compile"
25571case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25574esac
25575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25576 (eval "$ac_compile") 2>conftest.er1
25577 ac_status=$?
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } && {
25583 test -z "$ac_c_werror_flag" ||
25584 test ! -s conftest.err
25585 } && test -s conftest.$ac_objext; then
25586 ac_cv_have_decl__getshort=yes
25587else
25588 echo "$as_me: failed program was:" >&5
25589sed 's/^/| /' conftest.$ac_ext >&5
25590
25591 ac_cv_have_decl__getshort=no
25592fi
25593
25594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595fi
25596{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
25597echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
25598if test $ac_cv_have_decl__getshort = yes; then
25599
25600cat >>confdefs.h <<_ACEOF
25601#define HAVE_DECL__GETSHORT 1
25602_ACEOF
25603
25604
25605else
25606 cat >>confdefs.h <<_ACEOF
25607#define HAVE_DECL__GETSHORT 0
25608_ACEOF
25609
25610
25611fi
25612{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
25613echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
25614if test "${ac_cv_have_decl__getlong+set}" = set; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25616else
25617 cat >conftest.$ac_ext <<_ACEOF
25618/* confdefs.h. */
25619_ACEOF
25620cat confdefs.h >>conftest.$ac_ext
25621cat >>conftest.$ac_ext <<_ACEOF
25622/* end confdefs.h. */
25623#include <sys/types.h>
25624 #include <arpa/nameser.h>
25625
25626int
25627main ()
25628{
25629#ifndef _getlong
25630 (void) _getlong;
25631#endif
25632
25633 ;
25634 return 0;
25635}
25636_ACEOF
25637rm -f conftest.$ac_objext
25638if { (ac_try="$ac_compile"
25639case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25642esac
25643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 ac_cv_have_decl__getlong=yes
25655else
25656 echo "$as_me: failed program was:" >&5
25657sed 's/^/| /' conftest.$ac_ext >&5
25658
25659 ac_cv_have_decl__getlong=no
25660fi
25661
25662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663fi
25664{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
25665echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
25666if test $ac_cv_have_decl__getlong = yes; then
25667
25668cat >>confdefs.h <<_ACEOF
25669#define HAVE_DECL__GETLONG 1
25670_ACEOF
25671
25672
25673else
25674 cat >>confdefs.h <<_ACEOF
25675#define HAVE_DECL__GETLONG 0
25676_ACEOF
25677
25678
25679fi
25680
25681
25682 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
25683echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
25684if test "${ac_cv_member_HEADER_ad+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25686else
25687 cat >conftest.$ac_ext <<_ACEOF
25688/* confdefs.h. */
25689_ACEOF
25690cat confdefs.h >>conftest.$ac_ext
25691cat >>conftest.$ac_ext <<_ACEOF
25692/* end confdefs.h. */
25693#include <arpa/nameser.h>
25694
25695int
25696main ()
25697{
25698static HEADER ac_aggr;
25699if (ac_aggr.ad)
25700return 0;
25701 ;
25702 return 0;
25703}
25704_ACEOF
25705rm -f conftest.$ac_objext
25706if { (ac_try="$ac_compile"
25707case "(($ac_try" in
25708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709 *) ac_try_echo=$ac_try;;
25710esac
25711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712 (eval "$ac_compile") 2>conftest.er1
25713 ac_status=$?
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } && {
25719 test -z "$ac_c_werror_flag" ||
25720 test ! -s conftest.err
25721 } && test -s conftest.$ac_objext; then
25722 ac_cv_member_HEADER_ad=yes
25723else
25724 echo "$as_me: failed program was:" >&5
25725sed 's/^/| /' conftest.$ac_ext >&5
25726
25727 cat >conftest.$ac_ext <<_ACEOF
25728/* confdefs.h. */
25729_ACEOF
25730cat confdefs.h >>conftest.$ac_ext
25731cat >>conftest.$ac_ext <<_ACEOF
25732/* end confdefs.h. */
25733#include <arpa/nameser.h>
25734
25735int
25736main ()
25737{
25738static HEADER ac_aggr;
25739if (sizeof ac_aggr.ad)
25740return 0;
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext
25746if { (ac_try="$ac_compile"
25747case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25750esac
25751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752 (eval "$ac_compile") 2>conftest.er1
25753 ac_status=$?
25754 grep -v '^ *+' conftest.er1 >conftest.err
25755 rm -f conftest.er1
25756 cat conftest.err >&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } && {
25759 test -z "$ac_c_werror_flag" ||
25760 test ! -s conftest.err
25761 } && test -s conftest.$ac_objext; then
25762 ac_cv_member_HEADER_ad=yes
25763else
25764 echo "$as_me: failed program was:" >&5
25765sed 's/^/| /' conftest.$ac_ext >&5
25766
25767 ac_cv_member_HEADER_ad=no
25768fi
25769
25770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25771fi
25772
25773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25774fi
25775{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
25776echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
25777if test $ac_cv_member_HEADER_ad = yes; then
25778
25779cat >>confdefs.h <<\_ACEOF
25780#define HAVE_HEADER_AD 1
25781_ACEOF
25782
25783fi
25784
25785
25786fi
25787
25788
25789{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
25790echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
25791cat >conftest.$ac_ext <<_ACEOF
25792
25793#include <stdio.h>
25794#if HAVE_SYS_TYPES_H
25795# include <sys/types.h>
25796#endif
25797#include <netinet/in.h>
25798#include <arpa/nameser.h>
25799#include <resolv.h>
25800extern struct __res_state _res;
25801int main() { return 0; }
25802
25803_ACEOF
25804rm -f conftest.$ac_objext conftest$ac_exeext
25805if { (ac_try="$ac_link"
25806case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25809esac
25810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811 (eval "$ac_link") 2>conftest.er1
25812 ac_status=$?
25813 grep -v '^ *+' conftest.er1 >conftest.err
25814 rm -f conftest.er1
25815 cat conftest.err >&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest$ac_exeext &&
25821 $as_test_x conftest$ac_exeext; then
25822 { echo "$as_me:$LINENO: result: yes" >&5
25823echo "${ECHO_T}yes" >&6; }
25824
25825cat >>confdefs.h <<\_ACEOF
25826#define HAVE__RES_EXTERN 1
25827_ACEOF
25828
25829
25830else
25831 echo "$as_me: failed program was:" >&5
25832sed 's/^/| /' conftest.$ac_ext >&5
25833
25834 { echo "$as_me:$LINENO: result: no" >&5
25835echo "${ECHO_T}no" >&6; }
25836
25837fi
25838
25839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25840 conftest$ac_exeext conftest.$ac_ext
25841
25842# Check whether user wants SELinux support
25843SELINUX_MSG="no"
25844LIBSELINUX=""
25845
25846# Check whether --with-selinux was given.
25847if test "${with_selinux+set}" = set; then
25848 withval=$with_selinux; if test "x$withval" != "xno" ; then
25849 save_LIBS="$LIBS"
25850
25851cat >>confdefs.h <<\_ACEOF
25852#define WITH_SELINUX 1
25853_ACEOF
25854
25855 SELINUX_MSG="yes"
25856 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25857 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25858echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25859if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25860 echo $ECHO_N "(cached) $ECHO_C" >&6
25861fi
25862{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25863echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25864else
25865 # Is the header compilable?
25866{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
25867echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
25868cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874$ac_includes_default
25875#include <selinux/selinux.h>
25876_ACEOF
25877rm -f conftest.$ac_objext
25878if { (ac_try="$ac_compile"
25879case "(($ac_try" in
25880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881 *) ac_try_echo=$ac_try;;
25882esac
25883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25884 (eval "$ac_compile") 2>conftest.er1
25885 ac_status=$?
25886 grep -v '^ *+' conftest.er1 >conftest.err
25887 rm -f conftest.er1
25888 cat conftest.err >&5
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); } && {
25891 test -z "$ac_c_werror_flag" ||
25892 test ! -s conftest.err
25893 } && test -s conftest.$ac_objext; then
25894 ac_header_compiler=yes
25895else
25896 echo "$as_me: failed program was:" >&5
25897sed 's/^/| /' conftest.$ac_ext >&5
25898
25899 ac_header_compiler=no
25900fi
25901
25902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25904echo "${ECHO_T}$ac_header_compiler" >&6; }
25905
25906# Is the header present?
25907{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
25908echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
25909cat >conftest.$ac_ext <<_ACEOF
25910/* confdefs.h. */
25911_ACEOF
25912cat confdefs.h >>conftest.$ac_ext
25913cat >>conftest.$ac_ext <<_ACEOF
25914/* end confdefs.h. */
25915#include <selinux/selinux.h>
25916_ACEOF
25917if { (ac_try="$ac_cpp conftest.$ac_ext"
25918case "(($ac_try" in
25919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25920 *) ac_try_echo=$ac_try;;
25921esac
25922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25924 ac_status=$?
25925 grep -v '^ *+' conftest.er1 >conftest.err
25926 rm -f conftest.er1
25927 cat conftest.err >&5
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); } >/dev/null && {
25930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25931 test ! -s conftest.err
25932 }; then
25933 ac_header_preproc=yes
25934else
25935 echo "$as_me: failed program was:" >&5
25936sed 's/^/| /' conftest.$ac_ext >&5
25937
25938 ac_header_preproc=no
25939fi
25940
25941rm -f conftest.err conftest.$ac_ext
25942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25943echo "${ECHO_T}$ac_header_preproc" >&6; }
25944
25945# So? What about this header?
25946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25947 yes:no: )
25948 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
25949echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25950 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
25951echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
25952 ac_header_preproc=yes
25953 ;;
25954 no:yes:* )
25955 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
25956echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
25957 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
25958echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
25959 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
25960echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
25961 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
25962echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
25963 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
25964echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
25965 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
25966echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
25967 ( cat <<\_ASBOX
25968## ------------------------------------------- ##
25969## Report this to openssh-unix-dev@mindrot.org ##
25970## ------------------------------------------- ##
25971_ASBOX
25972 ) | sed "s/^/$as_me: WARNING: /" >&2
25973 ;;
25974esac
25975{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25976echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25977if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25978 echo $ECHO_N "(cached) $ECHO_C" >&6
25979else
25980 ac_cv_header_selinux_selinux_h=$ac_header_preproc
25981fi
25982{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25983echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25984
25985fi
25986if test $ac_cv_header_selinux_selinux_h = yes; then
25987 :
25988else
25989 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
25990echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
25991 { (exit 1); exit 1; }; }
25992fi
25993
25994
25995 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
25996echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
25997if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
25999else
26000 ac_check_lib_save_LIBS=$LIBS
26001LIBS="-lselinux $LIBS"
26002cat >conftest.$ac_ext <<_ACEOF
26003/* confdefs.h. */
26004_ACEOF
26005cat confdefs.h >>conftest.$ac_ext
26006cat >>conftest.$ac_ext <<_ACEOF
26007/* end confdefs.h. */
26008
26009/* Override any GCC internal prototype to avoid an error.
26010 Use char because int might match the return type of a GCC
26011 builtin and then its argument prototype would still apply. */
26012#ifdef __cplusplus
26013extern "C"
26014#endif
26015char setexeccon ();
26016int
26017main ()
26018{
26019return setexeccon ();
26020 ;
26021 return 0;
26022}
26023_ACEOF
26024rm -f conftest.$ac_objext conftest$ac_exeext
26025if { (ac_try="$ac_link"
26026case "(($ac_try" in
26027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028 *) ac_try_echo=$ac_try;;
26029esac
26030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26031 (eval "$ac_link") 2>conftest.er1
26032 ac_status=$?
26033 grep -v '^ *+' conftest.er1 >conftest.err
26034 rm -f conftest.er1
26035 cat conftest.err >&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); } && {
26038 test -z "$ac_c_werror_flag" ||
26039 test ! -s conftest.err
26040 } && test -s conftest$ac_exeext &&
26041 $as_test_x conftest$ac_exeext; then
26042 ac_cv_lib_selinux_setexeccon=yes
26043else
26044 echo "$as_me: failed program was:" >&5
26045sed 's/^/| /' conftest.$ac_ext >&5
26046
26047 ac_cv_lib_selinux_setexeccon=no
26048fi
26049
26050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26051 conftest$ac_exeext conftest.$ac_ext
26052LIBS=$ac_check_lib_save_LIBS
26053fi
26054{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
26055echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
26056if test $ac_cv_lib_selinux_setexeccon = yes; then
26057 LIBSELINUX="-lselinux"
26058else
26059 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
26060echo "$as_me: error: SELinux support requires libselinux library" >&2;}
26061 { (exit 1); exit 1; }; }
26062fi
26063
26064 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
26065
26066
26067for ac_func in getseuserbyname get_default_context_with_level
26068do
26069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26070{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26073 echo $ECHO_N "(cached) $ECHO_C" >&6
26074else
26075 cat >conftest.$ac_ext <<_ACEOF
26076/* confdefs.h. */
26077_ACEOF
26078cat confdefs.h >>conftest.$ac_ext
26079cat >>conftest.$ac_ext <<_ACEOF
26080/* end confdefs.h. */
26081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26083#define $ac_func innocuous_$ac_func
26084
26085/* System header to define __stub macros and hopefully few prototypes,
26086 which can conflict with char $ac_func (); below.
26087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26088 <limits.h> exists even on freestanding compilers. */
26089
26090#ifdef __STDC__
26091# include <limits.h>
26092#else
26093# include <assert.h>
26094#endif
26095
26096#undef $ac_func
26097
26098/* Override any GCC internal prototype to avoid an error.
26099 Use char because int might match the return type of a GCC
26100 builtin and then its argument prototype would still apply. */
26101#ifdef __cplusplus
26102extern "C"
26103#endif
26104char $ac_func ();
26105/* The GNU C library defines this for functions which it implements
26106 to always fail with ENOSYS. Some functions are actually named
26107 something starting with __ and the normal name is an alias. */
26108#if defined __stub_$ac_func || defined __stub___$ac_func
26109choke me
26110#endif
26111
26112int
26113main ()
26114{
26115return $ac_func ();
26116 ;
26117 return 0;
26118}
26119_ACEOF
26120rm -f conftest.$ac_objext conftest$ac_exeext
26121if { (ac_try="$ac_link"
26122case "(($ac_try" in
26123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26124 *) ac_try_echo=$ac_try;;
26125esac
26126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26127 (eval "$ac_link") 2>conftest.er1
26128 ac_status=$?
26129 grep -v '^ *+' conftest.er1 >conftest.err
26130 rm -f conftest.er1
26131 cat conftest.err >&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); } && {
26134 test -z "$ac_c_werror_flag" ||
26135 test ! -s conftest.err
26136 } && test -s conftest$ac_exeext &&
26137 $as_test_x conftest$ac_exeext; then
26138 eval "$as_ac_var=yes"
26139else
26140 echo "$as_me: failed program was:" >&5
26141sed 's/^/| /' conftest.$ac_ext >&5
26142
26143 eval "$as_ac_var=no"
26144fi
26145
26146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26147 conftest$ac_exeext conftest.$ac_ext
26148fi
26149ac_res=`eval echo '${'$as_ac_var'}'`
26150 { echo "$as_me:$LINENO: result: $ac_res" >&5
26151echo "${ECHO_T}$ac_res" >&6; }
26152if test `eval echo '${'$as_ac_var'}'` = yes; then
26153 cat >>confdefs.h <<_ACEOF
26154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26155_ACEOF
26156
26157fi
26158done
26159
26160 LIBS="$save_LIBS"
26161 fi
26162
26163fi
26164
26165
26166# Check whether user wants Kerberos 5 support
26167KRB5_MSG="no"
26168
26169# Check whether --with-kerberos5 was given.
26170if test "${with_kerberos5+set}" = set; then
26171 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
26172 if test "x$withval" = "xyes" ; then
26173 KRB5ROOT="/usr/local"
26174 else
26175 KRB5ROOT=${withval}
26176 fi
26177
26178
26179cat >>confdefs.h <<\_ACEOF
26180#define KRB5 1
26181_ACEOF
26182
26183 KRB5_MSG="yes"
26184
26185 { echo "$as_me:$LINENO: checking for krb5-config" >&5
26186echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
26187 if test -x $KRB5ROOT/bin/krb5-config ; then
26188 KRB5CONF=$KRB5ROOT/bin/krb5-config
26189 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
26190echo "${ECHO_T}$KRB5CONF" >&6; }
26191
26192 { echo "$as_me:$LINENO: checking for gssapi support" >&5
26193echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
26194 if $KRB5CONF | grep gssapi >/dev/null ; then
26195 { echo "$as_me:$LINENO: result: yes" >&5
26196echo "${ECHO_T}yes" >&6; }
26197
26198cat >>confdefs.h <<\_ACEOF
26199#define GSSAPI 1
26200_ACEOF
26201
26202 k5confopts=gssapi
26203 else
26204 { echo "$as_me:$LINENO: result: no" >&5
26205echo "${ECHO_T}no" >&6; }
26206 k5confopts=""
26207 fi
26208 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
26209 K5LIBS="`$KRB5CONF --libs $k5confopts`"
26210 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
26211 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26212echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26213 cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
26219 #include <krb5.h>
26220int
26221main ()
26222{
26223 char *tmp = heimdal_version;
26224 ;
26225 return 0;
26226}
26227_ACEOF
26228rm -f conftest.$ac_objext
26229if { (ac_try="$ac_compile"
26230case "(($ac_try" in
26231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232 *) ac_try_echo=$ac_try;;
26233esac
26234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235 (eval "$ac_compile") 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } && {
26242 test -z "$ac_c_werror_flag" ||
26243 test ! -s conftest.err
26244 } && test -s conftest.$ac_objext; then
26245 { echo "$as_me:$LINENO: result: yes" >&5
26246echo "${ECHO_T}yes" >&6; }
26247
26248cat >>confdefs.h <<\_ACEOF
26249#define HEIMDAL 1
26250_ACEOF
26251
26252else
26253 echo "$as_me: failed program was:" >&5
26254sed 's/^/| /' conftest.$ac_ext >&5
26255
26256 { echo "$as_me:$LINENO: result: no" >&5
26257echo "${ECHO_T}no" >&6; }
26258
26259fi
26260
26261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26262 else
26263 { echo "$as_me:$LINENO: result: no" >&5
26264echo "${ECHO_T}no" >&6; }
26265 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
26266 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
26267 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26268echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26269 cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275 #include <krb5.h>
26276int
26277main ()
26278{
26279 char *tmp = heimdal_version;
26280 ;
26281 return 0;
26282}
26283_ACEOF
26284rm -f conftest.$ac_objext
26285if { (ac_try="$ac_compile"
26286case "(($ac_try" in
26287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288 *) ac_try_echo=$ac_try;;
26289esac
26290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26291 (eval "$ac_compile") 2>conftest.er1
26292 ac_status=$?
26293 grep -v '^ *+' conftest.er1 >conftest.err
26294 rm -f conftest.er1
26295 cat conftest.err >&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } && {
26298 test -z "$ac_c_werror_flag" ||
26299 test ! -s conftest.err
26300 } && test -s conftest.$ac_objext; then
26301 { echo "$as_me:$LINENO: result: yes" >&5
26302echo "${ECHO_T}yes" >&6; }
26303 cat >>confdefs.h <<\_ACEOF
26304#define HEIMDAL 1
26305_ACEOF
26306
26307 K5LIBS="-lkrb5 -ldes"
26308 K5LIBS="$K5LIBS -lcom_err -lasn1"
26309 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
26310echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
26311if test "${ac_cv_lib_roken_net_write+set}" = set; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26313else
26314 ac_check_lib_save_LIBS=$LIBS
26315LIBS="-lroken $LIBS"
26316cat >conftest.$ac_ext <<_ACEOF
26317/* confdefs.h. */
26318_ACEOF
26319cat confdefs.h >>conftest.$ac_ext
26320cat >>conftest.$ac_ext <<_ACEOF
26321/* end confdefs.h. */
26322
26323/* Override any GCC internal prototype to avoid an error.
26324 Use char because int might match the return type of a GCC
26325 builtin and then its argument prototype would still apply. */
26326#ifdef __cplusplus
26327extern "C"
26328#endif
26329char net_write ();
26330int
26331main ()
26332{
26333return net_write ();
26334 ;
26335 return 0;
26336}
26337_ACEOF
26338rm -f conftest.$ac_objext conftest$ac_exeext
26339if { (ac_try="$ac_link"
26340case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26343esac
26344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_link") 2>conftest.er1
26346 ac_status=$?
26347 grep -v '^ *+' conftest.er1 >conftest.err
26348 rm -f conftest.er1
26349 cat conftest.err >&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); } && {
26352 test -z "$ac_c_werror_flag" ||
26353 test ! -s conftest.err
26354 } && test -s conftest$ac_exeext &&
26355 $as_test_x conftest$ac_exeext; then
26356 ac_cv_lib_roken_net_write=yes
26357else
26358 echo "$as_me: failed program was:" >&5
26359sed 's/^/| /' conftest.$ac_ext >&5
26360
26361 ac_cv_lib_roken_net_write=no
26362fi
26363
26364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26365 conftest$ac_exeext conftest.$ac_ext
26366LIBS=$ac_check_lib_save_LIBS
26367fi
26368{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
26369echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
26370if test $ac_cv_lib_roken_net_write = yes; then
26371 K5LIBS="$K5LIBS -lroken"
26372fi
26373
26374
26375else
26376 echo "$as_me: failed program was:" >&5
26377sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 { echo "$as_me:$LINENO: result: no" >&5
26380echo "${ECHO_T}no" >&6; }
26381 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
26382
26383
26384fi
26385
26386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
26388echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
26389if test "${ac_cv_search_dn_expand+set}" = set; then
26390 echo $ECHO_N "(cached) $ECHO_C" >&6
26391else
26392 ac_func_search_save_LIBS=$LIBS
26393cat >conftest.$ac_ext <<_ACEOF
26394/* confdefs.h. */
26395_ACEOF
26396cat confdefs.h >>conftest.$ac_ext
26397cat >>conftest.$ac_ext <<_ACEOF
26398/* end confdefs.h. */
26399
26400/* Override any GCC internal prototype to avoid an error.
26401 Use char because int might match the return type of a GCC
26402 builtin and then its argument prototype would still apply. */
26403#ifdef __cplusplus
26404extern "C"
26405#endif
26406char dn_expand ();
26407int
26408main ()
26409{
26410return dn_expand ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
26415for ac_lib in '' resolv; do
26416 if test -z "$ac_lib"; then
26417 ac_res="none required"
26418 else
26419 ac_res=-l$ac_lib
26420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26421 fi
26422 rm -f conftest.$ac_objext conftest$ac_exeext
26423if { (ac_try="$ac_link"
26424case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26427esac
26428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26429 (eval "$ac_link") 2>conftest.er1
26430 ac_status=$?
26431 grep -v '^ *+' conftest.er1 >conftest.err
26432 rm -f conftest.er1
26433 cat conftest.err >&5
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && {
26436 test -z "$ac_c_werror_flag" ||
26437 test ! -s conftest.err
26438 } && test -s conftest$ac_exeext &&
26439 $as_test_x conftest$ac_exeext; then
26440 ac_cv_search_dn_expand=$ac_res
26441else
26442 echo "$as_me: failed program was:" >&5
26443sed 's/^/| /' conftest.$ac_ext >&5
26444
26445
26446fi
26447
26448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26449 conftest$ac_exeext
26450 if test "${ac_cv_search_dn_expand+set}" = set; then
26451 break
26452fi
26453done
26454if test "${ac_cv_search_dn_expand+set}" = set; then
26455 :
26456else
26457 ac_cv_search_dn_expand=no
26458fi
26459rm conftest.$ac_ext
26460LIBS=$ac_func_search_save_LIBS
26461fi
26462{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
26463echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
26464ac_res=$ac_cv_search_dn_expand
26465if test "$ac_res" != no; then
26466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26467
26468fi
26469
26470
26471 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
26472echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
26473if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26475else
26476 ac_check_lib_save_LIBS=$LIBS
26477LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
26478cat >conftest.$ac_ext <<_ACEOF
26479/* confdefs.h. */
26480_ACEOF
26481cat confdefs.h >>conftest.$ac_ext
26482cat >>conftest.$ac_ext <<_ACEOF
26483/* end confdefs.h. */
26484
26485/* Override any GCC internal prototype to avoid an error.
26486 Use char because int might match the return type of a GCC
26487 builtin and then its argument prototype would still apply. */
26488#ifdef __cplusplus
26489extern "C"
26490#endif
26491char gss_init_sec_context ();
26492int
26493main ()
26494{
26495return gss_init_sec_context ();
26496 ;
26497 return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext conftest$ac_exeext
26501if { (ac_try="$ac_link"
26502case "(($ac_try" in
26503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504 *) ac_try_echo=$ac_try;;
26505esac
26506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_link") 2>conftest.er1
26508 ac_status=$?
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } && {
26514 test -z "$ac_c_werror_flag" ||
26515 test ! -s conftest.err
26516 } && test -s conftest$ac_exeext &&
26517 $as_test_x conftest$ac_exeext; then
26518 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
26519else
26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26523 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
26524fi
26525
26526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26527 conftest$ac_exeext conftest.$ac_ext
26528LIBS=$ac_check_lib_save_LIBS
26529fi
26530{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
26531echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
26532if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
26533 cat >>confdefs.h <<\_ACEOF
26534#define GSSAPI 1
26535_ACEOF
26536
26537 K5LIBS="-lgssapi_krb5 $K5LIBS"
26538else
26539 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
26540echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
26541if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
26542 echo $ECHO_N "(cached) $ECHO_C" >&6
26543else
26544 ac_check_lib_save_LIBS=$LIBS
26545LIBS="-lgssapi $K5LIBS $LIBS"
26546cat >conftest.$ac_ext <<_ACEOF
26547/* confdefs.h. */
26548_ACEOF
26549cat confdefs.h >>conftest.$ac_ext
26550cat >>conftest.$ac_ext <<_ACEOF
26551/* end confdefs.h. */
26552
26553/* Override any GCC internal prototype to avoid an error.
26554 Use char because int might match the return type of a GCC
26555 builtin and then its argument prototype would still apply. */
26556#ifdef __cplusplus
26557extern "C"
26558#endif
26559char gss_init_sec_context ();
26560int
26561main ()
26562{
26563return gss_init_sec_context ();
26564 ;
26565 return 0;
26566}
26567_ACEOF
26568rm -f conftest.$ac_objext conftest$ac_exeext
26569if { (ac_try="$ac_link"
26570case "(($ac_try" in
26571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26572 *) ac_try_echo=$ac_try;;
26573esac
26574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26575 (eval "$ac_link") 2>conftest.er1
26576 ac_status=$?
26577 grep -v '^ *+' conftest.er1 >conftest.err
26578 rm -f conftest.er1
26579 cat conftest.err >&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); } && {
26582 test -z "$ac_c_werror_flag" ||
26583 test ! -s conftest.err
26584 } && test -s conftest$ac_exeext &&
26585 $as_test_x conftest$ac_exeext; then
26586 ac_cv_lib_gssapi_gss_init_sec_context=yes
26587else
26588 echo "$as_me: failed program was:" >&5
26589sed 's/^/| /' conftest.$ac_ext >&5
26590
26591 ac_cv_lib_gssapi_gss_init_sec_context=no
26592fi
26593
26594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26595 conftest$ac_exeext conftest.$ac_ext
26596LIBS=$ac_check_lib_save_LIBS
26597fi
26598{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
26599echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
26600if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
26601 cat >>confdefs.h <<\_ACEOF
26602#define GSSAPI 1
26603_ACEOF
26604
26605 K5LIBS="-lgssapi $K5LIBS"
26606else
26607 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
26608echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
26609fi
26610
26611
26612fi
26613
26614
26615 if test "${ac_cv_header_gssapi_h+set}" = set; then
26616 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
26617echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26618if test "${ac_cv_header_gssapi_h+set}" = set; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26620fi
26621{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26622echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26623else
26624 # Is the header compilable?
26625{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
26626echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
26627cat >conftest.$ac_ext <<_ACEOF
26628/* confdefs.h. */
26629_ACEOF
26630cat confdefs.h >>conftest.$ac_ext
26631cat >>conftest.$ac_ext <<_ACEOF
26632/* end confdefs.h. */
26633$ac_includes_default
26634#include <gssapi.h>
26635_ACEOF
26636rm -f conftest.$ac_objext
26637if { (ac_try="$ac_compile"
26638case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26641esac
26642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643 (eval "$ac_compile") 2>conftest.er1
26644 ac_status=$?
26645 grep -v '^ *+' conftest.er1 >conftest.err
26646 rm -f conftest.er1
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } && {
26650 test -z "$ac_c_werror_flag" ||
26651 test ! -s conftest.err
26652 } && test -s conftest.$ac_objext; then
26653 ac_header_compiler=yes
26654else
26655 echo "$as_me: failed program was:" >&5
26656sed 's/^/| /' conftest.$ac_ext >&5
26657
26658 ac_header_compiler=no
26659fi
26660
26661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26663echo "${ECHO_T}$ac_header_compiler" >&6; }
26664
26665# Is the header present?
26666{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
26667echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
26668cat >conftest.$ac_ext <<_ACEOF
26669/* confdefs.h. */
26670_ACEOF
26671cat confdefs.h >>conftest.$ac_ext
26672cat >>conftest.$ac_ext <<_ACEOF
26673/* end confdefs.h. */
26674#include <gssapi.h>
26675_ACEOF
26676if { (ac_try="$ac_cpp conftest.$ac_ext"
26677case "(($ac_try" in
26678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679 *) ac_try_echo=$ac_try;;
26680esac
26681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26683 ac_status=$?
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } >/dev/null && {
26689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26690 test ! -s conftest.err
26691 }; then
26692 ac_header_preproc=yes
26693else
26694 echo "$as_me: failed program was:" >&5
26695sed 's/^/| /' conftest.$ac_ext >&5
26696
26697 ac_header_preproc=no
26698fi
26699
26700rm -f conftest.err conftest.$ac_ext
26701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26702echo "${ECHO_T}$ac_header_preproc" >&6; }
26703
26704# So? What about this header?
26705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26706 yes:no: )
26707 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
26708echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
26710echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
26711 ac_header_preproc=yes
26712 ;;
26713 no:yes:* )
26714 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
26715echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
26717echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
26719echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
26721echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
26723echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
26725echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
26726 ( cat <<\_ASBOX
26727## ------------------------------------------- ##
26728## Report this to openssh-unix-dev@mindrot.org ##
26729## ------------------------------------------- ##
26730_ASBOX
26731 ) | sed "s/^/$as_me: WARNING: /" >&2
26732 ;;
26733esac
26734{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
26735echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26736if test "${ac_cv_header_gssapi_h+set}" = set; then
26737 echo $ECHO_N "(cached) $ECHO_C" >&6
26738else
26739 ac_cv_header_gssapi_h=$ac_header_preproc
26740fi
26741{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26742echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26743
26744fi
26745if test $ac_cv_header_gssapi_h = yes; then
26746 :
26747else
26748 unset ac_cv_header_gssapi_h
26749 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26750
26751for ac_header in gssapi.h
26752do
26753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759fi
26760ac_res=`eval echo '${'$as_ac_Header'}'`
26761 { echo "$as_me:$LINENO: result: $ac_res" >&5
26762echo "${ECHO_T}$ac_res" >&6; }
26763else
26764 # Is the header compilable?
26765{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26767cat >conftest.$ac_ext <<_ACEOF
26768/* confdefs.h. */
26769_ACEOF
26770cat confdefs.h >>conftest.$ac_ext
26771cat >>conftest.$ac_ext <<_ACEOF
26772/* end confdefs.h. */
26773$ac_includes_default
26774#include <$ac_header>
26775_ACEOF
26776rm -f conftest.$ac_objext
26777if { (ac_try="$ac_compile"
26778case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26781esac
26782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_compile") 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest.$ac_objext; then
26793 ac_header_compiler=yes
26794else
26795 echo "$as_me: failed program was:" >&5
26796sed 's/^/| /' conftest.$ac_ext >&5
26797
26798 ac_header_compiler=no
26799fi
26800
26801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26803echo "${ECHO_T}$ac_header_compiler" >&6; }
26804
26805# Is the header present?
26806{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26808cat >conftest.$ac_ext <<_ACEOF
26809/* confdefs.h. */
26810_ACEOF
26811cat confdefs.h >>conftest.$ac_ext
26812cat >>conftest.$ac_ext <<_ACEOF
26813/* end confdefs.h. */
26814#include <$ac_header>
26815_ACEOF
26816if { (ac_try="$ac_cpp conftest.$ac_ext"
26817case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26820esac
26821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26823 ac_status=$?
26824 grep -v '^ *+' conftest.er1 >conftest.err
26825 rm -f conftest.er1
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } >/dev/null && {
26829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26830 test ! -s conftest.err
26831 }; then
26832 ac_header_preproc=yes
26833else
26834 echo "$as_me: failed program was:" >&5
26835sed 's/^/| /' conftest.$ac_ext >&5
26836
26837 ac_header_preproc=no
26838fi
26839
26840rm -f conftest.err conftest.$ac_ext
26841{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26842echo "${ECHO_T}$ac_header_preproc" >&6; }
26843
26844# So? What about this header?
26845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26846 yes:no: )
26847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26851 ac_header_preproc=yes
26852 ;;
26853 no:yes:* )
26854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26866 ( cat <<\_ASBOX
26867## ------------------------------------------- ##
26868## Report this to openssh-unix-dev@mindrot.org ##
26869## ------------------------------------------- ##
26870_ASBOX
26871 ) | sed "s/^/$as_me: WARNING: /" >&2
26872 ;;
26873esac
26874{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26878else
26879 eval "$as_ac_Header=\$ac_header_preproc"
26880fi
26881ac_res=`eval echo '${'$as_ac_Header'}'`
26882 { echo "$as_me:$LINENO: result: $ac_res" >&5
26883echo "${ECHO_T}$ac_res" >&6; }
26884
26885fi
26886if test `eval echo '${'$as_ac_Header'}'` = yes; then
26887 cat >>confdefs.h <<_ACEOF
26888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26889_ACEOF
26890
26891else
26892 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
26893echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
26894
26895fi
26896
26897done
26898
26899
26900
26901fi
26902
26903
26904
26905 oldCPP="$CPPFLAGS"
26906 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26907 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26908 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26909echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26910if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26911 echo $ECHO_N "(cached) $ECHO_C" >&6
26912fi
26913{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26914echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26915else
26916 # Is the header compilable?
26917{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
26918echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
26919cat >conftest.$ac_ext <<_ACEOF
26920/* confdefs.h. */
26921_ACEOF
26922cat confdefs.h >>conftest.$ac_ext
26923cat >>conftest.$ac_ext <<_ACEOF
26924/* end confdefs.h. */
26925$ac_includes_default
26926#include <gssapi_krb5.h>
26927_ACEOF
26928rm -f conftest.$ac_objext
26929if { (ac_try="$ac_compile"
26930case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26933esac
26934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_compile") 2>conftest.er1
26936 ac_status=$?
26937 grep -v '^ *+' conftest.er1 >conftest.err
26938 rm -f conftest.er1
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } && {
26942 test -z "$ac_c_werror_flag" ||
26943 test ! -s conftest.err
26944 } && test -s conftest.$ac_objext; then
26945 ac_header_compiler=yes
26946else
26947 echo "$as_me: failed program was:" >&5
26948sed 's/^/| /' conftest.$ac_ext >&5
26949
26950 ac_header_compiler=no
26951fi
26952
26953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26955echo "${ECHO_T}$ac_header_compiler" >&6; }
26956
26957# Is the header present?
26958{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
26959echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
26960cat >conftest.$ac_ext <<_ACEOF
26961/* confdefs.h. */
26962_ACEOF
26963cat confdefs.h >>conftest.$ac_ext
26964cat >>conftest.$ac_ext <<_ACEOF
26965/* end confdefs.h. */
26966#include <gssapi_krb5.h>
26967_ACEOF
26968if { (ac_try="$ac_cpp conftest.$ac_ext"
26969case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972esac
26973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } >/dev/null && {
26981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26982 test ! -s conftest.err
26983 }; then
26984 ac_header_preproc=yes
26985else
26986 echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
26989 ac_header_preproc=no
26990fi
26991
26992rm -f conftest.err conftest.$ac_ext
26993{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994echo "${ECHO_T}$ac_header_preproc" >&6; }
26995
26996# So? What about this header?
26997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26998 yes:no: )
26999 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
27000echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
27002echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
27003 ac_header_preproc=yes
27004 ;;
27005 no:yes:* )
27006 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
27007echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
27008 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
27009echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
27010 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
27011echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
27012 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
27013echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
27015echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
27016 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
27017echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
27018 ( cat <<\_ASBOX
27019## ------------------------------------------- ##
27020## Report this to openssh-unix-dev@mindrot.org ##
27021## ------------------------------------------- ##
27022_ASBOX
27023 ) | sed "s/^/$as_me: WARNING: /" >&2
27024 ;;
27025esac
27026{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27027echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27028if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27029 echo $ECHO_N "(cached) $ECHO_C" >&6
27030else
27031 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
27032fi
27033{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27034echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27035
27036fi
27037if test $ac_cv_header_gssapi_krb5_h = yes; then
27038 :
27039else
27040 CPPFLAGS="$oldCPP"
27041fi
27042
27043
27044
27045 fi
27046 if test ! -z "$need_dash_r" ; then
27047 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
27048 fi
27049 if test ! -z "$blibpath" ; then
27050 blibpath="$blibpath:${KRB5ROOT}/lib"
27051 fi
27052
27053
27054
27055for ac_header in gssapi.h gssapi/gssapi.h
27056do
27057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27062 echo $ECHO_N "(cached) $ECHO_C" >&6
27063fi
27064ac_res=`eval echo '${'$as_ac_Header'}'`
27065 { echo "$as_me:$LINENO: result: $ac_res" >&5
27066echo "${ECHO_T}$ac_res" >&6; }
27067else
27068 # Is the header compilable?
27069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27071cat >conftest.$ac_ext <<_ACEOF
27072/* confdefs.h. */
27073_ACEOF
27074cat confdefs.h >>conftest.$ac_ext
27075cat >>conftest.$ac_ext <<_ACEOF
27076/* end confdefs.h. */
27077$ac_includes_default
27078#include <$ac_header>
27079_ACEOF
27080rm -f conftest.$ac_objext
27081if { (ac_try="$ac_compile"
27082case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27085esac
27086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_compile") 2>conftest.er1
27088 ac_status=$?
27089 grep -v '^ *+' conftest.er1 >conftest.err
27090 rm -f conftest.er1
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } && {
27094 test -z "$ac_c_werror_flag" ||
27095 test ! -s conftest.err
27096 } && test -s conftest.$ac_objext; then
27097 ac_header_compiler=yes
27098else
27099 echo "$as_me: failed program was:" >&5
27100sed 's/^/| /' conftest.$ac_ext >&5
27101
27102 ac_header_compiler=no
27103fi
27104
27105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27107echo "${ECHO_T}$ac_header_compiler" >&6; }
27108
27109# Is the header present?
27110{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27112cat >conftest.$ac_ext <<_ACEOF
27113/* confdefs.h. */
27114_ACEOF
27115cat confdefs.h >>conftest.$ac_ext
27116cat >>conftest.$ac_ext <<_ACEOF
27117/* end confdefs.h. */
27118#include <$ac_header>
27119_ACEOF
27120if { (ac_try="$ac_cpp conftest.$ac_ext"
27121case "(($ac_try" in
27122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27123 *) ac_try_echo=$ac_try;;
27124esac
27125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27127 ac_status=$?
27128 grep -v '^ *+' conftest.er1 >conftest.err
27129 rm -f conftest.er1
27130 cat conftest.err >&5
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } >/dev/null && {
27133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27134 test ! -s conftest.err
27135 }; then
27136 ac_header_preproc=yes
27137else
27138 echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 ac_header_preproc=no
27142fi
27143
27144rm -f conftest.err conftest.$ac_ext
27145{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27146echo "${ECHO_T}$ac_header_preproc" >&6; }
27147
27148# So? What about this header?
27149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27150 yes:no: )
27151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27155 ac_header_preproc=yes
27156 ;;
27157 no:yes:* )
27158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27161echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27165echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27170 ( cat <<\_ASBOX
27171## ------------------------------------------- ##
27172## Report this to openssh-unix-dev@mindrot.org ##
27173## ------------------------------------------- ##
27174_ASBOX
27175 ) | sed "s/^/$as_me: WARNING: /" >&2
27176 ;;
27177esac
27178{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27182else
27183 eval "$as_ac_Header=\$ac_header_preproc"
27184fi
27185ac_res=`eval echo '${'$as_ac_Header'}'`
27186 { echo "$as_me:$LINENO: result: $ac_res" >&5
27187echo "${ECHO_T}$ac_res" >&6; }
27188
27189fi
27190if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27193_ACEOF
27194
27195fi
27196
27197done
27198
27199
27200
27201for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
27202do
27203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209fi
27210ac_res=`eval echo '${'$as_ac_Header'}'`
27211 { echo "$as_me:$LINENO: result: $ac_res" >&5
27212echo "${ECHO_T}$ac_res" >&6; }
27213else
27214 # Is the header compilable?
27215{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27217cat >conftest.$ac_ext <<_ACEOF
27218/* confdefs.h. */
27219_ACEOF
27220cat confdefs.h >>conftest.$ac_ext
27221cat >>conftest.$ac_ext <<_ACEOF
27222/* end confdefs.h. */
27223$ac_includes_default
27224#include <$ac_header>
27225_ACEOF
27226rm -f conftest.$ac_objext
27227if { (ac_try="$ac_compile"
27228case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27231esac
27232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233 (eval "$ac_compile") 2>conftest.er1
27234 ac_status=$?
27235 grep -v '^ *+' conftest.er1 >conftest.err
27236 rm -f conftest.er1
27237 cat conftest.err >&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } && {
27240 test -z "$ac_c_werror_flag" ||
27241 test ! -s conftest.err
27242 } && test -s conftest.$ac_objext; then
27243 ac_header_compiler=yes
27244else
27245 echo "$as_me: failed program was:" >&5
27246sed 's/^/| /' conftest.$ac_ext >&5
27247
27248 ac_header_compiler=no
27249fi
27250
27251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27253echo "${ECHO_T}$ac_header_compiler" >&6; }
27254
27255# Is the header present?
27256{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27258cat >conftest.$ac_ext <<_ACEOF
27259/* confdefs.h. */
27260_ACEOF
27261cat confdefs.h >>conftest.$ac_ext
27262cat >>conftest.$ac_ext <<_ACEOF
27263/* end confdefs.h. */
27264#include <$ac_header>
27265_ACEOF
27266if { (ac_try="$ac_cpp conftest.$ac_ext"
27267case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27270esac
27271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27273 ac_status=$?
27274 grep -v '^ *+' conftest.er1 >conftest.err
27275 rm -f conftest.er1
27276 cat conftest.err >&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } >/dev/null && {
27279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27280 test ! -s conftest.err
27281 }; then
27282 ac_header_preproc=yes
27283else
27284 echo "$as_me: failed program was:" >&5
27285sed 's/^/| /' conftest.$ac_ext >&5
27286
27287 ac_header_preproc=no
27288fi
27289
27290rm -f conftest.err conftest.$ac_ext
27291{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27292echo "${ECHO_T}$ac_header_preproc" >&6; }
27293
27294# So? What about this header?
27295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27296 yes:no: )
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27301 ac_header_preproc=yes
27302 ;;
27303 no:yes:* )
27304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27316 ( cat <<\_ASBOX
27317## ------------------------------------------- ##
27318## Report this to openssh-unix-dev@mindrot.org ##
27319## ------------------------------------------- ##
27320_ASBOX
27321 ) | sed "s/^/$as_me: WARNING: /" >&2
27322 ;;
27323esac
27324{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27327 echo $ECHO_N "(cached) $ECHO_C" >&6
27328else
27329 eval "$as_ac_Header=\$ac_header_preproc"
27330fi
27331ac_res=`eval echo '${'$as_ac_Header'}'`
27332 { echo "$as_me:$LINENO: result: $ac_res" >&5
27333echo "${ECHO_T}$ac_res" >&6; }
27334
27335fi
27336if test `eval echo '${'$as_ac_Header'}'` = yes; then
27337 cat >>confdefs.h <<_ACEOF
27338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27339_ACEOF
27340
27341fi
27342
27343done
27344
27345
27346
27347for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
27348do
27349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355fi
27356ac_res=`eval echo '${'$as_ac_Header'}'`
27357 { echo "$as_me:$LINENO: result: $ac_res" >&5
27358echo "${ECHO_T}$ac_res" >&6; }
27359else
27360 # Is the header compilable?
27361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27363cat >conftest.$ac_ext <<_ACEOF
27364/* confdefs.h. */
27365_ACEOF
27366cat confdefs.h >>conftest.$ac_ext
27367cat >>conftest.$ac_ext <<_ACEOF
27368/* end confdefs.h. */
27369$ac_includes_default
27370#include <$ac_header>
27371_ACEOF
27372rm -f conftest.$ac_objext
27373if { (ac_try="$ac_compile"
27374case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_compile") 2>conftest.er1
27380 ac_status=$?
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } && {
27386 test -z "$ac_c_werror_flag" ||
27387 test ! -s conftest.err
27388 } && test -s conftest.$ac_objext; then
27389 ac_header_compiler=yes
27390else
27391 echo "$as_me: failed program was:" >&5
27392sed 's/^/| /' conftest.$ac_ext >&5
27393
27394 ac_header_compiler=no
27395fi
27396
27397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27399echo "${ECHO_T}$ac_header_compiler" >&6; }
27400
27401# Is the header present?
27402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27404cat >conftest.$ac_ext <<_ACEOF
27405/* confdefs.h. */
27406_ACEOF
27407cat confdefs.h >>conftest.$ac_ext
27408cat >>conftest.$ac_ext <<_ACEOF
27409/* end confdefs.h. */
27410#include <$ac_header>
27411_ACEOF
27412if { (ac_try="$ac_cpp conftest.$ac_ext"
27413case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416esac
27417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27419 ac_status=$?
27420 grep -v '^ *+' conftest.er1 >conftest.err
27421 rm -f conftest.er1
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } >/dev/null && {
27425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27426 test ! -s conftest.err
27427 }; then
27428 ac_header_preproc=yes
27429else
27430 echo "$as_me: failed program was:" >&5
27431sed 's/^/| /' conftest.$ac_ext >&5
27432
27433 ac_header_preproc=no
27434fi
27435
27436rm -f conftest.err conftest.$ac_ext
27437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27438echo "${ECHO_T}$ac_header_preproc" >&6; }
27439
27440# So? What about this header?
27441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27442 yes:no: )
27443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27447 ac_header_preproc=yes
27448 ;;
27449 no:yes:* )
27450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27462 ( cat <<\_ASBOX
27463## ------------------------------------------- ##
27464## Report this to openssh-unix-dev@mindrot.org ##
27465## ------------------------------------------- ##
27466_ASBOX
27467 ) | sed "s/^/$as_me: WARNING: /" >&2
27468 ;;
27469esac
27470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27474else
27475 eval "$as_ac_Header=\$ac_header_preproc"
27476fi
27477ac_res=`eval echo '${'$as_ac_Header'}'`
27478 { echo "$as_me:$LINENO: result: $ac_res" >&5
27479echo "${ECHO_T}$ac_res" >&6; }
27480
27481fi
27482if test `eval echo '${'$as_ac_Header'}'` = yes; then
27483 cat >>confdefs.h <<_ACEOF
27484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27485_ACEOF
27486
27487fi
27488
27489done
27490
27491
27492 LIBS="$LIBS $K5LIBS"
27493 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
27494echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
27495if test "${ac_cv_search_k_hasafs+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27497else
27498 ac_func_search_save_LIBS=$LIBS
27499cat >conftest.$ac_ext <<_ACEOF
27500/* confdefs.h. */
27501_ACEOF
27502cat confdefs.h >>conftest.$ac_ext
27503cat >>conftest.$ac_ext <<_ACEOF
27504/* end confdefs.h. */
27505
27506/* Override any GCC internal prototype to avoid an error.
27507 Use char because int might match the return type of a GCC
27508 builtin and then its argument prototype would still apply. */
27509#ifdef __cplusplus
27510extern "C"
27511#endif
27512char k_hasafs ();
27513int
27514main ()
27515{
27516return k_hasafs ();
27517 ;
27518 return 0;
27519}
27520_ACEOF
27521for ac_lib in '' kafs; do
27522 if test -z "$ac_lib"; then
27523 ac_res="none required"
27524 else
27525 ac_res=-l$ac_lib
27526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27527 fi
27528 rm -f conftest.$ac_objext conftest$ac_exeext
27529if { (ac_try="$ac_link"
27530case "(($ac_try" in
27531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532 *) ac_try_echo=$ac_try;;
27533esac
27534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27535 (eval "$ac_link") 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } && {
27542 test -z "$ac_c_werror_flag" ||
27543 test ! -s conftest.err
27544 } && test -s conftest$ac_exeext &&
27545 $as_test_x conftest$ac_exeext; then
27546 ac_cv_search_k_hasafs=$ac_res
27547else
27548 echo "$as_me: failed program was:" >&5
27549sed 's/^/| /' conftest.$ac_ext >&5
27550
27551
27552fi
27553
27554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27555 conftest$ac_exeext
27556 if test "${ac_cv_search_k_hasafs+set}" = set; then
27557 break
27558fi
27559done
27560if test "${ac_cv_search_k_hasafs+set}" = set; then
27561 :
27562else
27563 ac_cv_search_k_hasafs=no
27564fi
27565rm conftest.$ac_ext
27566LIBS=$ac_func_search_save_LIBS
27567fi
27568{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
27569echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
27570ac_res=$ac_cv_search_k_hasafs
27571if test "$ac_res" != no; then
27572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27573
27574cat >>confdefs.h <<\_ACEOF
27575#define USE_AFS 1
27576_ACEOF
27577
27578fi
27579
27580 fi
27581
27582
27583fi
27584
27585
27586# Looking for programs, paths and files
27587
27588PRIVSEP_PATH=/var/empty
27589
27590# Check whether --with-privsep-path was given.
27591if test "${with_privsep_path+set}" = set; then
27592 withval=$with_privsep_path;
27593 if test -n "$withval" && test "x$withval" != "xno" && \
27594 test "x${withval}" != "xyes"; then
27595 PRIVSEP_PATH=$withval
27596 fi
27597
27598
27599fi
27600
27601
27602
27603
27604# Check whether --with-xauth was given.
27605if test "${with_xauth+set}" = set; then
27606 withval=$with_xauth;
27607 if test -n "$withval" && test "x$withval" != "xno" && \
27608 test "x${withval}" != "xyes"; then
27609 xauth_path=$withval
27610 fi
27611
27612else
27613
27614 TestPath="$PATH"
27615 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
27616 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
27617 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
27618 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
27619 # Extract the first word of "xauth", so it can be a program name with args.
27620set dummy xauth; ac_word=$2
27621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27623if test "${ac_cv_path_xauth_path+set}" = set; then
27624 echo $ECHO_N "(cached) $ECHO_C" >&6
27625else
27626 case $xauth_path in
27627 [\\/]* | ?:[\\/]*)
27628 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
27629 ;;
27630 *)
27631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27632for as_dir in $TestPath
27633do
27634 IFS=$as_save_IFS
27635 test -z "$as_dir" && as_dir=.
27636 for ac_exec_ext in '' $ac_executable_extensions; do
27637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27638 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
27639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27640 break 2
27641 fi
27642done
27643done
27644IFS=$as_save_IFS
27645
27646 ;;
27647esac
27648fi
27649xauth_path=$ac_cv_path_xauth_path
27650if test -n "$xauth_path"; then
27651 { echo "$as_me:$LINENO: result: $xauth_path" >&5
27652echo "${ECHO_T}$xauth_path" >&6; }
27653else
27654 { echo "$as_me:$LINENO: result: no" >&5
27655echo "${ECHO_T}no" >&6; }
27656fi
27657
27658
27659 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
27660 xauth_path="/usr/openwin/bin/xauth"
27661 fi
27662
27663
27664fi
27665
27666
27667STRIP_OPT=-s
27668# Check whether --enable-strip was given.
27669if test "${enable_strip+set}" = set; then
27670 enableval=$enable_strip;
27671 if test "x$enableval" = "xno" ; then
27672 STRIP_OPT=
27673 fi
27674
27675
27676fi
27677
27678
27679
27680if test -z "$xauth_path" ; then
27681 XAUTH_PATH="undefined"
27682
27683else
27684
27685cat >>confdefs.h <<_ACEOF
27686#define XAUTH_PATH "$xauth_path"
27687_ACEOF
27688
27689 XAUTH_PATH=$xauth_path
27690
27691fi
27692
27693# Check for mail directory (last resort if we cannot get it from headers)
27694if test ! -z "$MAIL" ; then
27695 maildir=`dirname $MAIL`
27696
27697cat >>confdefs.h <<_ACEOF
27698#define MAIL_DIRECTORY "$maildir"
27699_ACEOF
27700
27701fi
27702
27703if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
27704 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
27705echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
27706 disable_ptmx_check=yes
27707fi
27708if test -z "$no_dev_ptmx" ; then
27709 if test "x$disable_ptmx_check" != "xyes" ; then
27710 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
27711echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
27712if test "${ac_cv_file___dev_ptmx_+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714else
27715 test "$cross_compiling" = yes &&
27716 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27717echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27718 { (exit 1); exit 1; }; }
27719if test -r ""/dev/ptmx""; then
27720 ac_cv_file___dev_ptmx_=yes
27721else
27722 ac_cv_file___dev_ptmx_=no
27723fi
27724fi
27725{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
27726echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
27727if test $ac_cv_file___dev_ptmx_ = yes; then
27728
27729
27730cat >>confdefs.h <<_ACEOF
27731#define HAVE_DEV_PTMX 1
27732_ACEOF
27733
27734 have_dev_ptmx=1
27735
27736
27737fi
27738
27739 fi
27740fi
27741
27742if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
27743 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
27744echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
27745if test "${ac_cv_file___dev_ptc_+set}" = set; then
27746 echo $ECHO_N "(cached) $ECHO_C" >&6
27747else
27748 test "$cross_compiling" = yes &&
27749 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27750echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27751 { (exit 1); exit 1; }; }
27752if test -r ""/dev/ptc""; then
27753 ac_cv_file___dev_ptc_=yes
27754else
27755 ac_cv_file___dev_ptc_=no
27756fi
27757fi
27758{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
27759echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
27760if test $ac_cv_file___dev_ptc_ = yes; then
27761
27762
27763cat >>confdefs.h <<_ACEOF
27764#define HAVE_DEV_PTS_AND_PTC 1
27765_ACEOF
27766
27767 have_dev_ptc=1
27768
27769
27770fi
27771
27772else
27773 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
27774echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
27775fi
27776
27777# Options from here on. Some of these are preset by platform above
27778
27779# Check whether --with-mantype was given.
27780if test "${with_mantype+set}" = set; then
27781 withval=$with_mantype;
27782 case "$withval" in
27783 man|cat|doc)
27784 MANTYPE=$withval
27785 ;;
27786 *)
27787 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
27788echo "$as_me: error: invalid man type: $withval" >&2;}
27789 { (exit 1); exit 1; }; }
27790 ;;
27791 esac
27792
27793
27794fi
27795
27796if test -z "$MANTYPE"; then
27797 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
27798 for ac_prog in nroff awf
27799do
27800 # Extract the first word of "$ac_prog", so it can be a program name with args.
27801set dummy $ac_prog; ac_word=$2
27802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27804if test "${ac_cv_path_NROFF+set}" = set; then
27805 echo $ECHO_N "(cached) $ECHO_C" >&6
27806else
27807 case $NROFF in
27808 [\\/]* | ?:[\\/]*)
27809 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27810 ;;
27811 *)
27812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27813for as_dir in $TestPath
27814do
27815 IFS=$as_save_IFS
27816 test -z "$as_dir" && as_dir=.
27817 for ac_exec_ext in '' $ac_executable_extensions; do
27818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27819 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27821 break 2
27822 fi
27823done
27824done
27825IFS=$as_save_IFS
27826
27827 ;;
27828esac
27829fi
27830NROFF=$ac_cv_path_NROFF
27831if test -n "$NROFF"; then
27832 { echo "$as_me:$LINENO: result: $NROFF" >&5
27833echo "${ECHO_T}$NROFF" >&6; }
27834else
27835 { echo "$as_me:$LINENO: result: no" >&5
27836echo "${ECHO_T}no" >&6; }
27837fi
27838
27839
27840 test -n "$NROFF" && break
27841done
27842test -n "$NROFF" || NROFF="/bin/false"
27843
27844 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
27845 MANTYPE=doc
27846 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
27847 MANTYPE=man
27848 else
27849 MANTYPE=cat
27850 fi
27851fi
27852
27853if test "$MANTYPE" = "doc"; then
27854 mansubdir=man;
27855else
27856 mansubdir=$MANTYPE;
27857fi
27858
27859
27860# Check whether to enable MD5 passwords
27861MD5_MSG="no"
27862
27863# Check whether --with-md5-passwords was given.
27864if test "${with_md5_passwords+set}" = set; then
27865 withval=$with_md5_passwords;
27866 if test "x$withval" != "xno" ; then
27867
27868cat >>confdefs.h <<\_ACEOF
27869#define HAVE_MD5_PASSWORDS 1
27870_ACEOF
27871
27872 MD5_MSG="yes"
27873 fi
27874
27875
27876fi
27877
27878
27879# Whether to disable shadow password support
27880
27881# Check whether --with-shadow was given.
27882if test "${with_shadow+set}" = set; then
27883 withval=$with_shadow;
27884 if test "x$withval" = "xno" ; then
27885 cat >>confdefs.h <<\_ACEOF
27886#define DISABLE_SHADOW 1
27887_ACEOF
27888
27889 disable_shadow=yes
27890 fi
27891
27892
27893fi
27894
27895
27896if test -z "$disable_shadow" ; then
27897 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
27898echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
27899 cat >conftest.$ac_ext <<_ACEOF
27900/* confdefs.h. */
27901_ACEOF
27902cat confdefs.h >>conftest.$ac_ext
27903cat >>conftest.$ac_ext <<_ACEOF
27904/* end confdefs.h. */
27905
27906#include <sys/types.h>
27907#include <shadow.h>
27908 struct spwd sp;
27909
27910int
27911main ()
27912{
27913 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
27914 ;
27915 return 0;
27916}
27917_ACEOF
27918rm -f conftest.$ac_objext
27919if { (ac_try="$ac_compile"
27920case "(($ac_try" in
27921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922 *) ac_try_echo=$ac_try;;
27923esac
27924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925 (eval "$ac_compile") 2>conftest.er1
27926 ac_status=$?
27927 grep -v '^ *+' conftest.er1 >conftest.err
27928 rm -f conftest.er1
27929 cat conftest.err >&5
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); } && {
27932 test -z "$ac_c_werror_flag" ||
27933 test ! -s conftest.err
27934 } && test -s conftest.$ac_objext; then
27935 sp_expire_available=yes
27936else
27937 echo "$as_me: failed program was:" >&5
27938sed 's/^/| /' conftest.$ac_ext >&5
27939
27940
27941
27942fi
27943
27944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27945
27946 if test "x$sp_expire_available" = "xyes" ; then
27947 { echo "$as_me:$LINENO: result: yes" >&5
27948echo "${ECHO_T}yes" >&6; }
27949
27950cat >>confdefs.h <<\_ACEOF
27951#define HAS_SHADOW_EXPIRE 1
27952_ACEOF
27953
27954 else
27955 { echo "$as_me:$LINENO: result: no" >&5
27956echo "${ECHO_T}no" >&6; }
27957 fi
27958fi
27959
27960# Use ip address instead of hostname in $DISPLAY
27961if test ! -z "$IPADDR_IN_DISPLAY" ; then
27962 DISPLAY_HACK_MSG="yes"
27963
27964cat >>confdefs.h <<\_ACEOF
27965#define IPADDR_IN_DISPLAY 1
27966_ACEOF
27967
27968else
27969 DISPLAY_HACK_MSG="no"
27970
27971# Check whether --with-ipaddr-display was given.
27972if test "${with_ipaddr_display+set}" = set; then
27973 withval=$with_ipaddr_display;
27974 if test "x$withval" != "xno" ; then
27975 cat >>confdefs.h <<\_ACEOF
27976#define IPADDR_IN_DISPLAY 1
27977_ACEOF
27978
27979 DISPLAY_HACK_MSG="yes"
27980 fi
27981
27982
27983fi
27984
27985fi
27986
27987# check for /etc/default/login and use it if present.
27988# Check whether --enable-etc-default-login was given.
27989if test "${enable_etc_default_login+set}" = set; then
27990 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
27991 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
27992echo "$as_me: /etc/default/login handling disabled" >&6;}
27993 etc_default_login=no
27994 else
27995 etc_default_login=yes
27996 fi
27997else
27998 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
27999 then
28000 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
28001echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
28002 etc_default_login=no
28003 else
28004 etc_default_login=yes
28005 fi
28006
28007fi
28008
28009
28010if test "x$etc_default_login" != "xno"; then
28011 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
28012echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
28013if test "${ac_cv_file___etc_default_login_+set}" = set; then
28014 echo $ECHO_N "(cached) $ECHO_C" >&6
28015else
28016 test "$cross_compiling" = yes &&
28017 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28018echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28019 { (exit 1); exit 1; }; }
28020if test -r ""/etc/default/login""; then
28021 ac_cv_file___etc_default_login_=yes
28022else
28023 ac_cv_file___etc_default_login_=no
28024fi
28025fi
28026{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
28027echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
28028if test $ac_cv_file___etc_default_login_ = yes; then
28029 external_path_file=/etc/default/login
28030fi
28031
28032 if test "x$external_path_file" = "x/etc/default/login"; then
28033
28034cat >>confdefs.h <<\_ACEOF
28035#define HAVE_ETC_DEFAULT_LOGIN 1
28036_ACEOF
28037
28038 fi
28039fi
28040
28041if test $ac_cv_func_login_getcapbool = "yes" && \
28042 test $ac_cv_header_login_cap_h = "yes" ; then
28043 external_path_file=/etc/login.conf
28044fi
28045
28046# Whether to mess with the default path
28047SERVER_PATH_MSG="(default)"
28048
28049# Check whether --with-default-path was given.
28050if test "${with_default_path+set}" = set; then
28051 withval=$with_default_path;
28052 if test "x$external_path_file" = "x/etc/login.conf" ; then
28053 { echo "$as_me:$LINENO: WARNING:
28054--with-default-path=PATH has no effect on this system.
28055Edit /etc/login.conf instead." >&5
28056echo "$as_me: WARNING:
28057--with-default-path=PATH has no effect on this system.
28058Edit /etc/login.conf instead." >&2;}
28059 elif test "x$withval" != "xno" ; then
28060 if test ! -z "$external_path_file" ; then
28061 { echo "$as_me:$LINENO: WARNING:
28062--with-default-path=PATH will only be used if PATH is not defined in
28063$external_path_file ." >&5
28064echo "$as_me: WARNING:
28065--with-default-path=PATH will only be used if PATH is not defined in
28066$external_path_file ." >&2;}
28067 fi
28068 user_path="$withval"
28069 SERVER_PATH_MSG="$withval"
28070 fi
28071
28072else
28073 if test "x$external_path_file" = "x/etc/login.conf" ; then
28074 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
28075echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
28076 else
28077 if test ! -z "$external_path_file" ; then
28078 { echo "$as_me:$LINENO: WARNING:
28079If PATH is defined in $external_path_file, ensure the path to scp is included,
28080otherwise scp will not work." >&5
28081echo "$as_me: WARNING:
28082If PATH is defined in $external_path_file, ensure the path to scp is included,
28083otherwise scp will not work." >&2;}
28084 fi
28085 if test "$cross_compiling" = yes; then
28086 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28087
28088else
28089 cat >conftest.$ac_ext <<_ACEOF
28090/* confdefs.h. */
28091_ACEOF
28092cat confdefs.h >>conftest.$ac_ext
28093cat >>conftest.$ac_ext <<_ACEOF
28094/* end confdefs.h. */
28095
28096/* find out what STDPATH is */
28097#include <stdio.h>
28098#ifdef HAVE_PATHS_H
28099# include <paths.h>
28100#endif
28101#ifndef _PATH_STDPATH
28102# ifdef _PATH_USERPATH /* Irix */
28103# define _PATH_STDPATH _PATH_USERPATH
28104# else
28105# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
28106# endif
28107#endif
28108#include <sys/types.h>
28109#include <sys/stat.h>
28110#include <fcntl.h>
28111#define DATA "conftest.stdpath"
28112
28113main()
28114{
28115 FILE *fd;
28116 int rc;
28117
28118 fd = fopen(DATA,"w");
28119 if(fd == NULL)
28120 exit(1);
28121
28122 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
28123 exit(1);
28124
28125 exit(0);
28126}
28127
28128_ACEOF
28129rm -f conftest$ac_exeext
28130if { (ac_try="$ac_link"
28131case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28134esac
28135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_link") 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28140 { (case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28143esac
28144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_try") 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 user_path=`cat conftest.stdpath`
28150else
28151 echo "$as_me: program exited with status $ac_status" >&5
28152echo "$as_me: failed program was:" >&5
28153sed 's/^/| /' conftest.$ac_ext >&5
28154
28155( exit $ac_status )
28156 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28157fi
28158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28159fi
28160
28161
28162# make sure $bindir is in USER_PATH so scp will work
28163 t_bindir=`eval echo ${bindir}`
28164 case $t_bindir in
28165 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
28166 esac
28167 case $t_bindir in
28168 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
28169 esac
28170 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
28171 if test $? -ne 0 ; then
28172 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
28173 if test $? -ne 0 ; then
28174 user_path=$user_path:$t_bindir
28175 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
28176echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
28177 fi
28178 fi
28179 fi
28180
28181fi
28182
28183if test "x$external_path_file" != "x/etc/login.conf" ; then
28184
28185cat >>confdefs.h <<_ACEOF
28186#define USER_PATH "$user_path"
28187_ACEOF
28188
28189
28190fi
28191
28192# Set superuser path separately to user path
28193
28194# Check whether --with-superuser-path was given.
28195if test "${with_superuser_path+set}" = set; then
28196 withval=$with_superuser_path;
28197 if test -n "$withval" && test "x$withval" != "xno" && \
28198 test "x${withval}" != "xyes"; then
28199
28200cat >>confdefs.h <<_ACEOF
28201#define SUPERUSER_PATH "$withval"
28202_ACEOF
28203
28204 superuser_path=$withval
28205 fi
28206
28207
28208fi
28209
28210
28211
28212{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
28213echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
28214IPV4_IN6_HACK_MSG="no"
28215
28216# Check whether --with-4in6 was given.
28217if test "${with_4in6+set}" = set; then
28218 withval=$with_4in6;
28219 if test "x$withval" != "xno" ; then
28220 { echo "$as_me:$LINENO: result: yes" >&5
28221echo "${ECHO_T}yes" >&6; }
28222
28223cat >>confdefs.h <<\_ACEOF
28224#define IPV4_IN_IPV6 1
28225_ACEOF
28226
28227 IPV4_IN6_HACK_MSG="yes"
28228 else
28229 { echo "$as_me:$LINENO: result: no" >&5
28230echo "${ECHO_T}no" >&6; }
28231 fi
28232
28233else
28234
28235 if test "x$inet6_default_4in6" = "xyes"; then
28236 { echo "$as_me:$LINENO: result: yes (default)" >&5
28237echo "${ECHO_T}yes (default)" >&6; }
28238 cat >>confdefs.h <<\_ACEOF
28239#define IPV4_IN_IPV6 1
28240_ACEOF
28241
28242 IPV4_IN6_HACK_MSG="yes"
28243 else
28244 { echo "$as_me:$LINENO: result: no (default)" >&5
28245echo "${ECHO_T}no (default)" >&6; }
28246 fi
28247
28248
28249fi
28250
28251
28252# Whether to enable BSD auth support
28253BSD_AUTH_MSG=no
28254
28255# Check whether --with-bsd-auth was given.
28256if test "${with_bsd_auth+set}" = set; then
28257 withval=$with_bsd_auth;
28258 if test "x$withval" != "xno" ; then
28259
28260cat >>confdefs.h <<\_ACEOF
28261#define BSD_AUTH 1
28262_ACEOF
28263
28264 BSD_AUTH_MSG=yes
28265 fi
28266
28267
28268fi
28269
28270
28271# Where to place sshd.pid
28272piddir=/var/run
28273# make sure the directory exists
28274if test ! -d $piddir ; then
28275 piddir=`eval echo ${sysconfdir}`
28276 case $piddir in
28277 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
28278 esac
28279fi
28280
28281
28282# Check whether --with-pid-dir was given.
28283if test "${with_pid_dir+set}" = set; then
28284 withval=$with_pid_dir;
28285 if test -n "$withval" && test "x$withval" != "xno" && \
28286 test "x${withval}" != "xyes"; then
28287 piddir=$withval
28288 if test ! -d $piddir ; then
28289 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
28290echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
28291 fi
28292 fi
28293
28294
28295fi
28296
28297
28298
28299cat >>confdefs.h <<_ACEOF
28300#define _PATH_SSH_PIDDIR "$piddir"
28301_ACEOF
28302
28303
28304
28305# Check whether --enable-lastlog was given.
28306if test "${enable_lastlog+set}" = set; then
28307 enableval=$enable_lastlog;
28308 if test "x$enableval" = "xno" ; then
28309 cat >>confdefs.h <<\_ACEOF
28310#define DISABLE_LASTLOG 1
28311_ACEOF
28312
28313 fi
28314
28315
28316fi
28317
28318# Check whether --enable-utmp was given.
28319if test "${enable_utmp+set}" = set; then
28320 enableval=$enable_utmp;
28321 if test "x$enableval" = "xno" ; then
28322 cat >>confdefs.h <<\_ACEOF
28323#define DISABLE_UTMP 1
28324_ACEOF
28325
28326 fi
28327
28328
28329fi
28330
28331# Check whether --enable-utmpx was given.
28332if test "${enable_utmpx+set}" = set; then
28333 enableval=$enable_utmpx;
28334 if test "x$enableval" = "xno" ; then
28335
28336cat >>confdefs.h <<\_ACEOF
28337#define DISABLE_UTMPX 1
28338_ACEOF
28339
28340 fi
28341
28342
28343fi
28344
28345# Check whether --enable-wtmp was given.
28346if test "${enable_wtmp+set}" = set; then
28347 enableval=$enable_wtmp;
28348 if test "x$enableval" = "xno" ; then
28349 cat >>confdefs.h <<\_ACEOF
28350#define DISABLE_WTMP 1
28351_ACEOF
28352
28353 fi
28354
28355
28356fi
28357
28358# Check whether --enable-wtmpx was given.
28359if test "${enable_wtmpx+set}" = set; then
28360 enableval=$enable_wtmpx;
28361 if test "x$enableval" = "xno" ; then
28362
28363cat >>confdefs.h <<\_ACEOF
28364#define DISABLE_WTMPX 1
28365_ACEOF
28366
28367 fi
28368
28369
28370fi
28371
28372# Check whether --enable-libutil was given.
28373if test "${enable_libutil+set}" = set; then
28374 enableval=$enable_libutil;
28375 if test "x$enableval" = "xno" ; then
28376 cat >>confdefs.h <<\_ACEOF
28377#define DISABLE_LOGIN 1
28378_ACEOF
28379
28380 fi
28381
28382
28383fi
28384
28385# Check whether --enable-pututline was given.
28386if test "${enable_pututline+set}" = set; then
28387 enableval=$enable_pututline;
28388 if test "x$enableval" = "xno" ; then
28389
28390cat >>confdefs.h <<\_ACEOF
28391#define DISABLE_PUTUTLINE 1
28392_ACEOF
28393
28394 fi
28395
28396
28397fi
28398
28399# Check whether --enable-pututxline was given.
28400if test "${enable_pututxline+set}" = set; then
28401 enableval=$enable_pututxline;
28402 if test "x$enableval" = "xno" ; then
28403
28404cat >>confdefs.h <<\_ACEOF
28405#define DISABLE_PUTUTXLINE 1
28406_ACEOF
28407
28408 fi
28409
28410
28411fi
28412
28413
28414# Check whether --with-lastlog was given.
28415if test "${with_lastlog+set}" = set; then
28416 withval=$with_lastlog;
28417 if test "x$withval" = "xno" ; then
28418 cat >>confdefs.h <<\_ACEOF
28419#define DISABLE_LASTLOG 1
28420_ACEOF
28421
28422 elif test -n "$withval" && test "x${withval}" != "xyes"; then
28423 conf_lastlog_location=$withval
28424 fi
28425
28426
28427fi
28428
28429
28430
28431{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
28432echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
28433cat >conftest.$ac_ext <<_ACEOF
28434/* confdefs.h. */
28435_ACEOF
28436cat confdefs.h >>conftest.$ac_ext
28437cat >>conftest.$ac_ext <<_ACEOF
28438/* end confdefs.h. */
28439
28440#include <sys/types.h>
28441#include <utmp.h>
28442#ifdef HAVE_LASTLOG_H
28443# include <lastlog.h>
28444#endif
28445#ifdef HAVE_PATHS_H
28446# include <paths.h>
28447#endif
28448#ifdef HAVE_LOGIN_H
28449# include <login.h>
28450#endif
28451
28452int
28453main ()
28454{
28455 char *lastlog = LASTLOG_FILE;
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext
28461if { (ac_try="$ac_compile"
28462case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28465esac
28466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_compile") 2>conftest.er1
28468 ac_status=$?
28469 grep -v '^ *+' conftest.er1 >conftest.err
28470 rm -f conftest.er1
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); } && {
28474 test -z "$ac_c_werror_flag" ||
28475 test ! -s conftest.err
28476 } && test -s conftest.$ac_objext; then
28477 { echo "$as_me:$LINENO: result: yes" >&5
28478echo "${ECHO_T}yes" >&6; }
28479else
28480 echo "$as_me: failed program was:" >&5
28481sed 's/^/| /' conftest.$ac_ext >&5
28482
28483
28484 { echo "$as_me:$LINENO: result: no" >&5
28485echo "${ECHO_T}no" >&6; }
28486 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
28487echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
28488 cat >conftest.$ac_ext <<_ACEOF
28489/* confdefs.h. */
28490_ACEOF
28491cat confdefs.h >>conftest.$ac_ext
28492cat >>conftest.$ac_ext <<_ACEOF
28493/* end confdefs.h. */
28494
28495#include <sys/types.h>
28496#include <utmp.h>
28497#ifdef HAVE_LASTLOG_H
28498# include <lastlog.h>
28499#endif
28500#ifdef HAVE_PATHS_H
28501# include <paths.h>
28502#endif
28503
28504int
28505main ()
28506{
28507 char *lastlog = _PATH_LASTLOG;
28508 ;
28509 return 0;
28510}
28511_ACEOF
28512rm -f conftest.$ac_objext
28513if { (ac_try="$ac_compile"
28514case "(($ac_try" in
28515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28516 *) ac_try_echo=$ac_try;;
28517esac
28518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28519 (eval "$ac_compile") 2>conftest.er1
28520 ac_status=$?
28521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } && {
28526 test -z "$ac_c_werror_flag" ||
28527 test ! -s conftest.err
28528 } && test -s conftest.$ac_objext; then
28529 { echo "$as_me:$LINENO: result: yes" >&5
28530echo "${ECHO_T}yes" >&6; }
28531else
28532 echo "$as_me: failed program was:" >&5
28533sed 's/^/| /' conftest.$ac_ext >&5
28534
28535
28536 { echo "$as_me:$LINENO: result: no" >&5
28537echo "${ECHO_T}no" >&6; }
28538 system_lastlog_path=no
28539
28540fi
28541
28542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28543
28544
28545fi
28546
28547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28548
28549if test -z "$conf_lastlog_location"; then
28550 if test x"$system_lastlog_path" = x"no" ; then
28551 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
28552 if (test -d "$f" || test -f "$f") ; then
28553 conf_lastlog_location=$f
28554 fi
28555 done
28556 if test -z "$conf_lastlog_location"; then
28557 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
28558echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
28559 fi
28560 fi
28561fi
28562
28563if test -n "$conf_lastlog_location"; then
28564
28565cat >>confdefs.h <<_ACEOF
28566#define CONF_LASTLOG_FILE "$conf_lastlog_location"
28567_ACEOF
28568
28569fi
28570
28571{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
28572echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
28573cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
28579
28580#include <sys/types.h>
28581#include <utmp.h>
28582#ifdef HAVE_PATHS_H
28583# include <paths.h>
28584#endif
28585
28586int
28587main ()
28588{
28589 char *utmp = UTMP_FILE;
28590 ;
28591 return 0;
28592}
28593_ACEOF
28594rm -f conftest.$ac_objext
28595if { (ac_try="$ac_compile"
28596case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28599esac
28600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_compile") 2>conftest.er1
28602 ac_status=$?
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && {
28608 test -z "$ac_c_werror_flag" ||
28609 test ! -s conftest.err
28610 } && test -s conftest.$ac_objext; then
28611 { echo "$as_me:$LINENO: result: yes" >&5
28612echo "${ECHO_T}yes" >&6; }
28613else
28614 echo "$as_me: failed program was:" >&5
28615sed 's/^/| /' conftest.$ac_ext >&5
28616
28617 { echo "$as_me:$LINENO: result: no" >&5
28618echo "${ECHO_T}no" >&6; }
28619 system_utmp_path=no
28620
28621fi
28622
28623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624if test -z "$conf_utmp_location"; then
28625 if test x"$system_utmp_path" = x"no" ; then
28626 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
28627 if test -f $f ; then
28628 conf_utmp_location=$f
28629 fi
28630 done
28631 if test -z "$conf_utmp_location"; then
28632 cat >>confdefs.h <<\_ACEOF
28633#define DISABLE_UTMP 1
28634_ACEOF
28635
28636 fi
28637 fi
28638fi
28639if test -n "$conf_utmp_location"; then
28640
28641cat >>confdefs.h <<_ACEOF
28642#define CONF_UTMP_FILE "$conf_utmp_location"
28643_ACEOF
28644
28645fi
28646
28647{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
28648echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
28649cat >conftest.$ac_ext <<_ACEOF
28650/* confdefs.h. */
28651_ACEOF
28652cat confdefs.h >>conftest.$ac_ext
28653cat >>conftest.$ac_ext <<_ACEOF
28654/* end confdefs.h. */
28655
28656#include <sys/types.h>
28657#include <utmp.h>
28658#ifdef HAVE_PATHS_H
28659# include <paths.h>
28660#endif
28661
28662int
28663main ()
28664{
28665 char *wtmp = WTMP_FILE;
28666 ;
28667 return 0;
28668}
28669_ACEOF
28670rm -f conftest.$ac_objext
28671if { (ac_try="$ac_compile"
28672case "(($ac_try" in
28673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674 *) ac_try_echo=$ac_try;;
28675esac
28676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677 (eval "$ac_compile") 2>conftest.er1
28678 ac_status=$?
28679 grep -v '^ *+' conftest.er1 >conftest.err
28680 rm -f conftest.er1
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } && {
28684 test -z "$ac_c_werror_flag" ||
28685 test ! -s conftest.err
28686 } && test -s conftest.$ac_objext; then
28687 { echo "$as_me:$LINENO: result: yes" >&5
28688echo "${ECHO_T}yes" >&6; }
28689else
28690 echo "$as_me: failed program was:" >&5
28691sed 's/^/| /' conftest.$ac_ext >&5
28692
28693 { echo "$as_me:$LINENO: result: no" >&5
28694echo "${ECHO_T}no" >&6; }
28695 system_wtmp_path=no
28696
28697fi
28698
28699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28700if test -z "$conf_wtmp_location"; then
28701 if test x"$system_wtmp_path" = x"no" ; then
28702 for f in /usr/adm/wtmp /var/log/wtmp; do
28703 if test -f $f ; then
28704 conf_wtmp_location=$f
28705 fi
28706 done
28707 if test -z "$conf_wtmp_location"; then
28708 cat >>confdefs.h <<\_ACEOF
28709#define DISABLE_WTMP 1
28710_ACEOF
28711
28712 fi
28713 fi
28714fi
28715if test -n "$conf_wtmp_location"; then
28716
28717cat >>confdefs.h <<_ACEOF
28718#define CONF_WTMP_FILE "$conf_wtmp_location"
28719_ACEOF
28720
28721fi
28722
28723
28724{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
28725echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
28726cat >conftest.$ac_ext <<_ACEOF
28727/* confdefs.h. */
28728_ACEOF
28729cat confdefs.h >>conftest.$ac_ext
28730cat >>conftest.$ac_ext <<_ACEOF
28731/* end confdefs.h. */
28732
28733#include <sys/types.h>
28734#include <utmp.h>
28735#ifdef HAVE_UTMPX_H
28736#include <utmpx.h>
28737#endif
28738#ifdef HAVE_PATHS_H
28739# include <paths.h>
28740#endif
28741
28742int
28743main ()
28744{
28745 char *utmpx = UTMPX_FILE;
28746 ;
28747 return 0;
28748}
28749_ACEOF
28750rm -f conftest.$ac_objext
28751if { (ac_try="$ac_compile"
28752case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28755esac
28756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_compile") 2>conftest.er1
28758 ac_status=$?
28759 grep -v '^ *+' conftest.er1 >conftest.err
28760 rm -f conftest.er1
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } && {
28764 test -z "$ac_c_werror_flag" ||
28765 test ! -s conftest.err
28766 } && test -s conftest.$ac_objext; then
28767 { echo "$as_me:$LINENO: result: yes" >&5
28768echo "${ECHO_T}yes" >&6; }
28769else
28770 echo "$as_me: failed program was:" >&5
28771sed 's/^/| /' conftest.$ac_ext >&5
28772
28773 { echo "$as_me:$LINENO: result: no" >&5
28774echo "${ECHO_T}no" >&6; }
28775 system_utmpx_path=no
28776
28777fi
28778
28779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28780if test -z "$conf_utmpx_location"; then
28781 if test x"$system_utmpx_path" = x"no" ; then
28782 cat >>confdefs.h <<\_ACEOF
28783#define DISABLE_UTMPX 1
28784_ACEOF
28785
28786 fi
28787else
28788
28789cat >>confdefs.h <<_ACEOF
28790#define CONF_UTMPX_FILE "$conf_utmpx_location"
28791_ACEOF
28792
28793fi
28794
28795{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
28796echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
28797cat >conftest.$ac_ext <<_ACEOF
28798/* confdefs.h. */
28799_ACEOF
28800cat confdefs.h >>conftest.$ac_ext
28801cat >>conftest.$ac_ext <<_ACEOF
28802/* end confdefs.h. */
28803
28804#include <sys/types.h>
28805#include <utmp.h>
28806#ifdef HAVE_UTMPX_H
28807#include <utmpx.h>
28808#endif
28809#ifdef HAVE_PATHS_H
28810# include <paths.h>
28811#endif
28812
28813int
28814main ()
28815{
28816 char *wtmpx = WTMPX_FILE;
28817 ;
28818 return 0;
28819}
28820_ACEOF
28821rm -f conftest.$ac_objext
28822if { (ac_try="$ac_compile"
28823case "(($ac_try" in
28824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28825 *) ac_try_echo=$ac_try;;
28826esac
28827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28828 (eval "$ac_compile") 2>conftest.er1
28829 ac_status=$?
28830 grep -v '^ *+' conftest.er1 >conftest.err
28831 rm -f conftest.er1
28832 cat conftest.err >&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } && {
28835 test -z "$ac_c_werror_flag" ||
28836 test ! -s conftest.err
28837 } && test -s conftest.$ac_objext; then
28838 { echo "$as_me:$LINENO: result: yes" >&5
28839echo "${ECHO_T}yes" >&6; }
28840else
28841 echo "$as_me: failed program was:" >&5
28842sed 's/^/| /' conftest.$ac_ext >&5
28843
28844 { echo "$as_me:$LINENO: result: no" >&5
28845echo "${ECHO_T}no" >&6; }
28846 system_wtmpx_path=no
28847
28848fi
28849
28850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28851if test -z "$conf_wtmpx_location"; then
28852 if test x"$system_wtmpx_path" = x"no" ; then
28853 cat >>confdefs.h <<\_ACEOF
28854#define DISABLE_WTMPX 1
28855_ACEOF
28856
28857 fi
28858else
28859
28860cat >>confdefs.h <<_ACEOF
28861#define CONF_WTMPX_FILE "$conf_wtmpx_location"
28862_ACEOF
28863
28864fi
28865
28866
28867if test ! -z "$blibpath" ; then
28868 LDFLAGS="$LDFLAGS $blibflags$blibpath"
28869 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
28870echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
28871fi
28872
28873CFLAGS="$CFLAGS $werror_flags"
28874
28875if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
28876 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
28877 TEST_SSH_IPV6=no
28878
28879else
28880 TEST_SSH_IPV6=yes
28881
28882fi
28883
28884
28885ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
28886
28887cat >confcache <<\_ACEOF
28888# This file is a shell script that caches the results of configure
28889# tests run on this system so they can be shared between configure
28890# scripts and configure runs, see configure's option --config-cache.
28891# It is not useful on other systems. If it contains results you don't
28892# want to keep, you may remove or edit it.
28893#
28894# config.status only pays attention to the cache file if you give it
28895# the --recheck option to rerun configure.
28896#
28897# `ac_cv_env_foo' variables (set or unset) will be overridden when
28898# loading this file, other *unset* `ac_cv_foo' will be assigned the
28899# following values.
28900
28901_ACEOF
28902
28903# The following way of writing the cache mishandles newlines in values,
28904# but we know of no workaround that is simple, portable, and efficient.
28905# So, we kill variables containing newlines.
28906# Ultrix sh set writes to stderr and can't be redirected directly,
28907# and sets the high bit in the cache file unless we assign to the vars.
28908(
28909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28910 eval ac_val=\$$ac_var
28911 case $ac_val in #(
28912 *${as_nl}*)
28913 case $ac_var in #(
28914 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28915echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28916 esac
28917 case $ac_var in #(
28918 _ | IFS | as_nl) ;; #(
28919 *) $as_unset $ac_var ;;
28920 esac ;;
28921 esac
28922 done
28923
28924 (set) 2>&1 |
28925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28926 *${as_nl}ac_space=\ *)
28927 # `set' does not quote correctly, so add quotes (double-quote
28928 # substitution turns \\\\ into \\, and sed turns \\ into \).
28929 sed -n \
28930 "s/'/'\\\\''/g;
28931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28932 ;; #(
28933 *)
28934 # `set' quotes correctly as required by POSIX, so do not add quotes.
28935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28936 ;;
28937 esac |
28938 sort
28939) |
28940 sed '
28941 /^ac_cv_env_/b end
28942 t clear
28943 :clear
28944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28945 t end
28946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28947 :end' >>confcache
28948if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28949 if test -w "$cache_file"; then
28950 test "x$cache_file" != "x/dev/null" &&
28951 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28952echo "$as_me: updating cache $cache_file" >&6;}
28953 cat confcache >$cache_file
28954 else
28955 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28956echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28957 fi
28958fi
28959rm -f confcache
28960
28961test "x$prefix" = xNONE && prefix=$ac_default_prefix
28962# Let make expand exec_prefix.
28963test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28964
28965DEFS=-DHAVE_CONFIG_H
28966
28967ac_libobjs=
28968ac_ltlibobjs=
28969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28970 # 1. Remove the extension, and $U if already installed.
28971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28972 ac_i=`echo "$ac_i" | sed "$ac_script"`
28973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28974 # will be set to the directory where LIBOBJS objects are built.
28975 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28976 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28977done
28978LIBOBJS=$ac_libobjs
28979
28980LTLIBOBJS=$ac_ltlibobjs
28981
28982
28983
28984: ${CONFIG_STATUS=./config.status}
28985ac_clean_files_save=$ac_clean_files
28986ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28987{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28988echo "$as_me: creating $CONFIG_STATUS" >&6;}
28989cat >$CONFIG_STATUS <<_ACEOF
28990#! $SHELL
28991# Generated by $as_me.
28992# Run this file to recreate the current configuration.
28993# Compiler output produced by configure, useful for debugging
28994# configure, is in config.log if it exists.
28995
28996debug=false
28997ac_cs_recheck=false
28998ac_cs_silent=false
28999SHELL=\${CONFIG_SHELL-$SHELL}
29000_ACEOF
29001
29002cat >>$CONFIG_STATUS <<\_ACEOF
29003## --------------------- ##
29004## M4sh Initialization. ##
29005## --------------------- ##
29006
29007# Be more Bourne compatible
29008DUALCASE=1; export DUALCASE # for MKS sh
29009if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29010 emulate sh
29011 NULLCMD=:
29012 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29013 # is contrary to our usage. Disable this feature.
29014 alias -g '${1+"$@"}'='"$@"'
29015 setopt NO_GLOB_SUBST
29016else
29017 case `(set -o) 2>/dev/null` in
29018 *posix*) set -o posix ;;
29019esac
29020
29021fi
29022
29023
29024
29025
29026# PATH needs CR
29027# Avoid depending upon Character Ranges.
29028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29031as_cr_digits='0123456789'
29032as_cr_alnum=$as_cr_Letters$as_cr_digits
29033
29034# The user is always right.
29035if test "${PATH_SEPARATOR+set}" != set; then
29036 echo "#! /bin/sh" >conf$$.sh
29037 echo "exit 0" >>conf$$.sh
29038 chmod +x conf$$.sh
29039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29040 PATH_SEPARATOR=';'
29041 else
29042 PATH_SEPARATOR=:
29043 fi
29044 rm -f conf$$.sh
29045fi
29046
29047# Support unset when possible.
29048if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29049 as_unset=unset
29050else
29051 as_unset=false
29052fi
29053
29054
29055# IFS
29056# We need space, tab and new line, in precisely that order. Quoting is
29057# there to prevent editors from complaining about space-tab.
29058# (If _AS_PATH_WALK were called with IFS unset, it would disable word
29059# splitting by setting IFS to empty value.)
29060as_nl='
29061'
29062IFS=" "" $as_nl"
29063
29064# Find who we are. Look in the path if we contain no directory separator.
29065case $0 in
29066 *[\\/]* ) as_myself=$0 ;;
29067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29068for as_dir in $PATH
29069do
29070 IFS=$as_save_IFS
29071 test -z "$as_dir" && as_dir=.
29072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29073done
29074IFS=$as_save_IFS
29075
29076 ;;
29077esac
29078# We did not find ourselves, most probably we were run as `sh COMMAND'
29079# in which case we are not to be found in the path.
29080if test "x$as_myself" = x; then
29081 as_myself=$0
29082fi
29083if test ! -f "$as_myself"; then
29084 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29085 { (exit 1); exit 1; }
29086fi
29087
29088# Work around bugs in pre-3.0 UWIN ksh.
29089for as_var in ENV MAIL MAILPATH
29090do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29091done
29092PS1='$ '
29093PS2='> '
29094PS4='+ '
29095
29096# NLS nuisances.
29097for as_var in \
29098 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29099 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29100 LC_TELEPHONE LC_TIME
29101do
29102 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29103 eval $as_var=C; export $as_var
29104 else
29105 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29106 fi
29107done
29108
29109# Required to use basename.
29110if expr a : '\(a\)' >/dev/null 2>&1 &&
29111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29112 as_expr=expr
29113else
29114 as_expr=false
29115fi
29116
29117if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29118 as_basename=basename
29119else
29120 as_basename=false
29121fi
29122
29123
29124# Name of the executable.
29125as_me=`$as_basename -- "$0" ||
29126$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29127 X"$0" : 'X\(//\)$' \| \
29128 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29129echo X/"$0" |
29130 sed '/^.*\/\([^/][^/]*\)\/*$/{
29131 s//\1/
29132 q
29133 }
29134 /^X\/\(\/\/\)$/{
29135 s//\1/
29136 q
29137 }
29138 /^X\/\(\/\).*/{
29139 s//\1/
29140 q
29141 }
29142 s/.*/./; q'`
29143
29144# CDPATH.
29145$as_unset CDPATH
29146
29147
29148
29149 as_lineno_1=$LINENO
29150 as_lineno_2=$LINENO
29151 test "x$as_lineno_1" != "x$as_lineno_2" &&
29152 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29153
29154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29155 # uniformly replaced by the line number. The first 'sed' inserts a
29156 # line-number line after each line using $LINENO; the second 'sed'
29157 # does the real work. The second script uses 'N' to pair each
29158 # line-number line with the line containing $LINENO, and appends
29159 # trailing '-' during substitution so that $LINENO is not a special
29160 # case at line end.
29161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29162 # scripts with optimization help from Paolo Bonzini. Blame Lee
29163 # E. McMahon (1931-1989) for sed's syntax. :-)
29164 sed -n '
29165 p
29166 /[$]LINENO/=
29167 ' <$as_myself |
29168 sed '
29169 s/[$]LINENO.*/&-/
29170 t lineno
29171 b
29172 :lineno
29173 N
29174 :loop
29175 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29176 t loop
29177 s/-\n.*//
29178 ' >$as_me.lineno &&
29179 chmod +x "$as_me.lineno" ||
29180 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29181 { (exit 1); exit 1; }; }
29182
29183 # Don't try to exec as it changes $[0], causing all sort of problems
29184 # (the dirname of $[0] is not the place where we might find the
29185 # original and so on. Autoconf is especially sensitive to this).
29186 . "./$as_me.lineno"
29187 # Exit status is that of the last command.
29188 exit
29189}
29190
29191
29192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29193 as_dirname=dirname
29194else
29195 as_dirname=false
29196fi
29197
29198ECHO_C= ECHO_N= ECHO_T=
29199case `echo -n x` in
29200-n*)
29201 case `echo 'x\c'` in
29202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29203 *) ECHO_C='\c';;
29204 esac;;
29205*)
29206 ECHO_N='-n';;
29207esac
29208
29209if expr a : '\(a\)' >/dev/null 2>&1 &&
29210 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29211 as_expr=expr
29212else
29213 as_expr=false
29214fi
29215
29216rm -f conf$$ conf$$.exe conf$$.file
29217if test -d conf$$.dir; then
29218 rm -f conf$$.dir/conf$$.file
29219else
29220 rm -f conf$$.dir
29221 mkdir conf$$.dir
29222fi
29223echo >conf$$.file
29224if ln -s conf$$.file conf$$ 2>/dev/null; then
29225 as_ln_s='ln -s'
29226 # ... but there are two gotchas:
29227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29229 # In both cases, we have to default to `cp -p'.
29230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29231 as_ln_s='cp -p'
29232elif ln conf$$.file conf$$ 2>/dev/null; then
29233 as_ln_s=ln
29234else
29235 as_ln_s='cp -p'
29236fi
29237rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29238rmdir conf$$.dir 2>/dev/null
29239
29240if mkdir -p . 2>/dev/null; then
29241 as_mkdir_p=:
29242else
29243 test -d ./-p && rmdir ./-p
29244 as_mkdir_p=false
29245fi
29246
29247if test -x / >/dev/null 2>&1; then
29248 as_test_x='test -x'
29249else
29250 if ls -dL / >/dev/null 2>&1; then
29251 as_ls_L_option=L
29252 else
29253 as_ls_L_option=
29254 fi
29255 as_test_x='
29256 eval sh -c '\''
29257 if test -d "$1"; then
29258 test -d "$1/.";
29259 else
29260 case $1 in
29261 -*)set "./$1";;
29262 esac;
29263 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29264 ???[sx]*):;;*)false;;esac;fi
29265 '\'' sh
29266 '
29267fi
29268as_executable_p=$as_test_x
29269
29270# Sed expression to map a string onto a valid CPP name.
29271as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29272
29273# Sed expression to map a string onto a valid variable name.
29274as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29275
29276
29277exec 6>&1
29278
29279# Save the log message, to keep $[0] and so on meaningful, and to
29280# report actual input values of CONFIG_FILES etc. instead of their
29281# values after options handling.
29282ac_log="
29283This file was extended by OpenSSH $as_me Portable, which was
29284generated by GNU Autoconf 2.61. Invocation command line was
29285
29286 CONFIG_FILES = $CONFIG_FILES
29287 CONFIG_HEADERS = $CONFIG_HEADERS
29288 CONFIG_LINKS = $CONFIG_LINKS
29289 CONFIG_COMMANDS = $CONFIG_COMMANDS
29290 $ $0 $@
29291
29292on `(hostname || uname -n) 2>/dev/null | sed 1q`
29293"
29294
29295_ACEOF
29296
29297cat >>$CONFIG_STATUS <<_ACEOF
29298# Files that config.status was made for.
29299config_files="$ac_config_files"
29300config_headers="$ac_config_headers"
29301
29302_ACEOF
29303
29304cat >>$CONFIG_STATUS <<\_ACEOF
29305ac_cs_usage="\
29306\`$as_me' instantiates files from templates according to the
29307current configuration.
29308
29309Usage: $0 [OPTIONS] [FILE]...
29310
29311 -h, --help print this help, then exit
29312 -V, --version print version number and configuration settings, then exit
29313 -q, --quiet do not print progress messages
29314 -d, --debug don't remove temporary files
29315 --recheck update $as_me by reconfiguring in the same conditions
29316 --file=FILE[:TEMPLATE]
29317 instantiate the configuration file FILE
29318 --header=FILE[:TEMPLATE]
29319 instantiate the configuration header FILE
29320
29321Configuration files:
29322$config_files
29323
29324Configuration headers:
29325$config_headers
29326
29327Report bugs to <bug-autoconf@gnu.org>."
29328
29329_ACEOF
29330cat >>$CONFIG_STATUS <<_ACEOF
29331ac_cs_version="\\
29332OpenSSH config.status Portable
29333configured by $0, generated by GNU Autoconf 2.61,
29334 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29335
29336Copyright (C) 2006 Free Software Foundation, Inc.
29337This config.status script is free software; the Free Software Foundation
29338gives unlimited permission to copy, distribute and modify it."
29339
29340ac_pwd='$ac_pwd'
29341srcdir='$srcdir'
29342INSTALL='$INSTALL'
29343_ACEOF
29344
29345cat >>$CONFIG_STATUS <<\_ACEOF
29346# If no file are specified by the user, then we need to provide default
29347# value. By we need to know if files were specified by the user.
29348ac_need_defaults=:
29349while test $# != 0
29350do
29351 case $1 in
29352 --*=*)
29353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29355 ac_shift=:
29356 ;;
29357 *)
29358 ac_option=$1
29359 ac_optarg=$2
29360 ac_shift=shift
29361 ;;
29362 esac
29363
29364 case $ac_option in
29365 # Handling of the options.
29366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29367 ac_cs_recheck=: ;;
29368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29369 echo "$ac_cs_version"; exit ;;
29370 --debug | --debu | --deb | --de | --d | -d )
29371 debug=: ;;
29372 --file | --fil | --fi | --f )
29373 $ac_shift
29374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29375 ac_need_defaults=false;;
29376 --header | --heade | --head | --hea )
29377 $ac_shift
29378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29379 ac_need_defaults=false;;
29380 --he | --h)
29381 # Conflict between --help and --header
29382 { echo "$as_me: error: ambiguous option: $1
29383Try \`$0 --help' for more information." >&2
29384 { (exit 1); exit 1; }; };;
29385 --help | --hel | -h )
29386 echo "$ac_cs_usage"; exit ;;
29387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29389 ac_cs_silent=: ;;
29390
29391 # This is an error.
29392 -*) { echo "$as_me: error: unrecognized option: $1
29393Try \`$0 --help' for more information." >&2
29394 { (exit 1); exit 1; }; } ;;
29395
29396 *) ac_config_targets="$ac_config_targets $1"
29397 ac_need_defaults=false ;;
29398
29399 esac
29400 shift
29401done
29402
29403ac_configure_extra_args=
29404
29405if $ac_cs_silent; then
29406 exec 6>/dev/null
29407 ac_configure_extra_args="$ac_configure_extra_args --silent"
29408fi
29409
29410_ACEOF
29411cat >>$CONFIG_STATUS <<_ACEOF
29412if \$ac_cs_recheck; then
29413 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29414 CONFIG_SHELL=$SHELL
29415 export CONFIG_SHELL
29416 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29417fi
29418
29419_ACEOF
29420cat >>$CONFIG_STATUS <<\_ACEOF
29421exec 5>>config.log
29422{
29423 echo
29424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29425## Running $as_me. ##
29426_ASBOX
29427 echo "$ac_log"
29428} >&5
29429
29430_ACEOF
29431cat >>$CONFIG_STATUS <<_ACEOF
29432_ACEOF
29433
29434cat >>$CONFIG_STATUS <<\_ACEOF
29435
29436# Handling of arguments.
29437for ac_config_target in $ac_config_targets
29438do
29439 case $ac_config_target in
29440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29442 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
29443 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
29444 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
29445 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
29446 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
29447 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
29448 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
29449 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
29450
29451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29452echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29453 { (exit 1); exit 1; }; };;
29454 esac
29455done
29456
29457
29458# If the user did not use the arguments to specify the items to instantiate,
29459# then the envvar interface is used. Set only those that are not.
29460# We use the long form for the default assignment because of an extremely
29461# bizarre bug on SunOS 4.1.3.
29462if $ac_need_defaults; then
29463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29465fi
29466
29467# Have a temporary directory for convenience. Make it in the build tree
29468# simply because there is no reason against having it here, and in addition,
29469# creating and moving files from /tmp can sometimes cause problems.
29470# Hook for its removal unless debugging.
29471# Note that there is a small window in which the directory will not be cleaned:
29472# after its creation but before its name has been assigned to `$tmp'.
29473$debug ||
29474{
29475 tmp=
29476 trap 'exit_status=$?
29477 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29478' 0
29479 trap '{ (exit 1); exit 1; }' 1 2 13 15
29480}
29481# Create a (secure) tmp directory for tmp files.
29482
29483{
29484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29485 test -n "$tmp" && test -d "$tmp"
29486} ||
29487{
29488 tmp=./conf$$-$RANDOM
29489 (umask 077 && mkdir "$tmp")
29490} ||
29491{
29492 echo "$me: cannot create a temporary directory in ." >&2
29493 { (exit 1); exit 1; }
29494}
29495
29496#
29497# Set up the sed scripts for CONFIG_FILES section.
29498#
29499
29500# No need to generate the scripts if there are no CONFIG_FILES.
29501# This happens for instance when ./config.status config.h
29502if test -n "$CONFIG_FILES"; then
29503
29504_ACEOF
29505
29506
29507
29508ac_delim='%!_!# '
29509for ac_last_try in false false false false false :; do
29510 cat >conf$$subs.sed <<_ACEOF
29511SHELL!$SHELL$ac_delim
29512PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29513PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29514PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29515PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29516PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29517PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29518exec_prefix!$exec_prefix$ac_delim
29519prefix!$prefix$ac_delim
29520program_transform_name!$program_transform_name$ac_delim
29521bindir!$bindir$ac_delim
29522sbindir!$sbindir$ac_delim
29523libexecdir!$libexecdir$ac_delim
29524datarootdir!$datarootdir$ac_delim
29525datadir!$datadir$ac_delim
29526sysconfdir!$sysconfdir$ac_delim
29527sharedstatedir!$sharedstatedir$ac_delim
29528localstatedir!$localstatedir$ac_delim
29529includedir!$includedir$ac_delim
29530oldincludedir!$oldincludedir$ac_delim
29531docdir!$docdir$ac_delim
29532infodir!$infodir$ac_delim
29533htmldir!$htmldir$ac_delim
29534dvidir!$dvidir$ac_delim
29535pdfdir!$pdfdir$ac_delim
29536psdir!$psdir$ac_delim
29537libdir!$libdir$ac_delim
29538localedir!$localedir$ac_delim
29539mandir!$mandir$ac_delim
29540DEFS!$DEFS$ac_delim
29541ECHO_C!$ECHO_C$ac_delim
29542ECHO_N!$ECHO_N$ac_delim
29543ECHO_T!$ECHO_T$ac_delim
29544LIBS!$LIBS$ac_delim
29545build_alias!$build_alias$ac_delim
29546host_alias!$host_alias$ac_delim
29547target_alias!$target_alias$ac_delim
29548CC!$CC$ac_delim
29549CFLAGS!$CFLAGS$ac_delim
29550LDFLAGS!$LDFLAGS$ac_delim
29551CPPFLAGS!$CPPFLAGS$ac_delim
29552ac_ct_CC!$ac_ct_CC$ac_delim
29553EXEEXT!$EXEEXT$ac_delim
29554OBJEXT!$OBJEXT$ac_delim
29555build!$build$ac_delim
29556build_cpu!$build_cpu$ac_delim
29557build_vendor!$build_vendor$ac_delim
29558build_os!$build_os$ac_delim
29559host!$host$ac_delim
29560host_cpu!$host_cpu$ac_delim
29561host_vendor!$host_vendor$ac_delim
29562host_os!$host_os$ac_delim
29563CPP!$CPP$ac_delim
29564GREP!$GREP$ac_delim
29565EGREP!$EGREP$ac_delim
29566AWK!$AWK$ac_delim
29567RANLIB!$RANLIB$ac_delim
29568INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29569INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29570INSTALL_DATA!$INSTALL_DATA$ac_delim
29571AR!$AR$ac_delim
29572CAT!$CAT$ac_delim
29573KILL!$KILL$ac_delim
29574PERL!$PERL$ac_delim
29575SED!$SED$ac_delim
29576ENT!$ENT$ac_delim
29577TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
29578SH!$SH$ac_delim
29579TEST_SHELL!$TEST_SHELL$ac_delim
29580PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
29581PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
29582MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
29583STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
29584LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
29585PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
29586LD!$LD$ac_delim
29587SSHDLIBS!$SSHDLIBS$ac_delim
29588LIBEDIT!$LIBEDIT$ac_delim
29589INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
29590SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
29591PROG_LS!$PROG_LS$ac_delim
29592PROG_NETSTAT!$PROG_NETSTAT$ac_delim
29593PROG_ARP!$PROG_ARP$ac_delim
29594PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
29595PROG_JSTAT!$PROG_JSTAT$ac_delim
29596PROG_PS!$PROG_PS$ac_delim
29597PROG_SAR!$PROG_SAR$ac_delim
29598PROG_W!$PROG_W$ac_delim
29599PROG_WHO!$PROG_WHO$ac_delim
29600PROG_LAST!$PROG_LAST$ac_delim
29601PROG_LASTLOG!$PROG_LASTLOG$ac_delim
29602PROG_DF!$PROG_DF$ac_delim
29603PROG_VMSTAT!$PROG_VMSTAT$ac_delim
29604PROG_UPTIME!$PROG_UPTIME$ac_delim
29605PROG_IPCS!$PROG_IPCS$ac_delim
29606PROG_TAIL!$PROG_TAIL$ac_delim
29607INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
29608_ACEOF
29609
29610 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29611 break
29612 elif $ac_last_try; then
29613 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29614echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29615 { (exit 1); exit 1; }; }
29616 else
29617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29618 fi
29619done
29620
29621ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29622if test -n "$ac_eof"; then
29623 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29624 ac_eof=`expr $ac_eof + 1`
29625fi
29626
29627cat >>$CONFIG_STATUS <<_ACEOF
29628cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29629/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29630_ACEOF
29631sed '
29632s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29633s/^/s,@/; s/!/@,|#_!!_#|/
29634:n
29635t n
29636s/'"$ac_delim"'$/,g/; t
29637s/$/\\/; p
29638N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29639' >>$CONFIG_STATUS <conf$$subs.sed
29640rm -f conf$$subs.sed
29641cat >>$CONFIG_STATUS <<_ACEOF
29642CEOF$ac_eof
29643_ACEOF
29644
29645
29646ac_delim='%!_!# '
29647for ac_last_try in false false false false false :; do
29648 cat >conf$$subs.sed <<_ACEOF
29649OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
29650PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
29651xauth_path!$xauth_path$ac_delim
29652STRIP_OPT!$STRIP_OPT$ac_delim
29653XAUTH_PATH!$XAUTH_PATH$ac_delim
29654NROFF!$NROFF$ac_delim
29655MANTYPE!$MANTYPE$ac_delim
29656mansubdir!$mansubdir$ac_delim
29657user_path!$user_path$ac_delim
29658piddir!$piddir$ac_delim
29659TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
29660LIBOBJS!$LIBOBJS$ac_delim
29661LTLIBOBJS!$LTLIBOBJS$ac_delim
29662_ACEOF
29663
29664 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
29665 break
29666 elif $ac_last_try; then
29667 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29668echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29669 { (exit 1); exit 1; }; }
29670 else
29671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29672 fi
29673done
29674
29675ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29676if test -n "$ac_eof"; then
29677 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29678 ac_eof=`expr $ac_eof + 1`
29679fi
29680
29681cat >>$CONFIG_STATUS <<_ACEOF
29682cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29684_ACEOF
29685sed '
29686s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29687s/^/s,@/; s/!/@,|#_!!_#|/
29688:n
29689t n
29690s/'"$ac_delim"'$/,g/; t
29691s/$/\\/; p
29692N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29693' >>$CONFIG_STATUS <conf$$subs.sed
29694rm -f conf$$subs.sed
29695cat >>$CONFIG_STATUS <<_ACEOF
29696:end
29697s/|#_!!_#|//g
29698CEOF$ac_eof
29699_ACEOF
29700
29701
29702# VPATH may cause trouble with some makes, so we remove $(srcdir),
29703# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29704# trailing colons and then remove the whole line if VPATH becomes empty
29705# (actually we leave an empty line to preserve line numbers).
29706if test "x$srcdir" = x.; then
29707 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29708s/:*\$(srcdir):*/:/
29709s/:*\${srcdir}:*/:/
29710s/:*@srcdir@:*/:/
29711s/^\([^=]*=[ ]*\):*/\1/
29712s/:*$//
29713s/^[^=]*=[ ]*$//
29714}'
29715fi
29716
29717cat >>$CONFIG_STATUS <<\_ACEOF
29718fi # test -n "$CONFIG_FILES"
29719
29720
29721for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29722do
29723 case $ac_tag in
29724 :[FHLC]) ac_mode=$ac_tag; continue;;
29725 esac
29726 case $ac_mode$ac_tag in
29727 :[FHL]*:*);;
29728 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29729echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29730 { (exit 1); exit 1; }; };;
29731 :[FH]-) ac_tag=-:-;;
29732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29733 esac
29734 ac_save_IFS=$IFS
29735 IFS=:
29736 set x $ac_tag
29737 IFS=$ac_save_IFS
29738 shift
29739 ac_file=$1
29740 shift
29741
29742 case $ac_mode in
29743 :L) ac_source=$1;;
29744 :[FH])
29745 ac_file_inputs=
29746 for ac_f
29747 do
29748 case $ac_f in
29749 -) ac_f="$tmp/stdin";;
29750 *) # Look for the file first in the build tree, then in the source tree
29751 # (if the path is not absolute). The absolute path cannot be DOS-style,
29752 # because $ac_f cannot contain `:'.
29753 test -f "$ac_f" ||
29754 case $ac_f in
29755 [\\/$]*) false;;
29756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29757 esac ||
29758 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29759echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29760 { (exit 1); exit 1; }; };;
29761 esac
29762 ac_file_inputs="$ac_file_inputs $ac_f"
29763 done
29764
29765 # Let's still pretend it is `configure' which instantiates (i.e., don't
29766 # use $as_me), people would be surprised to read:
29767 # /* config.h. Generated by config.status. */
29768 configure_input="Generated from "`IFS=:
29769 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29770 if test x"$ac_file" != x-; then
29771 configure_input="$ac_file. $configure_input"
29772 { echo "$as_me:$LINENO: creating $ac_file" >&5
29773echo "$as_me: creating $ac_file" >&6;}
29774 fi
29775
29776 case $ac_tag in
29777 *:-:* | *:-) cat >"$tmp/stdin";;
29778 esac
29779 ;;
29780 esac
29781
29782 ac_dir=`$as_dirname -- "$ac_file" ||
29783$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29784 X"$ac_file" : 'X\(//\)[^/]' \| \
29785 X"$ac_file" : 'X\(//\)$' \| \
29786 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29787echo X"$ac_file" |
29788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29789 s//\1/
29790 q
29791 }
29792 /^X\(\/\/\)[^/].*/{
29793 s//\1/
29794 q
29795 }
29796 /^X\(\/\/\)$/{
29797 s//\1/
29798 q
29799 }
29800 /^X\(\/\).*/{
29801 s//\1/
29802 q
29803 }
29804 s/.*/./; q'`
29805 { as_dir="$ac_dir"
29806 case $as_dir in #(
29807 -*) as_dir=./$as_dir;;
29808 esac
29809 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29810 as_dirs=
29811 while :; do
29812 case $as_dir in #(
29813 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29814 *) as_qdir=$as_dir;;
29815 esac
29816 as_dirs="'$as_qdir' $as_dirs"
29817 as_dir=`$as_dirname -- "$as_dir" ||
29818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29819 X"$as_dir" : 'X\(//\)[^/]' \| \
29820 X"$as_dir" : 'X\(//\)$' \| \
29821 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29822echo X"$as_dir" |
29823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29824 s//\1/
29825 q
29826 }
29827 /^X\(\/\/\)[^/].*/{
29828 s//\1/
29829 q
29830 }
29831 /^X\(\/\/\)$/{
29832 s//\1/
29833 q
29834 }
29835 /^X\(\/\).*/{
29836 s//\1/
29837 q
29838 }
29839 s/.*/./; q'`
29840 test -d "$as_dir" && break
29841 done
29842 test -z "$as_dirs" || eval "mkdir $as_dirs"
29843 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29844echo "$as_me: error: cannot create directory $as_dir" >&2;}
29845 { (exit 1); exit 1; }; }; }
29846 ac_builddir=.
29847
29848case "$ac_dir" in
29849.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29850*)
29851 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29852 # A ".." for each directory in $ac_dir_suffix.
29853 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29854 case $ac_top_builddir_sub in
29855 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29856 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29857 esac ;;
29858esac
29859ac_abs_top_builddir=$ac_pwd
29860ac_abs_builddir=$ac_pwd$ac_dir_suffix
29861# for backward compatibility:
29862ac_top_builddir=$ac_top_build_prefix
29863
29864case $srcdir in
29865 .) # We are building in place.
29866 ac_srcdir=.
29867 ac_top_srcdir=$ac_top_builddir_sub
29868 ac_abs_top_srcdir=$ac_pwd ;;
29869 [\\/]* | ?:[\\/]* ) # Absolute name.
29870 ac_srcdir=$srcdir$ac_dir_suffix;
29871 ac_top_srcdir=$srcdir
29872 ac_abs_top_srcdir=$srcdir ;;
29873 *) # Relative name.
29874 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29875 ac_top_srcdir=$ac_top_build_prefix$srcdir
29876 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29877esac
29878ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29879
29880
29881 case $ac_mode in
29882 :F)
29883 #
29884 # CONFIG_FILE
29885 #
29886
29887 case $INSTALL in
29888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29889 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29890 esac
29891_ACEOF
29892
29893cat >>$CONFIG_STATUS <<\_ACEOF
29894# If the template does not know about datarootdir, expand it.
29895# FIXME: This hack should be removed a few years after 2.60.
29896ac_datarootdir_hack=; ac_datarootdir_seen=
29897
29898case `sed -n '/datarootdir/ {
29899 p
29900 q
29901}
29902/@datadir@/p
29903/@docdir@/p
29904/@infodir@/p
29905/@localedir@/p
29906/@mandir@/p
29907' $ac_file_inputs` in
29908*datarootdir*) ac_datarootdir_seen=yes;;
29909*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29910 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29911echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29912_ACEOF
29913cat >>$CONFIG_STATUS <<_ACEOF
29914 ac_datarootdir_hack='
29915 s&@datadir@&$datadir&g
29916 s&@docdir@&$docdir&g
29917 s&@infodir@&$infodir&g
29918 s&@localedir@&$localedir&g
29919 s&@mandir@&$mandir&g
29920 s&\\\${datarootdir}&$datarootdir&g' ;;
29921esac
29922_ACEOF
29923
29924# Neutralize VPATH when `$srcdir' = `.'.
29925# Shell code in configure.ac might set extrasub.
29926# FIXME: do we really want to maintain this feature?
29927cat >>$CONFIG_STATUS <<_ACEOF
29928 sed "$ac_vpsub
29929$extrasub
29930_ACEOF
29931cat >>$CONFIG_STATUS <<\_ACEOF
29932:t
29933/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29934s&@configure_input@&$configure_input&;t t
29935s&@top_builddir@&$ac_top_builddir_sub&;t t
29936s&@srcdir@&$ac_srcdir&;t t
29937s&@abs_srcdir@&$ac_abs_srcdir&;t t
29938s&@top_srcdir@&$ac_top_srcdir&;t t
29939s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29940s&@builddir@&$ac_builddir&;t t
29941s&@abs_builddir@&$ac_abs_builddir&;t t
29942s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29943s&@INSTALL@&$ac_INSTALL&;t t
29944$ac_datarootdir_hack
29945" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29946
29947test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29948 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29950 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29951which seems to be undefined. Please make sure it is defined." >&5
29952echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29953which seems to be undefined. Please make sure it is defined." >&2;}
29954
29955 rm -f "$tmp/stdin"
29956 case $ac_file in
29957 -) cat "$tmp/out"; rm -f "$tmp/out";;
29958 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29959 esac
29960 ;;
29961 :H)
29962 #
29963 # CONFIG_HEADER
29964 #
29965_ACEOF
29966
29967# Transform confdefs.h into a sed script `conftest.defines', that
29968# substitutes the proper values into config.h.in to produce config.h.
29969rm -f conftest.defines conftest.tail
29970# First, append a space to every undef/define line, to ease matching.
29971echo 's/$/ /' >conftest.defines
29972# Then, protect against being on the right side of a sed subst, or in
29973# an unquoted here document, in config.status. If some macros were
29974# called several times there might be several #defines for the same
29975# symbol, which is useless. But do not sort them, since the last
29976# AC_DEFINE must be honored.
29977ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29978# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29979# NAME is the cpp macro being defined, VALUE is the value it is being given.
29980# PARAMS is the parameter list in the macro definition--in most cases, it's
29981# just an empty string.
29982ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29983ac_dB='\\)[ (].*,\\1define\\2'
29984ac_dC=' '
29985ac_dD=' ,'
29986
29987uniq confdefs.h |
29988 sed -n '
29989 t rset
29990 :rset
29991 s/^[ ]*#[ ]*define[ ][ ]*//
29992 t ok
29993 d
29994 :ok
29995 s/[\\&,]/\\&/g
29996 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29997 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29998 ' >>conftest.defines
29999
30000# Remove the space that was appended to ease matching.
30001# Then replace #undef with comments. This is necessary, for
30002# example, in the case of _POSIX_SOURCE, which is predefined and required
30003# on some systems where configure will not decide to define it.
30004# (The regexp can be short, since the line contains either #define or #undef.)
30005echo 's/ $//
30006s,^[ #]*u.*,/* & */,' >>conftest.defines
30007
30008# Break up conftest.defines:
30009ac_max_sed_lines=50
30010
30011# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30012# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30013# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30014# et cetera.
30015ac_in='$ac_file_inputs'
30016ac_out='"$tmp/out1"'
30017ac_nxt='"$tmp/out2"'
30018
30019while :
30020do
30021 # Write a here document:
30022 cat >>$CONFIG_STATUS <<_ACEOF
30023 # First, check the format of the line:
30024 cat >"\$tmp/defines.sed" <<\\CEOF
30025/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30026/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30027b
30028:def
30029_ACEOF
30030 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30031 echo 'CEOF
30032 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30033 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30034 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30035 grep . conftest.tail >/dev/null || break
30036 rm -f conftest.defines
30037 mv conftest.tail conftest.defines
30038done
30039rm -f conftest.defines conftest.tail
30040
30041echo "ac_result=$ac_in" >>$CONFIG_STATUS
30042cat >>$CONFIG_STATUS <<\_ACEOF
30043 if test x"$ac_file" != x-; then
30044 echo "/* $configure_input */" >"$tmp/config.h"
30045 cat "$ac_result" >>"$tmp/config.h"
30046 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30047 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30048echo "$as_me: $ac_file is unchanged" >&6;}
30049 else
30050 rm -f $ac_file
30051 mv "$tmp/config.h" $ac_file
30052 fi
30053 else
30054 echo "/* $configure_input */"
30055 cat "$ac_result"
30056 fi
30057 rm -f "$tmp/out12"
30058 ;;
30059
30060
30061 esac
30062
30063done # for ac_tag
30064
30065
30066{ (exit 0); exit 0; }
30067_ACEOF
30068chmod +x $CONFIG_STATUS
30069ac_clean_files=$ac_clean_files_save
30070
30071
30072# configure is writing to config.log, and then calls config.status.
30073# config.status does its own redirection, appending to config.log.
30074# Unfortunately, on DOS this fails, as config.log is still kept open
30075# by configure, so config.status won't be able to write to it; its
30076# output is simply discarded. So we exec the FD to /dev/null,
30077# effectively closing config.log, so it can be properly (re)opened and
30078# appended to by config.status. When coming back to configure, we
30079# need to make the FD available again.
30080if test "$no_create" != yes; then
30081 ac_cs_success=:
30082 ac_config_status_args=
30083 test "$silent" = yes &&
30084 ac_config_status_args="$ac_config_status_args --quiet"
30085 exec 5>/dev/null
30086 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30087 exec 5>>config.log
30088 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30089 # would make configure fail if this is the last instruction.
30090 $ac_cs_success || { (exit 1); exit 1; }
30091fi
30092
30093
30094# Print summary of options
30095
30096# Someone please show me a better way :)
30097A=`eval echo ${prefix}` ; A=`eval echo ${A}`
30098B=`eval echo ${bindir}` ; B=`eval echo ${B}`
30099C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
30100D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
30101E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
30102F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
30103G=`eval echo ${piddir}` ; G=`eval echo ${G}`
30104H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
30105I=`eval echo ${user_path}` ; I=`eval echo ${I}`
30106J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
30107
30108echo ""
30109echo "OpenSSH has been configured with the following options:"
30110echo " User binaries: $B"
30111echo " System binaries: $C"
30112echo " Configuration files: $D"
30113echo " Askpass program: $E"
30114echo " Manual pages: $F"
30115echo " PID file: $G"
30116echo " Privilege separation chroot path: $H"
30117if test "x$external_path_file" = "x/etc/login.conf" ; then
30118echo " At runtime, sshd will use the path defined in $external_path_file"
30119echo " Make sure the path to scp is present, otherwise scp will not work"
30120else
30121echo " sshd default user PATH: $I"
30122 if test ! -z "$external_path_file"; then
30123echo " (If PATH is set in $external_path_file it will be used instead. If"
30124echo " used, ensure the path to scp is present, otherwise scp will not work.)"
30125 fi
30126fi
30127if test ! -z "$superuser_path" ; then
30128echo " sshd superuser user PATH: $J"
30129fi
30130echo " Manpage format: $MANTYPE"
30131echo " PAM support: $PAM_MSG"
30132echo " OSF SIA support: $SIA_MSG"
30133echo " KerberosV support: $KRB5_MSG"
30134echo " SELinux support: $SELINUX_MSG"
30135echo " Smartcard support: $SCARD_MSG"
30136echo " S/KEY support: $SKEY_MSG"
30137echo " TCP Wrappers support: $TCPW_MSG"
30138echo " MD5 password support: $MD5_MSG"
30139echo " libedit support: $LIBEDIT_MSG"
30140echo " Solaris process contract support: $SPC_MSG"
30141echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
30142echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
30143echo " BSD Auth support: $BSD_AUTH_MSG"
30144echo " Random number source: $RAND_MSG"
30145if test ! -z "$USE_RAND_HELPER" ; then
30146echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
30147fi
30148
30149echo ""
30150
30151echo " Host: ${host}"
30152echo " Compiler: ${CC}"
30153echo " Compiler flags: ${CFLAGS}"
30154echo "Preprocessor flags: ${CPPFLAGS}"
30155echo " Linker flags: ${LDFLAGS}"
30156echo " Libraries: ${LIBS}"
30157if test ! -z "${SSHDLIBS}"; then
30158echo " +for sshd: ${SSHDLIBS}"
30159fi
30160
30161echo ""
30162
30163if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
30164 echo "SVR4 style packages are supported with \"make package\""
30165 echo ""
30166fi
30167
30168if test "x$PAM_MSG" = "xyes" ; then
30169 echo "PAM is enabled. You may need to install a PAM control file "
30170 echo "for sshd, otherwise password authentication may fail. "
30171 echo "Example PAM control files can be found in the contrib/ "
30172 echo "subdirectory"
30173 echo ""
30174fi
30175
30176if test ! -z "$RAND_HELPER_CMDHASH" ; then
30177 echo "WARNING: you are using the builtin random number collection "
30178 echo "service. Please read WARNING.RNG and request that your OS "
30179 echo "vendor includes kernel-based random number collection in "
30180 echo "future versions of your OS."
30181 echo ""
30182fi
30183
30184if test ! -z "$NO_PEERCHECK" ; then
30185 echo "WARNING: the operating system that you are using does not"
30186 echo "appear to support getpeereid(), getpeerucred() or the"
30187 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
30188 echo "enforce security checks to prevent unauthorised connections to"
30189 echo "ssh-agent. Their absence increases the risk that a malicious"
30190 echo "user can connect to your agent."
30191 echo ""
30192fi
30193
30194if test "$AUDIT_MODULE" = "bsm" ; then
30195 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
30196 echo "See the Solaris section in README.platform for details."
30197fi
diff --git a/contrib/gnome-ssh-askpass.c b/contrib/gnome-ssh-askpass.c
new file mode 100644
index 000000000..7cece5620
--- /dev/null
+++ b/contrib/gnome-ssh-askpass.c
@@ -0,0 +1,168 @@
1/*
2 * Copyright (c) 2000-2002 Damien Miller. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25/*
26 * This is a simple GNOME SSH passphrase grabber. To use it, set the
27 * environment variable SSH_ASKPASS to point to the location of
28 * gnome-ssh-askpass before calling "ssh-add < /dev/null".
29 *
30 * There is only two run-time options: if you set the environment variable
31 * "GNOME_SSH_ASKPASS_GRAB_SERVER=true" then gnome-ssh-askpass will grab
32 * the X server. If you set "GNOME_SSH_ASKPASS_GRAB_POINTER=true", then the
33 * pointer will be grabbed too. These may have some benefit to security if
34 * you don't trust your X server. We grab the keyboard always.
35 */
36
37/*
38 * Compile with:
39 *
40 * cc `gnome-config --cflags gnome gnomeui` \
41 * gnome-ssh-askpass.c -o gnome-ssh-askpass \
42 * `gnome-config --libs gnome gnomeui`
43 *
44 */
45
46#include <stdlib.h>
47#include <stdio.h>
48#include <string.h>
49#include <gnome.h>
50#include <X11/Xlib.h>
51#include <gdk/gdkx.h>
52
53void
54report_failed_grab (void)
55{
56 GtkWidget *err;
57
58 err = gnome_message_box_new("Could not grab keyboard or mouse.\n"
59 "A malicious client may be eavesdropping on your session.",
60 GNOME_MESSAGE_BOX_ERROR, "EXIT", NULL);
61 gtk_window_set_position(GTK_WINDOW(err), GTK_WIN_POS_CENTER);
62 gtk_object_set(GTK_OBJECT(err), "type", GTK_WINDOW_POPUP, NULL);
63
64 gnome_dialog_run_and_close(GNOME_DIALOG(err));
65}
66
67void
68passphrase_dialog(char *message)
69{
70 char *passphrase;
71 char **messages;
72 int result, i, grab_server, grab_pointer;
73 GtkWidget *dialog, *entry, *label;
74
75 grab_server = (getenv("GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL);
76 grab_pointer = (getenv("GNOME_SSH_ASKPASS_GRAB_POINTER") != NULL);
77
78 dialog = gnome_dialog_new("OpenSSH", GNOME_STOCK_BUTTON_OK,
79 GNOME_STOCK_BUTTON_CANCEL, NULL);
80
81 messages = g_strsplit(message, "\\n", 0);
82 if (messages)
83 for(i = 0; messages[i]; i++) {
84 label = gtk_label_new(messages[i]);
85 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox),
86 label, FALSE, FALSE, 0);
87 }
88
89 entry = gtk_entry_new();
90 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), entry, FALSE,
91 FALSE, 0);
92 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
93 gtk_widget_grab_focus(entry);
94
95 /* Center window and prepare for grab */
96 gtk_object_set(GTK_OBJECT(dialog), "type", GTK_WINDOW_POPUP, NULL);
97 gnome_dialog_set_default(GNOME_DIALOG(dialog), 0);
98 gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
99 gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, TRUE);
100 gnome_dialog_close_hides(GNOME_DIALOG(dialog), TRUE);
101 gtk_container_set_border_width(GTK_CONTAINER(GNOME_DIALOG(dialog)->vbox),
102 GNOME_PAD);
103 gtk_widget_show_all(dialog);
104
105 /* Grab focus */
106 if (grab_server)
107 XGrabServer(GDK_DISPLAY());
108 if (grab_pointer && gdk_pointer_grab(dialog->window, TRUE, 0,
109 NULL, NULL, GDK_CURRENT_TIME))
110 goto nograb;
111 if (gdk_keyboard_grab(dialog->window, FALSE, GDK_CURRENT_TIME))
112 goto nograbkb;
113
114 /* Make <enter> close dialog */
115 gnome_dialog_editable_enters(GNOME_DIALOG(dialog), GTK_EDITABLE(entry));
116
117 /* Run dialog */
118 result = gnome_dialog_run(GNOME_DIALOG(dialog));
119
120 /* Ungrab */
121 if (grab_server)
122 XUngrabServer(GDK_DISPLAY());
123 if (grab_pointer)
124 gdk_pointer_ungrab(GDK_CURRENT_TIME);
125 gdk_keyboard_ungrab(GDK_CURRENT_TIME);
126 gdk_flush();
127
128 /* Report passphrase if user selected OK */
129 passphrase = gtk_entry_get_text(GTK_ENTRY(entry));
130 if (result == 0)
131 puts(passphrase);
132
133 /* Zero passphrase in memory */
134 memset(passphrase, '\0', strlen(passphrase));
135 gtk_entry_set_text(GTK_ENTRY(entry), passphrase);
136
137 gnome_dialog_close(GNOME_DIALOG(dialog));
138 return;
139
140 /* At least one grab failed - ungrab what we got, and report
141 the failure to the user. Note that XGrabServer() cannot
142 fail. */
143 nograbkb:
144 gdk_pointer_ungrab(GDK_CURRENT_TIME);
145 nograb:
146 if (grab_server)
147 XUngrabServer(GDK_DISPLAY());
148 gnome_dialog_close(GNOME_DIALOG(dialog));
149
150 report_failed_grab();
151}
152
153int
154main(int argc, char **argv)
155{
156 char *message;
157
158 gnome_init("GNOME ssh-askpass", "0.1", argc, argv);
159
160 if (argc == 2)
161 message = argv[1];
162 else
163 message = "Enter your OpenSSH passphrase:";
164
165 setvbuf(stdout, 0, _IONBF, 0);
166 passphrase_dialog(message);
167 return 0;
168}
diff --git a/contrib/solaris/README b/contrib/solaris/README
index fefdd4b53..fefdd4b53 100644..100755
--- a/contrib/solaris/README
+++ b/contrib/solaris/README
diff --git a/contrib/solaris/buildpkg.sh b/contrib/solaris/buildpkg.sh
new file mode 100755
index 000000000..29d096306
--- /dev/null
+++ b/contrib/solaris/buildpkg.sh
@@ -0,0 +1,386 @@
1#!/bin/sh
2#
3# Fake Root Solaris/SVR4/SVR5 Build System - Prototype
4#
5# The following code has been provide under Public Domain License. I really
6# don't care what you use it for. Just as long as you don't complain to me
7# nor my employer if you break it. - Ben Lindstrom (mouring@eviladmin.org)
8#
9umask 022
10#
11# Options for building the package
12# You can create a config.local with your customized options
13#
14# uncommenting TEST_DIR and using
15# configure --prefix=/var/tmp --with-privsep-path=/var/tmp/empty
16# and
17# PKGNAME=tOpenSSH should allow testing a package without interfering
18# with a real OpenSSH package on a system. This is not needed on systems
19# that support the -R option to pkgadd.
20#TEST_DIR=/var/tmp # leave commented out for production build
21PKGNAME=OpenSSH
22SYSVINIT_NAME=opensshd
23MAKE=${MAKE:="make"}
24SSHDUID=67 # Default privsep uid
25SSHDGID=67 # Default privsep gid
26# uncomment these next three as needed
27#PERMIT_ROOT_LOGIN=no
28#X11_FORWARDING=yes
29#USR_LOCAL_IS_SYMLINK=yes
30# list of system directories we do NOT want to change owner/group/perms
31# when installing our package
32SYSTEM_DIR="/etc \
33/etc/init.d \
34/etc/rcS.d \
35/etc/rc0.d \
36/etc/rc1.d \
37/etc/rc2.d \
38/etc/opt \
39/opt \
40/opt/bin \
41/usr \
42/usr/bin \
43/usr/lib \
44/usr/sbin \
45/usr/share \
46/usr/share/man \
47/usr/share/man/man1 \
48/usr/share/man/man8 \
49/usr/local \
50/usr/local/bin \
51/usr/local/etc \
52/usr/local/libexec \
53/usr/local/man \
54/usr/local/man/man1 \
55/usr/local/man/man8 \
56/usr/local/sbin \
57/usr/local/share \
58/var \
59/var/opt \
60/var/run \
61/var/tmp \
62/tmp"
63
64# We may need to build as root so we make sure PATH is set up
65# only set the path if it's not set already
66[ -d /usr/local/bin ] && {
67 echo $PATH | grep ":/usr/local/bin" > /dev/null 2>&1
68 [ $? -ne 0 ] && PATH=$PATH:/usr/local/bin
69}
70[ -d /usr/ccs/bin ] && {
71 echo $PATH | grep ":/usr/ccs/bin" > /dev/null 2>&1
72 [ $? -ne 0 ] && PATH=$PATH:/usr/ccs/bin
73}
74export PATH
75#
76
77[ -f Makefile ] || {
78 echo "Please run this script from your build directory"
79 exit 1
80}
81
82# we will look for config.local to override the above options
83[ -s ./config.local ] && . ./config.local
84
85## Start by faking root install
86echo "Faking root install..."
87START=`pwd`
88OPENSSHD_IN=`dirname $0`/opensshd.in
89FAKE_ROOT=$START/package
90[ -d $FAKE_ROOT ] && rm -fr $FAKE_ROOT
91mkdir $FAKE_ROOT
92${MAKE} install-nokeys DESTDIR=$FAKE_ROOT
93if [ $? -gt 0 ]
94then
95 echo "Fake root install failed, stopping."
96 exit 1
97fi
98
99## Fill in some details, like prefix and sysconfdir
100for confvar in prefix exec_prefix bindir sbindir libexecdir datadir mandir sysconfdir piddir
101do
102 eval $confvar=`grep "^$confvar=" Makefile | cut -d = -f 2`
103done
104
105
106## Collect value of privsep user
107for confvar in SSH_PRIVSEP_USER
108do
109 eval $confvar=`awk '/#define[ \t]'$confvar'/{print $3}' config.h`
110done
111
112## Set privsep defaults if not defined
113if [ -z "$SSH_PRIVSEP_USER" ]
114then
115 SSH_PRIVSEP_USER=sshd
116fi
117
118## Extract common info requires for the 'info' part of the package.
119VERSION=`./ssh -V 2>&1 | sed -e 's/,.*//'`
120
121UNAME_S=`uname -s`
122case ${UNAME_S} in
123 SunOS) UNAME_S=Solaris
124 ARCH=`uname -p`
125 RCS_D=yes
126 DEF_MSG="(default: n)"
127 ;;
128 *) ARCH=`uname -m`
129 DEF_MSG="\n" ;;
130esac
131
132## Setup our run level stuff while we are at it.
133mkdir -p $FAKE_ROOT${TEST_DIR}/etc/init.d
134
135## setup our initscript correctly
136sed -e "s#%%configDir%%#${sysconfdir}#g" \
137 -e "s#%%openSSHDir%%#$prefix#g" \
138 -e "s#%%pidDir%%#${piddir}#g" \
139 ${OPENSSHD_IN} > $FAKE_ROOT${TEST_DIR}/etc/init.d/${SYSVINIT_NAME}
140chmod 744 $FAKE_ROOT${TEST_DIR}/etc/init.d/${SYSVINIT_NAME}
141
142[ "${PERMIT_ROOT_LOGIN}" = no ] && \
143 perl -p -i -e "s/#PermitRootLogin yes/PermitRootLogin no/" \
144 $FAKE_ROOT/${sysconfdir}/sshd_config
145[ "${X11_FORWARDING}" = yes ] && \
146 perl -p -i -e "s/#X11Forwarding no/X11Forwarding yes/" \
147 $FAKE_ROOT/${sysconfdir}/sshd_config
148# fix PrintMotd
149perl -p -i -e "s/#PrintMotd yes/PrintMotd no/" \
150 $FAKE_ROOT/${sysconfdir}/sshd_config
151
152# We don't want to overwrite config files on multiple installs
153mv $FAKE_ROOT/${sysconfdir}/ssh_config $FAKE_ROOT/${sysconfdir}/ssh_config.default
154mv $FAKE_ROOT/${sysconfdir}/sshd_config $FAKE_ROOT/${sysconfdir}/sshd_config.default
155[ -f $FAKE_ROOT/${sysconfdir}/ssh_prng_cmds ] && \
156mv $FAKE_ROOT/${sysconfdir}/ssh_prng_cmds $FAKE_ROOT/${sysconfdir}/ssh_prng_cmds.default
157
158cd $FAKE_ROOT
159
160## Ok, this is outright wrong, but it will work. I'm tired of pkgmk
161## whining.
162for i in *; do
163 PROTO_ARGS="$PROTO_ARGS $i=/$i";
164done
165
166## Build info file
167echo "Building pkginfo file..."
168cat > pkginfo << _EOF
169PKG=$PKGNAME
170NAME="OpenSSH Portable for ${UNAME_S}"
171DESC="Secure Shell remote access utility; replaces telnet and rlogin/rsh."
172VENDOR="OpenSSH Portable Team - http://www.openssh.com/portable.html"
173ARCH=$ARCH
174VERSION=$VERSION
175CATEGORY="Security,application"
176BASEDIR=/
177CLASSES="none"
178_EOF
179
180## Build preinstall file
181echo "Building preinstall file..."
182cat > preinstall << _EOF
183#! /sbin/sh
184#
185[ "\${PRE_INS_STOP}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} stop
186exit 0
187_EOF
188
189## Build postinstall file
190echo "Building postinstall file..."
191cat > postinstall << _EOF
192#! /sbin/sh
193#
194[ -f \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_config ] || \\
195 cp -p \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_config.default \\
196 \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_config
197[ -f \${PKG_INSTALL_ROOT}${sysconfdir}/sshd_config ] || \\
198 cp -p \${PKG_INSTALL_ROOT}${sysconfdir}/sshd_config.default \\
199 \${PKG_INSTALL_ROOT}${sysconfdir}/sshd_config
200[ -f \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_prng_cmds.default ] && {
201 [ -f \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_prng_cmds ] || \\
202 cp -p \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_prng_cmds.default \\
203 \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_prng_cmds
204}
205
206# make rc?.d dirs only if we are doing a test install
207[ -n "${TEST_DIR}" ] && {
208 [ "$RCS_D" = yes ] && mkdir -p ${TEST_DIR}/etc/rcS.d
209 mkdir -p ${TEST_DIR}/etc/rc0.d
210 mkdir -p ${TEST_DIR}/etc/rc1.d
211 mkdir -p ${TEST_DIR}/etc/rc2.d
212}
213
214if [ "\${USE_SYM_LINKS}" = yes ]
215then
216 [ "$RCS_D" = yes ] && \
217installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
218 installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc0.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
219 installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc1.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
220 installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
221else
222 [ "$RCS_D" = yes ] && \
223installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
224 installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc0.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
225 installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc1.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
226 installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
227fi
228
229# If piddir doesn't exist we add it. (Ie. --with-pid-dir=/var/opt/ssh)
230[ -d $piddir ] || installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR$piddir d 755 root sys
231
232installf -f ${PKGNAME}
233
234# Use chroot to handle PKG_INSTALL_ROOT
235if [ ! -z "\${PKG_INSTALL_ROOT}" ]
236then
237 chroot="chroot \${PKG_INSTALL_ROOT}"
238fi
239# If this is a test build, we will skip the groupadd/useradd/passwd commands
240if [ ! -z "${TEST_DIR}" ]
241then
242 chroot=echo
243fi
244
245if egrep '^[ \t]*UsePrivilegeSeparation[ \t]+no' \${PKG_INSTALL_ROOT}/$sysconfdir/sshd_config >/dev/null
246then
247 echo "UsePrivilegeSeparation disabled in config, not creating PrivSep user"
248 echo "or group."
249else
250 echo "UsePrivilegeSeparation enabled in config (or defaulting to on)."
251
252 # create group if required
253 if cut -f1 -d: \${PKG_INSTALL_ROOT}/etc/group | egrep '^'$SSH_PRIVSEP_USER'\$' >/dev/null
254 then
255 echo "PrivSep group $SSH_PRIVSEP_USER already exists."
256 else
257 # Use gid of 67 if possible
258 if cut -f3 -d: \${PKG_INSTALL_ROOT}/etc/group | egrep '^'$SSHDGID'\$' >/dev/null
259 then
260 :
261 else
262 sshdgid="-g $SSHDGID"
263 fi
264 echo "Creating PrivSep group $SSH_PRIVSEP_USER."
265 \$chroot /usr/sbin/groupadd \$sshdgid $SSH_PRIVSEP_USER
266 fi
267
268 # Create user if required
269 if cut -f1 -d: \${PKG_INSTALL_ROOT}/etc/passwd | egrep '^'$SSH_PRIVSEP_USER'\$' >/dev/null
270 then
271 echo "PrivSep user $SSH_PRIVSEP_USER already exists."
272 else
273 # Use uid of 67 if possible
274 if cut -f3 -d: \${PKG_INSTALL_ROOT}/etc/passwd | egrep '^'$SSHDGID'\$' >/dev/null
275 then
276 :
277 else
278 sshduid="-u $SSHDUID"
279 fi
280 echo "Creating PrivSep user $SSH_PRIVSEP_USER."
281 \$chroot /usr/sbin/useradd -c 'SSHD PrivSep User' -s /bin/false -g $SSH_PRIVSEP_USER \$sshduid $SSH_PRIVSEP_USER
282 \$chroot /usr/bin/passwd -l $SSH_PRIVSEP_USER
283 fi
284fi
285
286[ "\${POST_INS_START}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start
287exit 0
288_EOF
289
290## Build preremove file
291echo "Building preremove file..."
292cat > preremove << _EOF
293#! /sbin/sh
294#
295${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} stop
296exit 0
297_EOF
298
299## Build request file
300echo "Building request file..."
301cat > request << _EOF
302trap 'exit 3' 15
303USE_SYM_LINKS=no
304PRE_INS_STOP=no
305POST_INS_START=no
306# Use symbolic links?
307ans=\`ckyorn -d n \
308-p "Do you want symbolic links for the start/stop scripts? ${DEF_MSG}"\` || exit \$?
309case \$ans in
310 [y,Y]*) USE_SYM_LINKS=yes ;;
311esac
312
313# determine if should restart the daemon
314if [ -s ${piddir}/sshd.pid -a -f ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} ]
315then
316 ans=\`ckyorn -d n \
317-p "Should the running sshd daemon be restarted? ${DEF_MSG}"\` || exit \$?
318 case \$ans in
319 [y,Y]*) PRE_INS_STOP=yes
320 POST_INS_START=yes
321 ;;
322 esac
323
324else
325
326# determine if we should start sshd
327 ans=\`ckyorn -d n \
328-p "Start the sshd daemon after installing this package? ${DEF_MSG}"\` || exit \$?
329 case \$ans in
330 [y,Y]*) POST_INS_START=yes ;;
331 esac
332fi
333
334# make parameters available to installation service,
335# and so to any other packaging scripts
336cat >\$1 <<!
337USE_SYM_LINKS='\$USE_SYM_LINKS'
338PRE_INS_STOP='\$PRE_INS_STOP'
339POST_INS_START='\$POST_INS_START'
340!
341exit 0
342
343_EOF
344
345## Build space file
346echo "Building space file..."
347cat > space << _EOF
348# extra space required by start/stop links added by installf in postinstall
349$TEST_DIR/etc/rc0.d/K30${SYSVINIT_NAME} 0 1
350$TEST_DIR/etc/rc1.d/K30${SYSVINIT_NAME} 0 1
351$TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME} 0 1
352_EOF
353[ "$RCS_D" = yes ] && \
354echo "$TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME} 0 1" >> space
355
356## Next Build our prototype
357echo "Building prototype file..."
358cat >mk-proto.awk << _EOF
359 BEGIN { print "i pkginfo"; print "i preinstall"; \\
360 print "i postinstall"; print "i preremove"; \\
361 print "i request"; print "i space"; \\
362 split("$SYSTEM_DIR",sys_files); }
363 {
364 for (dir in sys_files) { if ( \$3 != sys_files[dir] )
365 { \$5="root"; \$6="sys"; }
366 else
367 { \$4="?"; \$5="?"; \$6="?"; break;}
368 } }
369 { print; }
370_EOF
371find . | egrep -v "prototype|pkginfo|mk-proto.awk" | sort | \
372 pkgproto $PROTO_ARGS | nawk -f mk-proto.awk > prototype
373
374# /usr/local is a symlink on some systems
375[ "${USR_LOCAL_IS_SYMLINK}" = yes ] && {
376 grep -v "^d none /usr/local ? ? ?$" prototype > prototype.new
377 mv prototype.new prototype
378}
379
380## Step back a directory and now build the package.
381echo "Building package.."
382cd ..
383pkgmk -d ${FAKE_ROOT} -f $FAKE_ROOT/prototype -o
384echo | pkgtrans -os ${FAKE_ROOT} ${START}/$PKGNAME-$UNAME_S-$ARCH-$VERSION.pkg
385rm -rf $FAKE_ROOT
386
diff --git a/contrib/solaris/opensshd.in b/contrib/solaris/opensshd.in
new file mode 100755
index 000000000..50e18deea
--- /dev/null
+++ b/contrib/solaris/opensshd.in
@@ -0,0 +1,82 @@
1#!/sbin/sh
2# Donated code that was put under PD license.
3#
4# Stripped PRNGd out of it for the time being.
5
6umask 022
7
8CAT=/usr/bin/cat
9KILL=/usr/bin/kill
10
11prefix=%%openSSHDir%%
12etcdir=%%configDir%%
13piddir=%%pidDir%%
14
15SSHD=$prefix/sbin/sshd
16PIDFILE=$piddir/sshd.pid
17SSH_KEYGEN=$prefix/bin/ssh-keygen
18HOST_KEY_RSA1=$etcdir/ssh_host_key
19HOST_KEY_DSA=$etcdir/ssh_host_dsa_key
20HOST_KEY_RSA=$etcdir/ssh_host_rsa_key
21
22
23checkkeys() {
24 if [ ! -f $HOST_KEY_RSA1 ]; then
25 ${SSH_KEYGEN} -t rsa1 -f ${HOST_KEY_RSA1} -N ""
26 fi
27 if [ ! -f $HOST_KEY_DSA ]; then
28 ${SSH_KEYGEN} -t dsa -f ${HOST_KEY_DSA} -N ""
29 fi
30 if [ ! -f $HOST_KEY_RSA ]; then
31 ${SSH_KEYGEN} -t rsa -f ${HOST_KEY_RSA} -N ""
32 fi
33}
34
35stop_service() {
36 if [ -r $PIDFILE -a ! -z ${PIDFILE} ]; then
37 PID=`${CAT} ${PIDFILE}`
38 fi
39 if [ ${PID:=0} -gt 1 -a ! "X$PID" = "X " ]; then
40 ${KILL} ${PID}
41 else
42 echo "Unable to read PID file"
43 fi
44}
45
46start_service() {
47 # XXX We really should check if the service is already going, but
48 # XXX we will opt out at this time. - Bal
49
50 # Check to see if we have keys that need to be made
51 checkkeys
52
53 # Start SSHD
54 echo "starting $SSHD... \c" ; $SSHD
55
56 sshd_rc=$?
57 if [ $sshd_rc -ne 0 ]; then
58 echo "$0: Error ${sshd_rc} starting ${SSHD}... bailing."
59 exit $sshd_rc
60 fi
61 echo done.
62}
63
64case $1 in
65
66'start')
67 start_service
68 ;;
69
70'stop')
71 stop_service
72 ;;
73
74'restart')
75 stop_service
76 start_service
77 ;;
78
79*)
80 echo "$0: usage: $0 {start|stop|restart}"
81 ;;
82esac
diff --git a/envpass.sh b/envpass.sh
new file mode 100644
index 000000000..67044d421
--- /dev/null
+++ b/envpass.sh
@@ -0,0 +1,44 @@
1# $OpenBSD: envpass.sh,v 1.1 2004/04/27 09:47:30 djm Exp $
2# Placed in the Public Domain.
3
4tid="environment passing"
5
6# NB accepted env vars are in test-exec.sh (_XXX_TEST_* and _XXX_TEST)
7
8trace "pass env, don't accept"
9verbose "test $tid: pass env, don't accept"
10_TEST_ENV=blah ${SSH} -oSendEnv="*" -F $OBJ/ssh_proxy otherhost \
11 '[ -z "$_TEST_ENV" ]'
12r=$?
13if [ $r -ne 0 ]; then
14 fail "environment found"
15fi
16
17trace "don't pass env, accept"
18verbose "test $tid: don't pass env, accept"
19${SSH} -F $OBJ/ssh_proxy otherhost \
20 '[ -z "$_XXX_TEST_A" -a -z "$_XXX_TEST_B" ]'
21r=$?
22if [ $r -ne 0 ]; then
23 fail "environment found"
24fi
25
26trace "pass single env, accept single env"
27verbose "test $tid: pass single env, accept single env"
28_XXX_TEST=blah ${SSH} -oSendEnv="_XXX_TEST" -F $OBJ/ssh_proxy otherhost \
29 '[ "x$_XXX_TEST" = "xblah" ]'
30r=$?
31if [ $r -ne 0 ]; then
32 fail "environment not found"
33fi
34
35trace "pass multiple env, accept multiple env"
36verbose "test $tid: pass multiple env, accept multiple env"
37_XXX_TEST_A=1 _XXX_TEST_B=2 ${SSH} -oSendEnv="_XXX_TEST_*" \
38 -F $OBJ/ssh_proxy otherhost \
39 '[ "x$_XXX_TEST_A" = "x1" -a "x$_XXX_TEST_B" = "x2" ]'
40r=$?
41if [ $r -ne 0 ]; then
42 fail "environment not found"
43fi
44
diff --git a/getput.h b/getput.h
new file mode 100644
index 000000000..20cf8f20b
--- /dev/null
+++ b/getput.h
@@ -0,0 +1,58 @@
1/* $OpenBSD: getput.h,v 1.8 2002/03/04 17:27:39 stevesk Exp $ */
2
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 * Macros for storing and retrieving data in msb first and lsb first order.
8 *
9 * As far as I am concerned, the code I have written for this software
10 * can be used freely for any purpose. Any derived versions of this
11 * software must be clearly marked as such, and if the derived work is
12 * incompatible with the protocol description in the RFC file, it must be
13 * called by a name other than "ssh" or "Secure Shell".
14 */
15
16#ifndef GETPUT_H
17#define GETPUT_H
18
19/*------------ macros for storing/extracting msb first words -------------*/
20
21#define GET_64BIT(cp) (((u_int64_t)(u_char)(cp)[0] << 56) | \
22 ((u_int64_t)(u_char)(cp)[1] << 48) | \
23 ((u_int64_t)(u_char)(cp)[2] << 40) | \
24 ((u_int64_t)(u_char)(cp)[3] << 32) | \
25 ((u_int64_t)(u_char)(cp)[4] << 24) | \
26 ((u_int64_t)(u_char)(cp)[5] << 16) | \
27 ((u_int64_t)(u_char)(cp)[6] << 8) | \
28 ((u_int64_t)(u_char)(cp)[7]))
29
30#define GET_32BIT(cp) (((u_long)(u_char)(cp)[0] << 24) | \
31 ((u_long)(u_char)(cp)[1] << 16) | \
32 ((u_long)(u_char)(cp)[2] << 8) | \
33 ((u_long)(u_char)(cp)[3]))
34
35#define GET_16BIT(cp) (((u_long)(u_char)(cp)[0] << 8) | \
36 ((u_long)(u_char)(cp)[1]))
37
38#define PUT_64BIT(cp, value) do { \
39 (cp)[0] = (value) >> 56; \
40 (cp)[1] = (value) >> 48; \
41 (cp)[2] = (value) >> 40; \
42 (cp)[3] = (value) >> 32; \
43 (cp)[4] = (value) >> 24; \
44 (cp)[5] = (value) >> 16; \
45 (cp)[6] = (value) >> 8; \
46 (cp)[7] = (value); } while (0)
47
48#define PUT_32BIT(cp, value) do { \
49 (cp)[0] = (value) >> 24; \
50 (cp)[1] = (value) >> 16; \
51 (cp)[2] = (value) >> 8; \
52 (cp)[3] = (value); } while (0)
53
54#define PUT_16BIT(cp, value) do { \
55 (cp)[0] = (value) >> 8; \
56 (cp)[1] = (value); } while (0)
57
58#endif /* GETPUT_H */
diff --git a/mdoc2man.pl b/mdoc2man.pl
new file mode 100644
index 000000000..928fc5d7a
--- /dev/null
+++ b/mdoc2man.pl
@@ -0,0 +1,592 @@
1#!/usr/bin/perl
2###
3### Quick usage: mdoc2man.pl < mdoc_manpage.8 > man_manpage.8
4###
5###
6### Copyright (c) 2001 University of Illinois Board of Trustees
7### Copyright (c) 2001 Mark D. Roth
8### All rights reserved.
9###
10### Redistribution and use in source and binary forms, with or without
11### modification, are permitted provided that the following conditions
12### are met:
13### 1. Redistributions of source code must retain the above copyright
14### notice, this list of conditions and the following disclaimer.
15### 2. Redistributions in binary form must reproduce the above copyright
16### notice, this list of conditions and the following disclaimer in the
17### documentation and/or other materials provided with the distribution.
18### 3. All advertising materials mentioning features or use of this software
19### must display the following acknowledgement:
20### This product includes software developed by the University of
21### Illinois at Urbana, and their contributors.
22### 4. The University nor the names of their
23### contributors may be used to endorse or promote products derived from
24### this software without specific prior written permission.
25###
26### THIS SOFTWARE IS PROVIDED BY THE TRUSTEES AND CONTRIBUTORS ``AS IS'' AND
27### ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28### IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29### ARE DISCLAIMED. IN NO EVENT SHALL THE TRUSTEES OR CONTRIBUTORS BE LIABLE
30### FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31### DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32### OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33### HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34### LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35### OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36### SUCH DAMAGE.
37###
38
39use strict;
40
41my ($name, $date, $id);
42my ($line);
43my ($optlist, $oldoptlist, $nospace, $enum, $synopsis);
44my ($reference, $block, $ext, $extopt, $literal);
45my (@refauthors, $reftitle, $refissue, $refdate, $refopt);
46
47
48$optlist = 0; ### 1 = bullet, 2 = enum, 3 = tag, 4 = item
49$oldoptlist = 0;
50$nospace = 0;
51$synopsis = 0;
52$reference = 0;
53$block = 0;
54$ext = 0;
55$extopt = 0;
56$literal = 0;
57
58while ($line = <STDIN>)
59{
60 if ($line !~ /^\./)
61 {
62 print $line;
63 print ".br\n"
64 if ($literal);
65 next;
66 }
67
68 $line =~ s/^\.//;
69
70 next
71 if ($line =~ m/\\"/);
72
73 $line = ParseMacro($line);
74 print($line)
75 if (defined $line);
76}
77
78
79
80sub ParseMacro # ($line)
81{
82 my ($line) = @_;
83 my (@words, $retval, $option, $parens);
84
85 @words = split(/\s+/, $line);
86 $retval = '';
87 $option = 0;
88 $parens = 0;
89
90# print('@words = ', scalar(@words), ': ', join(' ', @words), "\n");
91
92 while ($_ = shift @words)
93 {
94# print "WORD: $_\n";
95
96 next
97 if (/^(Li|Pf)$/);
98
99 if (/^Xo$/)
100 {
101 $ext = 1;
102 $retval .= ' '
103 if ($retval ne '' && $retval !~ m/[\n ]$/);
104 next;
105 }
106
107 if (/^Xc$/)
108 {
109 $ext = 0;
110 $retval .= "\n"
111 if (! $extopt);
112 last;
113 }
114
115 if (/^Bd$/)
116 {
117 $literal = 1
118 if ($words[0] eq '-literal');
119 $retval .= "\n";
120 last;
121 }
122
123 if (/^Ed$/)
124 {
125 $literal = 0;
126 last;
127 }
128
129 if (/^Ns$/)
130 {
131 $nospace = 1
132 if (! $nospace);
133 $retval =~ s/ $//;
134 next;
135 }
136
137 if (/^No$/)
138 {
139 $retval =~ s/ $//;
140 $retval .= shift @words;
141 next;
142 }
143
144 if (/^Dq$/)
145 {
146 $retval .= '``';
147 do
148 {
149 $retval .= (shift @words) . ' ';
150 }
151 while (@words > 0 && $words[0] !~ m/^[\.,]/);
152 $retval =~ s/ $//;
153 $retval .= '\'\'';
154 $nospace = 1
155 if (! $nospace && $words[0] =~ m/^[\.,]/);
156 next;
157 }
158
159 if (/^(Sq|Ql)$/)
160 {
161 $retval .= '`' . (shift @words) . '\'';
162 $nospace = 1
163 if (! $nospace && $words[0] =~ m/^[\.,]/);
164 next;
165 }
166
167# if (/^Ic$/)
168# {
169# $retval .= '\\fB' . shift(@words) . '\\fP';
170# next;
171# }
172
173 if (/^Oo$/)
174 {
175# $retval .= "[\\c\n";
176 $extopt = 1;
177 $nospace = 1
178 if (! $nospace);
179 $retval .= '[';
180 next;
181 }
182
183 if (/^Oc$/)
184 {
185 $extopt = 0;
186 $retval .= ']';
187 next;
188 }
189
190 $retval .= ' '
191 if (! $nospace && $retval ne '' && $retval !~ m/[\n ]$/);
192 $nospace = 0
193 if ($nospace == 1);
194
195 if (/^Dd$/)
196 {
197 $date = join(' ', @words);
198 return undef;
199 }
200
201 if (/^Dt$/)
202 {
203 $id = join(' ', @words);
204 return undef;
205 }
206
207 if (/^Os$/)
208 {
209 $retval .= '.TH '
210 . $id
211 . " \"$date\" \""
212 . join(' ', @words)
213 . "\"";
214 last;
215 }
216
217 if (/^Sh$/)
218 {
219 $retval .= '.SH';
220 if ($words[0] eq 'SYNOPSIS')
221 {
222 $synopsis = 1;
223 }
224 else
225 {
226 $synopsis = 0;
227 }
228 next;
229 }
230
231 if (/^Xr$/)
232 {
233 $retval .= '\\fB' . (shift @words) .
234 '\\fP(' . (shift @words) . ')'
235 . (shift @words);
236 last;
237 }
238
239 if (/^Rs/)
240 {
241 @refauthors = ();
242 $reftitle = '';
243 $refissue = '';
244 $refdate = '';
245 $refopt = '';
246 $reference = 1;
247 last;
248 }
249
250 if (/^Re/)
251 {
252 $retval .= "\n";
253
254 # authors
255 while (scalar(@refauthors) > 1)
256 {
257 $retval .= shift(@refauthors) . ', ';
258 }
259 $retval .= 'and '
260 if ($retval ne '');
261 $retval .= shift(@refauthors);
262
263 # title
264 $retval .= ', \\fI' . $reftitle . '\\fP';
265
266 # issue
267 $retval .= ', ' . $refissue
268 if ($refissue ne '');
269
270 # date
271 $retval .= ', ' . $refdate
272 if ($refdate ne '');
273
274 # optional info
275 $retval .= ', ' . $refopt
276 if ($refopt ne '');
277
278 $retval .= ".\n";
279
280 $reference = 0;
281 last;
282 }
283
284 if ($reference)
285 {
286 if (/^%A$/)
287 {
288 unshift(@refauthors, join(' ', @words));
289 last;
290 }
291
292 if (/^%T$/)
293 {
294 $reftitle = join(' ', @words);
295 $reftitle =~ s/^"//;
296 $reftitle =~ s/"$//;
297 last;
298 }
299
300 if (/^%N$/)
301 {
302 $refissue = join(' ', @words);
303 last;
304 }
305
306 if (/^%D$/)
307 {
308 $refdate = join(' ', @words);
309 last;
310 }
311
312 if (/^%O$/)
313 {
314 $refopt = join(' ', @words);
315 last;
316 }
317 }
318
319 if (/^Nm$/)
320 {
321 my $n = $name;
322 $n = shift @words
323 if (@words > 0);
324 $name = $n unless $name;
325 $retval .= ".br\n"
326 if ($synopsis);
327 $retval .= "\\fB$n\\fP";
328 $nospace = 1
329 if (! $nospace && $words[0] =~ m/^[\.,]/);
330 next;
331 }
332
333 if (/^Nd$/)
334 {
335 $retval .= '\\-';
336 next;
337 }
338
339 if (/^Fl$/)
340 {
341 $retval .= '\\fB\\-' . (shift @words) . '\\fP';
342 $nospace = 1
343 if (! $nospace && $words[0] =~ m/^[\.,]/);
344 next;
345 }
346
347 if (/^Ar$/)
348 {
349 $retval .= '\\fI';
350 if (! defined $words[0])
351 {
352 $retval .= 'file ...\\fP';
353 }
354 else
355 {
356 $retval .= shift(@words) . '\\fP';
357 while ($words[0] eq '|')
358 {
359 $retval .= ' ' . shift(@words);
360 $retval .= ' \\fI' . shift(@words);
361 $retval .= '\\fP';
362 }
363 }
364 $nospace = 1
365 if (! $nospace && $words[0] =~ m/^[\.,]/);
366 next;
367 }
368
369 if (/^Cm$/)
370 {
371 $retval .= '\\fB' . (shift @words) . '\\fP';
372 while ($words[0] =~ m/^[\.,:)]$/)
373 {
374 $retval .= shift(@words);
375 }
376 next;
377 }
378
379 if (/^Op$/)
380 {
381 $option = 1;
382 $nospace = 1
383 if (! $nospace);
384 $retval .= '[';
385# my $tmp = pop(@words);
386# $tmp .= ']';
387# push(@words, $tmp);
388 next;
389 }
390
391 if (/^Pp$/)
392 {
393 $retval .= "\n";
394 next;
395 }
396
397 if (/^Ss$/)
398 {
399 $retval .= '.SS';
400 next;
401 }
402
403 if (/^Pa$/ && ! $option)
404 {
405 $retval .= '\\fI';
406 $retval .= '\\&'
407 if ($words[0] =~ m/^\./);
408 $retval .= (shift @words) . '\\fP';
409 while ($words[0] =~ m/^[\.,:;)]$/)
410 {
411 $retval .= shift(@words);
412 }
413# $nospace = 1
414# if (! $nospace && $words[0] =~ m/^[\.,:)]/);
415 next;
416 }
417
418 if (/^Dv$/)
419 {
420 $retval .= '.BR';
421 next;
422 }
423
424 if (/^(Em|Ev)$/)
425 {
426 $retval .= '.IR';
427 next;
428 }
429
430 if (/^Pq$/)
431 {
432 $retval .= '(';
433 $nospace = 1;
434 $parens = 1;
435 next;
436 }
437
438 if (/^(S[xy])$/)
439 {
440 $retval .= '.B ' . join(' ', @words);
441 last;
442 }
443
444 if (/^Ic$/)
445 {
446 $retval .= '\\fB';
447 while (defined $words[0]
448 && $words[0] !~ m/^[\.,]/)
449 {
450 if ($words[0] eq 'Op')
451 {
452 shift(@words);
453 $retval .= '[';
454 my $tmp = pop(@words);
455 $tmp .= ']';
456 push(@words, $tmp);
457 next;
458 }
459 if ($words[0] eq 'Ar')
460 {
461 shift @words;
462 $retval .= '\\fI';
463 $retval .= shift @words;
464 $retval .= '\\fP';
465 }
466 else
467 {
468 $retval .= shift @words;
469 }
470 $retval .= ' '
471 if (! $nospace);
472 }
473 $retval =~ s/ $//;
474 $retval .= '\\fP';
475 $retval .= shift @words
476 if (defined $words[0]);
477 last;
478 }
479
480 if (/^Bl$/)
481 {
482 $oldoptlist = $optlist;
483 if ($words[0] eq '-bullet')
484 {
485 $optlist = 1;
486 }
487 elsif ($words[0] eq '-enum')
488 {
489 $optlist = 2;
490 $enum = 0;
491 }
492 elsif ($words[0] eq '-tag')
493 {
494 $optlist = 3;
495 }
496 elsif ($words[0] eq '-item')
497 {
498 $optlist = 4;
499 }
500 last;
501 }
502
503 if (/^El$/)
504 {
505 $optlist = $oldoptlist;
506 next;
507 }
508
509 if ($optlist && /^It$/)
510 {
511 if ($optlist == 1)
512 {
513 # bullets
514 $retval .= '.IP \\(bu';
515 next;
516 }
517
518 if ($optlist == 2)
519 {
520 # enum
521 $retval .= '.IP ' . (++$enum) . '.';
522 next;
523 }
524
525 if ($optlist == 3)
526 {
527 # tags
528 $retval .= ".TP\n";
529 if ($words[0] =~ m/^(Pa|Ev)$/)
530 {
531 shift @words;
532 $retval .= '.B';
533 }
534 next;
535 }
536
537 if ($optlist == 4)
538 {
539 # item
540 $retval .= ".IP\n";
541 next;
542 }
543
544 next;
545 }
546
547 if (/^Sm$/)
548 {
549 if ($words[0] eq 'off')
550 {
551 $nospace = 2;
552 }
553 elsif ($words[0] eq 'on')
554 {
555# $retval .= "\n";
556 $nospace = 0;
557 }
558 shift @words;
559 next;
560 }
561
562 $retval .= "$_";
563 }
564
565 return undef
566 if ($retval eq '.');
567
568 $retval =~ s/^\.([^a-zA-Z])/$1/;
569# $retval =~ s/ $//;
570
571 $retval .= ')'
572 if ($parens == 1);
573
574 $retval .= ']'
575 if ($option == 1);
576
577# $retval .= ' '
578# if ($nospace && $retval ne '' && $retval !~ m/\n$/);
579
580# $retval .= ' '
581# if ($extended && $retval !~ m/ $/);
582
583 $retval .= ' '
584 if ($ext && ! $extopt && $retval !~ m/ $/);
585
586 $retval .= "\n"
587 if (! $ext && ! $extopt && $retval ne '' && $retval !~ m/\n$/);
588
589 return $retval;
590}
591
592
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..55a315fab
--- /dev/null
+++ b/moduli.0
@@ -0,0 +1,72 @@
1MODULI(5) OpenBSD Programmer's Manual MODULI(5)
2
3NAME
4 moduli - Diffie Hellman moduli
5
6DESCRIPTION
7 The /etc/moduli file contains prime numbers and generators for use by
8 sshd(8) in the Diffie-Hellman Group Exchange key exchange method.
9
10 New moduli may be generated with ssh-keygen(1) using a two-step process.
11 An initial candidate generation pass, using ssh-keygen -G, calculates
12 numbers that are likely to be useful. A second primality testing pass,
13 using ssh-keygen -T provides a high degree of assurance that the numbers
14 are prime and are safe for use in Diffie Hellman operations by sshd(8).
15 This moduli format is used as the output from each pass.
16
17 The file consists of newline-separated records, one per modulus, contain-
18 ing seven space separated fields. These fields are as follows:
19
20 timestamp The time that the modulus was last processed as YYYYM-
21 MDDHHMMSS.
22
23 type Decimal number specifying the internal structure of
24 the prime modulus. Supported types are:
25
26 0 Unknown, not tested
27 2 "Safe" prime; (p-1)/2 is also prime.
28 4 Sophie Germain; (p+1)*2 is also prime.
29
30 Moduli candidates initially produced by ssh-keygen(1)
31 are Sophie Germain primes (type 4). Futher primality
32 testing with ssh-keygen(1) produces safe prime moduli
33 (type 2) that are ready for use in sshd(8). Other
34 types are not used by OpenSSH.
35
36 tests Decimal number indicating the type of primality tests
37 that the number has been subjected to represented as a
38 bitmask of the following values:
39
40 0x00 Not tested
41 0x01 Composite number - not prime.
42 0x02 Sieve of Eratosthenes
43 0x04 Probabalistic Miller-Rabin primality tests.
44
45 The ssh-keygen(1) moduli candidate generation uses the
46 Sieve of Eratosthenes (flag 0x02). Subsequent
47 ssh-keygen(1) primality tests are Miller-Rabin tests
48 (flag 0x04).
49
50 trials Decimal number indicating of primaility trials that
51 have been performed on the modulus.
52
53 size Decimal number indicating the size of the prime in
54 bits.
55
56 generator The recommended generator for use with this modulus
57 (hexadecimal).
58
59 modulus The modulus itself in hexadecimal.
60
61 When performing Diffie Hellman Group Exchange, sshd(8) first estimates
62 the size of the modulus required to produce enough Diffie Hellman output
63 to sufficiently key the selected symmetric cipher. sshd(8) then randomly
64 selects a modulus from /etc/moduli that best meets the size requirement.
65
66SEE ALSO
67 ssh-keygen(1), sshd(8),
68
69 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
70 Protocol, RFC 4419, 2006.
71
72OpenBSD 4.4 June 26, 2008 2
diff --git a/moduli.h b/moduli.h
new file mode 100644
index 000000000..9cd1cd3f8
--- /dev/null
+++ b/moduli.h
@@ -0,0 +1,23 @@
1/* $OpenBSD: moduli.h,v 1.1 2003/07/28 09:49:56 djm Exp $ */
2
3#include <sys/types.h>
4#include <openssl/bn.h>
5
6/*
7 * Using virtual memory can cause thrashing. This should be the largest
8 * number that is supported without a large amount of disk activity --
9 * that would increase the run time from hours to days or weeks!
10 */
11#define LARGE_MINIMUM (8UL) /* megabytes */
12
13/*
14 * Do not increase this number beyond the unsigned integer bit size.
15 * Due to a multiple of 4, it must be LESS than 128 (yielding 2**30 bits).
16 */
17#define LARGE_MAXIMUM (127UL) /* megabytes */
18
19/* Minimum number of primality tests to perform */
20#define TRIAL_MINIMUM (4)
21
22int gen_candidates(FILE *, int, int, BIGNUM *);
23int prime_test(FILE *, FILE *, u_int32_t, u_int32_t);
diff --git a/mpaux.c b/mpaux.c
new file mode 100644
index 000000000..0c486275f
--- /dev/null
+++ b/mpaux.c
@@ -0,0 +1,46 @@
1/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 * This file contains various auxiliary functions related to multiple
6 * precision integers.
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
14
15#include "includes.h"
16RCSID("$OpenBSD: mpaux.c,v 1.16 2001/02/08 19:30:52 itojun Exp $");
17
18#include <openssl/bn.h>
19#include "getput.h"
20#include "xmalloc.h"
21
22#include <openssl/md5.h>
23
24#include "mpaux.h"
25
26void
27compute_session_id(u_char session_id[16],
28 u_char cookie[8],
29 BIGNUM* host_key_n,
30 BIGNUM* session_key_n)
31{
32 u_int host_key_bytes = BN_num_bytes(host_key_n);
33 u_int session_key_bytes = BN_num_bytes(session_key_n);
34 u_int bytes = host_key_bytes + session_key_bytes;
35 u_char *buf = xmalloc(bytes);
36 MD5_CTX md;
37
38 BN_bn2bin(host_key_n, buf);
39 BN_bn2bin(session_key_n, buf + host_key_bytes);
40 MD5_Init(&md);
41 MD5_Update(&md, buf, bytes);
42 MD5_Update(&md, cookie, 8);
43 MD5_Final(session_id, &md);
44 memset(buf, 0, bytes);
45 xfree(buf);
46}
diff --git a/mpaux.h b/mpaux.h
new file mode 100644
index 000000000..2a312f5cb
--- /dev/null
+++ b/mpaux.h
@@ -0,0 +1,22 @@
1/* $OpenBSD: mpaux.h,v 1.12 2002/03/04 17:27:39 stevesk Exp $ */
2
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 * This file contains various auxiliary functions related to multiple
8 * precision integers.
9 *
10 * As far as I am concerned, the code I have written for this software
11 * can be used freely for any purpose. Any derived versions of this
12 * software must be clearly marked as such, and if the derived work is
13 * incompatible with the protocol description in the RFC file, it must be
14 * called by a name other than "ssh" or "Secure Shell".
15 */
16
17#ifndef MPAUX_H
18#define MPAUX_H
19
20void compute_session_id(u_char[16], u_char[8], BIGNUM *, BIGNUM *);
21
22#endif /* MPAUX_H */
diff --git a/openbsd-compat/basename.h b/openbsd-compat/basename.h
new file mode 100644
index 000000000..a8bd6c17c
--- /dev/null
+++ b/openbsd-compat/basename.h
@@ -0,0 +1,12 @@
1/* $Id: basename.h,v 1.3 2003/02/25 03:32:16 djm Exp $ */
2
3#ifndef _BASENAME_H
4#define _BASENAME_H
5#include "config.h"
6
7#if !defined(HAVE_BASENAME)
8
9char *basename(const char *path);
10
11#endif /* !defined(HAVE_BASENAME) */
12#endif /* _BASENAME_H */
diff --git a/openbsd-compat/bindresvport.h b/openbsd-compat/bindresvport.h
new file mode 100644
index 000000000..b42f46983
--- /dev/null
+++ b/openbsd-compat/bindresvport.h
@@ -0,0 +1,12 @@
1/* $Id: bindresvport.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_BINDRESVPORT_H
4#define _BSD_BINDRESVPORT_H
5
6#include "config.h"
7
8#ifndef HAVE_BINDRESVPORT_SA
9int bindresvport_sa(int sd, struct sockaddr *sa);
10#endif /* !HAVE_BINDRESVPORT_SA */
11
12#endif /* _BSD_BINDRESVPORT_H */
diff --git a/openbsd-compat/bsd-arc4random.h b/openbsd-compat/bsd-arc4random.h
new file mode 100644
index 000000000..7af757b2d
--- /dev/null
+++ b/openbsd-compat/bsd-arc4random.h
@@ -0,0 +1,37 @@
1/*
2 * Copyright (c) 1999-2000 Damien Miller. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25/* $Id: bsd-arc4random.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
26
27#ifndef _BSD_ARC4RANDOM_H
28#define _BSD_ARC4RANDOM_H
29
30#include "config.h"
31
32#ifndef HAVE_ARC4RANDOM
33unsigned int arc4random(void);
34void arc4random_stir(void);
35#endif /* !HAVE_ARC4RANDOM */
36
37#endif /* _BSD_ARC4RANDOM_H */
diff --git a/openbsd-compat/bsd-getpeereid.h b/openbsd-compat/bsd-getpeereid.h
new file mode 100644
index 000000000..2e9f077f9
--- /dev/null
+++ b/openbsd-compat/bsd-getpeereid.h
@@ -0,0 +1,14 @@
1/* $Id: bsd-getpeereid.h,v 1.1 2002/09/12 00:33:02 djm Exp $ */
2
3#ifndef _BSD_GETPEEREID_H
4#define _BSD_GETPEEREID_H
5
6#include "config.h"
7
8#include <sys/types.h> /* For uid_t, gid_t */
9
10#ifndef HAVE_GETPEEREID
11int getpeereid(int , uid_t *, gid_t *);
12#endif /* HAVE_GETPEEREID */
13
14#endif /* _BSD_GETPEEREID_H */
diff --git a/openbsd-compat/bsd-snprintf.h b/openbsd-compat/bsd-snprintf.h
new file mode 100644
index 000000000..002b764e3
--- /dev/null
+++ b/openbsd-compat/bsd-snprintf.h
@@ -0,0 +1,19 @@
1/* $Id: bsd-snprintf.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_SNPRINTF_H
4#define _BSD_SNPRINTF_H
5
6#include "config.h"
7
8#include <sys/types.h> /* For size_t */
9
10#ifndef HAVE_SNPRINTF
11int snprintf(char *str, size_t count, const char *fmt, ...);
12#endif /* !HAVE_SNPRINTF */
13
14#ifndef HAVE_VSNPRINTF
15int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
16#endif /* !HAVE_SNPRINTF */
17
18
19#endif /* _BSD_SNPRINTF_H */
diff --git a/openbsd-compat/daemon.h b/openbsd-compat/daemon.h
new file mode 100644
index 000000000..95a077359
--- /dev/null
+++ b/openbsd-compat/daemon.h
@@ -0,0 +1,11 @@
1/* $Id: daemon.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_DAEMON_H
4#define _BSD_DAEMON_H
5
6#include "config.h"
7#ifndef HAVE_DAEMON
8int daemon(int nochdir, int noclose);
9#endif /* !HAVE_DAEMON */
10
11#endif /* _BSD_DAEMON_H */
diff --git a/openbsd-compat/dirname.h b/openbsd-compat/dirname.h
new file mode 100644
index 000000000..1d61dd06c
--- /dev/null
+++ b/openbsd-compat/dirname.h
@@ -0,0 +1,5 @@
1#ifndef HAVE_DIRNAME
2
3char *dirname(const char *path);
4
5#endif
diff --git a/openbsd-compat/fake-gai-errnos.h b/openbsd-compat/fake-gai-errnos.h
new file mode 100644
index 000000000..5edc31b59
--- /dev/null
+++ b/openbsd-compat/fake-gai-errnos.h
@@ -0,0 +1,14 @@
1/*
2 * fake library for ssh
3 *
4 * This file is included in getaddrinfo.c and getnameinfo.c.
5 * See getaddrinfo.c and getnameinfo.c.
6 */
7
8/* $Id: fake-gai-errnos.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
9
10/* for old netdb.h */
11#ifndef EAI_NODATA
12#define EAI_NODATA 1
13#define EAI_MEMORY 2
14#endif
diff --git a/openbsd-compat/fake-getaddrinfo.c b/openbsd-compat/fake-getaddrinfo.c
new file mode 100644
index 000000000..e63bda970
--- /dev/null
+++ b/openbsd-compat/fake-getaddrinfo.c
@@ -0,0 +1,135 @@
1/*
2 * fake library for ssh
3 *
4 * This file includes getaddrinfo(), freeaddrinfo() and gai_strerror().
5 * These funtions are defined in rfc2133.
6 *
7 * But these functions are not implemented correctly. The minimum subset
8 * is implemented for ssh use only. For exapmle, this routine assumes
9 * that ai_family is AF_INET. Don't use it for another purpose.
10 */
11
12#include "includes.h"
13#include "ssh.h"
14
15RCSID("$Id: fake-getaddrinfo.c,v 1.5 2003/03/24 02:35:59 djm Exp $");
16
17#ifndef HAVE_GAI_STRERROR
18char *gai_strerror(int ecode)
19{
20 switch (ecode) {
21 case EAI_NODATA:
22 return "no address associated with hostname.";
23 case EAI_MEMORY:
24 return "memory allocation failure.";
25 default:
26 return "unknown error.";
27 }
28}
29#endif /* !HAVE_GAI_STRERROR */
30
31#ifndef HAVE_FREEADDRINFO
32void freeaddrinfo(struct addrinfo *ai)
33{
34 struct addrinfo *next;
35
36 do {
37 next = ai->ai_next;
38 free(ai);
39 } while (NULL != (ai = next));
40}
41#endif /* !HAVE_FREEADDRINFO */
42
43#ifndef HAVE_GETADDRINFO
44static struct addrinfo *malloc_ai(int port, u_long addr)
45{
46 struct addrinfo *ai;
47
48 ai = malloc(sizeof(struct addrinfo) + sizeof(struct sockaddr_in));
49 if (ai == NULL)
50 return(NULL);
51
52 memset(ai, 0, sizeof(struct addrinfo) + sizeof(struct sockaddr_in));
53
54 ai->ai_addr = (struct sockaddr *)(ai + 1);
55 /* XXX -- ssh doesn't use sa_len */
56 ai->ai_addrlen = sizeof(struct sockaddr_in);
57 ai->ai_addr->sa_family = ai->ai_family = AF_INET;
58
59 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
60 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr;
61
62 return(ai);
63}
64
65int getaddrinfo(const char *hostname, const char *servname,
66 const struct addrinfo *hints, struct addrinfo **res)
67{
68 struct addrinfo *cur, *prev = NULL;
69 struct hostent *hp;
70 struct servent *sp;
71 struct in_addr in;
72 int i;
73 long int port;
74 u_long addr;
75
76 port = 0;
77 if (servname != NULL) {
78 char *cp;
79
80 port = strtol(servname, &cp, 10);
81 if (port > 0 && port <= 65535 && *cp == '\0')
82 port = htons(port);
83 else if ((sp = getservbyname(servname, NULL)) != NULL)
84 port = sp->s_port;
85 else
86 port = 0;
87 }
88
89 if (hints && hints->ai_flags & AI_PASSIVE) {
90 addr = htonl(0x00000000);
91 if (hostname && inet_aton(hostname, &in) != 0)
92 addr = in.s_addr;
93 if (NULL != (*res = malloc_ai(port, addr)))
94 return 0;
95 else
96 return EAI_MEMORY;
97 }
98
99 if (!hostname) {
100 if (NULL != (*res = malloc_ai(port, htonl(0x7f000001))))
101 return 0;
102 else
103 return EAI_MEMORY;
104 }
105
106 if (inet_aton(hostname, &in)) {
107 if (NULL != (*res = malloc_ai(port, in.s_addr)))
108 return 0;
109 else
110 return EAI_MEMORY;
111 }
112
113 hp = gethostbyname(hostname);
114 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
115 for (i = 0; hp->h_addr_list[i]; i++) {
116 cur = malloc_ai(port, ((struct in_addr *)hp->h_addr_list[i])->s_addr);
117 if (cur == NULL) {
118 if (*res)
119 freeaddrinfo(*res);
120 return EAI_MEMORY;
121 }
122
123 if (prev)
124 prev->ai_next = cur;
125 else
126 *res = cur;
127
128 prev = cur;
129 }
130 return 0;
131 }
132
133 return EAI_NODATA;
134}
135#endif /* !HAVE_GETADDRINFO */
diff --git a/openbsd-compat/fake-getaddrinfo.h b/openbsd-compat/fake-getaddrinfo.h
new file mode 100644
index 000000000..6943378e9
--- /dev/null
+++ b/openbsd-compat/fake-getaddrinfo.h
@@ -0,0 +1,47 @@
1/* $Id: fake-getaddrinfo.h,v 1.4 2003/02/24 01:35:09 djm Exp $ */
2
3#ifndef _FAKE_GETADDRINFO_H
4#define _FAKE_GETADDRINFO_H
5
6#include "config.h"
7
8#include "fake-gai-errnos.h"
9
10#ifndef AI_PASSIVE
11# define AI_PASSIVE 1
12# define AI_CANONNAME 2
13#endif
14
15#ifndef NI_NUMERICHOST
16# define NI_NUMERICHOST 2
17# define NI_NAMEREQD 4
18# define NI_NUMERICSERV 8
19#endif
20
21#ifndef HAVE_STRUCT_ADDRINFO
22struct addrinfo {
23 int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
24 int ai_family; /* PF_xxx */
25 int ai_socktype; /* SOCK_xxx */
26 int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
27 size_t ai_addrlen; /* length of ai_addr */
28 char *ai_canonname; /* canonical name for hostname */
29 struct sockaddr *ai_addr; /* binary address */
30 struct addrinfo *ai_next; /* next structure in linked list */
31};
32#endif /* !HAVE_STRUCT_ADDRINFO */
33
34#ifndef HAVE_GETADDRINFO
35int getaddrinfo(const char *hostname, const char *servname,
36 const struct addrinfo *hints, struct addrinfo **res);
37#endif /* !HAVE_GETADDRINFO */
38
39#ifndef HAVE_GAI_STRERROR
40char *gai_strerror(int ecode);
41#endif /* !HAVE_GAI_STRERROR */
42
43#ifndef HAVE_FREEADDRINFO
44void freeaddrinfo(struct addrinfo *ai);
45#endif /* !HAVE_FREEADDRINFO */
46
47#endif /* _FAKE_GETADDRINFO_H */
diff --git a/openbsd-compat/fake-getnameinfo.c b/openbsd-compat/fake-getnameinfo.c
new file mode 100644
index 000000000..e255ed333
--- /dev/null
+++ b/openbsd-compat/fake-getnameinfo.c
@@ -0,0 +1,55 @@
1/*
2 * fake library for ssh
3 *
4 * This file includes getnameinfo().
5 * These funtions are defined in rfc2133.
6 *
7 * But these functions are not implemented correctly. The minimum subset
8 * is implemented for ssh use only. For exapmle, this routine assumes
9 * that ai_family is AF_INET. Don't use it for another purpose.
10 */
11
12#include "includes.h"
13#include "ssh.h"
14
15RCSID("$Id: fake-getnameinfo.c,v 1.2 2001/02/09 01:55:36 djm Exp $");
16
17#ifndef HAVE_GETNAMEINFO
18int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
19 size_t hostlen, char *serv, size_t servlen, int flags)
20{
21 struct sockaddr_in *sin = (struct sockaddr_in *)sa;
22 struct hostent *hp;
23 char tmpserv[16];
24
25 if (serv) {
26 snprintf(tmpserv, sizeof(tmpserv), "%d", ntohs(sin->sin_port));
27 if (strlen(tmpserv) >= servlen)
28 return EAI_MEMORY;
29 else
30 strcpy(serv, tmpserv);
31 }
32
33 if (host) {
34 if (flags & NI_NUMERICHOST) {
35 if (strlen(inet_ntoa(sin->sin_addr)) >= hostlen)
36 return EAI_MEMORY;
37
38 strcpy(host, inet_ntoa(sin->sin_addr));
39 return 0;
40 } else {
41 hp = gethostbyaddr((char *)&sin->sin_addr,
42 sizeof(struct in_addr), AF_INET);
43 if (hp == NULL)
44 return EAI_NODATA;
45
46 if (strlen(hp->h_name) >= hostlen)
47 return EAI_MEMORY;
48
49 strcpy(host, hp->h_name);
50 return 0;
51 }
52 }
53 return 0;
54}
55#endif /* !HAVE_GETNAMEINFO */
diff --git a/openbsd-compat/fake-getnameinfo.h b/openbsd-compat/fake-getnameinfo.h
new file mode 100644
index 000000000..c9b7908aa
--- /dev/null
+++ b/openbsd-compat/fake-getnameinfo.h
@@ -0,0 +1,20 @@
1/* $Id: fake-getnameinfo.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _FAKE_GETNAMEINFO_H
4#define _FAKE_GETNAMEINFO_H
5
6#include "config.h"
7
8#ifndef HAVE_GETNAMEINFO
9int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
10 size_t hostlen, char *serv, size_t servlen, int flags);
11#endif /* !HAVE_GETNAMEINFO */
12
13#ifndef NI_MAXSERV
14# define NI_MAXSERV 32
15#endif /* !NI_MAXSERV */
16#ifndef NI_MAXHOST
17# define NI_MAXHOST 1025
18#endif /* !NI_MAXHOST */
19
20#endif /* _FAKE_GETNAMEINFO_H */
diff --git a/openbsd-compat/fake-queue.h b/openbsd-compat/fake-queue.h
new file mode 100644
index 000000000..176fe3174
--- /dev/null
+++ b/openbsd-compat/fake-queue.h
@@ -0,0 +1,584 @@
1/* $OpenBSD: queue.h,v 1.22 2001/06/23 04:39:35 angelos Exp $ */
2/* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */
3
4/*
5 * Copyright (c) 1991, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by the University of
19 * California, Berkeley and its contributors.
20 * 4. Neither the name of the University nor the names of its contributors
21 * may be used to endorse or promote products derived from this software
22 * without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)queue.h 8.5 (Berkeley) 8/20/94
37 */
38
39#ifndef _FAKE_QUEUE_H_
40#define _FAKE_QUEUE_H_
41
42/*
43 * Ignore all <sys/queue.h> since older platforms have broken/incomplete
44 * <sys/queue.h> that are too hard to work around.
45 */
46#undef SLIST_HEAD
47#undef SLIST_HEAD_INITIALIZER
48#undef SLIST_ENTRY
49#undef SLIST_FIRST
50#undef SLIST_END
51#undef SLIST_EMPTY
52#undef SLIST_NEXT
53#undef SLIST_FOREACH
54#undef SLIST_INIT
55#undef SLIST_INSERT_AFTER
56#undef SLIST_INSERT_HEAD
57#undef SLIST_REMOVE_HEAD
58#undef SLIST_REMOVE
59#undef LIST_HEAD
60#undef LIST_HEAD_INITIALIZER
61#undef LIST_ENTRY
62#undef LIST_FIRST
63#undef LIST_END
64#undef LIST_EMPTY
65#undef LIST_NEXT
66#undef LIST_FOREACH
67#undef LIST_INIT
68#undef LIST_INSERT_AFTER
69#undef LIST_INSERT_BEFORE
70#undef LIST_INSERT_HEAD
71#undef LIST_REMOVE
72#undef LIST_REPLACE
73#undef SIMPLEQ_HEAD
74#undef SIMPLEQ_HEAD_INITIALIZER
75#undef SIMPLEQ_ENTRY
76#undef SIMPLEQ_FIRST
77#undef SIMPLEQ_END
78#undef SIMPLEQ_EMPTY
79#undef SIMPLEQ_NEXT
80#undef SIMPLEQ_FOREACH
81#undef SIMPLEQ_INIT
82#undef SIMPLEQ_INSERT_HEAD
83#undef SIMPLEQ_INSERT_TAIL
84#undef SIMPLEQ_INSERT_AFTER
85#undef SIMPLEQ_REMOVE_HEAD
86#undef TAILQ_HEAD
87#undef TAILQ_HEAD_INITIALIZER
88#undef TAILQ_ENTRY
89#undef TAILQ_FIRST
90#undef TAILQ_END
91#undef TAILQ_NEXT
92#undef TAILQ_LAST
93#undef TAILQ_PREV
94#undef TAILQ_EMPTY
95#undef TAILQ_FOREACH
96#undef TAILQ_FOREACH_REVERSE
97#undef TAILQ_INIT
98#undef TAILQ_INSERT_HEAD
99#undef TAILQ_INSERT_TAIL
100#undef TAILQ_INSERT_AFTER
101#undef TAILQ_INSERT_BEFORE
102#undef TAILQ_REMOVE
103#undef TAILQ_REPLACE
104#undef CIRCLEQ_HEAD
105#undef CIRCLEQ_HEAD_INITIALIZER
106#undef CIRCLEQ_ENTRY
107#undef CIRCLEQ_FIRST
108#undef CIRCLEQ_LAST
109#undef CIRCLEQ_END
110#undef CIRCLEQ_NEXT
111#undef CIRCLEQ_PREV
112#undef CIRCLEQ_EMPTY
113#undef CIRCLEQ_FOREACH
114#undef CIRCLEQ_FOREACH_REVERSE
115#undef CIRCLEQ_INIT
116#undef CIRCLEQ_INSERT_AFTER
117#undef CIRCLEQ_INSERT_BEFORE
118#undef CIRCLEQ_INSERT_HEAD
119#undef CIRCLEQ_INSERT_TAIL
120#undef CIRCLEQ_REMOVE
121#undef CIRCLEQ_REPLACE
122
123/*
124 * This file defines five types of data structures: singly-linked lists,
125 * lists, simple queues, tail queues, and circular queues.
126 *
127 *
128 * A singly-linked list is headed by a single forward pointer. The elements
129 * are singly linked for minimum space and pointer manipulation overhead at
130 * the expense of O(n) removal for arbitrary elements. New elements can be
131 * added to the list after an existing element or at the head of the list.
132 * Elements being removed from the head of the list should use the explicit
133 * macro for this purpose for optimum efficiency. A singly-linked list may
134 * only be traversed in the forward direction. Singly-linked lists are ideal
135 * for applications with large datasets and few or no removals or for
136 * implementing a LIFO queue.
137 *
138 * A list is headed by a single forward pointer (or an array of forward
139 * pointers for a hash table header). The elements are doubly linked
140 * so that an arbitrary element can be removed without a need to
141 * traverse the list. New elements can be added to the list before
142 * or after an existing element or at the head of the list. A list
143 * may only be traversed in the forward direction.
144 *
145 * A simple queue is headed by a pair of pointers, one the head of the
146 * list and the other to the tail of the list. The elements are singly
147 * linked to save space, so elements can only be removed from the
148 * head of the list. New elements can be added to the list before or after
149 * an existing element, at the head of the list, or at the end of the
150 * list. A simple queue may only be traversed in the forward direction.
151 *
152 * A tail queue is headed by a pair of pointers, one to the head of the
153 * list and the other to the tail of the list. The elements are doubly
154 * linked so that an arbitrary element can be removed without a need to
155 * traverse the list. New elements can be added to the list before or
156 * after an existing element, at the head of the list, or at the end of
157 * the list. A tail queue may be traversed in either direction.
158 *
159 * A circle queue is headed by a pair of pointers, one to the head of the
160 * list and the other to the tail of the list. The elements are doubly
161 * linked so that an arbitrary element can be removed without a need to
162 * traverse the list. New elements can be added to the list before or after
163 * an existing element, at the head of the list, or at the end of the list.
164 * A circle queue may be traversed in either direction, but has a more
165 * complex end of list detection.
166 *
167 * For details on the use of these macros, see the queue(3) manual page.
168 */
169
170/*
171 * Singly-linked List definitions.
172 */
173#define SLIST_HEAD(name, type) \
174struct name { \
175 struct type *slh_first; /* first element */ \
176}
177
178#define SLIST_HEAD_INITIALIZER(head) \
179 { NULL }
180
181#define SLIST_ENTRY(type) \
182struct { \
183 struct type *sle_next; /* next element */ \
184}
185
186/*
187 * Singly-linked List access methods.
188 */
189#define SLIST_FIRST(head) ((head)->slh_first)
190#define SLIST_END(head) NULL
191#define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head))
192#define SLIST_NEXT(elm, field) ((elm)->field.sle_next)
193
194#define SLIST_FOREACH(var, head, field) \
195 for((var) = SLIST_FIRST(head); \
196 (var) != SLIST_END(head); \
197 (var) = SLIST_NEXT(var, field))
198
199/*
200 * Singly-linked List functions.
201 */
202#define SLIST_INIT(head) { \
203 SLIST_FIRST(head) = SLIST_END(head); \
204}
205
206#define SLIST_INSERT_AFTER(slistelm, elm, field) do { \
207 (elm)->field.sle_next = (slistelm)->field.sle_next; \
208 (slistelm)->field.sle_next = (elm); \
209} while (0)
210
211#define SLIST_INSERT_HEAD(head, elm, field) do { \
212 (elm)->field.sle_next = (head)->slh_first; \
213 (head)->slh_first = (elm); \
214} while (0)
215
216#define SLIST_REMOVE_HEAD(head, field) do { \
217 (head)->slh_first = (head)->slh_first->field.sle_next; \
218} while (0)
219
220#define SLIST_REMOVE(head, elm, type, field) do { \
221 if ((head)->slh_first == (elm)) { \
222 SLIST_REMOVE_HEAD((head), field); \
223 } \
224 else { \
225 struct type *curelm = (head)->slh_first; \
226 while( curelm->field.sle_next != (elm) ) \
227 curelm = curelm->field.sle_next; \
228 curelm->field.sle_next = \
229 curelm->field.sle_next->field.sle_next; \
230 } \
231} while (0)
232
233/*
234 * List definitions.
235 */
236#define LIST_HEAD(name, type) \
237struct name { \
238 struct type *lh_first; /* first element */ \
239}
240
241#define LIST_HEAD_INITIALIZER(head) \
242 { NULL }
243
244#define LIST_ENTRY(type) \
245struct { \
246 struct type *le_next; /* next element */ \
247 struct type **le_prev; /* address of previous next element */ \
248}
249
250/*
251 * List access methods
252 */
253#define LIST_FIRST(head) ((head)->lh_first)
254#define LIST_END(head) NULL
255#define LIST_EMPTY(head) (LIST_FIRST(head) == LIST_END(head))
256#define LIST_NEXT(elm, field) ((elm)->field.le_next)
257
258#define LIST_FOREACH(var, head, field) \
259 for((var) = LIST_FIRST(head); \
260 (var)!= LIST_END(head); \
261 (var) = LIST_NEXT(var, field))
262
263/*
264 * List functions.
265 */
266#define LIST_INIT(head) do { \
267 LIST_FIRST(head) = LIST_END(head); \
268} while (0)
269
270#define LIST_INSERT_AFTER(listelm, elm, field) do { \
271 if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \
272 (listelm)->field.le_next->field.le_prev = \
273 &(elm)->field.le_next; \
274 (listelm)->field.le_next = (elm); \
275 (elm)->field.le_prev = &(listelm)->field.le_next; \
276} while (0)
277
278#define LIST_INSERT_BEFORE(listelm, elm, field) do { \
279 (elm)->field.le_prev = (listelm)->field.le_prev; \
280 (elm)->field.le_next = (listelm); \
281 *(listelm)->field.le_prev = (elm); \
282 (listelm)->field.le_prev = &(elm)->field.le_next; \
283} while (0)
284
285#define LIST_INSERT_HEAD(head, elm, field) do { \
286 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
287 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
288 (head)->lh_first = (elm); \
289 (elm)->field.le_prev = &(head)->lh_first; \
290} while (0)
291
292#define LIST_REMOVE(elm, field) do { \
293 if ((elm)->field.le_next != NULL) \
294 (elm)->field.le_next->field.le_prev = \
295 (elm)->field.le_prev; \
296 *(elm)->field.le_prev = (elm)->field.le_next; \
297} while (0)
298
299#define LIST_REPLACE(elm, elm2, field) do { \
300 if (((elm2)->field.le_next = (elm)->field.le_next) != NULL) \
301 (elm2)->field.le_next->field.le_prev = \
302 &(elm2)->field.le_next; \
303 (elm2)->field.le_prev = (elm)->field.le_prev; \
304 *(elm2)->field.le_prev = (elm2); \
305} while (0)
306
307/*
308 * Simple queue definitions.
309 */
310#define SIMPLEQ_HEAD(name, type) \
311struct name { \
312 struct type *sqh_first; /* first element */ \
313 struct type **sqh_last; /* addr of last next element */ \
314}
315
316#define SIMPLEQ_HEAD_INITIALIZER(head) \
317 { NULL, &(head).sqh_first }
318
319#define SIMPLEQ_ENTRY(type) \
320struct { \
321 struct type *sqe_next; /* next element */ \
322}
323
324/*
325 * Simple queue access methods.
326 */
327#define SIMPLEQ_FIRST(head) ((head)->sqh_first)
328#define SIMPLEQ_END(head) NULL
329#define SIMPLEQ_EMPTY(head) (SIMPLEQ_FIRST(head) == SIMPLEQ_END(head))
330#define SIMPLEQ_NEXT(elm, field) ((elm)->field.sqe_next)
331
332#define SIMPLEQ_FOREACH(var, head, field) \
333 for((var) = SIMPLEQ_FIRST(head); \
334 (var) != SIMPLEQ_END(head); \
335 (var) = SIMPLEQ_NEXT(var, field))
336
337/*
338 * Simple queue functions.
339 */
340#define SIMPLEQ_INIT(head) do { \
341 (head)->sqh_first = NULL; \
342 (head)->sqh_last = &(head)->sqh_first; \
343} while (0)
344
345#define SIMPLEQ_INSERT_HEAD(head, elm, field) do { \
346 if (((elm)->field.sqe_next = (head)->sqh_first) == NULL) \
347 (head)->sqh_last = &(elm)->field.sqe_next; \
348 (head)->sqh_first = (elm); \
349} while (0)
350
351#define SIMPLEQ_INSERT_TAIL(head, elm, field) do { \
352 (elm)->field.sqe_next = NULL; \
353 *(head)->sqh_last = (elm); \
354 (head)->sqh_last = &(elm)->field.sqe_next; \
355} while (0)
356
357#define SIMPLEQ_INSERT_AFTER(head, listelm, elm, field) do { \
358 if (((elm)->field.sqe_next = (listelm)->field.sqe_next) == NULL)\
359 (head)->sqh_last = &(elm)->field.sqe_next; \
360 (listelm)->field.sqe_next = (elm); \
361} while (0)
362
363#define SIMPLEQ_REMOVE_HEAD(head, elm, field) do { \
364 if (((head)->sqh_first = (elm)->field.sqe_next) == NULL) \
365 (head)->sqh_last = &(head)->sqh_first; \
366} while (0)
367
368/*
369 * Tail queue definitions.
370 */
371#define TAILQ_HEAD(name, type) \
372struct name { \
373 struct type *tqh_first; /* first element */ \
374 struct type **tqh_last; /* addr of last next element */ \
375}
376
377#define TAILQ_HEAD_INITIALIZER(head) \
378 { NULL, &(head).tqh_first }
379
380#define TAILQ_ENTRY(type) \
381struct { \
382 struct type *tqe_next; /* next element */ \
383 struct type **tqe_prev; /* address of previous next element */ \
384}
385
386/*
387 * tail queue access methods
388 */
389#define TAILQ_FIRST(head) ((head)->tqh_first)
390#define TAILQ_END(head) NULL
391#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
392#define TAILQ_LAST(head, headname) \
393 (*(((struct headname *)((head)->tqh_last))->tqh_last))
394/* XXX */
395#define TAILQ_PREV(elm, headname, field) \
396 (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last))
397#define TAILQ_EMPTY(head) \
398 (TAILQ_FIRST(head) == TAILQ_END(head))
399
400#define TAILQ_FOREACH(var, head, field) \
401 for((var) = TAILQ_FIRST(head); \
402 (var) != TAILQ_END(head); \
403 (var) = TAILQ_NEXT(var, field))
404
405#define TAILQ_FOREACH_REVERSE(var, head, field, headname) \
406 for((var) = TAILQ_LAST(head, headname); \
407 (var) != TAILQ_END(head); \
408 (var) = TAILQ_PREV(var, headname, field))
409
410/*
411 * Tail queue functions.
412 */
413#define TAILQ_INIT(head) do { \
414 (head)->tqh_first = NULL; \
415 (head)->tqh_last = &(head)->tqh_first; \
416} while (0)
417
418#define TAILQ_INSERT_HEAD(head, elm, field) do { \
419 if (((elm)->field.tqe_next = (head)->tqh_first) != NULL) \
420 (head)->tqh_first->field.tqe_prev = \
421 &(elm)->field.tqe_next; \
422 else \
423 (head)->tqh_last = &(elm)->field.tqe_next; \
424 (head)->tqh_first = (elm); \
425 (elm)->field.tqe_prev = &(head)->tqh_first; \
426} while (0)
427
428#define TAILQ_INSERT_TAIL(head, elm, field) do { \
429 (elm)->field.tqe_next = NULL; \
430 (elm)->field.tqe_prev = (head)->tqh_last; \
431 *(head)->tqh_last = (elm); \
432 (head)->tqh_last = &(elm)->field.tqe_next; \
433} while (0)
434
435#define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \
436 if (((elm)->field.tqe_next = (listelm)->field.tqe_next) != NULL)\
437 (elm)->field.tqe_next->field.tqe_prev = \
438 &(elm)->field.tqe_next; \
439 else \
440 (head)->tqh_last = &(elm)->field.tqe_next; \
441 (listelm)->field.tqe_next = (elm); \
442 (elm)->field.tqe_prev = &(listelm)->field.tqe_next; \
443} while (0)
444
445#define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \
446 (elm)->field.tqe_prev = (listelm)->field.tqe_prev; \
447 (elm)->field.tqe_next = (listelm); \
448 *(listelm)->field.tqe_prev = (elm); \
449 (listelm)->field.tqe_prev = &(elm)->field.tqe_next; \
450} while (0)
451
452#define TAILQ_REMOVE(head, elm, field) do { \
453 if (((elm)->field.tqe_next) != NULL) \
454 (elm)->field.tqe_next->field.tqe_prev = \
455 (elm)->field.tqe_prev; \
456 else \
457 (head)->tqh_last = (elm)->field.tqe_prev; \
458 *(elm)->field.tqe_prev = (elm)->field.tqe_next; \
459} while (0)
460
461#define TAILQ_REPLACE(head, elm, elm2, field) do { \
462 if (((elm2)->field.tqe_next = (elm)->field.tqe_next) != NULL) \
463 (elm2)->field.tqe_next->field.tqe_prev = \
464 &(elm2)->field.tqe_next; \
465 else \
466 (head)->tqh_last = &(elm2)->field.tqe_next; \
467 (elm2)->field.tqe_prev = (elm)->field.tqe_prev; \
468 *(elm2)->field.tqe_prev = (elm2); \
469} while (0)
470
471/*
472 * Circular queue definitions.
473 */
474#define CIRCLEQ_HEAD(name, type) \
475struct name { \
476 struct type *cqh_first; /* first element */ \
477 struct type *cqh_last; /* last element */ \
478}
479
480#define CIRCLEQ_HEAD_INITIALIZER(head) \
481 { CIRCLEQ_END(&head), CIRCLEQ_END(&head) }
482
483#define CIRCLEQ_ENTRY(type) \
484struct { \
485 struct type *cqe_next; /* next element */ \
486 struct type *cqe_prev; /* previous element */ \
487}
488
489/*
490 * Circular queue access methods
491 */
492#define CIRCLEQ_FIRST(head) ((head)->cqh_first)
493#define CIRCLEQ_LAST(head) ((head)->cqh_last)
494#define CIRCLEQ_END(head) ((void *)(head))
495#define CIRCLEQ_NEXT(elm, field) ((elm)->field.cqe_next)
496#define CIRCLEQ_PREV(elm, field) ((elm)->field.cqe_prev)
497#define CIRCLEQ_EMPTY(head) \
498 (CIRCLEQ_FIRST(head) == CIRCLEQ_END(head))
499
500#define CIRCLEQ_FOREACH(var, head, field) \
501 for((var) = CIRCLEQ_FIRST(head); \
502 (var) != CIRCLEQ_END(head); \
503 (var) = CIRCLEQ_NEXT(var, field))
504
505#define CIRCLEQ_FOREACH_REVERSE(var, head, field) \
506 for((var) = CIRCLEQ_LAST(head); \
507 (var) != CIRCLEQ_END(head); \
508 (var) = CIRCLEQ_PREV(var, field))
509
510/*
511 * Circular queue functions.
512 */
513#define CIRCLEQ_INIT(head) do { \
514 (head)->cqh_first = CIRCLEQ_END(head); \
515 (head)->cqh_last = CIRCLEQ_END(head); \
516} while (0)
517
518#define CIRCLEQ_INSERT_AFTER(head, listelm, elm, field) do { \
519 (elm)->field.cqe_next = (listelm)->field.cqe_next; \
520 (elm)->field.cqe_prev = (listelm); \
521 if ((listelm)->field.cqe_next == CIRCLEQ_END(head)) \
522 (head)->cqh_last = (elm); \
523 else \
524 (listelm)->field.cqe_next->field.cqe_prev = (elm); \
525 (listelm)->field.cqe_next = (elm); \
526} while (0)
527
528#define CIRCLEQ_INSERT_BEFORE(head, listelm, elm, field) do { \
529 (elm)->field.cqe_next = (listelm); \
530 (elm)->field.cqe_prev = (listelm)->field.cqe_prev; \
531 if ((listelm)->field.cqe_prev == CIRCLEQ_END(head)) \
532 (head)->cqh_first = (elm); \
533 else \
534 (listelm)->field.cqe_prev->field.cqe_next = (elm); \
535 (listelm)->field.cqe_prev = (elm); \
536} while (0)
537
538#define CIRCLEQ_INSERT_HEAD(head, elm, field) do { \
539 (elm)->field.cqe_next = (head)->cqh_first; \
540 (elm)->field.cqe_prev = CIRCLEQ_END(head); \
541 if ((head)->cqh_last == CIRCLEQ_END(head)) \
542 (head)->cqh_last = (elm); \
543 else \
544 (head)->cqh_first->field.cqe_prev = (elm); \
545 (head)->cqh_first = (elm); \
546} while (0)
547
548#define CIRCLEQ_INSERT_TAIL(head, elm, field) do { \
549 (elm)->field.cqe_next = CIRCLEQ_END(head); \
550 (elm)->field.cqe_prev = (head)->cqh_last; \
551 if ((head)->cqh_first == CIRCLEQ_END(head)) \
552 (head)->cqh_first = (elm); \
553 else \
554 (head)->cqh_last->field.cqe_next = (elm); \
555 (head)->cqh_last = (elm); \
556} while (0)
557
558#define CIRCLEQ_REMOVE(head, elm, field) do { \
559 if ((elm)->field.cqe_next == CIRCLEQ_END(head)) \
560 (head)->cqh_last = (elm)->field.cqe_prev; \
561 else \
562 (elm)->field.cqe_next->field.cqe_prev = \
563 (elm)->field.cqe_prev; \
564 if ((elm)->field.cqe_prev == CIRCLEQ_END(head)) \
565 (head)->cqh_first = (elm)->field.cqe_next; \
566 else \
567 (elm)->field.cqe_prev->field.cqe_next = \
568 (elm)->field.cqe_next; \
569} while (0)
570
571#define CIRCLEQ_REPLACE(head, elm, elm2, field) do { \
572 if (((elm2)->field.cqe_next = (elm)->field.cqe_next) == \
573 CIRCLEQ_END(head)) \
574 (head).cqh_last = (elm2); \
575 else \
576 (elm2)->field.cqe_next->field.cqe_prev = (elm2); \
577 if (((elm2)->field.cqe_prev = (elm)->field.cqe_prev) == \
578 CIRCLEQ_END(head)) \
579 (head).cqh_first = (elm2); \
580 else \
581 (elm2)->field.cqe_prev->field.cqe_next = (elm2); \
582} while (0)
583
584#endif /* !_FAKE_QUEUE_H_ */
diff --git a/openbsd-compat/fake-socket.h b/openbsd-compat/fake-socket.h
new file mode 100644
index 000000000..f364797fa
--- /dev/null
+++ b/openbsd-compat/fake-socket.h
@@ -0,0 +1,47 @@
1/* $Id: fake-socket.h,v 1.3 2002/04/12 03:35:40 tim Exp $ */
2
3#ifndef _FAKE_SOCKET_H
4#define _FAKE_SOCKET_H
5
6#include "includes.h"
7#include "sys/types.h"
8
9#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
10# define _SS_MAXSIZE 128 /* Implementation specific max size */
11# define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr))
12
13struct sockaddr_storage {
14 struct sockaddr ss_sa;
15 char __ss_pad2[_SS_PADSIZE];
16};
17# define ss_family ss_sa.sa_family
18#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
19
20#ifndef IN6_IS_ADDR_LOOPBACK
21# define IN6_IS_ADDR_LOOPBACK(a) \
22 (((u_int32_t *) (a))[0] == 0 && ((u_int32_t *) (a))[1] == 0 && \
23 ((u_int32_t *) (a))[2] == 0 && ((u_int32_t *) (a))[3] == htonl (1))
24#endif /* !IN6_IS_ADDR_LOOPBACK */
25
26#ifndef HAVE_STRUCT_IN6_ADDR
27struct in6_addr {
28 u_int8_t s6_addr[16];
29};
30#endif /* !HAVE_STRUCT_IN6_ADDR */
31
32#ifndef HAVE_STRUCT_SOCKADDR_IN6
33struct sockaddr_in6 {
34 unsigned short sin6_family;
35 u_int16_t sin6_port;
36 u_int32_t sin6_flowinfo;
37 struct in6_addr sin6_addr;
38};
39#endif /* !HAVE_STRUCT_SOCKADDR_IN6 */
40
41#ifndef AF_INET6
42/* Define it to something that should never appear */
43#define AF_INET6 AF_MAX
44#endif
45
46#endif /* !_FAKE_SOCKET_H */
47
diff --git a/openbsd-compat/getcwd.h b/openbsd-compat/getcwd.h
new file mode 100644
index 000000000..1137b3ed5
--- /dev/null
+++ b/openbsd-compat/getcwd.h
@@ -0,0 +1,12 @@
1/* $Id: getcwd.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_GETCWD_H
4#define _BSD_GETCWD_H
5#include "config.h"
6
7#if !defined(HAVE_GETCWD)
8
9char *getcwd(char *pt, size_t size);
10
11#endif /* !defined(HAVE_GETCWD) */
12#endif /* _BSD_GETCWD_H */
diff --git a/openbsd-compat/getgrouplist.h b/openbsd-compat/getgrouplist.h
new file mode 100644
index 000000000..27a9703f2
--- /dev/null
+++ b/openbsd-compat/getgrouplist.h
@@ -0,0 +1,16 @@
1/* $Id: getgrouplist.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_GETGROUPLIST_H
4#define _BSD_GETGROUPLIST_H
5
6#include "config.h"
7
8#ifndef HAVE_GETGROUPLIST
9
10#include <grp.h>
11
12int getgrouplist(const char *, gid_t, gid_t *, int *);
13
14#endif
15
16#endif
diff --git a/openbsd-compat/getopt.h b/openbsd-compat/getopt.h
new file mode 100644
index 000000000..9abdae8e9
--- /dev/null
+++ b/openbsd-compat/getopt.h
@@ -0,0 +1,14 @@
1/* $Id: getopt.h,v 1.4 2001/09/18 05:05:21 djm Exp $ */
2
3#ifndef _BSDGETOPT_H
4#define _BSDGETOPT_H
5
6#include "config.h"
7
8#if !defined(HAVE_GETOPT) || !defined(HAVE_GETOPT_OPTRESET)
9
10int BSDgetopt(int argc, char * const *argv, const char *opts);
11
12#endif
13
14#endif /* _BSDGETOPT_H */
diff --git a/openbsd-compat/inet_aton.h b/openbsd-compat/inet_aton.h
new file mode 100644
index 000000000..9b59cb908
--- /dev/null
+++ b/openbsd-compat/inet_aton.h
@@ -0,0 +1,12 @@
1/* $Id: inet_aton.h,v 1.4 2001/07/16 02:07:51 tim Exp $ */
2
3#ifndef _BSD_INET_ATON_H
4#define _BSD_INET_ATON_H
5
6#include "config.h"
7
8#ifndef HAVE_INET_ATON
9int inet_aton(const char *cp, struct in_addr *addr);
10#endif /* HAVE_INET_ATON */
11
12#endif /* _BSD_INET_ATON_H */
diff --git a/openbsd-compat/inet_ntoa.h b/openbsd-compat/inet_ntoa.h
new file mode 100644
index 000000000..85bc3d6fe
--- /dev/null
+++ b/openbsd-compat/inet_ntoa.h
@@ -0,0 +1,12 @@
1/* $Id: inet_ntoa.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_INET_NTOA_H
4#define _BSD_INET_NTOA_H
5
6#include "config.h"
7
8#if defined(BROKEN_INET_NTOA) || !defined(HAVE_INET_NTOA)
9char *inet_ntoa(struct in_addr in);
10#endif /* defined(BROKEN_INET_NTOA) || !defined(HAVE_INET_NTOA) */
11
12#endif /* _BSD_INET_NTOA_H */
diff --git a/openbsd-compat/inet_ntop.h b/openbsd-compat/inet_ntop.h
new file mode 100644
index 000000000..c774df95c
--- /dev/null
+++ b/openbsd-compat/inet_ntop.h
@@ -0,0 +1,13 @@
1/* $Id: inet_ntop.h,v 1.4 2001/08/09 00:56:53 mouring Exp $ */
2
3#ifndef _BSD_INET_NTOP_H
4#define _BSD_INET_NTOP_H
5
6#include "config.h"
7
8#ifndef HAVE_INET_NTOP
9const char *
10inet_ntop(int af, const void *src, char *dst, size_t size);
11#endif /* !HAVE_INET_NTOP */
12
13#endif /* _BSD_INET_NTOP_H */
diff --git a/openbsd-compat/mktemp.h b/openbsd-compat/mktemp.h
new file mode 100644
index 000000000..505ca6a1f
--- /dev/null
+++ b/openbsd-compat/mktemp.h
@@ -0,0 +1,13 @@
1/* $Id: mktemp.h,v 1.3 2003/01/07 04:18:33 djm Exp $ */
2
3#ifndef _BSD_MKTEMP_H
4#define _BSD_MKTEMP_H
5
6#include "config.h"
7#if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP)
8int mkstemps(char *path, int slen);
9int mkstemp(char *path);
10char *mkdtemp(char *path);
11#endif /* !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) */
12
13#endif /* _BSD_MKTEMP_H */
diff --git a/openbsd-compat/realpath.h b/openbsd-compat/realpath.h
new file mode 100644
index 000000000..25e4075d7
--- /dev/null
+++ b/openbsd-compat/realpath.h
@@ -0,0 +1,13 @@
1/* $Id: realpath.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_REALPATH_H
4#define _BSD_REALPATH_H
5
6#include "config.h"
7
8#if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH)
9
10char *realpath(const char *path, char *resolved);
11
12#endif /* !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) */
13#endif /* _BSD_REALPATH_H */
diff --git a/openbsd-compat/regress/.cvsignore b/openbsd-compat/regress/.cvsignore
deleted file mode 100644
index afbf7cc3f..000000000
--- a/openbsd-compat/regress/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
1Makefile
2snprintftest
3strduptest
4strtonumtest
5
diff --git a/openbsd-compat/rresvport.h b/openbsd-compat/rresvport.h
new file mode 100644
index 000000000..a52e4515b
--- /dev/null
+++ b/openbsd-compat/rresvport.h
@@ -0,0 +1,12 @@
1/* $Id: rresvport.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_RRESVPORT_H
4#define _BSD_RRESVPORT_H
5
6#include "config.h"
7
8#ifndef HAVE_RRESVPORT_AF
9int rresvport_af(int *alport, sa_family_t af);
10#endif /* !HAVE_RRESVPORT_AF */
11
12#endif /* _BSD_RRESVPORT_H */
diff --git a/openbsd-compat/setenv.h b/openbsd-compat/setenv.h
new file mode 100644
index 000000000..77256d802
--- /dev/null
+++ b/openbsd-compat/setenv.h
@@ -0,0 +1,14 @@
1/* $Id: setenv.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_SETENV_H
4#define _BSD_SETENV_H
5
6#include "config.h"
7
8#ifndef HAVE_SETENV
9
10int setenv(register const char *name, register const char *value, int rewrite);
11
12#endif /* !HAVE_SETENV */
13
14#endif /* _BSD_SETENV_H */
diff --git a/openbsd-compat/setproctitle.h b/openbsd-compat/setproctitle.h
new file mode 100644
index 000000000..48d26c6ea
--- /dev/null
+++ b/openbsd-compat/setproctitle.h
@@ -0,0 +1,13 @@
1/* $Id: setproctitle.h,v 1.3 2003/01/09 22:53:13 djm Exp $ */
2
3#ifndef _BSD_SETPROCTITLE_H
4#define _BSD_SETPROCTITLE_H
5
6#include "config.h"
7
8#ifndef HAVE_SETPROCTITLE
9void setproctitle(const char *fmt, ...);
10void compat_init_setproctitle(int argc, char *argv[]);
11#endif
12
13#endif /* _BSD_SETPROCTITLE_H */
diff --git a/openbsd-compat/sha2.c b/openbsd-compat/sha2.c
index cf8e0ad66..cf8e0ad66 100644..100755
--- a/openbsd-compat/sha2.c
+++ b/openbsd-compat/sha2.c
diff --git a/openbsd-compat/sha2.h b/openbsd-compat/sha2.h
index 821f2dd6c..821f2dd6c 100644..100755
--- a/openbsd-compat/sha2.h
+++ b/openbsd-compat/sha2.h
diff --git a/openbsd-compat/strlcat.h b/openbsd-compat/strlcat.h
new file mode 100644
index 000000000..753668563
--- /dev/null
+++ b/openbsd-compat/strlcat.h
@@ -0,0 +1,12 @@
1/* $Id: strlcat.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_STRLCAT_H
4#define _BSD_STRLCAT_H
5
6#include "config.h"
7#ifndef HAVE_STRLCAT
8#include <sys/types.h>
9size_t strlcat(char *dst, const char *src, size_t siz);
10#endif /* !HAVE_STRLCAT */
11
12#endif /* _BSD_STRLCAT_H */
diff --git a/openbsd-compat/strlcpy.h b/openbsd-compat/strlcpy.h
new file mode 100644
index 000000000..3b137670d
--- /dev/null
+++ b/openbsd-compat/strlcpy.h
@@ -0,0 +1,12 @@
1/* $Id: strlcpy.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_STRLCPY_H
4#define _BSD_STRLCPY_H
5
6#include "config.h"
7#ifndef HAVE_STRLCPY
8#include <sys/types.h>
9size_t strlcpy(char *dst, const char *src, size_t siz);
10#endif /* !HAVE_STRLCPY */
11
12#endif /* _BSD_STRLCPY_H */
diff --git a/openbsd-compat/strmode.h b/openbsd-compat/strmode.h
new file mode 100644
index 000000000..64f7c8aae
--- /dev/null
+++ b/openbsd-compat/strmode.h
@@ -0,0 +1,7 @@
1/* $Id: strmode.h,v 1.3 2001/06/09 02:22:17 mouring Exp $ */
2
3#ifndef HAVE_STRMODE
4
5void strmode(register mode_t mode, register char *p);
6
7#endif
diff --git a/openbsd-compat/strsep.h b/openbsd-compat/strsep.h
new file mode 100644
index 000000000..6ed810ac1
--- /dev/null
+++ b/openbsd-compat/strsep.h
@@ -0,0 +1,12 @@
1/* $Id: strsep.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _BSD_STRSEP_H
4#define _BSD_STRSEP_H
5
6#include "config.h"
7
8#ifndef HAVE_STRSEP
9char *strsep(char **stringp, const char *delim);
10#endif /* HAVE_STRSEP */
11
12#endif /* _BSD_STRSEP_H */
diff --git a/openbsd-compat/tree.h b/openbsd-compat/tree.h
new file mode 100644
index 000000000..30b4a8561
--- /dev/null
+++ b/openbsd-compat/tree.h
@@ -0,0 +1,667 @@
1/*
2 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef _SYS_TREE_H_
27#define _SYS_TREE_H_
28
29/*
30 * This file defines data structures for different types of trees:
31 * splay trees and red-black trees.
32 *
33 * A splay tree is a self-organizing data structure. Every operation
34 * on the tree causes a splay to happen. The splay moves the requested
35 * node to the root of the tree and partly rebalances it.
36 *
37 * This has the benefit that request locality causes faster lookups as
38 * the requested nodes move to the top of the tree. On the other hand,
39 * every lookup causes memory writes.
40 *
41 * The Balance Theorem bounds the total access time for m operations
42 * and n inserts on an initially empty tree as O((m + n)lg n). The
43 * amortized cost for a sequence of m accesses to a splay tree is O(lg n);
44 *
45 * A red-black tree is a binary search tree with the node color as an
46 * extra attribute. It fulfills a set of conditions:
47 * - every search path from the root to a leaf consists of the
48 * same number of black nodes,
49 * - each red node (except for the root) has a black parent,
50 * - each leaf node is black.
51 *
52 * Every operation on a red-black tree is bounded as O(lg n).
53 * The maximum height of a red-black tree is 2lg (n+1).
54 */
55
56#define SPLAY_HEAD(name, type) \
57struct name { \
58 struct type *sph_root; /* root of the tree */ \
59}
60
61#define SPLAY_INITIALIZER(root) \
62 { NULL }
63
64#define SPLAY_INIT(root) do { \
65 (root)->sph_root = NULL; \
66} while (0)
67
68#define SPLAY_ENTRY(type) \
69struct { \
70 struct type *spe_left; /* left element */ \
71 struct type *spe_right; /* right element */ \
72}
73
74#define SPLAY_LEFT(elm, field) (elm)->field.spe_left
75#define SPLAY_RIGHT(elm, field) (elm)->field.spe_right
76#define SPLAY_ROOT(head) (head)->sph_root
77#define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL)
78
79/* SPLAY_ROTATE_{LEFT,RIGHT} expect that tmp hold SPLAY_{RIGHT,LEFT} */
80#define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \
81 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
82 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
83 (head)->sph_root = tmp; \
84} while (0)
85
86#define SPLAY_ROTATE_LEFT(head, tmp, field) do { \
87 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
88 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
89 (head)->sph_root = tmp; \
90} while (0)
91
92#define SPLAY_LINKLEFT(head, tmp, field) do { \
93 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
94 tmp = (head)->sph_root; \
95 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field); \
96} while (0)
97
98#define SPLAY_LINKRIGHT(head, tmp, field) do { \
99 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
100 tmp = (head)->sph_root; \
101 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field); \
102} while (0)
103
104#define SPLAY_ASSEMBLE(head, node, left, right, field) do { \
105 SPLAY_RIGHT(left, field) = SPLAY_LEFT((head)->sph_root, field); \
106 SPLAY_LEFT(right, field) = SPLAY_RIGHT((head)->sph_root, field);\
107 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(node, field); \
108 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(node, field); \
109} while (0)
110
111/* Generates prototypes and inline functions */
112
113#define SPLAY_PROTOTYPE(name, type, field, cmp) \
114void name##_SPLAY(struct name *, struct type *); \
115void name##_SPLAY_MINMAX(struct name *, int); \
116 \
117static __inline void \
118name##_SPLAY_INSERT(struct name *head, struct type *elm) \
119{ \
120 if (SPLAY_EMPTY(head)) { \
121 SPLAY_LEFT(elm, field) = SPLAY_RIGHT(elm, field) = NULL; \
122 } else { \
123 int __comp; \
124 name##_SPLAY(head, elm); \
125 __comp = (cmp)(elm, (head)->sph_root); \
126 if(__comp < 0) { \
127 SPLAY_LEFT(elm, field) = SPLAY_LEFT((head)->sph_root, field);\
128 SPLAY_RIGHT(elm, field) = (head)->sph_root; \
129 SPLAY_LEFT((head)->sph_root, field) = NULL; \
130 } else if (__comp > 0) { \
131 SPLAY_RIGHT(elm, field) = SPLAY_RIGHT((head)->sph_root, field);\
132 SPLAY_LEFT(elm, field) = (head)->sph_root; \
133 SPLAY_RIGHT((head)->sph_root, field) = NULL; \
134 } else \
135 return; \
136 } \
137 (head)->sph_root = (elm); \
138} \
139 \
140static __inline void \
141name##_SPLAY_REMOVE(struct name *head, struct type *elm) \
142{ \
143 struct type *__tmp; \
144 if (SPLAY_EMPTY(head)) \
145 return; \
146 name##_SPLAY(head, elm); \
147 if ((cmp)(elm, (head)->sph_root) == 0) { \
148 if (SPLAY_LEFT((head)->sph_root, field) == NULL) { \
149 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field);\
150 } else { \
151 __tmp = SPLAY_RIGHT((head)->sph_root, field); \
152 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field);\
153 name##_SPLAY(head, elm); \
154 SPLAY_RIGHT((head)->sph_root, field) = __tmp; \
155 } \
156 } \
157} \
158 \
159/* Finds the node with the same key as elm */ \
160static __inline struct type * \
161name##_SPLAY_FIND(struct name *head, struct type *elm) \
162{ \
163 if (SPLAY_EMPTY(head)) \
164 return(NULL); \
165 name##_SPLAY(head, elm); \
166 if ((cmp)(elm, (head)->sph_root) == 0) \
167 return (head->sph_root); \
168 return (NULL); \
169} \
170 \
171static __inline struct type * \
172name##_SPLAY_NEXT(struct name *head, struct type *elm) \
173{ \
174 name##_SPLAY(head, elm); \
175 if (SPLAY_RIGHT(elm, field) != NULL) { \
176 elm = SPLAY_RIGHT(elm, field); \
177 while (SPLAY_LEFT(elm, field) != NULL) { \
178 elm = SPLAY_LEFT(elm, field); \
179 } \
180 } else \
181 elm = NULL; \
182 return (elm); \
183} \
184 \
185static __inline struct type * \
186name##_SPLAY_MIN_MAX(struct name *head, int val) \
187{ \
188 name##_SPLAY_MINMAX(head, val); \
189 return (SPLAY_ROOT(head)); \
190}
191
192/* Main splay operation.
193 * Moves node close to the key of elm to top
194 */
195#define SPLAY_GENERATE(name, type, field, cmp) \
196void name##_SPLAY(struct name *head, struct type *elm) \
197{ \
198 struct type __node, *__left, *__right, *__tmp; \
199 int __comp; \
200\
201 SPLAY_LEFT(&__node, field) = SPLAY_RIGHT(&__node, field) = NULL;\
202 __left = __right = &__node; \
203\
204 while ((__comp = (cmp)(elm, (head)->sph_root))) { \
205 if (__comp < 0) { \
206 __tmp = SPLAY_LEFT((head)->sph_root, field); \
207 if (__tmp == NULL) \
208 break; \
209 if ((cmp)(elm, __tmp) < 0){ \
210 SPLAY_ROTATE_RIGHT(head, __tmp, field); \
211 if (SPLAY_LEFT((head)->sph_root, field) == NULL)\
212 break; \
213 } \
214 SPLAY_LINKLEFT(head, __right, field); \
215 } else if (__comp > 0) { \
216 __tmp = SPLAY_RIGHT((head)->sph_root, field); \
217 if (__tmp == NULL) \
218 break; \
219 if ((cmp)(elm, __tmp) > 0){ \
220 SPLAY_ROTATE_LEFT(head, __tmp, field); \
221 if (SPLAY_RIGHT((head)->sph_root, field) == NULL)\
222 break; \
223 } \
224 SPLAY_LINKRIGHT(head, __left, field); \
225 } \
226 } \
227 SPLAY_ASSEMBLE(head, &__node, __left, __right, field); \
228} \
229 \
230/* Splay with either the minimum or the maximum element \
231 * Used to find minimum or maximum element in tree. \
232 */ \
233void name##_SPLAY_MINMAX(struct name *head, int __comp) \
234{ \
235 struct type __node, *__left, *__right, *__tmp; \
236\
237 SPLAY_LEFT(&__node, field) = SPLAY_RIGHT(&__node, field) = NULL;\
238 __left = __right = &__node; \
239\
240 while (1) { \
241 if (__comp < 0) { \
242 __tmp = SPLAY_LEFT((head)->sph_root, field); \
243 if (__tmp == NULL) \
244 break; \
245 if (__comp < 0){ \
246 SPLAY_ROTATE_RIGHT(head, __tmp, field); \
247 if (SPLAY_LEFT((head)->sph_root, field) == NULL)\
248 break; \
249 } \
250 SPLAY_LINKLEFT(head, __right, field); \
251 } else if (__comp > 0) { \
252 __tmp = SPLAY_RIGHT((head)->sph_root, field); \
253 if (__tmp == NULL) \
254 break; \
255 if (__comp > 0) { \
256 SPLAY_ROTATE_LEFT(head, __tmp, field); \
257 if (SPLAY_RIGHT((head)->sph_root, field) == NULL)\
258 break; \
259 } \
260 SPLAY_LINKRIGHT(head, __left, field); \
261 } \
262 } \
263 SPLAY_ASSEMBLE(head, &__node, __left, __right, field); \
264}
265
266#define SPLAY_NEGINF -1
267#define SPLAY_INF 1
268
269#define SPLAY_INSERT(name, x, y) name##_SPLAY_INSERT(x, y)
270#define SPLAY_REMOVE(name, x, y) name##_SPLAY_REMOVE(x, y)
271#define SPLAY_FIND(name, x, y) name##_SPLAY_FIND(x, y)
272#define SPLAY_NEXT(name, x, y) name##_SPLAY_NEXT(x, y)
273#define SPLAY_MIN(name, x) (SPLAY_EMPTY(x) ? NULL \
274 : name##_SPLAY_MIN_MAX(x, SPLAY_NEGINF))
275#define SPLAY_MAX(name, x) (SPLAY_EMPTY(x) ? NULL \
276 : name##_SPLAY_MIN_MAX(x, SPLAY_INF))
277
278#define SPLAY_FOREACH(x, name, head) \
279 for ((x) = SPLAY_MIN(name, head); \
280 (x) != NULL; \
281 (x) = SPLAY_NEXT(name, head, x))
282
283/* Macros that define a red-back tree */
284#define RB_HEAD(name, type) \
285struct name { \
286 struct type *rbh_root; /* root of the tree */ \
287}
288
289#define RB_INITIALIZER(root) \
290 { NULL }
291
292#define RB_INIT(root) do { \
293 (root)->rbh_root = NULL; \
294} while (0)
295
296#define RB_BLACK 0
297#define RB_RED 1
298#define RB_ENTRY(type) \
299struct { \
300 struct type *rbe_left; /* left element */ \
301 struct type *rbe_right; /* right element */ \
302 struct type *rbe_parent; /* parent element */ \
303 int rbe_color; /* node color */ \
304}
305
306#define RB_LEFT(elm, field) (elm)->field.rbe_left
307#define RB_RIGHT(elm, field) (elm)->field.rbe_right
308#define RB_PARENT(elm, field) (elm)->field.rbe_parent
309#define RB_COLOR(elm, field) (elm)->field.rbe_color
310#define RB_ROOT(head) (head)->rbh_root
311#define RB_EMPTY(head) (RB_ROOT(head) == NULL)
312
313#define RB_SET(elm, parent, field) do { \
314 RB_PARENT(elm, field) = parent; \
315 RB_LEFT(elm, field) = RB_RIGHT(elm, field) = NULL; \
316 RB_COLOR(elm, field) = RB_RED; \
317} while (0)
318
319#define RB_SET_BLACKRED(black, red, field) do { \
320 RB_COLOR(black, field) = RB_BLACK; \
321 RB_COLOR(red, field) = RB_RED; \
322} while (0)
323
324#ifndef RB_AUGMENT
325#define RB_AUGMENT(x)
326#endif
327
328#define RB_ROTATE_LEFT(head, elm, tmp, field) do { \
329 (tmp) = RB_RIGHT(elm, field); \
330 if ((RB_RIGHT(elm, field) = RB_LEFT(tmp, field))) { \
331 RB_PARENT(RB_LEFT(tmp, field), field) = (elm); \
332 } \
333 RB_AUGMENT(elm); \
334 if ((RB_PARENT(tmp, field) = RB_PARENT(elm, field))) { \
335 if ((elm) == RB_LEFT(RB_PARENT(elm, field), field)) \
336 RB_LEFT(RB_PARENT(elm, field), field) = (tmp); \
337 else \
338 RB_RIGHT(RB_PARENT(elm, field), field) = (tmp); \
339 RB_AUGMENT(RB_PARENT(elm, field)); \
340 } else \
341 (head)->rbh_root = (tmp); \
342 RB_LEFT(tmp, field) = (elm); \
343 RB_PARENT(elm, field) = (tmp); \
344 RB_AUGMENT(tmp); \
345} while (0)
346
347#define RB_ROTATE_RIGHT(head, elm, tmp, field) do { \
348 (tmp) = RB_LEFT(elm, field); \
349 if ((RB_LEFT(elm, field) = RB_RIGHT(tmp, field))) { \
350 RB_PARENT(RB_RIGHT(tmp, field), field) = (elm); \
351 } \
352 RB_AUGMENT(elm); \
353 if ((RB_PARENT(tmp, field) = RB_PARENT(elm, field))) { \
354 if ((elm) == RB_LEFT(RB_PARENT(elm, field), field)) \
355 RB_LEFT(RB_PARENT(elm, field), field) = (tmp); \
356 else \
357 RB_RIGHT(RB_PARENT(elm, field), field) = (tmp); \
358 RB_AUGMENT(RB_PARENT(elm, field)); \
359 } else \
360 (head)->rbh_root = (tmp); \
361 RB_RIGHT(tmp, field) = (elm); \
362 RB_PARENT(elm, field) = (tmp); \
363 RB_AUGMENT(tmp); \
364} while (0)
365
366/* Generates prototypes and inline functions */
367#define RB_PROTOTYPE(name, type, field, cmp) \
368void name##_RB_INSERT_COLOR(struct name *, struct type *); \
369void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\
370void name##_RB_REMOVE(struct name *, struct type *); \
371struct type *name##_RB_INSERT(struct name *, struct type *); \
372struct type *name##_RB_FIND(struct name *, struct type *); \
373struct type *name##_RB_NEXT(struct name *, struct type *); \
374struct type *name##_RB_MINMAX(struct name *, int); \
375 \
376
377/* Main rb operation.
378 * Moves node close to the key of elm to top
379 */
380#define RB_GENERATE(name, type, field, cmp) \
381void \
382name##_RB_INSERT_COLOR(struct name *head, struct type *elm) \
383{ \
384 struct type *parent, *gparent, *tmp; \
385 while ((parent = RB_PARENT(elm, field)) && \
386 RB_COLOR(parent, field) == RB_RED) { \
387 gparent = RB_PARENT(parent, field); \
388 if (parent == RB_LEFT(gparent, field)) { \
389 tmp = RB_RIGHT(gparent, field); \
390 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \
391 RB_COLOR(tmp, field) = RB_BLACK; \
392 RB_SET_BLACKRED(parent, gparent, field);\
393 elm = gparent; \
394 continue; \
395 } \
396 if (RB_RIGHT(parent, field) == elm) { \
397 RB_ROTATE_LEFT(head, parent, tmp, field);\
398 tmp = parent; \
399 parent = elm; \
400 elm = tmp; \
401 } \
402 RB_SET_BLACKRED(parent, gparent, field); \
403 RB_ROTATE_RIGHT(head, gparent, tmp, field); \
404 } else { \
405 tmp = RB_LEFT(gparent, field); \
406 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \
407 RB_COLOR(tmp, field) = RB_BLACK; \
408 RB_SET_BLACKRED(parent, gparent, field);\
409 elm = gparent; \
410 continue; \
411 } \
412 if (RB_LEFT(parent, field) == elm) { \
413 RB_ROTATE_RIGHT(head, parent, tmp, field);\
414 tmp = parent; \
415 parent = elm; \
416 elm = tmp; \
417 } \
418 RB_SET_BLACKRED(parent, gparent, field); \
419 RB_ROTATE_LEFT(head, gparent, tmp, field); \
420 } \
421 } \
422 RB_COLOR(head->rbh_root, field) = RB_BLACK; \
423} \
424 \
425void \
426name##_RB_REMOVE_COLOR(struct name *head, struct type *parent, struct type *elm) \
427{ \
428 struct type *tmp; \
429 while ((elm == NULL || RB_COLOR(elm, field) == RB_BLACK) && \
430 elm != RB_ROOT(head)) { \
431 if (RB_LEFT(parent, field) == elm) { \
432 tmp = RB_RIGHT(parent, field); \
433 if (RB_COLOR(tmp, field) == RB_RED) { \
434 RB_SET_BLACKRED(tmp, parent, field); \
435 RB_ROTATE_LEFT(head, parent, tmp, field);\
436 tmp = RB_RIGHT(parent, field); \
437 } \
438 if ((RB_LEFT(tmp, field) == NULL || \
439 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) &&\
440 (RB_RIGHT(tmp, field) == NULL || \
441 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK)) {\
442 RB_COLOR(tmp, field) = RB_RED; \
443 elm = parent; \
444 parent = RB_PARENT(elm, field); \
445 } else { \
446 if (RB_RIGHT(tmp, field) == NULL || \
447 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK) {\
448 struct type *oleft; \
449 if ((oleft = RB_LEFT(tmp, field)))\
450 RB_COLOR(oleft, field) = RB_BLACK;\
451 RB_COLOR(tmp, field) = RB_RED; \
452 RB_ROTATE_RIGHT(head, tmp, oleft, field);\
453 tmp = RB_RIGHT(parent, field); \
454 } \
455 RB_COLOR(tmp, field) = RB_COLOR(parent, field);\
456 RB_COLOR(parent, field) = RB_BLACK; \
457 if (RB_RIGHT(tmp, field)) \
458 RB_COLOR(RB_RIGHT(tmp, field), field) = RB_BLACK;\
459 RB_ROTATE_LEFT(head, parent, tmp, field);\
460 elm = RB_ROOT(head); \
461 break; \
462 } \
463 } else { \
464 tmp = RB_LEFT(parent, field); \
465 if (RB_COLOR(tmp, field) == RB_RED) { \
466 RB_SET_BLACKRED(tmp, parent, field); \
467 RB_ROTATE_RIGHT(head, parent, tmp, field);\
468 tmp = RB_LEFT(parent, field); \
469 } \
470 if ((RB_LEFT(tmp, field) == NULL || \
471 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) &&\
472 (RB_RIGHT(tmp, field) == NULL || \
473 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK)) {\
474 RB_COLOR(tmp, field) = RB_RED; \
475 elm = parent; \
476 parent = RB_PARENT(elm, field); \
477 } else { \
478 if (RB_LEFT(tmp, field) == NULL || \
479 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) {\
480 struct type *oright; \
481 if ((oright = RB_RIGHT(tmp, field)))\
482 RB_COLOR(oright, field) = RB_BLACK;\
483 RB_COLOR(tmp, field) = RB_RED; \
484 RB_ROTATE_LEFT(head, tmp, oright, field);\
485 tmp = RB_LEFT(parent, field); \
486 } \
487 RB_COLOR(tmp, field) = RB_COLOR(parent, field);\
488 RB_COLOR(parent, field) = RB_BLACK; \
489 if (RB_LEFT(tmp, field)) \
490 RB_COLOR(RB_LEFT(tmp, field), field) = RB_BLACK;\
491 RB_ROTATE_RIGHT(head, parent, tmp, field);\
492 elm = RB_ROOT(head); \
493 break; \
494 } \
495 } \
496 } \
497 if (elm) \
498 RB_COLOR(elm, field) = RB_BLACK; \
499} \
500 \
501void \
502name##_RB_REMOVE(struct name *head, struct type *elm) \
503{ \
504 struct type *child, *parent; \
505 int color; \
506 if (RB_LEFT(elm, field) == NULL) \
507 child = RB_RIGHT(elm, field); \
508 else if (RB_RIGHT(elm, field) == NULL) \
509 child = RB_LEFT(elm, field); \
510 else { \
511 struct type *old = elm, *left; \
512 elm = RB_RIGHT(elm, field); \
513 while ((left = RB_LEFT(elm, field))) \
514 elm = left; \
515 child = RB_RIGHT(elm, field); \
516 parent = RB_PARENT(elm, field); \
517 color = RB_COLOR(elm, field); \
518 if (child) \
519 RB_PARENT(child, field) = parent; \
520 if (parent) { \
521 if (RB_LEFT(parent, field) == elm) \
522 RB_LEFT(parent, field) = child; \
523 else \
524 RB_RIGHT(parent, field) = child; \
525 RB_AUGMENT(parent); \
526 } else \
527 RB_ROOT(head) = child; \
528 if (RB_PARENT(elm, field) == old) \
529 parent = elm; \
530 (elm)->field = (old)->field; \
531 if (RB_PARENT(old, field)) { \
532 if (RB_LEFT(RB_PARENT(old, field), field) == old)\
533 RB_LEFT(RB_PARENT(old, field), field) = elm;\
534 else \
535 RB_RIGHT(RB_PARENT(old, field), field) = elm;\
536 RB_AUGMENT(RB_PARENT(old, field)); \
537 } else \
538 RB_ROOT(head) = elm; \
539 RB_PARENT(RB_LEFT(old, field), field) = elm; \
540 if (RB_RIGHT(old, field)) \
541 RB_PARENT(RB_RIGHT(old, field), field) = elm; \
542 if (parent) { \
543 left = parent; \
544 do { \
545 RB_AUGMENT(left); \
546 } while ((left = RB_PARENT(left, field))); \
547 } \
548 goto color; \
549 } \
550 parent = RB_PARENT(elm, field); \
551 color = RB_COLOR(elm, field); \
552 if (child) \
553 RB_PARENT(child, field) = parent; \
554 if (parent) { \
555 if (RB_LEFT(parent, field) == elm) \
556 RB_LEFT(parent, field) = child; \
557 else \
558 RB_RIGHT(parent, field) = child; \
559 RB_AUGMENT(parent); \
560 } else \
561 RB_ROOT(head) = child; \
562color: \
563 if (color == RB_BLACK) \
564 name##_RB_REMOVE_COLOR(head, parent, child); \
565} \
566 \
567/* Inserts a node into the RB tree */ \
568struct type * \
569name##_RB_INSERT(struct name *head, struct type *elm) \
570{ \
571 struct type *tmp; \
572 struct type *parent = NULL; \
573 int comp = 0; \
574 tmp = RB_ROOT(head); \
575 while (tmp) { \
576 parent = tmp; \
577 comp = (cmp)(elm, parent); \
578 if (comp < 0) \
579 tmp = RB_LEFT(tmp, field); \
580 else if (comp > 0) \
581 tmp = RB_RIGHT(tmp, field); \
582 else \
583 return (tmp); \
584 } \
585 RB_SET(elm, parent, field); \
586 if (parent != NULL) { \
587 if (comp < 0) \
588 RB_LEFT(parent, field) = elm; \
589 else \
590 RB_RIGHT(parent, field) = elm; \
591 RB_AUGMENT(parent); \
592 } else \
593 RB_ROOT(head) = elm; \
594 name##_RB_INSERT_COLOR(head, elm); \
595 return (NULL); \
596} \
597 \
598/* Finds the node with the same key as elm */ \
599struct type * \
600name##_RB_FIND(struct name *head, struct type *elm) \
601{ \
602 struct type *tmp = RB_ROOT(head); \
603 int comp; \
604 while (tmp) { \
605 comp = cmp(elm, tmp); \
606 if (comp < 0) \
607 tmp = RB_LEFT(tmp, field); \
608 else if (comp > 0) \
609 tmp = RB_RIGHT(tmp, field); \
610 else \
611 return (tmp); \
612 } \
613 return (NULL); \
614} \
615 \
616struct type * \
617name##_RB_NEXT(struct name *head, struct type *elm) \
618{ \
619 if (RB_RIGHT(elm, field)) { \
620 elm = RB_RIGHT(elm, field); \
621 while (RB_LEFT(elm, field)) \
622 elm = RB_LEFT(elm, field); \
623 } else { \
624 if (RB_PARENT(elm, field) && \
625 (elm == RB_LEFT(RB_PARENT(elm, field), field))) \
626 elm = RB_PARENT(elm, field); \
627 else { \
628 while (RB_PARENT(elm, field) && \
629 (elm == RB_RIGHT(RB_PARENT(elm, field), field)))\
630 elm = RB_PARENT(elm, field); \
631 elm = RB_PARENT(elm, field); \
632 } \
633 } \
634 return (elm); \
635} \
636 \
637struct type * \
638name##_RB_MINMAX(struct name *head, int val) \
639{ \
640 struct type *tmp = RB_ROOT(head); \
641 struct type *parent = NULL; \
642 while (tmp) { \
643 parent = tmp; \
644 if (val < 0) \
645 tmp = RB_LEFT(tmp, field); \
646 else \
647 tmp = RB_RIGHT(tmp, field); \
648 } \
649 return (parent); \
650}
651
652#define RB_NEGINF -1
653#define RB_INF 1
654
655#define RB_INSERT(name, x, y) name##_RB_INSERT(x, y)
656#define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y)
657#define RB_FIND(name, x, y) name##_RB_FIND(x, y)
658#define RB_NEXT(name, x, y) name##_RB_NEXT(x, y)
659#define RB_MIN(name, x) name##_RB_MINMAX(x, RB_NEGINF)
660#define RB_MAX(name, x) name##_RB_MINMAX(x, RB_INF)
661
662#define RB_FOREACH(x, name, head) \
663 for ((x) = RB_MIN(name, head); \
664 (x) != NULL; \
665 (x) = name##_RB_NEXT(head, x))
666
667#endif /* _SYS_TREE_H_ */
diff --git a/openbsd-compat/xmmap.h b/openbsd-compat/xmmap.h
new file mode 100644
index 000000000..c0fa04aca
--- /dev/null
+++ b/openbsd-compat/xmmap.h
@@ -0,0 +1,23 @@
1/*
2 * Redistribution and use in source and binary forms, with or without
3 * modification, are permitted provided that the following conditions
4 * are met:
5 * 1. Redistributions of source code must retain the above copyright
6 * notice, this list of conditions and the following disclaimer.
7 * 2. Redistributions in binary form must reproduce the above copyright
8 * notice, this list of conditions and the following disclaimer in the
9 * documentation and/or other materials provided with the distribution.
10 *
11 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
12 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
13 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
14 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
15 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
16 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
17 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
18 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
19 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
20 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21 */
22
23void *xmmap(size_t size);
diff --git a/radix.c b/radix.c
new file mode 100644
index 000000000..c680d6bf3
--- /dev/null
+++ b/radix.c
@@ -0,0 +1,158 @@
1/*
2 * Copyright (c) 1999 Dug Song. All rights reserved.
3 * Copyright (c) 2002 Markus Friedl. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include "includes.h"
27#include "uuencode.h"
28
29RCSID("$OpenBSD: radix.c,v 1.22 2002/09/09 14:54:15 markus Exp $");
30
31#ifdef AFS
32#include <krb.h>
33
34#include <radix.h>
35#include "bufaux.h"
36
37int
38creds_to_radix(CREDENTIALS *creds, u_char *buf, size_t buflen)
39{
40 Buffer b;
41 int ret;
42
43 buffer_init(&b);
44
45 buffer_put_char(&b, 1); /* version */
46
47 buffer_append(&b, creds->service, strlen(creds->service));
48 buffer_put_char(&b, '\0');
49 buffer_append(&b, creds->instance, strlen(creds->instance));
50 buffer_put_char(&b, '\0');
51 buffer_append(&b, creds->realm, strlen(creds->realm));
52 buffer_put_char(&b, '\0');
53 buffer_append(&b, creds->pname, strlen(creds->pname));
54 buffer_put_char(&b, '\0');
55 buffer_append(&b, creds->pinst, strlen(creds->pinst));
56 buffer_put_char(&b, '\0');
57
58 /* Null string to repeat the realm. */
59 buffer_put_char(&b, '\0');
60
61 buffer_put_int(&b, creds->issue_date);
62 buffer_put_int(&b, krb_life_to_time(creds->issue_date,
63 creds->lifetime));
64 buffer_append(&b, creds->session, sizeof(creds->session));
65 buffer_put_short(&b, creds->kvno);
66
67 /* 32 bit size + data */
68 buffer_put_string(&b, creds->ticket_st.dat, creds->ticket_st.length);
69
70 ret = uuencode(buffer_ptr(&b), buffer_len(&b), (char *)buf, buflen);
71
72 buffer_free(&b);
73 return ret;
74}
75
76#define GETSTRING(b, t, tlen) \
77 do { \
78 int i, found = 0; \
79 for (i = 0; i < tlen; i++) { \
80 if (buffer_len(b) == 0) \
81 goto done; \
82 t[i] = buffer_get_char(b); \
83 if (t[i] == '\0') { \
84 found = 1; \
85 break; \
86 } \
87 } \
88 if (!found) \
89 goto done; \
90 } while(0)
91
92int
93radix_to_creds(const char *buf, CREDENTIALS *creds)
94{
95 Buffer b;
96 u_char *space;
97 char c, version, *p;
98 u_int endTime, len;
99 int blen, ret;
100
101 ret = 0;
102 blen = strlen(buf);
103
104 /* sanity check for size */
105 if (blen > 8192)
106 return 0;
107
108 buffer_init(&b);
109 space = buffer_append_space(&b, blen);
110
111 /* check version and length! */
112 len = uudecode(buf, space, blen);
113 if (len < 1)
114 goto done;
115
116 version = buffer_get_char(&b);
117
118 GETSTRING(&b, creds->service, sizeof creds->service);
119 GETSTRING(&b, creds->instance, sizeof creds->instance);
120 GETSTRING(&b, creds->realm, sizeof creds->realm);
121 GETSTRING(&b, creds->pname, sizeof creds->pname);
122 GETSTRING(&b, creds->pinst, sizeof creds->pinst);
123
124 if (buffer_len(&b) == 0)
125 goto done;
126
127 /* Ignore possibly different realm. */
128 while (buffer_len(&b) > 0 && (c = buffer_get_char(&b)) != '\0')
129 ;
130
131 if (buffer_len(&b) == 0)
132 goto done;
133
134 creds->issue_date = buffer_get_int(&b);
135
136 endTime = buffer_get_int(&b);
137 creds->lifetime = krb_time_to_life(creds->issue_date, endTime);
138
139 len = buffer_len(&b);
140 if (len < sizeof(creds->session))
141 goto done;
142 memcpy(&creds->session, buffer_ptr(&b), sizeof(creds->session));
143 buffer_consume(&b, sizeof(creds->session));
144
145 creds->kvno = buffer_get_short(&b);
146
147 p = buffer_get_string(&b, &len);
148 if (len < 0 || len > sizeof(creds->ticket_st.dat))
149 goto done;
150 memcpy(&creds->ticket_st.dat, p, len);
151 creds->ticket_st.length = len;
152
153 ret = 1;
154done:
155 buffer_free(&b);
156 return ret;
157}
158#endif /* AFS */
diff --git a/radix.h b/radix.h
new file mode 100644
index 000000000..e94e4acc6
--- /dev/null
+++ b/radix.h
@@ -0,0 +1,28 @@
1/* $OpenBSD: radix.h,v 1.4 2001/06/26 17:27:24 markus Exp $ */
2
3/*
4 * Copyright (c) 1999 Dug Song. 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 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27int creds_to_radix(CREDENTIALS *, u_char *, size_t);
28int radix_to_creds(const char *, CREDENTIALS *);
diff --git a/readpass.h b/readpass.h
new file mode 100644
index 000000000..a45d32f2a
--- /dev/null
+++ b/readpass.h
@@ -0,0 +1,19 @@
1/* $OpenBSD: readpass.h,v 1.7 2002/03/26 15:58:46 markus Exp $ */
2
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
14
15#define RP_ECHO 0x0001
16#define RP_ALLOW_STDIN 0x0002
17#define RP_ALLOW_EOF 0x0004
18
19char *read_passphrase(const char *, int);
diff --git a/regress/.cvsignore b/regress/.cvsignore
deleted file mode 100644
index f3c7a7c5d..000000000
--- a/regress/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
1Makefile
diff --git a/regress/authorized_keys_root b/regress/authorized_keys_root
new file mode 100644
index 000000000..328537120
--- /dev/null
+++ b/regress/authorized_keys_root
@@ -0,0 +1,2 @@
1ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAt6ttBacbgvLPsF1VWWfT51t55/5Mj62Xp8EaoH5SNSaLiGIgrrja077lKEept75U4uKFUYU5JJX9GPE9A7Y43LXv+/A6Jm4rEj/U0s4H8tf0UmzVC3t6xh0sRK0hYVNILyoHnIAgdY8CmOiybw7p6DxJY8MRAehD3n9+kFcachU= root@xenon
21024 35 132789427207755621599908461558918671787816692978751485815532032934821830960131244604702969298486352138126114080367609979552547448841583955126231410604842765726397407176910594168641969541792069550006878863592030567875913190224374005367884774859544943329148178663694126456638431428703289837638970464685771819219 root@xenon
diff --git a/regress/copy.1 b/regress/copy.1
new file mode 100755
index 000000000..92d4d20f9
--- /dev/null
+++ b/regress/copy.1
Binary files differ
diff --git a/regress/copy.2 b/regress/copy.2
new file mode 100755
index 000000000..92d4d20f9
--- /dev/null
+++ b/regress/copy.2
Binary files differ
diff --git a/scard/Ssh.bin b/scard/Ssh.bin
new file mode 100644
index 000000000..edbadc618
--- /dev/null
+++ b/scard/Ssh.bin
Binary files differ
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..b6b9d919c
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,148 @@
1SCP(1) OpenBSD Reference Manual SCP(1)
2
3NAME
4 scp - secure copy (remote file copy program)
5
6SYNOPSIS
7 scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
8 [-l limit] [-o ssh_option] [-P port] [-S program]
9 [[user@]host1:]file1 ... [[user@]host2:]file2
10
11DESCRIPTION
12 scp copies files between hosts on a network. It uses ssh(1) for data
13 transfer, and uses the same authentication and provides the same security
14 as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if
15 they are needed for authentication.
16
17 File names may contain a user and host specification to indicate that the
18 file is to be copied to/from that host. Local file names can be made ex-
19 plicit using absolute or relative pathnames to avoid scp treating file
20 names containing `:' as host specifiers. Copies between two remote hosts
21 are also permitted.
22
23 The options are as follows:
24
25 -1 Forces scp to use protocol 1.
26
27 -2 Forces scp to use protocol 2.
28
29 -4 Forces scp to use IPv4 addresses only.
30
31 -6 Forces scp to use IPv6 addresses only.
32
33 -B Selects batch mode (prevents asking for passwords or passphras-
34 es).
35
36 -C Compression enable. Passes the -C flag to ssh(1) to enable com-
37 pression.
38
39 -c cipher
40 Selects the cipher to use for encrypting the data transfer. This
41 option is directly passed to ssh(1).
42
43 -F ssh_config
44 Specifies an alternative per-user configuration file for ssh.
45 This option is directly passed to ssh(1).
46
47 -i identity_file
48 Selects the file from which the identity (private key) for public
49 key authentication is read. This option is directly passed to
50 ssh(1).
51
52 -l limit
53 Limits the used bandwidth, specified in Kbit/s.
54
55 -o ssh_option
56 Can be used to pass options to ssh in the format used in
57 ssh_config(5). This is useful for specifying options for which
58 there is no separate scp command-line flag. For full details of
59 the options listed below, and their possible values, see
60 ssh_config(5).
61
62 AddressFamily
63 BatchMode
64 BindAddress
65 ChallengeResponseAuthentication
66 CheckHostIP
67 Cipher
68 Ciphers
69 Compression
70 CompressionLevel
71 ConnectionAttempts
72 ConnectTimeout
73 ControlMaster
74 ControlPath
75 GlobalKnownHostsFile
76 GSSAPIAuthentication
77 GSSAPIDelegateCredentials
78 HashKnownHosts
79 Host
80 HostbasedAuthentication
81 HostKeyAlgorithms
82 HostKeyAlias
83 HostName
84 IdentityFile
85 IdentitiesOnly
86 KbdInteractiveDevices
87 LogLevel
88 MACs
89 NoHostAuthenticationForLocalhost
90 NumberOfPasswordPrompts
91 PasswordAuthentication
92 Port
93 PreferredAuthentications
94 Protocol
95 ProxyCommand
96 PubkeyAuthentication
97 RekeyLimit
98 RhostsRSAAuthentication
99 RSAAuthentication
100 SendEnv
101 ServerAliveInterval
102 ServerAliveCountMax
103 SmartcardDevice
104 StrictHostKeyChecking
105 TCPKeepAlive
106 UsePrivilegedPort
107 User
108 UserKnownHostsFile
109 VerifyHostKeyDNS
110
111 -P port
112 Specifies the port to connect to on the remote host. Note that
113 this option is written with a capital `P', because -p is already
114 reserved for preserving the times and modes of the file in
115 rcp(1).
116
117 -p Preserves modification times, access times, and modes from the
118 original file.
119
120 -q Quiet mode: disables the progress meter as well as warning and
121 diagnostic messages from ssh(1).
122
123 -r Recursively copy entire directories. Note that scp follows sym-
124 bolic links encountered in the tree traversal.
125
126 -S program
127 Name of program to use for the encrypted connection. The program
128 must understand ssh(1) options.
129
130 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
131 about their progress. This is helpful in debugging connection,
132 authentication, and configuration problems.
133
134 The scp utility exits 0 on success, and >0 if an error occurs.
135
136SEE ALSO
137 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
138 ssh_config(5), sshd(8)
139
140HISTORY
141 scp is based on the rcp(1) program in BSD source code from the Regents of
142 the University of California.
143
144AUTHORS
145 Timo Rinne <tri@iki.fi>
146 Tatu Ylonen <ylo@cs.hut.fi>
147
148OpenBSD 4.4 July 12, 2008 3
diff --git a/sftp-glob.h b/sftp-glob.h
new file mode 100644
index 000000000..f879e8719
--- /dev/null
+++ b/sftp-glob.h
@@ -0,0 +1,37 @@
1/* $OpenBSD: sftp-glob.h,v 1.8 2002/09/11 22:41:50 djm Exp $ */
2
3/*
4 * Copyright (c) 2001,2002 Damien Miller. 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 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27/* Remote sftp filename globbing */
28
29#ifndef _SFTP_GLOB_H
30#define _SFTP_GLOB_H
31
32#include "sftp-client.h"
33
34int remote_glob(struct sftp_conn *, const char *, int,
35 int (*)(const char *, int), glob_t *);
36
37#endif
diff --git a/sftp-int.c b/sftp-int.c
new file mode 100644
index 000000000..c93eaabff
--- /dev/null
+++ b/sftp-int.c
@@ -0,0 +1,1191 @@
1/*
2 * Copyright (c) 2001,2002 Damien Miller. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25/* XXX: recursive operations */
26
27#include "includes.h"
28RCSID("$OpenBSD: sftp-int.c,v 1.62 2003/08/25 08:13:09 fgsch Exp $");
29
30#include "buffer.h"
31#include "xmalloc.h"
32#include "log.h"
33#include "pathnames.h"
34
35#include "sftp.h"
36#include "sftp-common.h"
37#include "sftp-glob.h"
38#include "sftp-client.h"
39#include "sftp-int.h"
40
41/* File to read commands from */
42extern FILE *infile;
43
44/* Size of buffer used when copying files */
45extern size_t copy_buffer_len;
46
47/* Number of concurrent outstanding requests */
48extern int num_requests;
49
50/* This is set to 0 if the progressmeter is not desired. */
51int showprogress = 1;
52
53/* Seperators for interactive commands */
54#define WHITESPACE " \t\r\n"
55
56/* Define what type of ls view (0 - multi-column) */
57#define LONG_VIEW 1 /* Full view ala ls -l */
58#define SHORT_VIEW 2 /* Single row view ala ls -1 */
59
60/* Commands for interactive mode */
61#define I_CHDIR 1
62#define I_CHGRP 2
63#define I_CHMOD 3
64#define I_CHOWN 4
65#define I_GET 5
66#define I_HELP 6
67#define I_LCHDIR 7
68#define I_LLS 8
69#define I_LMKDIR 9
70#define I_LPWD 10
71#define I_LS 11
72#define I_LUMASK 12
73#define I_MKDIR 13
74#define I_PUT 14
75#define I_PWD 15
76#define I_QUIT 16
77#define I_RENAME 17
78#define I_RM 18
79#define I_RMDIR 19
80#define I_SHELL 20
81#define I_SYMLINK 21
82#define I_VERSION 22
83#define I_PROGRESS 23
84
85struct CMD {
86 const char *c;
87 const int n;
88};
89
90static const struct CMD cmds[] = {
91 { "bye", I_QUIT },
92 { "cd", I_CHDIR },
93 { "chdir", I_CHDIR },
94 { "chgrp", I_CHGRP },
95 { "chmod", I_CHMOD },
96 { "chown", I_CHOWN },
97 { "dir", I_LS },
98 { "exit", I_QUIT },
99 { "get", I_GET },
100 { "mget", I_GET },
101 { "help", I_HELP },
102 { "lcd", I_LCHDIR },
103 { "lchdir", I_LCHDIR },
104 { "lls", I_LLS },
105 { "lmkdir", I_LMKDIR },
106 { "ln", I_SYMLINK },
107 { "lpwd", I_LPWD },
108 { "ls", I_LS },
109 { "lumask", I_LUMASK },
110 { "mkdir", I_MKDIR },
111 { "progress", I_PROGRESS },
112 { "put", I_PUT },
113 { "mput", I_PUT },
114 { "pwd", I_PWD },
115 { "quit", I_QUIT },
116 { "rename", I_RENAME },
117 { "rm", I_RM },
118 { "rmdir", I_RMDIR },
119 { "symlink", I_SYMLINK },
120 { "version", I_VERSION },
121 { "!", I_SHELL },
122 { "?", I_HELP },
123 { NULL, -1}
124};
125
126static void
127help(void)
128{
129 printf("Available commands:\n");
130 printf("cd path Change remote directory to 'path'\n");
131 printf("lcd path Change local directory to 'path'\n");
132 printf("chgrp grp path Change group of file 'path' to 'grp'\n");
133 printf("chmod mode path Change permissions of file 'path' to 'mode'\n");
134 printf("chown own path Change owner of file 'path' to 'own'\n");
135 printf("help Display this help text\n");
136 printf("get remote-path [local-path] Download file\n");
137 printf("lls [ls-options [path]] Display local directory listing\n");
138 printf("ln oldpath newpath Symlink remote file\n");
139 printf("lmkdir path Create local directory\n");
140 printf("lpwd Print local working directory\n");
141 printf("ls [path] Display remote directory listing\n");
142 printf("lumask umask Set local umask to 'umask'\n");
143 printf("mkdir path Create remote directory\n");
144 printf("progress Toggle display of progress meter\n");
145 printf("put local-path [remote-path] Upload file\n");
146 printf("pwd Display remote working directory\n");
147 printf("exit Quit sftp\n");
148 printf("quit Quit sftp\n");
149 printf("rename oldpath newpath Rename remote file\n");
150 printf("rmdir path Remove remote directory\n");
151 printf("rm path Delete remote file\n");
152 printf("symlink oldpath newpath Symlink remote file\n");
153 printf("version Show SFTP version\n");
154 printf("!command Execute 'command' in local shell\n");
155 printf("! Escape to local shell\n");
156 printf("? Synonym for help\n");
157}
158
159static void
160local_do_shell(const char *args)
161{
162 int status;
163 char *shell;
164 pid_t pid;
165
166 if (!*args)
167 args = NULL;
168
169 if ((shell = getenv("SHELL")) == NULL)
170 shell = _PATH_BSHELL;
171
172 if ((pid = fork()) == -1)
173 fatal("Couldn't fork: %s", strerror(errno));
174
175 if (pid == 0) {
176 /* XXX: child has pipe fds to ssh subproc open - issue? */
177 if (args) {
178 debug3("Executing %s -c \"%s\"", shell, args);
179 execl(shell, shell, "-c", args, (char *)NULL);
180 } else {
181 debug3("Executing %s", shell);
182 execl(shell, shell, (char *)NULL);
183 }
184 fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell,
185 strerror(errno));
186 _exit(1);
187 }
188 while (waitpid(pid, &status, 0) == -1)
189 if (errno != EINTR)
190 fatal("Couldn't wait for child: %s", strerror(errno));
191 if (!WIFEXITED(status))
192 error("Shell exited abormally");
193 else if (WEXITSTATUS(status))
194 error("Shell exited with status %d", WEXITSTATUS(status));
195}
196
197static void
198local_do_ls(const char *args)
199{
200 if (!args || !*args)
201 local_do_shell(_PATH_LS);
202 else {
203 int len = strlen(_PATH_LS " ") + strlen(args) + 1;
204 char *buf = xmalloc(len);
205
206 /* XXX: quoting - rip quoting code from ftp? */
207 snprintf(buf, len, _PATH_LS " %s", args);
208 local_do_shell(buf);
209 xfree(buf);
210 }
211}
212
213/* Strip one path (usually the pwd) from the start of another */
214static char *
215path_strip(char *path, char *strip)
216{
217 size_t len;
218
219 if (strip == NULL)
220 return (xstrdup(path));
221
222 len = strlen(strip);
223 if (strip != NULL && strncmp(path, strip, len) == 0) {
224 if (strip[len - 1] != '/' && path[len] == '/')
225 len++;
226 return (xstrdup(path + len));
227 }
228
229 return (xstrdup(path));
230}
231
232static char *
233path_append(char *p1, char *p2)
234{
235 char *ret;
236 int len = strlen(p1) + strlen(p2) + 2;
237
238 ret = xmalloc(len);
239 strlcpy(ret, p1, len);
240 if (p1[strlen(p1) - 1] != '/')
241 strlcat(ret, "/", len);
242 strlcat(ret, p2, len);
243
244 return(ret);
245}
246
247static char *
248make_absolute(char *p, char *pwd)
249{
250 char *abs;
251
252 /* Derelativise */
253 if (p && p[0] != '/') {
254 abs = path_append(pwd, p);
255 xfree(p);
256 return(abs);
257 } else
258 return(p);
259}
260
261static int
262infer_path(const char *p, char **ifp)
263{
264 char *cp;
265
266 cp = strrchr(p, '/');
267 if (cp == NULL) {
268 *ifp = xstrdup(p);
269 return(0);
270 }
271
272 if (!cp[1]) {
273 error("Invalid path");
274 return(-1);
275 }
276
277 *ifp = xstrdup(cp + 1);
278 return(0);
279}
280
281static int
282parse_getput_flags(const char **cpp, int *pflag)
283{
284 const char *cp = *cpp;
285
286 /* Check for flags */
287 if (cp[0] == '-' && cp[1] && strchr(WHITESPACE, cp[2])) {
288 switch (cp[1]) {
289 case 'p':
290 case 'P':
291 *pflag = 1;
292 break;
293 default:
294 error("Invalid flag -%c", cp[1]);
295 return(-1);
296 }
297 cp += 2;
298 *cpp = cp + strspn(cp, WHITESPACE);
299 }
300
301 return(0);
302}
303
304static int
305parse_ls_flags(const char **cpp, int *lflag)
306{
307 const char *cp = *cpp;
308
309 /* Check for flags */
310 if (cp++[0] == '-') {
311 for(; strchr(WHITESPACE, *cp) == NULL; cp++) {
312 switch (*cp) {
313 case 'l':
314 *lflag = LONG_VIEW;
315 break;
316 case '1':
317 *lflag = SHORT_VIEW;
318 break;
319 default:
320 error("Invalid flag -%c", *cp);
321 return(-1);
322 }
323 }
324 *cpp = cp + strspn(cp, WHITESPACE);
325 }
326
327 return(0);
328}
329
330static int
331get_pathname(const char **cpp, char **path)
332{
333 const char *cp = *cpp, *end;
334 char quot;
335 int i, j;
336
337 cp += strspn(cp, WHITESPACE);
338 if (!*cp) {
339 *cpp = cp;
340 *path = NULL;
341 return (0);
342 }
343
344 *path = xmalloc(strlen(cp) + 1);
345
346 /* Check for quoted filenames */
347 if (*cp == '\"' || *cp == '\'') {
348 quot = *cp++;
349
350 /* Search for terminating quote, unescape some chars */
351 for (i = j = 0; i <= strlen(cp); i++) {
352 if (cp[i] == quot) { /* Found quote */
353 (*path)[j] = '\0';
354 i++;
355 break;
356 }
357 if (cp[i] == '\0') { /* End of string */
358 error("Unterminated quote");
359 goto fail;
360 }
361 if (cp[i] == '\\') { /* Escaped characters */
362 i++;
363 if (cp[i] != '\'' && cp[i] != '\"' &&
364 cp[i] != '\\') {
365 error("Bad escaped character '\%c'",
366 cp[i]);
367 goto fail;
368 }
369 }
370 (*path)[j++] = cp[i];
371 }
372
373 if (j == 0) {
374 error("Empty quotes");
375 goto fail;
376 }
377 *cpp = cp + i + strspn(cp + i, WHITESPACE);
378 } else {
379 /* Read to end of filename */
380 end = strpbrk(cp, WHITESPACE);
381 if (end == NULL)
382 end = strchr(cp, '\0');
383 *cpp = end + strspn(end, WHITESPACE);
384
385 memcpy(*path, cp, end - cp);
386 (*path)[end - cp] = '\0';
387 }
388 return (0);
389
390 fail:
391 xfree(*path);
392 *path = NULL;
393 return (-1);
394}
395
396static int
397is_dir(char *path)
398{
399 struct stat sb;
400
401 /* XXX: report errors? */
402 if (stat(path, &sb) == -1)
403 return(0);
404
405 return(sb.st_mode & S_IFDIR);
406}
407
408static int
409is_reg(char *path)
410{
411 struct stat sb;
412
413 if (stat(path, &sb) == -1)
414 fatal("stat %s: %s", path, strerror(errno));
415
416 return(S_ISREG(sb.st_mode));
417}
418
419static int
420remote_is_dir(struct sftp_conn *conn, char *path)
421{
422 Attrib *a;
423
424 /* XXX: report errors? */
425 if ((a = do_stat(conn, path, 1)) == NULL)
426 return(0);
427 if (!(a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS))
428 return(0);
429 return(a->perm & S_IFDIR);
430}
431
432static int
433process_get(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag)
434{
435 char *abs_src = NULL;
436 char *abs_dst = NULL;
437 char *tmp;
438 glob_t g;
439 int err = 0;
440 int i;
441
442 abs_src = xstrdup(src);
443 abs_src = make_absolute(abs_src, pwd);
444
445 memset(&g, 0, sizeof(g));
446 debug3("Looking up %s", abs_src);
447 if (remote_glob(conn, abs_src, 0, NULL, &g)) {
448 error("File \"%s\" not found.", abs_src);
449 err = -1;
450 goto out;
451 }
452
453 /* If multiple matches, dst must be a directory or unspecified */
454 if (g.gl_matchc > 1 && dst && !is_dir(dst)) {
455 error("Multiple files match, but \"%s\" is not a directory",
456 dst);
457 err = -1;
458 goto out;
459 }
460
461 for (i = 0; g.gl_pathv[i]; i++) {
462 if (infer_path(g.gl_pathv[i], &tmp)) {
463 err = -1;
464 goto out;
465 }
466
467 if (g.gl_matchc == 1 && dst) {
468 /* If directory specified, append filename */
469 if (is_dir(dst)) {
470 if (infer_path(g.gl_pathv[0], &tmp)) {
471 err = 1;
472 goto out;
473 }
474 abs_dst = path_append(dst, tmp);
475 xfree(tmp);
476 } else
477 abs_dst = xstrdup(dst);
478 } else if (dst) {
479 abs_dst = path_append(dst, tmp);
480 xfree(tmp);
481 } else
482 abs_dst = tmp;
483
484 printf("Fetching %s to %s\n", g.gl_pathv[i], abs_dst);
485 if (do_download(conn, g.gl_pathv[i], abs_dst, pflag) == -1)
486 err = -1;
487 xfree(abs_dst);
488 abs_dst = NULL;
489 }
490
491out:
492 xfree(abs_src);
493 if (abs_dst)
494 xfree(abs_dst);
495 globfree(&g);
496 return(err);
497}
498
499static int
500process_put(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag)
501{
502 char *tmp_dst = NULL;
503 char *abs_dst = NULL;
504 char *tmp;
505 glob_t g;
506 int err = 0;
507 int i;
508
509 if (dst) {
510 tmp_dst = xstrdup(dst);
511 tmp_dst = make_absolute(tmp_dst, pwd);
512 }
513
514 memset(&g, 0, sizeof(g));
515 debug3("Looking up %s", src);
516 if (glob(src, 0, NULL, &g)) {
517 error("File \"%s\" not found.", src);
518 err = -1;
519 goto out;
520 }
521
522 /* If multiple matches, dst may be directory or unspecified */
523 if (g.gl_matchc > 1 && tmp_dst && !remote_is_dir(conn, tmp_dst)) {
524 error("Multiple files match, but \"%s\" is not a directory",
525 tmp_dst);
526 err = -1;
527 goto out;
528 }
529
530 for (i = 0; g.gl_pathv[i]; i++) {
531 if (!is_reg(g.gl_pathv[i])) {
532 error("skipping non-regular file %s",
533 g.gl_pathv[i]);
534 continue;
535 }
536 if (infer_path(g.gl_pathv[i], &tmp)) {
537 err = -1;
538 goto out;
539 }
540
541 if (g.gl_matchc == 1 && tmp_dst) {
542 /* If directory specified, append filename */
543 if (remote_is_dir(conn, tmp_dst)) {
544 if (infer_path(g.gl_pathv[0], &tmp)) {
545 err = 1;
546 goto out;
547 }
548 abs_dst = path_append(tmp_dst, tmp);
549 xfree(tmp);
550 } else
551 abs_dst = xstrdup(tmp_dst);
552
553 } else if (tmp_dst) {
554 abs_dst = path_append(tmp_dst, tmp);
555 xfree(tmp);
556 } else
557 abs_dst = make_absolute(tmp, pwd);
558
559 printf("Uploading %s to %s\n", g.gl_pathv[i], abs_dst);
560 if (do_upload(conn, g.gl_pathv[i], abs_dst, pflag) == -1)
561 err = -1;
562 }
563
564out:
565 if (abs_dst)
566 xfree(abs_dst);
567 if (tmp_dst)
568 xfree(tmp_dst);
569 globfree(&g);
570 return(err);
571}
572
573static int
574sdirent_comp(const void *aa, const void *bb)
575{
576 SFTP_DIRENT *a = *(SFTP_DIRENT **)aa;
577 SFTP_DIRENT *b = *(SFTP_DIRENT **)bb;
578
579 return (strcmp(a->filename, b->filename));
580}
581
582/* sftp ls.1 replacement for directories */
583static int
584do_ls_dir(struct sftp_conn *conn, char *path, char *strip_path, int lflag)
585{
586 int n, c = 1, colspace = 0, columns = 1;
587 SFTP_DIRENT **d;
588
589 if ((n = do_readdir(conn, path, &d)) != 0)
590 return (n);
591
592 if (!(lflag & SHORT_VIEW)) {
593 int m = 0, width = 80;
594 struct winsize ws;
595
596 /* Count entries for sort and find longest filename */
597 for (n = 0; d[n] != NULL; n++)
598 m = MAX(m, strlen(d[n]->filename));
599
600 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
601 width = ws.ws_col;
602
603 columns = width / (m + 2);
604 columns = MAX(columns, 1);
605 colspace = width / columns;
606 }
607
608 qsort(d, n, sizeof(*d), sdirent_comp);
609
610 for (n = 0; d[n] != NULL; n++) {
611 char *tmp, *fname;
612
613 tmp = path_append(path, d[n]->filename);
614 fname = path_strip(tmp, strip_path);
615 xfree(tmp);
616
617 if (lflag & LONG_VIEW) {
618 char *lname;
619 struct stat sb;
620
621 memset(&sb, 0, sizeof(sb));
622 attrib_to_stat(&d[n]->a, &sb);
623 lname = ls_file(fname, &sb, 1);
624 printf("%s\n", lname);
625 xfree(lname);
626 } else {
627 printf("%-*s", colspace, fname);
628 if (c >= columns) {
629 printf("\n");
630 c = 1;
631 } else
632 c++;
633 }
634
635 xfree(fname);
636 }
637
638 if (!(lflag & LONG_VIEW) && (c != 1))
639 printf("\n");
640
641 free_sftp_dirents(d);
642 return (0);
643}
644
645/* sftp ls.1 replacement which handles path globs */
646static int
647do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
648 int lflag)
649{
650 glob_t g;
651 int i, c = 1, colspace = 0, columns = 1;
652 Attrib *a;
653
654 memset(&g, 0, sizeof(g));
655
656 if (remote_glob(conn, path, GLOB_MARK|GLOB_NOCHECK|GLOB_BRACE,
657 NULL, &g)) {
658 error("Can't ls: \"%s\" not found", path);
659 return (-1);
660 }
661
662 /*
663 * If the glob returns a single match, which is the same as the
664 * input glob, and it is a directory, then just list its contents
665 */
666 if (g.gl_pathc == 1 &&
667 strncmp(path, g.gl_pathv[0], strlen(g.gl_pathv[0]) - 1) == 0) {
668 if ((a = do_lstat(conn, path, 1)) == NULL) {
669 globfree(&g);
670 return (-1);
671 }
672 if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) &&
673 S_ISDIR(a->perm)) {
674 globfree(&g);
675 return (do_ls_dir(conn, path, strip_path, lflag));
676 }
677 }
678
679 if (!(lflag & SHORT_VIEW)) {
680 int m = 0, width = 80;
681 struct winsize ws;
682
683 /* Count entries for sort and find longest filename */
684 for (i = 0; g.gl_pathv[i]; i++)
685 m = MAX(m, strlen(g.gl_pathv[i]));
686
687 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
688 width = ws.ws_col;
689
690 columns = width / (m + 2);
691 columns = MAX(columns, 1);
692 colspace = width / columns;
693 }
694
695 for (i = 0; g.gl_pathv[i]; i++) {
696 char *fname;
697
698 fname = path_strip(g.gl_pathv[i], strip_path);
699
700 if (lflag & LONG_VIEW) {
701 char *lname;
702 struct stat sb;
703
704 /*
705 * XXX: this is slow - 1 roundtrip per path
706 * A solution to this is to fork glob() and
707 * build a sftp specific version which keeps the
708 * attribs (which currently get thrown away)
709 * that the server returns as well as the filenames.
710 */
711 memset(&sb, 0, sizeof(sb));
712 a = do_lstat(conn, g.gl_pathv[i], 1);
713 if (a != NULL)
714 attrib_to_stat(a, &sb);
715 lname = ls_file(fname, &sb, 1);
716 printf("%s\n", lname);
717 xfree(lname);
718 } else {
719 printf("%-*s", colspace, fname);
720 if (c >= columns) {
721 printf("\n");
722 c = 1;
723 } else
724 c++;
725 }
726 xfree(fname);
727 }
728
729 if (!(lflag & LONG_VIEW) && (c != 1))
730 printf("\n");
731
732 if (g.gl_pathc)
733 globfree(&g);
734
735 return (0);
736}
737
738static int
739parse_args(const char **cpp, int *pflag, int *lflag, int *iflag,
740 unsigned long *n_arg, char **path1, char **path2)
741{
742 const char *cmd, *cp = *cpp;
743 char *cp2;
744 int base = 0;
745 long l;
746 int i, cmdnum;
747
748 /* Skip leading whitespace */
749 cp = cp + strspn(cp, WHITESPACE);
750
751 /* Ignore blank lines and lines which begin with comment '#' char */
752 if (*cp == '\0' || *cp == '#')
753 return (0);
754
755 /* Check for leading '-' (disable error processing) */
756 *iflag = 0;
757 if (*cp == '-') {
758 *iflag = 1;
759 cp++;
760 }
761
762 /* Figure out which command we have */
763 for (i = 0; cmds[i].c; i++) {
764 int cmdlen = strlen(cmds[i].c);
765
766 /* Check for command followed by whitespace */
767 if (!strncasecmp(cp, cmds[i].c, cmdlen) &&
768 strchr(WHITESPACE, cp[cmdlen])) {
769 cp += cmdlen;
770 cp = cp + strspn(cp, WHITESPACE);
771 break;
772 }
773 }
774 cmdnum = cmds[i].n;
775 cmd = cmds[i].c;
776
777 /* Special case */
778 if (*cp == '!') {
779 cp++;
780 cmdnum = I_SHELL;
781 } else if (cmdnum == -1) {
782 error("Invalid command.");
783 return (-1);
784 }
785
786 /* Get arguments and parse flags */
787 *lflag = *pflag = *n_arg = 0;
788 *path1 = *path2 = NULL;
789 switch (cmdnum) {
790 case I_GET:
791 case I_PUT:
792 if (parse_getput_flags(&cp, pflag))
793 return(-1);
794 /* Get first pathname (mandatory) */
795 if (get_pathname(&cp, path1))
796 return(-1);
797 if (*path1 == NULL) {
798 error("You must specify at least one path after a "
799 "%s command.", cmd);
800 return(-1);
801 }
802 /* Try to get second pathname (optional) */
803 if (get_pathname(&cp, path2))
804 return(-1);
805 break;
806 case I_RENAME:
807 case I_SYMLINK:
808 if (get_pathname(&cp, path1))
809 return(-1);
810 if (get_pathname(&cp, path2))
811 return(-1);
812 if (!*path1 || !*path2) {
813 error("You must specify two paths after a %s "
814 "command.", cmd);
815 return(-1);
816 }
817 break;
818 case I_RM:
819 case I_MKDIR:
820 case I_RMDIR:
821 case I_CHDIR:
822 case I_LCHDIR:
823 case I_LMKDIR:
824 /* Get pathname (mandatory) */
825 if (get_pathname(&cp, path1))
826 return(-1);
827 if (*path1 == NULL) {
828 error("You must specify a path after a %s command.",
829 cmd);
830 return(-1);
831 }
832 break;
833 case I_LS:
834 if (parse_ls_flags(&cp, lflag))
835 return(-1);
836 /* Path is optional */
837 if (get_pathname(&cp, path1))
838 return(-1);
839 break;
840 case I_LLS:
841 case I_SHELL:
842 /* Uses the rest of the line */
843 break;
844 case I_LUMASK:
845 base = 8;
846 case I_CHMOD:
847 base = 8;
848 case I_CHOWN:
849 case I_CHGRP:
850 /* Get numeric arg (mandatory) */
851 l = strtol(cp, &cp2, base);
852 if (cp2 == cp || ((l == LONG_MIN || l == LONG_MAX) &&
853 errno == ERANGE) || l < 0) {
854 error("You must supply a numeric argument "
855 "to the %s command.", cmd);
856 return(-1);
857 }
858 cp = cp2;
859 *n_arg = l;
860 if (cmdnum == I_LUMASK && strchr(WHITESPACE, *cp))
861 break;
862 if (cmdnum == I_LUMASK || !strchr(WHITESPACE, *cp)) {
863 error("You must supply a numeric argument "
864 "to the %s command.", cmd);
865 return(-1);
866 }
867 cp += strspn(cp, WHITESPACE);
868
869 /* Get pathname (mandatory) */
870 if (get_pathname(&cp, path1))
871 return(-1);
872 if (*path1 == NULL) {
873 error("You must specify a path after a %s command.",
874 cmd);
875 return(-1);
876 }
877 break;
878 case I_QUIT:
879 case I_PWD:
880 case I_LPWD:
881 case I_HELP:
882 case I_VERSION:
883 case I_PROGRESS:
884 break;
885 default:
886 fatal("Command not implemented");
887 }
888
889 *cpp = cp;
890 return(cmdnum);
891}
892
893static int
894parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd,
895 int err_abort)
896{
897 char *path1, *path2, *tmp;
898 int pflag, lflag, iflag, cmdnum, i;
899 unsigned long n_arg;
900 Attrib a, *aa;
901 char path_buf[MAXPATHLEN];
902 int err = 0;
903 glob_t g;
904
905 path1 = path2 = NULL;
906 cmdnum = parse_args(&cmd, &pflag, &lflag, &iflag, &n_arg,
907 &path1, &path2);
908
909 if (iflag != 0)
910 err_abort = 0;
911
912 memset(&g, 0, sizeof(g));
913
914 /* Perform command */
915 switch (cmdnum) {
916 case 0:
917 /* Blank line */
918 break;
919 case -1:
920 /* Unrecognized command */
921 err = -1;
922 break;
923 case I_GET:
924 err = process_get(conn, path1, path2, *pwd, pflag);
925 break;
926 case I_PUT:
927 err = process_put(conn, path1, path2, *pwd, pflag);
928 break;
929 case I_RENAME:
930 path1 = make_absolute(path1, *pwd);
931 path2 = make_absolute(path2, *pwd);
932 err = do_rename(conn, path1, path2);
933 break;
934 case I_SYMLINK:
935 path2 = make_absolute(path2, *pwd);
936 err = do_symlink(conn, path1, path2);
937 break;
938 case I_RM:
939 path1 = make_absolute(path1, *pwd);
940 remote_glob(conn, path1, GLOB_NOCHECK, NULL, &g);
941 for (i = 0; g.gl_pathv[i]; i++) {
942 printf("Removing %s\n", g.gl_pathv[i]);
943 err = do_rm(conn, g.gl_pathv[i]);
944 if (err != 0 && err_abort)
945 break;
946 }
947 break;
948 case I_MKDIR:
949 path1 = make_absolute(path1, *pwd);
950 attrib_clear(&a);
951 a.flags |= SSH2_FILEXFER_ATTR_PERMISSIONS;
952 a.perm = 0777;
953 err = do_mkdir(conn, path1, &a);
954 break;
955 case I_RMDIR:
956 path1 = make_absolute(path1, *pwd);
957 err = do_rmdir(conn, path1);
958 break;
959 case I_CHDIR:
960 path1 = make_absolute(path1, *pwd);
961 if ((tmp = do_realpath(conn, path1)) == NULL) {
962 err = 1;
963 break;
964 }
965 if ((aa = do_stat(conn, tmp, 0)) == NULL) {
966 xfree(tmp);
967 err = 1;
968 break;
969 }
970 if (!(aa->flags & SSH2_FILEXFER_ATTR_PERMISSIONS)) {
971 error("Can't change directory: Can't check target");
972 xfree(tmp);
973 err = 1;
974 break;
975 }
976 if (!S_ISDIR(aa->perm)) {
977 error("Can't change directory: \"%s\" is not "
978 "a directory", tmp);
979 xfree(tmp);
980 err = 1;
981 break;
982 }
983 xfree(*pwd);
984 *pwd = tmp;
985 break;
986 case I_LS:
987 if (!path1) {
988 do_globbed_ls(conn, *pwd, *pwd, lflag);
989 break;
990 }
991
992 /* Strip pwd off beginning of non-absolute paths */
993 tmp = NULL;
994 if (*path1 != '/')
995 tmp = *pwd;
996
997 path1 = make_absolute(path1, *pwd);
998 err = do_globbed_ls(conn, path1, tmp, lflag);
999 break;
1000 case I_LCHDIR:
1001 if (chdir(path1) == -1) {
1002 error("Couldn't change local directory to "
1003 "\"%s\": %s", path1, strerror(errno));
1004 err = 1;
1005 }
1006 break;
1007 case I_LMKDIR:
1008 if (mkdir(path1, 0777) == -1) {
1009 error("Couldn't create local directory "
1010 "\"%s\": %s", path1, strerror(errno));
1011 err = 1;
1012 }
1013 break;
1014 case I_LLS:
1015 local_do_ls(cmd);
1016 break;
1017 case I_SHELL:
1018 local_do_shell(cmd);
1019 break;
1020 case I_LUMASK:
1021 umask(n_arg);
1022 printf("Local umask: %03lo\n", n_arg);
1023 break;
1024 case I_CHMOD:
1025 path1 = make_absolute(path1, *pwd);
1026 attrib_clear(&a);
1027 a.flags |= SSH2_FILEXFER_ATTR_PERMISSIONS;
1028 a.perm = n_arg;
1029 remote_glob(conn, path1, GLOB_NOCHECK, NULL, &g);
1030 for (i = 0; g.gl_pathv[i]; i++) {
1031 printf("Changing mode on %s\n", g.gl_pathv[i]);
1032 err = do_setstat(conn, g.gl_pathv[i], &a);
1033 if (err != 0 && err_abort)
1034 break;
1035 }
1036 break;
1037 case I_CHOWN:
1038 case I_CHGRP:
1039 path1 = make_absolute(path1, *pwd);
1040 remote_glob(conn, path1, GLOB_NOCHECK, NULL, &g);
1041 for (i = 0; g.gl_pathv[i]; i++) {
1042 if (!(aa = do_stat(conn, g.gl_pathv[i], 0))) {
1043 if (err != 0 && err_abort)
1044 break;
1045 else
1046 continue;
1047 }
1048 if (!(aa->flags & SSH2_FILEXFER_ATTR_UIDGID)) {
1049 error("Can't get current ownership of "
1050 "remote file \"%s\"", g.gl_pathv[i]);
1051 if (err != 0 && err_abort)
1052 break;
1053 else
1054 continue;
1055 }
1056 aa->flags &= SSH2_FILEXFER_ATTR_UIDGID;
1057 if (cmdnum == I_CHOWN) {
1058 printf("Changing owner on %s\n", g.gl_pathv[i]);
1059 aa->uid = n_arg;
1060 } else {
1061 printf("Changing group on %s\n", g.gl_pathv[i]);
1062 aa->gid = n_arg;
1063 }
1064 err = do_setstat(conn, g.gl_pathv[i], aa);
1065 if (err != 0 && err_abort)
1066 break;
1067 }
1068 break;
1069 case I_PWD:
1070 printf("Remote working directory: %s\n", *pwd);
1071 break;
1072 case I_LPWD:
1073 if (!getcwd(path_buf, sizeof(path_buf))) {
1074 error("Couldn't get local cwd: %s", strerror(errno));
1075 err = -1;
1076 break;
1077 }
1078 printf("Local working directory: %s\n", path_buf);
1079 break;
1080 case I_QUIT:
1081 /* Processed below */
1082 break;
1083 case I_HELP:
1084 help();
1085 break;
1086 case I_VERSION:
1087 printf("SFTP protocol version %u\n", sftp_proto_version(conn));
1088 break;
1089 case I_PROGRESS:
1090 showprogress = !showprogress;
1091 if (showprogress)
1092 printf("Progress meter enabled\n");
1093 else
1094 printf("Progress meter disabled\n");
1095 break;
1096 default:
1097 fatal("%d is not implemented", cmdnum);
1098 }
1099
1100 if (g.gl_pathc)
1101 globfree(&g);
1102 if (path1)
1103 xfree(path1);
1104 if (path2)
1105 xfree(path2);
1106
1107 /* If an unignored error occurs in batch mode we should abort. */
1108 if (err_abort && err != 0)
1109 return (-1);
1110 else if (cmdnum == I_QUIT)
1111 return (1);
1112
1113 return (0);
1114}
1115
1116int
1117interactive_loop(int fd_in, int fd_out, char *file1, char *file2)
1118{
1119 char *pwd;
1120 char *dir = NULL;
1121 char cmd[2048];
1122 struct sftp_conn *conn;
1123 int err;
1124
1125 conn = do_init(fd_in, fd_out, copy_buffer_len, num_requests);
1126 if (conn == NULL)
1127 fatal("Couldn't initialise connection to server");
1128
1129 pwd = do_realpath(conn, ".");
1130 if (pwd == NULL)
1131 fatal("Need cwd");
1132
1133 if (file1 != NULL) {
1134 dir = xstrdup(file1);
1135 dir = make_absolute(dir, pwd);
1136
1137 if (remote_is_dir(conn, dir) && file2 == NULL) {
1138 printf("Changing to: %s\n", dir);
1139 snprintf(cmd, sizeof cmd, "cd \"%s\"", dir);
1140 if (parse_dispatch_command(conn, cmd, &pwd, 1) != 0)
1141 return (-1);
1142 } else {
1143 if (file2 == NULL)
1144 snprintf(cmd, sizeof cmd, "get %s", dir);
1145 else
1146 snprintf(cmd, sizeof cmd, "get %s %s", dir,
1147 file2);
1148
1149 err = parse_dispatch_command(conn, cmd, &pwd, 1);
1150 xfree(dir);
1151 xfree(pwd);
1152 return (err);
1153 }
1154 xfree(dir);
1155 }
1156
1157#if HAVE_SETVBUF
1158 setvbuf(stdout, NULL, _IOLBF, 0);
1159 setvbuf(infile, NULL, _IOLBF, 0);
1160#else
1161 setlinebuf(stdout);
1162 setlinebuf(infile);
1163#endif
1164
1165 err = 0;
1166 for (;;) {
1167 char *cp;
1168
1169 printf("sftp> ");
1170
1171 /* XXX: use libedit */
1172 if (fgets(cmd, sizeof(cmd), infile) == NULL) {
1173 printf("\n");
1174 break;
1175 } else if (infile != stdin) /* Bluff typing */
1176 printf("%s", cmd);
1177
1178 cp = strrchr(cmd, '\n');
1179 if (cp)
1180 *cp = '\0';
1181
1182 err = parse_dispatch_command(conn, cmd, &pwd, infile != stdin);
1183 if (err != 0)
1184 break;
1185 }
1186 xfree(pwd);
1187
1188 /* err == 1 signifies normal "quit" exit */
1189 return (err >= 0 ? 0 : -1);
1190}
1191
diff --git a/sftp-int.h b/sftp-int.h
new file mode 100644
index 000000000..8a04a03f6
--- /dev/null
+++ b/sftp-int.h
@@ -0,0 +1,27 @@
1/* $OpenBSD: sftp-int.h,v 1.6 2003/01/08 23:53:26 djm Exp $ */
2
3/*
4 * Copyright (c) 2001,2002 Damien Miller. 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 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27int interactive_loop(int, int, char *, char *);
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..941e99e14
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,50 @@
1SFTP-SERVER(8) OpenBSD System Manager's Manual SFTP-SERVER(8)
2
3NAME
4 sftp-server - SFTP server subsystem
5
6SYNOPSIS
7 sftp-server [-f log_facility] [-l log_level]
8
9DESCRIPTION
10 sftp-server is a program that speaks the server side of SFTP protocol to
11 stdout and expects client requests from stdin. sftp-server is not in-
12 tended to be called directly, but from sshd(8) using the Subsystem op-
13 tion.
14
15 Command-line flags to sftp-server should be specified in the Subsystem
16 declaration. See sshd_config(5) for more information.
17
18 Valid options are:
19
20 -f log_facility
21 Specifies the facility code that is used when logging messages
22 from sftp-server. The possible values are: DAEMON, USER, AUTH,
23 LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
24 The default is AUTH.
25
26 -l log_level
27 Specifies which messages will be logged by sftp-server. The pos-
28 sible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DE-
29 BUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions that
30 sftp-server performs on behalf of the client. DEBUG and DEBUG1
31 are equivalent. DEBUG2 and DEBUG3 each specify higher levels of
32 debugging output. The default is ERROR.
33
34 For logging to work, sftp-server must be able to access /dev/log. Use of
35 sftp-server in a chroot configuation therefore requires that syslogd(8)
36 establish a logging socket inside the chroot directory.
37
38SEE ALSO
39 sftp(1), ssh(1), sshd_config(5), sshd(8)
40
41 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
42 filexfer-00.txt, January 2001, work in progress material.
43
44HISTORY
45 sftp-server first appeared in OpenBSD 2.8.
46
47AUTHORS
48 Markus Friedl <markus@openbsd.org>
49
50OpenBSD 4.4 July 18, 2008 1
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..965e1fa18
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,274 @@
1SFTP(1) OpenBSD Reference Manual SFTP(1)
2
3NAME
4 sftp - secure file transfer program
5
6SYNOPSIS
7 sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config]
8 [-o ssh_option] [-P sftp_server_path] [-R num_requests] [-S program]
9 [-s subsystem | sftp_server] host
10 sftp [[user@]host[:file [file]]]
11 sftp [[user@]host[:dir[/]]]
12 sftp -b batchfile [user@]host
13
14DESCRIPTION
15 sftp is an interactive file transfer program, similar to ftp(1), which
16 performs all operations over an encrypted ssh(1) transport. It may also
17 use many features of ssh, such as public key authentication and compres-
18 sion. sftp connects and logs into the specified host, then enters an in-
19 teractive command mode.
20
21 The second usage format will retrieve files automatically if a non-inter-
22 active authentication method is used; otherwise it will do so after suc-
23 cessful interactive authentication.
24
25 The third usage format allows sftp to start in a remote directory.
26
27 The final usage format allows for automated sessions using the -b option.
28 In such cases, it is necessary to configure non-interactive authentica-
29 tion to obviate the need to enter a password at connection time (see
30 sshd(8) and ssh-keygen(1) for details). The options are as follows:
31
32 -1 Specify the use of protocol version 1.
33
34 -B buffer_size
35 Specify the size of the buffer that sftp uses when transferring
36 files. Larger buffers require fewer round trips at the cost of
37 higher memory consumption. The default is 32768 bytes.
38
39 -b batchfile
40 Batch mode reads a series of commands from an input batchfile in-
41 stead of stdin. Since it lacks user interaction it should be
42 used in conjunction with non-interactive authentication. A
43 batchfile of `-' may be used to indicate standard input. sftp
44 will abort if any of the following commands fail: get, put,
45 rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, chgrp,
46 lpwd, df, and lmkdir. Termination on error can be suppressed on
47 a command by command basis by prefixing the command with a `-'
48 character (for example, -rm /tmp/blah*).
49
50 -C Enables compression (via ssh's -C flag).
51
52 -F ssh_config
53 Specifies an alternative per-user configuration file for ssh(1).
54 This option is directly passed to ssh(1).
55
56 -o ssh_option
57 Can be used to pass options to ssh in the format used in
58 ssh_config(5). This is useful for specifying options for which
59 there is no separate sftp command-line flag. For example, to
60 specify an alternate port use: sftp -oPort=24. For full details
61 of the options listed below, and their possible values, see
62 ssh_config(5).
63
64 AddressFamily
65 BatchMode
66 BindAddress
67 ChallengeResponseAuthentication
68 CheckHostIP
69 Cipher
70 Ciphers
71 Compression
72 CompressionLevel
73 ConnectionAttempts
74 ConnectTimeout
75 ControlMaster
76 ControlPath
77 GlobalKnownHostsFile
78 GSSAPIAuthentication
79 GSSAPIDelegateCredentials
80 HashKnownHosts
81 Host
82 HostbasedAuthentication
83 HostKeyAlgorithms
84 HostKeyAlias
85 HostName
86 IdentityFile
87 IdentitiesOnly
88 KbdInteractiveDevices
89 LogLevel
90 MACs
91 NoHostAuthenticationForLocalhost
92 NumberOfPasswordPrompts
93 PasswordAuthentication
94 Port
95 PreferredAuthentications
96 Protocol
97 ProxyCommand
98 PubkeyAuthentication
99 RekeyLimit
100 RhostsRSAAuthentication
101 RSAAuthentication
102 SendEnv
103 ServerAliveInterval
104 ServerAliveCountMax
105 SmartcardDevice
106 StrictHostKeyChecking
107 TCPKeepAlive
108 UsePrivilegedPort
109 User
110 UserKnownHostsFile
111 VerifyHostKeyDNS
112
113 -P sftp_server_path
114 Connect directly to a local sftp server (rather than via ssh(1)).
115 This option may be useful in debugging the client and server.
116
117 -R num_requests
118 Specify how many requests may be outstanding at any one time.
119 Increasing this may slightly improve file transfer speed but will
120 increase memory usage. The default is 64 outstanding requests.
121
122 -S program
123 Name of the program to use for the encrypted connection. The
124 program must understand ssh(1) options.
125
126 -s subsystem | sftp_server
127 Specifies the SSH2 subsystem or the path for an sftp server on
128 the remote host. A path is useful for using sftp over protocol
129 version 1, or when the remote sshd(8) does not have an sftp sub-
130 system configured.
131
132 -v Raise logging level. This option is also passed to ssh.
133
134INTERACTIVE COMMANDS
135 Once in interactive mode, sftp understands a set of commands similar to
136 those of ftp(1). Commands are case insensitive. Pathnames that contain
137 spaces must be enclosed in quotes. Any special characters contained
138 within pathnames that are recognized by glob(3) must be escaped with
139 backslashes (`\').
140
141 bye Quit sftp.
142
143 cd path
144 Change remote directory to path.
145
146 chgrp grp path
147 Change group of file path to grp. path may contain glob(3) char-
148 acters and may match multiple files. grp must be a numeric GID.
149
150 chmod mode path
151 Change permissions of file path to mode. path may contain
152 glob(3) characters and may match multiple files.
153
154 chown own path
155 Change owner of file path to own. path may contain glob(3) char-
156 acters and may match multiple files. own must be a numeric UID.
157
158 df [-hi] [path]
159 Display usage information for the filesystem holding the current
160 directory (or path if specified). If the -h flag is specified,
161 the capacity information will be displayed using "human-readable"
162 suffixes. The -i flag requests display of inode information in
163 addition to capacity information. This command is only supported
164 on servers that implement the ``statvfs@openssh.com'' extension.
165
166 exit Quit sftp.
167
168 get [-P] remote-path [local-path]
169 Retrieve the remote-path and store it on the local machine. If
170 the local path name is not specified, it is given the same name
171 it has on the remote machine. remote-path may contain glob(3)
172 characters and may match multiple files. If it does and local-
173 path is specified, then local-path must specify a directory. If
174 the -P flag is specified, then full file permissions and access
175 times are copied too.
176
177 help Display help text.
178
179 lcd path
180 Change local directory to path.
181
182 lls [ls-options [path]]
183 Display local directory listing of either path or current direc-
184 tory if path is not specified. ls-options may contain any flags
185 supported by the local system's ls(1) command. path may contain
186 glob(3) characters and may match multiple files.
187
188 lmkdir path
189 Create local directory specified by path.
190
191 ln oldpath newpath
192 Create a symbolic link from oldpath to newpath.
193
194 lpwd Print local working directory.
195
196 ls [-1aflnrSt] [path]
197 Display a remote directory listing of either path or the current
198 directory if path is not specified. path may contain glob(3)
199 characters and may match multiple files.
200
201 The following flags are recognized and alter the behaviour of ls
202 accordingly:
203
204 -1 Produce single columnar output.
205
206 -a List files beginning with a dot (`.').
207
208 -f Do not sort the listing. The default sort order is lexi-
209 cographical.
210
211 -l Display additional details including permissions and own-
212 ership information.
213
214 -n Produce a long listing with user and group information
215 presented numerically.
216
217 -r Reverse the sort order of the listing.
218
219 -S Sort the listing by file size.
220
221 -t Sort the listing by last modification time.
222
223 lumask umask
224 Set local umask to umask.
225
226 mkdir path
227 Create remote directory specified by path.
228
229 progress
230 Toggle display of progress meter.
231
232 put [-P] local-path [remote-path]
233 Upload local-path and store it on the remote machine. If the re-
234 mote path name is not specified, it is given the same name it has
235 on the local machine. local-path may contain glob(3) characters
236 and may match multiple files. If it does and remote-path is
237 specified, then remote-path must specify a directory. If the -P
238 flag is specified, then the file's full permission and access
239 time are copied too.
240
241 pwd Display remote working directory.
242
243 quit Quit sftp.
244
245 rename oldpath newpath
246 Rename remote file from oldpath to newpath.
247
248 rm path
249 Delete remote file specified by path.
250
251 rmdir path
252 Remove remote directory specified by path.
253
254 symlink oldpath newpath
255 Create a symbolic link from oldpath to newpath.
256
257 version
258 Display the sftp protocol version.
259
260 ! command
261 Execute command in local shell.
262
263 ! Escape to local shell.
264
265 ? Synonym for help.
266
267SEE ALSO
268 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
269 ssh_config(5), sftp-server(8), sshd(8)
270
271 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
272 filexfer-00.txt, January 2001, work in progress material.
273
274OpenBSD 4.4 July 15, 2008 5
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..3652bb5e5
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,106 @@
1SSH-ADD(1) OpenBSD Reference Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds RSA or DSA identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-cDdLlXx] [-t life] [file ...]
8 ssh-add -s reader
9 ssh-add -e reader
10
11DESCRIPTION
12 ssh-add adds RSA or DSA identities to the authentication agent,
13 ssh-agent(1). When run without arguments, it adds the files
14 ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. Alternative file names
15 can be given on the command line. If any file requires a passphrase,
16 ssh-add asks for the passphrase from the user. The passphrase is read
17 from the user's tty. ssh-add retries the last passphrase if multiple
18 identity files are given.
19
20 The authentication agent must be running and the SSH_AUTH_SOCK environ-
21 ment variable must contain the name of its socket for ssh-add to work.
22
23 The options are as follows:
24
25 -c Indicates that added identities should be subject to confirmation
26 before being used for authentication. Confirmation is performed
27 by the SSH_ASKPASS program mentioned below. Successful confirma-
28 tion is signaled by a zero exit status from the SSH_ASKPASS pro-
29 gram, rather than text entered into the requester.
30
31 -D Deletes all identities from the agent.
32
33 -d Instead of adding identities, removes identities from the agent.
34 If ssh-add has been run without arguments, the keys for the de-
35 fault identities will be removed. Otherwise, the argument list
36 will be interpreted as a list of paths to public key files and
37 matching keys will be removed from the agent. If no public key
38 is found at a given path, ssh-add will append .pub and retry.
39
40 -e reader
41 Remove key in smartcard reader.
42
43 -L Lists public key parameters of all identities currently repre-
44 sented by the agent.
45
46 -l Lists fingerprints of all identities currently represented by the
47 agent.
48
49 -s reader
50 Add key in smartcard reader.
51
52 -t life
53 Set a maximum lifetime when adding identities to an agent. The
54 lifetime may be specified in seconds or in a time format speci-
55 fied in sshd_config(5).
56
57 -X Unlock the agent.
58
59 -x Lock the agent with a password.
60
61ENVIRONMENT
62 DISPLAY and SSH_ASKPASS
63 If ssh-add needs a passphrase, it will read the passphrase from
64 the current terminal if it was run from a terminal. If ssh-add
65 does not have a terminal associated with it but DISPLAY and
66 SSH_ASKPASS are set, it will execute the program specified by
67 SSH_ASKPASS and open an X11 window to read the passphrase. This
68 is particularly useful when calling ssh-add from a .xsession or
69 related script. (Note that on some machines it may be necessary
70 to redirect the input from /dev/null to make this work.)
71
72 SSH_AUTH_SOCK
73 Identifies the path of a unix-domain socket used to communicate
74 with the agent.
75
76FILES
77 ~/.ssh/identity
78 Contains the protocol version 1 RSA authentication identity of
79 the user.
80
81 ~/.ssh/id_dsa
82 Contains the protocol version 2 DSA authentication identity of
83 the user.
84
85 ~/.ssh/id_rsa
86 Contains the protocol version 2 RSA authentication identity of
87 the user.
88
89 Identity files should not be readable by anyone but the user. Note that
90 ssh-add ignores identity files if they are accessible by others.
91
92DIAGNOSTICS
93 Exit status is 0 on success, 1 if the specified command fails, and 2 if
94 ssh-add is unable to contact the authentication agent.
95
96SEE ALSO
97 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
98
99AUTHORS
100 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
101 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
102 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
103 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
104 versions 1.5 and 2.0.
105
106OpenBSD 4.4 June 12, 2007 2
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..90348a6b2
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,117 @@
1SSH-AGENT(1) OpenBSD Reference Manual SSH-AGENT(1)
2
3NAME
4 ssh-agent - authentication agent
5
6SYNOPSIS
7 ssh-agent [-c | -s] [-d] [-a bind_address] [-t life] [command [arg ...]]
8 ssh-agent [-c | -s] -k
9
10DESCRIPTION
11 ssh-agent is a program to hold private keys used for public key authenti-
12 cation (RSA, DSA). The idea is that ssh-agent is started in the begin-
13 ning of an X-session or a login session, and all other windows or pro-
14 grams are started as clients to the ssh-agent program. Through use of
15 environment variables the agent can be located and automatically used for
16 authentication when logging in to other machines using ssh(1).
17
18 The options are as follows:
19
20 -a bind_address
21 Bind the agent to the unix-domain socket bind_address. The de-
22 fault is /tmp/ssh-XXXXXXXXXX/agent.<ppid>.
23
24 -c Generate C-shell commands on stdout. This is the default if
25 SHELL looks like it's a csh style of shell.
26
27 -d Debug mode. When this option is specified ssh-agent will not
28 fork.
29
30 -k Kill the current agent (given by the SSH_AGENT_PID environment
31 variable).
32
33 -s Generate Bourne shell commands on stdout. This is the default if
34 SHELL does not look like it's a csh style of shell.
35
36 -t life
37 Set a default value for the maximum lifetime of identities added
38 to the agent. The lifetime may be specified in seconds or in a
39 time format specified in sshd_config(5). A lifetime specified
40 for an identity with ssh-add(1) overrides this value. Without
41 this option the default maximum lifetime is forever.
42
43 If a commandline is given, this is executed as a subprocess of the agent.
44 When the command dies, so does the agent.
45
46 The agent initially does not have any private keys. Keys are added using
47 ssh-add(1). When executed without arguments, ssh-add(1) adds the files
48 ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. If the identity has a
49 passphrase, ssh-add(1) asks for the passphrase (using a small X11 appli-
50 cation if running under X11, or from the terminal if running without X).
51 It then sends the identity to the agent. Several identities can be
52 stored in the agent; the agent can automatically use any of these identi-
53 ties. ssh-add -l displays the identities currently held by the agent.
54
55 The idea is that the agent is run in the user's local PC, laptop, or ter-
56 minal. Authentication data need not be stored on any other machine, and
57 authentication passphrases never go over the network. However, the con-
58 nection to the agent is forwarded over SSH remote logins, and the user
59 can thus use the privileges given by the identities anywhere in the net-
60 work in a secure way.
61
62 There are two main ways to get an agent set up: The first is that the
63 agent starts a new subcommand into which some environment variables are
64 exported, eg ssh-agent xterm &. The second is that the agent prints the
65 needed shell commands (either sh(1) or csh(1) syntax can be generated)
66 which can be evalled in the calling shell, eg eval `ssh-agent -s` for
67 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
68 csh(1) and derivatives.
69
70 Later ssh(1) looks at these variables and uses them to establish a con-
71 nection to the agent.
72
73 The agent will never send a private key over its request channel. In-
74 stead, operations that require a private key will be performed by the
75 agent, and the result will be returned to the requester. This way, pri-
76 vate keys are not exposed to clients using the agent.
77
78 A unix-domain socket is created and the name of this socket is stored in
79 the SSH_AUTH_SOCK environment variable. The socket is made accessible
80 only to the current user. This method is easily abused by root or anoth-
81 er instance of the same user.
82
83 The SSH_AGENT_PID environment variable holds the agent's process ID.
84
85 The agent exits automatically when the command given on the command line
86 terminates.
87
88FILES
89 ~/.ssh/identity
90 Contains the protocol version 1 RSA authentication identity of
91 the user.
92
93 ~/.ssh/id_dsa
94 Contains the protocol version 2 DSA authentication identity of
95 the user.
96
97 ~/.ssh/id_rsa
98 Contains the protocol version 2 RSA authentication identity of
99 the user.
100
101 /tmp/ssh-XXXXXXXXXX/agent.<ppid>
102 Unix-domain sockets used to contain the connection to the authen-
103 tication agent. These sockets should only be readable by the
104 owner. The sockets should get automatically removed when the
105 agent exits.
106
107SEE ALSO
108 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
109
110AUTHORS
111 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
112 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
113 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
114 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
115 versions 1.5 and 2.0.
116
117OpenBSD 4.4 June 5, 2007 2
diff --git a/ssh-dss.h b/ssh-dss.h
new file mode 100644
index 000000000..94961b1e8
--- /dev/null
+++ b/ssh-dss.h
@@ -0,0 +1,32 @@
1/* $OpenBSD: ssh-dss.h,v 1.6 2002/02/24 19:14:59 markus Exp $ */
2
3/*
4 * Copyright (c) 2000 Markus Friedl. 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 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26#ifndef DSA_H
27#define DSA_H
28
29int ssh_dss_sign(Key *, u_char **, u_int *, u_char *, u_int);
30int ssh_dss_verify(Key *, u_char *, u_int, u_char *, u_int);
31
32#endif
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..ca8b5cf8c
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,289 @@
1SSH-KEYGEN(1) OpenBSD Reference Manual SSH-KEYGEN(1)
2
3NAME
4 ssh-keygen - authentication key generation, management and conversion
5
6SYNOPSIS
7 ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment]
8 [-f output_keyfile]
9 ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
10 ssh-keygen -i [-f input_keyfile]
11 ssh-keygen -e [-f input_keyfile]
12 ssh-keygen -y [-f input_keyfile]
13 ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]
14 ssh-keygen -l [-f input_keyfile]
15 ssh-keygen -B [-f input_keyfile]
16 ssh-keygen -D reader
17 ssh-keygen -F hostname [-f known_hosts_file]
18 ssh-keygen -H [-f known_hosts_file]
19 ssh-keygen -R hostname [-f known_hosts_file]
20 ssh-keygen -U reader [-f input_keyfile]
21 ssh-keygen -r hostname [-f input_keyfile] [-g]
22 ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point]
23 ssh-keygen -T output_file -f input_file [-v] [-a num_trials] [-W
24 generator]
25
26DESCRIPTION
27 ssh-keygen generates, manages and converts authentication keys for
28 ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1
29 and RSA or DSA keys for use by SSH protocol version 2. The type of key
30 to be generated is specified with the -t option. If invoked without any
31 arguments, ssh-keygen will generate an RSA key for use in SSH protocol 2
32 connections.
33
34 ssh-keygen is also used to generate groups for use in Diffie-Hellman
35 group exchange (DH-GEX). See the MODULI GENERATION section for details.
36
37 Normally each user wishing to use SSH with RSA or DSA authentication runs
38 this once to create the authentication key in ~/.ssh/identity,
39 ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the system administrator
40 may use this to generate host keys, as seen in /etc/rc.
41
42 Normally this program generates the key and asks for a file in which to
43 store the private key. The public key is stored in a file with the same
44 name but ``.pub'' appended. The program also asks for a passphrase. The
45 passphrase may be empty to indicate no passphrase (host keys must have an
46 empty passphrase), or it may be a string of arbitrary length. A
47 passphrase is similar to a password, except it can be a phrase with a se-
48 ries of words, punctuation, numbers, whitespace, or any string of charac-
49 ters you want. Good passphrases are 10-30 characters long, are not sim-
50 ple sentences or otherwise easily guessable (English prose has only 1-2
51 bits of entropy per character, and provides very bad passphrases), and
52 contain a mix of upper and lowercase letters, numbers, and non-alphanu-
53 meric characters. The passphrase can be changed later by using the -p
54 option.
55
56 There is no way to recover a lost passphrase. If the passphrase is lost
57 or forgotten, a new key must be generated and copied to the corresponding
58 public key to other machines.
59
60 For RSA1 keys, there is also a comment field in the key file that is only
61 for convenience to the user to help identify the key. The comment can
62 tell what the key is for, or whatever is useful. The comment is initial-
63 ized to ``user@host'' when the key is created, but can be changed using
64 the -c option.
65
66 After a key is generated, instructions below detail where the keys should
67 be placed to be activated.
68
69 The options are as follows:
70
71 -a trials
72 Specifies the number of primality tests to perform when screening
73 DH-GEX candidates using the -T command.
74
75 -B Show the bubblebabble digest of specified private or public key
76 file.
77
78 -b bits
79 Specifies the number of bits in the key to create. For RSA keys,
80 the minimum size is 768 bits and the default is 2048 bits. Gen-
81 erally, 2048 bits is considered sufficient. DSA keys must be ex-
82 actly 1024 bits as specified by FIPS 186-2.
83
84 -C comment
85 Provides a new comment.
86
87 -c Requests changing the comment in the private and public key
88 files. This operation is only supported for RSA1 keys. The pro-
89 gram will prompt for the file containing the private keys, for
90 the passphrase if the key has one, and for the new comment.
91
92 -D reader
93 Download the RSA public key stored in the smartcard in reader.
94
95 -e This option will read a private or public OpenSSH key file and
96 print the key in RFC 4716 SSH Public Key File Format to stdout.
97 This option allows exporting keys for use by several commercial
98 SSH implementations.
99
100 -F hostname
101 Search for the specified hostname in a known_hosts file, listing
102 any occurrences found. This option is useful to find hashed host
103 names or addresses and may also be used in conjunction with the
104 -H option to print found keys in a hashed format.
105
106 -f filename
107 Specifies the filename of the key file.
108
109 -G output_file
110 Generate candidate primes for DH-GEX. These primes must be
111 screened for safety (using the -T option) before use.
112
113 -g Use generic DNS format when printing fingerprint resource records
114 using the -r command.
115
116 -H Hash a known_hosts file. This replaces all hostnames and ad-
117 dresses with hashed representations within the specified file;
118 the original content is moved to a file with a .old suffix.
119 These hashes may be used normally by ssh and sshd, but they do
120 not reveal identifying information should the file's contents be
121 disclosed. This option will not modify existing hashed hostnames
122 and is therefore safe to use on files that mix hashed and non-
123 hashed names.
124
125 -i This option will read an unencrypted private (or public) key file
126 in SSH2-compatible format and print an OpenSSH compatible private
127 (or public) key to stdout. ssh-keygen also reads the RFC 4716
128 SSH Public Key File Format. This option allows importing keys
129 from several commercial SSH implementations.
130
131 -l Show fingerprint of specified public key file. Private RSA1 keys
132 are also supported. For RSA and DSA keys ssh-keygen tries to
133 find the matching public key file and prints its fingerprint. If
134 combined with -v, an ASCII art representation of the key is sup-
135 plied with the fingerprint.
136
137 -M memory
138 Specify the amount of memory to use (in megabytes) when generat-
139 ing candidate moduli for DH-GEX.
140
141 -N new_passphrase
142 Provides the new passphrase.
143
144 -P passphrase
145 Provides the (old) passphrase.
146
147 -p Requests changing the passphrase of a private key file instead of
148 creating a new private key. The program will prompt for the file
149 containing the private key, for the old passphrase, and twice for
150 the new passphrase.
151
152 -q Silence ssh-keygen. Used by /etc/rc when creating a new key.
153
154 -R hostname
155 Removes all keys belonging to hostname from a known_hosts file.
156 This option is useful to delete hashed hosts (see the -H option
157 above).
158
159 -r hostname
160 Print the SSHFP fingerprint resource record named hostname for
161 the specified public key file.
162
163 -S start
164 Specify start point (in hex) when generating candidate moduli for
165 DH-GEX.
166
167 -T output_file
168 Test DH group exchange candidate primes (generated using the -G
169 option) for safety.
170
171 -t type
172 Specifies the type of key to create. The possible values are
173 ``rsa1'' for protocol version 1 and ``rsa'' or ``dsa'' for proto-
174 col version 2.
175
176 -U reader
177 Upload an existing RSA private key into the smartcard in reader.
178
179 -v Verbose mode. Causes ssh-keygen to print debugging messages
180 about its progress. This is helpful for debugging moduli genera-
181 tion. Multiple -v options increase the verbosity. The maximum
182 is 3.
183
184 -W generator
185 Specify desired generator when testing candidate moduli for DH-
186 GEX.
187
188 -y This option will read a private OpenSSH format file and print an
189 OpenSSH public key to stdout.
190
191MODULI GENERATION
192 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
193 Exchange (DH-GEX) protocol. Generating these groups is a two-step pro-
194 cess: first, candidate primes are generated using a fast, but memory in-
195 tensive process. These candidate primes are then tested for suitability
196 (a CPU-intensive process).
197
198 Generation of primes is performed using the -G option. The desired
199 length of the primes may be specified by the -b option. For example:
200
201 # ssh-keygen -G moduli-2048.candidates -b 2048
202
203 By default, the search for primes begins at a random point in the desired
204 length range. This may be overridden using the -S option, which speci-
205 fies a different start point (in hex).
206
207 Once a set of candidates have been generated, they must be tested for
208 suitability. This may be performed using the -T option. In this mode
209 ssh-keygen will read candidates from standard input (or a file specified
210 using the -f option). For example:
211
212 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
213
214 By default, each candidate will be subjected to 100 primality tests.
215 This may be overridden using the -a option. The DH generator value will
216 be chosen automatically for the prime under consideration. If a specific
217 generator is desired, it may be requested using the -W option. Valid
218 generator values are 2, 3, and 5.
219
220 Screened DH groups may be installed in /etc/moduli. It is important that
221 this file contains moduli of a range of bit lengths and that both ends of
222 a connection share common moduli.
223
224FILES
225 ~/.ssh/identity
226 Contains the protocol version 1 RSA authentication identity of
227 the user. This file should not be readable by anyone but the us-
228 er. It is possible to specify a passphrase when generating the
229 key; that passphrase will be used to encrypt the private part of
230 this file using 3DES. This file is not automatically accessed by
231 ssh-keygen but it is offered as the default file for the private
232 key. ssh(1) will read this file when a login attempt is made.
233
234 ~/.ssh/identity.pub
235 Contains the protocol version 1 RSA public key for authentica-
236 tion. The contents of this file should be added to
237 ~/.ssh/authorized_keys on all machines where the user wishes to
238 log in using RSA authentication. There is no need to keep the
239 contents of this file secret.
240
241 ~/.ssh/id_dsa
242 Contains the protocol version 2 DSA authentication identity of
243 the user. This file should not be readable by anyone but the us-
244 er. It is possible to specify a passphrase when generating the
245 key; that passphrase will be used to encrypt the private part of
246 this file using 3DES. This file is not automatically accessed by
247 ssh-keygen but it is offered as the default file for the private
248 key. ssh(1) will read this file when a login attempt is made.
249
250 ~/.ssh/id_dsa.pub
251 Contains the protocol version 2 DSA public key for authentica-
252 tion. The contents of this file should be added to
253 ~/.ssh/authorized_keys on all machines where the user wishes to
254 log in using public key authentication. There is no need to keep
255 the contents of this file secret.
256
257 ~/.ssh/id_rsa
258 Contains the protocol version 2 RSA authentication identity of
259 the user. This file should not be readable by anyone but the us-
260 er. It is possible to specify a passphrase when generating the
261 key; that passphrase will be used to encrypt the private part of
262 this file using 3DES. This file is not automatically accessed by
263 ssh-keygen but it is offered as the default file for the private
264 key. ssh(1) will read this file when a login attempt is made.
265
266 ~/.ssh/id_rsa.pub
267 Contains the protocol version 2 RSA public key for authentica-
268 tion. The contents of this file should be added to
269 ~/.ssh/authorized_keys on all machines where the user wishes to
270 log in using public key authentication. There is no need to keep
271 the contents of this file secret.
272
273 /etc/moduli
274 Contains Diffie-Hellman groups used for DH-GEX. The file format
275 is described in moduli(5).
276
277SEE ALSO
278 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
279
280 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
281
282AUTHORS
283 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
284 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
285 de Raadt and Dug Song removed many bugs, re-added newer features and
286 created OpenSSH. Markus Friedl contributed the support for SSH protocol
287 versions 1.5 and 2.0.
288
289OpenBSD 4.4 June 12, 2008 5
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..5cd68816c
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,107 @@
1SSH-KEYSCAN(1) OpenBSD Reference Manual SSH-KEYSCAN(1)
2
3NAME
4 ssh-keyscan - gather ssh public keys
5
6SYNOPSIS
7 ssh-keyscan [-46Hv] [-f file] [-p port] [-T timeout] [-t type]
8 [host | addrlist namelist] [...]
9
10DESCRIPTION
11 ssh-keyscan is a utility for gathering the public ssh host keys of a num-
12 ber of hosts. It was designed to aid in building and verifying
13 ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable
14 for use by shell and perl scripts.
15
16 ssh-keyscan uses non-blocking socket I/O to contact as many hosts as pos-
17 sible in parallel, so it is very efficient. The keys from a domain of
18 1,000 hosts can be collected in tens of seconds, even when some of those
19 hosts are down or do not run ssh. For scanning, one does not need login
20 access to the machines that are being scanned, nor does the scanning pro-
21 cess involve any encryption.
22
23 The options are as follows:
24
25 -4 Forces ssh-keyscan to use IPv4 addresses only.
26
27 -6 Forces ssh-keyscan to use IPv6 addresses only.
28
29 -f file
30 Read hosts or addrlist namelist pairs from this file, one per
31 line. If - is supplied instead of a filename, ssh-keyscan will
32 read hosts or addrlist namelist pairs from the standard input.
33
34 -H Hash all hostnames and addresses in the output. Hashed names may
35 be used normally by ssh and sshd, but they do not reveal identi-
36 fying information should the file's contents be disclosed.
37
38 -p port
39 Port to connect to on the remote host.
40
41 -T timeout
42 Set the timeout for connection attempts. If timeout seconds have
43 elapsed since a connection was initiated to a host or since the
44 last time anything was read from that host, then the connection
45 is closed and the host in question considered unavailable. De-
46 fault is 5 seconds.
47
48 -t type
49 Specifies the type of the key to fetch from the scanned hosts.
50 The possible values are ``rsa1'' for protocol version 1 and
51 ``rsa'' or ``dsa'' for protocol version 2. Multiple values may
52 be specified by separating them with commas. The default is
53 ``rsa''.
54
55 -v Verbose mode. Causes ssh-keyscan to print debugging messages
56 about its progress.
57
58SECURITY
59 If an ssh_known_hosts file is constructed using ssh-keyscan without veri-
60 fying the keys, users will be vulnerable to man in the middle attacks.
61 On the other hand, if the security model allows such a risk, ssh-keyscan
62 can help in the detection of tampered keyfiles or man in the middle at-
63 tacks which have begun after the ssh_known_hosts file was created.
64
65FILES
66 Input format:
67
68 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
69
70 Output format for rsa1 keys:
71
72 host-or-namelist bits exponent modulus
73
74 Output format for rsa and dsa keys:
75
76 host-or-namelist keytype base64-encoded-key
77
78 Where keytype is either ``ssh-rsa'' or ``ssh-dss''.
79
80 /etc/ssh/ssh_known_hosts
81
82EXAMPLES
83 Print the rsa1 host key for machine hostname:
84
85 $ ssh-keyscan hostname
86
87 Find all hosts from the file ssh_hosts which have new or different keys
88 from those in the sorted file ssh_known_hosts:
89
90 $ ssh-keyscan -t rsa,dsa -f ssh_hosts | \
91 sort -u - ssh_known_hosts | diff ssh_known_hosts -
92
93SEE ALSO
94 ssh(1), sshd(8)
95
96AUTHORS
97 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
98 Davison <wayned@users.sourceforge.net> added support for protocol version
99 2.
100
101BUGS
102 It generates "Connection closed by remote host" messages on the consoles
103 of all the machines it scans if the server is older than version 2.9.
104 This is because it opens a connection to the ssh port, reads the public
105 key, and drops the connection as soon as it gets the key.
106
107OpenBSD 4.4 April 30, 2008 2
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..07ffeca5c
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,42 @@
1SSH-KEYSIGN(8) OpenBSD System Manager's Manual SSH-KEYSIGN(8)
2
3NAME
4 ssh-keysign - ssh helper program for host-based authentication
5
6SYNOPSIS
7 ssh-keysign
8
9DESCRIPTION
10 ssh-keysign is used by ssh(1) to access the local host keys and generate
11 the digital signature required during host-based authentication with SSH
12 protocol version 2.
13
14 ssh-keysign is disabled by default and can only be enabled in the global
15 client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign
16 to ``yes''.
17
18 ssh-keysign is not intended to be invoked by the user, but from ssh(1).
19 See ssh(1) and sshd(8) for more information about host-based authentica-
20 tion.
21
22FILES
23 /etc/ssh/ssh_config
24 Controls whether ssh-keysign is enabled.
25
26 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key
27 These files contain the private parts of the host keys used to
28 generate the digital signature. They should be owned by root,
29 readable only by root, and not accessible to others. Since they
30 are readable only by root, ssh-keysign must be set-uid root if
31 host-based authentication is used.
32
33SEE ALSO
34 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
35
36HISTORY
37 ssh-keysign first appeared in OpenBSD 3.2.
38
39AUTHORS
40 Markus Friedl <markus@openbsd.org>
41
42OpenBSD 4.4 May 31, 2007 1
diff --git a/ssh-rand-helper.0 b/ssh-rand-helper.0
new file mode 100644
index 000000000..e1d31c1cd
--- /dev/null
+++ b/ssh-rand-helper.0
@@ -0,0 +1,51 @@
1SSH-RAND-HELPER(8) OpenBSD System Manager's Manual SSH-RAND-HELPER(8)
2
3NAME
4 ssh-rand-helper - random number gatherer for OpenSSH
5
6SYNOPSIS
7 ssh-rand-hlper [-vxXh] [-b bytes]
8
9DESCRIPTION
10 ssh-rand-helper is a small helper program used by ssh(1), ssh-add(1),
11 ssh-agent(1), ssh-keygen(1), ssh-keyscan(1) and sshd(8) to gather random
12 numbers of cryptographic quality if the openssl(4) library has not been
13 configured to provide them itself.
14
15 Normally ssh-rand-helper will generate a strong random seed and provide
16 it to the calling program via standard output. If standard output is a
17 tty, ssh-rand-helper will instead print the seed in hexidecimal format
18 unless told otherwise.
19
20 ssh-rand-helper will by default gather random numbers from the system
21 commands listed in /etc/ssh/ssh_prng_cmds. The output of each of the
22 commands listed will be hashed and used to generate a random seed for the
23 calling program. ssh-rand-helper will also store seed files in
24 ~/.ssh/prng_seed between executions.
25
26 Alternately, ssh-rand-helper may be configured at build time to collect
27 random numbers from a EGD/PRNGd server via a unix domain or localhost tcp
28 socket.
29
30 This program is not intended to be run by the end-user, so the few com-
31 mandline options are for debugging purposes only.
32
33 -b bytes
34 Specify the number of random bytes to include in the output.
35
36 -x Output a hexidecimal instead of a binary seed.
37
38 -X Force output of a binary seed, even if standard output is a tty
39
40 -v Turn on debugging message. Multiple -v options will increase the
41 debugging level.
42
43 -h Display a summary of options.
44
45AUTHORS
46 Damien Miller <djm@mindrot.org>
47
48SEE ALSO
49 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
50
51OpenBSD 4.4 April 14, 2002 1
diff --git a/ssh-rsa.h b/ssh-rsa.h
new file mode 100644
index 000000000..7177a3f92
--- /dev/null
+++ b/ssh-rsa.h
@@ -0,0 +1,32 @@
1/* $OpenBSD: ssh-rsa.h,v 1.6 2002/02/24 19:14:59 markus Exp $ */
2
3/*
4 * Copyright (c) 2000 Markus Friedl. 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 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26#ifndef SSH_RSA_H
27#define SSH_RSA_H
28
29int ssh_rsa_sign(Key *, u_char **, u_int *, u_char *, u_int);
30int ssh_rsa_verify(Key *, u_char *, u_int, u_char *, u_int);
31
32#endif
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..21e5ac9a3
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,867 @@
1SSH(1) OpenBSD Reference Manual SSH(1)
2
3NAME
4 ssh - OpenSSH SSH client (remote login program)
5
6SYNOPSIS
7 ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
8 [-D [bind_address:]port] [-e escape_char] [-F configfile]
9 [-i identity_file] [-L [bind_address:]port:host:hostport]
10 [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
11 [-R [bind_address:]port:host:hostport] [-S ctl_path]
12 [-w local_tun[:remote_tun]] [user@]hostname [command]
13
14DESCRIPTION
15 ssh (SSH client) is a program for logging into a remote machine and for
16 executing commands on a remote machine. It is intended to replace rlogin
17 and rsh, and provide secure encrypted communications between two untrust-
18 ed hosts over an insecure network. X11 connections and arbitrary TCP
19 ports can also be forwarded over the secure channel.
20
21 ssh connects and logs into the specified hostname (with optional user
22 name). The user must prove his/her identity to the remote machine using
23 one of several methods depending on the protocol version used (see be-
24 low).
25
26 If command is specified, it is executed on the remote host instead of a
27 login shell.
28
29 The options are as follows:
30
31 -1 Forces ssh to try protocol version 1 only.
32
33 -2 Forces ssh to try protocol version 2 only.
34
35 -4 Forces ssh to use IPv4 addresses only.
36
37 -6 Forces ssh to use IPv6 addresses only.
38
39 -A Enables forwarding of the authentication agent connection. This
40 can also be specified on a per-host basis in a configuration
41 file.
42
43 Agent forwarding should be enabled with caution. Users with the
44 ability to bypass file permissions on the remote host (for the
45 agent's Unix-domain socket) can access the local agent through
46 the forwarded connection. An attacker cannot obtain key material
47 from the agent, however they can perform operations on the keys
48 that enable them to authenticate using the identities loaded into
49 the agent.
50
51 -a Disables forwarding of the authentication agent connection.
52
53 -b bind_address
54 Use bind_address on the local machine as the source address of
55 the connection. Only useful on systems with more than one ad-
56 dress.
57
58 -C Requests compression of all data (including stdin, stdout,
59 stderr, and data for forwarded X11 and TCP connections). The
60 compression algorithm is the same used by gzip(1), and the
61 ``level'' can be controlled by the CompressionLevel option for
62 protocol version 1. Compression is desirable on modem lines and
63 other slow connections, but will only slow down things on fast
64 networks. The default value can be set on a host-by-host basis
65 in the configuration files; see the Compression option.
66
67 -c cipher_spec
68 Selects the cipher specification for encrypting the session.
69
70 Protocol version 1 allows specification of a single cipher. The
71 supported values are ``3des'', ``blowfish'', and ``des''. 3des
72 (triple-des) is an encrypt-decrypt-encrypt triple with three dif-
73 ferent keys. It is believed to be secure. blowfish is a fast
74 block cipher; it appears very secure and is much faster than
75 3des. des is only supported in the ssh client for interoperabil-
76 ity with legacy protocol 1 implementations that do not support
77 the 3des cipher. Its use is strongly discouraged due to crypto-
78 graphic weaknesses. The default is ``3des''.
79
80 For protocol version 2, cipher_spec is a comma-separated list of
81 ciphers listed in order of preference. The supported ciphers
82 are: 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr,
83 aes192-ctr, aes256-ctr, arcfour128, arcfour256, arcfour, blow-
84 fish-cbc, and cast128-cbc. The default is:
85
86 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,
87 arcfour256,arcfour,aes192-cbc,aes256-cbc,aes128-ctr,
88 aes192-ctr,aes256-ctr
89
90 -D [bind_address:]port
91 Specifies a local ``dynamic'' application-level port forwarding.
92 This works by allocating a socket to listen to port on the local
93 side, optionally bound to the specified bind_address. Whenever a
94 connection is made to this port, the connection is forwarded over
95 the secure channel, and the application protocol is then used to
96 determine where to connect to from the remote machine. Currently
97 the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
98 as a SOCKS server. Only root can forward privileged ports. Dy-
99 namic port forwardings can also be specified in the configuration
100 file.
101
102 IPv6 addresses can be specified with an alternative syntax:
103 [bind_address/]port or by enclosing the address in square brack-
104 ets. Only the superuser can forward privileged ports. By de-
105 fault, the local port is bound in accordance with the
106 GatewayPorts setting. However, an explicit bind_address may be
107 used to bind the connection to a specific address. The
108 bind_address of ``localhost'' indicates that the listening port
109 be bound for local use only, while an empty address or `*' indi-
110 cates that the port should be available from all interfaces.
111
112 -e escape_char
113 Sets the escape character for sessions with a pty (default: `~').
114 The escape character is only recognized at the beginning of a
115 line. The escape character followed by a dot (`.') closes the
116 connection; followed by control-Z suspends the connection; and
117 followed by itself sends the escape character once. Setting the
118 character to ``none'' disables any escapes and makes the session
119 fully transparent.
120
121 -F configfile
122 Specifies an alternative per-user configuration file. If a con-
123 figuration file is given on the command line, the system-wide
124 configuration file (/etc/ssh/ssh_config) will be ignored. The
125 default for the per-user configuration file is ~/.ssh/config.
126
127 -f Requests ssh to go to background just before command execution.
128 This is useful if ssh is going to ask for passwords or passphras-
129 es, but the user wants it in the background. This implies -n.
130 The recommended way to start X11 programs at a remote site is
131 with something like ssh -f host xterm.
132
133 If the ExitOnForwardFailure configuration option is set to
134 ``yes'', then a client started with -f will wait for all remote
135 port forwards to be successfully established before placing it-
136 self in the background.
137
138 -g Allows remote hosts to connect to local forwarded ports.
139
140 -I smartcard_device
141 Specify the device ssh should use to communicate with a smartcard
142 used for storing the user's private RSA key. This option is only
143 available if support for smartcard devices is compiled in (de-
144 fault is no support).
145
146 -i identity_file
147 Selects a file from which the identity (private key) for RSA or
148 DSA authentication is read. The default is ~/.ssh/identity for
149 protocol version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for pro-
150 tocol version 2. Identity files may also be specified on a per-
151 host basis in the configuration file. It is possible to have
152 multiple -i options (and multiple identities specified in config-
153 uration files).
154
155 -K Enables GSSAPI-based authentication and forwarding (delegation)
156 of GSSAPI credentials to the server.
157
158 -k Disables forwarding (delegation) of GSSAPI credentials to the
159 server.
160
161 -L [bind_address:]port:host:hostport
162 Specifies that the given port on the local (client) host is to be
163 forwarded to the given host and port on the remote side. This
164 works by allocating a socket to listen to port on the local side,
165 optionally bound to the specified bind_address. Whenever a con-
166 nection is made to this port, the connection is forwarded over
167 the secure channel, and a connection is made to host port
168 hostport from the remote machine. Port forwardings can also be
169 specified in the configuration file. IPv6 addresses can be spec-
170 ified with an alternative syntax: [bind_address/]port/host/host-
171 port or by enclosing the address in square brackets. Only the
172 superuser can forward privileged ports. By default, the local
173 port is bound in accordance with the GatewayPorts setting. How-
174 ever, an explicit bind_address may be used to bind the connection
175 to a specific address. The bind_address of ``localhost'' indi-
176 cates that the listening port be bound for local use only, while
177 an empty address or `*' indicates that the port should be avail-
178 able from all interfaces.
179
180 -l login_name
181 Specifies the user to log in as on the remote machine. This also
182 may be specified on a per-host basis in the configuration file.
183
184 -M Places the ssh client into ``master'' mode for connection shar-
185 ing. Multiple -M options places ssh into ``master'' mode with
186 confirmation required before slave connections are accepted. Re-
187 fer to the description of ControlMaster in ssh_config(5) for de-
188 tails.
189
190 -m mac_spec
191 Additionally, for protocol version 2 a comma-separated list of
192 MAC (message authentication code) algorithms can be specified in
193 order of preference. See the MACs keyword for more information.
194
195 -N Do not execute a remote command. This is useful for just for-
196 warding ports (protocol version 2 only).
197
198 -n Redirects stdin from /dev/null (actually, prevents reading from
199 stdin). This must be used when ssh is run in the background. A
200 common trick is to use this to run X11 programs on a remote ma-
201 chine. For example, ssh -n shadows.cs.hut.fi emacs & will start
202 an emacs on shadows.cs.hut.fi, and the X11 connection will be au-
203 tomatically forwarded over an encrypted channel. The ssh program
204 will be put in the background. (This does not work if ssh needs
205 to ask for a password or passphrase; see also the -f option.)
206
207 -O ctl_cmd
208 Control an active connection multiplexing master process. When
209 the -O option is specified, the ctl_cmd argument is interpreted
210 and passed to the master process. Valid commands are: ``check''
211 (check that the master process is running) and ``exit'' (request
212 the master to exit).
213
214 -o option
215 Can be used to give options in the format used in the configura-
216 tion file. This is useful for specifying options for which there
217 is no separate command-line flag. For full details of the op-
218 tions listed below, and their possible values, see ssh_config(5).
219
220 AddressFamily
221 BatchMode
222 BindAddress
223 ChallengeResponseAuthentication
224 CheckHostIP
225 Cipher
226 Ciphers
227 ClearAllForwardings
228 Compression
229 CompressionLevel
230 ConnectionAttempts
231 ConnectTimeout
232 ControlMaster
233 ControlPath
234 DynamicForward
235 EscapeChar
236 ExitOnForwardFailure
237 ForwardAgent
238 ForwardX11
239 ForwardX11Trusted
240 GatewayPorts
241 GlobalKnownHostsFile
242 GSSAPIAuthentication
243 GSSAPIDelegateCredentials
244 HashKnownHosts
245 Host
246 HostbasedAuthentication
247 HostKeyAlgorithms
248 HostKeyAlias
249 HostName
250 IdentityFile
251 IdentitiesOnly
252 KbdInteractiveDevices
253 LocalCommand
254 LocalForward
255 LogLevel
256 MACs
257 NoHostAuthenticationForLocalhost
258 NumberOfPasswordPrompts
259 PasswordAuthentication
260 PermitLocalCommand
261 Port
262 PreferredAuthentications
263 Protocol
264 ProxyCommand
265 PubkeyAuthentication
266 RekeyLimit
267 RemoteForward
268 RhostsRSAAuthentication
269 RSAAuthentication
270 SendEnv
271 ServerAliveInterval
272 ServerAliveCountMax
273 SmartcardDevice
274 StrictHostKeyChecking
275 TCPKeepAlive
276 Tunnel
277 TunnelDevice
278 UsePrivilegedPort
279 User
280 UserKnownHostsFile
281 VerifyHostKeyDNS
282 VisualHostKey
283 XAuthLocation
284
285 -p port
286 Port to connect to on the remote host. This can be specified on
287 a per-host basis in the configuration file.
288
289 -q Quiet mode. Causes most warning and diagnostic messages to be
290 suppressed.
291
292 -R [bind_address:]port:host:hostport
293 Specifies that the given port on the remote (server) host is to
294 be forwarded to the given host and port on the local side. This
295 works by allocating a socket to listen to port on the remote
296 side, and whenever a connection is made to this port, the connec-
297 tion is forwarded over the secure channel, and a connection is
298 made to host port hostport from the local machine.
299
300 Port forwardings can also be specified in the configuration file.
301 Privileged ports can be forwarded only when logging in as root on
302 the remote machine. IPv6 addresses can be specified by enclosing
303 the address in square braces or using an alternative syntax:
304 [bind_address/]host/port/hostport.
305
306 By default, the listening socket on the server will be bound to
307 the loopback interface only. This may be overriden by specifying
308 a bind_address. An empty bind_address, or the address `*', indi-
309 cates that the remote socket should listen on all interfaces.
310 Specifying a remote bind_address will only succeed if the serv-
311 er's GatewayPorts option is enabled (see sshd_config(5)).
312
313 -S ctl_path
314 Specifies the location of a control socket for connection shar-
315 ing. Refer to the description of ControlPath and ControlMaster
316 in ssh_config(5) for details.
317
318 -s May be used to request invocation of a subsystem on the remote
319 system. Subsystems are a feature of the SSH2 protocol which fa-
320 cilitate the use of SSH as a secure transport for other applica-
321 tions (eg. sftp(1)). The subsystem is specified as the remote
322 command.
323
324 -T Disable pseudo-tty allocation.
325
326 -t Force pseudo-tty allocation. This can be used to execute arbi-
327 trary screen-based programs on a remote machine, which can be
328 very useful, e.g. when implementing menu services. Multiple -t
329 options force tty allocation, even if ssh has no local tty.
330
331 -V Display the version number and exit.
332
333 -v Verbose mode. Causes ssh to print debugging messages about its
334 progress. This is helpful in debugging connection, authentica-
335 tion, and configuration problems. Multiple -v options increase
336 the verbosity. The maximum is 3.
337
338 -w local_tun[:remote_tun]
339 Requests tunnel device forwarding with the specified tun(4) de-
340 vices between the client (local_tun) and the server (remote_tun).
341
342 The devices may be specified by numerical ID or the keyword
343 ``any'', which uses the next available tunnel device. If
344 remote_tun is not specified, it defaults to ``any''. See also
345 the Tunnel and TunnelDevice directives in ssh_config(5). If the
346 Tunnel directive is unset, it is set to the default tunnel mode,
347 which is ``point-to-point''.
348
349 -X Enables X11 forwarding. This can also be specified on a per-host
350 basis in a configuration file.
351
352 X11 forwarding should be enabled with caution. Users with the
353 ability to bypass file permissions on the remote host (for the
354 user's X authorization database) can access the local X11 display
355 through the forwarded connection. An attacker may then be able
356 to perform activities such as keystroke monitoring.
357
358 For this reason, X11 forwarding is subjected to X11 SECURITY ex-
359 tension restrictions by default. Please refer to the ssh -Y op-
360 tion and the ForwardX11Trusted directive in ssh_config(5) for
361 more information.
362
363 -x Disables X11 forwarding.
364
365 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
366 subjected to the X11 SECURITY extension controls.
367
368 ssh may additionally obtain configuration data from a per-user configura-
369 tion file and a system-wide configuration file. The file format and con-
370 figuration options are described in ssh_config(5).
371
372 ssh exits with the exit status of the remote command or with 255 if an
373 error occurred.
374
375AUTHENTICATION
376 The OpenSSH SSH client supports SSH protocols 1 and 2. Protocol 2 is the
377 default, with ssh falling back to protocol 1 if it detects protocol 2 is
378 unsupported. These settings may be altered using the Protocol option in
379 ssh_config(5), or enforced using the -1 and -2 options (see above). Both
380 protocols support similar authentication methods, but protocol 2 is pre-
381 ferred since it provides additional mechanisms for confidentiality (the
382 traffic is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and
383 integrity (hmac-md5, hmac-sha1, umac-64, hmac-ripemd160). Protocol 1
384 lacks a strong mechanism for ensuring the integrity of the connection.
385
386 The methods available for authentication are: GSSAPI-based authentica-
387 tion, host-based authentication, public key authentication, challenge-re-
388 sponse authentication, and password authentication. Authentication meth-
389 ods are tried in the order specified above, though protocol 2 has a con-
390 figuration option to change the default order: PreferredAuthentications.
391
392 Host-based authentication works as follows: If the machine the user logs
393 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
394 machine, and the user names are the same on both sides, or if the files
395 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
396 machine and contain a line containing the name of the client machine and
397 the name of the user on that machine, the user is considered for login.
398 Additionally, the server must be able to verify the client's host key
399 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
400 below) for login to be permitted. This authentication method closes se-
401 curity holes due to IP spoofing, DNS spoofing, and routing spoofing.
402 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
403 rlogin/rsh protocol in general, are inherently insecure and should be
404 disabled if security is desired.]
405
406 Public key authentication works as follows: The scheme is based on pub-
407 lic-key cryptography, using cryptosystems where encryption and decryption
408 are done using separate keys, and it is unfeasible to derive the decryp-
409 tion key from the encryption key. The idea is that each user creates a
410 public/private key pair for authentication purposes. The server knows
411 the public key, and only the user knows the private key. ssh implements
412 public key authentication protocol automatically, using either the RSA or
413 DSA algorithms. Protocol 1 is restricted to using only RSA keys, but
414 protocol 2 may use either. The HISTORY section of ssl(8) contains a
415 brief discussion of the two algorithms.
416
417 The file ~/.ssh/authorized_keys lists the public keys that are permitted
418 for logging in. When the user logs in, the ssh program tells the server
419 which key pair it would like to use for authentication. The client
420 proves that it has access to the private key and the server checks that
421 the corresponding public key is authorized to accept the account.
422
423 The user creates his/her key pair by running ssh-keygen(1). This stores
424 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
425 2 DSA), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in
426 ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA), or
427 ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home directory. The us-
428 er should then copy the public key to ~/.ssh/authorized_keys in his/her
429 home directory on the remote machine. The authorized_keys file corre-
430 sponds to the conventional ~/.rhosts file, and has one key per line,
431 though the lines can be very long. After this, the user can log in with-
432 out giving the password.
433
434 The most convenient way to use public key authentication may be with an
435 authentication agent. See ssh-agent(1) for more information.
436
437 Challenge-response authentication works as follows: The server sends an
438 arbitrary "challenge" text, and prompts for a response. Protocol 2 al-
439 lows multiple challenges and responses; protocol 1 is restricted to just
440 one challenge/response. Examples of challenge-response authentication
441 include BSD Authentication (see login.conf(5)) and PAM (some non-OpenBSD
442 systems).
443
444 Finally, if other authentication methods fail, ssh prompts the user for a
445 password. The password is sent to the remote host for checking; however,
446 since all communications are encrypted, the password cannot be seen by
447 someone listening on the network.
448
449 ssh automatically maintains and checks a database containing identifica-
450 tion for all hosts it has ever been used with. Host keys are stored in
451 ~/.ssh/known_hosts in the user's home directory. Additionally, the file
452 /etc/ssh/ssh_known_hosts is automatically checked for known hosts. Any
453 new hosts are automatically added to the user's file. If a host's iden-
454 tification ever changes, ssh warns about this and disables password au-
455 thentication to prevent server spoofing or man-in-the-middle attacks,
456 which could otherwise be used to circumvent the encryption. The
457 StrictHostKeyChecking option can be used to control logins to machines
458 whose host key is not known or has changed.
459
460 When the user's identity has been accepted by the server, the server ei-
461 ther executes the given command, or logs into the machine and gives the
462 user a normal shell on the remote machine. All communication with the
463 remote command or shell will be automatically encrypted.
464
465 If a pseudo-terminal has been allocated (normal login session), the user
466 may use the escape characters noted below.
467
468 If no pseudo-tty has been allocated, the session is transparent and can
469 be used to reliably transfer binary data. On most systems, setting the
470 escape character to ``none'' will also make the session transparent even
471 if a tty is used.
472
473 The session terminates when the command or shell on the remote machine
474 exits and all X11 and TCP connections have been closed.
475
476ESCAPE CHARACTERS
477 When a pseudo-terminal has been requested, ssh supports a number of func-
478 tions through the use of an escape character.
479
480 A single tilde character can be sent as ~~ or by following the tilde by a
481 character other than those described below. The escape character must
482 always follow a newline to be interpreted as special. The escape charac-
483 ter can be changed in configuration files using the EscapeChar configura-
484 tion directive or on the command line by the -e option.
485
486 The supported escapes (assuming the default `~') are:
487
488 ~. Disconnect.
489
490 ~^Z Background ssh.
491
492 ~# List forwarded connections.
493
494 ~& Background ssh at logout when waiting for forwarded connection /
495 X11 sessions to terminate.
496
497 ~? Display a list of escape characters.
498
499 ~B Send a BREAK to the remote system (only useful for SSH protocol
500 version 2 and if the peer supports it).
501
502 ~C Open command line. Currently this allows the addition of port
503 forwardings using the -L and -R options (see above). It also al-
504 lows the cancellation of existing remote port-forwardings using
505 -KR[bind_address:]port. !command allows the user to execute a
506 local command if the PermitLocalCommand option is enabled in
507 ssh_config(5). Basic help is available, using the -h option.
508
509 ~R Request rekeying of the connection (only useful for SSH protocol
510 version 2 and if the peer supports it).
511
512TCP FORWARDING
513 Forwarding of arbitrary TCP connections over the secure channel can be
514 specified either on the command line or in a configuration file. One
515 possible application of TCP forwarding is a secure connection to a mail
516 server; another is going through firewalls.
517
518 In the example below, we look at encrypting communication between an IRC
519 client and server, even though the IRC server does not directly support
520 encrypted communications. This works as follows: the user connects to
521 the remote host using ssh, specifying a port to be used to forward con-
522 nections to the remote server. After that it is possible to start the
523 service which is to be encrypted on the client machine, connecting to the
524 same local port, and ssh will encrypt and forward the connection.
525
526 The following example tunnels an IRC session from client machine
527 ``127.0.0.1'' (localhost) to remote server ``server.example.com'':
528
529 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
530 $ irc -c '#users' -p 1234 pinky 127.0.0.1
531
532 This tunnels a connection to IRC server ``server.example.com'', joining
533 channel ``#users'', nickname ``pinky'', using port 1234. It doesn't mat-
534 ter which port is used, as long as it's greater than 1023 (remember, only
535 root can open sockets on privileged ports) and doesn't conflict with any
536 ports already in use. The connection is forwarded to port 6667 on the
537 remote server, since that's the standard port for IRC services.
538
539 The -f option backgrounds ssh and the remote command ``sleep 10'' is
540 specified to allow an amount of time (10 seconds, in the example) to
541 start the service which is to be tunnelled. If no connections are made
542 within the time specified, ssh will exit.
543
544X11 FORWARDING
545 If the ForwardX11 variable is set to ``yes'' (or see the description of
546 the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
547 environment variable is set), the connection to the X11 display is auto-
548 matically forwarded to the remote side in such a way that any X11 pro-
549 grams started from the shell (or command) will go through the encrypted
550 channel, and the connection to the real X server will be made from the
551 local machine. The user should not manually set DISPLAY. Forwarding of
552 X11 connections can be configured on the command line or in configuration
553 files.
554
555 The DISPLAY value set by ssh will point to the server machine, but with a
556 display number greater than zero. This is normal, and happens because
557 ssh creates a ``proxy'' X server on the server machine for forwarding the
558 connections over the encrypted channel.
559
560 ssh will also automatically set up Xauthority data on the server machine.
561 For this purpose, it will generate a random authorization cookie, store
562 it in Xauthority on the server, and verify that any forwarded connections
563 carry this cookie and replace it by the real cookie when the connection
564 is opened. The real authentication cookie is never sent to the server
565 machine (and no cookies are sent in the plain).
566
567 If the ForwardAgent variable is set to ``yes'' (or see the description of
568 the -A and -a options above) and the user is using an authentication
569 agent, the connection to the agent is automatically forwarded to the re-
570 mote side.
571
572VERIFYING HOST KEYS
573 When connecting to a server for the first time, a fingerprint of the
574 server's public key is presented to the user (unless the option
575 StrictHostKeyChecking has been disabled). Fingerprints can be determined
576 using ssh-keygen(1):
577
578 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
579
580 If the fingerprint is already known, it can be matched and the key can be
581 accepted or rejected. Because of the difficulty of comparing host keys
582 just by looking at hex strings, there is also support to compare host
583 keys visually, using random art. By setting the VisualHostKey option to
584 ``yes'', a small ASCII graphic gets displayed on every login to a server,
585 no matter if the session itself is interactive or not. By learning the
586 pattern a known server produces, a user can easily find out that the host
587 key has changed when a completely different pattern is displayed. Be-
588 cause these patterns are not unambiguous however, a pattern that looks
589 similar to the pattern remembered only gives a good probability that the
590 host key is the same, not guaranteed proof.
591
592 To get a listing of the fingerprints along with their random art for all
593 known hosts, the following command line can be used:
594
595 $ ssh-keygen -lv -f ~/.ssh/known_hosts
596
597 If the fingerprint is unknown, an alternative method of verification is
598 available: SSH fingerprints verified by DNS. An additional resource
599 record (RR), SSHFP, is added to a zonefile and the connecting client is
600 able to match the fingerprint with that of the key presented.
601
602 In this example, we are connecting a client to a server,
603 ``host.example.com''. The SSHFP resource records should first be added
604 to the zonefile for host.example.com:
605
606 $ ssh-keygen -r host.example.com.
607
608 The output lines will have to be added to the zonefile. To check that
609 the zone is answering fingerprint queries:
610
611 $ dig -t SSHFP host.example.com
612
613 Finally the client connects:
614
615 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
616 [...]
617 Matching host key fingerprint found in DNS.
618 Are you sure you want to continue connecting (yes/no)?
619
620 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
621
622SSH-BASED VIRTUAL PRIVATE NETWORKS
623 ssh contains support for Virtual Private Network (VPN) tunnelling using
624 the tun(4) network pseudo-device, allowing two networks to be joined se-
625 curely. The sshd_config(5) configuration option PermitTunnel controls
626 whether the server supports this, and at what level (layer 2 or 3 traf-
627 fic).
628
629 The following example would connect client network 10.0.50.0/24 with re-
630 mote network 10.0.99.0/24 using a point-to-point connection from 10.1.1.1
631 to 10.1.1.2, provided that the SSH server running on the gateway to the
632 remote network, at 192.168.1.15, allows it.
633
634 On the client:
635
636 # ssh -f -w 0:1 192.168.1.15 true
637 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
638 # route add 10.0.99.0/24 10.1.1.2
639
640 On the server:
641
642 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
643 # route add 10.0.50.0/24 10.1.1.1
644
645 Client access may be more finely tuned via the /root/.ssh/authorized_keys
646 file (see below) and the PermitRootLogin server option. The following
647 entry would permit connections on tun(4) device 1 from user ``jane'' and
648 on tun device 2 from user ``john'', if PermitRootLogin is set to
649 ``forced-commands-only'':
650
651 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
652 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
653
654 Since an SSH-based setup entails a fair amount of overhead, it may be
655 more suited to temporary setups, such as for wireless VPNs. More perma-
656 nent VPNs are better provided by tools such as ipsecctl(8) and
657 isakmpd(8).
658
659ENVIRONMENT
660 ssh will normally set the following environment variables:
661
662 DISPLAY The DISPLAY variable indicates the location of the
663 X11 server. It is automatically set by ssh to
664 point to a value of the form ``hostname:n'', where
665 ``hostname'' indicates the host where the shell
666 runs, and `n' is an integer >= 1. ssh uses this
667 special value to forward X11 connections over the
668 secure channel. The user should normally not set
669 DISPLAY explicitly, as that will render the X11
670 connection insecure (and will require the user to
671 manually copy any required authorization cookies).
672
673 HOME Set to the path of the user's home directory.
674
675 LOGNAME Synonym for USER; set for compatibility with sys-
676 tems that use this variable.
677
678 MAIL Set to the path of the user's mailbox.
679
680 PATH Set to the default PATH, as specified when compil-
681 ing ssh.
682
683 SSH_ASKPASS If ssh needs a passphrase, it will read the
684 passphrase from the current terminal if it was run
685 from a terminal. If ssh does not have a terminal
686 associated with it but DISPLAY and SSH_ASKPASS are
687 set, it will execute the program specified by
688 SSH_ASKPASS and open an X11 window to read the
689 passphrase. This is particularly useful when call-
690 ing ssh from a .xsession or related script. (Note
691 that on some machines it may be necessary to redi-
692 rect the input from /dev/null to make this work.)
693
694 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
695 communicate with the agent.
696
697 SSH_CONNECTION Identifies the client and server ends of the con-
698 nection. The variable contains four space-separat-
699 ed values: client IP address, client port number,
700 server IP address, and server port number.
701
702 SSH_ORIGINAL_COMMAND This variable contains the original command line if
703 a forced command is executed. It can be used to
704 extract the original arguments.
705
706 SSH_TTY This is set to the name of the tty (path to the de-
707 vice) associated with the current shell or command.
708 If the current session has no tty, this variable is
709 not set.
710
711 TZ This variable is set to indicate the present time
712 zone if it was set when the daemon was started
713 (i.e. the daemon passes the value on to new connec-
714 tions).
715
716 USER Set to the name of the user logging in.
717
718 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
719 ``VARNAME=value'' to the environment if the file exists and users are al-
720 lowed to change their environment. For more information, see the
721 PermitUserEnvironment option in sshd_config(5).
722
723FILES
724 ~/.rhosts
725 This file is used for host-based authentication (see above). On
726 some machines this file may need to be world-readable if the us-
727 er's home directory is on an NFS partition, because sshd(8) reads
728 it as root. Additionally, this file must be owned by the user,
729 and must not have write permissions for anyone else. The recom-
730 mended permission for most machines is read/write for the user,
731 and not accessible by others.
732
733 ~/.shosts
734 This file is used in exactly the same way as .rhosts, but allows
735 host-based authentication without permitting login with
736 rlogin/rsh.
737
738 ~/.ssh/
739 This directory is the default location for all user-specific con-
740 figuration and authentication information. There is no general
741 requirement to keep the entire contents of this directory secret,
742 but the recommended permissions are read/write/execute for the
743 user, and not accessible by others.
744
745 ~/.ssh/authorized_keys
746 Lists the public keys (RSA/DSA) that can be used for logging in
747 as this user. The format of this file is described in the
748 sshd(8) manual page. This file is not highly sensitive, but the
749 recommended permissions are read/write for the user, and not ac-
750 cessible by others.
751
752 ~/.ssh/config
753 This is the per-user configuration file. The file format and
754 configuration options are described in ssh_config(5). Because of
755 the potential for abuse, this file must have strict permissions:
756 read/write for the user, and not accessible by others.
757
758 ~/.ssh/environment
759 Contains additional definitions for environment variables; see
760 ENVIRONMENT, above.
761
762 ~/.ssh/identity
763 ~/.ssh/id_dsa
764 ~/.ssh/id_rsa
765 Contains the private key for authentication. These files contain
766 sensitive data and should be readable by the user but not acces-
767 sible by others (read/write/execute). ssh will simply ignore a
768 private key file if it is accessible by others. It is possible
769 to specify a passphrase when generating the key which will be
770 used to encrypt the sensitive part of this file using 3DES.
771
772 ~/.ssh/identity.pub
773 ~/.ssh/id_dsa.pub
774 ~/.ssh/id_rsa.pub
775 Contains the public key for authentication. These files are not
776 sensitive and can (but need not) be readable by anyone.
777
778 ~/.ssh/known_hosts
779 Contains a list of host keys for all hosts the user has logged
780 into that are not already in the systemwide list of known host
781 keys. See sshd(8) for further details of the format of this
782 file.
783
784 ~/.ssh/rc
785 Commands in this file are executed by ssh when the user logs in,
786 just before the user's shell (or command) is started. See the
787 sshd(8) manual page for more information.
788
789 /etc/hosts.equiv
790 This file is for host-based authentication (see above). It
791 should only be writable by root.
792
793 /etc/shosts.equiv
794 This file is used in exactly the same way as hosts.equiv, but al-
795 lows host-based authentication without permitting login with
796 rlogin/rsh.
797
798 /etc/ssh/ssh_config
799 Systemwide configuration file. The file format and configuration
800 options are described in ssh_config(5).
801
802 /etc/ssh/ssh_host_key
803 /etc/ssh/ssh_host_dsa_key
804 /etc/ssh/ssh_host_rsa_key
805 These three files contain the private parts of the host keys and
806 are used for host-based authentication. If protocol version 1 is
807 used, ssh must be setuid root, since the host key is readable on-
808 ly by root. For protocol version 2, ssh uses ssh-keysign(8) to
809 access the host keys, eliminating the requirement that ssh be se-
810 tuid root when host-based authentication is used. By default ssh
811 is not setuid root.
812
813 /etc/ssh/ssh_known_hosts
814 Systemwide list of known host keys. This file should be prepared
815 by the system administrator to contain the public host keys of
816 all machines in the organization. It should be world-readable.
817 See sshd(8) for further details of the format of this file.
818
819 /etc/ssh/sshrc
820 Commands in this file are executed by ssh when the user logs in,
821 just before the user's shell (or command) is started. See the
822 sshd(8) manual page for more information.
823
824SEE ALSO
825 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
826 tun(4), hosts.equiv(5), ssh_config(5), ssh-keysign(8), sshd(8)
827
828 The Secure Shell (SSH) Protocol Assigned Numbers, RFC 4250, 2006.
829
830 The Secure Shell (SSH) Protocol Architecture, RFC 4251, 2006.
831
832 The Secure Shell (SSH) Authentication Protocol, RFC 4252, 2006.
833
834 The Secure Shell (SSH) Transport Layer Protocol, RFC 4253, 2006.
835
836 The Secure Shell (SSH) Connection Protocol, RFC 4254, 2006.
837
838 Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints, RFC
839 4255, 2006.
840
841 Generic Message Exchange Authentication for the Secure Shell Protocol
842 (SSH), RFC 4256, 2006.
843
844 The Secure Shell (SSH) Session Channel Break Extension, RFC 4335, 2006.
845
846 The Secure Shell (SSH) Transport Layer Encryption Modes, RFC 4344, 2006.
847
848 Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer
849 Protocol, RFC 4345, 2006.
850
851 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
852 Protocol, RFC 4419, 2006.
853
854 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
855
856 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
857 Real-World Security, 1999, International Workshop on Cryptographic
858 Techniques and E-Commerce (CrypTEC '99).
859
860AUTHORS
861 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
862 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
863 de Raadt and Dug Song removed many bugs, re-added newer features and
864 created OpenSSH. Markus Friedl contributed the support for SSH protocol
865 versions 1.5 and 2.0.
866
867OpenBSD 4.4 July 2, 2008 14
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..e2e645854
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,665 @@
1SSH_CONFIG(5) OpenBSD Programmer's Manual SSH_CONFIG(5)
2
3NAME
4 ssh_config - OpenSSH SSH client configuration files
5
6SYNOPSIS
7 ~/.ssh/config
8 /etc/ssh/ssh_config
9
10DESCRIPTION
11 ssh(1) obtains configuration data from the following sources in the fol-
12 lowing order:
13
14 1. command-line options
15 2. user's configuration file (~/.ssh/config)
16 3. system-wide configuration file (/etc/ssh/ssh_config)
17
18 For each parameter, the first obtained value will be used. The configu-
19 ration files contain sections separated by ``Host'' specifications, and
20 that section is only applied for hosts that match one of the patterns
21 given in the specification. The matched host name is the one given on
22 the command line.
23
24 Since the first obtained value for each parameter is used, more host-spe-
25 cific declarations should be given near the beginning of the file, and
26 general defaults at the end.
27
28 The configuration file has the following format:
29
30 Empty lines and lines starting with `#' are comments. Otherwise a line
31 is of the format ``keyword arguments''. Configuration options may be
32 separated by whitespace or optional whitespace and exactly one `='; the
33 latter format is useful to avoid the need to quote whitespace when speci-
34 fying configuration options using the ssh, scp, and sftp -o option. Ar-
35 guments may optionally be enclosed in double quotes (") in order to rep-
36 resent arguments containing spaces.
37
38 The possible keywords and their meanings are as follows (note that key-
39 words are case-insensitive and arguments are case-sensitive):
40
41 Host Restricts the following declarations (up to the next Host key-
42 word) to be only for those hosts that match one of the patterns
43 given after the keyword. If more than one pattern is provided,
44 they should be separated by whitepsace. A single `*' as a pat-
45 tern can be used to provide global defaults for all hosts. The
46 host is the hostname argument given on the command line (i.e. the
47 name is not converted to a canonicalized host name before match-
48 ing).
49
50 See PATTERNS for more information on patterns.
51
52 AddressFamily
53 Specifies which address family to use when connecting. Valid ar-
54 guments are ``any'', ``inet'' (use IPv4 only), or ``inet6'' (use
55 IPv6 only).
56
57 BatchMode
58 If set to ``yes'', passphrase/password querying will be disabled.
59 This option is useful in scripts and other batch jobs where no
60 user is present to supply the password. The argument must be
61 ``yes'' or ``no''. The default is ``no''.
62
63 BindAddress
64 Use the specified address on the local machine as the source ad-
65 dress of the connection. Only useful on systems with more than
66 one address. Note that this option does not work if
67 UsePrivilegedPort is set to ``yes''.
68
69 ChallengeResponseAuthentication
70 Specifies whether to use challenge-response authentication. The
71 argument to this keyword must be ``yes'' or ``no''. The default
72 is ``yes''.
73
74 CheckHostIP
75 If this flag is set to ``yes'', ssh(1) will additionally check
76 the host IP address in the known_hosts file. This allows ssh to
77 detect if a host key changed due to DNS spoofing. If the option
78 is set to ``no'', the check will not be executed. The default is
79 ``yes''.
80
81 Cipher Specifies the cipher to use for encrypting the session in proto-
82 col version 1. Currently, ``blowfish'', ``3des'', and ``des''
83 are supported. des is only supported in the ssh(1) client for
84 interoperability with legacy protocol 1 implementations that do
85 not support the 3des cipher. Its use is strongly discouraged due
86 to cryptographic weaknesses. The default is ``3des''.
87
88 Ciphers
89 Specifies the ciphers allowed for protocol version 2 in order of
90 preference. Multiple ciphers must be comma-separated. The sup-
91 ported ciphers are ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'',
92 ``aes256-cbc'', ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'',
93 ``arcfour128'', ``arcfour256'', ``arcfour'', ``blowfish-cbc'',
94 and ``cast128-cbc''. The default is:
95
96 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,
97 arcfour256,arcfour,aes192-cbc,aes256-cbc,aes128-ctr,
98 aes192-ctr,aes256-ctr
99
100 ClearAllForwardings
101 Specifies that all local, remote, and dynamic port forwardings
102 specified in the configuration files or on the command line be
103 cleared. This option is primarily useful when used from the
104 ssh(1) command line to clear port forwardings set in configura-
105 tion files, and is automatically set by scp(1) and sftp(1). The
106 argument must be ``yes'' or ``no''. The default is ``no''.
107
108 Compression
109 Specifies whether to use compression. The argument must be
110 ``yes'' or ``no''. The default is ``no''.
111
112 CompressionLevel
113 Specifies the compression level to use if compression is enabled.
114 The argument must be an integer from 1 (fast) to 9 (slow, best).
115 The default level is 6, which is good for most applications. The
116 meaning of the values is the same as in gzip(1). Note that this
117 option applies to protocol version 1 only.
118
119 ConnectionAttempts
120 Specifies the number of tries (one per second) to make before ex-
121 iting. The argument must be an integer. This may be useful in
122 scripts if the connection sometimes fails. The default is 1.
123
124 ConnectTimeout
125 Specifies the timeout (in seconds) used when connecting to the
126 SSH server, instead of using the default system TCP timeout.
127 This value is used only when the target is down or really un-
128 reachable, not when it refuses the connection.
129
130 ControlMaster
131 Enables the sharing of multiple sessions over a single network
132 connection. When set to ``yes'', ssh(1) will listen for connec-
133 tions on a control socket specified using the ControlPath argu-
134 ment. Additional sessions can connect to this socket using the
135 same ControlPath with ControlMaster set to ``no'' (the default).
136 These sessions will try to reuse the master instance's network
137 connection rather than initiating new ones, but will fall back to
138 connecting normally if the control socket does not exist, or is
139 not listening.
140
141 Setting this to ``ask'' will cause ssh to listen for control con-
142 nections, but require confirmation using the SSH_ASKPASS program
143 before they are accepted (see ssh-add(1) for details). If the
144 ControlPath cannot be opened, ssh will continue without connect-
145 ing to a master instance.
146
147 X11 and ssh-agent(1) forwarding is supported over these multi-
148 plexed connections, however the display and agent forwarded will
149 be the one belonging to the master connection i.e. it is not pos-
150 sible to forward multiple displays or agents.
151
152 Two additional options allow for opportunistic multiplexing: try
153 to use a master connection but fall back to creating a new one if
154 one does not already exist. These options are: ``auto'' and
155 ``autoask''. The latter requires confirmation like the ``ask''
156 option.
157
158 ControlPath
159 Specify the path to the control socket used for connection shar-
160 ing as described in the ControlMaster section above or the string
161 ``none'' to disable connection sharing. In the path, `%l' will
162 be substituted by the local host name, `%h' will be substituted
163 by the target host name, `%p' the port, and `%r' by the remote
164 login username. It is recommended that any ControlPath used for
165 opportunistic connection sharing include at least %h, %p, and %r.
166 This ensures that shared connections are uniquely identified.
167
168 DynamicForward
169 Specifies that a TCP port on the local machine be forwarded over
170 the secure channel, and the application protocol is then used to
171 determine where to connect to from the remote machine.
172
173 The argument must be [bind_address:]port. IPv6 addresses can be
174 specified by enclosing addresses in square brackets or by using
175 an alternative syntax: [bind_address/]port. By default, the lo-
176 cal port is bound in accordance with the GatewayPorts setting.
177 However, an explicit bind_address may be used to bind the connec-
178 tion to a specific address. The bind_address of ``localhost''
179 indicates that the listening port be bound for local use only,
180 while an empty address or `*' indicates that the port should be
181 available from all interfaces.
182
183 Currently the SOCKS4 and SOCKS5 protocols are supported, and
184 ssh(1) will act as a SOCKS server. Multiple forwardings may be
185 specified, and additional forwardings can be given on the command
186 line. Only the superuser can forward privileged ports.
187
188 EnableSSHKeysign
189 Setting this option to ``yes'' in the global client configuration
190 file /etc/ssh/ssh_config enables the use of the helper program
191 ssh-keysign(8) during HostbasedAuthentication. The argument must
192 be ``yes'' or ``no''. The default is ``no''. This option should
193 be placed in the non-hostspecific section. See ssh-keysign(8)
194 for more information.
195
196 EscapeChar
197 Sets the escape character (default: `~'). The escape character
198 can also be set on the command line. The argument should be a
199 single character, `^' followed by a letter, or ``none'' to dis-
200 able the escape character entirely (making the connection trans-
201 parent for binary data).
202
203 ExitOnForwardFailure
204 Specifies whether ssh(1) should terminate the connection if it
205 cannot set up all requested dynamic, tunnel, local, and remote
206 port forwardings. The argument must be ``yes'' or ``no''. The
207 default is ``no''.
208
209 ForwardAgent
210 Specifies whether the connection to the authentication agent (if
211 any) will be forwarded to the remote machine. The argument must
212 be ``yes'' or ``no''. The default is ``no''.
213
214 Agent forwarding should be enabled with caution. Users with the
215 ability to bypass file permissions on the remote host (for the
216 agent's Unix-domain socket) can access the local agent through
217 the forwarded connection. An attacker cannot obtain key material
218 from the agent, however they can perform operations on the keys
219 that enable them to authenticate using the identities loaded into
220 the agent.
221
222 ForwardX11
223 Specifies whether X11 connections will be automatically redirect-
224 ed over the secure channel and DISPLAY set. The argument must be
225 ``yes'' or ``no''. The default is ``no''.
226
227 X11 forwarding should be enabled with caution. Users with the
228 ability to bypass file permissions on the remote host (for the
229 user's X11 authorization database) can access the local X11 dis-
230 play through the forwarded connection. An attacker may then be
231 able to perform activities such as keystroke monitoring if the
232 ForwardX11Trusted option is also enabled.
233
234 ForwardX11Trusted
235 If this option is set to ``yes'', remote X11 clients will have
236 full access to the original X11 display.
237
238 If this option is set to ``no'', remote X11 clients will be con-
239 sidered untrusted and prevented from stealing or tampering with
240 data belonging to trusted X11 clients. Furthermore, the xauth(1)
241 token used for the session will be set to expire after 20 min-
242 utes. Remote clients will be refused access after this time.
243
244 The default is ``no''.
245
246 See the X11 SECURITY extension specification for full details on
247 the restrictions imposed on untrusted clients.
248
249 GatewayPorts
250 Specifies whether remote hosts are allowed to connect to local
251 forwarded ports. By default, ssh(1) binds local port forwardings
252 to the loopback address. This prevents other remote hosts from
253 connecting to forwarded ports. GatewayPorts can be used to spec-
254 ify that ssh should bind local port forwardings to the wildcard
255 address, thus allowing remote hosts to connect to forwarded
256 ports. The argument must be ``yes'' or ``no''. The default is
257 ``no''.
258
259 GlobalKnownHostsFile
260 Specifies a file to use for the global host key database instead
261 of /etc/ssh/ssh_known_hosts.
262
263 GSSAPIAuthentication
264 Specifies whether user authentication based on GSSAPI is allowed.
265 The default is ``no''. Note that this option applies to protocol
266 version 2 only.
267
268 GSSAPIDelegateCredentials
269 Forward (delegate) credentials to the server. The default is
270 ``no''. Note that this option applies to protocol version 2 on-
271 ly.
272
273 HashKnownHosts
274 Indicates that ssh(1) should hash host names and addresses when
275 they are added to ~/.ssh/known_hosts. These hashed names may be
276 used normally by ssh(1) and sshd(8), but they do not reveal iden-
277 tifying information should the file's contents be disclosed. The
278 default is ``no''. Note that existing names and addresses in
279 known hosts files will not be converted automatically, but may be
280 manually hashed using ssh-keygen(1).
281
282 HostbasedAuthentication
283 Specifies whether to try rhosts based authentication with public
284 key authentication. The argument must be ``yes'' or ``no''. The
285 default is ``no''. This option applies to protocol version 2 on-
286 ly and is similar to RhostsRSAAuthentication.
287
288 HostKeyAlgorithms
289 Specifies the protocol version 2 host key algorithms that the
290 client wants to use in order of preference. The default for this
291 option is: ``ssh-rsa,ssh-dss''.
292
293 HostKeyAlias
294 Specifies an alias that should be used instead of the real host
295 name when looking up or saving the host key in the host key
296 database files. This option is useful for tunneling SSH connec-
297 tions or for multiple servers running on a single host.
298
299 HostName
300 Specifies the real host name to log into. This can be used to
301 specify nicknames or abbreviations for hosts. The default is the
302 name given on the command line. Numeric IP addresses are also
303 permitted (both on the command line and in HostName specifica-
304 tions).
305
306 IdentitiesOnly
307 Specifies that ssh(1) should only use the authentication identity
308 files configured in the ssh_config files, even if ssh-agent(1)
309 offers more identities. The argument to this keyword must be
310 ``yes'' or ``no''. This option is intended for situations where
311 ssh-agent offers many different identities. The default is
312 ``no''.
313
314 IdentityFile
315 Specifies a file from which the user's RSA or DSA authentication
316 identity is read. The default is ~/.ssh/identity for protocol
317 version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for protocol ver-
318 sion 2. Additionally, any identities represented by the authen-
319 tication agent will be used for authentication.
320
321 The file name may use the tilde syntax to refer to a user's home
322 directory or one of the following escape characters: `%d' (local
323 user's home directory), `%u' (local user name), `%l' (local host
324 name), `%h' (remote host name) or `%r' (remote user name).
325
326 It is possible to have multiple identity files specified in con-
327 figuration files; all these identities will be tried in sequence.
328
329 KbdInteractiveAuthentication
330 Specifies whether to use keyboard-interactive authentication.
331 The argument to this keyword must be ``yes'' or ``no''. The de-
332 fault is ``yes''.
333
334 KbdInteractiveDevices
335 Specifies the list of methods to use in keyboard-interactive au-
336 thentication. Multiple method names must be comma-separated.
337 The default is to use the server specified list. The methods
338 available vary depending on what the server supports. For an
339 OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'',
340 and ``skey''.
341
342 LocalCommand
343 Specifies a command to execute on the local machine after suc-
344 cessfully connecting to the server. The command string extends
345 to the end of the line, and is executed with the user's shell.
346 The following escape character substitutions will be performed:
347 `%d' (local user's home directory), `%h' (remote host name), `%l'
348 (local host name), `%n' (host name as provided on the command
349 line), `%p' (remote port), `%r' (remote user name) or `%u' (local
350 user name). This directive is ignored unless PermitLocalCommand
351 has been enabled.
352
353 LocalForward
354 Specifies that a TCP port on the local machine be forwarded over
355 the secure channel to the specified host and port from the remote
356 machine. The first argument must be [bind_address:]port and the
357 second argument must be host:hostport. IPv6 addresses can be
358 specified by enclosing addresses in square brackets or by using
359 an alternative syntax: [bind_address/]port and host/hostport.
360 Multiple forwardings may be specified, and additional forwardings
361 can be given on the command line. Only the superuser can forward
362 privileged ports. By default, the local port is bound in accor-
363 dance with the GatewayPorts setting. However, an explicit
364 bind_address may be used to bind the connection to a specific ad-
365 dress. The bind_address of ``localhost'' indicates that the lis-
366 tening port be bound for local use only, while an empty address
367 or `*' indicates that the port should be available from all in-
368 terfaces.
369
370 LogLevel
371 Gives the verbosity level that is used when logging messages from
372 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO, VER-
373 BOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
374 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
375 higher levels of verbose output.
376
377 MACs Specifies the MAC (message authentication code) algorithms in or-
378 der of preference. The MAC algorithm is used in protocol version
379 2 for data integrity protection. Multiple algorithms must be
380 comma-separated. The default is:
381
382 hmac-md5,hmac-sha1,umac-64@openssh.com,
383 hmac-ripemd160,hmac-sha1-96,hmac-md5-96
384
385 NoHostAuthenticationForLocalhost
386 This option can be used if the home directory is shared across
387 machines. In this case localhost will refer to a different ma-
388 chine on each of the machines and the user will get many warnings
389 about changed host keys. However, this option disables host au-
390 thentication for localhost. The argument to this keyword must be
391 ``yes'' or ``no''. The default is to check the host key for lo-
392 calhost.
393
394 NumberOfPasswordPrompts
395 Specifies the number of password prompts before giving up. The
396 argument to this keyword must be an integer. The default is 3.
397
398 PasswordAuthentication
399 Specifies whether to use password authentication. The argument
400 to this keyword must be ``yes'' or ``no''. The default is
401 ``yes''.
402
403 PermitLocalCommand
404 Allow local command execution via the LocalCommand option or us-
405 ing the !command escape sequence in ssh(1). The argument must be
406 ``yes'' or ``no''. The default is ``no''.
407
408 Port Specifies the port number to connect on the remote host. The de-
409 fault is 22.
410
411 PreferredAuthentications
412 Specifies the order in which the client should try protocol 2 au-
413 thentication methods. This allows a client to prefer one method
414 (e.g. keyboard-interactive) over another method (e.g. password)
415 The default for this option is: ``gssapi-with-mic,hostbased,
416 publickey, keyboard-interactive, password''.
417
418 Protocol
419 Specifies the protocol versions ssh(1) should support in order of
420 preference. The possible values are `1' and `2'. Multiple ver-
421 sions must be comma-separated. The default is ``2,1''. This
422 means that ssh tries version 2 and falls back to version 1 if
423 version 2 is not available.
424
425 ProxyCommand
426 Specifies the command to use to connect to the server. The com-
427 mand string extends to the end of the line, and is executed with
428 the user's shell. In the command string, `%h' will be substitut-
429 ed by the host name to connect and `%p' by the port. The command
430 can be basically anything, and should read from its standard in-
431 put and write to its standard output. It should eventually con-
432 nect an sshd(8) server running on some machine, or execute sshd
433 -i somewhere. Host key management will be done using the Host-
434 Name of the host being connected (defaulting to the name typed by
435 the user). Setting the command to ``none'' disables this option
436 entirely. Note that CheckHostIP is not available for connects
437 with a proxy command.
438
439 This directive is useful in conjunction with nc(1) and its proxy
440 support. For example, the following directive would connect via
441 an HTTP proxy at 192.0.2.0:
442
443 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
444
445 PubkeyAuthentication
446 Specifies whether to try public key authentication. The argument
447 to this keyword must be ``yes'' or ``no''. The default is
448 ``yes''. This option applies to protocol version 2 only.
449
450 RekeyLimit
451 Specifies the maximum amount of data that may be transmitted be-
452 fore the session key is renegotiated. The argument is the number
453 of bytes, with an optional suffix of `K', `M', or `G' to indicate
454 Kilobytes, Megabytes, or Gigabytes, respectively. The default is
455 between `1G' and `4G', depending on the cipher. This option ap-
456 plies to protocol version 2 only.
457
458 RemoteForward
459 Specifies that a TCP port on the remote machine be forwarded over
460 the secure channel to the specified host and port from the local
461 machine. The first argument must be [bind_address:]port and the
462 second argument must be host:hostport. IPv6 addresses can be
463 specified by enclosing addresses in square brackets or by using
464 an alternative syntax: [bind_address/]port and host/hostport.
465 Multiple forwardings may be specified, and additional forwardings
466 can be given on the command line. Only the superuser can forward
467 privileged ports.
468
469 If the bind_address is not specified, the default is to only bind
470 to loopback addresses. If the bind_address is `*' or an empty
471 string, then the forwarding is requested to listen on all inter-
472 faces. Specifying a remote bind_address will only succeed if the
473 server's GatewayPorts option is enabled (see sshd_config(5)).
474
475 RhostsRSAAuthentication
476 Specifies whether to try rhosts based authentication with RSA
477 host authentication. The argument must be ``yes'' or ``no''.
478 The default is ``no''. This option applies to protocol version 1
479 only and requires ssh(1) to be setuid root.
480
481 RSAAuthentication
482 Specifies whether to try RSA authentication. The argument to
483 this keyword must be ``yes'' or ``no''. RSA authentication will
484 only be attempted if the identity file exists, or an authentica-
485 tion agent is running. The default is ``yes''. Note that this
486 option applies to protocol version 1 only.
487
488 SendEnv
489 Specifies what variables from the local environ(7) should be sent
490 to the server. Note that environment passing is only supported
491 for protocol 2. The server must also support it, and the server
492 must be configured to accept these environment variables. Refer
493 to AcceptEnv in sshd_config(5) for how to configure the server.
494 Variables are specified by name, which may contain wildcard char-
495 acters. Multiple environment variables may be separated by
496 whitespace or spread across multiple SendEnv directives. The de-
497 fault is not to send any environment variables.
498
499 See PATTERNS for more information on patterns.
500
501 ServerAliveCountMax
502 Sets the number of server alive messages (see below) which may be
503 sent without ssh(1) receiving any messages back from the server.
504 If this threshold is reached while server alive messages are be-
505 ing sent, ssh will disconnect from the server, terminating the
506 session. It is important to note that the use of server alive
507 messages is very different from TCPKeepAlive (below). The server
508 alive messages are sent through the encrypted channel and there-
509 fore will not be spoofable. The TCP keepalive option enabled by
510 TCPKeepAlive is spoofable. The server alive mechanism is valu-
511 able when the client or server depend on knowing when a connec-
512 tion has become inactive.
513
514 The default value is 3. If, for example, ServerAliveInterval
515 (see below) is set to 15 and ServerAliveCountMax is left at the
516 default, if the server becomes unresponsive, ssh will disconnect
517 after approximately 45 seconds. This option applies to protocol
518 version 2 only.
519
520 ServerAliveInterval
521 Sets a timeout interval in seconds after which if no data has
522 been received from the server, ssh(1) will send a message through
523 the encrypted channel to request a response from the server. The
524 default is 0, indicating that these messages will not be sent to
525 the server. This option applies to protocol version 2 only.
526
527 SmartcardDevice
528 Specifies which smartcard device to use. The argument to this
529 keyword is the device ssh(1) should use to communicate with a
530 smartcard used for storing the user's private RSA key. By de-
531 fault, no device is specified and smartcard support is not acti-
532 vated.
533
534 StrictHostKeyChecking
535 If this flag is set to ``yes'', ssh(1) will never automatically
536 add host keys to the ~/.ssh/known_hosts file, and refuses to con-
537 nect to hosts whose host key has changed. This provides maximum
538 protection against trojan horse attacks, though it can be annoy-
539 ing when the /etc/ssh/ssh_known_hosts file is poorly maintained
540 or when connections to new hosts are frequently made. This op-
541 tion forces the user to manually add all new hosts. If this flag
542 is set to ``no'', ssh will automatically add new host keys to the
543 user known hosts files. If this flag is set to ``ask'', new host
544 keys will be added to the user known host files only after the
545 user has confirmed that is what they really want to do, and ssh
546 will refuse to connect to hosts whose host key has changed. The
547 host keys of known hosts will be verified automatically in all
548 cases. The argument must be ``yes'', ``no'', or ``ask''. The
549 default is ``ask''.
550
551 TCPKeepAlive
552 Specifies whether the system should send TCP keepalive messages
553 to the other side. If they are sent, death of the connection or
554 crash of one of the machines will be properly noticed. However,
555 this means that connections will die if the route is down tem-
556 porarily, and some people find it annoying.
557
558 The default is ``yes'' (to send TCP keepalive messages), and the
559 client will notice if the network goes down or the remote host
560 dies. This is important in scripts, and many users want it too.
561
562 To disable TCP keepalive messages, the value should be set to
563 ``no''.
564
565 Tunnel Request tun(4) device forwarding between the client and the serv-
566 er. The argument must be ``yes'', ``point-to-point'' (layer 3),
567 ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' requests
568 the default tunnel mode, which is ``point-to-point''. The de-
569 fault is ``no''.
570
571 TunnelDevice
572 Specifies the tun(4) devices to open on the client (local_tun)
573 and the server (remote_tun).
574
575 The argument must be local_tun[:remote_tun]. The devices may be
576 specified by numerical ID or the keyword ``any'', which uses the
577 next available tunnel device. If remote_tun is not specified, it
578 defaults to ``any''. The default is ``any:any''.
579
580 UsePrivilegedPort
581 Specifies whether to use a privileged port for outgoing connec-
582 tions. The argument must be ``yes'' or ``no''. The default is
583 ``no''. If set to ``yes'', ssh(1) must be setuid root. Note
584 that this option must be set to ``yes'' for
585 RhostsRSAAuthentication with older servers.
586
587 User Specifies the user to log in as. This can be useful when a dif-
588 ferent user name is used on different machines. This saves the
589 trouble of having to remember to give the user name on the com-
590 mand line.
591
592 UserKnownHostsFile
593 Specifies a file to use for the user host key database instead of
594 ~/.ssh/known_hosts.
595
596 VerifyHostKeyDNS
597 Specifies whether to verify the remote key using DNS and SSHFP
598 resource records. If this option is set to ``yes'', the client
599 will implicitly trust keys that match a secure fingerprint from
600 DNS. Insecure fingerprints will be handled as if this option was
601 set to ``ask''. If this option is set to ``ask'', information on
602 fingerprint match will be displayed, but the user will still need
603 to confirm new host keys according to the StrictHostKeyChecking
604 option. The argument must be ``yes'', ``no'', or ``ask''. The
605 default is ``no''. Note that this option applies to protocol
606 version 2 only.
607
608 See also VERIFYING HOST KEYS in ssh(1).
609
610 VisualHostKey
611 If this flag is set to ``yes'', an ASCII art representation of
612 the remote host key fingerprint is printed additionally to the
613 hex fingerprint string. If this flag is set to ``no'', only the
614 hex fingerprint string will be printed. The default is ``no''.
615
616 XAuthLocation
617 Specifies the full pathname of the xauth(1) program. The default
618 is /usr/X11R6/bin/xauth.
619
620PATTERNS
621 A pattern consists of zero or more non-whitespace characters, `*' (a
622 wildcard that matches zero or more characters), or `?' (a wildcard that
623 matches exactly one character). For example, to specify a set of decla-
624 rations for any host in the ``.co.uk'' set of domains, the following pat-
625 tern could be used:
626
627 Host *.co.uk
628
629 The following pattern would match any host in the 192.168.0.[0-9] network
630 range:
631
632 Host 192.168.0.?
633
634 A pattern-list is a comma-separated list of patterns. Patterns within
635 pattern-lists may be negated by preceding them with an exclamation mark
636 (`!'). For example, to allow a key to be used from anywhere within an
637 organisation except from the ``dialup'' pool, the following entry (in au-
638 thorized_keys) could be used:
639
640 from="!*.dialup.example.com,*.example.com"
641
642FILES
643 ~/.ssh/config
644 This is the per-user configuration file. The format of this file
645 is described above. This file is used by the SSH client. Be-
646 cause of the potential for abuse, this file must have strict per-
647 missions: read/write for the user, and not accessible by others.
648
649 /etc/ssh/ssh_config
650 Systemwide configuration file. This file provides defaults for
651 those values that are not specified in the user's configuration
652 file, and for those users who do not have a configuration file.
653 This file must be world-readable.
654
655SEE ALSO
656 ssh(1)
657
658AUTHORS
659 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
660 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
661 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
662 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
663 versions 1.5 and 2.0.
664
665OpenBSD 4.4 June 26, 2008 11
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..04d64776e
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,575 @@
1SSHD(8) OpenBSD System Manager's Manual SSHD(8)
2
3NAME
4 sshd - OpenSSH SSH daemon
5
6SYNOPSIS
7 sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-f config_file]
8 [-g login_grace_time] [-h host_key_file] [-k key_gen_time]
9 [-o option] [-p port] [-u len]
10
11DESCRIPTION
12 sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these
13 programs replace rlogin(1) and rsh(1), and provide secure encrypted com-
14 munications between two untrusted hosts over an insecure network.
15
16 sshd listens for connections from clients. It is normally started at
17 boot from /etc/rc. It forks a new daemon for each incoming connection.
18 The forked daemons handle key exchange, encryption, authentication, com-
19 mand execution, and data exchange.
20
21 sshd can be configured using command-line options or a configuration file
22 (by default sshd_config(5)); command-line options override values speci-
23 fied in the configuration file. sshd rereads its configuration file when
24 it receives a hangup signal, SIGHUP, by executing itself with the name
25 and options it was started with, e.g. /usr/sbin/sshd.
26
27 The options are as follows:
28
29 -4 Forces sshd to use IPv4 addresses only.
30
31 -6 Forces sshd to use IPv6 addresses only.
32
33 -b bits
34 Specifies the number of bits in the ephemeral protocol version 1
35 server key (default 1024).
36
37 -C connection_spec
38 Specify the connection parameters to use for the -T extended test
39 mode. If provided, any Match directives in the configuration
40 file that would apply to the specified user, host, and address
41 will be set before the configuration is written to standard out-
42 put. The connection parameters are supplied as keyword=value
43 pairs. The keywords are ``user'', ``host'', and ``addr''. All
44 are required and may be supplied in any order, either with multi-
45 ple -C options or as a comma-separated list.
46
47 -D When this option is specified, sshd will not detach and does not
48 become a daemon. This allows easy monitoring of sshd.
49
50 -d Debug mode. The server sends verbose debug output to the system
51 log, and does not put itself in the background. The server also
52 will not fork and will only process one connection. This option
53 is only intended for debugging for the server. Multiple -d op-
54 tions increase the debugging level. Maximum is 3.
55
56 -e When this option is specified, sshd will send the output to the
57 standard error instead of the system log.
58
59 -f config_file
60 Specifies the name of the configuration file. The default is
61 /etc/ssh/sshd_config. sshd refuses to start if there is no con-
62 figuration file.
63
64 -g login_grace_time
65 Gives the grace time for clients to authenticate themselves (de-
66 fault 120 seconds). If the client fails to authenticate the user
67 within this many seconds, the server disconnects and exits. A
68 value of zero indicates no limit.
69
70 -h host_key_file
71 Specifies a file from which a host key is read. This option must
72 be given if sshd is not run as root (as the normal host key files
73 are normally not readable by anyone but root). The default is
74 /etc/ssh/ssh_host_key for protocol version 1, and
75 /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro-
76 tocol version 2. It is possible to have multiple host key files
77 for the different protocol versions and host key algorithms.
78
79 -i Specifies that sshd is being run from inetd(8). sshd is normally
80 not run from inetd because it needs to generate the server key
81 before it can respond to the client, and this may take tens of
82 seconds. Clients would have to wait too long if the key was re-
83 generated every time. However, with small key sizes (e.g. 512)
84 using sshd from inetd may be feasible.
85
86 -k key_gen_time
87 Specifies how often the ephemeral protocol version 1 server key
88 is regenerated (default 3600 seconds, or one hour). The motiva-
89 tion for regenerating the key fairly often is that the key is not
90 stored anywhere, and after about an hour it becomes impossible to
91 recover the key for decrypting intercepted communications even if
92 the machine is cracked into or physically seized. A value of ze-
93 ro indicates that the key will never be regenerated.
94
95 -o option
96 Can be used to give options in the format used in the configura-
97 tion file. This is useful for specifying options for which there
98 is no separate command-line flag. For full details of the op-
99 tions, and their values, see sshd_config(5).
100
101 -p port
102 Specifies the port on which the server listens for connections
103 (default 22). Multiple port options are permitted. Ports speci-
104 fied in the configuration file with the Port option are ignored
105 when a command-line port is specified. Ports specified using the
106 ListenAddress option override command-line ports.
107
108 -q Quiet mode. Nothing is sent to the system log. Normally the be-
109 ginning, authentication, and termination of each connection is
110 logged.
111
112 -T Extended test mode. Check the validity of the configuration
113 file, output the effective configuration to stdout and then exit.
114 Optionally, Match rules may be applied by specifying the connec-
115 tion parameters using one or more -C options.
116
117 -t Test mode. Only check the validity of the configuration file and
118 sanity of the keys. This is useful for updating sshd reliably as
119 configuration options may change.
120
121 -u len This option is used to specify the size of the field in the utmp
122 structure that holds the remote host name. If the resolved host
123 name is longer than len, the dotted decimal value will be used
124 instead. This allows hosts with very long host names that over-
125 flow this field to still be uniquely identified. Specifying -u0
126 indicates that only dotted decimal addresses should be put into
127 the utmp file. -u0 may also be used to prevent sshd from making
128 DNS requests unless the authentication mechanism or configuration
129 requires it. Authentication mechanisms that may require DNS in-
130 clude RhostsRSAAuthentication, HostbasedAuthentication, and using
131 a from="pattern-list" option in a key file. Configuration op-
132 tions that require DNS include using a USER@HOST pattern in
133 AllowUsers or DenyUsers.
134
135AUTHENTICATION
136 The OpenSSH SSH daemon supports SSH protocols 1 and 2. Both protocols
137 are supported by default, though this can be changed via the Protocol op-
138 tion in sshd_config(5). Protocol 2 supports both RSA and DSA keys; pro-
139 tocol 1 only supports RSA keys. For both protocols, each host has a
140 host-specific key, normally 2048 bits, used to identify the host.
141
142 Forward security for protocol 1 is provided through an additional server
143 key, normally 768 bits, generated when the server starts. This key is
144 normally regenerated every hour if it has been used, and is never stored
145 on disk. Whenever a client connects, the daemon responds with its public
146 host and server keys. The client compares the RSA host key against its
147 own database to verify that it has not changed. The client then gener-
148 ates a 256-bit random number. It encrypts this random number using both
149 the host key and the server key, and sends the encrypted number to the
150 server. Both sides then use this random number as a session key which is
151 used to encrypt all further communications in the session. The rest of
152 the session is encrypted using a conventional cipher, currently Blowfish
153 or 3DES, with 3DES being used by default. The client selects the encryp-
154 tion algorithm to use from those offered by the server.
155
156 For protocol 2, forward security is provided through a Diffie-Hellman key
157 agreement. This key agreement results in a shared session key. The rest
158 of the session is encrypted using a symmetric cipher, currently 128-bit
159 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
160 client selects the encryption algorithm to use from those offered by the
161 server. Additionally, session integrity is provided through a crypto-
162 graphic message authentication code (hmac-md5, hmac-sha1, umac-64 or
163 hmac-ripemd160).
164
165 Finally, the server and the client enter an authentication dialog. The
166 client tries to authenticate itself using host-based authentication, pub-
167 lic key authentication, challenge-response authentication, or password
168 authentication.
169
170 Regardless of the authentication type, the account is checked to ensure
171 that it is accessible. An account is not accessible if it is locked,
172 listed in DenyUsers or its group is listed in DenyGroups . The defini-
173 tion of a locked account is system dependant. Some platforms have their
174 own account database (eg AIX) and some modify the passwd field ( `*LK*'
175 on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on Tru64, a
176 leading `*LOCKED*' on FreeBSD and a leading `!' on most Linuxes). If
177 there is a requirement to disable password authentication for the account
178 while allowing still public-key, then the passwd field should be set to
179 something other than these values (eg `NP' or `*NP*' ).
180
181 If the client successfully authenticates itself, a dialog for preparing
182 the session is entered. At this time the client may request things like
183 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP con-
184 nections, or forwarding the authentication agent connection over the se-
185 cure channel.
186
187 After this, the client either requests a shell or execution of a command.
188 The sides then enter session mode. In this mode, either side may send
189 data at any time, and such data is forwarded to/from the shell or command
190 on the server side, and the user terminal in the client side.
191
192 When the user program terminates and all forwarded X11 and other connec-
193 tions have been closed, the server sends command exit status to the
194 client, and both sides exit.
195
196LOGIN PROCESS
197 When a user successfully logs in, sshd does the following:
198
199 1. If the login is on a tty, and no command has been specified,
200 prints last login time and /etc/motd (unless prevented in the
201 configuration file or by ~/.hushlogin; see the FILES section).
202
203 2. If the login is on a tty, records login time.
204
205 3. Checks /etc/nologin; if it exists, prints contents and quits
206 (unless root).
207
208 4. Changes to run with normal user privileges.
209
210 5. Sets up basic environment.
211
212 6. Reads the file ~/.ssh/environment, if it exists, and users are
213 allowed to change their environment. See the
214 PermitUserEnvironment option in sshd_config(5).
215
216 7. Changes to user's home directory.
217
218 8. If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists,
219 runs it; otherwise runs xauth. The ``rc'' files are given the
220 X11 authentication protocol and cookie in standard input. See
221 SSHRC, below.
222
223 9. Runs user's shell or command.
224
225SSHRC
226 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
227 files but before starting the user's shell or command. It must not pro-
228 duce any output on stdout; stderr must be used instead. If X11 forward-
229 ing is in use, it will receive the "proto cookie" pair in its standard
230 input (and DISPLAY in its environment). The script must call xauth(1)
231 because sshd will not run xauth automatically to add X11 cookies.
232
233 The primary purpose of this file is to run any initialization routines
234 which may be needed before the user's home directory becomes accessible;
235 AFS is a particular example of such an environment.
236
237 This file will probably contain some initialization code followed by
238 something similar to:
239
240 if read proto cookie && [ -n "$DISPLAY" ]; then
241 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
242 # X11UseLocalhost=yes
243 echo add unix:`echo $DISPLAY |
244 cut -c11-` $proto $cookie
245 else
246 # X11UseLocalhost=no
247 echo add $DISPLAY $proto $cookie
248 fi | xauth -q -
249 fi
250
251 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
252 exist either, xauth is used to add the cookie.
253
254AUTHORIZED_KEYS FILE FORMAT
255 AuthorizedKeysFile specifies the file containing public keys for public
256 key authentication; if none is specified, the default is
257 ~/.ssh/authorized_keys. Each line of the file contains one key (empty
258 lines and lines starting with a `#' are ignored as comments). Protocol 1
259 public keys consist of the following space-separated fields: options,
260 bits, exponent, modulus, comment. Protocol 2 public key consist of: op-
261 tions, keytype, base64-encoded key, comment. The options field is op-
262 tional; its presence is determined by whether the line starts with a num-
263 ber or not (the options field never starts with a number). The bits, ex-
264 ponent, modulus, and comment fields give the RSA key for protocol version
265 1; the comment field is not used for anything (but may be convenient for
266 the user to identify the key). For protocol version 2 the keytype is
267 ``ssh-dss'' or ``ssh-rsa''.
268
269 Note that lines in this file are usually several hundred bytes long (be-
270 cause of the size of the public key encoding) up to a limit of 8 kilo-
271 bytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
272 kilobits. You don't want to type them in; instead, copy the
273 identity.pub, id_dsa.pub, or the id_rsa.pub file and edit it.
274
275 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
276 2 keys of 768 bits.
277
278 The options (if present) consist of comma-separated option specifica-
279 tions. No spaces are permitted, except within double quotes. The fol-
280 lowing option specifications are supported (note that option keywords are
281 case-insensitive):
282
283 command="command"
284 Specifies that the command is executed whenever this key is used
285 for authentication. The command supplied by the user (if any) is
286 ignored. The command is run on a pty if the client requests a
287 pty; otherwise it is run without a tty. If an 8-bit clean chan-
288 nel is required, one must not request a pty or should specify no-
289 pty. A quote may be included in the command by quoting it with a
290 backslash. This option might be useful to restrict certain pub-
291 lic keys to perform just a specific operation. An example might
292 be a key that permits remote backups but nothing else. Note that
293 the client may specify TCP and/or X11 forwarding unless they are
294 explicitly prohibited. The command originally supplied by the
295 client is available in the SSH_ORIGINAL_COMMAND environment vari-
296 able. Note that this option applies to shell, command or subsys-
297 tem execution.
298
299 environment="NAME=value"
300 Specifies that the string is to be added to the environment when
301 logging in using this key. Environment variables set this way
302 override other default environment values. Multiple options of
303 this type are permitted. Environment processing is disabled by
304 default and is controlled via the PermitUserEnvironment option.
305 This option is automatically disabled if UseLogin is enabled.
306
307 from="pattern-list"
308 Specifies that in addition to public key authentication, either
309 the canonical name of the remote host or its IP address must be
310 present in the comma-separated list of patterns. See PATTERNS in
311 ssh_config(5) for more information on patterns.
312
313 In addition to the wildcard matching that may be applied to host-
314 names or addresses, a from stanza may match IP addressess using
315 CIDR address/masklen notation.
316
317 The purpose of this option is to optionally increase security:
318 public key authentication by itself does not trust the network or
319 name servers or anything (but the key); however, if somebody
320 somehow steals the key, the key permits an intruder to log in
321 from anywhere in the world. This additional option makes using a
322 stolen key more difficult (name servers and/or routers would have
323 to be compromised in addition to just the key).
324
325 no-agent-forwarding
326 Forbids authentication agent forwarding when this key is used for
327 authentication.
328
329 no-port-forwarding
330 Forbids TCP forwarding when this key is used for authentication.
331 Any port forward requests by the client will return an error.
332 This might be used, e.g. in connection with the command option.
333
334 no-pty Prevents tty allocation (a request to allocate a pty will fail).
335
336 no-user-rc
337 Disables execution of ~/.ssh/rc.
338
339 no-X11-forwarding
340 Forbids X11 forwarding when this key is used for authentication.
341 Any X11 forward requests by the client will return an error.
342
343 permitopen="host:port"
344 Limit local ``ssh -L'' port forwarding such that it may only con-
345 nect to the specified host and port. IPv6 addresses can be spec-
346 ified with an alternative syntax: host/port. Multiple permitopen
347 options may be applied separated by commas. No pattern matching
348 is performed on the specified hostnames, they must be literal do-
349 mains or addresses.
350
351 tunnel="n"
352 Force a tun(4) device on the server. Without this option, the
353 next available device will be used if the client requests a tun-
354 nel.
355
356 An example authorized_keys file:
357
358 # Comments allowed at start of line
359 ssh-rsa AAAAB3Nza...LiPk== user@example.net
360 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
361 AAAAB2...19Q== john@example.net
362 command="dump /home",no-pty,no-port-forwarding ssh-dss
363 AAAAC3...51R== example.net
364 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
365 AAAAB5...21S==
366 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
367 jane@example.net
368
369SSH_KNOWN_HOSTS FILE FORMAT
370 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
371 public keys for all known hosts. The global file should be prepared by
372 the administrator (optional), and the per-user file is maintained auto-
373 matically: whenever the user connects from an unknown host, its key is
374 added to the per-user file.
375
376 Each line in these files contains the following fields: hostnames, bits,
377 exponent, modulus, comment. The fields are separated by spaces.
378
379 Hostnames is a comma-separated list of patterns (`*' and `?' act as wild-
380 cards); each pattern in turn is matched against the canonical host name
381 (when authenticating a client) or against the user-supplied name (when
382 authenticating a server). A pattern may also be preceded by `!' to indi-
383 cate negation: if the host name matches a negated pattern, it is not ac-
384 cepted (by that line) even if it matched another pattern on the line. A
385 hostname or address may optionally be enclosed within `[' and `]' brack-
386 ets then followed by `:' and a non-standard port number.
387
388 Alternately, hostnames may be stored in a hashed form which hides host
389 names and addresses should the file's contents be disclosed. Hashed
390 hostnames start with a `|' character. Only one hashed hostname may ap-
391 pear on a single line and none of the above negation or wildcard opera-
392 tors may be applied.
393
394 Bits, exponent, and modulus are taken directly from the RSA host key;
395 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
396 optional comment field continues to the end of the line, and is not used.
397
398 Lines starting with `#' and empty lines are ignored as comments.
399
400 When performing host authentication, authentication is accepted if any
401 matching line has the proper key. It is thus permissible (but not recom-
402 mended) to have several lines or different host keys for the same names.
403 This will inevitably happen when short forms of host names from different
404 domains are put in the file. It is possible that the files contain con-
405 flicting information; authentication is accepted if valid information can
406 be found from either file.
407
408 Note that the lines in these files are typically hundreds of characters
409 long, and you definitely don't want to type in the host keys by hand.
410 Rather, generate them by a script or by taking /etc/ssh/ssh_host_key.pub
411 and adding the host names at the front.
412
413 An example ssh_known_hosts file:
414
415 # Comments allowed at start of line
416 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
417 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
418 # A hashed hostname
419 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
420 AAAA1234.....=
421
422FILES
423 ~/.hushlogin
424 This file is used to suppress printing the last login time and
425 /etc/motd, if PrintLastLog and PrintMotd, respectively, are en-
426 abled. It does not suppress printing of the banner specified by
427 Banner.
428
429 ~/.rhosts
430 This file is used for host-based authentication (see ssh(1) for
431 more information). On some machines this file may need to be
432 world-readable if the user's home directory is on an NFS parti-
433 tion, because sshd reads it as root. Additionally, this file
434 must be owned by the user, and must not have write permissions
435 for anyone else. The recommended permission for most machines is
436 read/write for the user, and not accessible by others.
437
438 ~/.shosts
439 This file is used in exactly the same way as .rhosts, but allows
440 host-based authentication without permitting login with
441 rlogin/rsh.
442
443 ~/.ssh/
444 This directory is the default location for all user-specific con-
445 figuration and authentication information. There is no general
446 requirement to keep the entire contents of this directory secret,
447 but the recommended permissions are read/write/execute for the
448 user, and not accessible by others.
449
450 ~/.ssh/authorized_keys
451 Lists the public keys (RSA/DSA) that can be used for logging in
452 as this user. The format of this file is described above. The
453 content of the file is not highly sensitive, but the recommended
454 permissions are read/write for the user, and not accessible by
455 others.
456
457 If this file, the ~/.ssh directory, or the user's home directory
458 are writable by other users, then the file could be modified or
459 replaced by unauthorized users. In this case, sshd will not al-
460 low it to be used unless the StrictModes option has been set to
461 ``no''. The recommended permissions can be set by executing
462 ``chmod go-w ~/ ~/.ssh ~/.ssh/authorized_keys''.
463
464 ~/.ssh/environment
465 This file is read into the environment at login (if it exists).
466 It can only contain empty lines, comment lines (that start with
467 `#'), and assignment lines of the form name=value. The file
468 should be writable only by the user; it need not be readable by
469 anyone else. Environment processing is disabled by default and
470 is controlled via the PermitUserEnvironment option.
471
472 ~/.ssh/known_hosts
473 Contains a list of host keys for all hosts the user has logged
474 into that are not already in the systemwide list of known host
475 keys. The format of this file is described above. This file
476 should be writable only by root/the owner and can, but need not
477 be, world-readable.
478
479 ~/.ssh/rc
480 Contains initialization routines to be run before the user's home
481 directory becomes accessible. This file should be writable only
482 by the user, and need not be readable by anyone else.
483
484 /etc/hosts.allow
485 /etc/hosts.deny
486 Access controls that should be enforced by tcp-wrappers are de-
487 fined here. Further details are described in hosts_access(5).
488
489 /etc/hosts.equiv
490 This file is for host-based authentication (see ssh(1)). It
491 should only be writable by root.
492
493 /etc/moduli
494 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
495 Exchange". The file format is described in moduli(5).
496
497 /etc/motd
498 See motd(5).
499
500 /etc/nologin
501 If this file exists, sshd refuses to let anyone except root log
502 in. The contents of the file are displayed to anyone trying to
503 log in, and non-root connections are refused. The file should be
504 world-readable.
505
506 /etc/shosts.equiv
507 This file is used in exactly the same way as hosts.equiv, but al-
508 lows host-based authentication without permitting login with
509 rlogin/rsh.
510
511 /etc/ssh/ssh_host_key
512 /etc/ssh/ssh_host_dsa_key
513 /etc/ssh/ssh_host_rsa_key
514 These three files contain the private parts of the host keys.
515 These files should only be owned by root, readable only by root,
516 and not accessible to others. Note that sshd does not start if
517 these files are group/world-accessible.
518
519 /etc/ssh/ssh_host_key.pub
520 /etc/ssh/ssh_host_dsa_key.pub
521 /etc/ssh/ssh_host_rsa_key.pub
522 These three files contain the public parts of the host keys.
523 These files should be world-readable but writable only by root.
524 Their contents should match the respective private parts. These
525 files are not really used for anything; they are provided for the
526 convenience of the user so their contents can be copied to known
527 hosts files. These files are created using ssh-keygen(1).
528
529 /etc/ssh/ssh_known_hosts
530 Systemwide list of known host keys. This file should be prepared
531 by the system administrator to contain the public host keys of
532 all machines in the organization. The format of this file is de-
533 scribed above. This file should be writable only by root/the
534 owner and should be world-readable.
535
536 /etc/ssh/sshd_config
537 Contains configuration data for sshd. The file format and con-
538 figuration options are described in sshd_config(5).
539
540 /etc/ssh/sshrc
541 Similar to ~/.ssh/rc, it can be used to specify machine-specific
542 login-time initializations globally. This file should be
543 writable only by root, and should be world-readable.
544
545 /var/empty
546 chroot(2) directory used by sshd during privilege separation in
547 the pre-authentication phase. The directory should not contain
548 any files and must be owned by root and not group or world-
549 writable.
550
551 /var/run/sshd.pid
552 Contains the process ID of the sshd listening for connections (if
553 there are several daemons running concurrently for different
554 ports, this contains the process ID of the one started last).
555 The content of this file is not sensitive; it can be world-read-
556 able.
557
558SEE ALSO
559 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
560 ssh-keyscan(1), chroot(2), hosts_access(5), login.conf(5), moduli(5),
561 sshd_config(5), inetd(8), sftp-server(8)
562
563AUTHORS
564 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
565 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
566 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
567 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
568 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
569 for privilege separation.
570
571CAVEATS
572 System security is not improved unless rshd, rlogind, and rexecd are dis-
573 abled (thus completely disabling rlogin and rsh into the machine).
574
575OpenBSD 4.4 July 2, 2008 9
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..15a6c9004
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,630 @@
1SSHD_CONFIG(5) OpenBSD Programmer's Manual SSHD_CONFIG(5)
2
3NAME
4 sshd_config - OpenSSH SSH daemon configuration file
5
6SYNOPSIS
7 /etc/ssh/sshd_config
8
9DESCRIPTION
10 sshd(8) reads configuration data from /etc/ssh/sshd_config (or the file
11 specified with -f on the command line). The file contains keyword-argu-
12 ment pairs, one per line. Lines starting with `#' and empty lines are
13 interpreted as comments. Arguments may optionally be enclosed in double
14 quotes (") in order to represent arguments containing spaces.
15
16 The possible keywords and their meanings are as follows (note that key-
17 words are case-insensitive and arguments are case-sensitive):
18
19 AcceptEnv
20 Specifies what environment variables sent by the client will be
21 copied into the session's environ(7). See SendEnv in
22 ssh_config(5) for how to configure the client. Note that envi-
23 ronment passing is only supported for protocol 2. Variables are
24 specified by name, which may contain the wildcard characters `*'
25 and `?'. Multiple environment variables may be separated by
26 whitespace or spread across multiple AcceptEnv directives. Be
27 warned that some environment variables could be used to bypass
28 restricted user environments. For this reason, care should be
29 taken in the use of this directive. The default is not to accept
30 any environment variables.
31
32 AddressFamily
33 Specifies which address family should be used by sshd(8). Valid
34 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
35 (use IPv6 only). The default is ``any''.
36
37 AllowAgentForwarding
38 Specifies whether ssh-agent(1) forwarding is permitted. The de-
39 fault is ``yes''. Note that disabling agent forwarding does not
40 improve security unless users are also denied shell access, as
41 they can always install their own forwarders.
42
43 AllowGroups
44 This keyword can be followed by a list of group name patterns,
45 separated by spaces. If specified, login is allowed only for
46 users whose primary group or supplementary group list matches one
47 of the patterns. Only group names are valid; a numerical group
48 ID is not recognized. By default, login is allowed for all
49 groups. The allow/deny directives are processed in the following
50 order: DenyUsers, AllowUsers, DenyGroups, and finally
51 AllowGroups.
52
53 See PATTERNS in ssh_config(5) for more information on patterns.
54
55 AllowTcpForwarding
56 Specifies whether TCP forwarding is permitted. The default is
57 ``yes''. Note that disabling TCP forwarding does not improve se-
58 curity unless users are also denied shell access, as they can al-
59 ways install their own forwarders.
60
61 AllowUsers
62 This keyword can be followed by a list of user name patterns,
63 separated by spaces. If specified, login is allowed only for us-
64 er names that match one of the patterns. Only user names are
65 valid; a numerical user ID is not recognized. By default, login
66 is allowed for all users. If the pattern takes the form US-
67 ER@HOST then USER and HOST are separately checked, restricting
68 logins to particular users from particular hosts. The allow/deny
69 directives are processed in the following order: DenyUsers,
70 AllowUsers, DenyGroups, and finally AllowGroups.
71
72 See PATTERNS in ssh_config(5) for more information on patterns.
73
74 AuthorizedKeysFile
75 Specifies the file that contains the public keys that can be used
76 for user authentication. AuthorizedKeysFile may contain tokens
77 of the form %T which are substituted during connection setup.
78 The following tokens are defined: %% is replaced by a literal
79 '%', %h is replaced by the home directory of the user being au-
80 thenticated, and %u is replaced by the username of that user.
81 After expansion, AuthorizedKeysFile is taken to be an absolute
82 path or one relative to the user's home directory. The default
83 is ``.ssh/authorized_keys''.
84
85 Banner The contents of the specified file are sent to the remote user
86 before authentication is allowed. If the argument is ``none''
87 then no banner is displayed. This option is only available for
88 protocol version 2. By default, no banner is displayed.
89
90 ChallengeResponseAuthentication
91 Specifies whether challenge-response authentication is allowed.
92 All authentication styles from login.conf(5) are supported. The
93 default is ``yes''.
94
95 ChrootDirectory
96 Specifies a path to chroot(2) to after authentication. This
97 path, and all its components, must be root-owned directories that
98 are not writable by any other user or group.
99
100 The path may contain the following tokens that are expanded at
101 runtime once the connecting user has been authenticated: %% is
102 replaced by a literal '%', %h is replaced by the home directory
103 of the user being authenticated, and %u is replaced by the user-
104 name of that user.
105
106 The ChrootDirectory must contain the necessary files and directo-
107 ries to support the users' session. For an interactive session
108 this requires at least a shell, typically sh(1), and basic /dev
109 nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4),
110 arandom(4) and tty(4) devices. For file transfer sessions using
111 ``sftp'', no additional configuration of the environment is nec-
112 essary if the in-process sftp server is used (see Subsystem for
113 details).
114
115 The default is not to chroot(2).
116
117 Ciphers
118 Specifies the ciphers allowed for protocol version 2. Multiple
119 ciphers must be comma-separated. The supported ciphers are
120 ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', ``aes256-cbc'',
121 ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', ``arcfour128'',
122 ``arcfour256'', ``arcfour'', ``blowfish-cbc'', and
123 ``cast128-cbc''. The default is:
124
125 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,
126 arcfour256,arcfour,aes192-cbc,aes256-cbc,aes128-ctr,
127 aes192-ctr,aes256-ctr
128
129 ClientAliveCountMax
130 Sets the number of client alive messages (see below) which may be
131 sent without sshd(8) receiving any messages back from the client.
132 If this threshold is reached while client alive messages are be-
133 ing sent, sshd will disconnect the client, terminating the ses-
134 sion. It is important to note that the use of client alive mes-
135 sages is very different from TCPKeepAlive (below). The client
136 alive messages are sent through the encrypted channel and there-
137 fore will not be spoofable. The TCP keepalive option enabled by
138 TCPKeepAlive is spoofable. The client alive mechanism is valu-
139 able when the client or server depend on knowing when a connec-
140 tion has become inactive.
141
142 The default value is 3. If ClientAliveInterval (see below) is
143 set to 15, and ClientAliveCountMax is left at the default, unre-
144 sponsive SSH clients will be disconnected after approximately 45
145 seconds. This option applies to protocol version 2 only.
146
147 ClientAliveInterval
148 Sets a timeout interval in seconds after which if no data has
149 been received from the client, sshd(8) will send a message
150 through the encrypted channel to request a response from the
151 client. The default is 0, indicating that these messages will
152 not be sent to the client. This option applies to protocol ver-
153 sion 2 only.
154
155 Compression
156 Specifies whether compression is allowed, or delayed until the
157 user has authenticated successfully. The argument must be
158 ``yes'', ``delayed'', or ``no''. The default is ``delayed''.
159
160 DenyGroups
161 This keyword can be followed by a list of group name patterns,
162 separated by spaces. Login is disallowed for users whose primary
163 group or supplementary group list matches one of the patterns.
164 Only group names are valid; a numerical group ID is not recog-
165 nized. By default, login is allowed for all groups. The al-
166 low/deny directives are processed in the following order:
167 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
168
169 See PATTERNS in ssh_config(5) for more information on patterns.
170
171 DenyUsers
172 This keyword can be followed by a list of user name patterns,
173 separated by spaces. Login is disallowed for user names that
174 match one of the patterns. Only user names are valid; a numeri-
175 cal user ID is not recognized. By default, login is allowed for
176 all users. If the pattern takes the form USER@HOST then USER and
177 HOST are separately checked, restricting logins to particular
178 users from particular hosts. The allow/deny directives are pro-
179 cessed in the following order: DenyUsers, AllowUsers, DenyGroups,
180 and finally AllowGroups.
181
182 See PATTERNS in ssh_config(5) for more information on patterns.
183
184 ForceCommand
185 Forces the execution of the command specified by ForceCommand,
186 ignoring any command supplied by the client and ~/.ssh/rc if pre-
187 sent. The command is invoked by using the user's login shell
188 with the -c option. This applies to shell, command, or subsystem
189 execution. It is most useful inside a Match block. The command
190 originally supplied by the client is available in the
191 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
192 of ``internal-sftp'' will force the use of an in-process sftp
193 server that requires no support files when used with
194 ChrootDirectory.
195
196 GatewayPorts
197 Specifies whether remote hosts are allowed to connect to ports
198 forwarded for the client. By default, sshd(8) binds remote port
199 forwardings to the loopback address. This prevents other remote
200 hosts from connecting to forwarded ports. GatewayPorts can be
201 used to specify that sshd should allow remote port forwardings to
202 bind to non-loopback addresses, thus allowing other hosts to con-
203 nect. The argument may be ``no'' to force remote port forward-
204 ings to be available to the local host only, ``yes'' to force re-
205 mote port forwardings to bind to the wildcard address, or
206 ``clientspecified'' to allow the client to select the address to
207 which the forwarding is bound. The default is ``no''.
208
209 GSSAPIAuthentication
210 Specifies whether user authentication based on GSSAPI is allowed.
211 The default is ``no''. Note that this option applies to protocol
212 version 2 only.
213
214 GSSAPICleanupCredentials
215 Specifies whether to automatically destroy the user's credentials
216 cache on logout. The default is ``yes''. Note that this option
217 applies to protocol version 2 only.
218
219 HostbasedAuthentication
220 Specifies whether rhosts or /etc/hosts.equiv authentication to-
221 gether with successful public key client host authentication is
222 allowed (host-based authentication). This option is similar to
223 RhostsRSAAuthentication and applies to protocol version 2 only.
224 The default is ``no''.
225
226 HostbasedUsesNameFromPacketOnly
227 Specifies whether or not the server will attempt to perform a re-
228 verse name lookup when matching the name in the ~/.shosts,
229 ~/.rhosts, and /etc/hosts.equiv files during
230 HostbasedAuthentication. A setting of ``yes'' means that sshd(8)
231 uses the name supplied by the client rather than attempting to
232 resolve the name from the TCP connection itself. The default is
233 ``no''.
234
235 HostKey
236 Specifies a file containing a private host key used by SSH. The
237 default is /etc/ssh/ssh_host_key for protocol version 1, and
238 /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro-
239 tocol version 2. Note that sshd(8) will refuse to use a file if
240 it is group/world-accessible. It is possible to have multiple
241 host key files. ``rsa1'' keys are used for version 1 and ``dsa''
242 or ``rsa'' are used for version 2 of the SSH protocol.
243
244 IgnoreRhosts
245 Specifies that .rhosts and .shosts files will not be used in
246 RhostsRSAAuthentication or HostbasedAuthentication.
247
248 /etc/hosts.equiv and /etc/shosts.equiv are still used. The de-
249 fault is ``yes''.
250
251 IgnoreUserKnownHosts
252 Specifies whether sshd(8) should ignore the user's
253 ~/.ssh/known_hosts during RhostsRSAAuthentication or
254 HostbasedAuthentication. The default is ``no''.
255
256 KerberosAuthentication
257 Specifies whether the password provided by the user for
258 PasswordAuthentication will be validated through the Kerberos
259 KDC. To use this option, the server needs a Kerberos servtab
260 which allows the verification of the KDC's identity. The default
261 is ``no''.
262
263 KerberosGetAFSToken
264 If AFS is active and the user has a Kerberos 5 TGT, attempt to
265 acquire an AFS token before accessing the user's home directory.
266 The default is ``no''.
267
268 KerberosOrLocalPasswd
269 If password authentication through Kerberos fails then the pass-
270 word will be validated via any additional local mechanism such as
271 /etc/passwd. The default is ``yes''.
272
273 KerberosTicketCleanup
274 Specifies whether to automatically destroy the user's ticket
275 cache file on logout. The default is ``yes''.
276
277 KeyRegenerationInterval
278 In protocol version 1, the ephemeral server key is automatically
279 regenerated after this many seconds (if it has been used). The
280 purpose of regeneration is to prevent decrypting captured ses-
281 sions by later breaking into the machine and stealing the keys.
282 The key is never stored anywhere. If the value is 0, the key is
283 never regenerated. The default is 3600 (seconds).
284
285 ListenAddress
286 Specifies the local addresses sshd(8) should listen on. The fol-
287 lowing forms may be used:
288
289 ListenAddress host|IPv4_addr|IPv6_addr
290 ListenAddress host|IPv4_addr:port
291 ListenAddress [host|IPv6_addr]:port
292
293 If port is not specified, sshd will listen on the address and all
294 prior Port options specified. The default is to listen on all
295 local addresses. Multiple ListenAddress options are permitted.
296 Additionally, any Port options must precede this option for non-
297 port qualified addresses.
298
299 LoginGraceTime
300 The server disconnects after this time if the user has not suc-
301 cessfully logged in. If the value is 0, there is no time limit.
302 The default is 120 seconds.
303
304 LogLevel
305 Gives the verbosity level that is used when logging messages from
306 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
307 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
308 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
309 higher levels of debugging output. Logging with a DEBUG level
310 violates the privacy of users and is not recommended.
311
312 MACs Specifies the available MAC (message authentication code) algo-
313 rithms. The MAC algorithm is used in protocol version 2 for data
314 integrity protection. Multiple algorithms must be comma-separat-
315 ed. The default is:
316
317 hmac-md5,hmac-sha1,umac-64@openssh.com,
318 hmac-ripemd160,hmac-sha1-96,hmac-md5-96
319
320 Match Introduces a conditional block. If all of the criteria on the
321 Match line are satisfied, the keywords on the following lines
322 override those set in the global section of the config file, un-
323 til either another Match line or the end of the file.
324
325 The arguments to Match are one or more criteria-pattern pairs.
326 The available criteria are User, Group, Host, and Address. The
327 match patterns may consist of single entries or comma-separated
328 lists and may use the wildcard and negation operators described
329 in the PATTERNS section of ssh_config(5).
330
331 The patterns in an Address criteria may additionally contain ad-
332 dresses to match in CIDR address/masklen format, e.g.
333 ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask
334 length provided must be consistent with the address - it is an
335 error to specify a mask length that is too long for the address
336 or one with bits set in this host portion of the address. For
337 example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively.
338
339 Only a subset of keywords may be used on the lines following a
340 Match keyword. Available keywords are AllowTcpForwarding,
341 Banner, ChrootDirectory, ForceCommand, GatewayPorts,
342 GSSAPIAuthentication, HostbasedAuthentication,
343 KbdInteractiveAuthentication, KerberosAuthentication,
344 MaxAuthTries, MaxSessions, PasswordAuthentication, PermitOpen,
345 PermitRootLogin, RhostsRSAAuthentication, RSAAuthentication,
346 X11DisplayOffset, X11Forwarding, and X11UseLocalHost.
347
348 MaxAuthTries
349 Specifies the maximum number of authentication attempts permitted
350 per connection. Once the number of failures reaches half this
351 value, additional failures are logged. The default is 6.
352
353 MaxSessions
354 Specifies the maximum number of open sessions permitted per net-
355 work connection. The default is 10.
356
357 MaxStartups
358 Specifies the maximum number of concurrent unauthenticated con-
359 nections to the SSH daemon. Additional connections will be
360 dropped until authentication succeeds or the LoginGraceTime ex-
361 pires for a connection. The default is 10.
362
363 Alternatively, random early drop can be enabled by specifying the
364 three colon separated values ``start:rate:full'' (e.g.
365 "10:30:60"). sshd(8) will refuse connection attempts with a
366 probability of ``rate/100'' (30%) if there are currently
367 ``start'' (10) unauthenticated connections. The probability in-
368 creases linearly and all connection attempts are refused if the
369 number of unauthenticated connections reaches ``full'' (60).
370
371 PasswordAuthentication
372 Specifies whether password authentication is allowed. The de-
373 fault is ``yes''.
374
375 PermitEmptyPasswords
376 When password authentication is allowed, it specifies whether the
377 server allows login to accounts with empty password strings. The
378 default is ``no''.
379
380 PermitOpen
381 Specifies the destinations to which TCP port forwarding is per-
382 mitted. The forwarding specification must be one of the follow-
383 ing forms:
384
385 PermitOpen host:port
386 PermitOpen IPv4_addr:port
387 PermitOpen [IPv6_addr]:port
388
389 Multiple forwards may be specified by separating them with
390 whitespace. An argument of ``any'' can be used to remove all re-
391 strictions and permit any forwarding requests. By default all
392 port forwarding requests are permitted.
393
394 PermitRootLogin
395 Specifies whether root can log in using ssh(1). The argument
396 must be ``yes'', ``without-password'', ``forced-commands-only'',
397 or ``no''. The default is ``yes''.
398
399 If this option is set to ``without-password'', password authenti-
400 cation is disabled for root.
401
402 If this option is set to ``forced-commands-only'', root login
403 with public key authentication will be allowed, but only if the
404 command option has been specified (which may be useful for taking
405 remote backups even if root login is normally not allowed). All
406 other authentication methods are disabled for root.
407
408 If this option is set to ``no'', root is not allowed to log in.
409
410 PermitTunnel
411 Specifies whether tun(4) device forwarding is allowed. The argu-
412 ment must be ``yes'', ``point-to-point'' (layer 3), ``ethernet''
413 (layer 2), or ``no''. Specifying ``yes'' permits both ``point-
414 to-point'' and ``ethernet''. The default is ``no''.
415
416 PermitUserEnvironment
417 Specifies whether ~/.ssh/environment and environment= options in
418 ~/.ssh/authorized_keys are processed by sshd(8). The default is
419 ``no''. Enabling environment processing may enable users to by-
420 pass access restrictions in some configurations using mechanisms
421 such as LD_PRELOAD.
422
423 PidFile
424 Specifies the file that contains the process ID of the SSH dae-
425 mon. The default is /var/run/sshd.pid.
426
427 Port Specifies the port number that sshd(8) listens on. The default
428 is 22. Multiple options of this type are permitted. See also
429 ListenAddress.
430
431 PrintLastLog
432 Specifies whether sshd(8) should print the date and time of the
433 last user login when a user logs in interactively. The default
434 is ``yes''.
435
436 PrintMotd
437 Specifies whether sshd(8) should print /etc/motd when a user logs
438 in interactively. (On some systems it is also printed by the
439 shell, /etc/profile, or equivalent.) The default is ``yes''.
440
441 Protocol
442 Specifies the protocol versions sshd(8) supports. The possible
443 values are `1' and `2'. Multiple versions must be comma-separat-
444 ed. The default is ``2,1''. Note that the order of the protocol
445 list does not indicate preference, because the client selects
446 among multiple protocol versions offered by the server. Specify-
447 ing ``2,1'' is identical to ``1,2''.
448
449 PubkeyAuthentication
450 Specifies whether public key authentication is allowed. The de-
451 fault is ``yes''. Note that this option applies to protocol ver-
452 sion 2 only.
453
454 RhostsRSAAuthentication
455 Specifies whether rhosts or /etc/hosts.equiv authentication to-
456 gether with successful RSA host authentication is allowed. The
457 default is ``no''. This option applies to protocol version 1 on-
458 ly.
459
460 RSAAuthentication
461 Specifies whether pure RSA authentication is allowed. The de-
462 fault is ``yes''. This option applies to protocol version 1 on-
463 ly.
464
465 ServerKeyBits
466 Defines the number of bits in the ephemeral protocol version 1
467 server key. The minimum value is 512, and the default is 1024.
468
469 StrictModes
470 Specifies whether sshd(8) should check file modes and ownership
471 of the user's files and home directory before accepting login.
472 This is normally desirable because novices sometimes accidentally
473 leave their directory or files world-writable. The default is
474 ``yes''.
475
476 Subsystem
477 Configures an external subsystem (e.g. file transfer daemon).
478 Arguments should be a subsystem name and a command (with optional
479 arguments) to execute upon subsystem request.
480
481 The command sftp-server(8) implements the ``sftp'' file transfer
482 subsystem.
483
484 Alternately the name ``internal-sftp'' implements an in-process
485 ``sftp'' server. This may simplify configurations using
486 ChrootDirectory to force a different filesystem root on clients.
487
488 By default no subsystems are defined. Note that this option ap-
489 plies to protocol version 2 only.
490
491 SyslogFacility
492 Gives the facility code that is used when logging messages from
493 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
494 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The de-
495 fault is AUTH.
496
497 TCPKeepAlive
498 Specifies whether the system should send TCP keepalive messages
499 to the other side. If they are sent, death of the connection or
500 crash of one of the machines will be properly noticed. However,
501 this means that connections will die if the route is down tem-
502 porarily, and some people find it annoying. On the other hand,
503 if TCP keepalives are not sent, sessions may hang indefinitely on
504 the server, leaving ``ghost'' users and consuming server re-
505 sources.
506
507 The default is ``yes'' (to send TCP keepalive messages), and the
508 server will notice if the network goes down or the client host
509 crashes. This avoids infinitely hanging sessions.
510
511 To disable TCP keepalive messages, the value should be set to
512 ``no''.
513
514 UseDNS Specifies whether sshd(8) should look up the remote host name and
515 check that the resolved host name for the remote IP address maps
516 back to the very same IP address. The default is ``yes''.
517
518 UseLogin
519 Specifies whether login(1) is used for interactive login ses-
520 sions. The default is ``no''. Note that login(1) is never used
521 for remote command execution. Note also, that if this is en-
522 abled, X11Forwarding will be disabled because login(1) does not
523 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
524 is specified, it will be disabled after authentication.
525
526 UsePAM Enables the Pluggable Authentication Module interface. If set to
527 ``yes'' this will enable PAM authentication using
528 ChallengeResponseAuthentication and PasswordAuthentication in ad-
529 dition to PAM account and session module processing for all au-
530 thentication types.
531
532 Because PAM challenge-response authentication usually serves an
533 equivalent role to password authentication, you should disable
534 either PasswordAuthentication or ChallengeResponseAuthentication.
535
536 If UsePAM is enabled, you will not be able to run sshd(8) as a
537 non-root user. The default is ``no''.
538
539 UsePrivilegeSeparation
540 Specifies whether sshd(8) separates privileges by creating an un-
541 privileged child process to deal with incoming network traffic.
542 After successful authentication, another process will be created
543 that has the privilege of the authenticated user. The goal of
544 privilege separation is to prevent privilege escalation by con-
545 taining any corruption within the unprivileged processes. The
546 default is ``yes''.
547
548 X11DisplayOffset
549 Specifies the first display number available for sshd(8)'s X11
550 forwarding. This prevents sshd from interfering with real X11
551 servers. The default is 10.
552
553 X11Forwarding
554 Specifies whether X11 forwarding is permitted. The argument must
555 be ``yes'' or ``no''. The default is ``no''.
556
557 When X11 forwarding is enabled, there may be additional exposure
558 to the server and to client displays if the sshd(8) proxy display
559 is configured to listen on the wildcard address (see
560 X11UseLocalhost below), though this is not the default. Addi-
561 tionally, the authentication spoofing and authentication data
562 verification and substitution occur on the client side. The se-
563 curity risk of using X11 forwarding is that the client's X11 dis-
564 play server may be exposed to attack when the SSH client requests
565 forwarding (see the warnings for ForwardX11 in ssh_config(5)). A
566 system administrator may have a stance in which they want to pro-
567 tect clients that may expose themselves to attack by unwittingly
568 requesting X11 forwarding, which can warrant a ``no'' setting.
569
570 Note that disabling X11 forwarding does not prevent users from
571 forwarding X11 traffic, as users can always install their own
572 forwarders. X11 forwarding is automatically disabled if UseLogin
573 is enabled.
574
575 X11UseLocalhost
576 Specifies whether sshd(8) should bind the X11 forwarding server
577 to the loopback address or to the wildcard address. By default,
578 sshd binds the forwarding server to the loopback address and sets
579 the hostname part of the DISPLAY environment variable to
580 ``localhost''. This prevents remote hosts from connecting to the
581 proxy display. However, some older X11 clients may not function
582 with this configuration. X11UseLocalhost may be set to ``no'' to
583 specify that the forwarding server should be bound to the wild-
584 card address. The argument must be ``yes'' or ``no''. The de-
585 fault is ``yes''.
586
587 XAuthLocation
588 Specifies the full pathname of the xauth(1) program. The default
589 is /usr/X11R6/bin/xauth.
590
591TIME FORMATS
592 sshd(8) command-line arguments and configuration file options that speci-
593 fy time may be expressed using a sequence of the form: time[qualifier],
594 where time is a positive integer value and qualifier is one of the fol-
595 lowing:
596
597 <none> seconds
598 s | S seconds
599 m | M minutes
600 h | H hours
601 d | D days
602 w | W weeks
603
604 Each member of the sequence is added together to calculate the total time
605 value.
606
607 Time format examples:
608
609 600 600 seconds (10 minutes)
610 10m 10 minutes
611 1h30m 1 hour 30 minutes (90 minutes)
612
613FILES
614 /etc/ssh/sshd_config
615 Contains configuration data for sshd(8). This file should be
616 writable by root only, but it is recommended (though not neces-
617 sary) that it be world-readable.
618
619SEE ALSO
620 sshd(8)
621
622AUTHORS
623 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
624 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
625 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
626 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
627 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
628 for privilege separation.
629
630OpenBSD 4.4 July 2, 2008 10
diff --git a/sshtty.h b/sshtty.h
new file mode 100644
index 000000000..723b27846
--- /dev/null
+++ b/sshtty.h
@@ -0,0 +1,47 @@
1/* $OpenBSD: sshtty.h,v 1.3 2003/09/19 17:43:35 markus Exp $ */
2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5 * All rights reserved
6 *
7 * As far as I am concerned, the code I have written for this software
8 * can be used freely for any purpose. Any derived versions of this
9 * software must be clearly marked as such, and if the derived work is
10 * incompatible with the protocol description in the RFC file, it must be
11 * called by a name other than "ssh" or "Secure Shell".
12 */
13/*
14 * Copyright (c) 2001 Markus Friedl. All rights reserved.
15 * Copyright (c) 2001 Kevin Steves. All rights reserved.
16 *
17 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions
19 * are met:
20 * 1. Redistributions of source code must retain the above copyright
21 * notice, this list of conditions and the following disclaimer.
22 * 2. Redistributions in binary form must reproduce the above copyright
23 * notice, this list of conditions and the following disclaimer in the
24 * documentation and/or other materials provided with the distribution.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
30 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 */
37
38#ifndef SSHTTY_H
39#define SSHTTY_H
40
41#include <termios.h>
42
43struct termios get_saved_tio(void);
44void leave_raw_mode(void);
45void enter_raw_mode(void);
46
47#endif
diff --git a/stamp-h.in b/stamp-h.in
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/stamp-h.in
diff --git a/tildexpand.c b/tildexpand.c
new file mode 100644
index 000000000..cedb653b2
--- /dev/null
+++ b/tildexpand.c
@@ -0,0 +1,73 @@
1/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 *
6 * As far as I am concerned, the code I have written for this software
7 * can be used freely for any purpose. Any derived versions of this
8 * software must be clearly marked as such, and if the derived work is
9 * incompatible with the protocol description in the RFC file, it must be
10 * called by a name other than "ssh" or "Secure Shell".
11 */
12
13#include "includes.h"
14RCSID("$OpenBSD: tildexpand.c,v 1.15 2004/05/21 08:43:03 markus Exp $");
15
16#include "xmalloc.h"
17#include "log.h"
18#include "misc.h"
19
20/*
21 * Expands tildes in the file name. Returns data allocated by xmalloc.
22 * Warning: this calls getpw*.
23 */
24char *
25tilde_expand_filename(const char *filename, uid_t my_uid)
26{
27 const char *cp;
28 u_int userlen;
29 char *expanded;
30 struct passwd *pw;
31 char user[100];
32 int len;
33
34 /* Return immediately if no tilde. */
35 if (filename[0] != '~')
36 return xstrdup(filename);
37
38 /* Skip the tilde. */
39 filename++;
40
41 /* Find where the username ends. */
42 cp = strchr(filename, '/');
43 if (cp)
44 userlen = cp - filename; /* Something after username. */
45 else
46 userlen = strlen(filename); /* Nothing after username. */
47 if (userlen == 0)
48 pw = getpwuid(my_uid); /* Own home directory. */
49 else {
50 /* Tilde refers to someone elses home directory. */
51 if (userlen > sizeof(user) - 1)
52 fatal("User name after tilde too long.");
53 memcpy(user, filename, userlen);
54 user[userlen] = 0;
55 pw = getpwnam(user);
56 }
57 if (!pw)
58 fatal("Unknown user %100s.", user);
59
60 /* If referring to someones home directory, return it now. */
61 if (!cp) {
62 /* Only home directory specified */
63 return xstrdup(pw->pw_dir);
64 }
65 /* Build a path combining the specified directory and path. */
66 len = strlen(pw->pw_dir) + strlen(cp + 1) + 2;
67 if (len > MAXPATHLEN)
68 fatal("Home directory too long (%d > %d", len-1, MAXPATHLEN-1);
69 expanded = xmalloc(len);
70 snprintf(expanded, len, "%s%s%s", pw->pw_dir,
71 strcmp(pw->pw_dir, "/") ? "/" : "", cp + 1);
72 return expanded;
73}
diff --git a/tildexpand.h b/tildexpand.h
new file mode 100644
index 000000000..f5e7e40bc
--- /dev/null
+++ b/tildexpand.h
@@ -0,0 +1,15 @@
1/* $OpenBSD: tildexpand.h,v 1.4 2001/06/26 17:27:25 markus Exp $ */
2
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
14
15char *tilde_expand_filename(const char *, uid_t);