configure revision 1.81.2.1 1 1.1 tv #! /bin/sh
2 1.1 tv # Guess values for system-dependent variables and create Makefiles.
3 1.76 pooka # Generated by Autoconf 2.52 for libnbcompat noversion.
4 1.1 tv #
5 1.41 salo # Report bugs to <lib-bug-people (at] NetBSD.org>.
6 1.1 tv #
7 1.76 pooka # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 1.76 pooka # Free Software Foundation, Inc.
9 1.1 tv # This configure script is free software; the Free Software Foundation
10 1.1 tv # gives unlimited permission to copy, distribute and modify it.
11 1.74 christos
12 1.76 pooka # Avoid depending upon Character Ranges.
13 1.76 pooka as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 1.76 pooka as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 1.76 pooka as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 1.76 pooka as_cr_digits='0123456789'
17 1.76 pooka as_cr_alnum=$as_cr_Letters$as_cr_digits
18 1.74 christos
19 1.76 pooka # Sed expression to map a string onto a valid variable name.
20 1.76 pooka as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 1.74 christos
22 1.76 pooka # Sed expression to map a string onto a valid CPP name.
23 1.76 pooka as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 1.65 christos
25 1.76 pooka # Be Bourne compatible
26 1.76 pooka if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 1.65 christos emulate sh
28 1.65 christos NULLCMD=:
29 1.76 pooka elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 1.76 pooka set -o posix
31 1.65 christos fi
32 1.61 christos
33 1.76 pooka # Name of the executable.
34 1.76 pooka as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 1.61 christos
36 1.76 pooka if expr a : '\(a\)' >/dev/null 2>&1; then
37 1.1 tv as_expr=expr
38 1.1 tv else
39 1.1 tv as_expr=false
40 1.1 tv fi
41 1.1 tv
42 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
43 1.76 pooka echo >conf$$.file
44 1.76 pooka if ln -s conf$$.file conf$$ 2>/dev/null; then
45 1.76 pooka # We could just check for DJGPP; but this test a) works b) is more generic
46 1.76 pooka # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 1.76 pooka if test -f conf$$.exe; then
48 1.76 pooka # Don't use ln at all; we don't have any links
49 1.76 pooka as_ln_s='cp -p'
50 1.76 pooka else
51 1.74 christos as_ln_s='ln -s'
52 1.66 tsutsui fi
53 1.76 pooka elif ln conf$$.file conf$$ 2>/dev/null; then
54 1.76 pooka as_ln_s=ln
55 1.1 tv else
56 1.76 pooka as_ln_s='cp -p'
57 1.1 tv fi
58 1.76 pooka rm -f conf$$ conf$$.exe conf$$.file
59 1.76 pooka
60 1.76 pooka as_executable_p="test -f"
61 1.63 apb
62 1.76 pooka # Support unset when possible.
63 1.76 pooka if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64 1.76 pooka as_unset=unset
65 1.61 christos else
66 1.76 pooka as_unset=false
67 1.61 christos fi
68 1.65 christos
69 1.76 pooka # NLS nuisances.
70 1.76 pooka $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 1.76 pooka $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 1.76 pooka $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 1.76 pooka $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 1.76 pooka $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 1.76 pooka $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 1.76 pooka $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 1.76 pooka $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 1.74 christos
79 1.76 pooka # IFS
80 1.76 pooka # We need space, tab and new line, in precisely that order.
81 1.76 pooka as_nl='
82 1.76 pooka '
83 1.76 pooka IFS=" $as_nl"
84 1.74 christos
85 1.76 pooka # CDPATH.
86 1.76 pooka $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 1.1 tv
88 1.1 tv # Name of the host.
89 1.76 pooka # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 1.1 tv # so uname gets run too.
91 1.1 tv ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92 1.1 tv
93 1.76 pooka exec 6>&1
94 1.76 pooka
95 1.1 tv #
96 1.1 tv # Initializations.
97 1.1 tv #
98 1.1 tv ac_default_prefix=/usr/local
99 1.1 tv cross_compiling=no
100 1.1 tv subdirs=
101 1.76 pooka MFLAGS= MAKEFLAGS=
102 1.76 pooka SHELL=${CONFIG_SHELL-/bin/sh}
103 1.1 tv
104 1.76 pooka # Maximum number of lines to put in a shell here document.
105 1.76 pooka # This variable seems obsolete. It should probably be removed, and
106 1.76 pooka # only ac_max_sed_lines should be used.
107 1.76 pooka : ${ac_max_here_lines=38}
108 1.1 tv
109 1.1 tv # Factoring default headers for most tests.
110 1.1 tv ac_includes_default="\
111 1.1 tv #include <stdio.h>
112 1.76 pooka #if HAVE_SYS_TYPES_H
113 1.1 tv # include <sys/types.h>
114 1.1 tv #endif
115 1.76 pooka #if HAVE_SYS_STAT_H
116 1.1 tv # include <sys/stat.h>
117 1.1 tv #endif
118 1.76 pooka #if STDC_HEADERS
119 1.1 tv # include <stdlib.h>
120 1.1 tv # include <stddef.h>
121 1.1 tv #else
122 1.76 pooka # if HAVE_STDLIB_H
123 1.1 tv # include <stdlib.h>
124 1.1 tv # endif
125 1.1 tv #endif
126 1.76 pooka #if HAVE_STRING_H
127 1.76 pooka # if !STDC_HEADERS && HAVE_MEMORY_H
128 1.1 tv # include <memory.h>
129 1.1 tv # endif
130 1.1 tv # include <string.h>
131 1.1 tv #endif
132 1.76 pooka #if HAVE_STRINGS_H
133 1.1 tv # include <strings.h>
134 1.1 tv #endif
135 1.76 pooka #if HAVE_INTTYPES_H
136 1.1 tv # include <inttypes.h>
137 1.76 pooka #else
138 1.76 pooka # if HAVE_STDINT_H
139 1.76 pooka # include <stdint.h>
140 1.76 pooka # endif
141 1.1 tv #endif
142 1.76 pooka #if HAVE_UNISTD_H
143 1.1 tv # include <unistd.h>
144 1.1 tv #endif"
145 1.1 tv
146 1.1 tv # Initialize some variables set by options.
147 1.1 tv ac_init_help=
148 1.1 tv ac_init_version=false
149 1.1 tv # The variables have the same names as the options, with
150 1.1 tv # dashes changed to underlines.
151 1.1 tv cache_file=/dev/null
152 1.1 tv exec_prefix=NONE
153 1.1 tv no_create=
154 1.1 tv no_recursion=
155 1.1 tv prefix=NONE
156 1.1 tv program_prefix=NONE
157 1.1 tv program_suffix=NONE
158 1.1 tv program_transform_name=s,x,x,
159 1.1 tv silent=
160 1.1 tv site=
161 1.1 tv srcdir=
162 1.1 tv verbose=
163 1.1 tv x_includes=NONE
164 1.1 tv x_libraries=NONE
165 1.1 tv
166 1.1 tv # Installation directory options.
167 1.1 tv # These are left unexpanded so users can "make install exec_prefix=/foo"
168 1.1 tv # and all the variables that are supposed to be based on exec_prefix
169 1.1 tv # by default will actually change.
170 1.1 tv # Use braces instead of parens because sh, perl, etc. also accept them.
171 1.1 tv bindir='${exec_prefix}/bin'
172 1.1 tv sbindir='${exec_prefix}/sbin'
173 1.1 tv libexecdir='${exec_prefix}/libexec'
174 1.76 pooka datadir='${prefix}/share'
175 1.1 tv sysconfdir='${prefix}/etc'
176 1.1 tv sharedstatedir='${prefix}/com'
177 1.1 tv localstatedir='${prefix}/var'
178 1.76 pooka libdir='${exec_prefix}/lib'
179 1.1 tv includedir='${prefix}/include'
180 1.1 tv oldincludedir='/usr/include'
181 1.76 pooka infodir='${prefix}/info'
182 1.76 pooka mandir='${prefix}/man'
183 1.76 pooka
184 1.76 pooka # Identity of this package.
185 1.76 pooka PACKAGE_NAME='libnbcompat'
186 1.76 pooka PACKAGE_TARNAME='libnbcompat'
187 1.76 pooka PACKAGE_VERSION='noversion'
188 1.76 pooka PACKAGE_STRING='libnbcompat noversion'
189 1.76 pooka PACKAGE_BUGREPORT='lib-bug-people (at] NetBSD.org'
190 1.63 apb
191 1.1 tv ac_prev=
192 1.1 tv for ac_option
193 1.1 tv do
194 1.1 tv # If the previous option needs an argument, assign it.
195 1.1 tv if test -n "$ac_prev"; then
196 1.76 pooka eval "$ac_prev=\$ac_option"
197 1.1 tv ac_prev=
198 1.1 tv continue
199 1.1 tv fi
200 1.1 tv
201 1.76 pooka ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 1.1 tv
203 1.1 tv # Accept the important Cygnus configure options, so we can diagnose typos.
204 1.1 tv
205 1.76 pooka case $ac_option in
206 1.1 tv
207 1.1 tv -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 1.1 tv ac_prev=bindir ;;
209 1.1 tv -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 1.1 tv bindir=$ac_optarg ;;
211 1.1 tv
212 1.1 tv -build | --build | --buil | --bui | --bu)
213 1.1 tv ac_prev=build_alias ;;
214 1.1 tv -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 1.1 tv build_alias=$ac_optarg ;;
216 1.1 tv
217 1.1 tv -cache-file | --cache-file | --cache-fil | --cache-fi \
218 1.1 tv | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 1.1 tv ac_prev=cache_file ;;
220 1.1 tv -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 1.1 tv | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 1.1 tv cache_file=$ac_optarg ;;
223 1.1 tv
224 1.1 tv --config-cache | -C)
225 1.1 tv cache_file=config.cache ;;
226 1.1 tv
227 1.76 pooka -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 1.1 tv ac_prev=datadir ;;
229 1.76 pooka -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 1.76 pooka | --da=*)
231 1.1 tv datadir=$ac_optarg ;;
232 1.1 tv
233 1.1 tv -disable-* | --disable-*)
234 1.76 pooka ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 1.1 tv # Reject names that are not valid shell variable names.
236 1.76 pooka expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 1.76 pooka { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 1.76 pooka { (exit 1); exit 1; }; }
239 1.76 pooka ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 1.76 pooka eval "enable_$ac_feature=no" ;;
241 1.1 tv
242 1.1 tv -enable-* | --enable-*)
243 1.76 pooka ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 1.1 tv # Reject names that are not valid shell variable names.
245 1.76 pooka expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 1.76 pooka { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 1.76 pooka { (exit 1); exit 1; }; }
248 1.76 pooka ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 1.76 pooka case $ac_option in
250 1.76 pooka *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 1.76 pooka *) ac_optarg=yes ;;
252 1.66 tsutsui esac
253 1.76 pooka eval "enable_$ac_feature='$ac_optarg'" ;;
254 1.1 tv
255 1.1 tv -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 1.1 tv | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 1.1 tv | --exec | --exe | --ex)
258 1.1 tv ac_prev=exec_prefix ;;
259 1.1 tv -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 1.1 tv | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 1.1 tv | --exec=* | --exe=* | --ex=*)
262 1.1 tv exec_prefix=$ac_optarg ;;
263 1.1 tv
264 1.1 tv -gas | --gas | --ga | --g)
265 1.1 tv # Obsolete; use --with-gas.
266 1.1 tv with_gas=yes ;;
267 1.1 tv
268 1.1 tv -help | --help | --hel | --he | -h)
269 1.1 tv ac_init_help=long ;;
270 1.1 tv -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 1.1 tv ac_init_help=recursive ;;
272 1.1 tv -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 1.1 tv ac_init_help=short ;;
274 1.1 tv
275 1.1 tv -host | --host | --hos | --ho)
276 1.1 tv ac_prev=host_alias ;;
277 1.1 tv -host=* | --host=* | --hos=* | --ho=*)
278 1.1 tv host_alias=$ac_optarg ;;
279 1.1 tv
280 1.1 tv -includedir | --includedir | --includedi | --included | --include \
281 1.1 tv | --includ | --inclu | --incl | --inc)
282 1.1 tv ac_prev=includedir ;;
283 1.1 tv -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 1.1 tv | --includ=* | --inclu=* | --incl=* | --inc=*)
285 1.1 tv includedir=$ac_optarg ;;
286 1.1 tv
287 1.1 tv -infodir | --infodir | --infodi | --infod | --info | --inf)
288 1.1 tv ac_prev=infodir ;;
289 1.1 tv -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 1.1 tv infodir=$ac_optarg ;;
291 1.1 tv
292 1.1 tv -libdir | --libdir | --libdi | --libd)
293 1.1 tv ac_prev=libdir ;;
294 1.1 tv -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 1.1 tv libdir=$ac_optarg ;;
296 1.1 tv
297 1.1 tv -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 1.1 tv | --libexe | --libex | --libe)
299 1.1 tv ac_prev=libexecdir ;;
300 1.1 tv -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 1.1 tv | --libexe=* | --libex=* | --libe=*)
302 1.1 tv libexecdir=$ac_optarg ;;
303 1.1 tv
304 1.1 tv -localstatedir | --localstatedir | --localstatedi | --localstated \
305 1.76 pooka | --localstate | --localstat | --localsta | --localst \
306 1.76 pooka | --locals | --local | --loca | --loc | --lo)
307 1.1 tv ac_prev=localstatedir ;;
308 1.1 tv -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 1.76 pooka | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 1.76 pooka | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 1.1 tv localstatedir=$ac_optarg ;;
312 1.1 tv
313 1.1 tv -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 1.1 tv ac_prev=mandir ;;
315 1.1 tv -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 1.1 tv mandir=$ac_optarg ;;
317 1.1 tv
318 1.1 tv -nfp | --nfp | --nf)
319 1.1 tv # Obsolete; use --without-fp.
320 1.1 tv with_fp=no ;;
321 1.1 tv
322 1.1 tv -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 1.76 pooka | --no-cr | --no-c)
324 1.1 tv no_create=yes ;;
325 1.1 tv
326 1.1 tv -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 1.1 tv | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 1.1 tv no_recursion=yes ;;
329 1.1 tv
330 1.1 tv -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 1.1 tv | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 1.1 tv | --oldin | --oldi | --old | --ol | --o)
333 1.1 tv ac_prev=oldincludedir ;;
334 1.1 tv -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 1.1 tv | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 1.1 tv | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 1.1 tv oldincludedir=$ac_optarg ;;
338 1.1 tv
339 1.1 tv -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 1.1 tv ac_prev=prefix ;;
341 1.1 tv -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 1.1 tv prefix=$ac_optarg ;;
343 1.1 tv
344 1.1 tv -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 1.1 tv | --program-pre | --program-pr | --program-p)
346 1.1 tv ac_prev=program_prefix ;;
347 1.1 tv -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 1.1 tv | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 1.1 tv program_prefix=$ac_optarg ;;
350 1.1 tv
351 1.1 tv -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 1.1 tv | --program-suf | --program-su | --program-s)
353 1.1 tv ac_prev=program_suffix ;;
354 1.1 tv -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 1.1 tv | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 1.1 tv program_suffix=$ac_optarg ;;
357 1.1 tv
358 1.1 tv -program-transform-name | --program-transform-name \
359 1.1 tv | --program-transform-nam | --program-transform-na \
360 1.1 tv | --program-transform-n | --program-transform- \
361 1.1 tv | --program-transform | --program-transfor \
362 1.1 tv | --program-transfo | --program-transf \
363 1.1 tv | --program-trans | --program-tran \
364 1.1 tv | --progr-tra | --program-tr | --program-t)
365 1.1 tv ac_prev=program_transform_name ;;
366 1.1 tv -program-transform-name=* | --program-transform-name=* \
367 1.1 tv | --program-transform-nam=* | --program-transform-na=* \
368 1.1 tv | --program-transform-n=* | --program-transform-=* \
369 1.1 tv | --program-transform=* | --program-transfor=* \
370 1.1 tv | --program-transfo=* | --program-transf=* \
371 1.1 tv | --program-trans=* | --program-tran=* \
372 1.1 tv | --progr-tra=* | --program-tr=* | --program-t=*)
373 1.1 tv program_transform_name=$ac_optarg ;;
374 1.1 tv
375 1.1 tv -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 1.1 tv | -silent | --silent | --silen | --sile | --sil)
377 1.1 tv silent=yes ;;
378 1.1 tv
379 1.1 tv -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 1.1 tv ac_prev=sbindir ;;
381 1.1 tv -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 1.1 tv | --sbi=* | --sb=*)
383 1.1 tv sbindir=$ac_optarg ;;
384 1.1 tv
385 1.1 tv -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 1.1 tv | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 1.1 tv | --sharedst | --shareds | --shared | --share | --shar \
388 1.1 tv | --sha | --sh)
389 1.1 tv ac_prev=sharedstatedir ;;
390 1.1 tv -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 1.1 tv | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 1.1 tv | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 1.1 tv | --sha=* | --sh=*)
394 1.1 tv sharedstatedir=$ac_optarg ;;
395 1.1 tv
396 1.1 tv -site | --site | --sit)
397 1.1 tv ac_prev=site ;;
398 1.1 tv -site=* | --site=* | --sit=*)
399 1.1 tv site=$ac_optarg ;;
400 1.1 tv
401 1.1 tv -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 1.1 tv ac_prev=srcdir ;;
403 1.1 tv -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 1.1 tv srcdir=$ac_optarg ;;
405 1.1 tv
406 1.1 tv -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 1.1 tv | --syscon | --sysco | --sysc | --sys | --sy)
408 1.1 tv ac_prev=sysconfdir ;;
409 1.1 tv -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 1.1 tv | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 1.1 tv sysconfdir=$ac_optarg ;;
412 1.1 tv
413 1.1 tv -target | --target | --targe | --targ | --tar | --ta | --t)
414 1.1 tv ac_prev=target_alias ;;
415 1.1 tv -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 1.1 tv target_alias=$ac_optarg ;;
417 1.1 tv
418 1.1 tv -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 1.1 tv verbose=yes ;;
420 1.1 tv
421 1.1 tv -version | --version | --versio | --versi | --vers | -V)
422 1.1 tv ac_init_version=: ;;
423 1.1 tv
424 1.1 tv -with-* | --with-*)
425 1.76 pooka ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 1.1 tv # Reject names that are not valid shell variable names.
427 1.76 pooka expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 1.76 pooka { echo "$as_me: error: invalid package name: $ac_package" >&2
429 1.76 pooka { (exit 1); exit 1; }; }
430 1.76 pooka ac_package=`echo $ac_package| sed 's/-/_/g'`
431 1.76 pooka case $ac_option in
432 1.76 pooka *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 1.76 pooka *) ac_optarg=yes ;;
434 1.66 tsutsui esac
435 1.76 pooka eval "with_$ac_package='$ac_optarg'" ;;
436 1.1 tv
437 1.1 tv -without-* | --without-*)
438 1.76 pooka ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 1.1 tv # Reject names that are not valid shell variable names.
440 1.76 pooka expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 1.76 pooka { echo "$as_me: error: invalid package name: $ac_package" >&2
442 1.76 pooka { (exit 1); exit 1; }; }
443 1.76 pooka ac_package=`echo $ac_package | sed 's/-/_/g'`
444 1.76 pooka eval "with_$ac_package=no" ;;
445 1.1 tv
446 1.1 tv --x)
447 1.1 tv # Obsolete; use --with-x.
448 1.1 tv with_x=yes ;;
449 1.1 tv
450 1.1 tv -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 1.1 tv | --x-incl | --x-inc | --x-in | --x-i)
452 1.1 tv ac_prev=x_includes ;;
453 1.1 tv -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 1.1 tv | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 1.1 tv x_includes=$ac_optarg ;;
456 1.1 tv
457 1.1 tv -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 1.1 tv | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 1.1 tv ac_prev=x_libraries ;;
460 1.1 tv -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 1.1 tv | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 1.1 tv x_libraries=$ac_optarg ;;
463 1.1 tv
464 1.76 pooka -*) { echo "$as_me: error: unrecognized option: $ac_option
465 1.76 pooka Try \`$0 --help' for more information." >&2
466 1.76 pooka { (exit 1); exit 1; }; }
467 1.1 tv ;;
468 1.1 tv
469 1.1 tv *=*)
470 1.1 tv ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 1.1 tv # Reject names that are not valid shell variable names.
472 1.76 pooka expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 1.76 pooka { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 1.76 pooka { (exit 1); exit 1; }; }
475 1.76 pooka ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 1.76 pooka eval "$ac_envvar='$ac_optarg'"
477 1.1 tv export $ac_envvar ;;
478 1.1 tv
479 1.1 tv *)
480 1.1 tv # FIXME: should be removed in autoconf 3.0.
481 1.76 pooka echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 1.1 tv expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 1.76 pooka echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 1.76 pooka : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 1.1 tv ;;
486 1.1 tv
487 1.1 tv esac
488 1.1 tv done
489 1.1 tv
490 1.1 tv if test -n "$ac_prev"; then
491 1.1 tv ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 1.76 pooka { echo "$as_me: error: missing argument to $ac_option" >&2
493 1.76 pooka { (exit 1); exit 1; }; }
494 1.74 christos fi
495 1.74 christos
496 1.76 pooka # Be sure to have absolute paths.
497 1.76 pooka for ac_var in exec_prefix prefix
498 1.76 pooka do
499 1.76 pooka eval ac_val=$`echo $ac_var`
500 1.76 pooka case $ac_val in
501 1.76 pooka [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 1.76 pooka *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 1.76 pooka { (exit 1); exit 1; }; };;
504 1.74 christos esac
505 1.76 pooka done
506 1.1 tv
507 1.76 pooka # Be sure to have absolute paths.
508 1.76 pooka for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 1.76 pooka localstatedir libdir includedir oldincludedir infodir mandir
510 1.66 tsutsui do
511 1.76 pooka eval ac_val=$`echo $ac_var`
512 1.1 tv case $ac_val in
513 1.76 pooka [\\/$]* | ?:[\\/]* ) ;;
514 1.76 pooka *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 1.76 pooka { (exit 1); exit 1; }; };;
516 1.1 tv esac
517 1.1 tv done
518 1.1 tv
519 1.1 tv # There might be people who depend on the old broken behavior: `$host'
520 1.1 tv # used to hold the argument of --host etc.
521 1.1 tv build=$build_alias
522 1.1 tv host=$host_alias
523 1.1 tv target=$target_alias
524 1.1 tv
525 1.76 pooka # FIXME: should be removed in autoconf 3.0.
526 1.1 tv if test "x$host_alias" != x; then
527 1.1 tv if test "x$build_alias" = x; then
528 1.1 tv cross_compiling=maybe
529 1.76 pooka echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 1.76 pooka If a cross compiler is detected then cross compile mode will be used." >&2
531 1.1 tv elif test "x$build_alias" != "x$host_alias"; then
532 1.1 tv cross_compiling=yes
533 1.1 tv fi
534 1.1 tv fi
535 1.1 tv
536 1.1 tv ac_tool_prefix=
537 1.1 tv test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 1.1 tv
539 1.1 tv test "$silent" = yes && exec 6>/dev/null
540 1.1 tv
541 1.1 tv # Find the source files, if location was not specified.
542 1.1 tv if test -z "$srcdir"; then
543 1.1 tv ac_srcdir_defaulted=yes
544 1.76 pooka # Try the directory containing this script, then its parent.
545 1.76 pooka ac_prog=$0
546 1.76 pooka ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 1.76 pooka test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 1.1 tv srcdir=$ac_confdir
549 1.76 pooka if test ! -r $srcdir/$ac_unique_file; then
550 1.1 tv srcdir=..
551 1.1 tv fi
552 1.1 tv else
553 1.1 tv ac_srcdir_defaulted=no
554 1.1 tv fi
555 1.76 pooka if test ! -r $srcdir/$ac_unique_file; then
556 1.76 pooka if test "$ac_srcdir_defaulted" = yes; then
557 1.76 pooka { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 1.76 pooka { (exit 1); exit 1; }; }
559 1.76 pooka else
560 1.76 pooka { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 1.76 pooka { (exit 1); exit 1; }; }
562 1.76 pooka fi
563 1.76 pooka fi
564 1.76 pooka srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 1.76 pooka ac_env_build_alias_set=${build_alias+set}
566 1.76 pooka ac_env_build_alias_value=$build_alias
567 1.76 pooka ac_cv_env_build_alias_set=${build_alias+set}
568 1.76 pooka ac_cv_env_build_alias_value=$build_alias
569 1.76 pooka ac_env_host_alias_set=${host_alias+set}
570 1.76 pooka ac_env_host_alias_value=$host_alias
571 1.76 pooka ac_cv_env_host_alias_set=${host_alias+set}
572 1.76 pooka ac_cv_env_host_alias_value=$host_alias
573 1.76 pooka ac_env_target_alias_set=${target_alias+set}
574 1.76 pooka ac_env_target_alias_value=$target_alias
575 1.76 pooka ac_cv_env_target_alias_set=${target_alias+set}
576 1.76 pooka ac_cv_env_target_alias_value=$target_alias
577 1.76 pooka ac_env_CC_set=${CC+set}
578 1.76 pooka ac_env_CC_value=$CC
579 1.76 pooka ac_cv_env_CC_set=${CC+set}
580 1.76 pooka ac_cv_env_CC_value=$CC
581 1.76 pooka ac_env_CFLAGS_set=${CFLAGS+set}
582 1.76 pooka ac_env_CFLAGS_value=$CFLAGS
583 1.76 pooka ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 1.76 pooka ac_cv_env_CFLAGS_value=$CFLAGS
585 1.76 pooka ac_env_LDFLAGS_set=${LDFLAGS+set}
586 1.76 pooka ac_env_LDFLAGS_value=$LDFLAGS
587 1.76 pooka ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 1.76 pooka ac_cv_env_LDFLAGS_value=$LDFLAGS
589 1.76 pooka ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 1.76 pooka ac_env_CPPFLAGS_value=$CPPFLAGS
591 1.76 pooka ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 1.76 pooka ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 1.76 pooka ac_env_CPP_set=${CPP+set}
594 1.76 pooka ac_env_CPP_value=$CPP
595 1.76 pooka ac_cv_env_CPP_set=${CPP+set}
596 1.76 pooka ac_cv_env_CPP_value=$CPP
597 1.1 tv
598 1.1 tv #
599 1.1 tv # Report the --help message.
600 1.1 tv #
601 1.1 tv if test "$ac_init_help" = "long"; then
602 1.1 tv # Omit some internal or obsolete options to make the list less imposing.
603 1.1 tv # This message is too long to be a string in the A/UX 3.1 sh.
604 1.76 pooka cat <<EOF
605 1.1 tv \`configure' configures libnbcompat noversion to adapt to many kinds of systems.
606 1.1 tv
607 1.1 tv Usage: $0 [OPTION]... [VAR=VALUE]...
608 1.1 tv
609 1.1 tv To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 1.1 tv VAR=VALUE. See below for descriptions of some of the useful variables.
611 1.1 tv
612 1.1 tv Defaults for the options are specified in brackets.
613 1.1 tv
614 1.1 tv Configuration:
615 1.1 tv -h, --help display this help and exit
616 1.1 tv --help=short display options specific to this package
617 1.1 tv --help=recursive display the short help of all the included packages
618 1.1 tv -V, --version display version information and exit
619 1.76 pooka -q, --quiet, --silent do not print \`checking...' messages
620 1.1 tv --cache-file=FILE cache test results in FILE [disabled]
621 1.1 tv -C, --config-cache alias for \`--cache-file=config.cache'
622 1.1 tv -n, --no-create do not create output files
623 1.1 tv --srcdir=DIR find the sources in DIR [configure dir or \`..']
624 1.1 tv
625 1.76 pooka EOF
626 1.76 pooka
627 1.76 pooka cat <<EOF
628 1.1 tv Installation directories:
629 1.1 tv --prefix=PREFIX install architecture-independent files in PREFIX
630 1.66 tsutsui [$ac_default_prefix]
631 1.1 tv --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 1.66 tsutsui [PREFIX]
633 1.1 tv
634 1.1 tv By default, \`make install' will install all the files in
635 1.1 tv \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 1.1 tv an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 1.1 tv for instance \`--prefix=\$HOME'.
638 1.1 tv
639 1.1 tv For better control, use the options below.
640 1.1 tv
641 1.1 tv Fine tuning of the installation directories:
642 1.76 pooka --bindir=DIR user executables [EPREFIX/bin]
643 1.76 pooka --sbindir=DIR system admin executables [EPREFIX/sbin]
644 1.76 pooka --libexecdir=DIR program executables [EPREFIX/libexec]
645 1.76 pooka --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 1.76 pooka --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 1.76 pooka --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 1.76 pooka --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 1.76 pooka --libdir=DIR object code libraries [EPREFIX/lib]
650 1.76 pooka --includedir=DIR C header files [PREFIX/include]
651 1.76 pooka --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 1.76 pooka --infodir=DIR info documentation [PREFIX/info]
653 1.76 pooka --mandir=DIR man documentation [PREFIX/man]
654 1.76 pooka EOF
655 1.1 tv
656 1.76 pooka cat <<\EOF
657 1.76 pooka EOF
658 1.1 tv fi
659 1.1 tv
660 1.1 tv if test -n "$ac_init_help"; then
661 1.1 tv case $ac_init_help in
662 1.1 tv short | recursive ) echo "Configuration of libnbcompat noversion:";;
663 1.1 tv esac
664 1.76 pooka cat <<\EOF
665 1.1 tv
666 1.1 tv Some influential environment variables:
667 1.1 tv CC C compiler command
668 1.1 tv CFLAGS C compiler flags
669 1.1 tv LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
670 1.1 tv nonstandard directory <lib dir>
671 1.76 pooka CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
672 1.76 pooka headers in a nonstandard directory <include dir>
673 1.1 tv CPP C preprocessor
674 1.1 tv
675 1.1 tv Use these variables to override the choices made by `configure' or to help
676 1.1 tv it to find libraries and programs with nonstandard names/locations.
677 1.1 tv
678 1.41 salo Report bugs to <lib-bug-people (at] NetBSD.org>.
679 1.76 pooka EOF
680 1.1 tv fi
681 1.1 tv
682 1.1 tv if test "$ac_init_help" = "recursive"; then
683 1.1 tv # If there are subdirs, report their specific --help.
684 1.76 pooka ac_popdir=`pwd`
685 1.76 pooka for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686 1.76 pooka cd $ac_subdir
687 1.76 pooka # A "../" for each directory in /$ac_subdir.
688 1.76 pooka ac_dots=`echo $ac_subdir |
689 1.76 pooka sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690 1.76 pooka
691 1.76 pooka case $srcdir in
692 1.76 pooka .) # No --srcdir option. We are building in place.
693 1.76 pooka ac_sub_srcdir=$srcdir ;;
694 1.76 pooka [\\/]* | ?:[\\/]* ) # Absolute path.
695 1.76 pooka ac_sub_srcdir=$srcdir/$ac_subdir ;;
696 1.76 pooka *) # Relative path.
697 1.76 pooka ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698 1.76 pooka esac
699 1.1 tv
700 1.76 pooka # Check for guested configure; otherwise get Cygnus style configure.
701 1.76 pooka if test -f $ac_sub_srcdir/configure.gnu; then
702 1.76 pooka echo
703 1.76 pooka $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
704 1.76 pooka elif test -f $ac_sub_srcdir/configure; then
705 1.76 pooka echo
706 1.76 pooka $SHELL $ac_sub_srcdir/configure --help=recursive
707 1.76 pooka elif test -f $ac_sub_srcdir/configure.ac ||
708 1.76 pooka test -f $ac_sub_srcdir/configure.in; then
709 1.76 pooka echo
710 1.76 pooka $ac_configure --help
711 1.65 christos else
712 1.76 pooka echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713 1.76 pooka fi
714 1.76 pooka cd $ac_popdir
715 1.65 christos done
716 1.1 tv fi
717 1.1 tv
718 1.76 pooka test -n "$ac_init_help" && exit 0
719 1.1 tv if $ac_init_version; then
720 1.76 pooka cat <<\EOF
721 1.1 tv libnbcompat configure noversion
722 1.76 pooka generated by GNU Autoconf 2.52
723 1.1 tv
724 1.76 pooka Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
725 1.76 pooka Free Software Foundation, Inc.
726 1.1 tv This configure script is free software; the Free Software Foundation
727 1.1 tv gives unlimited permission to copy, distribute and modify it.
728 1.76 pooka EOF
729 1.76 pooka exit 0
730 1.1 tv fi
731 1.76 pooka exec 5>config.log
732 1.76 pooka cat >&5 <<EOF
733 1.76 pooka This file contains any messages produced by compilers while
734 1.76 pooka running configure, to aid debugging if configure makes a mistake.
735 1.1 tv
736 1.76 pooka It was created by libnbcompat $as_me noversion, which was
737 1.76 pooka generated by GNU Autoconf 2.52. Invocation command line was
738 1.74 christos
739 1.76 pooka $ $0 $@
740 1.1 tv
741 1.76 pooka EOF
742 1.74 christos {
743 1.76 pooka cat <<_ASUNAME
744 1.76 pooka ## ---------- ##
745 1.76 pooka ## Platform. ##
746 1.76 pooka ## ---------- ##
747 1.74 christos
748 1.76 pooka hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
749 1.76 pooka uname -m = `(uname -m) 2>/dev/null || echo unknown`
750 1.76 pooka uname -r = `(uname -r) 2>/dev/null || echo unknown`
751 1.76 pooka uname -s = `(uname -s) 2>/dev/null || echo unknown`
752 1.76 pooka uname -v = `(uname -v) 2>/dev/null || echo unknown`
753 1.74 christos
754 1.76 pooka /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
755 1.76 pooka /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
756 1.1 tv
757 1.76 pooka /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
758 1.76 pooka /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
759 1.76 pooka /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
760 1.76 pooka hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
761 1.76 pooka /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
762 1.76 pooka /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
763 1.76 pooka /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
764 1.1 tv
765 1.76 pooka PATH = $PATH
766 1.1 tv
767 1.76 pooka _ASUNAME
768 1.76 pooka } >&5
769 1.1 tv
770 1.76 pooka cat >&5 <<EOF
771 1.76 pooka ## ------------ ##
772 1.76 pooka ## Core tests. ##
773 1.76 pooka ## ------------ ##
774 1.66 tsutsui
775 1.76 pooka EOF
776 1.1 tv
777 1.76 pooka # Keep a trace of the command line.
778 1.76 pooka # Strip out --no-create and --no-recursion so they do not pile up.
779 1.76 pooka # Also quote any args containing shell meta-characters.
780 1.76 pooka ac_configure_args=
781 1.76 pooka ac_sep=
782 1.76 pooka for ac_arg
783 1.76 pooka do
784 1.76 pooka case $ac_arg in
785 1.76 pooka -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786 1.76 pooka | --no-cr | --no-c) ;;
787 1.76 pooka -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788 1.76 pooka | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789 1.76 pooka *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790 1.76 pooka ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791 1.76 pooka ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792 1.76 pooka ac_sep=" " ;;
793 1.76 pooka *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
794 1.76 pooka ac_sep=" " ;;
795 1.76 pooka esac
796 1.76 pooka # Get rid of the leading space.
797 1.1 tv done
798 1.1 tv
799 1.1 tv # When interrupted or exit'd, cleanup temporary files, and complete
800 1.1 tv # config.log. We remove comments because anyway the quotes in there
801 1.1 tv # would cause problems or look ugly.
802 1.1 tv trap 'exit_status=$?
803 1.1 tv # Save into config.log some information that might help in debugging.
804 1.76 pooka echo >&5
805 1.76 pooka echo "## ----------------- ##" >&5
806 1.76 pooka echo "## Cache variables. ##" >&5
807 1.76 pooka echo "## ----------------- ##" >&5
808 1.76 pooka echo >&5
809 1.76 pooka # The following way of writing the cache mishandles newlines in values,
810 1.76 pooka {
811 1.1 tv (set) 2>&1 |
812 1.76 pooka case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
813 1.76 pooka *ac_space=\ *)
814 1.1 tv sed -n \
815 1.76 pooka "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
816 1.76 pooka s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
817 1.76 pooka ;;
818 1.1 tv *)
819 1.76 pooka sed -n \
820 1.76 pooka "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
821 1.1 tv ;;
822 1.76 pooka esac;
823 1.76 pooka } >&5
824 1.76 pooka sed "/^$/d" confdefs.h >conftest.log
825 1.76 pooka if test -s conftest.log; then
826 1.76 pooka echo >&5
827 1.76 pooka echo "## ------------ ##" >&5
828 1.76 pooka echo "## confdefs.h. ##" >&5
829 1.76 pooka echo "## ------------ ##" >&5
830 1.76 pooka echo >&5
831 1.76 pooka cat conftest.log >&5
832 1.76 pooka fi
833 1.76 pooka (echo; echo) >&5
834 1.76 pooka test "$ac_signal" != 0 &&
835 1.76 pooka echo "$as_me: caught signal $ac_signal" >&5
836 1.76 pooka echo "$as_me: exit $exit_status" >&5
837 1.76 pooka rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
838 1.1 tv exit $exit_status
839 1.76 pooka ' 0
840 1.1 tv for ac_signal in 1 2 13 15; do
841 1.76 pooka trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
842 1.1 tv done
843 1.1 tv ac_signal=0
844 1.1 tv
845 1.1 tv # confdefs.h avoids OS command line length limits that DEFS can exceed.
846 1.76 pooka rm -rf conftest* confdefs.h
847 1.76 pooka # AIX cpp loses on an empty file, so make sure it contains at least a newline.
848 1.76 pooka echo >confdefs.h
849 1.1 tv
850 1.1 tv # Let the site file select an alternate cache file if it wants to.
851 1.76 pooka # Prefer explicitly selected file to automatically selected ones.
852 1.76 pooka if test -z "$CONFIG_SITE"; then
853 1.76 pooka if test "x$prefix" != xNONE; then
854 1.76 pooka CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 1.76 pooka else
856 1.76 pooka CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
857 1.76 pooka fi
858 1.1 tv fi
859 1.76 pooka for ac_site_file in $CONFIG_SITE; do
860 1.76 pooka if test -r "$ac_site_file"; then
861 1.76 pooka { echo "$as_me:861: loading site script $ac_site_file" >&5
862 1.76 pooka echo "$as_me: loading site script $ac_site_file" >&6;}
863 1.76 pooka cat "$ac_site_file" >&5
864 1.76 pooka . "$ac_site_file"
865 1.1 tv fi
866 1.1 tv done
867 1.1 tv
868 1.1 tv if test -r "$cache_file"; then
869 1.76 pooka # Some versions of bash will fail to source /dev/null (special
870 1.76 pooka # files actually), so we avoid doing that.
871 1.76 pooka if test -f "$cache_file"; then
872 1.76 pooka { echo "$as_me:872: loading cache $cache_file" >&5
873 1.76 pooka echo "$as_me: loading cache $cache_file" >&6;}
874 1.1 tv case $cache_file in
875 1.76 pooka [\\/]* | ?:[\\/]* ) . $cache_file;;
876 1.76 pooka *) . ./$cache_file;;
877 1.1 tv esac
878 1.1 tv fi
879 1.1 tv else
880 1.76 pooka { echo "$as_me:880: creating cache $cache_file" >&5
881 1.76 pooka echo "$as_me: creating cache $cache_file" >&6;}
882 1.1 tv >$cache_file
883 1.1 tv fi
884 1.1 tv
885 1.1 tv # Check that the precious variables saved in the cache have kept the same
886 1.1 tv # value.
887 1.1 tv ac_cache_corrupted=false
888 1.76 pooka for ac_var in `(set) 2>&1 |
889 1.76 pooka sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
890 1.1 tv eval ac_old_set=\$ac_cv_env_${ac_var}_set
891 1.1 tv eval ac_new_set=\$ac_env_${ac_var}_set
892 1.76 pooka eval ac_old_val="\$ac_cv_env_${ac_var}_value"
893 1.76 pooka eval ac_new_val="\$ac_env_${ac_var}_value"
894 1.1 tv case $ac_old_set,$ac_new_set in
895 1.1 tv set,)
896 1.76 pooka { echo "$as_me:896: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
897 1.76 pooka echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
898 1.1 tv ac_cache_corrupted=: ;;
899 1.1 tv ,set)
900 1.76 pooka { echo "$as_me:900: error: \`$ac_var' was not set in the previous run" >&5
901 1.76 pooka echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
902 1.1 tv ac_cache_corrupted=: ;;
903 1.1 tv ,);;
904 1.1 tv *)
905 1.1 tv if test "x$ac_old_val" != "x$ac_new_val"; then
906 1.76 pooka { echo "$as_me:906: error: \`$ac_var' has changed since the previous run:" >&5
907 1.76 pooka echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
908 1.76 pooka { echo "$as_me:908: former value: $ac_old_val" >&5
909 1.76 pooka echo "$as_me: former value: $ac_old_val" >&2;}
910 1.76 pooka { echo "$as_me:910: current value: $ac_new_val" >&5
911 1.76 pooka echo "$as_me: current value: $ac_new_val" >&2;}
912 1.76 pooka ac_cache_corrupted=:
913 1.1 tv fi;;
914 1.1 tv esac
915 1.76 pooka # Pass precious variables to config.status. It doesn't matter if
916 1.76 pooka # we pass some twice (in addition to the command line arguments).
917 1.1 tv if test "$ac_new_set" = set; then
918 1.1 tv case $ac_new_val in
919 1.76 pooka *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
920 1.76 pooka ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
921 1.76 pooka ac_configure_args="$ac_configure_args '$ac_arg'"
922 1.76 pooka ;;
923 1.76 pooka *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
924 1.76 pooka ;;
925 1.1 tv esac
926 1.1 tv fi
927 1.1 tv done
928 1.1 tv if $ac_cache_corrupted; then
929 1.76 pooka { echo "$as_me:929: error: changes in the environment can compromise the build" >&5
930 1.76 pooka echo "$as_me: error: changes in the environment can compromise the build" >&2;}
931 1.76 pooka { { echo "$as_me:931: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
932 1.76 pooka echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
933 1.76 pooka { (exit 1); exit 1; }; }
934 1.76 pooka fi
935 1.1 tv
936 1.1 tv ac_ext=c
937 1.1 tv ac_cpp='$CPP $CPPFLAGS'
938 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
939 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
940 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
941 1.1 tv
942 1.76 pooka case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943 1.76 pooka *c*,-n*) ECHO_N= ECHO_C='
944 1.76 pooka ' ECHO_T=' ' ;;
945 1.76 pooka *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946 1.76 pooka *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
947 1.76 pooka esac
948 1.76 pooka echo "#! $SHELL" >conftest.sh
949 1.76 pooka echo "exit 0" >>conftest.sh
950 1.76 pooka chmod +x conftest.sh
951 1.76 pooka if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952 1.76 pooka (PATH=".;."; conftest.sh) 2>&5
953 1.76 pooka ac_status=$?
954 1.76 pooka echo "$as_me:954: \$? = $ac_status" >&5
955 1.76 pooka (exit $ac_status); }; then
956 1.76 pooka ac_path_separator=';'
957 1.76 pooka else
958 1.76 pooka ac_path_separator=:
959 1.76 pooka fi
960 1.76 pooka PATH_SEPARATOR="$ac_path_separator"
961 1.76 pooka rm -f conftest.sh
962 1.1 tv
963 1.63 apb ac_config_headers="$ac_config_headers nbtool_config.h"
964 1.1 tv
965 1.63 apb ac_config_files="$ac_config_files defs.mk"
966 1.1 tv
967 1.57 wiz # Autoheader header and footer
968 1.57 wiz
969 1.45 jmc # AC_NETBSD
970 1.20 bjh21
971 1.1 tv ac_ext=c
972 1.1 tv ac_cpp='$CPP $CPPFLAGS'
973 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
976 1.1 tv if test -n "$ac_tool_prefix"; then
977 1.1 tv # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
978 1.1 tv set dummy ${ac_tool_prefix}gcc; ac_word=$2
979 1.76 pooka echo "$as_me:979: checking for $ac_word" >&5
980 1.76 pooka echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
981 1.76 pooka if test "${ac_cv_prog_CC+set}" = set; then
982 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
983 1.1 tv else
984 1.1 tv if test -n "$CC"; then
985 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
986 1.1 tv else
987 1.76 pooka ac_save_IFS=$IFS; IFS=$ac_path_separator
988 1.76 pooka ac_dummy="$PATH"
989 1.76 pooka for ac_dir in $ac_dummy; do
990 1.76 pooka IFS=$ac_save_IFS
991 1.76 pooka test -z "$ac_dir" && ac_dir=.
992 1.76 pooka $as_executable_p "$ac_dir/$ac_word" || continue
993 1.76 pooka ac_cv_prog_CC="${ac_tool_prefix}gcc"
994 1.76 pooka echo "$as_me:994: found $ac_dir/$ac_word" >&5
995 1.76 pooka break
996 1.1 tv done
997 1.1 tv
998 1.1 tv fi
999 1.1 tv fi
1000 1.1 tv CC=$ac_cv_prog_CC
1001 1.1 tv if test -n "$CC"; then
1002 1.76 pooka echo "$as_me:1002: result: $CC" >&5
1003 1.76 pooka echo "${ECHO_T}$CC" >&6
1004 1.1 tv else
1005 1.76 pooka echo "$as_me:1005: result: no" >&5
1006 1.76 pooka echo "${ECHO_T}no" >&6
1007 1.1 tv fi
1008 1.1 tv
1009 1.1 tv fi
1010 1.1 tv if test -z "$ac_cv_prog_CC"; then
1011 1.1 tv ac_ct_CC=$CC
1012 1.1 tv # Extract the first word of "gcc", so it can be a program name with args.
1013 1.1 tv set dummy gcc; ac_word=$2
1014 1.76 pooka echo "$as_me:1014: checking for $ac_word" >&5
1015 1.76 pooka echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1016 1.76 pooka if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1017 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1018 1.1 tv else
1019 1.1 tv if test -n "$ac_ct_CC"; then
1020 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1021 1.1 tv else
1022 1.76 pooka ac_save_IFS=$IFS; IFS=$ac_path_separator
1023 1.76 pooka ac_dummy="$PATH"
1024 1.76 pooka for ac_dir in $ac_dummy; do
1025 1.76 pooka IFS=$ac_save_IFS
1026 1.76 pooka test -z "$ac_dir" && ac_dir=.
1027 1.76 pooka $as_executable_p "$ac_dir/$ac_word" || continue
1028 1.76 pooka ac_cv_prog_ac_ct_CC="gcc"
1029 1.76 pooka echo "$as_me:1029: found $ac_dir/$ac_word" >&5
1030 1.76 pooka break
1031 1.1 tv done
1032 1.1 tv
1033 1.1 tv fi
1034 1.1 tv fi
1035 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1036 1.1 tv if test -n "$ac_ct_CC"; then
1037 1.76 pooka echo "$as_me:1037: result: $ac_ct_CC" >&5
1038 1.76 pooka echo "${ECHO_T}$ac_ct_CC" >&6
1039 1.1 tv else
1040 1.76 pooka echo "$as_me:1040: result: no" >&5
1041 1.76 pooka echo "${ECHO_T}no" >&6
1042 1.1 tv fi
1043 1.1 tv
1044 1.76 pooka CC=$ac_ct_CC
1045 1.1 tv else
1046 1.1 tv CC="$ac_cv_prog_CC"
1047 1.1 tv fi
1048 1.1 tv
1049 1.1 tv if test -z "$CC"; then
1050 1.76 pooka if test -n "$ac_tool_prefix"; then
1051 1.76 pooka # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1052 1.1 tv set dummy ${ac_tool_prefix}cc; ac_word=$2
1053 1.76 pooka echo "$as_me:1053: checking for $ac_word" >&5
1054 1.76 pooka echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1055 1.76 pooka if test "${ac_cv_prog_CC+set}" = set; then
1056 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1057 1.1 tv else
1058 1.1 tv if test -n "$CC"; then
1059 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1060 1.1 tv else
1061 1.76 pooka ac_save_IFS=$IFS; IFS=$ac_path_separator
1062 1.76 pooka ac_dummy="$PATH"
1063 1.76 pooka for ac_dir in $ac_dummy; do
1064 1.76 pooka IFS=$ac_save_IFS
1065 1.76 pooka test -z "$ac_dir" && ac_dir=.
1066 1.76 pooka $as_executable_p "$ac_dir/$ac_word" || continue
1067 1.76 pooka ac_cv_prog_CC="${ac_tool_prefix}cc"
1068 1.76 pooka echo "$as_me:1068: found $ac_dir/$ac_word" >&5
1069 1.76 pooka break
1070 1.65 christos done
1071 1.1 tv
1072 1.1 tv fi
1073 1.1 tv fi
1074 1.1 tv CC=$ac_cv_prog_CC
1075 1.1 tv if test -n "$CC"; then
1076 1.76 pooka echo "$as_me:1076: result: $CC" >&5
1077 1.76 pooka echo "${ECHO_T}$CC" >&6
1078 1.76 pooka else
1079 1.76 pooka echo "$as_me:1079: result: no" >&5
1080 1.76 pooka echo "${ECHO_T}no" >&6
1081 1.76 pooka fi
1082 1.76 pooka
1083 1.76 pooka fi
1084 1.76 pooka if test -z "$ac_cv_prog_CC"; then
1085 1.76 pooka ac_ct_CC=$CC
1086 1.76 pooka # Extract the first word of "cc", so it can be a program name with args.
1087 1.76 pooka set dummy cc; ac_word=$2
1088 1.76 pooka echo "$as_me:1088: checking for $ac_word" >&5
1089 1.76 pooka echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1090 1.76 pooka if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1091 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1092 1.76 pooka else
1093 1.76 pooka if test -n "$ac_ct_CC"; then
1094 1.76 pooka ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1095 1.76 pooka else
1096 1.76 pooka ac_save_IFS=$IFS; IFS=$ac_path_separator
1097 1.76 pooka ac_dummy="$PATH"
1098 1.76 pooka for ac_dir in $ac_dummy; do
1099 1.76 pooka IFS=$ac_save_IFS
1100 1.76 pooka test -z "$ac_dir" && ac_dir=.
1101 1.76 pooka $as_executable_p "$ac_dir/$ac_word" || continue
1102 1.76 pooka ac_cv_prog_ac_ct_CC="cc"
1103 1.76 pooka echo "$as_me:1103: found $ac_dir/$ac_word" >&5
1104 1.76 pooka break
1105 1.76 pooka done
1106 1.76 pooka
1107 1.76 pooka fi
1108 1.76 pooka fi
1109 1.76 pooka ac_ct_CC=$ac_cv_prog_ac_ct_CC
1110 1.76 pooka if test -n "$ac_ct_CC"; then
1111 1.76 pooka echo "$as_me:1111: result: $ac_ct_CC" >&5
1112 1.76 pooka echo "${ECHO_T}$ac_ct_CC" >&6
1113 1.66 tsutsui else
1114 1.76 pooka echo "$as_me:1114: result: no" >&5
1115 1.76 pooka echo "${ECHO_T}no" >&6
1116 1.66 tsutsui fi
1117 1.66 tsutsui
1118 1.76 pooka CC=$ac_ct_CC
1119 1.76 pooka else
1120 1.76 pooka CC="$ac_cv_prog_CC"
1121 1.76 pooka fi
1122 1.1 tv
1123 1.1 tv fi
1124 1.1 tv if test -z "$CC"; then
1125 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
1126 1.1 tv set dummy cc; ac_word=$2
1127 1.76 pooka echo "$as_me:1127: checking for $ac_word" >&5
1128 1.76 pooka echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1129 1.76 pooka if test "${ac_cv_prog_CC+set}" = set; then
1130 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1131 1.1 tv else
1132 1.1 tv if test -n "$CC"; then
1133 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1134 1.1 tv else
1135 1.1 tv ac_prog_rejected=no
1136 1.76 pooka ac_save_IFS=$IFS; IFS=$ac_path_separator
1137 1.76 pooka ac_dummy="$PATH"
1138 1.76 pooka for ac_dir in $ac_dummy; do
1139 1.76 pooka IFS=$ac_save_IFS
1140 1.76 pooka test -z "$ac_dir" && ac_dir=.
1141 1.76 pooka $as_executable_p "$ac_dir/$ac_word" || continue
1142 1.76 pooka if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1143 1.76 pooka ac_prog_rejected=yes
1144 1.76 pooka continue
1145 1.76 pooka fi
1146 1.76 pooka ac_cv_prog_CC="cc"
1147 1.76 pooka echo "$as_me:1147: found $ac_dir/$ac_word" >&5
1148 1.76 pooka break
1149 1.65 christos done
1150 1.1 tv
1151 1.1 tv if test $ac_prog_rejected = yes; then
1152 1.1 tv # We found a bogon in the path, so make sure we never use it.
1153 1.1 tv set dummy $ac_cv_prog_CC
1154 1.1 tv shift
1155 1.1 tv if test $# != 0; then
1156 1.1 tv # We chose a different compiler from the bogus one.
1157 1.1 tv # However, it has the same basename, so the bogon will be chosen
1158 1.1 tv # first if we set CC to just the basename; use the full file name.
1159 1.1 tv shift
1160 1.76 pooka set dummy "$ac_dir/$ac_word" ${1+"$@"}
1161 1.76 pooka shift
1162 1.76 pooka ac_cv_prog_CC="$@"
1163 1.1 tv fi
1164 1.1 tv fi
1165 1.1 tv fi
1166 1.1 tv fi
1167 1.1 tv CC=$ac_cv_prog_CC
1168 1.1 tv if test -n "$CC"; then
1169 1.76 pooka echo "$as_me:1169: result: $CC" >&5
1170 1.76 pooka echo "${ECHO_T}$CC" >&6
1171 1.1 tv else
1172 1.76 pooka echo "$as_me:1172: result: no" >&5
1173 1.76 pooka echo "${ECHO_T}no" >&6
1174 1.1 tv fi
1175 1.1 tv
1176 1.1 tv fi
1177 1.1 tv if test -z "$CC"; then
1178 1.1 tv if test -n "$ac_tool_prefix"; then
1179 1.76 pooka for ac_prog in cl
1180 1.1 tv do
1181 1.1 tv # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1182 1.1 tv set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1183 1.76 pooka echo "$as_me:1183: checking for $ac_word" >&5
1184 1.76 pooka echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185 1.76 pooka if test "${ac_cv_prog_CC+set}" = set; then
1186 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1187 1.1 tv else
1188 1.1 tv if test -n "$CC"; then
1189 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1190 1.1 tv else
1191 1.76 pooka ac_save_IFS=$IFS; IFS=$ac_path_separator
1192 1.76 pooka ac_dummy="$PATH"
1193 1.76 pooka for ac_dir in $ac_dummy; do
1194 1.76 pooka IFS=$ac_save_IFS
1195 1.76 pooka test -z "$ac_dir" && ac_dir=.
1196 1.76 pooka $as_executable_p "$ac_dir/$ac_word" || continue
1197 1.76 pooka ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1198 1.76 pooka echo "$as_me:1198: found $ac_dir/$ac_word" >&5
1199 1.76 pooka break
1200 1.1 tv done
1201 1.1 tv
1202 1.1 tv fi
1203 1.1 tv fi
1204 1.1 tv CC=$ac_cv_prog_CC
1205 1.1 tv if test -n "$CC"; then
1206 1.76 pooka echo "$as_me:1206: result: $CC" >&5
1207 1.76 pooka echo "${ECHO_T}$CC" >&6
1208 1.1 tv else
1209 1.76 pooka echo "$as_me:1209: result: no" >&5
1210 1.76 pooka echo "${ECHO_T}no" >&6
1211 1.1 tv fi
1212 1.1 tv
1213 1.1 tv test -n "$CC" && break
1214 1.1 tv done
1215 1.1 tv fi
1216 1.1 tv if test -z "$CC"; then
1217 1.1 tv ac_ct_CC=$CC
1218 1.76 pooka for ac_prog in cl
1219 1.1 tv do
1220 1.1 tv # Extract the first word of "$ac_prog", so it can be a program name with args.
1221 1.1 tv set dummy $ac_prog; ac_word=$2
1222 1.76 pooka echo "$as_me:1222: checking for $ac_word" >&5
1223 1.76 pooka echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 1.76 pooka if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1225 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1226 1.1 tv else
1227 1.1 tv if test -n "$ac_ct_CC"; then
1228 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1229 1.1 tv else
1230 1.76 pooka ac_save_IFS=$IFS; IFS=$ac_path_separator
1231 1.76 pooka ac_dummy="$PATH"
1232 1.76 pooka for ac_dir in $ac_dummy; do
1233 1.76 pooka IFS=$ac_save_IFS
1234 1.76 pooka test -z "$ac_dir" && ac_dir=.
1235 1.76 pooka $as_executable_p "$ac_dir/$ac_word" || continue
1236 1.76 pooka ac_cv_prog_ac_ct_CC="$ac_prog"
1237 1.76 pooka echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1238 1.76 pooka break
1239 1.1 tv done
1240 1.1 tv
1241 1.1 tv fi
1242 1.1 tv fi
1243 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1244 1.1 tv if test -n "$ac_ct_CC"; then
1245 1.76 pooka echo "$as_me:1245: result: $ac_ct_CC" >&5
1246 1.76 pooka echo "${ECHO_T}$ac_ct_CC" >&6
1247 1.1 tv else
1248 1.76 pooka echo "$as_me:1248: result: no" >&5
1249 1.76 pooka echo "${ECHO_T}no" >&6
1250 1.1 tv fi
1251 1.1 tv
1252 1.1 tv test -n "$ac_ct_CC" && break
1253 1.1 tv done
1254 1.1 tv
1255 1.76 pooka CC=$ac_ct_CC
1256 1.1 tv fi
1257 1.1 tv
1258 1.1 tv fi
1259 1.1 tv
1260 1.76 pooka test -z "$CC" && { { echo "$as_me:1260: error: no acceptable cc found in \$PATH" >&5
1261 1.76 pooka echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1262 1.76 pooka { (exit 1); exit 1; }; }
1263 1.1 tv
1264 1.1 tv # Provide some information about the compiler.
1265 1.76 pooka echo "$as_me:1265:" \
1266 1.76 pooka "checking for C compiler version" >&5
1267 1.76 pooka ac_compiler=`set X $ac_compile; echo $2`
1268 1.76 pooka { (eval echo "$as_me:1268: \"$ac_compiler --version </dev/null >&5\"") >&5
1269 1.76 pooka (eval $ac_compiler --version </dev/null >&5) 2>&5
1270 1.76 pooka ac_status=$?
1271 1.76 pooka echo "$as_me:1271: \$? = $ac_status" >&5
1272 1.76 pooka (exit $ac_status); }
1273 1.76 pooka { (eval echo "$as_me:1273: \"$ac_compiler -v </dev/null >&5\"") >&5
1274 1.76 pooka (eval $ac_compiler -v </dev/null >&5) 2>&5
1275 1.76 pooka ac_status=$?
1276 1.76 pooka echo "$as_me:1276: \$? = $ac_status" >&5
1277 1.76 pooka (exit $ac_status); }
1278 1.76 pooka { (eval echo "$as_me:1278: \"$ac_compiler -V </dev/null >&5\"") >&5
1279 1.76 pooka (eval $ac_compiler -V </dev/null >&5) 2>&5
1280 1.1 tv ac_status=$?
1281 1.76 pooka echo "$as_me:1281: \$? = $ac_status" >&5
1282 1.76 pooka (exit $ac_status); }
1283 1.1 tv
1284 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1285 1.76 pooka #line 1285 "configure"
1286 1.76 pooka #include "confdefs.h"
1287 1.1 tv
1288 1.1 tv int
1289 1.1 tv main ()
1290 1.1 tv {
1291 1.1 tv
1292 1.1 tv ;
1293 1.1 tv return 0;
1294 1.1 tv }
1295 1.1 tv _ACEOF
1296 1.1 tv ac_clean_files_save=$ac_clean_files
1297 1.76 pooka ac_clean_files="$ac_clean_files a.out a.exe"
1298 1.1 tv # Try to create an executable without -o first, disregard a.out.
1299 1.1 tv # It will help us diagnose broken compilers, and finding out an intuition
1300 1.1 tv # of exeext.
1301 1.76 pooka echo "$as_me:1301: checking for C compiler default output" >&5
1302 1.76 pooka echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1303 1.76 pooka ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1304 1.76 pooka if { (eval echo "$as_me:1304: \"$ac_link_default\"") >&5
1305 1.76 pooka (eval $ac_link_default) 2>&5
1306 1.76 pooka ac_status=$?
1307 1.76 pooka echo "$as_me:1307: \$? = $ac_status" >&5
1308 1.76 pooka (exit $ac_status); }; then
1309 1.76 pooka # Find the output, starting from the most likely. This scheme is
1310 1.76 pooka # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1311 1.76 pooka # resort.
1312 1.76 pooka for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1313 1.76 pooka ls a.out conftest 2>/dev/null;
1314 1.76 pooka ls a.* conftest.* 2>/dev/null`; do
1315 1.74 christos case $ac_file in
1316 1.76 pooka *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1317 1.76 pooka a.out ) # We found the default executable, but exeext='' is most
1318 1.76 pooka # certainly right.
1319 1.76 pooka break;;
1320 1.76 pooka *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1321 1.76 pooka # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1322 1.76 pooka export ac_cv_exeext
1323 1.76 pooka break;;
1324 1.76 pooka * ) break;;
1325 1.1 tv esac
1326 1.1 tv done
1327 1.1 tv else
1328 1.76 pooka echo "$as_me: failed program was:" >&5
1329 1.76 pooka cat conftest.$ac_ext >&5
1330 1.76 pooka { { echo "$as_me:1330: error: C compiler cannot create executables" >&5
1331 1.76 pooka echo "$as_me: error: C compiler cannot create executables" >&2;}
1332 1.76 pooka { (exit 77); exit 77; }; }
1333 1.1 tv fi
1334 1.1 tv
1335 1.76 pooka ac_exeext=$ac_cv_exeext
1336 1.76 pooka echo "$as_me:1336: result: $ac_file" >&5
1337 1.76 pooka echo "${ECHO_T}$ac_file" >&6
1338 1.76 pooka
1339 1.76 pooka # Check the compiler produces executables we can run. If not, either
1340 1.76 pooka # the compiler is broken, or we cross compile.
1341 1.76 pooka echo "$as_me:1341: checking whether the C compiler works" >&5
1342 1.76 pooka echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1343 1.76 pooka # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1344 1.76 pooka # If not cross compiling, check that we can run a simple program.
1345 1.76 pooka if test "$cross_compiling" != yes; then
1346 1.76 pooka if { ac_try='./$ac_file'
1347 1.76 pooka { (eval echo "$as_me:1347: \"$ac_try\"") >&5
1348 1.76 pooka (eval $ac_try) 2>&5
1349 1.76 pooka ac_status=$?
1350 1.76 pooka echo "$as_me:1350: \$? = $ac_status" >&5
1351 1.76 pooka (exit $ac_status); }; }; then
1352 1.76 pooka cross_compiling=no
1353 1.76 pooka else
1354 1.76 pooka if test "$cross_compiling" = maybe; then
1355 1.76 pooka cross_compiling=yes
1356 1.76 pooka else
1357 1.76 pooka { { echo "$as_me:1357: error: cannot run C compiled programs.
1358 1.76 pooka If you meant to cross compile, use \`--host'." >&5
1359 1.76 pooka echo "$as_me: error: cannot run C compiled programs.
1360 1.76 pooka If you meant to cross compile, use \`--host'." >&2;}
1361 1.76 pooka { (exit 1); exit 1; }; }
1362 1.76 pooka fi
1363 1.76 pooka fi
1364 1.74 christos fi
1365 1.76 pooka echo "$as_me:1365: result: yes" >&5
1366 1.76 pooka echo "${ECHO_T}yes" >&6
1367 1.1 tv
1368 1.76 pooka rm -f a.out a.exe conftest$ac_cv_exeext
1369 1.1 tv ac_clean_files=$ac_clean_files_save
1370 1.76 pooka # Check the compiler produces executables we can run. If not, either
1371 1.76 pooka # the compiler is broken, or we cross compile.
1372 1.76 pooka echo "$as_me:1372: checking whether we are cross compiling" >&5
1373 1.76 pooka echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1374 1.76 pooka echo "$as_me:1374: result: $cross_compiling" >&5
1375 1.76 pooka echo "${ECHO_T}$cross_compiling" >&6
1376 1.76 pooka
1377 1.76 pooka echo "$as_me:1377: checking for executable suffix" >&5
1378 1.76 pooka echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1379 1.76 pooka if { (eval echo "$as_me:1379: \"$ac_link\"") >&5
1380 1.76 pooka (eval $ac_link) 2>&5
1381 1.1 tv ac_status=$?
1382 1.76 pooka echo "$as_me:1382: \$? = $ac_status" >&5
1383 1.76 pooka (exit $ac_status); }; then
1384 1.1 tv # If both `conftest.exe' and `conftest' are `present' (well, observable)
1385 1.1 tv # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1386 1.1 tv # work properly (i.e., refer to `conftest.exe'), while it won't with
1387 1.1 tv # `rm'.
1388 1.76 pooka for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1389 1.1 tv case $ac_file in
1390 1.76 pooka *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1391 1.1 tv *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1392 1.76 pooka export ac_cv_exeext
1393 1.76 pooka break;;
1394 1.1 tv * ) break;;
1395 1.1 tv esac
1396 1.1 tv done
1397 1.1 tv else
1398 1.76 pooka { { echo "$as_me:1398: error: cannot compute EXEEXT: cannot compile and link" >&5
1399 1.76 pooka echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1400 1.76 pooka { (exit 1); exit 1; }; }
1401 1.76 pooka fi
1402 1.76 pooka
1403 1.76 pooka rm -f conftest$ac_cv_exeext
1404 1.76 pooka echo "$as_me:1404: result: $ac_cv_exeext" >&5
1405 1.76 pooka echo "${ECHO_T}$ac_cv_exeext" >&6
1406 1.1 tv
1407 1.1 tv rm -f conftest.$ac_ext
1408 1.1 tv EXEEXT=$ac_cv_exeext
1409 1.1 tv ac_exeext=$EXEEXT
1410 1.76 pooka echo "$as_me:1410: checking for object suffix" >&5
1411 1.76 pooka echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1412 1.76 pooka if test "${ac_cv_objext+set}" = set; then
1413 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1414 1.76 pooka else
1415 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1416 1.76 pooka #line 1416 "configure"
1417 1.76 pooka #include "confdefs.h"
1418 1.76 pooka
1419 1.1 tv int
1420 1.1 tv main ()
1421 1.1 tv {
1422 1.1 tv
1423 1.1 tv ;
1424 1.1 tv return 0;
1425 1.1 tv }
1426 1.1 tv _ACEOF
1427 1.76 pooka rm -f conftest.o conftest.obj
1428 1.76 pooka if { (eval echo "$as_me:1428: \"$ac_compile\"") >&5
1429 1.76 pooka (eval $ac_compile) 2>&5
1430 1.1 tv ac_status=$?
1431 1.76 pooka echo "$as_me:1431: \$? = $ac_status" >&5
1432 1.76 pooka (exit $ac_status); }; then
1433 1.76 pooka for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1434 1.76 pooka case $ac_file in
1435 1.76 pooka *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1436 1.76 pooka *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1437 1.76 pooka break;;
1438 1.76 pooka esac
1439 1.76 pooka done
1440 1.76 pooka else
1441 1.76 pooka echo "$as_me: failed program was:" >&5
1442 1.76 pooka cat conftest.$ac_ext >&5
1443 1.76 pooka { { echo "$as_me:1443: error: cannot compute OBJEXT: cannot compile" >&5
1444 1.76 pooka echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1445 1.76 pooka { (exit 1); exit 1; }; }
1446 1.74 christos fi
1447 1.74 christos
1448 1.1 tv rm -f conftest.$ac_cv_objext conftest.$ac_ext
1449 1.1 tv fi
1450 1.76 pooka echo "$as_me:1450: result: $ac_cv_objext" >&5
1451 1.76 pooka echo "${ECHO_T}$ac_cv_objext" >&6
1452 1.1 tv OBJEXT=$ac_cv_objext
1453 1.1 tv ac_objext=$OBJEXT
1454 1.76 pooka echo "$as_me:1454: checking whether we are using the GNU C compiler" >&5
1455 1.76 pooka echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1456 1.76 pooka if test "${ac_cv_c_compiler_gnu+set}" = set; then
1457 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1458 1.76 pooka else
1459 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1460 1.76 pooka #line 1460 "configure"
1461 1.76 pooka #include "confdefs.h"
1462 1.1 tv
1463 1.1 tv int
1464 1.1 tv main ()
1465 1.1 tv {
1466 1.1 tv #ifndef __GNUC__
1467 1.1 tv choke me
1468 1.1 tv #endif
1469 1.1 tv
1470 1.1 tv ;
1471 1.1 tv return 0;
1472 1.1 tv }
1473 1.1 tv _ACEOF
1474 1.76 pooka rm -f conftest.$ac_objext
1475 1.76 pooka if { (eval echo "$as_me:1475: \"$ac_compile\"") >&5
1476 1.76 pooka (eval $ac_compile) 2>&5
1477 1.76 pooka ac_status=$?
1478 1.76 pooka echo "$as_me:1478: \$? = $ac_status" >&5
1479 1.76 pooka (exit $ac_status); } &&
1480 1.76 pooka { ac_try='test -s conftest.$ac_objext'
1481 1.76 pooka { (eval echo "$as_me:1481: \"$ac_try\"") >&5
1482 1.76 pooka (eval $ac_try) 2>&5
1483 1.76 pooka ac_status=$?
1484 1.76 pooka echo "$as_me:1484: \$? = $ac_status" >&5
1485 1.76 pooka (exit $ac_status); }; }; then
1486 1.1 tv ac_compiler_gnu=yes
1487 1.1 tv else
1488 1.76 pooka echo "$as_me: failed program was:" >&5
1489 1.76 pooka cat conftest.$ac_ext >&5
1490 1.76 pooka ac_compiler_gnu=no
1491 1.1 tv fi
1492 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
1493 1.1 tv ac_cv_c_compiler_gnu=$ac_compiler_gnu
1494 1.1 tv
1495 1.1 tv fi
1496 1.76 pooka echo "$as_me:1496: result: $ac_cv_c_compiler_gnu" >&5
1497 1.76 pooka echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1498 1.76 pooka GCC=`test $ac_compiler_gnu = yes && echo yes`
1499 1.1 tv ac_test_CFLAGS=${CFLAGS+set}
1500 1.1 tv ac_save_CFLAGS=$CFLAGS
1501 1.76 pooka CFLAGS="-g"
1502 1.76 pooka echo "$as_me:1502: checking whether $CC accepts -g" >&5
1503 1.76 pooka echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1504 1.76 pooka if test "${ac_cv_prog_cc_g+set}" = set; then
1505 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1506 1.76 pooka else
1507 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1508 1.76 pooka #line 1508 "configure"
1509 1.76 pooka #include "confdefs.h"
1510 1.1 tv
1511 1.1 tv int
1512 1.1 tv main ()
1513 1.1 tv {
1514 1.1 tv
1515 1.1 tv ;
1516 1.1 tv return 0;
1517 1.1 tv }
1518 1.1 tv _ACEOF
1519 1.76 pooka rm -f conftest.$ac_objext
1520 1.76 pooka if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5
1521 1.76 pooka (eval $ac_compile) 2>&5
1522 1.76 pooka ac_status=$?
1523 1.76 pooka echo "$as_me:1523: \$? = $ac_status" >&5
1524 1.76 pooka (exit $ac_status); } &&
1525 1.76 pooka { ac_try='test -s conftest.$ac_objext'
1526 1.76 pooka { (eval echo "$as_me:1526: \"$ac_try\"") >&5
1527 1.76 pooka (eval $ac_try) 2>&5
1528 1.76 pooka ac_status=$?
1529 1.76 pooka echo "$as_me:1529: \$? = $ac_status" >&5
1530 1.76 pooka (exit $ac_status); }; }; then
1531 1.1 tv ac_cv_prog_cc_g=yes
1532 1.1 tv else
1533 1.76 pooka echo "$as_me: failed program was:" >&5
1534 1.76 pooka cat conftest.$ac_ext >&5
1535 1.76 pooka ac_cv_prog_cc_g=no
1536 1.66 tsutsui fi
1537 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
1538 1.66 tsutsui fi
1539 1.76 pooka echo "$as_me:1539: result: $ac_cv_prog_cc_g" >&5
1540 1.76 pooka echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1541 1.66 tsutsui if test "$ac_test_CFLAGS" = set; then
1542 1.66 tsutsui CFLAGS=$ac_save_CFLAGS
1543 1.66 tsutsui elif test $ac_cv_prog_cc_g = yes; then
1544 1.66 tsutsui if test "$GCC" = yes; then
1545 1.66 tsutsui CFLAGS="-g -O2"
1546 1.66 tsutsui else
1547 1.66 tsutsui CFLAGS="-g"
1548 1.66 tsutsui fi
1549 1.66 tsutsui else
1550 1.66 tsutsui if test "$GCC" = yes; then
1551 1.66 tsutsui CFLAGS="-O2"
1552 1.66 tsutsui else
1553 1.66 tsutsui CFLAGS=
1554 1.66 tsutsui fi
1555 1.66 tsutsui fi
1556 1.76 pooka # Some people use a C++ compiler to compile C. Since we use `exit',
1557 1.76 pooka # in C++ we need to declare it. In case someone uses the same compiler
1558 1.76 pooka # for both compiling C and C++ we need to have the C++ compiler decide
1559 1.76 pooka # the declaration of exit, since it's the most demanding environment.
1560 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1561 1.76 pooka #ifndef __cplusplus
1562 1.76 pooka choke me
1563 1.76 pooka #endif
1564 1.76 pooka _ACEOF
1565 1.76 pooka rm -f conftest.$ac_objext
1566 1.76 pooka if { (eval echo "$as_me:1566: \"$ac_compile\"") >&5
1567 1.76 pooka (eval $ac_compile) 2>&5
1568 1.76 pooka ac_status=$?
1569 1.76 pooka echo "$as_me:1569: \$? = $ac_status" >&5
1570 1.76 pooka (exit $ac_status); } &&
1571 1.76 pooka { ac_try='test -s conftest.$ac_objext'
1572 1.76 pooka { (eval echo "$as_me:1572: \"$ac_try\"") >&5
1573 1.76 pooka (eval $ac_try) 2>&5
1574 1.76 pooka ac_status=$?
1575 1.76 pooka echo "$as_me:1575: \$? = $ac_status" >&5
1576 1.76 pooka (exit $ac_status); }; }; then
1577 1.76 pooka for ac_declaration in \
1578 1.76 pooka ''\
1579 1.76 pooka '#include <stdlib.h>' \
1580 1.76 pooka 'extern "C" void std::exit (int) throw (); using std::exit;' \
1581 1.76 pooka 'extern "C" void std::exit (int); using std::exit;' \
1582 1.76 pooka 'extern "C" void exit (int) throw ();' \
1583 1.76 pooka 'extern "C" void exit (int);' \
1584 1.76 pooka 'void exit (int);'
1585 1.76 pooka do
1586 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1587 1.76 pooka #line 1587 "configure"
1588 1.76 pooka #include "confdefs.h"
1589 1.76 pooka #include <stdlib.h>
1590 1.76 pooka $ac_declaration
1591 1.76 pooka int
1592 1.76 pooka main ()
1593 1.74 christos {
1594 1.76 pooka exit (42);
1595 1.76 pooka ;
1596 1.76 pooka return 0;
1597 1.74 christos }
1598 1.76 pooka _ACEOF
1599 1.76 pooka rm -f conftest.$ac_objext
1600 1.76 pooka if { (eval echo "$as_me:1600: \"$ac_compile\"") >&5
1601 1.76 pooka (eval $ac_compile) 2>&5
1602 1.76 pooka ac_status=$?
1603 1.76 pooka echo "$as_me:1603: \$? = $ac_status" >&5
1604 1.76 pooka (exit $ac_status); } &&
1605 1.76 pooka { ac_try='test -s conftest.$ac_objext'
1606 1.76 pooka { (eval echo "$as_me:1606: \"$ac_try\"") >&5
1607 1.76 pooka (eval $ac_try) 2>&5
1608 1.76 pooka ac_status=$?
1609 1.76 pooka echo "$as_me:1609: \$? = $ac_status" >&5
1610 1.76 pooka (exit $ac_status); }; }; then
1611 1.76 pooka :
1612 1.76 pooka else
1613 1.76 pooka echo "$as_me: failed program was:" >&5
1614 1.76 pooka cat conftest.$ac_ext >&5
1615 1.76 pooka continue
1616 1.76 pooka fi
1617 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
1618 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1619 1.76 pooka #line 1619 "configure"
1620 1.76 pooka #include "confdefs.h"
1621 1.76 pooka $ac_declaration
1622 1.1 tv int
1623 1.1 tv main ()
1624 1.1 tv {
1625 1.76 pooka exit (42);
1626 1.1 tv ;
1627 1.1 tv return 0;
1628 1.1 tv }
1629 1.1 tv _ACEOF
1630 1.76 pooka rm -f conftest.$ac_objext
1631 1.76 pooka if { (eval echo "$as_me:1631: \"$ac_compile\"") >&5
1632 1.76 pooka (eval $ac_compile) 2>&5
1633 1.76 pooka ac_status=$?
1634 1.76 pooka echo "$as_me:1634: \$? = $ac_status" >&5
1635 1.76 pooka (exit $ac_status); } &&
1636 1.76 pooka { ac_try='test -s conftest.$ac_objext'
1637 1.76 pooka { (eval echo "$as_me:1637: \"$ac_try\"") >&5
1638 1.76 pooka (eval $ac_try) 2>&5
1639 1.76 pooka ac_status=$?
1640 1.76 pooka echo "$as_me:1640: \$? = $ac_status" >&5
1641 1.76 pooka (exit $ac_status); }; }; then
1642 1.76 pooka break
1643 1.76 pooka else
1644 1.76 pooka echo "$as_me: failed program was:" >&5
1645 1.76 pooka cat conftest.$ac_ext >&5
1646 1.65 christos fi
1647 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
1648 1.66 tsutsui done
1649 1.76 pooka rm -f conftest*
1650 1.76 pooka if test -n "$ac_declaration"; then
1651 1.76 pooka echo '#ifdef __cplusplus' >>confdefs.h
1652 1.76 pooka echo $ac_declaration >>confdefs.h
1653 1.76 pooka echo '#endif' >>confdefs.h
1654 1.1 tv fi
1655 1.1 tv
1656 1.76 pooka else
1657 1.76 pooka echo "$as_me: failed program was:" >&5
1658 1.76 pooka cat conftest.$ac_ext >&5
1659 1.65 christos fi
1660 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
1661 1.1 tv ac_ext=c
1662 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1663 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1664 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1665 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1666 1.1 tv
1667 1.1 tv ac_ext=c
1668 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1669 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672 1.76 pooka echo "$as_me:1672: checking how to run the C preprocessor" >&5
1673 1.76 pooka echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1674 1.1 tv # On Suns, sometimes $CPP names a directory.
1675 1.1 tv if test -n "$CPP" && test -d "$CPP"; then
1676 1.1 tv CPP=
1677 1.1 tv fi
1678 1.1 tv if test -z "$CPP"; then
1679 1.76 pooka if test "${ac_cv_prog_CPP+set}" = set; then
1680 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1681 1.1 tv else
1682 1.1 tv # Double quotes because CPP needs to be expanded
1683 1.1 tv for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1684 1.1 tv do
1685 1.1 tv ac_preproc_ok=false
1686 1.1 tv for ac_c_preproc_warn_flag in '' yes
1687 1.1 tv do
1688 1.1 tv # Use a header file that comes with gcc, so configuring glibc
1689 1.1 tv # with a fresh cross-compiler works.
1690 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
1691 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
1692 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1693 1.76 pooka #line 1693 "configure"
1694 1.76 pooka #include "confdefs.h"
1695 1.76 pooka #include <assert.h>
1696 1.76 pooka Syntax error
1697 1.48 jmc _ACEOF
1698 1.76 pooka if { (eval echo "$as_me:1698: \"$ac_cpp conftest.$ac_ext\"") >&5
1699 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1700 1.76 pooka ac_status=$?
1701 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
1702 1.76 pooka rm -f conftest.er1
1703 1.76 pooka cat conftest.err >&5
1704 1.76 pooka echo "$as_me:1704: \$? = $ac_status" >&5
1705 1.76 pooka (exit $ac_status); } >/dev/null; then
1706 1.76 pooka if test -s conftest.err; then
1707 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
1708 1.76 pooka else
1709 1.76 pooka ac_cpp_err=
1710 1.76 pooka fi
1711 1.76 pooka else
1712 1.76 pooka ac_cpp_err=yes
1713 1.76 pooka fi
1714 1.76 pooka if test -z "$ac_cpp_err"; then
1715 1.76 pooka :
1716 1.1 tv else
1717 1.76 pooka echo "$as_me: failed program was:" >&5
1718 1.76 pooka cat conftest.$ac_ext >&5
1719 1.1 tv # Broken: fails on valid input.
1720 1.1 tv continue
1721 1.1 tv fi
1722 1.76 pooka rm -f conftest.err conftest.$ac_ext
1723 1.1 tv
1724 1.76 pooka # OK, works on sane cases. Now check whether non-existent headers
1725 1.1 tv # can be detected and how.
1726 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1727 1.76 pooka #line 1727 "configure"
1728 1.76 pooka #include "confdefs.h"
1729 1.1 tv #include <ac_nonexistent.h>
1730 1.1 tv _ACEOF
1731 1.76 pooka if { (eval echo "$as_me:1731: \"$ac_cpp conftest.$ac_ext\"") >&5
1732 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1733 1.76 pooka ac_status=$?
1734 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
1735 1.76 pooka rm -f conftest.er1
1736 1.76 pooka cat conftest.err >&5
1737 1.76 pooka echo "$as_me:1737: \$? = $ac_status" >&5
1738 1.76 pooka (exit $ac_status); } >/dev/null; then
1739 1.76 pooka if test -s conftest.err; then
1740 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
1741 1.76 pooka else
1742 1.76 pooka ac_cpp_err=
1743 1.76 pooka fi
1744 1.76 pooka else
1745 1.76 pooka ac_cpp_err=yes
1746 1.76 pooka fi
1747 1.76 pooka if test -z "$ac_cpp_err"; then
1748 1.1 tv # Broken: success on invalid input.
1749 1.1 tv continue
1750 1.1 tv else
1751 1.76 pooka echo "$as_me: failed program was:" >&5
1752 1.76 pooka cat conftest.$ac_ext >&5
1753 1.1 tv # Passes both tests.
1754 1.1 tv ac_preproc_ok=:
1755 1.1 tv break
1756 1.1 tv fi
1757 1.76 pooka rm -f conftest.err conftest.$ac_ext
1758 1.1 tv
1759 1.1 tv done
1760 1.1 tv # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1761 1.76 pooka rm -f conftest.err conftest.$ac_ext
1762 1.76 pooka if $ac_preproc_ok; then
1763 1.1 tv break
1764 1.1 tv fi
1765 1.1 tv
1766 1.1 tv done
1767 1.1 tv ac_cv_prog_CPP=$CPP
1768 1.1 tv
1769 1.1 tv fi
1770 1.1 tv CPP=$ac_cv_prog_CPP
1771 1.1 tv else
1772 1.1 tv ac_cv_prog_CPP=$CPP
1773 1.1 tv fi
1774 1.76 pooka echo "$as_me:1774: result: $CPP" >&5
1775 1.76 pooka echo "${ECHO_T}$CPP" >&6
1776 1.1 tv ac_preproc_ok=false
1777 1.1 tv for ac_c_preproc_warn_flag in '' yes
1778 1.1 tv do
1779 1.1 tv # Use a header file that comes with gcc, so configuring glibc
1780 1.1 tv # with a fresh cross-compiler works.
1781 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
1782 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
1783 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1784 1.76 pooka #line 1784 "configure"
1785 1.76 pooka #include "confdefs.h"
1786 1.76 pooka #include <assert.h>
1787 1.76 pooka Syntax error
1788 1.53 dogcow _ACEOF
1789 1.76 pooka if { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5
1790 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1791 1.76 pooka ac_status=$?
1792 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
1793 1.76 pooka rm -f conftest.er1
1794 1.76 pooka cat conftest.err >&5
1795 1.76 pooka echo "$as_me:1795: \$? = $ac_status" >&5
1796 1.76 pooka (exit $ac_status); } >/dev/null; then
1797 1.76 pooka if test -s conftest.err; then
1798 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
1799 1.76 pooka else
1800 1.76 pooka ac_cpp_err=
1801 1.76 pooka fi
1802 1.76 pooka else
1803 1.76 pooka ac_cpp_err=yes
1804 1.76 pooka fi
1805 1.76 pooka if test -z "$ac_cpp_err"; then
1806 1.76 pooka :
1807 1.1 tv else
1808 1.76 pooka echo "$as_me: failed program was:" >&5
1809 1.76 pooka cat conftest.$ac_ext >&5
1810 1.1 tv # Broken: fails on valid input.
1811 1.1 tv continue
1812 1.1 tv fi
1813 1.76 pooka rm -f conftest.err conftest.$ac_ext
1814 1.1 tv
1815 1.76 pooka # OK, works on sane cases. Now check whether non-existent headers
1816 1.1 tv # can be detected and how.
1817 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1818 1.76 pooka #line 1818 "configure"
1819 1.76 pooka #include "confdefs.h"
1820 1.1 tv #include <ac_nonexistent.h>
1821 1.1 tv _ACEOF
1822 1.76 pooka if { (eval echo "$as_me:1822: \"$ac_cpp conftest.$ac_ext\"") >&5
1823 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1824 1.76 pooka ac_status=$?
1825 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
1826 1.76 pooka rm -f conftest.er1
1827 1.76 pooka cat conftest.err >&5
1828 1.76 pooka echo "$as_me:1828: \$? = $ac_status" >&5
1829 1.76 pooka (exit $ac_status); } >/dev/null; then
1830 1.76 pooka if test -s conftest.err; then
1831 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
1832 1.76 pooka else
1833 1.76 pooka ac_cpp_err=
1834 1.76 pooka fi
1835 1.76 pooka else
1836 1.76 pooka ac_cpp_err=yes
1837 1.76 pooka fi
1838 1.76 pooka if test -z "$ac_cpp_err"; then
1839 1.45 jmc # Broken: success on invalid input.
1840 1.45 jmc continue
1841 1.45 jmc else
1842 1.76 pooka echo "$as_me: failed program was:" >&5
1843 1.76 pooka cat conftest.$ac_ext >&5
1844 1.45 jmc # Passes both tests.
1845 1.45 jmc ac_preproc_ok=:
1846 1.45 jmc break
1847 1.45 jmc fi
1848 1.76 pooka rm -f conftest.err conftest.$ac_ext
1849 1.45 jmc
1850 1.45 jmc done
1851 1.45 jmc # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1852 1.76 pooka rm -f conftest.err conftest.$ac_ext
1853 1.76 pooka if $ac_preproc_ok; then
1854 1.76 pooka :
1855 1.45 jmc else
1856 1.76 pooka { { echo "$as_me:1856: error: C preprocessor \"$CPP\" fails sanity check" >&5
1857 1.76 pooka echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1858 1.76 pooka { (exit 1); exit 1; }; }
1859 1.45 jmc fi
1860 1.45 jmc
1861 1.45 jmc ac_ext=c
1862 1.45 jmc ac_cpp='$CPP $CPPFLAGS'
1863 1.45 jmc ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864 1.45 jmc ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865 1.45 jmc ac_compiler_gnu=$ac_cv_c_compiler_gnu
1866 1.45 jmc
1867 1.76 pooka echo "$as_me:1867: checking for NetBSD" >&5
1868 1.76 pooka echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6
1869 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1870 1.76 pooka #line 1870 "configure"
1871 1.76 pooka #include "confdefs.h"
1872 1.45 jmc #ifdef __NetBSD__
1873 1.45 jmc yes
1874 1.45 jmc #endif
1875 1.45 jmc
1876 1.45 jmc _ACEOF
1877 1.45 jmc if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1878 1.76 pooka egrep "yes" >/dev/null 2>&1; then
1879 1.76 pooka echo "$as_me:1879: result: yes" >&5
1880 1.76 pooka echo "${ECHO_T}yes" >&6
1881 1.74 christos
1882 1.76 pooka cat >>confdefs.h <<\EOF
1883 1.76 pooka #define _POSIX_SOURCE 1
1884 1.76 pooka EOF
1885 1.74 christos
1886 1.76 pooka cat >>confdefs.h <<\EOF
1887 1.76 pooka #define _POSIX_C_SOURCE 200112L
1888 1.76 pooka EOF
1889 1.54 wiz
1890 1.76 pooka cat >>confdefs.h <<\EOF
1891 1.76 pooka #define _XOPEN_SOURCE 600
1892 1.76 pooka EOF
1893 1.45 jmc
1894 1.45 jmc else
1895 1.76 pooka echo "$as_me:1895: result: no" >&5
1896 1.76 pooka echo "${ECHO_T}no" >&6
1897 1.45 jmc fi
1898 1.45 jmc rm -f conftest*
1899 1.45 jmc
1900 1.45 jmc # Extract the first word of "sh", so it can be a program name with args.
1901 1.45 jmc set dummy sh; ac_word=$2
1902 1.76 pooka echo "$as_me:1902: checking for $ac_word" >&5
1903 1.76 pooka echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 1.76 pooka if test "${ac_cv_path_BSHELL+set}" = set; then
1905 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1906 1.45 jmc else
1907 1.45 jmc case $BSHELL in
1908 1.45 jmc [\\/]* | ?:[\\/]*)
1909 1.45 jmc ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
1910 1.45 jmc ;;
1911 1.45 jmc *)
1912 1.76 pooka ac_save_IFS=$IFS; IFS=$ac_path_separator
1913 1.76 pooka ac_dummy="$PATH"
1914 1.76 pooka for ac_dir in $ac_dummy; do
1915 1.76 pooka IFS=$ac_save_IFS
1916 1.76 pooka test -z "$ac_dir" && ac_dir=.
1917 1.76 pooka if $as_executable_p "$ac_dir/$ac_word"; then
1918 1.76 pooka ac_cv_path_BSHELL="$ac_dir/$ac_word"
1919 1.76 pooka echo "$as_me:1919: found $ac_dir/$ac_word" >&5
1920 1.76 pooka break
1921 1.76 pooka fi
1922 1.65 christos done
1923 1.45 jmc
1924 1.45 jmc ;;
1925 1.45 jmc esac
1926 1.45 jmc fi
1927 1.45 jmc BSHELL=$ac_cv_path_BSHELL
1928 1.76 pooka
1929 1.45 jmc if test -n "$BSHELL"; then
1930 1.76 pooka echo "$as_me:1930: result: $BSHELL" >&5
1931 1.76 pooka echo "${ECHO_T}$BSHELL" >&6
1932 1.45 jmc else
1933 1.76 pooka echo "$as_me:1933: result: no" >&5
1934 1.76 pooka echo "${ECHO_T}no" >&6
1935 1.45 jmc fi
1936 1.45 jmc
1937 1.45 jmc if test x"$BSHELL" = x; then
1938 1.76 pooka { { echo "$as_me:1938: error: sh must be somewhere on \$PATH" >&5
1939 1.76 pooka echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
1940 1.76 pooka { (exit 1); exit 1; }; }
1941 1.45 jmc fi
1942 1.54 wiz
1943 1.76 pooka cat >>confdefs.h <<EOF
1944 1.45 jmc #define PATH_BSHELL "$BSHELL"
1945 1.76 pooka EOF
1946 1.76 pooka
1947 1.76 pooka echo "$as_me:1947: checking whether byte ordering is bigendian" >&5
1948 1.76 pooka echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1949 1.76 pooka if test "${ac_cv_c_bigendian+set}" = set; then
1950 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
1951 1.76 pooka else
1952 1.76 pooka ac_cv_c_bigendian=unknown
1953 1.76 pooka # See if sys/param.h defines the BYTE_ORDER macro.
1954 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1955 1.76 pooka #line 1955 "configure"
1956 1.76 pooka #include "confdefs.h"
1957 1.76 pooka #include <sys/types.h>
1958 1.76 pooka #include <sys/param.h>
1959 1.74 christos
1960 1.76 pooka int
1961 1.76 pooka main ()
1962 1.76 pooka {
1963 1.76 pooka #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1964 1.76 pooka bogus endian macros
1965 1.76 pooka #endif
1966 1.53 dogcow
1967 1.76 pooka ;
1968 1.76 pooka return 0;
1969 1.76 pooka }
1970 1.76 pooka _ACEOF
1971 1.76 pooka rm -f conftest.$ac_objext
1972 1.76 pooka if { (eval echo "$as_me:1972: \"$ac_compile\"") >&5
1973 1.76 pooka (eval $ac_compile) 2>&5
1974 1.76 pooka ac_status=$?
1975 1.76 pooka echo "$as_me:1975: \$? = $ac_status" >&5
1976 1.76 pooka (exit $ac_status); } &&
1977 1.76 pooka { ac_try='test -s conftest.$ac_objext'
1978 1.76 pooka { (eval echo "$as_me:1978: \"$ac_try\"") >&5
1979 1.76 pooka (eval $ac_try) 2>&5
1980 1.76 pooka ac_status=$?
1981 1.76 pooka echo "$as_me:1981: \$? = $ac_status" >&5
1982 1.76 pooka (exit $ac_status); }; }; then
1983 1.76 pooka # It does; now see whether it defined to BIG_ENDIAN or not.
1984 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
1985 1.76 pooka #line 1985 "configure"
1986 1.76 pooka #include "confdefs.h"
1987 1.76 pooka #include <sys/types.h>
1988 1.76 pooka #include <sys/param.h>
1989 1.45 jmc
1990 1.45 jmc int
1991 1.45 jmc main ()
1992 1.45 jmc {
1993 1.76 pooka #if BYTE_ORDER != BIG_ENDIAN
1994 1.76 pooka not big endian
1995 1.76 pooka #endif
1996 1.45 jmc
1997 1.45 jmc ;
1998 1.45 jmc return 0;
1999 1.45 jmc }
2000 1.45 jmc _ACEOF
2001 1.76 pooka rm -f conftest.$ac_objext
2002 1.76 pooka if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5
2003 1.76 pooka (eval $ac_compile) 2>&5
2004 1.76 pooka ac_status=$?
2005 1.76 pooka echo "$as_me:2005: \$? = $ac_status" >&5
2006 1.76 pooka (exit $ac_status); } &&
2007 1.76 pooka { ac_try='test -s conftest.$ac_objext'
2008 1.76 pooka { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2009 1.76 pooka (eval $ac_try) 2>&5
2010 1.76 pooka ac_status=$?
2011 1.76 pooka echo "$as_me:2011: \$? = $ac_status" >&5
2012 1.76 pooka (exit $ac_status); }; }; then
2013 1.76 pooka ac_cv_c_bigendian=yes
2014 1.76 pooka else
2015 1.76 pooka echo "$as_me: failed program was:" >&5
2016 1.76 pooka cat conftest.$ac_ext >&5
2017 1.76 pooka ac_cv_c_bigendian=no
2018 1.76 pooka fi
2019 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2020 1.76 pooka else
2021 1.76 pooka echo "$as_me: failed program was:" >&5
2022 1.76 pooka cat conftest.$ac_ext >&5
2023 1.76 pooka fi
2024 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2025 1.76 pooka if test $ac_cv_c_bigendian = unknown; then
2026 1.76 pooka if test "$cross_compiling" = yes; then
2027 1.76 pooka { { echo "$as_me:2027: error: cannot run test program while cross compiling" >&5
2028 1.76 pooka echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2029 1.76 pooka { (exit 1); exit 1; }; }
2030 1.76 pooka else
2031 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2032 1.76 pooka #line 2032 "configure"
2033 1.76 pooka #include "confdefs.h"
2034 1.76 pooka int
2035 1.76 pooka main ()
2036 1.76 pooka {
2037 1.76 pooka /* Are we little or big endian? From Harbison&Steele. */
2038 1.76 pooka union
2039 1.76 pooka {
2040 1.76 pooka long l;
2041 1.76 pooka char c[sizeof (long)];
2042 1.76 pooka } u;
2043 1.76 pooka u.l = 1;
2044 1.76 pooka exit (u.c[sizeof (long) - 1] == 1);
2045 1.76 pooka }
2046 1.76 pooka _ACEOF
2047 1.76 pooka rm -f conftest$ac_exeext
2048 1.76 pooka if { (eval echo "$as_me:2048: \"$ac_link\"") >&5
2049 1.76 pooka (eval $ac_link) 2>&5
2050 1.76 pooka ac_status=$?
2051 1.76 pooka echo "$as_me:2051: \$? = $ac_status" >&5
2052 1.76 pooka (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2053 1.76 pooka { (eval echo "$as_me:2053: \"$ac_try\"") >&5
2054 1.76 pooka (eval $ac_try) 2>&5
2055 1.76 pooka ac_status=$?
2056 1.76 pooka echo "$as_me:2056: \$? = $ac_status" >&5
2057 1.76 pooka (exit $ac_status); }; }; then
2058 1.76 pooka ac_cv_c_bigendian=no
2059 1.76 pooka else
2060 1.76 pooka echo "$as_me: program exited with status $ac_status" >&5
2061 1.76 pooka echo "$as_me: failed program was:" >&5
2062 1.76 pooka cat conftest.$ac_ext >&5
2063 1.76 pooka ac_cv_c_bigendian=yes
2064 1.76 pooka fi
2065 1.76 pooka rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2066 1.76 pooka fi
2067 1.76 pooka fi
2068 1.76 pooka fi
2069 1.76 pooka echo "$as_me:2069: result: $ac_cv_c_bigendian" >&5
2070 1.76 pooka echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2071 1.76 pooka if test $ac_cv_c_bigendian = yes; then
2072 1.76 pooka
2073 1.76 pooka cat >>confdefs.h <<\EOF
2074 1.76 pooka #define WORDS_BIGENDIAN 1
2075 1.76 pooka EOF
2076 1.76 pooka
2077 1.76 pooka fi
2078 1.76 pooka
2079 1.76 pooka echo "$as_me:2079: checking for ANSI C header files" >&5
2080 1.76 pooka echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2081 1.76 pooka if test "${ac_cv_header_stdc+set}" = set; then
2082 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2083 1.76 pooka else
2084 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2085 1.76 pooka #line 2085 "configure"
2086 1.76 pooka #include "confdefs.h"
2087 1.76 pooka #include <stdlib.h>
2088 1.76 pooka #include <stdarg.h>
2089 1.76 pooka #include <string.h>
2090 1.76 pooka #include <float.h>
2091 1.76 pooka
2092 1.76 pooka _ACEOF
2093 1.76 pooka if { (eval echo "$as_me:2093: \"$ac_cpp conftest.$ac_ext\"") >&5
2094 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2095 1.76 pooka ac_status=$?
2096 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
2097 1.76 pooka rm -f conftest.er1
2098 1.76 pooka cat conftest.err >&5
2099 1.76 pooka echo "$as_me:2099: \$? = $ac_status" >&5
2100 1.76 pooka (exit $ac_status); } >/dev/null; then
2101 1.76 pooka if test -s conftest.err; then
2102 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
2103 1.76 pooka else
2104 1.76 pooka ac_cpp_err=
2105 1.76 pooka fi
2106 1.76 pooka else
2107 1.76 pooka ac_cpp_err=yes
2108 1.76 pooka fi
2109 1.76 pooka if test -z "$ac_cpp_err"; then
2110 1.6 tv ac_cv_header_stdc=yes
2111 1.6 tv else
2112 1.76 pooka echo "$as_me: failed program was:" >&5
2113 1.76 pooka cat conftest.$ac_ext >&5
2114 1.66 tsutsui ac_cv_header_stdc=no
2115 1.6 tv fi
2116 1.76 pooka rm -f conftest.err conftest.$ac_ext
2117 1.6 tv
2118 1.6 tv if test $ac_cv_header_stdc = yes; then
2119 1.6 tv # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2120 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2121 1.76 pooka #line 2121 "configure"
2122 1.76 pooka #include "confdefs.h"
2123 1.6 tv #include <string.h>
2124 1.6 tv
2125 1.6 tv _ACEOF
2126 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2127 1.76 pooka egrep "memchr" >/dev/null 2>&1; then
2128 1.76 pooka :
2129 1.6 tv else
2130 1.6 tv ac_cv_header_stdc=no
2131 1.6 tv fi
2132 1.6 tv rm -f conftest*
2133 1.6 tv
2134 1.6 tv fi
2135 1.6 tv
2136 1.6 tv if test $ac_cv_header_stdc = yes; then
2137 1.6 tv # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2138 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2139 1.76 pooka #line 2139 "configure"
2140 1.76 pooka #include "confdefs.h"
2141 1.6 tv #include <stdlib.h>
2142 1.6 tv
2143 1.6 tv _ACEOF
2144 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2145 1.76 pooka egrep "free" >/dev/null 2>&1; then
2146 1.76 pooka :
2147 1.6 tv else
2148 1.6 tv ac_cv_header_stdc=no
2149 1.6 tv fi
2150 1.6 tv rm -f conftest*
2151 1.6 tv
2152 1.6 tv fi
2153 1.6 tv
2154 1.6 tv if test $ac_cv_header_stdc = yes; then
2155 1.6 tv # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2156 1.76 pooka if test "$cross_compiling" = yes; then
2157 1.6 tv :
2158 1.6 tv else
2159 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2160 1.76 pooka #line 2160 "configure"
2161 1.76 pooka #include "confdefs.h"
2162 1.6 tv #include <ctype.h>
2163 1.6 tv #if ((' ' & 0x0FF) == 0x020)
2164 1.6 tv # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2165 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2166 1.6 tv #else
2167 1.76 pooka # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2168 1.76 pooka || ('j' <= (c) && (c) <= 'r') \
2169 1.76 pooka || ('s' <= (c) && (c) <= 'z'))
2170 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2171 1.6 tv #endif
2172 1.6 tv
2173 1.6 tv #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2174 1.6 tv int
2175 1.6 tv main ()
2176 1.6 tv {
2177 1.6 tv int i;
2178 1.6 tv for (i = 0; i < 256; i++)
2179 1.6 tv if (XOR (islower (i), ISLOWER (i))
2180 1.76 pooka || toupper (i) != TOUPPER (i))
2181 1.76 pooka exit(2);
2182 1.76 pooka exit (0);
2183 1.6 tv }
2184 1.6 tv _ACEOF
2185 1.76 pooka rm -f conftest$ac_exeext
2186 1.76 pooka if { (eval echo "$as_me:2186: \"$ac_link\"") >&5
2187 1.76 pooka (eval $ac_link) 2>&5
2188 1.76 pooka ac_status=$?
2189 1.76 pooka echo "$as_me:2189: \$? = $ac_status" >&5
2190 1.76 pooka (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2191 1.76 pooka { (eval echo "$as_me:2191: \"$ac_try\"") >&5
2192 1.76 pooka (eval $ac_try) 2>&5
2193 1.76 pooka ac_status=$?
2194 1.76 pooka echo "$as_me:2194: \$? = $ac_status" >&5
2195 1.76 pooka (exit $ac_status); }; }; then
2196 1.76 pooka :
2197 1.6 tv else
2198 1.76 pooka echo "$as_me: program exited with status $ac_status" >&5
2199 1.76 pooka echo "$as_me: failed program was:" >&5
2200 1.76 pooka cat conftest.$ac_ext >&5
2201 1.76 pooka ac_cv_header_stdc=no
2202 1.6 tv fi
2203 1.76 pooka rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2204 1.6 tv fi
2205 1.6 tv fi
2206 1.6 tv fi
2207 1.76 pooka echo "$as_me:2207: result: $ac_cv_header_stdc" >&5
2208 1.76 pooka echo "${ECHO_T}$ac_cv_header_stdc" >&6
2209 1.6 tv if test $ac_cv_header_stdc = yes; then
2210 1.6 tv
2211 1.76 pooka cat >>confdefs.h <<\EOF
2212 1.76 pooka #define STDC_HEADERS 1
2213 1.76 pooka EOF
2214 1.6 tv
2215 1.6 tv fi
2216 1.6 tv
2217 1.76 pooka # Confirm existence of zlib. (This is available as a default install
2218 1.76 pooka # option on many OS's; this could be added as a reachover build in the
2219 1.76 pooka # future.)
2220 1.76 pooka echo "$as_me:2220: checking for zlib.h" >&5
2221 1.76 pooka echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2222 1.76 pooka if test "${ac_cv_header_zlib_h+set}" = set; then
2223 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2224 1.76 pooka else
2225 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2226 1.76 pooka #line 2226 "configure"
2227 1.76 pooka #include "confdefs.h"
2228 1.76 pooka #include <zlib.h>
2229 1.61 christos _ACEOF
2230 1.76 pooka if { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5
2231 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2232 1.76 pooka ac_status=$?
2233 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
2234 1.76 pooka rm -f conftest.er1
2235 1.76 pooka cat conftest.err >&5
2236 1.76 pooka echo "$as_me:2236: \$? = $ac_status" >&5
2237 1.76 pooka (exit $ac_status); } >/dev/null; then
2238 1.76 pooka if test -s conftest.err; then
2239 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
2240 1.76 pooka else
2241 1.76 pooka ac_cpp_err=
2242 1.76 pooka fi
2243 1.76 pooka else
2244 1.76 pooka ac_cpp_err=yes
2245 1.6 tv fi
2246 1.76 pooka if test -z "$ac_cpp_err"; then
2247 1.76 pooka ac_cv_header_zlib_h=yes
2248 1.74 christos else
2249 1.76 pooka echo "$as_me: failed program was:" >&5
2250 1.76 pooka cat conftest.$ac_ext >&5
2251 1.76 pooka ac_cv_header_zlib_h=no
2252 1.74 christos fi
2253 1.76 pooka rm -f conftest.err conftest.$ac_ext
2254 1.74 christos fi
2255 1.76 pooka echo "$as_me:2255: result: $ac_cv_header_zlib_h" >&5
2256 1.76 pooka echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
2257 1.76 pooka if test $ac_cv_header_zlib_h = yes; then
2258 1.74 christos :
2259 1.74 christos else
2260 1.76 pooka { { echo "$as_me:2260: error: zlib must be installed in a compiler-visible path" >&5
2261 1.76 pooka echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2262 1.76 pooka { (exit 1); exit 1; }; }
2263 1.74 christos fi
2264 1.74 christos
2265 1.76 pooka echo "$as_me:2265: checking for gzdopen in -lz" >&5
2266 1.76 pooka echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
2267 1.76 pooka if test "${ac_cv_lib_z_gzdopen+set}" = set; then
2268 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2269 1.52 dbj else
2270 1.52 dbj ac_check_lib_save_LIBS=$LIBS
2271 1.52 dbj LIBS="-lz $LIBS"
2272 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2273 1.76 pooka #line 2273 "configure"
2274 1.76 pooka #include "confdefs.h"
2275 1.48 jmc
2276 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
2277 1.6 tv #ifdef __cplusplus
2278 1.6 tv extern "C"
2279 1.6 tv #endif
2280 1.76 pooka /* We use char because int might match the return type of a gcc2
2281 1.76 pooka builtin and then its argument prototype would still apply. */
2282 1.6 tv char gzdopen ();
2283 1.6 tv int
2284 1.6 tv main ()
2285 1.6 tv {
2286 1.76 pooka gzdopen ();
2287 1.6 tv ;
2288 1.6 tv return 0;
2289 1.6 tv }
2290 1.6 tv _ACEOF
2291 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
2292 1.76 pooka if { (eval echo "$as_me:2292: \"$ac_link\"") >&5
2293 1.76 pooka (eval $ac_link) 2>&5
2294 1.76 pooka ac_status=$?
2295 1.76 pooka echo "$as_me:2295: \$? = $ac_status" >&5
2296 1.76 pooka (exit $ac_status); } &&
2297 1.76 pooka { ac_try='test -s conftest$ac_exeext'
2298 1.76 pooka { (eval echo "$as_me:2298: \"$ac_try\"") >&5
2299 1.76 pooka (eval $ac_try) 2>&5
2300 1.76 pooka ac_status=$?
2301 1.76 pooka echo "$as_me:2301: \$? = $ac_status" >&5
2302 1.76 pooka (exit $ac_status); }; }; then
2303 1.6 tv ac_cv_lib_z_gzdopen=yes
2304 1.6 tv else
2305 1.76 pooka echo "$as_me: failed program was:" >&5
2306 1.76 pooka cat conftest.$ac_ext >&5
2307 1.76 pooka ac_cv_lib_z_gzdopen=no
2308 1.6 tv fi
2309 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2310 1.6 tv LIBS=$ac_check_lib_save_LIBS
2311 1.6 tv fi
2312 1.76 pooka echo "$as_me:2312: result: $ac_cv_lib_z_gzdopen" >&5
2313 1.76 pooka echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
2314 1.76 pooka if test $ac_cv_lib_z_gzdopen = yes; then
2315 1.76 pooka cat >>confdefs.h <<EOF
2316 1.6 tv #define HAVE_LIBZ 1
2317 1.76 pooka EOF
2318 1.4 tv
2319 1.6 tv LIBS="-lz $LIBS"
2320 1.6 tv
2321 1.4 tv else
2322 1.76 pooka { { echo "$as_me:2322: error: zlib must be installed in a compiler-visible path" >&5
2323 1.76 pooka echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2324 1.76 pooka { (exit 1); exit 1; }; }
2325 1.4 tv fi
2326 1.4 tv
2327 1.6 tv # Make sure certain required headers are available.
2328 1.6 tv # These are not necessarily required by the code, but they are not
2329 1.6 tv # currently conditionalized.
2330 1.76 pooka
2331 1.69 dbj for ac_header in sys/ioctl.h sys/mman.h sys/param.h \
2332 1.43 dbj sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
2333 1.43 dbj sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
2334 1.43 dbj netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
2335 1.43 dbj termios.h unistd.h
2336 1.76 pooka do
2337 1.76 pooka as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2338 1.76 pooka echo "$as_me:2338: checking for $ac_header" >&5
2339 1.76 pooka echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2340 1.76 pooka if eval "test \"\${$as_ac_Header+set}\" = set"; then
2341 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2342 1.76 pooka else
2343 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2344 1.76 pooka #line 2344 "configure"
2345 1.76 pooka #include "confdefs.h"
2346 1.76 pooka #include <$ac_header>
2347 1.48 jmc _ACEOF
2348 1.76 pooka if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5
2349 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 1.76 pooka ac_status=$?
2351 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
2352 1.76 pooka rm -f conftest.er1
2353 1.76 pooka cat conftest.err >&5
2354 1.76 pooka echo "$as_me:2354: \$? = $ac_status" >&5
2355 1.76 pooka (exit $ac_status); } >/dev/null; then
2356 1.76 pooka if test -s conftest.err; then
2357 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
2358 1.76 pooka else
2359 1.76 pooka ac_cpp_err=
2360 1.76 pooka fi
2361 1.76 pooka else
2362 1.76 pooka ac_cpp_err=yes
2363 1.76 pooka fi
2364 1.76 pooka if test -z "$ac_cpp_err"; then
2365 1.76 pooka eval "$as_ac_Header=yes"
2366 1.76 pooka else
2367 1.76 pooka echo "$as_me: failed program was:" >&5
2368 1.76 pooka cat conftest.$ac_ext >&5
2369 1.76 pooka eval "$as_ac_Header=no"
2370 1.76 pooka fi
2371 1.76 pooka rm -f conftest.err conftest.$ac_ext
2372 1.76 pooka fi
2373 1.76 pooka echo "$as_me:2373: result: `eval echo '${'$as_ac_Header'}'`" >&5
2374 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2375 1.76 pooka if test `eval echo '${'$as_ac_Header'}'` = yes; then
2376 1.76 pooka cat >>confdefs.h <<EOF
2377 1.76 pooka #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2378 1.76 pooka EOF
2379 1.74 christos
2380 1.6 tv else
2381 1.76 pooka { { echo "$as_me:2381: error: standard system header file not found" >&5
2382 1.76 pooka echo "$as_me: error: standard system header file not found" >&2;}
2383 1.76 pooka { (exit 1); exit 1; }; }
2384 1.6 tv fi
2385 1.6 tv done
2386 1.6 tv
2387 1.76 pooka # Find headers that may not be available.
2388 1.74 christos
2389 1.6 tv ac_header_dirent=no
2390 1.6 tv for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2391 1.76 pooka as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2392 1.76 pooka echo "$as_me:2392: checking for $ac_hdr that defines DIR" >&5
2393 1.76 pooka echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2394 1.76 pooka if eval "test \"\${$as_ac_Header+set}\" = set"; then
2395 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2396 1.76 pooka else
2397 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2398 1.76 pooka #line 2398 "configure"
2399 1.76 pooka #include "confdefs.h"
2400 1.6 tv #include <sys/types.h>
2401 1.6 tv #include <$ac_hdr>
2402 1.6 tv
2403 1.6 tv int
2404 1.6 tv main ()
2405 1.6 tv {
2406 1.6 tv if ((DIR *) 0)
2407 1.6 tv return 0;
2408 1.6 tv ;
2409 1.6 tv return 0;
2410 1.6 tv }
2411 1.6 tv _ACEOF
2412 1.76 pooka rm -f conftest.$ac_objext
2413 1.76 pooka if { (eval echo "$as_me:2413: \"$ac_compile\"") >&5
2414 1.76 pooka (eval $ac_compile) 2>&5
2415 1.76 pooka ac_status=$?
2416 1.76 pooka echo "$as_me:2416: \$? = $ac_status" >&5
2417 1.76 pooka (exit $ac_status); } &&
2418 1.76 pooka { ac_try='test -s conftest.$ac_objext'
2419 1.76 pooka { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2420 1.76 pooka (eval $ac_try) 2>&5
2421 1.76 pooka ac_status=$?
2422 1.76 pooka echo "$as_me:2422: \$? = $ac_status" >&5
2423 1.76 pooka (exit $ac_status); }; }; then
2424 1.6 tv eval "$as_ac_Header=yes"
2425 1.6 tv else
2426 1.76 pooka echo "$as_me: failed program was:" >&5
2427 1.76 pooka cat conftest.$ac_ext >&5
2428 1.76 pooka eval "$as_ac_Header=no"
2429 1.76 pooka fi
2430 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2431 1.76 pooka fi
2432 1.76 pooka echo "$as_me:2432: result: `eval echo '${'$as_ac_Header'}'`" >&5
2433 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2434 1.76 pooka if test `eval echo '${'$as_ac_Header'}'` = yes; then
2435 1.76 pooka cat >>confdefs.h <<EOF
2436 1.76 pooka #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2437 1.76 pooka EOF
2438 1.6 tv
2439 1.6 tv ac_header_dirent=$ac_hdr; break
2440 1.6 tv fi
2441 1.6 tv
2442 1.6 tv done
2443 1.6 tv # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2444 1.6 tv if test $ac_header_dirent = dirent.h; then
2445 1.76 pooka echo "$as_me:2445: checking for opendir in -ldir" >&5
2446 1.76 pooka echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2447 1.76 pooka if test "${ac_cv_lib_dir_opendir+set}" = set; then
2448 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2449 1.6 tv else
2450 1.76 pooka ac_check_lib_save_LIBS=$LIBS
2451 1.76 pooka LIBS="-ldir $LIBS"
2452 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2453 1.76 pooka #line 2453 "configure"
2454 1.76 pooka #include "confdefs.h"
2455 1.48 jmc
2456 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
2457 1.48 jmc #ifdef __cplusplus
2458 1.48 jmc extern "C"
2459 1.48 jmc #endif
2460 1.76 pooka /* We use char because int might match the return type of a gcc2
2461 1.76 pooka builtin and then its argument prototype would still apply. */
2462 1.48 jmc char opendir ();
2463 1.48 jmc int
2464 1.48 jmc main ()
2465 1.48 jmc {
2466 1.76 pooka opendir ();
2467 1.48 jmc ;
2468 1.48 jmc return 0;
2469 1.48 jmc }
2470 1.48 jmc _ACEOF
2471 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
2472 1.76 pooka if { (eval echo "$as_me:2472: \"$ac_link\"") >&5
2473 1.76 pooka (eval $ac_link) 2>&5
2474 1.76 pooka ac_status=$?
2475 1.76 pooka echo "$as_me:2475: \$? = $ac_status" >&5
2476 1.76 pooka (exit $ac_status); } &&
2477 1.76 pooka { ac_try='test -s conftest$ac_exeext'
2478 1.76 pooka { (eval echo "$as_me:2478: \"$ac_try\"") >&5
2479 1.76 pooka (eval $ac_try) 2>&5
2480 1.76 pooka ac_status=$?
2481 1.76 pooka echo "$as_me:2481: \$? = $ac_status" >&5
2482 1.76 pooka (exit $ac_status); }; }; then
2483 1.76 pooka ac_cv_lib_dir_opendir=yes
2484 1.76 pooka else
2485 1.76 pooka echo "$as_me: failed program was:" >&5
2486 1.76 pooka cat conftest.$ac_ext >&5
2487 1.76 pooka ac_cv_lib_dir_opendir=no
2488 1.74 christos fi
2489 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2490 1.76 pooka LIBS=$ac_check_lib_save_LIBS
2491 1.65 christos fi
2492 1.76 pooka echo "$as_me:2492: result: $ac_cv_lib_dir_opendir" >&5
2493 1.76 pooka echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2494 1.76 pooka if test $ac_cv_lib_dir_opendir = yes; then
2495 1.76 pooka LIBS="$LIBS -ldir"
2496 1.63 apb fi
2497 1.61 christos
2498 1.63 apb else
2499 1.76 pooka echo "$as_me:2499: checking for opendir in -lx" >&5
2500 1.76 pooka echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2501 1.76 pooka if test "${ac_cv_lib_x_opendir+set}" = set; then
2502 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2503 1.63 apb else
2504 1.76 pooka ac_check_lib_save_LIBS=$LIBS
2505 1.76 pooka LIBS="-lx $LIBS"
2506 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2507 1.76 pooka #line 2507 "configure"
2508 1.76 pooka #include "confdefs.h"
2509 1.6 tv
2510 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
2511 1.6 tv #ifdef __cplusplus
2512 1.6 tv extern "C"
2513 1.6 tv #endif
2514 1.76 pooka /* We use char because int might match the return type of a gcc2
2515 1.76 pooka builtin and then its argument prototype would still apply. */
2516 1.6 tv char opendir ();
2517 1.6 tv int
2518 1.6 tv main ()
2519 1.6 tv {
2520 1.76 pooka opendir ();
2521 1.6 tv ;
2522 1.6 tv return 0;
2523 1.6 tv }
2524 1.6 tv _ACEOF
2525 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
2526 1.76 pooka if { (eval echo "$as_me:2526: \"$ac_link\"") >&5
2527 1.76 pooka (eval $ac_link) 2>&5
2528 1.76 pooka ac_status=$?
2529 1.76 pooka echo "$as_me:2529: \$? = $ac_status" >&5
2530 1.76 pooka (exit $ac_status); } &&
2531 1.76 pooka { ac_try='test -s conftest$ac_exeext'
2532 1.76 pooka { (eval echo "$as_me:2532: \"$ac_try\"") >&5
2533 1.76 pooka (eval $ac_try) 2>&5
2534 1.76 pooka ac_status=$?
2535 1.76 pooka echo "$as_me:2535: \$? = $ac_status" >&5
2536 1.76 pooka (exit $ac_status); }; }; then
2537 1.76 pooka ac_cv_lib_x_opendir=yes
2538 1.76 pooka else
2539 1.76 pooka echo "$as_me: failed program was:" >&5
2540 1.76 pooka cat conftest.$ac_ext >&5
2541 1.76 pooka ac_cv_lib_x_opendir=no
2542 1.74 christos fi
2543 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2544 1.76 pooka LIBS=$ac_check_lib_save_LIBS
2545 1.65 christos fi
2546 1.76 pooka echo "$as_me:2546: result: $ac_cv_lib_x_opendir" >&5
2547 1.76 pooka echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2548 1.76 pooka if test $ac_cv_lib_x_opendir = yes; then
2549 1.76 pooka LIBS="$LIBS -lx"
2550 1.48 jmc fi
2551 1.65 christos
2552 1.6 tv fi
2553 1.39 fredb
2554 1.69 dbj for ac_header in sys/mtio.h sys/sysmacros.h sys/syslimits.h \
2555 1.74 christos getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h rpc/types.h
2556 1.76 pooka do
2557 1.76 pooka as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2558 1.76 pooka echo "$as_me:2558: checking for $ac_header" >&5
2559 1.76 pooka echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2560 1.76 pooka if eval "test \"\${$as_ac_Header+set}\" = set"; then
2561 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2562 1.76 pooka else
2563 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2564 1.76 pooka #line 2564 "configure"
2565 1.76 pooka #include "confdefs.h"
2566 1.76 pooka #include <$ac_header>
2567 1.61 christos _ACEOF
2568 1.76 pooka if { (eval echo "$as_me:2568: \"$ac_cpp conftest.$ac_ext\"") >&5
2569 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570 1.76 pooka ac_status=$?
2571 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
2572 1.76 pooka rm -f conftest.er1
2573 1.76 pooka cat conftest.err >&5
2574 1.76 pooka echo "$as_me:2574: \$? = $ac_status" >&5
2575 1.76 pooka (exit $ac_status); } >/dev/null; then
2576 1.76 pooka if test -s conftest.err; then
2577 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
2578 1.76 pooka else
2579 1.76 pooka ac_cpp_err=
2580 1.76 pooka fi
2581 1.76 pooka else
2582 1.76 pooka ac_cpp_err=yes
2583 1.76 pooka fi
2584 1.76 pooka if test -z "$ac_cpp_err"; then
2585 1.76 pooka eval "$as_ac_Header=yes"
2586 1.76 pooka else
2587 1.76 pooka echo "$as_me: failed program was:" >&5
2588 1.76 pooka cat conftest.$ac_ext >&5
2589 1.76 pooka eval "$as_ac_Header=no"
2590 1.76 pooka fi
2591 1.76 pooka rm -f conftest.err conftest.$ac_ext
2592 1.76 pooka fi
2593 1.76 pooka echo "$as_me:2593: result: `eval echo '${'$as_ac_Header'}'`" >&5
2594 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2595 1.76 pooka if test `eval echo '${'$as_ac_Header'}'` = yes; then
2596 1.76 pooka cat >>confdefs.h <<EOF
2597 1.76 pooka #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2598 1.76 pooka EOF
2599 1.74 christos
2600 1.63 apb fi
2601 1.63 apb done
2602 1.6 tv
2603 1.72 apb for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
2604 1.72 apb sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \
2605 1.72 apb stdint.h util.h resolv.h arpa/nameser.h
2606 1.76 pooka do
2607 1.76 pooka as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2608 1.76 pooka echo "$as_me:2608: checking for $ac_header" >&5
2609 1.76 pooka echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2610 1.76 pooka if eval "test \"\${$as_ac_Header+set}\" = set"; then
2611 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2612 1.76 pooka else
2613 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2614 1.76 pooka #line 2614 "configure"
2615 1.76 pooka #include "confdefs.h"
2616 1.76 pooka #include <$ac_header>
2617 1.48 jmc _ACEOF
2618 1.76 pooka if { (eval echo "$as_me:2618: \"$ac_cpp conftest.$ac_ext\"") >&5
2619 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2620 1.76 pooka ac_status=$?
2621 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
2622 1.76 pooka rm -f conftest.er1
2623 1.76 pooka cat conftest.err >&5
2624 1.76 pooka echo "$as_me:2624: \$? = $ac_status" >&5
2625 1.76 pooka (exit $ac_status); } >/dev/null; then
2626 1.76 pooka if test -s conftest.err; then
2627 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
2628 1.76 pooka else
2629 1.76 pooka ac_cpp_err=
2630 1.76 pooka fi
2631 1.74 christos else
2632 1.76 pooka ac_cpp_err=yes
2633 1.74 christos fi
2634 1.76 pooka if test -z "$ac_cpp_err"; then
2635 1.76 pooka eval "$as_ac_Header=yes"
2636 1.76 pooka else
2637 1.76 pooka echo "$as_me: failed program was:" >&5
2638 1.76 pooka cat conftest.$ac_ext >&5
2639 1.76 pooka eval "$as_ac_Header=no"
2640 1.76 pooka fi
2641 1.76 pooka rm -f conftest.err conftest.$ac_ext
2642 1.76 pooka fi
2643 1.76 pooka echo "$as_me:2643: result: `eval echo '${'$as_ac_Header'}'`" >&5
2644 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2645 1.76 pooka if test `eval echo '${'$as_ac_Header'}'` = yes; then
2646 1.76 pooka cat >>confdefs.h <<EOF
2647 1.76 pooka #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2648 1.76 pooka EOF
2649 1.74 christos
2650 1.76 pooka else
2651 1.76 pooka test -f include/$ac_header || touch include/$ac_header
2652 1.76 pooka fi
2653 1.6 tv done
2654 1.6 tv
2655 1.63 apb for ac_header in rpc/types.h netconfig.h
2656 1.76 pooka do
2657 1.76 pooka as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2658 1.76 pooka echo "$as_me:2658: checking for $ac_header" >&5
2659 1.76 pooka echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2660 1.76 pooka if eval "test \"\${$as_ac_Header+set}\" = set"; then
2661 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2662 1.76 pooka else
2663 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2664 1.76 pooka #line 2664 "configure"
2665 1.76 pooka #include "confdefs.h"
2666 1.76 pooka #include <$ac_header>
2667 1.7 tv _ACEOF
2668 1.76 pooka if { (eval echo "$as_me:2668: \"$ac_cpp conftest.$ac_ext\"") >&5
2669 1.76 pooka (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2670 1.76 pooka ac_status=$?
2671 1.76 pooka egrep -v '^ *\+' conftest.er1 >conftest.err
2672 1.76 pooka rm -f conftest.er1
2673 1.76 pooka cat conftest.err >&5
2674 1.76 pooka echo "$as_me:2674: \$? = $ac_status" >&5
2675 1.76 pooka (exit $ac_status); } >/dev/null; then
2676 1.76 pooka if test -s conftest.err; then
2677 1.76 pooka ac_cpp_err=$ac_c_preproc_warn_flag
2678 1.76 pooka else
2679 1.76 pooka ac_cpp_err=
2680 1.76 pooka fi
2681 1.76 pooka else
2682 1.76 pooka ac_cpp_err=yes
2683 1.76 pooka fi
2684 1.76 pooka if test -z "$ac_cpp_err"; then
2685 1.76 pooka eval "$as_ac_Header=yes"
2686 1.76 pooka else
2687 1.76 pooka echo "$as_me: failed program was:" >&5
2688 1.76 pooka cat conftest.$ac_ext >&5
2689 1.76 pooka eval "$as_ac_Header=no"
2690 1.76 pooka fi
2691 1.76 pooka rm -f conftest.err conftest.$ac_ext
2692 1.76 pooka fi
2693 1.76 pooka echo "$as_me:2693: result: `eval echo '${'$as_ac_Header'}'`" >&5
2694 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2695 1.76 pooka if test `eval echo '${'$as_ac_Header'}'` = yes; then
2696 1.76 pooka cat >>confdefs.h <<EOF
2697 1.76 pooka #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2698 1.76 pooka EOF
2699 1.39 fredb
2700 1.43 dbj else
2701 1.63 apb echo '#include "nbtool_config.h"' >include/$ac_header.new
2702 1.72 apb echo '#include "'$srcdir/../../include/$ac_header'"' \
2703 1.72 apb >>include/$ac_header.new
2704 1.63 apb if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
2705 1.63 apb rm -f include/$ac_header.new
2706 1.63 apb else
2707 1.63 apb mv -f include/$ac_header.new include/$ac_header
2708 1.63 apb fi
2709 1.7 tv fi
2710 1.76 pooka done
2711 1.76 pooka
2712 1.76 pooka # Typedefs.
2713 1.76 pooka # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2714 1.76 pooka
2715 1.76 pooka for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2716 1.76 pooka inttypes.h stdint.h unistd.h
2717 1.76 pooka do
2718 1.76 pooka as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2719 1.76 pooka echo "$as_me:2719: checking for $ac_header" >&5
2720 1.76 pooka echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2721 1.76 pooka if eval "test \"\${$as_ac_Header+set}\" = set"; then
2722 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2723 1.76 pooka else
2724 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2725 1.76 pooka #line 2725 "configure"
2726 1.76 pooka #include "confdefs.h"
2727 1.76 pooka $ac_includes_default
2728 1.76 pooka #include <$ac_header>
2729 1.76 pooka _ACEOF
2730 1.76 pooka rm -f conftest.$ac_objext
2731 1.76 pooka if { (eval echo "$as_me:2731: \"$ac_compile\"") >&5
2732 1.76 pooka (eval $ac_compile) 2>&5
2733 1.76 pooka ac_status=$?
2734 1.76 pooka echo "$as_me:2734: \$? = $ac_status" >&5
2735 1.76 pooka (exit $ac_status); } &&
2736 1.76 pooka { ac_try='test -s conftest.$ac_objext'
2737 1.76 pooka { (eval echo "$as_me:2737: \"$ac_try\"") >&5
2738 1.76 pooka (eval $ac_try) 2>&5
2739 1.76 pooka ac_status=$?
2740 1.76 pooka echo "$as_me:2740: \$? = $ac_status" >&5
2741 1.76 pooka (exit $ac_status); }; }; then
2742 1.76 pooka eval "$as_ac_Header=yes"
2743 1.76 pooka else
2744 1.76 pooka echo "$as_me: failed program was:" >&5
2745 1.76 pooka cat conftest.$ac_ext >&5
2746 1.76 pooka eval "$as_ac_Header=no"
2747 1.76 pooka fi
2748 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2749 1.76 pooka fi
2750 1.76 pooka echo "$as_me:2750: result: `eval echo '${'$as_ac_Header'}'`" >&5
2751 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2752 1.76 pooka if test `eval echo '${'$as_ac_Header'}'` = yes; then
2753 1.76 pooka cat >>confdefs.h <<EOF
2754 1.76 pooka #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2755 1.76 pooka EOF
2756 1.74 christos
2757 1.76 pooka fi
2758 1.66 tsutsui done
2759 1.66 tsutsui
2760 1.76 pooka echo "$as_me:2760: checking for size_t" >&5
2761 1.76 pooka echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2762 1.76 pooka if test "${ac_cv_type_size_t+set}" = set; then
2763 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2764 1.76 pooka else
2765 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2766 1.76 pooka #line 2766 "configure"
2767 1.76 pooka #include "confdefs.h"
2768 1.76 pooka $ac_includes_default
2769 1.76 pooka int
2770 1.76 pooka main ()
2771 1.76 pooka {
2772 1.76 pooka if ((size_t *) 0)
2773 1.76 pooka return 0;
2774 1.76 pooka if (sizeof (size_t))
2775 1.76 pooka return 0;
2776 1.76 pooka ;
2777 1.76 pooka return 0;
2778 1.76 pooka }
2779 1.76 pooka _ACEOF
2780 1.76 pooka rm -f conftest.$ac_objext
2781 1.76 pooka if { (eval echo "$as_me:2781: \"$ac_compile\"") >&5
2782 1.76 pooka (eval $ac_compile) 2>&5
2783 1.76 pooka ac_status=$?
2784 1.76 pooka echo "$as_me:2784: \$? = $ac_status" >&5
2785 1.76 pooka (exit $ac_status); } &&
2786 1.76 pooka { ac_try='test -s conftest.$ac_objext'
2787 1.76 pooka { (eval echo "$as_me:2787: \"$ac_try\"") >&5
2788 1.76 pooka (eval $ac_try) 2>&5
2789 1.76 pooka ac_status=$?
2790 1.76 pooka echo "$as_me:2790: \$? = $ac_status" >&5
2791 1.76 pooka (exit $ac_status); }; }; then
2792 1.76 pooka ac_cv_type_size_t=yes
2793 1.76 pooka else
2794 1.76 pooka echo "$as_me: failed program was:" >&5
2795 1.76 pooka cat conftest.$ac_ext >&5
2796 1.76 pooka ac_cv_type_size_t=no
2797 1.76 pooka fi
2798 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2799 1.76 pooka fi
2800 1.76 pooka echo "$as_me:2800: result: $ac_cv_type_size_t" >&5
2801 1.76 pooka echo "${ECHO_T}$ac_cv_type_size_t" >&6
2802 1.76 pooka if test $ac_cv_type_size_t = yes; then
2803 1.76 pooka :
2804 1.76 pooka else
2805 1.76 pooka
2806 1.76 pooka cat >>confdefs.h <<EOF
2807 1.76 pooka #define size_t unsigned
2808 1.76 pooka EOF
2809 1.76 pooka
2810 1.76 pooka fi
2811 1.76 pooka
2812 1.76 pooka echo "$as_me:2812: checking for id_t" >&5
2813 1.76 pooka echo $ECHO_N "checking for id_t... $ECHO_C" >&6
2814 1.76 pooka if test "${ac_cv_type_id_t+set}" = set; then
2815 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2816 1.76 pooka else
2817 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2818 1.76 pooka #line 2818 "configure"
2819 1.76 pooka #include "confdefs.h"
2820 1.76 pooka $ac_includes_default
2821 1.76 pooka int
2822 1.76 pooka main ()
2823 1.76 pooka {
2824 1.76 pooka if ((id_t *) 0)
2825 1.76 pooka return 0;
2826 1.76 pooka if (sizeof (id_t))
2827 1.76 pooka return 0;
2828 1.76 pooka ;
2829 1.76 pooka return 0;
2830 1.76 pooka }
2831 1.76 pooka _ACEOF
2832 1.76 pooka rm -f conftest.$ac_objext
2833 1.76 pooka if { (eval echo "$as_me:2833: \"$ac_compile\"") >&5
2834 1.76 pooka (eval $ac_compile) 2>&5
2835 1.76 pooka ac_status=$?
2836 1.76 pooka echo "$as_me:2836: \$? = $ac_status" >&5
2837 1.76 pooka (exit $ac_status); } &&
2838 1.76 pooka { ac_try='test -s conftest.$ac_objext'
2839 1.76 pooka { (eval echo "$as_me:2839: \"$ac_try\"") >&5
2840 1.76 pooka (eval $ac_try) 2>&5
2841 1.76 pooka ac_status=$?
2842 1.76 pooka echo "$as_me:2842: \$? = $ac_status" >&5
2843 1.76 pooka (exit $ac_status); }; }; then
2844 1.76 pooka ac_cv_type_id_t=yes
2845 1.76 pooka else
2846 1.76 pooka echo "$as_me: failed program was:" >&5
2847 1.76 pooka cat conftest.$ac_ext >&5
2848 1.76 pooka ac_cv_type_id_t=no
2849 1.76 pooka fi
2850 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2851 1.76 pooka fi
2852 1.76 pooka echo "$as_me:2852: result: $ac_cv_type_id_t" >&5
2853 1.76 pooka echo "${ECHO_T}$ac_cv_type_id_t" >&6
2854 1.76 pooka if test $ac_cv_type_id_t = yes; then
2855 1.76 pooka
2856 1.76 pooka cat >>confdefs.h <<EOF
2857 1.76 pooka #define HAVE_ID_T 1
2858 1.76 pooka EOF
2859 1.76 pooka
2860 1.76 pooka fi
2861 1.76 pooka echo "$as_me:2861: checking for long long" >&5
2862 1.76 pooka echo $ECHO_N "checking for long long... $ECHO_C" >&6
2863 1.76 pooka if test "${ac_cv_type_long_long+set}" = set; then
2864 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2865 1.76 pooka else
2866 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2867 1.76 pooka #line 2867 "configure"
2868 1.76 pooka #include "confdefs.h"
2869 1.76 pooka $ac_includes_default
2870 1.76 pooka int
2871 1.76 pooka main ()
2872 1.76 pooka {
2873 1.76 pooka if ((long long *) 0)
2874 1.76 pooka return 0;
2875 1.76 pooka if (sizeof (long long))
2876 1.76 pooka return 0;
2877 1.76 pooka ;
2878 1.76 pooka return 0;
2879 1.76 pooka }
2880 1.76 pooka _ACEOF
2881 1.76 pooka rm -f conftest.$ac_objext
2882 1.76 pooka if { (eval echo "$as_me:2882: \"$ac_compile\"") >&5
2883 1.76 pooka (eval $ac_compile) 2>&5
2884 1.76 pooka ac_status=$?
2885 1.76 pooka echo "$as_me:2885: \$? = $ac_status" >&5
2886 1.76 pooka (exit $ac_status); } &&
2887 1.76 pooka { ac_try='test -s conftest.$ac_objext'
2888 1.76 pooka { (eval echo "$as_me:2888: \"$ac_try\"") >&5
2889 1.76 pooka (eval $ac_try) 2>&5
2890 1.76 pooka ac_status=$?
2891 1.76 pooka echo "$as_me:2891: \$? = $ac_status" >&5
2892 1.76 pooka (exit $ac_status); }; }; then
2893 1.76 pooka ac_cv_type_long_long=yes
2894 1.76 pooka else
2895 1.76 pooka echo "$as_me: failed program was:" >&5
2896 1.76 pooka cat conftest.$ac_ext >&5
2897 1.76 pooka ac_cv_type_long_long=no
2898 1.76 pooka fi
2899 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2900 1.76 pooka fi
2901 1.76 pooka echo "$as_me:2901: result: $ac_cv_type_long_long" >&5
2902 1.76 pooka echo "${ECHO_T}$ac_cv_type_long_long" >&6
2903 1.76 pooka if test $ac_cv_type_long_long = yes; then
2904 1.76 pooka
2905 1.76 pooka cat >>confdefs.h <<EOF
2906 1.76 pooka #define HAVE_LONG_LONG 1
2907 1.76 pooka EOF
2908 1.76 pooka
2909 1.76 pooka fi
2910 1.76 pooka echo "$as_me:2910: checking for u_long" >&5
2911 1.76 pooka echo $ECHO_N "checking for u_long... $ECHO_C" >&6
2912 1.76 pooka if test "${ac_cv_type_u_long+set}" = set; then
2913 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2914 1.76 pooka else
2915 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2916 1.76 pooka #line 2916 "configure"
2917 1.76 pooka #include "confdefs.h"
2918 1.76 pooka $ac_includes_default
2919 1.76 pooka int
2920 1.76 pooka main ()
2921 1.76 pooka {
2922 1.76 pooka if ((u_long *) 0)
2923 1.76 pooka return 0;
2924 1.76 pooka if (sizeof (u_long))
2925 1.76 pooka return 0;
2926 1.76 pooka ;
2927 1.76 pooka return 0;
2928 1.76 pooka }
2929 1.76 pooka _ACEOF
2930 1.76 pooka rm -f conftest.$ac_objext
2931 1.76 pooka if { (eval echo "$as_me:2931: \"$ac_compile\"") >&5
2932 1.76 pooka (eval $ac_compile) 2>&5
2933 1.76 pooka ac_status=$?
2934 1.76 pooka echo "$as_me:2934: \$? = $ac_status" >&5
2935 1.76 pooka (exit $ac_status); } &&
2936 1.76 pooka { ac_try='test -s conftest.$ac_objext'
2937 1.76 pooka { (eval echo "$as_me:2937: \"$ac_try\"") >&5
2938 1.76 pooka (eval $ac_try) 2>&5
2939 1.76 pooka ac_status=$?
2940 1.76 pooka echo "$as_me:2940: \$? = $ac_status" >&5
2941 1.76 pooka (exit $ac_status); }; }; then
2942 1.76 pooka ac_cv_type_u_long=yes
2943 1.76 pooka else
2944 1.76 pooka echo "$as_me: failed program was:" >&5
2945 1.76 pooka cat conftest.$ac_ext >&5
2946 1.76 pooka ac_cv_type_u_long=no
2947 1.76 pooka fi
2948 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2949 1.76 pooka fi
2950 1.76 pooka echo "$as_me:2950: result: $ac_cv_type_u_long" >&5
2951 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_long" >&6
2952 1.76 pooka if test $ac_cv_type_u_long = yes; then
2953 1.76 pooka
2954 1.76 pooka cat >>confdefs.h <<EOF
2955 1.76 pooka #define HAVE_U_LONG 1
2956 1.76 pooka EOF
2957 1.76 pooka
2958 1.76 pooka fi
2959 1.76 pooka echo "$as_me:2959: checking for u_char" >&5
2960 1.76 pooka echo $ECHO_N "checking for u_char... $ECHO_C" >&6
2961 1.76 pooka if test "${ac_cv_type_u_char+set}" = set; then
2962 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
2963 1.76 pooka else
2964 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
2965 1.76 pooka #line 2965 "configure"
2966 1.76 pooka #include "confdefs.h"
2967 1.76 pooka $ac_includes_default
2968 1.76 pooka int
2969 1.76 pooka main ()
2970 1.76 pooka {
2971 1.76 pooka if ((u_char *) 0)
2972 1.76 pooka return 0;
2973 1.76 pooka if (sizeof (u_char))
2974 1.76 pooka return 0;
2975 1.76 pooka ;
2976 1.76 pooka return 0;
2977 1.76 pooka }
2978 1.76 pooka _ACEOF
2979 1.76 pooka rm -f conftest.$ac_objext
2980 1.76 pooka if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5
2981 1.76 pooka (eval $ac_compile) 2>&5
2982 1.76 pooka ac_status=$?
2983 1.76 pooka echo "$as_me:2983: \$? = $ac_status" >&5
2984 1.76 pooka (exit $ac_status); } &&
2985 1.76 pooka { ac_try='test -s conftest.$ac_objext'
2986 1.76 pooka { (eval echo "$as_me:2986: \"$ac_try\"") >&5
2987 1.76 pooka (eval $ac_try) 2>&5
2988 1.76 pooka ac_status=$?
2989 1.76 pooka echo "$as_me:2989: \$? = $ac_status" >&5
2990 1.76 pooka (exit $ac_status); }; }; then
2991 1.76 pooka ac_cv_type_u_char=yes
2992 1.76 pooka else
2993 1.76 pooka echo "$as_me: failed program was:" >&5
2994 1.76 pooka cat conftest.$ac_ext >&5
2995 1.76 pooka ac_cv_type_u_char=no
2996 1.76 pooka fi
2997 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
2998 1.76 pooka fi
2999 1.76 pooka echo "$as_me:2999: result: $ac_cv_type_u_char" >&5
3000 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_char" >&6
3001 1.76 pooka if test $ac_cv_type_u_char = yes; then
3002 1.76 pooka
3003 1.76 pooka cat >>confdefs.h <<EOF
3004 1.76 pooka #define HAVE_U_CHAR 1
3005 1.76 pooka EOF
3006 1.76 pooka
3007 1.76 pooka fi
3008 1.76 pooka echo "$as_me:3008: checking for u_short" >&5
3009 1.76 pooka echo $ECHO_N "checking for u_short... $ECHO_C" >&6
3010 1.76 pooka if test "${ac_cv_type_u_short+set}" = set; then
3011 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3012 1.76 pooka else
3013 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3014 1.76 pooka #line 3014 "configure"
3015 1.76 pooka #include "confdefs.h"
3016 1.76 pooka $ac_includes_default
3017 1.76 pooka int
3018 1.76 pooka main ()
3019 1.76 pooka {
3020 1.76 pooka if ((u_short *) 0)
3021 1.76 pooka return 0;
3022 1.76 pooka if (sizeof (u_short))
3023 1.76 pooka return 0;
3024 1.76 pooka ;
3025 1.76 pooka return 0;
3026 1.76 pooka }
3027 1.76 pooka _ACEOF
3028 1.76 pooka rm -f conftest.$ac_objext
3029 1.76 pooka if { (eval echo "$as_me:3029: \"$ac_compile\"") >&5
3030 1.76 pooka (eval $ac_compile) 2>&5
3031 1.76 pooka ac_status=$?
3032 1.76 pooka echo "$as_me:3032: \$? = $ac_status" >&5
3033 1.76 pooka (exit $ac_status); } &&
3034 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3035 1.76 pooka { (eval echo "$as_me:3035: \"$ac_try\"") >&5
3036 1.76 pooka (eval $ac_try) 2>&5
3037 1.76 pooka ac_status=$?
3038 1.76 pooka echo "$as_me:3038: \$? = $ac_status" >&5
3039 1.76 pooka (exit $ac_status); }; }; then
3040 1.76 pooka ac_cv_type_u_short=yes
3041 1.76 pooka else
3042 1.76 pooka echo "$as_me: failed program was:" >&5
3043 1.76 pooka cat conftest.$ac_ext >&5
3044 1.76 pooka ac_cv_type_u_short=no
3045 1.76 pooka fi
3046 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3047 1.76 pooka fi
3048 1.76 pooka echo "$as_me:3048: result: $ac_cv_type_u_short" >&5
3049 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_short" >&6
3050 1.76 pooka if test $ac_cv_type_u_short = yes; then
3051 1.76 pooka
3052 1.76 pooka cat >>confdefs.h <<EOF
3053 1.76 pooka #define HAVE_U_SHORT 1
3054 1.76 pooka EOF
3055 1.76 pooka
3056 1.76 pooka fi
3057 1.76 pooka echo "$as_me:3057: checking for u_int" >&5
3058 1.76 pooka echo $ECHO_N "checking for u_int... $ECHO_C" >&6
3059 1.76 pooka if test "${ac_cv_type_u_int+set}" = set; then
3060 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3061 1.76 pooka else
3062 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3063 1.76 pooka #line 3063 "configure"
3064 1.76 pooka #include "confdefs.h"
3065 1.76 pooka $ac_includes_default
3066 1.76 pooka int
3067 1.76 pooka main ()
3068 1.76 pooka {
3069 1.76 pooka if ((u_int *) 0)
3070 1.76 pooka return 0;
3071 1.76 pooka if (sizeof (u_int))
3072 1.76 pooka return 0;
3073 1.76 pooka ;
3074 1.76 pooka return 0;
3075 1.76 pooka }
3076 1.76 pooka _ACEOF
3077 1.76 pooka rm -f conftest.$ac_objext
3078 1.76 pooka if { (eval echo "$as_me:3078: \"$ac_compile\"") >&5
3079 1.76 pooka (eval $ac_compile) 2>&5
3080 1.76 pooka ac_status=$?
3081 1.76 pooka echo "$as_me:3081: \$? = $ac_status" >&5
3082 1.76 pooka (exit $ac_status); } &&
3083 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3084 1.76 pooka { (eval echo "$as_me:3084: \"$ac_try\"") >&5
3085 1.76 pooka (eval $ac_try) 2>&5
3086 1.76 pooka ac_status=$?
3087 1.76 pooka echo "$as_me:3087: \$? = $ac_status" >&5
3088 1.76 pooka (exit $ac_status); }; }; then
3089 1.76 pooka ac_cv_type_u_int=yes
3090 1.76 pooka else
3091 1.76 pooka echo "$as_me: failed program was:" >&5
3092 1.76 pooka cat conftest.$ac_ext >&5
3093 1.76 pooka ac_cv_type_u_int=no
3094 1.76 pooka fi
3095 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3096 1.76 pooka fi
3097 1.76 pooka echo "$as_me:3097: result: $ac_cv_type_u_int" >&5
3098 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int" >&6
3099 1.76 pooka if test $ac_cv_type_u_int = yes; then
3100 1.76 pooka
3101 1.76 pooka cat >>confdefs.h <<EOF
3102 1.76 pooka #define HAVE_U_INT 1
3103 1.76 pooka EOF
3104 1.76 pooka
3105 1.76 pooka fi
3106 1.76 pooka echo "$as_me:3106: checking for u_quad_t" >&5
3107 1.76 pooka echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
3108 1.76 pooka if test "${ac_cv_type_u_quad_t+set}" = set; then
3109 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3110 1.76 pooka else
3111 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3112 1.76 pooka #line 3112 "configure"
3113 1.76 pooka #include "confdefs.h"
3114 1.76 pooka $ac_includes_default
3115 1.76 pooka int
3116 1.76 pooka main ()
3117 1.76 pooka {
3118 1.76 pooka if ((u_quad_t *) 0)
3119 1.76 pooka return 0;
3120 1.76 pooka if (sizeof (u_quad_t))
3121 1.76 pooka return 0;
3122 1.76 pooka ;
3123 1.76 pooka return 0;
3124 1.76 pooka }
3125 1.76 pooka _ACEOF
3126 1.76 pooka rm -f conftest.$ac_objext
3127 1.76 pooka if { (eval echo "$as_me:3127: \"$ac_compile\"") >&5
3128 1.76 pooka (eval $ac_compile) 2>&5
3129 1.76 pooka ac_status=$?
3130 1.76 pooka echo "$as_me:3130: \$? = $ac_status" >&5
3131 1.76 pooka (exit $ac_status); } &&
3132 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3133 1.76 pooka { (eval echo "$as_me:3133: \"$ac_try\"") >&5
3134 1.76 pooka (eval $ac_try) 2>&5
3135 1.76 pooka ac_status=$?
3136 1.76 pooka echo "$as_me:3136: \$? = $ac_status" >&5
3137 1.76 pooka (exit $ac_status); }; }; then
3138 1.76 pooka ac_cv_type_u_quad_t=yes
3139 1.76 pooka else
3140 1.76 pooka echo "$as_me: failed program was:" >&5
3141 1.76 pooka cat conftest.$ac_ext >&5
3142 1.76 pooka ac_cv_type_u_quad_t=no
3143 1.76 pooka fi
3144 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3145 1.76 pooka fi
3146 1.76 pooka echo "$as_me:3146: result: $ac_cv_type_u_quad_t" >&5
3147 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
3148 1.76 pooka if test $ac_cv_type_u_quad_t = yes; then
3149 1.76 pooka
3150 1.76 pooka cat >>confdefs.h <<EOF
3151 1.76 pooka #define HAVE_U_QUAD_T 1
3152 1.76 pooka EOF
3153 1.76 pooka
3154 1.76 pooka fi
3155 1.76 pooka
3156 1.76 pooka echo "$as_me:3156: checking for socklen_t" >&5
3157 1.76 pooka echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3158 1.76 pooka if test "${ac_cv_type_socklen_t+set}" = set; then
3159 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3160 1.76 pooka else
3161 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3162 1.76 pooka #line 3162 "configure"
3163 1.76 pooka #include "confdefs.h"
3164 1.76 pooka #include <sys/types.h>
3165 1.76 pooka #ifdef HAVE_RPC_TYPES_H
3166 1.76 pooka #include <rpc/types.h>
3167 1.76 pooka #endif
3168 1.76 pooka #include <sys/socket.h>
3169 1.76 pooka
3170 1.76 pooka int
3171 1.76 pooka main ()
3172 1.76 pooka {
3173 1.76 pooka if ((socklen_t *) 0)
3174 1.76 pooka return 0;
3175 1.76 pooka if (sizeof (socklen_t))
3176 1.76 pooka return 0;
3177 1.76 pooka ;
3178 1.76 pooka return 0;
3179 1.76 pooka }
3180 1.76 pooka _ACEOF
3181 1.76 pooka rm -f conftest.$ac_objext
3182 1.76 pooka if { (eval echo "$as_me:3182: \"$ac_compile\"") >&5
3183 1.76 pooka (eval $ac_compile) 2>&5
3184 1.76 pooka ac_status=$?
3185 1.76 pooka echo "$as_me:3185: \$? = $ac_status" >&5
3186 1.76 pooka (exit $ac_status); } &&
3187 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3188 1.76 pooka { (eval echo "$as_me:3188: \"$ac_try\"") >&5
3189 1.76 pooka (eval $ac_try) 2>&5
3190 1.76 pooka ac_status=$?
3191 1.76 pooka echo "$as_me:3191: \$? = $ac_status" >&5
3192 1.76 pooka (exit $ac_status); }; }; then
3193 1.76 pooka ac_cv_type_socklen_t=yes
3194 1.76 pooka else
3195 1.76 pooka echo "$as_me: failed program was:" >&5
3196 1.76 pooka cat conftest.$ac_ext >&5
3197 1.76 pooka ac_cv_type_socklen_t=no
3198 1.76 pooka fi
3199 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3200 1.76 pooka fi
3201 1.76 pooka echo "$as_me:3201: result: $ac_cv_type_socklen_t" >&5
3202 1.76 pooka echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3203 1.76 pooka if test $ac_cv_type_socklen_t = yes; then
3204 1.76 pooka
3205 1.76 pooka cat >>confdefs.h <<\EOF
3206 1.76 pooka #define HAVE_SOCKLEN_T 1
3207 1.76 pooka EOF
3208 1.76 pooka
3209 1.76 pooka fi
3210 1.76 pooka
3211 1.76 pooka echo "$as_me:3211: checking for uint8_t" >&5
3212 1.76 pooka echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3213 1.76 pooka if test "${ac_cv_type_uint8_t+set}" = set; then
3214 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3215 1.76 pooka else
3216 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3217 1.76 pooka #line 3217 "configure"
3218 1.76 pooka #include "confdefs.h"
3219 1.76 pooka $ac_includes_default
3220 1.76 pooka int
3221 1.76 pooka main ()
3222 1.76 pooka {
3223 1.76 pooka if ((uint8_t *) 0)
3224 1.76 pooka return 0;
3225 1.76 pooka if (sizeof (uint8_t))
3226 1.76 pooka return 0;
3227 1.76 pooka ;
3228 1.76 pooka return 0;
3229 1.76 pooka }
3230 1.76 pooka _ACEOF
3231 1.76 pooka rm -f conftest.$ac_objext
3232 1.76 pooka if { (eval echo "$as_me:3232: \"$ac_compile\"") >&5
3233 1.76 pooka (eval $ac_compile) 2>&5
3234 1.76 pooka ac_status=$?
3235 1.76 pooka echo "$as_me:3235: \$? = $ac_status" >&5
3236 1.76 pooka (exit $ac_status); } &&
3237 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3238 1.76 pooka { (eval echo "$as_me:3238: \"$ac_try\"") >&5
3239 1.76 pooka (eval $ac_try) 2>&5
3240 1.76 pooka ac_status=$?
3241 1.76 pooka echo "$as_me:3241: \$? = $ac_status" >&5
3242 1.76 pooka (exit $ac_status); }; }; then
3243 1.76 pooka ac_cv_type_uint8_t=yes
3244 1.76 pooka else
3245 1.76 pooka echo "$as_me: failed program was:" >&5
3246 1.76 pooka cat conftest.$ac_ext >&5
3247 1.76 pooka ac_cv_type_uint8_t=no
3248 1.76 pooka fi
3249 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3250 1.76 pooka fi
3251 1.76 pooka echo "$as_me:3251: result: $ac_cv_type_uint8_t" >&5
3252 1.76 pooka echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3253 1.76 pooka if test $ac_cv_type_uint8_t = yes; then
3254 1.76 pooka :
3255 1.76 pooka else
3256 1.76 pooka
3257 1.76 pooka echo "$as_me:3257: checking for u_int8_t" >&5
3258 1.76 pooka echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3259 1.76 pooka if test "${ac_cv_type_u_int8_t+set}" = set; then
3260 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3261 1.76 pooka else
3262 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3263 1.76 pooka #line 3263 "configure"
3264 1.76 pooka #include "confdefs.h"
3265 1.76 pooka $ac_includes_default
3266 1.76 pooka int
3267 1.76 pooka main ()
3268 1.76 pooka {
3269 1.76 pooka if ((u_int8_t *) 0)
3270 1.76 pooka return 0;
3271 1.76 pooka if (sizeof (u_int8_t))
3272 1.76 pooka return 0;
3273 1.76 pooka ;
3274 1.76 pooka return 0;
3275 1.76 pooka }
3276 1.76 pooka _ACEOF
3277 1.76 pooka rm -f conftest.$ac_objext
3278 1.76 pooka if { (eval echo "$as_me:3278: \"$ac_compile\"") >&5
3279 1.76 pooka (eval $ac_compile) 2>&5
3280 1.76 pooka ac_status=$?
3281 1.76 pooka echo "$as_me:3281: \$? = $ac_status" >&5
3282 1.76 pooka (exit $ac_status); } &&
3283 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3284 1.76 pooka { (eval echo "$as_me:3284: \"$ac_try\"") >&5
3285 1.76 pooka (eval $ac_try) 2>&5
3286 1.76 pooka ac_status=$?
3287 1.76 pooka echo "$as_me:3287: \$? = $ac_status" >&5
3288 1.76 pooka (exit $ac_status); }; }; then
3289 1.76 pooka ac_cv_type_u_int8_t=yes
3290 1.76 pooka else
3291 1.76 pooka echo "$as_me: failed program was:" >&5
3292 1.76 pooka cat conftest.$ac_ext >&5
3293 1.76 pooka ac_cv_type_u_int8_t=no
3294 1.76 pooka fi
3295 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3296 1.76 pooka fi
3297 1.76 pooka echo "$as_me:3297: result: $ac_cv_type_u_int8_t" >&5
3298 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3299 1.76 pooka if test $ac_cv_type_u_int8_t = yes; then
3300 1.76 pooka
3301 1.76 pooka cat >>confdefs.h <<\EOF
3302 1.76 pooka #define uint8_t u_int8_t
3303 1.76 pooka EOF
3304 1.76 pooka
3305 1.76 pooka else
3306 1.76 pooka { { echo "$as_me:3306: error: cannot find a suitable type for uint8_t" >&5
3307 1.76 pooka echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
3308 1.76 pooka { (exit 1); exit 1; }; }
3309 1.76 pooka fi
3310 1.76 pooka
3311 1.76 pooka fi
3312 1.76 pooka
3313 1.76 pooka echo "$as_me:3313: checking for u_int8_t" >&5
3314 1.76 pooka echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3315 1.76 pooka if test "${ac_cv_type_u_int8_t+set}" = set; then
3316 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3317 1.76 pooka else
3318 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3319 1.76 pooka #line 3319 "configure"
3320 1.76 pooka #include "confdefs.h"
3321 1.76 pooka $ac_includes_default
3322 1.76 pooka int
3323 1.76 pooka main ()
3324 1.76 pooka {
3325 1.76 pooka if ((u_int8_t *) 0)
3326 1.76 pooka return 0;
3327 1.76 pooka if (sizeof (u_int8_t))
3328 1.76 pooka return 0;
3329 1.76 pooka ;
3330 1.76 pooka return 0;
3331 1.76 pooka }
3332 1.76 pooka _ACEOF
3333 1.76 pooka rm -f conftest.$ac_objext
3334 1.76 pooka if { (eval echo "$as_me:3334: \"$ac_compile\"") >&5
3335 1.76 pooka (eval $ac_compile) 2>&5
3336 1.76 pooka ac_status=$?
3337 1.76 pooka echo "$as_me:3337: \$? = $ac_status" >&5
3338 1.76 pooka (exit $ac_status); } &&
3339 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3340 1.76 pooka { (eval echo "$as_me:3340: \"$ac_try\"") >&5
3341 1.76 pooka (eval $ac_try) 2>&5
3342 1.76 pooka ac_status=$?
3343 1.76 pooka echo "$as_me:3343: \$? = $ac_status" >&5
3344 1.76 pooka (exit $ac_status); }; }; then
3345 1.76 pooka ac_cv_type_u_int8_t=yes
3346 1.76 pooka else
3347 1.76 pooka echo "$as_me: failed program was:" >&5
3348 1.76 pooka cat conftest.$ac_ext >&5
3349 1.76 pooka ac_cv_type_u_int8_t=no
3350 1.76 pooka fi
3351 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3352 1.76 pooka fi
3353 1.76 pooka echo "$as_me:3353: result: $ac_cv_type_u_int8_t" >&5
3354 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3355 1.76 pooka if test $ac_cv_type_u_int8_t = yes; then
3356 1.76 pooka :
3357 1.76 pooka else
3358 1.76 pooka
3359 1.76 pooka echo "$as_me:3359: checking for uint8_t" >&5
3360 1.76 pooka echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3361 1.76 pooka if test "${ac_cv_type_uint8_t+set}" = set; then
3362 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3363 1.76 pooka else
3364 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3365 1.76 pooka #line 3365 "configure"
3366 1.76 pooka #include "confdefs.h"
3367 1.76 pooka $ac_includes_default
3368 1.76 pooka int
3369 1.76 pooka main ()
3370 1.76 pooka {
3371 1.76 pooka if ((uint8_t *) 0)
3372 1.76 pooka return 0;
3373 1.76 pooka if (sizeof (uint8_t))
3374 1.76 pooka return 0;
3375 1.76 pooka ;
3376 1.76 pooka return 0;
3377 1.76 pooka }
3378 1.76 pooka _ACEOF
3379 1.76 pooka rm -f conftest.$ac_objext
3380 1.76 pooka if { (eval echo "$as_me:3380: \"$ac_compile\"") >&5
3381 1.76 pooka (eval $ac_compile) 2>&5
3382 1.76 pooka ac_status=$?
3383 1.76 pooka echo "$as_me:3383: \$? = $ac_status" >&5
3384 1.76 pooka (exit $ac_status); } &&
3385 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3386 1.76 pooka { (eval echo "$as_me:3386: \"$ac_try\"") >&5
3387 1.76 pooka (eval $ac_try) 2>&5
3388 1.76 pooka ac_status=$?
3389 1.76 pooka echo "$as_me:3389: \$? = $ac_status" >&5
3390 1.76 pooka (exit $ac_status); }; }; then
3391 1.76 pooka ac_cv_type_uint8_t=yes
3392 1.76 pooka else
3393 1.76 pooka echo "$as_me: failed program was:" >&5
3394 1.76 pooka cat conftest.$ac_ext >&5
3395 1.76 pooka ac_cv_type_uint8_t=no
3396 1.76 pooka fi
3397 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3398 1.76 pooka fi
3399 1.76 pooka echo "$as_me:3399: result: $ac_cv_type_uint8_t" >&5
3400 1.76 pooka echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3401 1.76 pooka if test $ac_cv_type_uint8_t = yes; then
3402 1.76 pooka
3403 1.76 pooka cat >>confdefs.h <<\EOF
3404 1.76 pooka #define u_int8_t uint8_t
3405 1.76 pooka EOF
3406 1.76 pooka
3407 1.76 pooka else
3408 1.76 pooka { { echo "$as_me:3408: error: cannot find a suitable type for u_int8_t" >&5
3409 1.76 pooka echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
3410 1.76 pooka { (exit 1); exit 1; }; }
3411 1.76 pooka fi
3412 1.76 pooka
3413 1.76 pooka fi
3414 1.76 pooka
3415 1.76 pooka echo "$as_me:3415: checking for uint16_t" >&5
3416 1.76 pooka echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3417 1.76 pooka if test "${ac_cv_type_uint16_t+set}" = set; then
3418 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3419 1.76 pooka else
3420 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3421 1.76 pooka #line 3421 "configure"
3422 1.76 pooka #include "confdefs.h"
3423 1.76 pooka $ac_includes_default
3424 1.76 pooka int
3425 1.76 pooka main ()
3426 1.76 pooka {
3427 1.76 pooka if ((uint16_t *) 0)
3428 1.76 pooka return 0;
3429 1.76 pooka if (sizeof (uint16_t))
3430 1.76 pooka return 0;
3431 1.76 pooka ;
3432 1.76 pooka return 0;
3433 1.76 pooka }
3434 1.76 pooka _ACEOF
3435 1.76 pooka rm -f conftest.$ac_objext
3436 1.76 pooka if { (eval echo "$as_me:3436: \"$ac_compile\"") >&5
3437 1.76 pooka (eval $ac_compile) 2>&5
3438 1.76 pooka ac_status=$?
3439 1.76 pooka echo "$as_me:3439: \$? = $ac_status" >&5
3440 1.76 pooka (exit $ac_status); } &&
3441 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3442 1.76 pooka { (eval echo "$as_me:3442: \"$ac_try\"") >&5
3443 1.76 pooka (eval $ac_try) 2>&5
3444 1.76 pooka ac_status=$?
3445 1.76 pooka echo "$as_me:3445: \$? = $ac_status" >&5
3446 1.76 pooka (exit $ac_status); }; }; then
3447 1.76 pooka ac_cv_type_uint16_t=yes
3448 1.76 pooka else
3449 1.76 pooka echo "$as_me: failed program was:" >&5
3450 1.76 pooka cat conftest.$ac_ext >&5
3451 1.76 pooka ac_cv_type_uint16_t=no
3452 1.76 pooka fi
3453 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3454 1.76 pooka fi
3455 1.76 pooka echo "$as_me:3455: result: $ac_cv_type_uint16_t" >&5
3456 1.76 pooka echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3457 1.76 pooka if test $ac_cv_type_uint16_t = yes; then
3458 1.76 pooka :
3459 1.76 pooka else
3460 1.76 pooka
3461 1.76 pooka echo "$as_me:3461: checking for u_int16_t" >&5
3462 1.76 pooka echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3463 1.76 pooka if test "${ac_cv_type_u_int16_t+set}" = set; then
3464 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3465 1.76 pooka else
3466 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3467 1.76 pooka #line 3467 "configure"
3468 1.76 pooka #include "confdefs.h"
3469 1.76 pooka $ac_includes_default
3470 1.76 pooka int
3471 1.76 pooka main ()
3472 1.76 pooka {
3473 1.76 pooka if ((u_int16_t *) 0)
3474 1.76 pooka return 0;
3475 1.76 pooka if (sizeof (u_int16_t))
3476 1.76 pooka return 0;
3477 1.76 pooka ;
3478 1.76 pooka return 0;
3479 1.76 pooka }
3480 1.76 pooka _ACEOF
3481 1.76 pooka rm -f conftest.$ac_objext
3482 1.76 pooka if { (eval echo "$as_me:3482: \"$ac_compile\"") >&5
3483 1.76 pooka (eval $ac_compile) 2>&5
3484 1.76 pooka ac_status=$?
3485 1.76 pooka echo "$as_me:3485: \$? = $ac_status" >&5
3486 1.76 pooka (exit $ac_status); } &&
3487 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3488 1.76 pooka { (eval echo "$as_me:3488: \"$ac_try\"") >&5
3489 1.76 pooka (eval $ac_try) 2>&5
3490 1.76 pooka ac_status=$?
3491 1.76 pooka echo "$as_me:3491: \$? = $ac_status" >&5
3492 1.76 pooka (exit $ac_status); }; }; then
3493 1.76 pooka ac_cv_type_u_int16_t=yes
3494 1.76 pooka else
3495 1.76 pooka echo "$as_me: failed program was:" >&5
3496 1.76 pooka cat conftest.$ac_ext >&5
3497 1.76 pooka ac_cv_type_u_int16_t=no
3498 1.76 pooka fi
3499 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3500 1.76 pooka fi
3501 1.76 pooka echo "$as_me:3501: result: $ac_cv_type_u_int16_t" >&5
3502 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3503 1.76 pooka if test $ac_cv_type_u_int16_t = yes; then
3504 1.76 pooka
3505 1.76 pooka cat >>confdefs.h <<\EOF
3506 1.76 pooka #define uint16_t u_int16_t
3507 1.76 pooka EOF
3508 1.76 pooka
3509 1.76 pooka else
3510 1.76 pooka { { echo "$as_me:3510: error: cannot find a suitable type for uint16_t" >&5
3511 1.76 pooka echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
3512 1.76 pooka { (exit 1); exit 1; }; }
3513 1.76 pooka fi
3514 1.76 pooka
3515 1.76 pooka fi
3516 1.76 pooka
3517 1.76 pooka echo "$as_me:3517: checking for u_int16_t" >&5
3518 1.76 pooka echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3519 1.76 pooka if test "${ac_cv_type_u_int16_t+set}" = set; then
3520 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3521 1.76 pooka else
3522 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3523 1.76 pooka #line 3523 "configure"
3524 1.76 pooka #include "confdefs.h"
3525 1.76 pooka $ac_includes_default
3526 1.76 pooka int
3527 1.76 pooka main ()
3528 1.76 pooka {
3529 1.76 pooka if ((u_int16_t *) 0)
3530 1.76 pooka return 0;
3531 1.76 pooka if (sizeof (u_int16_t))
3532 1.76 pooka return 0;
3533 1.76 pooka ;
3534 1.76 pooka return 0;
3535 1.76 pooka }
3536 1.76 pooka _ACEOF
3537 1.76 pooka rm -f conftest.$ac_objext
3538 1.76 pooka if { (eval echo "$as_me:3538: \"$ac_compile\"") >&5
3539 1.76 pooka (eval $ac_compile) 2>&5
3540 1.76 pooka ac_status=$?
3541 1.76 pooka echo "$as_me:3541: \$? = $ac_status" >&5
3542 1.76 pooka (exit $ac_status); } &&
3543 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3544 1.76 pooka { (eval echo "$as_me:3544: \"$ac_try\"") >&5
3545 1.76 pooka (eval $ac_try) 2>&5
3546 1.76 pooka ac_status=$?
3547 1.76 pooka echo "$as_me:3547: \$? = $ac_status" >&5
3548 1.76 pooka (exit $ac_status); }; }; then
3549 1.76 pooka ac_cv_type_u_int16_t=yes
3550 1.76 pooka else
3551 1.76 pooka echo "$as_me: failed program was:" >&5
3552 1.76 pooka cat conftest.$ac_ext >&5
3553 1.76 pooka ac_cv_type_u_int16_t=no
3554 1.76 pooka fi
3555 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3556 1.76 pooka fi
3557 1.76 pooka echo "$as_me:3557: result: $ac_cv_type_u_int16_t" >&5
3558 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3559 1.76 pooka if test $ac_cv_type_u_int16_t = yes; then
3560 1.76 pooka :
3561 1.76 pooka else
3562 1.76 pooka
3563 1.76 pooka echo "$as_me:3563: checking for uint16_t" >&5
3564 1.76 pooka echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3565 1.76 pooka if test "${ac_cv_type_uint16_t+set}" = set; then
3566 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3567 1.76 pooka else
3568 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3569 1.76 pooka #line 3569 "configure"
3570 1.76 pooka #include "confdefs.h"
3571 1.76 pooka $ac_includes_default
3572 1.76 pooka int
3573 1.76 pooka main ()
3574 1.76 pooka {
3575 1.76 pooka if ((uint16_t *) 0)
3576 1.76 pooka return 0;
3577 1.76 pooka if (sizeof (uint16_t))
3578 1.76 pooka return 0;
3579 1.76 pooka ;
3580 1.76 pooka return 0;
3581 1.76 pooka }
3582 1.76 pooka _ACEOF
3583 1.76 pooka rm -f conftest.$ac_objext
3584 1.76 pooka if { (eval echo "$as_me:3584: \"$ac_compile\"") >&5
3585 1.76 pooka (eval $ac_compile) 2>&5
3586 1.76 pooka ac_status=$?
3587 1.76 pooka echo "$as_me:3587: \$? = $ac_status" >&5
3588 1.76 pooka (exit $ac_status); } &&
3589 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3590 1.76 pooka { (eval echo "$as_me:3590: \"$ac_try\"") >&5
3591 1.76 pooka (eval $ac_try) 2>&5
3592 1.76 pooka ac_status=$?
3593 1.76 pooka echo "$as_me:3593: \$? = $ac_status" >&5
3594 1.76 pooka (exit $ac_status); }; }; then
3595 1.76 pooka ac_cv_type_uint16_t=yes
3596 1.76 pooka else
3597 1.76 pooka echo "$as_me: failed program was:" >&5
3598 1.76 pooka cat conftest.$ac_ext >&5
3599 1.76 pooka ac_cv_type_uint16_t=no
3600 1.76 pooka fi
3601 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3602 1.76 pooka fi
3603 1.76 pooka echo "$as_me:3603: result: $ac_cv_type_uint16_t" >&5
3604 1.76 pooka echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3605 1.76 pooka if test $ac_cv_type_uint16_t = yes; then
3606 1.76 pooka
3607 1.76 pooka cat >>confdefs.h <<\EOF
3608 1.76 pooka #define u_int16_t uint16_t
3609 1.76 pooka EOF
3610 1.76 pooka
3611 1.76 pooka else
3612 1.76 pooka { { echo "$as_me:3612: error: cannot find a suitable type for u_int16_t" >&5
3613 1.76 pooka echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
3614 1.76 pooka { (exit 1); exit 1; }; }
3615 1.76 pooka fi
3616 1.76 pooka
3617 1.76 pooka fi
3618 1.76 pooka
3619 1.76 pooka echo "$as_me:3619: checking for uint32_t" >&5
3620 1.76 pooka echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3621 1.76 pooka if test "${ac_cv_type_uint32_t+set}" = set; then
3622 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3623 1.76 pooka else
3624 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3625 1.76 pooka #line 3625 "configure"
3626 1.76 pooka #include "confdefs.h"
3627 1.76 pooka $ac_includes_default
3628 1.76 pooka int
3629 1.76 pooka main ()
3630 1.76 pooka {
3631 1.76 pooka if ((uint32_t *) 0)
3632 1.76 pooka return 0;
3633 1.76 pooka if (sizeof (uint32_t))
3634 1.76 pooka return 0;
3635 1.76 pooka ;
3636 1.76 pooka return 0;
3637 1.76 pooka }
3638 1.76 pooka _ACEOF
3639 1.76 pooka rm -f conftest.$ac_objext
3640 1.76 pooka if { (eval echo "$as_me:3640: \"$ac_compile\"") >&5
3641 1.76 pooka (eval $ac_compile) 2>&5
3642 1.76 pooka ac_status=$?
3643 1.76 pooka echo "$as_me:3643: \$? = $ac_status" >&5
3644 1.76 pooka (exit $ac_status); } &&
3645 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3646 1.76 pooka { (eval echo "$as_me:3646: \"$ac_try\"") >&5
3647 1.76 pooka (eval $ac_try) 2>&5
3648 1.76 pooka ac_status=$?
3649 1.76 pooka echo "$as_me:3649: \$? = $ac_status" >&5
3650 1.76 pooka (exit $ac_status); }; }; then
3651 1.76 pooka ac_cv_type_uint32_t=yes
3652 1.76 pooka else
3653 1.76 pooka echo "$as_me: failed program was:" >&5
3654 1.76 pooka cat conftest.$ac_ext >&5
3655 1.76 pooka ac_cv_type_uint32_t=no
3656 1.76 pooka fi
3657 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3658 1.76 pooka fi
3659 1.76 pooka echo "$as_me:3659: result: $ac_cv_type_uint32_t" >&5
3660 1.76 pooka echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3661 1.76 pooka if test $ac_cv_type_uint32_t = yes; then
3662 1.76 pooka :
3663 1.76 pooka else
3664 1.76 pooka
3665 1.76 pooka echo "$as_me:3665: checking for u_int32_t" >&5
3666 1.76 pooka echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3667 1.76 pooka if test "${ac_cv_type_u_int32_t+set}" = set; then
3668 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3669 1.76 pooka else
3670 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3671 1.76 pooka #line 3671 "configure"
3672 1.76 pooka #include "confdefs.h"
3673 1.76 pooka $ac_includes_default
3674 1.76 pooka int
3675 1.76 pooka main ()
3676 1.76 pooka {
3677 1.76 pooka if ((u_int32_t *) 0)
3678 1.76 pooka return 0;
3679 1.76 pooka if (sizeof (u_int32_t))
3680 1.76 pooka return 0;
3681 1.76 pooka ;
3682 1.76 pooka return 0;
3683 1.76 pooka }
3684 1.76 pooka _ACEOF
3685 1.76 pooka rm -f conftest.$ac_objext
3686 1.76 pooka if { (eval echo "$as_me:3686: \"$ac_compile\"") >&5
3687 1.76 pooka (eval $ac_compile) 2>&5
3688 1.76 pooka ac_status=$?
3689 1.76 pooka echo "$as_me:3689: \$? = $ac_status" >&5
3690 1.76 pooka (exit $ac_status); } &&
3691 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3692 1.76 pooka { (eval echo "$as_me:3692: \"$ac_try\"") >&5
3693 1.76 pooka (eval $ac_try) 2>&5
3694 1.76 pooka ac_status=$?
3695 1.76 pooka echo "$as_me:3695: \$? = $ac_status" >&5
3696 1.76 pooka (exit $ac_status); }; }; then
3697 1.76 pooka ac_cv_type_u_int32_t=yes
3698 1.76 pooka else
3699 1.76 pooka echo "$as_me: failed program was:" >&5
3700 1.76 pooka cat conftest.$ac_ext >&5
3701 1.76 pooka ac_cv_type_u_int32_t=no
3702 1.76 pooka fi
3703 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3704 1.76 pooka fi
3705 1.76 pooka echo "$as_me:3705: result: $ac_cv_type_u_int32_t" >&5
3706 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3707 1.76 pooka if test $ac_cv_type_u_int32_t = yes; then
3708 1.76 pooka
3709 1.76 pooka cat >>confdefs.h <<\EOF
3710 1.76 pooka #define uint32_t u_int32_t
3711 1.76 pooka EOF
3712 1.76 pooka
3713 1.76 pooka else
3714 1.76 pooka { { echo "$as_me:3714: error: cannot find a suitable type for uint32_t" >&5
3715 1.76 pooka echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
3716 1.76 pooka { (exit 1); exit 1; }; }
3717 1.76 pooka fi
3718 1.76 pooka
3719 1.76 pooka fi
3720 1.76 pooka
3721 1.76 pooka echo "$as_me:3721: checking for u_int32_t" >&5
3722 1.76 pooka echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3723 1.76 pooka if test "${ac_cv_type_u_int32_t+set}" = set; then
3724 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3725 1.76 pooka else
3726 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3727 1.76 pooka #line 3727 "configure"
3728 1.76 pooka #include "confdefs.h"
3729 1.76 pooka $ac_includes_default
3730 1.76 pooka int
3731 1.76 pooka main ()
3732 1.76 pooka {
3733 1.76 pooka if ((u_int32_t *) 0)
3734 1.76 pooka return 0;
3735 1.76 pooka if (sizeof (u_int32_t))
3736 1.76 pooka return 0;
3737 1.76 pooka ;
3738 1.76 pooka return 0;
3739 1.76 pooka }
3740 1.76 pooka _ACEOF
3741 1.76 pooka rm -f conftest.$ac_objext
3742 1.76 pooka if { (eval echo "$as_me:3742: \"$ac_compile\"") >&5
3743 1.76 pooka (eval $ac_compile) 2>&5
3744 1.76 pooka ac_status=$?
3745 1.76 pooka echo "$as_me:3745: \$? = $ac_status" >&5
3746 1.76 pooka (exit $ac_status); } &&
3747 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3748 1.76 pooka { (eval echo "$as_me:3748: \"$ac_try\"") >&5
3749 1.76 pooka (eval $ac_try) 2>&5
3750 1.76 pooka ac_status=$?
3751 1.76 pooka echo "$as_me:3751: \$? = $ac_status" >&5
3752 1.76 pooka (exit $ac_status); }; }; then
3753 1.76 pooka ac_cv_type_u_int32_t=yes
3754 1.76 pooka else
3755 1.76 pooka echo "$as_me: failed program was:" >&5
3756 1.76 pooka cat conftest.$ac_ext >&5
3757 1.76 pooka ac_cv_type_u_int32_t=no
3758 1.76 pooka fi
3759 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3760 1.76 pooka fi
3761 1.76 pooka echo "$as_me:3761: result: $ac_cv_type_u_int32_t" >&5
3762 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3763 1.76 pooka if test $ac_cv_type_u_int32_t = yes; then
3764 1.76 pooka :
3765 1.76 pooka else
3766 1.76 pooka
3767 1.76 pooka echo "$as_me:3767: checking for uint32_t" >&5
3768 1.76 pooka echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3769 1.76 pooka if test "${ac_cv_type_uint32_t+set}" = set; then
3770 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3771 1.76 pooka else
3772 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3773 1.76 pooka #line 3773 "configure"
3774 1.76 pooka #include "confdefs.h"
3775 1.76 pooka $ac_includes_default
3776 1.76 pooka int
3777 1.76 pooka main ()
3778 1.76 pooka {
3779 1.76 pooka if ((uint32_t *) 0)
3780 1.76 pooka return 0;
3781 1.76 pooka if (sizeof (uint32_t))
3782 1.76 pooka return 0;
3783 1.76 pooka ;
3784 1.76 pooka return 0;
3785 1.76 pooka }
3786 1.76 pooka _ACEOF
3787 1.76 pooka rm -f conftest.$ac_objext
3788 1.76 pooka if { (eval echo "$as_me:3788: \"$ac_compile\"") >&5
3789 1.76 pooka (eval $ac_compile) 2>&5
3790 1.76 pooka ac_status=$?
3791 1.76 pooka echo "$as_me:3791: \$? = $ac_status" >&5
3792 1.76 pooka (exit $ac_status); } &&
3793 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3794 1.76 pooka { (eval echo "$as_me:3794: \"$ac_try\"") >&5
3795 1.76 pooka (eval $ac_try) 2>&5
3796 1.76 pooka ac_status=$?
3797 1.76 pooka echo "$as_me:3797: \$? = $ac_status" >&5
3798 1.76 pooka (exit $ac_status); }; }; then
3799 1.76 pooka ac_cv_type_uint32_t=yes
3800 1.76 pooka else
3801 1.76 pooka echo "$as_me: failed program was:" >&5
3802 1.76 pooka cat conftest.$ac_ext >&5
3803 1.76 pooka ac_cv_type_uint32_t=no
3804 1.76 pooka fi
3805 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3806 1.76 pooka fi
3807 1.76 pooka echo "$as_me:3807: result: $ac_cv_type_uint32_t" >&5
3808 1.76 pooka echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3809 1.76 pooka if test $ac_cv_type_uint32_t = yes; then
3810 1.76 pooka
3811 1.76 pooka cat >>confdefs.h <<\EOF
3812 1.76 pooka #define u_int32_t uint32_t
3813 1.76 pooka EOF
3814 1.76 pooka
3815 1.76 pooka else
3816 1.76 pooka { { echo "$as_me:3816: error: cannot find a suitable type for u_int32_t" >&5
3817 1.76 pooka echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
3818 1.76 pooka { (exit 1); exit 1; }; }
3819 1.76 pooka fi
3820 1.76 pooka
3821 1.76 pooka fi
3822 1.76 pooka
3823 1.76 pooka echo "$as_me:3823: checking for uint64_t" >&5
3824 1.76 pooka echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3825 1.76 pooka if test "${ac_cv_type_uint64_t+set}" = set; then
3826 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3827 1.76 pooka else
3828 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3829 1.76 pooka #line 3829 "configure"
3830 1.76 pooka #include "confdefs.h"
3831 1.76 pooka $ac_includes_default
3832 1.76 pooka int
3833 1.76 pooka main ()
3834 1.76 pooka {
3835 1.76 pooka if ((uint64_t *) 0)
3836 1.76 pooka return 0;
3837 1.76 pooka if (sizeof (uint64_t))
3838 1.76 pooka return 0;
3839 1.76 pooka ;
3840 1.76 pooka return 0;
3841 1.76 pooka }
3842 1.76 pooka _ACEOF
3843 1.76 pooka rm -f conftest.$ac_objext
3844 1.76 pooka if { (eval echo "$as_me:3844: \"$ac_compile\"") >&5
3845 1.76 pooka (eval $ac_compile) 2>&5
3846 1.76 pooka ac_status=$?
3847 1.76 pooka echo "$as_me:3847: \$? = $ac_status" >&5
3848 1.76 pooka (exit $ac_status); } &&
3849 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3850 1.76 pooka { (eval echo "$as_me:3850: \"$ac_try\"") >&5
3851 1.76 pooka (eval $ac_try) 2>&5
3852 1.76 pooka ac_status=$?
3853 1.76 pooka echo "$as_me:3853: \$? = $ac_status" >&5
3854 1.76 pooka (exit $ac_status); }; }; then
3855 1.76 pooka ac_cv_type_uint64_t=yes
3856 1.76 pooka else
3857 1.76 pooka echo "$as_me: failed program was:" >&5
3858 1.76 pooka cat conftest.$ac_ext >&5
3859 1.76 pooka ac_cv_type_uint64_t=no
3860 1.76 pooka fi
3861 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3862 1.76 pooka fi
3863 1.76 pooka echo "$as_me:3863: result: $ac_cv_type_uint64_t" >&5
3864 1.76 pooka echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3865 1.76 pooka if test $ac_cv_type_uint64_t = yes; then
3866 1.76 pooka :
3867 1.76 pooka else
3868 1.76 pooka
3869 1.76 pooka echo "$as_me:3869: checking for u_int64_t" >&5
3870 1.76 pooka echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3871 1.76 pooka if test "${ac_cv_type_u_int64_t+set}" = set; then
3872 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3873 1.76 pooka else
3874 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3875 1.76 pooka #line 3875 "configure"
3876 1.76 pooka #include "confdefs.h"
3877 1.76 pooka $ac_includes_default
3878 1.76 pooka int
3879 1.76 pooka main ()
3880 1.76 pooka {
3881 1.76 pooka if ((u_int64_t *) 0)
3882 1.76 pooka return 0;
3883 1.76 pooka if (sizeof (u_int64_t))
3884 1.76 pooka return 0;
3885 1.76 pooka ;
3886 1.76 pooka return 0;
3887 1.76 pooka }
3888 1.76 pooka _ACEOF
3889 1.76 pooka rm -f conftest.$ac_objext
3890 1.76 pooka if { (eval echo "$as_me:3890: \"$ac_compile\"") >&5
3891 1.76 pooka (eval $ac_compile) 2>&5
3892 1.76 pooka ac_status=$?
3893 1.76 pooka echo "$as_me:3893: \$? = $ac_status" >&5
3894 1.76 pooka (exit $ac_status); } &&
3895 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3896 1.76 pooka { (eval echo "$as_me:3896: \"$ac_try\"") >&5
3897 1.76 pooka (eval $ac_try) 2>&5
3898 1.76 pooka ac_status=$?
3899 1.76 pooka echo "$as_me:3899: \$? = $ac_status" >&5
3900 1.76 pooka (exit $ac_status); }; }; then
3901 1.76 pooka ac_cv_type_u_int64_t=yes
3902 1.76 pooka else
3903 1.76 pooka echo "$as_me: failed program was:" >&5
3904 1.76 pooka cat conftest.$ac_ext >&5
3905 1.76 pooka ac_cv_type_u_int64_t=no
3906 1.76 pooka fi
3907 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3908 1.76 pooka fi
3909 1.76 pooka echo "$as_me:3909: result: $ac_cv_type_u_int64_t" >&5
3910 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3911 1.76 pooka if test $ac_cv_type_u_int64_t = yes; then
3912 1.76 pooka
3913 1.76 pooka cat >>confdefs.h <<\EOF
3914 1.76 pooka #define uint64_t u_int64_t
3915 1.76 pooka EOF
3916 1.76 pooka
3917 1.76 pooka else
3918 1.76 pooka { { echo "$as_me:3918: error: cannot find a suitable type for uint64_t" >&5
3919 1.76 pooka echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
3920 1.76 pooka { (exit 1); exit 1; }; }
3921 1.76 pooka fi
3922 1.76 pooka
3923 1.76 pooka fi
3924 1.76 pooka
3925 1.76 pooka echo "$as_me:3925: checking for u_int64_t" >&5
3926 1.76 pooka echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3927 1.76 pooka if test "${ac_cv_type_u_int64_t+set}" = set; then
3928 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3929 1.76 pooka else
3930 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3931 1.76 pooka #line 3931 "configure"
3932 1.76 pooka #include "confdefs.h"
3933 1.76 pooka $ac_includes_default
3934 1.76 pooka int
3935 1.76 pooka main ()
3936 1.76 pooka {
3937 1.76 pooka if ((u_int64_t *) 0)
3938 1.76 pooka return 0;
3939 1.76 pooka if (sizeof (u_int64_t))
3940 1.76 pooka return 0;
3941 1.76 pooka ;
3942 1.76 pooka return 0;
3943 1.76 pooka }
3944 1.76 pooka _ACEOF
3945 1.76 pooka rm -f conftest.$ac_objext
3946 1.76 pooka if { (eval echo "$as_me:3946: \"$ac_compile\"") >&5
3947 1.76 pooka (eval $ac_compile) 2>&5
3948 1.76 pooka ac_status=$?
3949 1.76 pooka echo "$as_me:3949: \$? = $ac_status" >&5
3950 1.76 pooka (exit $ac_status); } &&
3951 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3952 1.76 pooka { (eval echo "$as_me:3952: \"$ac_try\"") >&5
3953 1.76 pooka (eval $ac_try) 2>&5
3954 1.76 pooka ac_status=$?
3955 1.76 pooka echo "$as_me:3955: \$? = $ac_status" >&5
3956 1.76 pooka (exit $ac_status); }; }; then
3957 1.76 pooka ac_cv_type_u_int64_t=yes
3958 1.76 pooka else
3959 1.76 pooka echo "$as_me: failed program was:" >&5
3960 1.76 pooka cat conftest.$ac_ext >&5
3961 1.76 pooka ac_cv_type_u_int64_t=no
3962 1.76 pooka fi
3963 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
3964 1.76 pooka fi
3965 1.76 pooka echo "$as_me:3965: result: $ac_cv_type_u_int64_t" >&5
3966 1.76 pooka echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3967 1.76 pooka if test $ac_cv_type_u_int64_t = yes; then
3968 1.76 pooka :
3969 1.76 pooka else
3970 1.76 pooka
3971 1.76 pooka echo "$as_me:3971: checking for uint64_t" >&5
3972 1.76 pooka echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3973 1.76 pooka if test "${ac_cv_type_uint64_t+set}" = set; then
3974 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
3975 1.76 pooka else
3976 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
3977 1.76 pooka #line 3977 "configure"
3978 1.76 pooka #include "confdefs.h"
3979 1.76 pooka $ac_includes_default
3980 1.76 pooka int
3981 1.76 pooka main ()
3982 1.76 pooka {
3983 1.76 pooka if ((uint64_t *) 0)
3984 1.76 pooka return 0;
3985 1.76 pooka if (sizeof (uint64_t))
3986 1.76 pooka return 0;
3987 1.76 pooka ;
3988 1.76 pooka return 0;
3989 1.76 pooka }
3990 1.76 pooka _ACEOF
3991 1.76 pooka rm -f conftest.$ac_objext
3992 1.76 pooka if { (eval echo "$as_me:3992: \"$ac_compile\"") >&5
3993 1.76 pooka (eval $ac_compile) 2>&5
3994 1.76 pooka ac_status=$?
3995 1.76 pooka echo "$as_me:3995: \$? = $ac_status" >&5
3996 1.76 pooka (exit $ac_status); } &&
3997 1.76 pooka { ac_try='test -s conftest.$ac_objext'
3998 1.76 pooka { (eval echo "$as_me:3998: \"$ac_try\"") >&5
3999 1.76 pooka (eval $ac_try) 2>&5
4000 1.76 pooka ac_status=$?
4001 1.76 pooka echo "$as_me:4001: \$? = $ac_status" >&5
4002 1.76 pooka (exit $ac_status); }; }; then
4003 1.76 pooka ac_cv_type_uint64_t=yes
4004 1.76 pooka else
4005 1.76 pooka echo "$as_me: failed program was:" >&5
4006 1.76 pooka cat conftest.$ac_ext >&5
4007 1.76 pooka ac_cv_type_uint64_t=no
4008 1.76 pooka fi
4009 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4010 1.76 pooka fi
4011 1.76 pooka echo "$as_me:4011: result: $ac_cv_type_uint64_t" >&5
4012 1.76 pooka echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4013 1.76 pooka if test $ac_cv_type_uint64_t = yes; then
4014 1.76 pooka
4015 1.76 pooka cat >>confdefs.h <<\EOF
4016 1.76 pooka #define u_int64_t uint64_t
4017 1.76 pooka EOF
4018 1.76 pooka
4019 1.76 pooka else
4020 1.76 pooka { { echo "$as_me:4020: error: cannot find a suitable type for u_int64_t" >&5
4021 1.76 pooka echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
4022 1.76 pooka { (exit 1); exit 1; }; }
4023 1.76 pooka fi
4024 1.76 pooka
4025 1.76 pooka fi
4026 1.76 pooka
4027 1.76 pooka # Struct members.
4028 1.76 pooka echo "$as_me:4028: checking for DIR.dd_fd" >&5
4029 1.76 pooka echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
4030 1.76 pooka if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
4031 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4032 1.76 pooka else
4033 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4034 1.76 pooka #line 4034 "configure"
4035 1.76 pooka #include "confdefs.h"
4036 1.76 pooka #include <sys/types.h>
4037 1.76 pooka #include <dirent.h>
4038 1.76 pooka
4039 1.76 pooka int
4040 1.76 pooka main ()
4041 1.76 pooka {
4042 1.76 pooka static DIR ac_aggr;
4043 1.76 pooka if (ac_aggr.dd_fd)
4044 1.76 pooka return 0;
4045 1.76 pooka ;
4046 1.76 pooka return 0;
4047 1.76 pooka }
4048 1.76 pooka _ACEOF
4049 1.76 pooka rm -f conftest.$ac_objext
4050 1.76 pooka if { (eval echo "$as_me:4050: \"$ac_compile\"") >&5
4051 1.76 pooka (eval $ac_compile) 2>&5
4052 1.76 pooka ac_status=$?
4053 1.76 pooka echo "$as_me:4053: \$? = $ac_status" >&5
4054 1.76 pooka (exit $ac_status); } &&
4055 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4056 1.76 pooka { (eval echo "$as_me:4056: \"$ac_try\"") >&5
4057 1.76 pooka (eval $ac_try) 2>&5
4058 1.76 pooka ac_status=$?
4059 1.76 pooka echo "$as_me:4059: \$? = $ac_status" >&5
4060 1.76 pooka (exit $ac_status); }; }; then
4061 1.76 pooka ac_cv_member_DIR_dd_fd=yes
4062 1.76 pooka else
4063 1.76 pooka echo "$as_me: failed program was:" >&5
4064 1.76 pooka cat conftest.$ac_ext >&5
4065 1.76 pooka ac_cv_member_DIR_dd_fd=no
4066 1.76 pooka fi
4067 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4068 1.76 pooka fi
4069 1.76 pooka echo "$as_me:4069: result: $ac_cv_member_DIR_dd_fd" >&5
4070 1.76 pooka echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
4071 1.76 pooka if test $ac_cv_member_DIR_dd_fd = yes; then
4072 1.76 pooka
4073 1.76 pooka cat >>confdefs.h <<EOF
4074 1.76 pooka #define HAVE_DIR_DD_FD 1
4075 1.76 pooka EOF
4076 1.76 pooka
4077 1.76 pooka fi
4078 1.76 pooka echo "$as_me:4078: checking for DIR.__dd_fd" >&5
4079 1.76 pooka echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6
4080 1.76 pooka if test "${ac_cv_member_DIR___dd_fd+set}" = set; then
4081 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4082 1.76 pooka else
4083 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4084 1.76 pooka #line 4084 "configure"
4085 1.76 pooka #include "confdefs.h"
4086 1.76 pooka #include <sys/types.h>
4087 1.76 pooka #include <dirent.h>
4088 1.76 pooka
4089 1.76 pooka int
4090 1.76 pooka main ()
4091 1.76 pooka {
4092 1.76 pooka static DIR ac_aggr;
4093 1.76 pooka if (ac_aggr.__dd_fd)
4094 1.76 pooka return 0;
4095 1.76 pooka ;
4096 1.76 pooka return 0;
4097 1.76 pooka }
4098 1.76 pooka _ACEOF
4099 1.76 pooka rm -f conftest.$ac_objext
4100 1.76 pooka if { (eval echo "$as_me:4100: \"$ac_compile\"") >&5
4101 1.76 pooka (eval $ac_compile) 2>&5
4102 1.76 pooka ac_status=$?
4103 1.76 pooka echo "$as_me:4103: \$? = $ac_status" >&5
4104 1.76 pooka (exit $ac_status); } &&
4105 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4106 1.76 pooka { (eval echo "$as_me:4106: \"$ac_try\"") >&5
4107 1.76 pooka (eval $ac_try) 2>&5
4108 1.76 pooka ac_status=$?
4109 1.76 pooka echo "$as_me:4109: \$? = $ac_status" >&5
4110 1.76 pooka (exit $ac_status); }; }; then
4111 1.76 pooka ac_cv_member_DIR___dd_fd=yes
4112 1.76 pooka else
4113 1.76 pooka echo "$as_me: failed program was:" >&5
4114 1.76 pooka cat conftest.$ac_ext >&5
4115 1.76 pooka ac_cv_member_DIR___dd_fd=no
4116 1.76 pooka fi
4117 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4118 1.76 pooka fi
4119 1.76 pooka echo "$as_me:4119: result: $ac_cv_member_DIR___dd_fd" >&5
4120 1.76 pooka echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6
4121 1.76 pooka if test $ac_cv_member_DIR___dd_fd = yes; then
4122 1.76 pooka
4123 1.76 pooka cat >>confdefs.h <<EOF
4124 1.76 pooka #define HAVE_DIR___DD_FD 1
4125 1.76 pooka EOF
4126 1.76 pooka
4127 1.76 pooka fi
4128 1.76 pooka echo "$as_me:4128: checking for struct dirent.d_namlen" >&5
4129 1.76 pooka echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
4130 1.76 pooka if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
4131 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4132 1.76 pooka else
4133 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4134 1.76 pooka #line 4134 "configure"
4135 1.76 pooka #include "confdefs.h"
4136 1.76 pooka #include <sys/types.h>
4137 1.76 pooka #include <dirent.h>
4138 1.76 pooka
4139 1.76 pooka int
4140 1.76 pooka main ()
4141 1.76 pooka {
4142 1.76 pooka static struct dirent ac_aggr;
4143 1.76 pooka if (ac_aggr.d_namlen)
4144 1.76 pooka return 0;
4145 1.76 pooka ;
4146 1.76 pooka return 0;
4147 1.76 pooka }
4148 1.76 pooka _ACEOF
4149 1.76 pooka rm -f conftest.$ac_objext
4150 1.76 pooka if { (eval echo "$as_me:4150: \"$ac_compile\"") >&5
4151 1.76 pooka (eval $ac_compile) 2>&5
4152 1.76 pooka ac_status=$?
4153 1.76 pooka echo "$as_me:4153: \$? = $ac_status" >&5
4154 1.76 pooka (exit $ac_status); } &&
4155 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4156 1.76 pooka { (eval echo "$as_me:4156: \"$ac_try\"") >&5
4157 1.76 pooka (eval $ac_try) 2>&5
4158 1.76 pooka ac_status=$?
4159 1.76 pooka echo "$as_me:4159: \$? = $ac_status" >&5
4160 1.76 pooka (exit $ac_status); }; }; then
4161 1.76 pooka ac_cv_member_struct_dirent_d_namlen=yes
4162 1.76 pooka else
4163 1.76 pooka echo "$as_me: failed program was:" >&5
4164 1.76 pooka cat conftest.$ac_ext >&5
4165 1.76 pooka ac_cv_member_struct_dirent_d_namlen=no
4166 1.76 pooka fi
4167 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4168 1.76 pooka fi
4169 1.76 pooka echo "$as_me:4169: result: $ac_cv_member_struct_dirent_d_namlen" >&5
4170 1.76 pooka echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
4171 1.76 pooka if test $ac_cv_member_struct_dirent_d_namlen = yes; then
4172 1.76 pooka
4173 1.76 pooka cat >>confdefs.h <<EOF
4174 1.76 pooka #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
4175 1.76 pooka EOF
4176 1.76 pooka
4177 1.76 pooka fi
4178 1.76 pooka
4179 1.76 pooka echo "$as_me:4179: checking for struct stat.st_flags" >&5
4180 1.76 pooka echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
4181 1.76 pooka if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
4182 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4183 1.76 pooka else
4184 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4185 1.76 pooka #line 4185 "configure"
4186 1.76 pooka #include "confdefs.h"
4187 1.76 pooka #include <sys/stat.h>
4188 1.76 pooka
4189 1.76 pooka int
4190 1.76 pooka main ()
4191 1.76 pooka {
4192 1.76 pooka static struct stat ac_aggr;
4193 1.76 pooka if (ac_aggr.st_flags)
4194 1.76 pooka return 0;
4195 1.76 pooka ;
4196 1.76 pooka return 0;
4197 1.76 pooka }
4198 1.76 pooka _ACEOF
4199 1.76 pooka rm -f conftest.$ac_objext
4200 1.76 pooka if { (eval echo "$as_me:4200: \"$ac_compile\"") >&5
4201 1.76 pooka (eval $ac_compile) 2>&5
4202 1.76 pooka ac_status=$?
4203 1.76 pooka echo "$as_me:4203: \$? = $ac_status" >&5
4204 1.76 pooka (exit $ac_status); } &&
4205 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4206 1.76 pooka { (eval echo "$as_me:4206: \"$ac_try\"") >&5
4207 1.76 pooka (eval $ac_try) 2>&5
4208 1.76 pooka ac_status=$?
4209 1.76 pooka echo "$as_me:4209: \$? = $ac_status" >&5
4210 1.76 pooka (exit $ac_status); }; }; then
4211 1.76 pooka ac_cv_member_struct_stat_st_flags=yes
4212 1.76 pooka else
4213 1.76 pooka echo "$as_me: failed program was:" >&5
4214 1.76 pooka cat conftest.$ac_ext >&5
4215 1.76 pooka ac_cv_member_struct_stat_st_flags=no
4216 1.76 pooka fi
4217 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4218 1.76 pooka fi
4219 1.76 pooka echo "$as_me:4219: result: $ac_cv_member_struct_stat_st_flags" >&5
4220 1.76 pooka echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
4221 1.76 pooka if test $ac_cv_member_struct_stat_st_flags = yes; then
4222 1.76 pooka
4223 1.76 pooka cat >>confdefs.h <<EOF
4224 1.76 pooka #define HAVE_STRUCT_STAT_ST_FLAGS 1
4225 1.76 pooka EOF
4226 1.76 pooka
4227 1.76 pooka fi
4228 1.76 pooka echo "$as_me:4228: checking for struct stat.st_gen" >&5
4229 1.76 pooka echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
4230 1.76 pooka if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
4231 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4232 1.76 pooka else
4233 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4234 1.76 pooka #line 4234 "configure"
4235 1.76 pooka #include "confdefs.h"
4236 1.76 pooka #include <sys/stat.h>
4237 1.76 pooka
4238 1.76 pooka int
4239 1.76 pooka main ()
4240 1.76 pooka {
4241 1.76 pooka static struct stat ac_aggr;
4242 1.76 pooka if (ac_aggr.st_gen)
4243 1.76 pooka return 0;
4244 1.76 pooka ;
4245 1.76 pooka return 0;
4246 1.76 pooka }
4247 1.76 pooka _ACEOF
4248 1.76 pooka rm -f conftest.$ac_objext
4249 1.76 pooka if { (eval echo "$as_me:4249: \"$ac_compile\"") >&5
4250 1.76 pooka (eval $ac_compile) 2>&5
4251 1.76 pooka ac_status=$?
4252 1.76 pooka echo "$as_me:4252: \$? = $ac_status" >&5
4253 1.76 pooka (exit $ac_status); } &&
4254 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4255 1.76 pooka { (eval echo "$as_me:4255: \"$ac_try\"") >&5
4256 1.76 pooka (eval $ac_try) 2>&5
4257 1.76 pooka ac_status=$?
4258 1.76 pooka echo "$as_me:4258: \$? = $ac_status" >&5
4259 1.76 pooka (exit $ac_status); }; }; then
4260 1.76 pooka ac_cv_member_struct_stat_st_gen=yes
4261 1.76 pooka else
4262 1.76 pooka echo "$as_me: failed program was:" >&5
4263 1.76 pooka cat conftest.$ac_ext >&5
4264 1.76 pooka ac_cv_member_struct_stat_st_gen=no
4265 1.76 pooka fi
4266 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4267 1.76 pooka fi
4268 1.76 pooka echo "$as_me:4268: result: $ac_cv_member_struct_stat_st_gen" >&5
4269 1.76 pooka echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
4270 1.76 pooka if test $ac_cv_member_struct_stat_st_gen = yes; then
4271 1.76 pooka
4272 1.76 pooka cat >>confdefs.h <<EOF
4273 1.76 pooka #define HAVE_STRUCT_STAT_ST_GEN 1
4274 1.76 pooka EOF
4275 1.76 pooka
4276 1.76 pooka fi
4277 1.76 pooka echo "$as_me:4277: checking for struct stat.st_birthtime" >&5
4278 1.76 pooka echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
4279 1.76 pooka if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
4280 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4281 1.76 pooka else
4282 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4283 1.76 pooka #line 4283 "configure"
4284 1.76 pooka #include "confdefs.h"
4285 1.76 pooka #include <sys/stat.h>
4286 1.76 pooka
4287 1.76 pooka int
4288 1.76 pooka main ()
4289 1.76 pooka {
4290 1.76 pooka static struct stat ac_aggr;
4291 1.76 pooka if (ac_aggr.st_birthtime)
4292 1.76 pooka return 0;
4293 1.76 pooka ;
4294 1.76 pooka return 0;
4295 1.76 pooka }
4296 1.76 pooka _ACEOF
4297 1.76 pooka rm -f conftest.$ac_objext
4298 1.76 pooka if { (eval echo "$as_me:4298: \"$ac_compile\"") >&5
4299 1.76 pooka (eval $ac_compile) 2>&5
4300 1.76 pooka ac_status=$?
4301 1.76 pooka echo "$as_me:4301: \$? = $ac_status" >&5
4302 1.76 pooka (exit $ac_status); } &&
4303 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4304 1.76 pooka { (eval echo "$as_me:4304: \"$ac_try\"") >&5
4305 1.76 pooka (eval $ac_try) 2>&5
4306 1.76 pooka ac_status=$?
4307 1.76 pooka echo "$as_me:4307: \$? = $ac_status" >&5
4308 1.76 pooka (exit $ac_status); }; }; then
4309 1.76 pooka ac_cv_member_struct_stat_st_birthtime=yes
4310 1.76 pooka else
4311 1.76 pooka echo "$as_me: failed program was:" >&5
4312 1.76 pooka cat conftest.$ac_ext >&5
4313 1.76 pooka ac_cv_member_struct_stat_st_birthtime=no
4314 1.76 pooka fi
4315 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4316 1.76 pooka fi
4317 1.76 pooka echo "$as_me:4317: result: $ac_cv_member_struct_stat_st_birthtime" >&5
4318 1.76 pooka echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
4319 1.76 pooka if test $ac_cv_member_struct_stat_st_birthtime = yes; then
4320 1.76 pooka
4321 1.76 pooka cat >>confdefs.h <<EOF
4322 1.76 pooka #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
4323 1.76 pooka EOF
4324 1.76 pooka
4325 1.76 pooka fi
4326 1.76 pooka echo "$as_me:4326: checking for struct stat.st_birthtimensec" >&5
4327 1.76 pooka echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6
4328 1.76 pooka if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
4329 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4330 1.76 pooka else
4331 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4332 1.76 pooka #line 4332 "configure"
4333 1.76 pooka #include "confdefs.h"
4334 1.76 pooka #include <sys/stat.h>
4335 1.76 pooka
4336 1.76 pooka int
4337 1.76 pooka main ()
4338 1.76 pooka {
4339 1.76 pooka static struct stat ac_aggr;
4340 1.76 pooka if (ac_aggr.st_birthtimensec)
4341 1.76 pooka return 0;
4342 1.76 pooka ;
4343 1.76 pooka return 0;
4344 1.76 pooka }
4345 1.76 pooka _ACEOF
4346 1.76 pooka rm -f conftest.$ac_objext
4347 1.76 pooka if { (eval echo "$as_me:4347: \"$ac_compile\"") >&5
4348 1.76 pooka (eval $ac_compile) 2>&5
4349 1.76 pooka ac_status=$?
4350 1.76 pooka echo "$as_me:4350: \$? = $ac_status" >&5
4351 1.76 pooka (exit $ac_status); } &&
4352 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4353 1.76 pooka { (eval echo "$as_me:4353: \"$ac_try\"") >&5
4354 1.76 pooka (eval $ac_try) 2>&5
4355 1.76 pooka ac_status=$?
4356 1.76 pooka echo "$as_me:4356: \$? = $ac_status" >&5
4357 1.76 pooka (exit $ac_status); }; }; then
4358 1.76 pooka ac_cv_member_struct_stat_st_birthtimensec=yes
4359 1.76 pooka else
4360 1.76 pooka echo "$as_me: failed program was:" >&5
4361 1.76 pooka cat conftest.$ac_ext >&5
4362 1.76 pooka ac_cv_member_struct_stat_st_birthtimensec=no
4363 1.76 pooka fi
4364 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4365 1.76 pooka fi
4366 1.76 pooka echo "$as_me:4366: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
4367 1.76 pooka echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6
4368 1.76 pooka if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
4369 1.76 pooka
4370 1.76 pooka cat >>confdefs.h <<EOF
4371 1.76 pooka #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
4372 1.76 pooka EOF
4373 1.76 pooka
4374 1.76 pooka fi
4375 1.76 pooka echo "$as_me:4375: checking for struct stat.st_atim" >&5
4376 1.76 pooka echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
4377 1.76 pooka if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
4378 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4379 1.76 pooka else
4380 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4381 1.76 pooka #line 4381 "configure"
4382 1.76 pooka #include "confdefs.h"
4383 1.76 pooka #include <sys/stat.h>
4384 1.76 pooka
4385 1.76 pooka int
4386 1.76 pooka main ()
4387 1.76 pooka {
4388 1.76 pooka static struct stat ac_aggr;
4389 1.76 pooka if (ac_aggr.st_atim)
4390 1.76 pooka return 0;
4391 1.76 pooka ;
4392 1.76 pooka return 0;
4393 1.76 pooka }
4394 1.76 pooka _ACEOF
4395 1.76 pooka rm -f conftest.$ac_objext
4396 1.76 pooka if { (eval echo "$as_me:4396: \"$ac_compile\"") >&5
4397 1.76 pooka (eval $ac_compile) 2>&5
4398 1.76 pooka ac_status=$?
4399 1.76 pooka echo "$as_me:4399: \$? = $ac_status" >&5
4400 1.76 pooka (exit $ac_status); } &&
4401 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4402 1.76 pooka { (eval echo "$as_me:4402: \"$ac_try\"") >&5
4403 1.76 pooka (eval $ac_try) 2>&5
4404 1.76 pooka ac_status=$?
4405 1.76 pooka echo "$as_me:4405: \$? = $ac_status" >&5
4406 1.76 pooka (exit $ac_status); }; }; then
4407 1.76 pooka ac_cv_member_struct_stat_st_atim=yes
4408 1.76 pooka else
4409 1.76 pooka echo "$as_me: failed program was:" >&5
4410 1.76 pooka cat conftest.$ac_ext >&5
4411 1.76 pooka ac_cv_member_struct_stat_st_atim=no
4412 1.76 pooka fi
4413 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4414 1.76 pooka fi
4415 1.76 pooka echo "$as_me:4415: result: $ac_cv_member_struct_stat_st_atim" >&5
4416 1.76 pooka echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
4417 1.76 pooka if test $ac_cv_member_struct_stat_st_atim = yes; then
4418 1.76 pooka
4419 1.76 pooka cat >>confdefs.h <<EOF
4420 1.76 pooka #define HAVE_STRUCT_STAT_ST_ATIM 1
4421 1.76 pooka EOF
4422 1.76 pooka
4423 1.76 pooka fi
4424 1.76 pooka echo "$as_me:4424: checking for struct stat.st_mtimensec" >&5
4425 1.76 pooka echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
4426 1.76 pooka if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
4427 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4428 1.76 pooka else
4429 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4430 1.76 pooka #line 4430 "configure"
4431 1.76 pooka #include "confdefs.h"
4432 1.76 pooka #include <sys/stat.h>
4433 1.76 pooka
4434 1.76 pooka int
4435 1.76 pooka main ()
4436 1.76 pooka {
4437 1.76 pooka static struct stat ac_aggr;
4438 1.76 pooka if (ac_aggr.st_mtimensec)
4439 1.76 pooka return 0;
4440 1.76 pooka ;
4441 1.76 pooka return 0;
4442 1.76 pooka }
4443 1.76 pooka _ACEOF
4444 1.76 pooka rm -f conftest.$ac_objext
4445 1.76 pooka if { (eval echo "$as_me:4445: \"$ac_compile\"") >&5
4446 1.76 pooka (eval $ac_compile) 2>&5
4447 1.76 pooka ac_status=$?
4448 1.76 pooka echo "$as_me:4448: \$? = $ac_status" >&5
4449 1.76 pooka (exit $ac_status); } &&
4450 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4451 1.76 pooka { (eval echo "$as_me:4451: \"$ac_try\"") >&5
4452 1.76 pooka (eval $ac_try) 2>&5
4453 1.76 pooka ac_status=$?
4454 1.76 pooka echo "$as_me:4454: \$? = $ac_status" >&5
4455 1.76 pooka (exit $ac_status); }; }; then
4456 1.76 pooka ac_cv_member_struct_stat_st_mtimensec=yes
4457 1.76 pooka else
4458 1.76 pooka echo "$as_me: failed program was:" >&5
4459 1.76 pooka cat conftest.$ac_ext >&5
4460 1.76 pooka ac_cv_member_struct_stat_st_mtimensec=no
4461 1.76 pooka fi
4462 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4463 1.76 pooka fi
4464 1.76 pooka echo "$as_me:4464: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
4465 1.76 pooka echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
4466 1.76 pooka if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
4467 1.76 pooka
4468 1.76 pooka cat >>confdefs.h <<EOF
4469 1.76 pooka #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
4470 1.76 pooka EOF
4471 1.76 pooka
4472 1.76 pooka fi
4473 1.76 pooka
4474 1.76 pooka echo "$as_me:4474: checking for struct statvfs.f_iosize" >&5
4475 1.76 pooka echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
4476 1.76 pooka if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
4477 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4478 1.76 pooka else
4479 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4480 1.76 pooka #line 4480 "configure"
4481 1.76 pooka #include "confdefs.h"
4482 1.76 pooka #include <sys/statvfs.h>
4483 1.76 pooka
4484 1.76 pooka int
4485 1.76 pooka main ()
4486 1.76 pooka {
4487 1.76 pooka static struct statvfs ac_aggr;
4488 1.76 pooka if (ac_aggr.f_iosize)
4489 1.76 pooka return 0;
4490 1.76 pooka ;
4491 1.76 pooka return 0;
4492 1.76 pooka }
4493 1.76 pooka _ACEOF
4494 1.76 pooka rm -f conftest.$ac_objext
4495 1.76 pooka if { (eval echo "$as_me:4495: \"$ac_compile\"") >&5
4496 1.76 pooka (eval $ac_compile) 2>&5
4497 1.76 pooka ac_status=$?
4498 1.76 pooka echo "$as_me:4498: \$? = $ac_status" >&5
4499 1.76 pooka (exit $ac_status); } &&
4500 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4501 1.76 pooka { (eval echo "$as_me:4501: \"$ac_try\"") >&5
4502 1.76 pooka (eval $ac_try) 2>&5
4503 1.76 pooka ac_status=$?
4504 1.76 pooka echo "$as_me:4504: \$? = $ac_status" >&5
4505 1.76 pooka (exit $ac_status); }; }; then
4506 1.76 pooka ac_cv_member_struct_statvfs_f_iosize=yes
4507 1.76 pooka else
4508 1.76 pooka echo "$as_me: failed program was:" >&5
4509 1.76 pooka cat conftest.$ac_ext >&5
4510 1.76 pooka ac_cv_member_struct_statvfs_f_iosize=no
4511 1.76 pooka fi
4512 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4513 1.76 pooka fi
4514 1.76 pooka echo "$as_me:4514: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
4515 1.76 pooka echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
4516 1.76 pooka if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
4517 1.76 pooka
4518 1.76 pooka cat >>confdefs.h <<EOF
4519 1.76 pooka #define HAVE_STRUCT_STATVFS_F_IOSIZE 1
4520 1.76 pooka EOF
4521 1.76 pooka
4522 1.76 pooka fi
4523 1.76 pooka
4524 1.79 jmcneill echo "$as_me:4524: checking for struct tm.tm_gmtoff" >&5
4525 1.79 jmcneill echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4526 1.79 jmcneill if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4527 1.79 jmcneill echo $ECHO_N "(cached) $ECHO_C" >&6
4528 1.79 jmcneill else
4529 1.79 jmcneill cat >conftest.$ac_ext <<_ACEOF
4530 1.79 jmcneill #line 4530 "configure"
4531 1.79 jmcneill #include "confdefs.h"
4532 1.79 jmcneill #include <time.h>
4533 1.79 jmcneill
4534 1.79 jmcneill int
4535 1.79 jmcneill main ()
4536 1.79 jmcneill {
4537 1.79 jmcneill static struct tm ac_aggr;
4538 1.79 jmcneill if (ac_aggr.tm_gmtoff)
4539 1.79 jmcneill return 0;
4540 1.79 jmcneill ;
4541 1.79 jmcneill return 0;
4542 1.79 jmcneill }
4543 1.79 jmcneill _ACEOF
4544 1.79 jmcneill rm -f conftest.$ac_objext
4545 1.79 jmcneill if { (eval echo "$as_me:4545: \"$ac_compile\"") >&5
4546 1.79 jmcneill (eval $ac_compile) 2>&5
4547 1.79 jmcneill ac_status=$?
4548 1.79 jmcneill echo "$as_me:4548: \$? = $ac_status" >&5
4549 1.79 jmcneill (exit $ac_status); } &&
4550 1.79 jmcneill { ac_try='test -s conftest.$ac_objext'
4551 1.79 jmcneill { (eval echo "$as_me:4551: \"$ac_try\"") >&5
4552 1.79 jmcneill (eval $ac_try) 2>&5
4553 1.79 jmcneill ac_status=$?
4554 1.79 jmcneill echo "$as_me:4554: \$? = $ac_status" >&5
4555 1.79 jmcneill (exit $ac_status); }; }; then
4556 1.79 jmcneill ac_cv_member_struct_tm_tm_gmtoff=yes
4557 1.79 jmcneill else
4558 1.79 jmcneill echo "$as_me: failed program was:" >&5
4559 1.79 jmcneill cat conftest.$ac_ext >&5
4560 1.79 jmcneill ac_cv_member_struct_tm_tm_gmtoff=no
4561 1.79 jmcneill fi
4562 1.79 jmcneill rm -f conftest.$ac_objext conftest.$ac_ext
4563 1.79 jmcneill fi
4564 1.79 jmcneill echo "$as_me:4564: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4565 1.79 jmcneill echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4566 1.79 jmcneill if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4567 1.79 jmcneill
4568 1.79 jmcneill cat >>confdefs.h <<EOF
4569 1.79 jmcneill #define HAVE_STRUCT_TM_TM_GMTOFF 1
4570 1.79 jmcneill EOF
4571 1.79 jmcneill
4572 1.79 jmcneill fi
4573 1.79 jmcneill
4574 1.76 pooka # Global variable decls.
4575 1.79 jmcneill echo "$as_me:4575: checking whether optind is declared" >&5
4576 1.76 pooka echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
4577 1.76 pooka if test "${ac_cv_have_decl_optind+set}" = set; then
4578 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4579 1.76 pooka else
4580 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4581 1.79 jmcneill #line 4581 "configure"
4582 1.76 pooka #include "confdefs.h"
4583 1.76 pooka
4584 1.76 pooka #include <stdio.h>
4585 1.76 pooka #include <stdlib.h>
4586 1.76 pooka #include <unistd.h>
4587 1.76 pooka #ifdef HAVE_GETOPT_H
4588 1.76 pooka #include <getopt.h>
4589 1.76 pooka #endif
4590 1.76 pooka
4591 1.76 pooka int
4592 1.76 pooka main ()
4593 1.76 pooka {
4594 1.76 pooka #ifndef optind
4595 1.76 pooka char *p = (char *) optind;
4596 1.76 pooka #endif
4597 1.76 pooka
4598 1.76 pooka ;
4599 1.76 pooka return 0;
4600 1.76 pooka }
4601 1.76 pooka _ACEOF
4602 1.76 pooka rm -f conftest.$ac_objext
4603 1.79 jmcneill if { (eval echo "$as_me:4603: \"$ac_compile\"") >&5
4604 1.76 pooka (eval $ac_compile) 2>&5
4605 1.76 pooka ac_status=$?
4606 1.79 jmcneill echo "$as_me:4606: \$? = $ac_status" >&5
4607 1.76 pooka (exit $ac_status); } &&
4608 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4609 1.79 jmcneill { (eval echo "$as_me:4609: \"$ac_try\"") >&5
4610 1.76 pooka (eval $ac_try) 2>&5
4611 1.76 pooka ac_status=$?
4612 1.79 jmcneill echo "$as_me:4612: \$? = $ac_status" >&5
4613 1.76 pooka (exit $ac_status); }; }; then
4614 1.76 pooka ac_cv_have_decl_optind=yes
4615 1.76 pooka else
4616 1.76 pooka echo "$as_me: failed program was:" >&5
4617 1.76 pooka cat conftest.$ac_ext >&5
4618 1.76 pooka ac_cv_have_decl_optind=no
4619 1.76 pooka fi
4620 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4621 1.76 pooka fi
4622 1.79 jmcneill echo "$as_me:4622: result: $ac_cv_have_decl_optind" >&5
4623 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
4624 1.76 pooka if test $ac_cv_have_decl_optind = yes; then
4625 1.76 pooka
4626 1.76 pooka cat >>confdefs.h <<EOF
4627 1.76 pooka #define HAVE_DECL_OPTIND 1
4628 1.76 pooka EOF
4629 1.76 pooka
4630 1.76 pooka else
4631 1.76 pooka cat >>confdefs.h <<EOF
4632 1.76 pooka #define HAVE_DECL_OPTIND 0
4633 1.76 pooka EOF
4634 1.76 pooka
4635 1.76 pooka fi
4636 1.79 jmcneill echo "$as_me:4636: checking whether optreset is declared" >&5
4637 1.76 pooka echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4638 1.76 pooka if test "${ac_cv_have_decl_optreset+set}" = set; then
4639 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4640 1.76 pooka else
4641 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4642 1.79 jmcneill #line 4642 "configure"
4643 1.76 pooka #include "confdefs.h"
4644 1.76 pooka
4645 1.76 pooka #include <stdio.h>
4646 1.76 pooka #include <stdlib.h>
4647 1.76 pooka #include <unistd.h>
4648 1.76 pooka #ifdef HAVE_GETOPT_H
4649 1.76 pooka #include <getopt.h>
4650 1.76 pooka #endif
4651 1.76 pooka
4652 1.76 pooka int
4653 1.76 pooka main ()
4654 1.76 pooka {
4655 1.76 pooka #ifndef optreset
4656 1.76 pooka char *p = (char *) optreset;
4657 1.76 pooka #endif
4658 1.76 pooka
4659 1.76 pooka ;
4660 1.76 pooka return 0;
4661 1.76 pooka }
4662 1.76 pooka _ACEOF
4663 1.76 pooka rm -f conftest.$ac_objext
4664 1.79 jmcneill if { (eval echo "$as_me:4664: \"$ac_compile\"") >&5
4665 1.76 pooka (eval $ac_compile) 2>&5
4666 1.76 pooka ac_status=$?
4667 1.79 jmcneill echo "$as_me:4667: \$? = $ac_status" >&5
4668 1.76 pooka (exit $ac_status); } &&
4669 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4670 1.79 jmcneill { (eval echo "$as_me:4670: \"$ac_try\"") >&5
4671 1.76 pooka (eval $ac_try) 2>&5
4672 1.76 pooka ac_status=$?
4673 1.79 jmcneill echo "$as_me:4673: \$? = $ac_status" >&5
4674 1.76 pooka (exit $ac_status); }; }; then
4675 1.76 pooka ac_cv_have_decl_optreset=yes
4676 1.76 pooka else
4677 1.76 pooka echo "$as_me: failed program was:" >&5
4678 1.76 pooka cat conftest.$ac_ext >&5
4679 1.76 pooka ac_cv_have_decl_optreset=no
4680 1.76 pooka fi
4681 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4682 1.76 pooka fi
4683 1.79 jmcneill echo "$as_me:4683: result: $ac_cv_have_decl_optreset" >&5
4684 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4685 1.76 pooka if test $ac_cv_have_decl_optreset = yes; then
4686 1.76 pooka
4687 1.76 pooka cat >>confdefs.h <<EOF
4688 1.76 pooka #define HAVE_DECL_OPTRESET 1
4689 1.76 pooka EOF
4690 1.76 pooka
4691 1.76 pooka else
4692 1.76 pooka cat >>confdefs.h <<EOF
4693 1.76 pooka #define HAVE_DECL_OPTRESET 0
4694 1.76 pooka EOF
4695 1.76 pooka
4696 1.76 pooka fi
4697 1.76 pooka
4698 1.79 jmcneill echo "$as_me:4698: checking whether sys_signame is declared" >&5
4699 1.76 pooka echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
4700 1.76 pooka if test "${ac_cv_have_decl_sys_signame+set}" = set; then
4701 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4702 1.76 pooka else
4703 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4704 1.79 jmcneill #line 4704 "configure"
4705 1.76 pooka #include "confdefs.h"
4706 1.76 pooka #include <signal.h>
4707 1.76 pooka
4708 1.76 pooka int
4709 1.76 pooka main ()
4710 1.76 pooka {
4711 1.76 pooka #ifndef sys_signame
4712 1.76 pooka char *p = (char *) sys_signame;
4713 1.76 pooka #endif
4714 1.76 pooka
4715 1.76 pooka ;
4716 1.76 pooka return 0;
4717 1.76 pooka }
4718 1.76 pooka _ACEOF
4719 1.76 pooka rm -f conftest.$ac_objext
4720 1.79 jmcneill if { (eval echo "$as_me:4720: \"$ac_compile\"") >&5
4721 1.76 pooka (eval $ac_compile) 2>&5
4722 1.76 pooka ac_status=$?
4723 1.79 jmcneill echo "$as_me:4723: \$? = $ac_status" >&5
4724 1.76 pooka (exit $ac_status); } &&
4725 1.76 pooka { ac_try='test -s conftest.$ac_objext'
4726 1.79 jmcneill { (eval echo "$as_me:4726: \"$ac_try\"") >&5
4727 1.76 pooka (eval $ac_try) 2>&5
4728 1.76 pooka ac_status=$?
4729 1.79 jmcneill echo "$as_me:4729: \$? = $ac_status" >&5
4730 1.76 pooka (exit $ac_status); }; }; then
4731 1.76 pooka ac_cv_have_decl_sys_signame=yes
4732 1.76 pooka else
4733 1.76 pooka echo "$as_me: failed program was:" >&5
4734 1.76 pooka cat conftest.$ac_ext >&5
4735 1.76 pooka ac_cv_have_decl_sys_signame=no
4736 1.76 pooka fi
4737 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
4738 1.76 pooka fi
4739 1.79 jmcneill echo "$as_me:4739: result: $ac_cv_have_decl_sys_signame" >&5
4740 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
4741 1.76 pooka if test $ac_cv_have_decl_sys_signame = yes; then
4742 1.76 pooka
4743 1.76 pooka cat >>confdefs.h <<EOF
4744 1.76 pooka #define HAVE_DECL_SYS_SIGNAME 1
4745 1.76 pooka EOF
4746 1.76 pooka
4747 1.76 pooka else
4748 1.76 pooka cat >>confdefs.h <<EOF
4749 1.76 pooka #define HAVE_DECL_SYS_SIGNAME 0
4750 1.76 pooka EOF
4751 1.76 pooka
4752 1.76 pooka fi
4753 1.76 pooka
4754 1.76 pooka # Library functions (where a .h check isn't enough).
4755 1.76 pooka # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4756 1.76 pooka # for constant arguments. Useless!
4757 1.79 jmcneill echo "$as_me:4757: checking for working alloca.h" >&5
4758 1.76 pooka echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4759 1.76 pooka if test "${ac_cv_working_alloca_h+set}" = set; then
4760 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4761 1.76 pooka else
4762 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4763 1.79 jmcneill #line 4763 "configure"
4764 1.76 pooka #include "confdefs.h"
4765 1.76 pooka #include <alloca.h>
4766 1.76 pooka int
4767 1.76 pooka main ()
4768 1.76 pooka {
4769 1.76 pooka char *p = (char *) alloca (2 * sizeof (int));
4770 1.76 pooka ;
4771 1.76 pooka return 0;
4772 1.76 pooka }
4773 1.76 pooka _ACEOF
4774 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
4775 1.79 jmcneill if { (eval echo "$as_me:4775: \"$ac_link\"") >&5
4776 1.76 pooka (eval $ac_link) 2>&5
4777 1.76 pooka ac_status=$?
4778 1.79 jmcneill echo "$as_me:4778: \$? = $ac_status" >&5
4779 1.76 pooka (exit $ac_status); } &&
4780 1.76 pooka { ac_try='test -s conftest$ac_exeext'
4781 1.79 jmcneill { (eval echo "$as_me:4781: \"$ac_try\"") >&5
4782 1.76 pooka (eval $ac_try) 2>&5
4783 1.76 pooka ac_status=$?
4784 1.79 jmcneill echo "$as_me:4784: \$? = $ac_status" >&5
4785 1.76 pooka (exit $ac_status); }; }; then
4786 1.76 pooka ac_cv_working_alloca_h=yes
4787 1.76 pooka else
4788 1.76 pooka echo "$as_me: failed program was:" >&5
4789 1.76 pooka cat conftest.$ac_ext >&5
4790 1.76 pooka ac_cv_working_alloca_h=no
4791 1.76 pooka fi
4792 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4793 1.76 pooka fi
4794 1.79 jmcneill echo "$as_me:4794: result: $ac_cv_working_alloca_h" >&5
4795 1.76 pooka echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4796 1.76 pooka if test $ac_cv_working_alloca_h = yes; then
4797 1.76 pooka
4798 1.76 pooka cat >>confdefs.h <<\EOF
4799 1.76 pooka #define HAVE_ALLOCA_H 1
4800 1.76 pooka EOF
4801 1.76 pooka
4802 1.76 pooka fi
4803 1.76 pooka
4804 1.79 jmcneill echo "$as_me:4804: checking for alloca" >&5
4805 1.76 pooka echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4806 1.76 pooka if test "${ac_cv_func_alloca_works+set}" = set; then
4807 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4808 1.76 pooka else
4809 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4810 1.79 jmcneill #line 4810 "configure"
4811 1.76 pooka #include "confdefs.h"
4812 1.76 pooka #ifdef __GNUC__
4813 1.76 pooka # define alloca __builtin_alloca
4814 1.76 pooka #else
4815 1.76 pooka # ifdef _MSC_VER
4816 1.76 pooka # include <malloc.h>
4817 1.76 pooka # define alloca _alloca
4818 1.76 pooka # else
4819 1.76 pooka # if HAVE_ALLOCA_H
4820 1.76 pooka # include <alloca.h>
4821 1.76 pooka # else
4822 1.76 pooka # ifdef _AIX
4823 1.76 pooka #pragma alloca
4824 1.76 pooka # else
4825 1.76 pooka # ifndef alloca /* predefined by HP cc +Olibcalls */
4826 1.76 pooka char *alloca ();
4827 1.76 pooka # endif
4828 1.76 pooka # endif
4829 1.76 pooka # endif
4830 1.76 pooka # endif
4831 1.76 pooka #endif
4832 1.76 pooka
4833 1.76 pooka int
4834 1.76 pooka main ()
4835 1.76 pooka {
4836 1.76 pooka char *p = (char *) alloca (1);
4837 1.76 pooka ;
4838 1.76 pooka return 0;
4839 1.76 pooka }
4840 1.76 pooka _ACEOF
4841 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
4842 1.79 jmcneill if { (eval echo "$as_me:4842: \"$ac_link\"") >&5
4843 1.76 pooka (eval $ac_link) 2>&5
4844 1.76 pooka ac_status=$?
4845 1.79 jmcneill echo "$as_me:4845: \$? = $ac_status" >&5
4846 1.76 pooka (exit $ac_status); } &&
4847 1.76 pooka { ac_try='test -s conftest$ac_exeext'
4848 1.79 jmcneill { (eval echo "$as_me:4848: \"$ac_try\"") >&5
4849 1.76 pooka (eval $ac_try) 2>&5
4850 1.76 pooka ac_status=$?
4851 1.79 jmcneill echo "$as_me:4851: \$? = $ac_status" >&5
4852 1.76 pooka (exit $ac_status); }; }; then
4853 1.76 pooka ac_cv_func_alloca_works=yes
4854 1.76 pooka else
4855 1.76 pooka echo "$as_me: failed program was:" >&5
4856 1.76 pooka cat conftest.$ac_ext >&5
4857 1.76 pooka ac_cv_func_alloca_works=no
4858 1.76 pooka fi
4859 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4860 1.76 pooka fi
4861 1.79 jmcneill echo "$as_me:4861: result: $ac_cv_func_alloca_works" >&5
4862 1.76 pooka echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4863 1.76 pooka
4864 1.76 pooka if test $ac_cv_func_alloca_works = yes; then
4865 1.76 pooka
4866 1.76 pooka cat >>confdefs.h <<\EOF
4867 1.76 pooka #define HAVE_ALLOCA 1
4868 1.76 pooka EOF
4869 1.76 pooka
4870 1.76 pooka else
4871 1.76 pooka # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4872 1.76 pooka # that cause trouble. Some versions do not even contain alloca or
4873 1.76 pooka # contain a buggy version. If you still want to use their alloca,
4874 1.76 pooka # use ar to extract alloca.o from them instead of compiling alloca.c.
4875 1.76 pooka
4876 1.76 pooka ALLOCA=alloca.$ac_objext
4877 1.76 pooka
4878 1.76 pooka cat >>confdefs.h <<\EOF
4879 1.76 pooka #define C_ALLOCA 1
4880 1.76 pooka EOF
4881 1.76 pooka
4882 1.79 jmcneill echo "$as_me:4882: checking whether \`alloca.c' needs Cray hooks" >&5
4883 1.76 pooka echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4884 1.76 pooka if test "${ac_cv_os_cray+set}" = set; then
4885 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4886 1.76 pooka else
4887 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4888 1.79 jmcneill #line 4888 "configure"
4889 1.76 pooka #include "confdefs.h"
4890 1.76 pooka #if defined(CRAY) && ! defined(CRAY2)
4891 1.76 pooka webecray
4892 1.76 pooka #else
4893 1.76 pooka wenotbecray
4894 1.76 pooka #endif
4895 1.76 pooka
4896 1.76 pooka _ACEOF
4897 1.76 pooka if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 1.76 pooka egrep "webecray" >/dev/null 2>&1; then
4899 1.76 pooka ac_cv_os_cray=yes
4900 1.76 pooka else
4901 1.76 pooka ac_cv_os_cray=no
4902 1.76 pooka fi
4903 1.76 pooka rm -f conftest*
4904 1.76 pooka
4905 1.76 pooka fi
4906 1.79 jmcneill echo "$as_me:4906: result: $ac_cv_os_cray" >&5
4907 1.76 pooka echo "${ECHO_T}$ac_cv_os_cray" >&6
4908 1.76 pooka if test $ac_cv_os_cray = yes; then
4909 1.76 pooka for ac_func in _getb67 GETB67 getb67; do
4910 1.76 pooka as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4911 1.79 jmcneill echo "$as_me:4911: checking for $ac_func" >&5
4912 1.76 pooka echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4913 1.76 pooka if eval "test \"\${$as_ac_var+set}\" = set"; then
4914 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4915 1.76 pooka else
4916 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4917 1.79 jmcneill #line 4917 "configure"
4918 1.76 pooka #include "confdefs.h"
4919 1.76 pooka /* System header to define __stub macros and hopefully few prototypes,
4920 1.76 pooka which can conflict with char $ac_func (); below. */
4921 1.76 pooka #include <assert.h>
4922 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
4923 1.76 pooka #ifdef __cplusplus
4924 1.76 pooka extern "C"
4925 1.76 pooka #endif
4926 1.76 pooka /* We use char because int might match the return type of a gcc2
4927 1.76 pooka builtin and then its argument prototype would still apply. */
4928 1.76 pooka char $ac_func ();
4929 1.76 pooka char (*f) ();
4930 1.76 pooka
4931 1.76 pooka int
4932 1.76 pooka main ()
4933 1.76 pooka {
4934 1.76 pooka /* The GNU C library defines this for functions which it implements
4935 1.76 pooka to always fail with ENOSYS. Some functions are actually named
4936 1.76 pooka something starting with __ and the normal name is an alias. */
4937 1.76 pooka #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4938 1.76 pooka choke me
4939 1.76 pooka #else
4940 1.76 pooka f = $ac_func;
4941 1.76 pooka #endif
4942 1.76 pooka
4943 1.76 pooka ;
4944 1.76 pooka return 0;
4945 1.76 pooka }
4946 1.76 pooka _ACEOF
4947 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
4948 1.79 jmcneill if { (eval echo "$as_me:4948: \"$ac_link\"") >&5
4949 1.76 pooka (eval $ac_link) 2>&5
4950 1.76 pooka ac_status=$?
4951 1.79 jmcneill echo "$as_me:4951: \$? = $ac_status" >&5
4952 1.76 pooka (exit $ac_status); } &&
4953 1.76 pooka { ac_try='test -s conftest$ac_exeext'
4954 1.79 jmcneill { (eval echo "$as_me:4954: \"$ac_try\"") >&5
4955 1.76 pooka (eval $ac_try) 2>&5
4956 1.76 pooka ac_status=$?
4957 1.79 jmcneill echo "$as_me:4957: \$? = $ac_status" >&5
4958 1.76 pooka (exit $ac_status); }; }; then
4959 1.76 pooka eval "$as_ac_var=yes"
4960 1.76 pooka else
4961 1.76 pooka echo "$as_me: failed program was:" >&5
4962 1.76 pooka cat conftest.$ac_ext >&5
4963 1.76 pooka eval "$as_ac_var=no"
4964 1.76 pooka fi
4965 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4966 1.76 pooka fi
4967 1.79 jmcneill echo "$as_me:4967: result: `eval echo '${'$as_ac_var'}'`" >&5
4968 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4969 1.76 pooka if test `eval echo '${'$as_ac_var'}'` = yes; then
4970 1.76 pooka
4971 1.76 pooka cat >>confdefs.h <<EOF
4972 1.76 pooka #define CRAY_STACKSEG_END $ac_func
4973 1.76 pooka EOF
4974 1.76 pooka
4975 1.76 pooka break
4976 1.76 pooka fi
4977 1.76 pooka
4978 1.76 pooka done
4979 1.76 pooka fi
4980 1.76 pooka
4981 1.79 jmcneill echo "$as_me:4981: checking stack direction for C alloca" >&5
4982 1.76 pooka echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4983 1.76 pooka if test "${ac_cv_c_stack_direction+set}" = set; then
4984 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
4985 1.76 pooka else
4986 1.76 pooka if test "$cross_compiling" = yes; then
4987 1.76 pooka ac_cv_c_stack_direction=0
4988 1.76 pooka else
4989 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
4990 1.79 jmcneill #line 4990 "configure"
4991 1.76 pooka #include "confdefs.h"
4992 1.76 pooka int
4993 1.76 pooka find_stack_direction ()
4994 1.76 pooka {
4995 1.76 pooka static char *addr = 0;
4996 1.76 pooka auto char dummy;
4997 1.76 pooka if (addr == 0)
4998 1.76 pooka {
4999 1.76 pooka addr = &dummy;
5000 1.76 pooka return find_stack_direction ();
5001 1.76 pooka }
5002 1.76 pooka else
5003 1.76 pooka return (&dummy > addr) ? 1 : -1;
5004 1.76 pooka }
5005 1.76 pooka
5006 1.76 pooka int
5007 1.76 pooka main ()
5008 1.76 pooka {
5009 1.76 pooka exit (find_stack_direction () < 0);
5010 1.76 pooka }
5011 1.76 pooka _ACEOF
5012 1.76 pooka rm -f conftest$ac_exeext
5013 1.79 jmcneill if { (eval echo "$as_me:5013: \"$ac_link\"") >&5
5014 1.76 pooka (eval $ac_link) 2>&5
5015 1.76 pooka ac_status=$?
5016 1.79 jmcneill echo "$as_me:5016: \$? = $ac_status" >&5
5017 1.76 pooka (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5018 1.79 jmcneill { (eval echo "$as_me:5018: \"$ac_try\"") >&5
5019 1.76 pooka (eval $ac_try) 2>&5
5020 1.76 pooka ac_status=$?
5021 1.79 jmcneill echo "$as_me:5021: \$? = $ac_status" >&5
5022 1.76 pooka (exit $ac_status); }; }; then
5023 1.76 pooka ac_cv_c_stack_direction=1
5024 1.76 pooka else
5025 1.76 pooka echo "$as_me: program exited with status $ac_status" >&5
5026 1.76 pooka echo "$as_me: failed program was:" >&5
5027 1.76 pooka cat conftest.$ac_ext >&5
5028 1.76 pooka ac_cv_c_stack_direction=-1
5029 1.76 pooka fi
5030 1.76 pooka rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5031 1.76 pooka fi
5032 1.76 pooka fi
5033 1.79 jmcneill echo "$as_me:5033: result: $ac_cv_c_stack_direction" >&5
5034 1.76 pooka echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5035 1.76 pooka
5036 1.76 pooka cat >>confdefs.h <<EOF
5037 1.76 pooka #define STACK_DIRECTION $ac_cv_c_stack_direction
5038 1.76 pooka EOF
5039 1.76 pooka
5040 1.76 pooka fi
5041 1.76 pooka
5042 1.76 pooka for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
5043 1.76 pooka dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \
5044 1.76 pooka getopt getopt_long group_from_gid gid_from_group \
5045 1.76 pooka heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
5046 1.76 pooka mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
5047 1.76 pooka pwrite raise_default_signal random setenv \
5048 1.77 apb setgroupent setprogname setpassent \
5049 1.77 apb snprintb_m snprintf strlcat strlcpy strmode \
5050 1.81.2.1 snj strndup strnlen strsep strsuftoll strtoi strtoll strtou \
5051 1.76 pooka user_from_uid uid_from_user vasprintf vasnprintf vsnprintf
5052 1.76 pooka do
5053 1.76 pooka as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5054 1.79 jmcneill echo "$as_me:5054: checking for $ac_func" >&5
5055 1.76 pooka echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5056 1.76 pooka if eval "test \"\${$as_ac_var+set}\" = set"; then
5057 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5058 1.76 pooka else
5059 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5060 1.79 jmcneill #line 5060 "configure"
5061 1.76 pooka #include "confdefs.h"
5062 1.76 pooka /* System header to define __stub macros and hopefully few prototypes,
5063 1.76 pooka which can conflict with char $ac_func (); below. */
5064 1.76 pooka #include <assert.h>
5065 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
5066 1.76 pooka #ifdef __cplusplus
5067 1.76 pooka extern "C"
5068 1.76 pooka #endif
5069 1.76 pooka /* We use char because int might match the return type of a gcc2
5070 1.76 pooka builtin and then its argument prototype would still apply. */
5071 1.76 pooka char $ac_func ();
5072 1.76 pooka char (*f) ();
5073 1.76 pooka
5074 1.76 pooka int
5075 1.76 pooka main ()
5076 1.76 pooka {
5077 1.76 pooka /* The GNU C library defines this for functions which it implements
5078 1.76 pooka to always fail with ENOSYS. Some functions are actually named
5079 1.76 pooka something starting with __ and the normal name is an alias. */
5080 1.76 pooka #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5081 1.76 pooka choke me
5082 1.76 pooka #else
5083 1.76 pooka f = $ac_func;
5084 1.76 pooka #endif
5085 1.76 pooka
5086 1.76 pooka ;
5087 1.76 pooka return 0;
5088 1.76 pooka }
5089 1.76 pooka _ACEOF
5090 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
5091 1.79 jmcneill if { (eval echo "$as_me:5091: \"$ac_link\"") >&5
5092 1.76 pooka (eval $ac_link) 2>&5
5093 1.76 pooka ac_status=$?
5094 1.79 jmcneill echo "$as_me:5094: \$? = $ac_status" >&5
5095 1.76 pooka (exit $ac_status); } &&
5096 1.76 pooka { ac_try='test -s conftest$ac_exeext'
5097 1.79 jmcneill { (eval echo "$as_me:5097: \"$ac_try\"") >&5
5098 1.76 pooka (eval $ac_try) 2>&5
5099 1.76 pooka ac_status=$?
5100 1.79 jmcneill echo "$as_me:5100: \$? = $ac_status" >&5
5101 1.76 pooka (exit $ac_status); }; }; then
5102 1.76 pooka eval "$as_ac_var=yes"
5103 1.76 pooka else
5104 1.76 pooka echo "$as_me: failed program was:" >&5
5105 1.76 pooka cat conftest.$ac_ext >&5
5106 1.76 pooka eval "$as_ac_var=no"
5107 1.76 pooka fi
5108 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5109 1.76 pooka fi
5110 1.79 jmcneill echo "$as_me:5110: result: `eval echo '${'$as_ac_var'}'`" >&5
5111 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5112 1.76 pooka if test `eval echo '${'$as_ac_var'}'` = yes; then
5113 1.76 pooka cat >>confdefs.h <<EOF
5114 1.76 pooka #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5115 1.76 pooka EOF
5116 1.76 pooka
5117 1.76 pooka fi
5118 1.76 pooka done
5119 1.76 pooka
5120 1.79 jmcneill echo "$as_me:5120: checking whether user_from_uid is declared" >&5
5121 1.76 pooka echo $ECHO_N "checking whether user_from_uid is declared... $ECHO_C" >&6
5122 1.76 pooka if test "${ac_cv_have_decl_user_from_uid+set}" = set; then
5123 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5124 1.76 pooka else
5125 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5126 1.79 jmcneill #line 5126 "configure"
5127 1.76 pooka #include "confdefs.h"
5128 1.76 pooka
5129 1.76 pooka #include <pwd.h>
5130 1.76 pooka
5131 1.76 pooka int
5132 1.76 pooka main ()
5133 1.76 pooka {
5134 1.76 pooka #ifndef user_from_uid
5135 1.76 pooka char *p = (char *) user_from_uid;
5136 1.76 pooka #endif
5137 1.76 pooka
5138 1.76 pooka ;
5139 1.76 pooka return 0;
5140 1.76 pooka }
5141 1.76 pooka _ACEOF
5142 1.76 pooka rm -f conftest.$ac_objext
5143 1.79 jmcneill if { (eval echo "$as_me:5143: \"$ac_compile\"") >&5
5144 1.76 pooka (eval $ac_compile) 2>&5
5145 1.76 pooka ac_status=$?
5146 1.79 jmcneill echo "$as_me:5146: \$? = $ac_status" >&5
5147 1.76 pooka (exit $ac_status); } &&
5148 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5149 1.79 jmcneill { (eval echo "$as_me:5149: \"$ac_try\"") >&5
5150 1.76 pooka (eval $ac_try) 2>&5
5151 1.76 pooka ac_status=$?
5152 1.79 jmcneill echo "$as_me:5152: \$? = $ac_status" >&5
5153 1.76 pooka (exit $ac_status); }; }; then
5154 1.76 pooka ac_cv_have_decl_user_from_uid=yes
5155 1.76 pooka else
5156 1.76 pooka echo "$as_me: failed program was:" >&5
5157 1.76 pooka cat conftest.$ac_ext >&5
5158 1.76 pooka ac_cv_have_decl_user_from_uid=no
5159 1.76 pooka fi
5160 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5161 1.76 pooka fi
5162 1.79 jmcneill echo "$as_me:5162: result: $ac_cv_have_decl_user_from_uid" >&5
5163 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_user_from_uid" >&6
5164 1.76 pooka if test $ac_cv_have_decl_user_from_uid = yes; then
5165 1.76 pooka
5166 1.76 pooka cat >>confdefs.h <<EOF
5167 1.76 pooka #define HAVE_DECL_USER_FROM_UID 1
5168 1.76 pooka EOF
5169 1.76 pooka
5170 1.76 pooka else
5171 1.76 pooka cat >>confdefs.h <<EOF
5172 1.76 pooka #define HAVE_DECL_USER_FROM_UID 0
5173 1.76 pooka EOF
5174 1.76 pooka
5175 1.76 pooka fi
5176 1.79 jmcneill echo "$as_me:5176: checking whether uid_from_user is declared" >&5
5177 1.76 pooka echo $ECHO_N "checking whether uid_from_user is declared... $ECHO_C" >&6
5178 1.76 pooka if test "${ac_cv_have_decl_uid_from_user+set}" = set; then
5179 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5180 1.76 pooka else
5181 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5182 1.79 jmcneill #line 5182 "configure"
5183 1.76 pooka #include "confdefs.h"
5184 1.76 pooka
5185 1.76 pooka #include <pwd.h>
5186 1.76 pooka
5187 1.76 pooka int
5188 1.76 pooka main ()
5189 1.76 pooka {
5190 1.76 pooka #ifndef uid_from_user
5191 1.76 pooka char *p = (char *) uid_from_user;
5192 1.76 pooka #endif
5193 1.76 pooka
5194 1.76 pooka ;
5195 1.76 pooka return 0;
5196 1.76 pooka }
5197 1.76 pooka _ACEOF
5198 1.76 pooka rm -f conftest.$ac_objext
5199 1.79 jmcneill if { (eval echo "$as_me:5199: \"$ac_compile\"") >&5
5200 1.76 pooka (eval $ac_compile) 2>&5
5201 1.76 pooka ac_status=$?
5202 1.79 jmcneill echo "$as_me:5202: \$? = $ac_status" >&5
5203 1.76 pooka (exit $ac_status); } &&
5204 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5205 1.79 jmcneill { (eval echo "$as_me:5205: \"$ac_try\"") >&5
5206 1.76 pooka (eval $ac_try) 2>&5
5207 1.76 pooka ac_status=$?
5208 1.79 jmcneill echo "$as_me:5208: \$? = $ac_status" >&5
5209 1.76 pooka (exit $ac_status); }; }; then
5210 1.76 pooka ac_cv_have_decl_uid_from_user=yes
5211 1.76 pooka else
5212 1.76 pooka echo "$as_me: failed program was:" >&5
5213 1.76 pooka cat conftest.$ac_ext >&5
5214 1.76 pooka ac_cv_have_decl_uid_from_user=no
5215 1.76 pooka fi
5216 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5217 1.76 pooka fi
5218 1.79 jmcneill echo "$as_me:5218: result: $ac_cv_have_decl_uid_from_user" >&5
5219 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_uid_from_user" >&6
5220 1.76 pooka if test $ac_cv_have_decl_uid_from_user = yes; then
5221 1.76 pooka
5222 1.76 pooka cat >>confdefs.h <<EOF
5223 1.76 pooka #define HAVE_DECL_UID_FROM_USER 1
5224 1.76 pooka EOF
5225 1.76 pooka
5226 1.76 pooka else
5227 1.76 pooka cat >>confdefs.h <<EOF
5228 1.76 pooka #define HAVE_DECL_UID_FROM_USER 0
5229 1.76 pooka EOF
5230 1.76 pooka
5231 1.76 pooka fi
5232 1.79 jmcneill echo "$as_me:5232: checking whether pwcache_userdb is declared" >&5
5233 1.76 pooka echo $ECHO_N "checking whether pwcache_userdb is declared... $ECHO_C" >&6
5234 1.76 pooka if test "${ac_cv_have_decl_pwcache_userdb+set}" = set; then
5235 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5236 1.76 pooka else
5237 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5238 1.79 jmcneill #line 5238 "configure"
5239 1.76 pooka #include "confdefs.h"
5240 1.76 pooka
5241 1.76 pooka #include <pwd.h>
5242 1.76 pooka
5243 1.76 pooka int
5244 1.76 pooka main ()
5245 1.76 pooka {
5246 1.76 pooka #ifndef pwcache_userdb
5247 1.76 pooka char *p = (char *) pwcache_userdb;
5248 1.76 pooka #endif
5249 1.76 pooka
5250 1.76 pooka ;
5251 1.76 pooka return 0;
5252 1.76 pooka }
5253 1.76 pooka _ACEOF
5254 1.76 pooka rm -f conftest.$ac_objext
5255 1.79 jmcneill if { (eval echo "$as_me:5255: \"$ac_compile\"") >&5
5256 1.76 pooka (eval $ac_compile) 2>&5
5257 1.76 pooka ac_status=$?
5258 1.79 jmcneill echo "$as_me:5258: \$? = $ac_status" >&5
5259 1.76 pooka (exit $ac_status); } &&
5260 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5261 1.79 jmcneill { (eval echo "$as_me:5261: \"$ac_try\"") >&5
5262 1.76 pooka (eval $ac_try) 2>&5
5263 1.76 pooka ac_status=$?
5264 1.79 jmcneill echo "$as_me:5264: \$? = $ac_status" >&5
5265 1.76 pooka (exit $ac_status); }; }; then
5266 1.76 pooka ac_cv_have_decl_pwcache_userdb=yes
5267 1.76 pooka else
5268 1.76 pooka echo "$as_me: failed program was:" >&5
5269 1.76 pooka cat conftest.$ac_ext >&5
5270 1.76 pooka ac_cv_have_decl_pwcache_userdb=no
5271 1.76 pooka fi
5272 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5273 1.76 pooka fi
5274 1.79 jmcneill echo "$as_me:5274: result: $ac_cv_have_decl_pwcache_userdb" >&5
5275 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_pwcache_userdb" >&6
5276 1.76 pooka if test $ac_cv_have_decl_pwcache_userdb = yes; then
5277 1.76 pooka
5278 1.76 pooka cat >>confdefs.h <<EOF
5279 1.76 pooka #define HAVE_DECL_PWCACHE_USERDB 1
5280 1.76 pooka EOF
5281 1.76 pooka
5282 1.76 pooka else
5283 1.76 pooka cat >>confdefs.h <<EOF
5284 1.76 pooka #define HAVE_DECL_PWCACHE_USERDB 0
5285 1.76 pooka EOF
5286 1.76 pooka
5287 1.76 pooka fi
5288 1.76 pooka
5289 1.79 jmcneill echo "$as_me:5289: checking whether group_from_gid is declared" >&5
5290 1.76 pooka echo $ECHO_N "checking whether group_from_gid is declared... $ECHO_C" >&6
5291 1.76 pooka if test "${ac_cv_have_decl_group_from_gid+set}" = set; then
5292 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5293 1.76 pooka else
5294 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5295 1.79 jmcneill #line 5295 "configure"
5296 1.76 pooka #include "confdefs.h"
5297 1.76 pooka
5298 1.76 pooka #include <grp.h>
5299 1.76 pooka
5300 1.76 pooka int
5301 1.76 pooka main ()
5302 1.76 pooka {
5303 1.76 pooka #ifndef group_from_gid
5304 1.76 pooka char *p = (char *) group_from_gid;
5305 1.76 pooka #endif
5306 1.76 pooka
5307 1.76 pooka ;
5308 1.76 pooka return 0;
5309 1.76 pooka }
5310 1.76 pooka _ACEOF
5311 1.76 pooka rm -f conftest.$ac_objext
5312 1.79 jmcneill if { (eval echo "$as_me:5312: \"$ac_compile\"") >&5
5313 1.76 pooka (eval $ac_compile) 2>&5
5314 1.76 pooka ac_status=$?
5315 1.79 jmcneill echo "$as_me:5315: \$? = $ac_status" >&5
5316 1.76 pooka (exit $ac_status); } &&
5317 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5318 1.79 jmcneill { (eval echo "$as_me:5318: \"$ac_try\"") >&5
5319 1.76 pooka (eval $ac_try) 2>&5
5320 1.76 pooka ac_status=$?
5321 1.79 jmcneill echo "$as_me:5321: \$? = $ac_status" >&5
5322 1.76 pooka (exit $ac_status); }; }; then
5323 1.76 pooka ac_cv_have_decl_group_from_gid=yes
5324 1.76 pooka else
5325 1.76 pooka echo "$as_me: failed program was:" >&5
5326 1.76 pooka cat conftest.$ac_ext >&5
5327 1.76 pooka ac_cv_have_decl_group_from_gid=no
5328 1.76 pooka fi
5329 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5330 1.76 pooka fi
5331 1.79 jmcneill echo "$as_me:5331: result: $ac_cv_have_decl_group_from_gid" >&5
5332 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_group_from_gid" >&6
5333 1.76 pooka if test $ac_cv_have_decl_group_from_gid = yes; then
5334 1.76 pooka
5335 1.76 pooka cat >>confdefs.h <<EOF
5336 1.76 pooka #define HAVE_DECL_GROUP_FROM_GID 1
5337 1.76 pooka EOF
5338 1.76 pooka
5339 1.76 pooka else
5340 1.76 pooka cat >>confdefs.h <<EOF
5341 1.76 pooka #define HAVE_DECL_GROUP_FROM_GID 0
5342 1.76 pooka EOF
5343 1.76 pooka
5344 1.76 pooka fi
5345 1.79 jmcneill echo "$as_me:5345: checking whether gid_from_group is declared" >&5
5346 1.76 pooka echo $ECHO_N "checking whether gid_from_group is declared... $ECHO_C" >&6
5347 1.76 pooka if test "${ac_cv_have_decl_gid_from_group+set}" = set; then
5348 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5349 1.76 pooka else
5350 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5351 1.79 jmcneill #line 5351 "configure"
5352 1.76 pooka #include "confdefs.h"
5353 1.76 pooka
5354 1.76 pooka #include <grp.h>
5355 1.76 pooka
5356 1.76 pooka int
5357 1.76 pooka main ()
5358 1.76 pooka {
5359 1.76 pooka #ifndef gid_from_group
5360 1.76 pooka char *p = (char *) gid_from_group;
5361 1.76 pooka #endif
5362 1.76 pooka
5363 1.76 pooka ;
5364 1.76 pooka return 0;
5365 1.76 pooka }
5366 1.76 pooka _ACEOF
5367 1.76 pooka rm -f conftest.$ac_objext
5368 1.79 jmcneill if { (eval echo "$as_me:5368: \"$ac_compile\"") >&5
5369 1.76 pooka (eval $ac_compile) 2>&5
5370 1.76 pooka ac_status=$?
5371 1.79 jmcneill echo "$as_me:5371: \$? = $ac_status" >&5
5372 1.76 pooka (exit $ac_status); } &&
5373 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5374 1.79 jmcneill { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5375 1.76 pooka (eval $ac_try) 2>&5
5376 1.76 pooka ac_status=$?
5377 1.79 jmcneill echo "$as_me:5377: \$? = $ac_status" >&5
5378 1.76 pooka (exit $ac_status); }; }; then
5379 1.76 pooka ac_cv_have_decl_gid_from_group=yes
5380 1.76 pooka else
5381 1.76 pooka echo "$as_me: failed program was:" >&5
5382 1.76 pooka cat conftest.$ac_ext >&5
5383 1.76 pooka ac_cv_have_decl_gid_from_group=no
5384 1.76 pooka fi
5385 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5386 1.76 pooka fi
5387 1.79 jmcneill echo "$as_me:5387: result: $ac_cv_have_decl_gid_from_group" >&5
5388 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_gid_from_group" >&6
5389 1.76 pooka if test $ac_cv_have_decl_gid_from_group = yes; then
5390 1.76 pooka
5391 1.76 pooka cat >>confdefs.h <<EOF
5392 1.76 pooka #define HAVE_DECL_GID_FROM_GROUP 1
5393 1.76 pooka EOF
5394 1.76 pooka
5395 1.76 pooka else
5396 1.76 pooka cat >>confdefs.h <<EOF
5397 1.76 pooka #define HAVE_DECL_GID_FROM_GROUP 0
5398 1.76 pooka EOF
5399 1.76 pooka
5400 1.76 pooka fi
5401 1.79 jmcneill echo "$as_me:5401: checking whether pwcache_groupdb is declared" >&5
5402 1.76 pooka echo $ECHO_N "checking whether pwcache_groupdb is declared... $ECHO_C" >&6
5403 1.76 pooka if test "${ac_cv_have_decl_pwcache_groupdb+set}" = set; then
5404 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5405 1.76 pooka else
5406 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5407 1.79 jmcneill #line 5407 "configure"
5408 1.76 pooka #include "confdefs.h"
5409 1.76 pooka
5410 1.76 pooka #include <grp.h>
5411 1.76 pooka
5412 1.76 pooka int
5413 1.76 pooka main ()
5414 1.76 pooka {
5415 1.76 pooka #ifndef pwcache_groupdb
5416 1.76 pooka char *p = (char *) pwcache_groupdb;
5417 1.76 pooka #endif
5418 1.76 pooka
5419 1.76 pooka ;
5420 1.76 pooka return 0;
5421 1.76 pooka }
5422 1.76 pooka _ACEOF
5423 1.76 pooka rm -f conftest.$ac_objext
5424 1.79 jmcneill if { (eval echo "$as_me:5424: \"$ac_compile\"") >&5
5425 1.76 pooka (eval $ac_compile) 2>&5
5426 1.76 pooka ac_status=$?
5427 1.79 jmcneill echo "$as_me:5427: \$? = $ac_status" >&5
5428 1.76 pooka (exit $ac_status); } &&
5429 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5430 1.79 jmcneill { (eval echo "$as_me:5430: \"$ac_try\"") >&5
5431 1.76 pooka (eval $ac_try) 2>&5
5432 1.76 pooka ac_status=$?
5433 1.79 jmcneill echo "$as_me:5433: \$? = $ac_status" >&5
5434 1.76 pooka (exit $ac_status); }; }; then
5435 1.76 pooka ac_cv_have_decl_pwcache_groupdb=yes
5436 1.76 pooka else
5437 1.76 pooka echo "$as_me: failed program was:" >&5
5438 1.76 pooka cat conftest.$ac_ext >&5
5439 1.76 pooka ac_cv_have_decl_pwcache_groupdb=no
5440 1.76 pooka fi
5441 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5442 1.76 pooka fi
5443 1.79 jmcneill echo "$as_me:5443: result: $ac_cv_have_decl_pwcache_groupdb" >&5
5444 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_pwcache_groupdb" >&6
5445 1.76 pooka if test $ac_cv_have_decl_pwcache_groupdb = yes; then
5446 1.76 pooka
5447 1.76 pooka cat >>confdefs.h <<EOF
5448 1.76 pooka #define HAVE_DECL_PWCACHE_GROUPDB 1
5449 1.76 pooka EOF
5450 1.76 pooka
5451 1.76 pooka else
5452 1.76 pooka cat >>confdefs.h <<EOF
5453 1.76 pooka #define HAVE_DECL_PWCACHE_GROUPDB 0
5454 1.76 pooka EOF
5455 1.74 christos
5456 1.76 pooka fi
5457 1.66 tsutsui
5458 1.79 jmcneill echo "$as_me:5458: checking whether strndup is declared" >&5
5459 1.76 pooka echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
5460 1.76 pooka if test "${ac_cv_have_decl_strndup+set}" = set; then
5461 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5462 1.66 tsutsui else
5463 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5464 1.79 jmcneill #line 5464 "configure"
5465 1.76 pooka #include "confdefs.h"
5466 1.76 pooka #include <string.h>
5467 1.76 pooka
5468 1.76 pooka int
5469 1.76 pooka main ()
5470 1.76 pooka {
5471 1.76 pooka #ifndef strndup
5472 1.76 pooka char *p = (char *) strndup;
5473 1.76 pooka #endif
5474 1.52 dbj
5475 1.76 pooka ;
5476 1.76 pooka return 0;
5477 1.76 pooka }
5478 1.6 tv _ACEOF
5479 1.76 pooka rm -f conftest.$ac_objext
5480 1.79 jmcneill if { (eval echo "$as_me:5480: \"$ac_compile\"") >&5
5481 1.76 pooka (eval $ac_compile) 2>&5
5482 1.76 pooka ac_status=$?
5483 1.79 jmcneill echo "$as_me:5483: \$? = $ac_status" >&5
5484 1.76 pooka (exit $ac_status); } &&
5485 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5486 1.79 jmcneill { (eval echo "$as_me:5486: \"$ac_try\"") >&5
5487 1.76 pooka (eval $ac_try) 2>&5
5488 1.76 pooka ac_status=$?
5489 1.79 jmcneill echo "$as_me:5489: \$? = $ac_status" >&5
5490 1.76 pooka (exit $ac_status); }; }; then
5491 1.76 pooka ac_cv_have_decl_strndup=yes
5492 1.76 pooka else
5493 1.76 pooka echo "$as_me: failed program was:" >&5
5494 1.76 pooka cat conftest.$ac_ext >&5
5495 1.76 pooka ac_cv_have_decl_strndup=no
5496 1.76 pooka fi
5497 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5498 1.6 tv fi
5499 1.79 jmcneill echo "$as_me:5499: result: $ac_cv_have_decl_strndup" >&5
5500 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
5501 1.76 pooka if test $ac_cv_have_decl_strndup = yes; then
5502 1.6 tv
5503 1.76 pooka cat >>confdefs.h <<EOF
5504 1.76 pooka #define HAVE_DECL_STRNDUP 1
5505 1.76 pooka EOF
5506 1.38 fredb
5507 1.76 pooka else
5508 1.76 pooka cat >>confdefs.h <<EOF
5509 1.76 pooka #define HAVE_DECL_STRNDUP 0
5510 1.76 pooka EOF
5511 1.39 fredb
5512 1.38 fredb fi
5513 1.80 apb echo "$as_me:5513: checking whether strnlen is declared" >&5
5514 1.80 apb echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5515 1.80 apb if test "${ac_cv_have_decl_strnlen+set}" = set; then
5516 1.80 apb echo $ECHO_N "(cached) $ECHO_C" >&6
5517 1.80 apb else
5518 1.80 apb cat >conftest.$ac_ext <<_ACEOF
5519 1.80 apb #line 5519 "configure"
5520 1.80 apb #include "confdefs.h"
5521 1.80 apb #include <string.h>
5522 1.80 apb
5523 1.80 apb int
5524 1.80 apb main ()
5525 1.80 apb {
5526 1.80 apb #ifndef strnlen
5527 1.80 apb char *p = (char *) strnlen;
5528 1.80 apb #endif
5529 1.80 apb
5530 1.80 apb ;
5531 1.80 apb return 0;
5532 1.80 apb }
5533 1.80 apb _ACEOF
5534 1.80 apb rm -f conftest.$ac_objext
5535 1.80 apb if { (eval echo "$as_me:5535: \"$ac_compile\"") >&5
5536 1.80 apb (eval $ac_compile) 2>&5
5537 1.80 apb ac_status=$?
5538 1.80 apb echo "$as_me:5538: \$? = $ac_status" >&5
5539 1.80 apb (exit $ac_status); } &&
5540 1.80 apb { ac_try='test -s conftest.$ac_objext'
5541 1.80 apb { (eval echo "$as_me:5541: \"$ac_try\"") >&5
5542 1.80 apb (eval $ac_try) 2>&5
5543 1.80 apb ac_status=$?
5544 1.80 apb echo "$as_me:5544: \$? = $ac_status" >&5
5545 1.80 apb (exit $ac_status); }; }; then
5546 1.80 apb ac_cv_have_decl_strnlen=yes
5547 1.80 apb else
5548 1.80 apb echo "$as_me: failed program was:" >&5
5549 1.80 apb cat conftest.$ac_ext >&5
5550 1.80 apb ac_cv_have_decl_strnlen=no
5551 1.80 apb fi
5552 1.80 apb rm -f conftest.$ac_objext conftest.$ac_ext
5553 1.80 apb fi
5554 1.80 apb echo "$as_me:5554: result: $ac_cv_have_decl_strnlen" >&5
5555 1.80 apb echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5556 1.80 apb if test $ac_cv_have_decl_strnlen = yes; then
5557 1.80 apb
5558 1.80 apb cat >>confdefs.h <<EOF
5559 1.80 apb #define HAVE_DECL_STRNLEN 1
5560 1.80 apb EOF
5561 1.80 apb
5562 1.80 apb else
5563 1.80 apb cat >>confdefs.h <<EOF
5564 1.80 apb #define HAVE_DECL_STRNLEN 0
5565 1.80 apb EOF
5566 1.80 apb
5567 1.80 apb fi
5568 1.45 jmc
5569 1.80 apb echo "$as_me:5569: checking whether strsuftoll is declared" >&5
5570 1.76 pooka echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6
5571 1.76 pooka if test "${ac_cv_have_decl_strsuftoll+set}" = set; then
5572 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5573 1.76 pooka else
5574 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5575 1.80 apb #line 5575 "configure"
5576 1.76 pooka #include "confdefs.h"
5577 1.76 pooka #include <stdlib.h>
5578 1.7 tv
5579 1.76 pooka int
5580 1.76 pooka main ()
5581 1.76 pooka {
5582 1.76 pooka #ifndef strsuftoll
5583 1.76 pooka char *p = (char *) strsuftoll;
5584 1.76 pooka #endif
5585 1.7 tv
5586 1.76 pooka ;
5587 1.76 pooka return 0;
5588 1.76 pooka }
5589 1.76 pooka _ACEOF
5590 1.76 pooka rm -f conftest.$ac_objext
5591 1.80 apb if { (eval echo "$as_me:5591: \"$ac_compile\"") >&5
5592 1.76 pooka (eval $ac_compile) 2>&5
5593 1.76 pooka ac_status=$?
5594 1.80 apb echo "$as_me:5594: \$? = $ac_status" >&5
5595 1.76 pooka (exit $ac_status); } &&
5596 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5597 1.80 apb { (eval echo "$as_me:5597: \"$ac_try\"") >&5
5598 1.76 pooka (eval $ac_try) 2>&5
5599 1.76 pooka ac_status=$?
5600 1.80 apb echo "$as_me:5600: \$? = $ac_status" >&5
5601 1.76 pooka (exit $ac_status); }; }; then
5602 1.76 pooka ac_cv_have_decl_strsuftoll=yes
5603 1.76 pooka else
5604 1.76 pooka echo "$as_me: failed program was:" >&5
5605 1.76 pooka cat conftest.$ac_ext >&5
5606 1.76 pooka ac_cv_have_decl_strsuftoll=no
5607 1.76 pooka fi
5608 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5609 1.7 tv fi
5610 1.80 apb echo "$as_me:5610: result: $ac_cv_have_decl_strsuftoll" >&5
5611 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6
5612 1.76 pooka if test $ac_cv_have_decl_strsuftoll = yes; then
5613 1.35 thorpej
5614 1.76 pooka cat >>confdefs.h <<EOF
5615 1.76 pooka #define HAVE_DECL_STRSUFTOLL 1
5616 1.76 pooka EOF
5617 1.9 tv
5618 1.76 pooka else
5619 1.76 pooka cat >>confdefs.h <<EOF
5620 1.76 pooka #define HAVE_DECL_STRSUFTOLL 0
5621 1.76 pooka EOF
5622 1.9 tv
5623 1.63 apb fi
5624 1.65 christos
5625 1.80 apb echo "$as_me:5625: checking whether lchflags is declared" >&5
5626 1.76 pooka echo $ECHO_N "checking whether lchflags is declared... $ECHO_C" >&6
5627 1.76 pooka if test "${ac_cv_have_decl_lchflags+set}" = set; then
5628 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5629 1.76 pooka else
5630 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5631 1.80 apb #line 5631 "configure"
5632 1.76 pooka #include "confdefs.h"
5633 1.76 pooka
5634 1.76 pooka #include <sys/stat.h>
5635 1.76 pooka #include <unistd.h>
5636 1.63 apb
5637 1.76 pooka int
5638 1.76 pooka main ()
5639 1.76 pooka {
5640 1.76 pooka #ifndef lchflags
5641 1.76 pooka char *p = (char *) lchflags;
5642 1.76 pooka #endif
5643 1.63 apb
5644 1.76 pooka ;
5645 1.76 pooka return 0;
5646 1.76 pooka }
5647 1.76 pooka _ACEOF
5648 1.76 pooka rm -f conftest.$ac_objext
5649 1.80 apb if { (eval echo "$as_me:5649: \"$ac_compile\"") >&5
5650 1.76 pooka (eval $ac_compile) 2>&5
5651 1.76 pooka ac_status=$?
5652 1.80 apb echo "$as_me:5652: \$? = $ac_status" >&5
5653 1.76 pooka (exit $ac_status); } &&
5654 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5655 1.80 apb { (eval echo "$as_me:5655: \"$ac_try\"") >&5
5656 1.76 pooka (eval $ac_try) 2>&5
5657 1.76 pooka ac_status=$?
5658 1.80 apb echo "$as_me:5658: \$? = $ac_status" >&5
5659 1.76 pooka (exit $ac_status); }; }; then
5660 1.76 pooka ac_cv_have_decl_lchflags=yes
5661 1.76 pooka else
5662 1.76 pooka echo "$as_me: failed program was:" >&5
5663 1.76 pooka cat conftest.$ac_ext >&5
5664 1.76 pooka ac_cv_have_decl_lchflags=no
5665 1.63 apb fi
5666 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5667 1.76 pooka fi
5668 1.80 apb echo "$as_me:5668: result: $ac_cv_have_decl_lchflags" >&5
5669 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_lchflags" >&6
5670 1.76 pooka if test $ac_cv_have_decl_lchflags = yes; then
5671 1.74 christos
5672 1.76 pooka cat >>confdefs.h <<EOF
5673 1.76 pooka #define HAVE_DECL_LCHFLAGS 1
5674 1.76 pooka EOF
5675 1.65 christos
5676 1.76 pooka else
5677 1.76 pooka cat >>confdefs.h <<EOF
5678 1.76 pooka #define HAVE_DECL_LCHFLAGS 0
5679 1.76 pooka EOF
5680 1.65 christos
5681 1.74 christos fi
5682 1.80 apb echo "$as_me:5682: checking whether lchmod is declared" >&5
5683 1.76 pooka echo $ECHO_N "checking whether lchmod is declared... $ECHO_C" >&6
5684 1.76 pooka if test "${ac_cv_have_decl_lchmod+set}" = set; then
5685 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5686 1.76 pooka else
5687 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5688 1.80 apb #line 5688 "configure"
5689 1.76 pooka #include "confdefs.h"
5690 1.63 apb
5691 1.76 pooka #include <sys/stat.h>
5692 1.76 pooka #include <unistd.h>
5693 1.74 christos
5694 1.76 pooka int
5695 1.76 pooka main ()
5696 1.76 pooka {
5697 1.76 pooka #ifndef lchmod
5698 1.76 pooka char *p = (char *) lchmod;
5699 1.76 pooka #endif
5700 1.74 christos
5701 1.76 pooka ;
5702 1.76 pooka return 0;
5703 1.76 pooka }
5704 1.76 pooka _ACEOF
5705 1.76 pooka rm -f conftest.$ac_objext
5706 1.80 apb if { (eval echo "$as_me:5706: \"$ac_compile\"") >&5
5707 1.76 pooka (eval $ac_compile) 2>&5
5708 1.76 pooka ac_status=$?
5709 1.80 apb echo "$as_me:5709: \$? = $ac_status" >&5
5710 1.76 pooka (exit $ac_status); } &&
5711 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5712 1.80 apb { (eval echo "$as_me:5712: \"$ac_try\"") >&5
5713 1.76 pooka (eval $ac_try) 2>&5
5714 1.76 pooka ac_status=$?
5715 1.80 apb echo "$as_me:5715: \$? = $ac_status" >&5
5716 1.76 pooka (exit $ac_status); }; }; then
5717 1.76 pooka ac_cv_have_decl_lchmod=yes
5718 1.76 pooka else
5719 1.76 pooka echo "$as_me: failed program was:" >&5
5720 1.76 pooka cat conftest.$ac_ext >&5
5721 1.76 pooka ac_cv_have_decl_lchmod=no
5722 1.61 christos fi
5723 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5724 1.76 pooka fi
5725 1.80 apb echo "$as_me:5725: result: $ac_cv_have_decl_lchmod" >&5
5726 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_lchmod" >&6
5727 1.76 pooka if test $ac_cv_have_decl_lchmod = yes; then
5728 1.65 christos
5729 1.76 pooka cat >>confdefs.h <<EOF
5730 1.76 pooka #define HAVE_DECL_LCHMOD 1
5731 1.76 pooka EOF
5732 1.53 dogcow
5733 1.76 pooka else
5734 1.76 pooka cat >>confdefs.h <<EOF
5735 1.76 pooka #define HAVE_DECL_LCHMOD 0
5736 1.76 pooka EOF
5737 1.40 atatat
5738 1.40 atatat fi
5739 1.80 apb echo "$as_me:5739: checking whether lchown is declared" >&5
5740 1.76 pooka echo $ECHO_N "checking whether lchown is declared... $ECHO_C" >&6
5741 1.76 pooka if test "${ac_cv_have_decl_lchown+set}" = set; then
5742 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
5743 1.76 pooka else
5744 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
5745 1.80 apb #line 5745 "configure"
5746 1.76 pooka #include "confdefs.h"
5747 1.63 apb
5748 1.76 pooka #include <sys/stat.h>
5749 1.76 pooka #include <unistd.h>
5750 1.65 christos
5751 1.76 pooka int
5752 1.76 pooka main ()
5753 1.76 pooka {
5754 1.76 pooka #ifndef lchown
5755 1.76 pooka char *p = (char *) lchown;
5756 1.76 pooka #endif
5757 1.65 christos
5758 1.76 pooka ;
5759 1.76 pooka return 0;
5760 1.76 pooka }
5761 1.76 pooka _ACEOF
5762 1.76 pooka rm -f conftest.$ac_objext
5763 1.80 apb if { (eval echo "$as_me:5763: \"$ac_compile\"") >&5
5764 1.76 pooka (eval $ac_compile) 2>&5
5765 1.76 pooka ac_status=$?
5766 1.80 apb echo "$as_me:5766: \$? = $ac_status" >&5
5767 1.76 pooka (exit $ac_status); } &&
5768 1.76 pooka { ac_try='test -s conftest.$ac_objext'
5769 1.80 apb { (eval echo "$as_me:5769: \"$ac_try\"") >&5
5770 1.76 pooka (eval $ac_try) 2>&5
5771 1.76 pooka ac_status=$?
5772 1.80 apb echo "$as_me:5772: \$? = $ac_status" >&5
5773 1.76 pooka (exit $ac_status); }; }; then
5774 1.76 pooka ac_cv_have_decl_lchown=yes
5775 1.76 pooka else
5776 1.76 pooka echo "$as_me: failed program was:" >&5
5777 1.76 pooka cat conftest.$ac_ext >&5
5778 1.76 pooka ac_cv_have_decl_lchown=no
5779 1.63 apb fi
5780 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
5781 1.76 pooka fi
5782 1.80 apb echo "$as_me:5782: result: $ac_cv_have_decl_lchown" >&5
5783 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_lchown" >&6
5784 1.76 pooka if test $ac_cv_have_decl_lchown = yes; then
5785 1.65 christos
5786 1.76 pooka cat >>confdefs.h <<EOF
5787 1.76 pooka #define HAVE_DECL_LCHOWN 1
5788 1.76 pooka EOF
5789 1.65 christos
5790 1.76 pooka else
5791 1.76 pooka cat >>confdefs.h <<EOF
5792 1.76 pooka #define HAVE_DECL_LCHOWN 0
5793 1.76 pooka EOF
5794 1.60 apb
5795 1.76 pooka fi
5796 1.63 apb
5797 1.81 christos echo "$as_me:5797: checking whether errc is declared" >&5
5798 1.81 christos echo $ECHO_N "checking whether errc is declared... $ECHO_C" >&6
5799 1.81 christos if test "${ac_cv_have_decl_errc+set}" = set; then
5800 1.81 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5801 1.81 christos else
5802 1.81 christos cat >conftest.$ac_ext <<_ACEOF
5803 1.81 christos #line 5803 "configure"
5804 1.81 christos #include "confdefs.h"
5805 1.81 christos
5806 1.81 christos #ifdef HAVE_ERR_H
5807 1.81 christos #include <err.h>
5808 1.81 christos #endif
5809 1.81 christos
5810 1.81 christos int
5811 1.81 christos main ()
5812 1.81 christos {
5813 1.81 christos #ifndef errc
5814 1.81 christos char *p = (char *) errc;
5815 1.81 christos #endif
5816 1.81 christos
5817 1.81 christos ;
5818 1.81 christos return 0;
5819 1.81 christos }
5820 1.81 christos _ACEOF
5821 1.81 christos rm -f conftest.$ac_objext
5822 1.81 christos if { (eval echo "$as_me:5822: \"$ac_compile\"") >&5
5823 1.81 christos (eval $ac_compile) 2>&5
5824 1.81 christos ac_status=$?
5825 1.81 christos echo "$as_me:5825: \$? = $ac_status" >&5
5826 1.81 christos (exit $ac_status); } &&
5827 1.81 christos { ac_try='test -s conftest.$ac_objext'
5828 1.81 christos { (eval echo "$as_me:5828: \"$ac_try\"") >&5
5829 1.81 christos (eval $ac_try) 2>&5
5830 1.81 christos ac_status=$?
5831 1.81 christos echo "$as_me:5831: \$? = $ac_status" >&5
5832 1.81 christos (exit $ac_status); }; }; then
5833 1.81 christos ac_cv_have_decl_errc=yes
5834 1.81 christos else
5835 1.81 christos echo "$as_me: failed program was:" >&5
5836 1.81 christos cat conftest.$ac_ext >&5
5837 1.81 christos ac_cv_have_decl_errc=no
5838 1.81 christos fi
5839 1.81 christos rm -f conftest.$ac_objext conftest.$ac_ext
5840 1.81 christos fi
5841 1.81 christos echo "$as_me:5841: result: $ac_cv_have_decl_errc" >&5
5842 1.81 christos echo "${ECHO_T}$ac_cv_have_decl_errc" >&6
5843 1.81 christos if test $ac_cv_have_decl_errc = yes; then
5844 1.81 christos
5845 1.81 christos cat >>confdefs.h <<EOF
5846 1.81 christos #define HAVE_DECL_ERRC 1
5847 1.81 christos EOF
5848 1.81 christos
5849 1.81 christos else
5850 1.81 christos cat >>confdefs.h <<EOF
5851 1.81 christos #define HAVE_DECL_ERRC 0
5852 1.81 christos EOF
5853 1.81 christos
5854 1.81 christos fi
5855 1.81 christos echo "$as_me:5855: checking whether verrc is declared" >&5
5856 1.81 christos echo $ECHO_N "checking whether verrc is declared... $ECHO_C" >&6
5857 1.81 christos if test "${ac_cv_have_decl_verrc+set}" = set; then
5858 1.81 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5859 1.81 christos else
5860 1.81 christos cat >conftest.$ac_ext <<_ACEOF
5861 1.81 christos #line 5861 "configure"
5862 1.81 christos #include "confdefs.h"
5863 1.81 christos
5864 1.81 christos #ifdef HAVE_ERR_H
5865 1.81 christos #include <err.h>
5866 1.81 christos #endif
5867 1.81 christos
5868 1.81 christos int
5869 1.81 christos main ()
5870 1.81 christos {
5871 1.81 christos #ifndef verrc
5872 1.81 christos char *p = (char *) verrc;
5873 1.81 christos #endif
5874 1.81 christos
5875 1.81 christos ;
5876 1.81 christos return 0;
5877 1.81 christos }
5878 1.81 christos _ACEOF
5879 1.81 christos rm -f conftest.$ac_objext
5880 1.81 christos if { (eval echo "$as_me:5880: \"$ac_compile\"") >&5
5881 1.81 christos (eval $ac_compile) 2>&5
5882 1.81 christos ac_status=$?
5883 1.81 christos echo "$as_me:5883: \$? = $ac_status" >&5
5884 1.81 christos (exit $ac_status); } &&
5885 1.81 christos { ac_try='test -s conftest.$ac_objext'
5886 1.81 christos { (eval echo "$as_me:5886: \"$ac_try\"") >&5
5887 1.81 christos (eval $ac_try) 2>&5
5888 1.81 christos ac_status=$?
5889 1.81 christos echo "$as_me:5889: \$? = $ac_status" >&5
5890 1.81 christos (exit $ac_status); }; }; then
5891 1.81 christos ac_cv_have_decl_verrc=yes
5892 1.81 christos else
5893 1.81 christos echo "$as_me: failed program was:" >&5
5894 1.81 christos cat conftest.$ac_ext >&5
5895 1.81 christos ac_cv_have_decl_verrc=no
5896 1.81 christos fi
5897 1.81 christos rm -f conftest.$ac_objext conftest.$ac_ext
5898 1.81 christos fi
5899 1.81 christos echo "$as_me:5899: result: $ac_cv_have_decl_verrc" >&5
5900 1.81 christos echo "${ECHO_T}$ac_cv_have_decl_verrc" >&6
5901 1.81 christos if test $ac_cv_have_decl_verrc = yes; then
5902 1.81 christos
5903 1.81 christos cat >>confdefs.h <<EOF
5904 1.81 christos #define HAVE_DECL_VERRC 1
5905 1.81 christos EOF
5906 1.81 christos
5907 1.81 christos else
5908 1.81 christos cat >>confdefs.h <<EOF
5909 1.81 christos #define HAVE_DECL_VERRC 0
5910 1.81 christos EOF
5911 1.81 christos
5912 1.81 christos fi
5913 1.81 christos echo "$as_me:5913: checking whether warnc is declared" >&5
5914 1.81 christos echo $ECHO_N "checking whether warnc is declared... $ECHO_C" >&6
5915 1.81 christos if test "${ac_cv_have_decl_warnc+set}" = set; then
5916 1.81 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5917 1.81 christos else
5918 1.81 christos cat >conftest.$ac_ext <<_ACEOF
5919 1.81 christos #line 5919 "configure"
5920 1.81 christos #include "confdefs.h"
5921 1.81 christos
5922 1.81 christos #ifdef HAVE_ERR_H
5923 1.81 christos #include <err.h>
5924 1.81 christos #endif
5925 1.81 christos
5926 1.81 christos int
5927 1.81 christos main ()
5928 1.81 christos {
5929 1.81 christos #ifndef warnc
5930 1.81 christos char *p = (char *) warnc;
5931 1.81 christos #endif
5932 1.81 christos
5933 1.81 christos ;
5934 1.81 christos return 0;
5935 1.81 christos }
5936 1.81 christos _ACEOF
5937 1.81 christos rm -f conftest.$ac_objext
5938 1.81 christos if { (eval echo "$as_me:5938: \"$ac_compile\"") >&5
5939 1.81 christos (eval $ac_compile) 2>&5
5940 1.81 christos ac_status=$?
5941 1.81 christos echo "$as_me:5941: \$? = $ac_status" >&5
5942 1.81 christos (exit $ac_status); } &&
5943 1.81 christos { ac_try='test -s conftest.$ac_objext'
5944 1.81 christos { (eval echo "$as_me:5944: \"$ac_try\"") >&5
5945 1.81 christos (eval $ac_try) 2>&5
5946 1.81 christos ac_status=$?
5947 1.81 christos echo "$as_me:5947: \$? = $ac_status" >&5
5948 1.81 christos (exit $ac_status); }; }; then
5949 1.81 christos ac_cv_have_decl_warnc=yes
5950 1.81 christos else
5951 1.81 christos echo "$as_me: failed program was:" >&5
5952 1.81 christos cat conftest.$ac_ext >&5
5953 1.81 christos ac_cv_have_decl_warnc=no
5954 1.81 christos fi
5955 1.81 christos rm -f conftest.$ac_objext conftest.$ac_ext
5956 1.81 christos fi
5957 1.81 christos echo "$as_me:5957: result: $ac_cv_have_decl_warnc" >&5
5958 1.81 christos echo "${ECHO_T}$ac_cv_have_decl_warnc" >&6
5959 1.81 christos if test $ac_cv_have_decl_warnc = yes; then
5960 1.81 christos
5961 1.81 christos cat >>confdefs.h <<EOF
5962 1.81 christos #define HAVE_DECL_WARNC 1
5963 1.81 christos EOF
5964 1.81 christos
5965 1.81 christos else
5966 1.81 christos cat >>confdefs.h <<EOF
5967 1.81 christos #define HAVE_DECL_WARNC 0
5968 1.81 christos EOF
5969 1.81 christos
5970 1.81 christos fi
5971 1.81 christos echo "$as_me:5971: checking whether vwarnc is declared" >&5
5972 1.81 christos echo $ECHO_N "checking whether vwarnc is declared... $ECHO_C" >&6
5973 1.81 christos if test "${ac_cv_have_decl_vwarnc+set}" = set; then
5974 1.81 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5975 1.81 christos else
5976 1.81 christos cat >conftest.$ac_ext <<_ACEOF
5977 1.81 christos #line 5977 "configure"
5978 1.81 christos #include "confdefs.h"
5979 1.81 christos
5980 1.81 christos #ifdef HAVE_ERR_H
5981 1.81 christos #include <err.h>
5982 1.81 christos #endif
5983 1.81 christos
5984 1.81 christos int
5985 1.81 christos main ()
5986 1.81 christos {
5987 1.81 christos #ifndef vwarnc
5988 1.81 christos char *p = (char *) vwarnc;
5989 1.81 christos #endif
5990 1.81 christos
5991 1.81 christos ;
5992 1.81 christos return 0;
5993 1.81 christos }
5994 1.81 christos _ACEOF
5995 1.81 christos rm -f conftest.$ac_objext
5996 1.81 christos if { (eval echo "$as_me:5996: \"$ac_compile\"") >&5
5997 1.81 christos (eval $ac_compile) 2>&5
5998 1.81 christos ac_status=$?
5999 1.81 christos echo "$as_me:5999: \$? = $ac_status" >&5
6000 1.81 christos (exit $ac_status); } &&
6001 1.81 christos { ac_try='test -s conftest.$ac_objext'
6002 1.81 christos { (eval echo "$as_me:6002: \"$ac_try\"") >&5
6003 1.81 christos (eval $ac_try) 2>&5
6004 1.81 christos ac_status=$?
6005 1.81 christos echo "$as_me:6005: \$? = $ac_status" >&5
6006 1.81 christos (exit $ac_status); }; }; then
6007 1.81 christos ac_cv_have_decl_vwarnc=yes
6008 1.81 christos else
6009 1.81 christos echo "$as_me: failed program was:" >&5
6010 1.81 christos cat conftest.$ac_ext >&5
6011 1.81 christos ac_cv_have_decl_vwarnc=no
6012 1.81 christos fi
6013 1.81 christos rm -f conftest.$ac_objext conftest.$ac_ext
6014 1.81 christos fi
6015 1.81 christos echo "$as_me:6015: result: $ac_cv_have_decl_vwarnc" >&5
6016 1.81 christos echo "${ECHO_T}$ac_cv_have_decl_vwarnc" >&6
6017 1.81 christos if test $ac_cv_have_decl_vwarnc = yes; then
6018 1.81 christos
6019 1.81 christos cat >>confdefs.h <<EOF
6020 1.81 christos #define HAVE_DECL_VWARNC 1
6021 1.81 christos EOF
6022 1.81 christos
6023 1.81 christos else
6024 1.81 christos cat >>confdefs.h <<EOF
6025 1.81 christos #define HAVE_DECL_VWARNC 0
6026 1.81 christos EOF
6027 1.81 christos
6028 1.81 christos fi
6029 1.81 christos
6030 1.81 christos echo "$as_me:6030: checking whether htobe16 is declared" >&5
6031 1.76 pooka echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6
6032 1.76 pooka if test "${ac_cv_have_decl_htobe16+set}" = set; then
6033 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6034 1.63 apb else
6035 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6036 1.81 christos #line 6036 "configure"
6037 1.76 pooka #include "confdefs.h"
6038 1.76 pooka #include <sys/types.h>
6039 1.53 dogcow
6040 1.76 pooka int
6041 1.76 pooka main ()
6042 1.76 pooka {
6043 1.76 pooka #ifndef htobe16
6044 1.76 pooka char *p = (char *) htobe16;
6045 1.76 pooka #endif
6046 1.65 christos
6047 1.76 pooka ;
6048 1.76 pooka return 0;
6049 1.76 pooka }
6050 1.76 pooka _ACEOF
6051 1.76 pooka rm -f conftest.$ac_objext
6052 1.81 christos if { (eval echo "$as_me:6052: \"$ac_compile\"") >&5
6053 1.76 pooka (eval $ac_compile) 2>&5
6054 1.76 pooka ac_status=$?
6055 1.81 christos echo "$as_me:6055: \$? = $ac_status" >&5
6056 1.76 pooka (exit $ac_status); } &&
6057 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6058 1.81 christos { (eval echo "$as_me:6058: \"$ac_try\"") >&5
6059 1.76 pooka (eval $ac_try) 2>&5
6060 1.76 pooka ac_status=$?
6061 1.81 christos echo "$as_me:6061: \$? = $ac_status" >&5
6062 1.76 pooka (exit $ac_status); }; }; then
6063 1.76 pooka ac_cv_have_decl_htobe16=yes
6064 1.40 atatat else
6065 1.76 pooka echo "$as_me: failed program was:" >&5
6066 1.76 pooka cat conftest.$ac_ext >&5
6067 1.76 pooka ac_cv_have_decl_htobe16=no
6068 1.40 atatat fi
6069 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6070 1.74 christos fi
6071 1.81 christos echo "$as_me:6071: result: $ac_cv_have_decl_htobe16" >&5
6072 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6
6073 1.76 pooka if test $ac_cv_have_decl_htobe16 = yes; then
6074 1.61 christos
6075 1.76 pooka cat >>confdefs.h <<EOF
6076 1.76 pooka #define HAVE_DECL_HTOBE16 1
6077 1.76 pooka EOF
6078 1.53 dogcow
6079 1.7 tv else
6080 1.76 pooka cat >>confdefs.h <<EOF
6081 1.76 pooka #define HAVE_DECL_HTOBE16 0
6082 1.76 pooka EOF
6083 1.7 tv
6084 1.76 pooka fi
6085 1.81 christos echo "$as_me:6085: checking whether htobe32 is declared" >&5
6086 1.76 pooka echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6
6087 1.76 pooka if test "${ac_cv_have_decl_htobe32+set}" = set; then
6088 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6089 1.76 pooka else
6090 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6091 1.81 christos #line 6091 "configure"
6092 1.76 pooka #include "confdefs.h"
6093 1.76 pooka #include <sys/types.h>
6094 1.60 apb
6095 1.76 pooka int
6096 1.76 pooka main ()
6097 1.76 pooka {
6098 1.76 pooka #ifndef htobe32
6099 1.76 pooka char *p = (char *) htobe32;
6100 1.76 pooka #endif
6101 1.63 apb
6102 1.76 pooka ;
6103 1.76 pooka return 0;
6104 1.76 pooka }
6105 1.76 pooka _ACEOF
6106 1.76 pooka rm -f conftest.$ac_objext
6107 1.81 christos if { (eval echo "$as_me:6107: \"$ac_compile\"") >&5
6108 1.76 pooka (eval $ac_compile) 2>&5
6109 1.76 pooka ac_status=$?
6110 1.81 christos echo "$as_me:6110: \$? = $ac_status" >&5
6111 1.76 pooka (exit $ac_status); } &&
6112 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6113 1.81 christos { (eval echo "$as_me:6113: \"$ac_try\"") >&5
6114 1.76 pooka (eval $ac_try) 2>&5
6115 1.76 pooka ac_status=$?
6116 1.81 christos echo "$as_me:6116: \$? = $ac_status" >&5
6117 1.76 pooka (exit $ac_status); }; }; then
6118 1.76 pooka ac_cv_have_decl_htobe32=yes
6119 1.7 tv else
6120 1.76 pooka echo "$as_me: failed program was:" >&5
6121 1.76 pooka cat conftest.$ac_ext >&5
6122 1.76 pooka ac_cv_have_decl_htobe32=no
6123 1.7 tv fi
6124 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6125 1.7 tv fi
6126 1.81 christos echo "$as_me:6126: result: $ac_cv_have_decl_htobe32" >&5
6127 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6
6128 1.76 pooka if test $ac_cv_have_decl_htobe32 = yes; then
6129 1.7 tv
6130 1.76 pooka cat >>confdefs.h <<EOF
6131 1.76 pooka #define HAVE_DECL_HTOBE32 1
6132 1.76 pooka EOF
6133 1.4 tv
6134 1.76 pooka else
6135 1.76 pooka cat >>confdefs.h <<EOF
6136 1.76 pooka #define HAVE_DECL_HTOBE32 0
6137 1.76 pooka EOF
6138 1.63 apb
6139 1.76 pooka fi
6140 1.81 christos echo "$as_me:6140: checking whether htobe64 is declared" >&5
6141 1.76 pooka echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6
6142 1.76 pooka if test "${ac_cv_have_decl_htobe64+set}" = set; then
6143 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6144 1.63 apb else
6145 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6146 1.81 christos #line 6146 "configure"
6147 1.76 pooka #include "confdefs.h"
6148 1.76 pooka #include <sys/types.h>
6149 1.65 christos
6150 1.76 pooka int
6151 1.76 pooka main ()
6152 1.76 pooka {
6153 1.76 pooka #ifndef htobe64
6154 1.76 pooka char *p = (char *) htobe64;
6155 1.76 pooka #endif
6156 1.63 apb
6157 1.76 pooka ;
6158 1.76 pooka return 0;
6159 1.76 pooka }
6160 1.76 pooka _ACEOF
6161 1.76 pooka rm -f conftest.$ac_objext
6162 1.81 christos if { (eval echo "$as_me:6162: \"$ac_compile\"") >&5
6163 1.76 pooka (eval $ac_compile) 2>&5
6164 1.76 pooka ac_status=$?
6165 1.81 christos echo "$as_me:6165: \$? = $ac_status" >&5
6166 1.76 pooka (exit $ac_status); } &&
6167 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6168 1.81 christos { (eval echo "$as_me:6168: \"$ac_try\"") >&5
6169 1.76 pooka (eval $ac_try) 2>&5
6170 1.76 pooka ac_status=$?
6171 1.81 christos echo "$as_me:6171: \$? = $ac_status" >&5
6172 1.76 pooka (exit $ac_status); }; }; then
6173 1.76 pooka ac_cv_have_decl_htobe64=yes
6174 1.53 dogcow else
6175 1.76 pooka echo "$as_me: failed program was:" >&5
6176 1.76 pooka cat conftest.$ac_ext >&5
6177 1.76 pooka ac_cv_have_decl_htobe64=no
6178 1.53 dogcow fi
6179 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6180 1.61 christos fi
6181 1.81 christos echo "$as_me:6181: result: $ac_cv_have_decl_htobe64" >&5
6182 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6
6183 1.76 pooka if test $ac_cv_have_decl_htobe64 = yes; then
6184 1.65 christos
6185 1.76 pooka cat >>confdefs.h <<EOF
6186 1.76 pooka #define HAVE_DECL_HTOBE64 1
6187 1.76 pooka EOF
6188 1.65 christos
6189 1.65 christos else
6190 1.76 pooka cat >>confdefs.h <<EOF
6191 1.76 pooka #define HAVE_DECL_HTOBE64 0
6192 1.76 pooka EOF
6193 1.53 dogcow
6194 1.76 pooka fi
6195 1.81 christos echo "$as_me:6195: checking whether htole16 is declared" >&5
6196 1.76 pooka echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6
6197 1.76 pooka if test "${ac_cv_have_decl_htole16+set}" = set; then
6198 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6199 1.76 pooka else
6200 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6201 1.81 christos #line 6201 "configure"
6202 1.76 pooka #include "confdefs.h"
6203 1.76 pooka #include <sys/types.h>
6204 1.65 christos
6205 1.76 pooka int
6206 1.76 pooka main ()
6207 1.76 pooka {
6208 1.76 pooka #ifndef htole16
6209 1.76 pooka char *p = (char *) htole16;
6210 1.76 pooka #endif
6211 1.53 dogcow
6212 1.76 pooka ;
6213 1.76 pooka return 0;
6214 1.76 pooka }
6215 1.76 pooka _ACEOF
6216 1.76 pooka rm -f conftest.$ac_objext
6217 1.81 christos if { (eval echo "$as_me:6217: \"$ac_compile\"") >&5
6218 1.76 pooka (eval $ac_compile) 2>&5
6219 1.76 pooka ac_status=$?
6220 1.81 christos echo "$as_me:6220: \$? = $ac_status" >&5
6221 1.76 pooka (exit $ac_status); } &&
6222 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6223 1.81 christos { (eval echo "$as_me:6223: \"$ac_try\"") >&5
6224 1.76 pooka (eval $ac_try) 2>&5
6225 1.76 pooka ac_status=$?
6226 1.81 christos echo "$as_me:6226: \$? = $ac_status" >&5
6227 1.76 pooka (exit $ac_status); }; }; then
6228 1.76 pooka ac_cv_have_decl_htole16=yes
6229 1.7 tv else
6230 1.76 pooka echo "$as_me: failed program was:" >&5
6231 1.76 pooka cat conftest.$ac_ext >&5
6232 1.76 pooka ac_cv_have_decl_htole16=no
6233 1.7 tv fi
6234 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6235 1.7 tv fi
6236 1.81 christos echo "$as_me:6236: result: $ac_cv_have_decl_htole16" >&5
6237 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6
6238 1.76 pooka if test $ac_cv_have_decl_htole16 = yes; then
6239 1.65 christos
6240 1.76 pooka cat >>confdefs.h <<EOF
6241 1.76 pooka #define HAVE_DECL_HTOLE16 1
6242 1.76 pooka EOF
6243 1.7 tv
6244 1.76 pooka else
6245 1.76 pooka cat >>confdefs.h <<EOF
6246 1.76 pooka #define HAVE_DECL_HTOLE16 0
6247 1.76 pooka EOF
6248 1.61 christos
6249 1.76 pooka fi
6250 1.81 christos echo "$as_me:6250: checking whether htole32 is declared" >&5
6251 1.76 pooka echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6
6252 1.76 pooka if test "${ac_cv_have_decl_htole32+set}" = set; then
6253 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6254 1.7 tv else
6255 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6256 1.81 christos #line 6256 "configure"
6257 1.76 pooka #include "confdefs.h"
6258 1.76 pooka #include <sys/types.h>
6259 1.61 christos
6260 1.76 pooka int
6261 1.76 pooka main ()
6262 1.76 pooka {
6263 1.76 pooka #ifndef htole32
6264 1.76 pooka char *p = (char *) htole32;
6265 1.76 pooka #endif
6266 1.7 tv
6267 1.76 pooka ;
6268 1.76 pooka return 0;
6269 1.76 pooka }
6270 1.76 pooka _ACEOF
6271 1.76 pooka rm -f conftest.$ac_objext
6272 1.81 christos if { (eval echo "$as_me:6272: \"$ac_compile\"") >&5
6273 1.76 pooka (eval $ac_compile) 2>&5
6274 1.76 pooka ac_status=$?
6275 1.81 christos echo "$as_me:6275: \$? = $ac_status" >&5
6276 1.76 pooka (exit $ac_status); } &&
6277 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6278 1.81 christos { (eval echo "$as_me:6278: \"$ac_try\"") >&5
6279 1.76 pooka (eval $ac_try) 2>&5
6280 1.76 pooka ac_status=$?
6281 1.81 christos echo "$as_me:6281: \$? = $ac_status" >&5
6282 1.76 pooka (exit $ac_status); }; }; then
6283 1.76 pooka ac_cv_have_decl_htole32=yes
6284 1.7 tv else
6285 1.76 pooka echo "$as_me: failed program was:" >&5
6286 1.76 pooka cat conftest.$ac_ext >&5
6287 1.76 pooka ac_cv_have_decl_htole32=no
6288 1.7 tv fi
6289 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6290 1.7 tv fi
6291 1.81 christos echo "$as_me:6291: result: $ac_cv_have_decl_htole32" >&5
6292 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6
6293 1.76 pooka if test $ac_cv_have_decl_htole32 = yes; then
6294 1.61 christos
6295 1.76 pooka cat >>confdefs.h <<EOF
6296 1.76 pooka #define HAVE_DECL_HTOLE32 1
6297 1.76 pooka EOF
6298 1.7 tv
6299 1.7 tv else
6300 1.76 pooka cat >>confdefs.h <<EOF
6301 1.76 pooka #define HAVE_DECL_HTOLE32 0
6302 1.76 pooka EOF
6303 1.7 tv
6304 1.76 pooka fi
6305 1.81 christos echo "$as_me:6305: checking whether htole64 is declared" >&5
6306 1.76 pooka echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6
6307 1.76 pooka if test "${ac_cv_have_decl_htole64+set}" = set; then
6308 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6309 1.76 pooka else
6310 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6311 1.81 christos #line 6311 "configure"
6312 1.76 pooka #include "confdefs.h"
6313 1.76 pooka #include <sys/types.h>
6314 1.4 tv
6315 1.76 pooka int
6316 1.76 pooka main ()
6317 1.76 pooka {
6318 1.76 pooka #ifndef htole64
6319 1.76 pooka char *p = (char *) htole64;
6320 1.76 pooka #endif
6321 1.4 tv
6322 1.76 pooka ;
6323 1.76 pooka return 0;
6324 1.76 pooka }
6325 1.76 pooka _ACEOF
6326 1.76 pooka rm -f conftest.$ac_objext
6327 1.81 christos if { (eval echo "$as_me:6327: \"$ac_compile\"") >&5
6328 1.76 pooka (eval $ac_compile) 2>&5
6329 1.76 pooka ac_status=$?
6330 1.81 christos echo "$as_me:6330: \$? = $ac_status" >&5
6331 1.76 pooka (exit $ac_status); } &&
6332 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6333 1.81 christos { (eval echo "$as_me:6333: \"$ac_try\"") >&5
6334 1.76 pooka (eval $ac_try) 2>&5
6335 1.76 pooka ac_status=$?
6336 1.81 christos echo "$as_me:6336: \$? = $ac_status" >&5
6337 1.76 pooka (exit $ac_status); }; }; then
6338 1.76 pooka ac_cv_have_decl_htole64=yes
6339 1.4 tv else
6340 1.76 pooka echo "$as_me: failed program was:" >&5
6341 1.76 pooka cat conftest.$ac_ext >&5
6342 1.76 pooka ac_cv_have_decl_htole64=no
6343 1.4 tv fi
6344 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6345 1.4 tv fi
6346 1.81 christos echo "$as_me:6346: result: $ac_cv_have_decl_htole64" >&5
6347 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6
6348 1.76 pooka if test $ac_cv_have_decl_htole64 = yes; then
6349 1.61 christos
6350 1.76 pooka cat >>confdefs.h <<EOF
6351 1.76 pooka #define HAVE_DECL_HTOLE64 1
6352 1.76 pooka EOF
6353 1.74 christos
6354 1.76 pooka else
6355 1.76 pooka cat >>confdefs.h <<EOF
6356 1.76 pooka #define HAVE_DECL_HTOLE64 0
6357 1.76 pooka EOF
6358 1.74 christos
6359 1.76 pooka fi
6360 1.81 christos echo "$as_me:6360: checking whether be16toh is declared" >&5
6361 1.76 pooka echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6
6362 1.76 pooka if test "${ac_cv_have_decl_be16toh+set}" = set; then
6363 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6364 1.4 tv else
6365 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6366 1.81 christos #line 6366 "configure"
6367 1.76 pooka #include "confdefs.h"
6368 1.76 pooka #include <sys/types.h>
6369 1.4 tv
6370 1.76 pooka int
6371 1.76 pooka main ()
6372 1.76 pooka {
6373 1.76 pooka #ifndef be16toh
6374 1.76 pooka char *p = (char *) be16toh;
6375 1.76 pooka #endif
6376 1.63 apb
6377 1.76 pooka ;
6378 1.76 pooka return 0;
6379 1.76 pooka }
6380 1.76 pooka _ACEOF
6381 1.76 pooka rm -f conftest.$ac_objext
6382 1.81 christos if { (eval echo "$as_me:6382: \"$ac_compile\"") >&5
6383 1.76 pooka (eval $ac_compile) 2>&5
6384 1.76 pooka ac_status=$?
6385 1.81 christos echo "$as_me:6385: \$? = $ac_status" >&5
6386 1.76 pooka (exit $ac_status); } &&
6387 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6388 1.81 christos { (eval echo "$as_me:6388: \"$ac_try\"") >&5
6389 1.76 pooka (eval $ac_try) 2>&5
6390 1.76 pooka ac_status=$?
6391 1.81 christos echo "$as_me:6391: \$? = $ac_status" >&5
6392 1.76 pooka (exit $ac_status); }; }; then
6393 1.76 pooka ac_cv_have_decl_be16toh=yes
6394 1.19 bjh21 else
6395 1.76 pooka echo "$as_me: failed program was:" >&5
6396 1.76 pooka cat conftest.$ac_ext >&5
6397 1.76 pooka ac_cv_have_decl_be16toh=no
6398 1.19 bjh21 fi
6399 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6400 1.19 bjh21 fi
6401 1.81 christos echo "$as_me:6401: result: $ac_cv_have_decl_be16toh" >&5
6402 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6
6403 1.76 pooka if test $ac_cv_have_decl_be16toh = yes; then
6404 1.63 apb
6405 1.76 pooka cat >>confdefs.h <<EOF
6406 1.76 pooka #define HAVE_DECL_BE16TOH 1
6407 1.76 pooka EOF
6408 1.19 bjh21
6409 1.63 apb else
6410 1.76 pooka cat >>confdefs.h <<EOF
6411 1.76 pooka #define HAVE_DECL_BE16TOH 0
6412 1.76 pooka EOF
6413 1.19 bjh21
6414 1.76 pooka fi
6415 1.81 christos echo "$as_me:6415: checking whether be32toh is declared" >&5
6416 1.76 pooka echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6
6417 1.76 pooka if test "${ac_cv_have_decl_be32toh+set}" = set; then
6418 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6419 1.76 pooka else
6420 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6421 1.81 christos #line 6421 "configure"
6422 1.76 pooka #include "confdefs.h"
6423 1.76 pooka #include <sys/types.h>
6424 1.63 apb
6425 1.76 pooka int
6426 1.76 pooka main ()
6427 1.76 pooka {
6428 1.76 pooka #ifndef be32toh
6429 1.76 pooka char *p = (char *) be32toh;
6430 1.76 pooka #endif
6431 1.19 bjh21
6432 1.76 pooka ;
6433 1.76 pooka return 0;
6434 1.76 pooka }
6435 1.76 pooka _ACEOF
6436 1.76 pooka rm -f conftest.$ac_objext
6437 1.81 christos if { (eval echo "$as_me:6437: \"$ac_compile\"") >&5
6438 1.76 pooka (eval $ac_compile) 2>&5
6439 1.76 pooka ac_status=$?
6440 1.81 christos echo "$as_me:6440: \$? = $ac_status" >&5
6441 1.76 pooka (exit $ac_status); } &&
6442 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6443 1.81 christos { (eval echo "$as_me:6443: \"$ac_try\"") >&5
6444 1.76 pooka (eval $ac_try) 2>&5
6445 1.76 pooka ac_status=$?
6446 1.81 christos echo "$as_me:6446: \$? = $ac_status" >&5
6447 1.76 pooka (exit $ac_status); }; }; then
6448 1.76 pooka ac_cv_have_decl_be32toh=yes
6449 1.19 bjh21 else
6450 1.76 pooka echo "$as_me: failed program was:" >&5
6451 1.76 pooka cat conftest.$ac_ext >&5
6452 1.76 pooka ac_cv_have_decl_be32toh=no
6453 1.19 bjh21 fi
6454 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6455 1.76 pooka fi
6456 1.81 christos echo "$as_me:6456: result: $ac_cv_have_decl_be32toh" >&5
6457 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6
6458 1.76 pooka if test $ac_cv_have_decl_be32toh = yes; then
6459 1.76 pooka
6460 1.76 pooka cat >>confdefs.h <<EOF
6461 1.76 pooka #define HAVE_DECL_BE32TOH 1
6462 1.76 pooka EOF
6463 1.74 christos
6464 1.76 pooka else
6465 1.76 pooka cat >>confdefs.h <<EOF
6466 1.76 pooka #define HAVE_DECL_BE32TOH 0
6467 1.76 pooka EOF
6468 1.74 christos
6469 1.19 bjh21 fi
6470 1.81 christos echo "$as_me:6470: checking whether be64toh is declared" >&5
6471 1.76 pooka echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6
6472 1.76 pooka if test "${ac_cv_have_decl_be64toh+set}" = set; then
6473 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6474 1.76 pooka else
6475 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6476 1.81 christos #line 6476 "configure"
6477 1.76 pooka #include "confdefs.h"
6478 1.76 pooka #include <sys/types.h>
6479 1.19 bjh21
6480 1.76 pooka int
6481 1.76 pooka main ()
6482 1.76 pooka {
6483 1.76 pooka #ifndef be64toh
6484 1.76 pooka char *p = (char *) be64toh;
6485 1.76 pooka #endif
6486 1.19 bjh21
6487 1.76 pooka ;
6488 1.76 pooka return 0;
6489 1.76 pooka }
6490 1.74 christos _ACEOF
6491 1.76 pooka rm -f conftest.$ac_objext
6492 1.81 christos if { (eval echo "$as_me:6492: \"$ac_compile\"") >&5
6493 1.76 pooka (eval $ac_compile) 2>&5
6494 1.76 pooka ac_status=$?
6495 1.81 christos echo "$as_me:6495: \$? = $ac_status" >&5
6496 1.76 pooka (exit $ac_status); } &&
6497 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6498 1.81 christos { (eval echo "$as_me:6498: \"$ac_try\"") >&5
6499 1.76 pooka (eval $ac_try) 2>&5
6500 1.76 pooka ac_status=$?
6501 1.81 christos echo "$as_me:6501: \$? = $ac_status" >&5
6502 1.76 pooka (exit $ac_status); }; }; then
6503 1.76 pooka ac_cv_have_decl_be64toh=yes
6504 1.76 pooka else
6505 1.76 pooka echo "$as_me: failed program was:" >&5
6506 1.76 pooka cat conftest.$ac_ext >&5
6507 1.76 pooka ac_cv_have_decl_be64toh=no
6508 1.63 apb fi
6509 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6510 1.63 apb fi
6511 1.81 christos echo "$as_me:6511: result: $ac_cv_have_decl_be64toh" >&5
6512 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6
6513 1.76 pooka if test $ac_cv_have_decl_be64toh = yes; then
6514 1.39 fredb
6515 1.76 pooka cat >>confdefs.h <<EOF
6516 1.76 pooka #define HAVE_DECL_BE64TOH 1
6517 1.76 pooka EOF
6518 1.63 apb
6519 1.76 pooka else
6520 1.76 pooka cat >>confdefs.h <<EOF
6521 1.76 pooka #define HAVE_DECL_BE64TOH 0
6522 1.76 pooka EOF
6523 1.61 christos
6524 1.63 apb fi
6525 1.81 christos echo "$as_me:6525: checking whether le16toh is declared" >&5
6526 1.76 pooka echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6
6527 1.76 pooka if test "${ac_cv_have_decl_le16toh+set}" = set; then
6528 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6529 1.76 pooka else
6530 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6531 1.81 christos #line 6531 "configure"
6532 1.76 pooka #include "confdefs.h"
6533 1.76 pooka #include <sys/types.h>
6534 1.63 apb
6535 1.76 pooka int
6536 1.76 pooka main ()
6537 1.76 pooka {
6538 1.76 pooka #ifndef le16toh
6539 1.76 pooka char *p = (char *) le16toh;
6540 1.76 pooka #endif
6541 1.19 bjh21
6542 1.76 pooka ;
6543 1.76 pooka return 0;
6544 1.76 pooka }
6545 1.19 bjh21 _ACEOF
6546 1.76 pooka rm -f conftest.$ac_objext
6547 1.81 christos if { (eval echo "$as_me:6547: \"$ac_compile\"") >&5
6548 1.76 pooka (eval $ac_compile) 2>&5
6549 1.76 pooka ac_status=$?
6550 1.81 christos echo "$as_me:6550: \$? = $ac_status" >&5
6551 1.76 pooka (exit $ac_status); } &&
6552 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6553 1.81 christos { (eval echo "$as_me:6553: \"$ac_try\"") >&5
6554 1.76 pooka (eval $ac_try) 2>&5
6555 1.76 pooka ac_status=$?
6556 1.81 christos echo "$as_me:6556: \$? = $ac_status" >&5
6557 1.76 pooka (exit $ac_status); }; }; then
6558 1.76 pooka ac_cv_have_decl_le16toh=yes
6559 1.76 pooka else
6560 1.76 pooka echo "$as_me: failed program was:" >&5
6561 1.76 pooka cat conftest.$ac_ext >&5
6562 1.76 pooka ac_cv_have_decl_le16toh=no
6563 1.76 pooka fi
6564 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6565 1.19 bjh21 fi
6566 1.81 christos echo "$as_me:6566: result: $ac_cv_have_decl_le16toh" >&5
6567 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6
6568 1.76 pooka if test $ac_cv_have_decl_le16toh = yes; then
6569 1.63 apb
6570 1.76 pooka cat >>confdefs.h <<EOF
6571 1.76 pooka #define HAVE_DECL_LE16TOH 1
6572 1.76 pooka EOF
6573 1.63 apb
6574 1.76 pooka else
6575 1.76 pooka cat >>confdefs.h <<EOF
6576 1.76 pooka #define HAVE_DECL_LE16TOH 0
6577 1.76 pooka EOF
6578 1.19 bjh21
6579 1.19 bjh21 fi
6580 1.81 christos echo "$as_me:6580: checking whether le32toh is declared" >&5
6581 1.76 pooka echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6
6582 1.76 pooka if test "${ac_cv_have_decl_le32toh+set}" = set; then
6583 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6584 1.76 pooka else
6585 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6586 1.81 christos #line 6586 "configure"
6587 1.76 pooka #include "confdefs.h"
6588 1.76 pooka #include <sys/types.h>
6589 1.76 pooka
6590 1.76 pooka int
6591 1.76 pooka main ()
6592 1.76 pooka {
6593 1.76 pooka #ifndef le32toh
6594 1.76 pooka char *p = (char *) le32toh;
6595 1.76 pooka #endif
6596 1.74 christos
6597 1.76 pooka ;
6598 1.76 pooka return 0;
6599 1.76 pooka }
6600 1.74 christos _ACEOF
6601 1.76 pooka rm -f conftest.$ac_objext
6602 1.81 christos if { (eval echo "$as_me:6602: \"$ac_compile\"") >&5
6603 1.76 pooka (eval $ac_compile) 2>&5
6604 1.76 pooka ac_status=$?
6605 1.81 christos echo "$as_me:6605: \$? = $ac_status" >&5
6606 1.76 pooka (exit $ac_status); } &&
6607 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6608 1.81 christos { (eval echo "$as_me:6608: \"$ac_try\"") >&5
6609 1.76 pooka (eval $ac_try) 2>&5
6610 1.76 pooka ac_status=$?
6611 1.81 christos echo "$as_me:6611: \$? = $ac_status" >&5
6612 1.76 pooka (exit $ac_status); }; }; then
6613 1.76 pooka ac_cv_have_decl_le32toh=yes
6614 1.76 pooka else
6615 1.76 pooka echo "$as_me: failed program was:" >&5
6616 1.76 pooka cat conftest.$ac_ext >&5
6617 1.76 pooka ac_cv_have_decl_le32toh=no
6618 1.76 pooka fi
6619 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6620 1.19 bjh21 fi
6621 1.81 christos echo "$as_me:6621: result: $ac_cv_have_decl_le32toh" >&5
6622 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6
6623 1.76 pooka if test $ac_cv_have_decl_le32toh = yes; then
6624 1.19 bjh21
6625 1.76 pooka cat >>confdefs.h <<EOF
6626 1.76 pooka #define HAVE_DECL_LE32TOH 1
6627 1.76 pooka EOF
6628 1.19 bjh21
6629 1.76 pooka else
6630 1.76 pooka cat >>confdefs.h <<EOF
6631 1.76 pooka #define HAVE_DECL_LE32TOH 0
6632 1.76 pooka EOF
6633 1.19 bjh21
6634 1.19 bjh21 fi
6635 1.81 christos echo "$as_me:6635: checking whether le64toh is declared" >&5
6636 1.76 pooka echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6
6637 1.76 pooka if test "${ac_cv_have_decl_le64toh+set}" = set; then
6638 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6639 1.76 pooka else
6640 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6641 1.81 christos #line 6641 "configure"
6642 1.76 pooka #include "confdefs.h"
6643 1.76 pooka #include <sys/types.h>
6644 1.76 pooka
6645 1.76 pooka int
6646 1.76 pooka main ()
6647 1.76 pooka {
6648 1.76 pooka #ifndef le64toh
6649 1.76 pooka char *p = (char *) le64toh;
6650 1.76 pooka #endif
6651 1.74 christos
6652 1.76 pooka ;
6653 1.76 pooka return 0;
6654 1.76 pooka }
6655 1.74 christos _ACEOF
6656 1.76 pooka rm -f conftest.$ac_objext
6657 1.81 christos if { (eval echo "$as_me:6657: \"$ac_compile\"") >&5
6658 1.76 pooka (eval $ac_compile) 2>&5
6659 1.76 pooka ac_status=$?
6660 1.81 christos echo "$as_me:6660: \$? = $ac_status" >&5
6661 1.76 pooka (exit $ac_status); } &&
6662 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6663 1.81 christos { (eval echo "$as_me:6663: \"$ac_try\"") >&5
6664 1.76 pooka (eval $ac_try) 2>&5
6665 1.76 pooka ac_status=$?
6666 1.81 christos echo "$as_me:6666: \$? = $ac_status" >&5
6667 1.76 pooka (exit $ac_status); }; }; then
6668 1.76 pooka ac_cv_have_decl_le64toh=yes
6669 1.76 pooka else
6670 1.76 pooka echo "$as_me: failed program was:" >&5
6671 1.76 pooka cat conftest.$ac_ext >&5
6672 1.76 pooka ac_cv_have_decl_le64toh=no
6673 1.43 dbj fi
6674 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6675 1.43 dbj fi
6676 1.81 christos echo "$as_me:6676: result: $ac_cv_have_decl_le64toh" >&5
6677 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6
6678 1.76 pooka if test $ac_cv_have_decl_le64toh = yes; then
6679 1.40 atatat
6680 1.76 pooka cat >>confdefs.h <<EOF
6681 1.76 pooka #define HAVE_DECL_LE64TOH 1
6682 1.76 pooka EOF
6683 1.61 christos
6684 1.76 pooka else
6685 1.76 pooka cat >>confdefs.h <<EOF
6686 1.76 pooka #define HAVE_DECL_LE64TOH 0
6687 1.76 pooka EOF
6688 1.61 christos
6689 1.74 christos fi
6690 1.61 christos
6691 1.81 christos echo "$as_me:6691: checking whether bswap16 is declared" >&5
6692 1.76 pooka echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6
6693 1.76 pooka if test "${ac_cv_have_decl_bswap16+set}" = set; then
6694 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6695 1.76 pooka else
6696 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6697 1.81 christos #line 6697 "configure"
6698 1.76 pooka #include "confdefs.h"
6699 1.76 pooka #include <machine/bswap.h>
6700 1.61 christos
6701 1.76 pooka int
6702 1.76 pooka main ()
6703 1.76 pooka {
6704 1.76 pooka #ifndef bswap16
6705 1.76 pooka char *p = (char *) bswap16;
6706 1.76 pooka #endif
6707 1.61 christos
6708 1.76 pooka ;
6709 1.76 pooka return 0;
6710 1.76 pooka }
6711 1.76 pooka _ACEOF
6712 1.76 pooka rm -f conftest.$ac_objext
6713 1.81 christos if { (eval echo "$as_me:6713: \"$ac_compile\"") >&5
6714 1.76 pooka (eval $ac_compile) 2>&5
6715 1.76 pooka ac_status=$?
6716 1.81 christos echo "$as_me:6716: \$? = $ac_status" >&5
6717 1.76 pooka (exit $ac_status); } &&
6718 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6719 1.81 christos { (eval echo "$as_me:6719: \"$ac_try\"") >&5
6720 1.76 pooka (eval $ac_try) 2>&5
6721 1.76 pooka ac_status=$?
6722 1.81 christos echo "$as_me:6722: \$? = $ac_status" >&5
6723 1.76 pooka (exit $ac_status); }; }; then
6724 1.76 pooka ac_cv_have_decl_bswap16=yes
6725 1.63 apb else
6726 1.76 pooka echo "$as_me: failed program was:" >&5
6727 1.76 pooka cat conftest.$ac_ext >&5
6728 1.76 pooka ac_cv_have_decl_bswap16=no
6729 1.76 pooka fi
6730 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6731 1.63 apb fi
6732 1.81 christos echo "$as_me:6732: result: $ac_cv_have_decl_bswap16" >&5
6733 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6
6734 1.76 pooka if test $ac_cv_have_decl_bswap16 = yes; then
6735 1.61 christos
6736 1.76 pooka cat >>confdefs.h <<EOF
6737 1.76 pooka #define HAVE_DECL_BSWAP16 1
6738 1.76 pooka EOF
6739 1.61 christos
6740 1.63 apb else
6741 1.76 pooka cat >>confdefs.h <<EOF
6742 1.76 pooka #define HAVE_DECL_BSWAP16 0
6743 1.76 pooka EOF
6744 1.76 pooka
6745 1.63 apb fi
6746 1.81 christos echo "$as_me:6746: checking whether bswap32 is declared" >&5
6747 1.76 pooka echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6
6748 1.76 pooka if test "${ac_cv_have_decl_bswap32+set}" = set; then
6749 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6750 1.76 pooka else
6751 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6752 1.81 christos #line 6752 "configure"
6753 1.76 pooka #include "confdefs.h"
6754 1.76 pooka #include <machine/bswap.h>
6755 1.76 pooka
6756 1.76 pooka int
6757 1.76 pooka main ()
6758 1.76 pooka {
6759 1.76 pooka #ifndef bswap32
6760 1.76 pooka char *p = (char *) bswap32;
6761 1.76 pooka #endif
6762 1.61 christos
6763 1.76 pooka ;
6764 1.76 pooka return 0;
6765 1.76 pooka }
6766 1.74 christos _ACEOF
6767 1.76 pooka rm -f conftest.$ac_objext
6768 1.81 christos if { (eval echo "$as_me:6768: \"$ac_compile\"") >&5
6769 1.76 pooka (eval $ac_compile) 2>&5
6770 1.76 pooka ac_status=$?
6771 1.81 christos echo "$as_me:6771: \$? = $ac_status" >&5
6772 1.76 pooka (exit $ac_status); } &&
6773 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6774 1.81 christos { (eval echo "$as_me:6774: \"$ac_try\"") >&5
6775 1.76 pooka (eval $ac_try) 2>&5
6776 1.76 pooka ac_status=$?
6777 1.81 christos echo "$as_me:6777: \$? = $ac_status" >&5
6778 1.76 pooka (exit $ac_status); }; }; then
6779 1.76 pooka ac_cv_have_decl_bswap32=yes
6780 1.45 jmc else
6781 1.76 pooka echo "$as_me: failed program was:" >&5
6782 1.76 pooka cat conftest.$ac_ext >&5
6783 1.76 pooka ac_cv_have_decl_bswap32=no
6784 1.76 pooka fi
6785 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6786 1.45 jmc fi
6787 1.81 christos echo "$as_me:6787: result: $ac_cv_have_decl_bswap32" >&5
6788 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6
6789 1.76 pooka if test $ac_cv_have_decl_bswap32 = yes; then
6790 1.45 jmc
6791 1.76 pooka cat >>confdefs.h <<EOF
6792 1.76 pooka #define HAVE_DECL_BSWAP32 1
6793 1.76 pooka EOF
6794 1.45 jmc
6795 1.76 pooka else
6796 1.76 pooka cat >>confdefs.h <<EOF
6797 1.76 pooka #define HAVE_DECL_BSWAP32 0
6798 1.76 pooka EOF
6799 1.61 christos
6800 1.76 pooka fi
6801 1.81 christos echo "$as_me:6801: checking whether bswap64 is declared" >&5
6802 1.76 pooka echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6
6803 1.76 pooka if test "${ac_cv_have_decl_bswap64+set}" = set; then
6804 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6805 1.55 wiz else
6806 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6807 1.81 christos #line 6807 "configure"
6808 1.76 pooka #include "confdefs.h"
6809 1.76 pooka #include <machine/bswap.h>
6810 1.76 pooka
6811 1.55 wiz int
6812 1.55 wiz main ()
6813 1.55 wiz {
6814 1.76 pooka #ifndef bswap64
6815 1.76 pooka char *p = (char *) bswap64;
6816 1.76 pooka #endif
6817 1.76 pooka
6818 1.55 wiz ;
6819 1.55 wiz return 0;
6820 1.55 wiz }
6821 1.55 wiz _ACEOF
6822 1.76 pooka rm -f conftest.$ac_objext
6823 1.81 christos if { (eval echo "$as_me:6823: \"$ac_compile\"") >&5
6824 1.76 pooka (eval $ac_compile) 2>&5
6825 1.76 pooka ac_status=$?
6826 1.81 christos echo "$as_me:6826: \$? = $ac_status" >&5
6827 1.76 pooka (exit $ac_status); } &&
6828 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6829 1.81 christos { (eval echo "$as_me:6829: \"$ac_try\"") >&5
6830 1.76 pooka (eval $ac_try) 2>&5
6831 1.76 pooka ac_status=$?
6832 1.81 christos echo "$as_me:6832: \$? = $ac_status" >&5
6833 1.76 pooka (exit $ac_status); }; }; then
6834 1.76 pooka ac_cv_have_decl_bswap64=yes
6835 1.55 wiz else
6836 1.76 pooka echo "$as_me: failed program was:" >&5
6837 1.76 pooka cat conftest.$ac_ext >&5
6838 1.76 pooka ac_cv_have_decl_bswap64=no
6839 1.55 wiz fi
6840 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6841 1.55 wiz fi
6842 1.81 christos echo "$as_me:6842: result: $ac_cv_have_decl_bswap64" >&5
6843 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6
6844 1.76 pooka if test $ac_cv_have_decl_bswap64 = yes; then
6845 1.76 pooka
6846 1.76 pooka cat >>confdefs.h <<EOF
6847 1.76 pooka #define HAVE_DECL_BSWAP64 1
6848 1.76 pooka EOF
6849 1.55 wiz
6850 1.76 pooka else
6851 1.76 pooka cat >>confdefs.h <<EOF
6852 1.76 pooka #define HAVE_DECL_BSWAP64 0
6853 1.76 pooka EOF
6854 1.55 wiz
6855 1.55 wiz fi
6856 1.55 wiz
6857 1.81 christos echo "$as_me:6857: checking whether be16enc is declared" >&5
6858 1.76 pooka echo $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6
6859 1.76 pooka if test "${ac_cv_have_decl_be16enc+set}" = set; then
6860 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6861 1.45 jmc else
6862 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6863 1.81 christos #line 6863 "configure"
6864 1.76 pooka #include "confdefs.h"
6865 1.76 pooka #include <sys/endian.h>
6866 1.53 dogcow
6867 1.52 dbj int
6868 1.52 dbj main ()
6869 1.52 dbj {
6870 1.76 pooka #ifndef be16enc
6871 1.76 pooka char *p = (char *) be16enc;
6872 1.76 pooka #endif
6873 1.76 pooka
6874 1.48 jmc ;
6875 1.48 jmc return 0;
6876 1.48 jmc }
6877 1.48 jmc _ACEOF
6878 1.76 pooka rm -f conftest.$ac_objext
6879 1.81 christos if { (eval echo "$as_me:6879: \"$ac_compile\"") >&5
6880 1.76 pooka (eval $ac_compile) 2>&5
6881 1.76 pooka ac_status=$?
6882 1.81 christos echo "$as_me:6882: \$? = $ac_status" >&5
6883 1.76 pooka (exit $ac_status); } &&
6884 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6885 1.81 christos { (eval echo "$as_me:6885: \"$ac_try\"") >&5
6886 1.76 pooka (eval $ac_try) 2>&5
6887 1.76 pooka ac_status=$?
6888 1.81 christos echo "$as_me:6888: \$? = $ac_status" >&5
6889 1.76 pooka (exit $ac_status); }; }; then
6890 1.76 pooka ac_cv_have_decl_be16enc=yes
6891 1.48 jmc else
6892 1.76 pooka echo "$as_me: failed program was:" >&5
6893 1.76 pooka cat conftest.$ac_ext >&5
6894 1.76 pooka ac_cv_have_decl_be16enc=no
6895 1.48 jmc fi
6896 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6897 1.48 jmc fi
6898 1.81 christos echo "$as_me:6898: result: $ac_cv_have_decl_be16enc" >&5
6899 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be16enc" >&6
6900 1.76 pooka if test $ac_cv_have_decl_be16enc = yes; then
6901 1.61 christos
6902 1.76 pooka cat >>confdefs.h <<EOF
6903 1.76 pooka #define HAVE_DECL_BE16ENC 1
6904 1.76 pooka EOF
6905 1.53 dogcow
6906 1.76 pooka else
6907 1.76 pooka cat >>confdefs.h <<EOF
6908 1.76 pooka #define HAVE_DECL_BE16ENC 0
6909 1.76 pooka EOF
6910 1.48 jmc
6911 1.76 pooka fi
6912 1.81 christos echo "$as_me:6912: checking whether le16enc is declared" >&5
6913 1.76 pooka echo $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6
6914 1.76 pooka if test "${ac_cv_have_decl_le16enc+set}" = set; then
6915 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6916 1.48 jmc else
6917 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6918 1.81 christos #line 6918 "configure"
6919 1.76 pooka #include "confdefs.h"
6920 1.76 pooka #include <sys/endian.h>
6921 1.53 dogcow
6922 1.76 pooka int
6923 1.76 pooka main ()
6924 1.76 pooka {
6925 1.76 pooka #ifndef le16enc
6926 1.76 pooka char *p = (char *) le16enc;
6927 1.53 dogcow #endif
6928 1.53 dogcow
6929 1.76 pooka ;
6930 1.76 pooka return 0;
6931 1.76 pooka }
6932 1.53 dogcow _ACEOF
6933 1.76 pooka rm -f conftest.$ac_objext
6934 1.81 christos if { (eval echo "$as_me:6934: \"$ac_compile\"") >&5
6935 1.76 pooka (eval $ac_compile) 2>&5
6936 1.76 pooka ac_status=$?
6937 1.81 christos echo "$as_me:6937: \$? = $ac_status" >&5
6938 1.76 pooka (exit $ac_status); } &&
6939 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6940 1.81 christos { (eval echo "$as_me:6940: \"$ac_try\"") >&5
6941 1.76 pooka (eval $ac_try) 2>&5
6942 1.76 pooka ac_status=$?
6943 1.81 christos echo "$as_me:6943: \$? = $ac_status" >&5
6944 1.76 pooka (exit $ac_status); }; }; then
6945 1.76 pooka ac_cv_have_decl_le16enc=yes
6946 1.53 dogcow else
6947 1.76 pooka echo "$as_me: failed program was:" >&5
6948 1.76 pooka cat conftest.$ac_ext >&5
6949 1.76 pooka ac_cv_have_decl_le16enc=no
6950 1.53 dogcow fi
6951 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
6952 1.53 dogcow fi
6953 1.81 christos echo "$as_me:6953: result: $ac_cv_have_decl_le16enc" >&5
6954 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le16enc" >&6
6955 1.76 pooka if test $ac_cv_have_decl_le16enc = yes; then
6956 1.61 christos
6957 1.76 pooka cat >>confdefs.h <<EOF
6958 1.76 pooka #define HAVE_DECL_LE16ENC 1
6959 1.76 pooka EOF
6960 1.53 dogcow
6961 1.76 pooka else
6962 1.76 pooka cat >>confdefs.h <<EOF
6963 1.76 pooka #define HAVE_DECL_LE16ENC 0
6964 1.76 pooka EOF
6965 1.61 christos
6966 1.63 apb fi
6967 1.81 christos echo "$as_me:6967: checking whether be16dec is declared" >&5
6968 1.76 pooka echo $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6
6969 1.76 pooka if test "${ac_cv_have_decl_be16dec+set}" = set; then
6970 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
6971 1.76 pooka else
6972 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
6973 1.81 christos #line 6973 "configure"
6974 1.76 pooka #include "confdefs.h"
6975 1.76 pooka #include <sys/endian.h>
6976 1.53 dogcow
6977 1.74 christos int
6978 1.76 pooka main ()
6979 1.74 christos {
6980 1.76 pooka #ifndef be16dec
6981 1.76 pooka char *p = (char *) be16dec;
6982 1.76 pooka #endif
6983 1.53 dogcow
6984 1.76 pooka ;
6985 1.76 pooka return 0;
6986 1.53 dogcow }
6987 1.53 dogcow _ACEOF
6988 1.76 pooka rm -f conftest.$ac_objext
6989 1.81 christos if { (eval echo "$as_me:6989: \"$ac_compile\"") >&5
6990 1.76 pooka (eval $ac_compile) 2>&5
6991 1.76 pooka ac_status=$?
6992 1.81 christos echo "$as_me:6992: \$? = $ac_status" >&5
6993 1.76 pooka (exit $ac_status); } &&
6994 1.76 pooka { ac_try='test -s conftest.$ac_objext'
6995 1.81 christos { (eval echo "$as_me:6995: \"$ac_try\"") >&5
6996 1.76 pooka (eval $ac_try) 2>&5
6997 1.76 pooka ac_status=$?
6998 1.81 christos echo "$as_me:6998: \$? = $ac_status" >&5
6999 1.76 pooka (exit $ac_status); }; }; then
7000 1.76 pooka ac_cv_have_decl_be16dec=yes
7001 1.53 dogcow else
7002 1.76 pooka echo "$as_me: failed program was:" >&5
7003 1.76 pooka cat conftest.$ac_ext >&5
7004 1.76 pooka ac_cv_have_decl_be16dec=no
7005 1.53 dogcow fi
7006 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7007 1.74 christos fi
7008 1.81 christos echo "$as_me:7008: result: $ac_cv_have_decl_be16dec" >&5
7009 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be16dec" >&6
7010 1.76 pooka if test $ac_cv_have_decl_be16dec = yes; then
7011 1.53 dogcow
7012 1.76 pooka cat >>confdefs.h <<EOF
7013 1.76 pooka #define HAVE_DECL_BE16DEC 1
7014 1.76 pooka EOF
7015 1.53 dogcow
7016 1.76 pooka else
7017 1.76 pooka cat >>confdefs.h <<EOF
7018 1.76 pooka #define HAVE_DECL_BE16DEC 0
7019 1.76 pooka EOF
7020 1.53 dogcow
7021 1.53 dogcow fi
7022 1.81 christos echo "$as_me:7022: checking whether le16dec is declared" >&5
7023 1.76 pooka echo $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6
7024 1.76 pooka if test "${ac_cv_have_decl_le16dec+set}" = set; then
7025 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7026 1.76 pooka else
7027 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7028 1.81 christos #line 7028 "configure"
7029 1.76 pooka #include "confdefs.h"
7030 1.76 pooka #include <sys/endian.h>
7031 1.74 christos
7032 1.76 pooka int
7033 1.76 pooka main ()
7034 1.76 pooka {
7035 1.76 pooka #ifndef le16dec
7036 1.76 pooka char *p = (char *) le16dec;
7037 1.76 pooka #endif
7038 1.61 christos
7039 1.76 pooka ;
7040 1.76 pooka return 0;
7041 1.76 pooka }
7042 1.76 pooka _ACEOF
7043 1.76 pooka rm -f conftest.$ac_objext
7044 1.81 christos if { (eval echo "$as_me:7044: \"$ac_compile\"") >&5
7045 1.76 pooka (eval $ac_compile) 2>&5
7046 1.76 pooka ac_status=$?
7047 1.81 christos echo "$as_me:7047: \$? = $ac_status" >&5
7048 1.76 pooka (exit $ac_status); } &&
7049 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7050 1.81 christos { (eval echo "$as_me:7050: \"$ac_try\"") >&5
7051 1.76 pooka (eval $ac_try) 2>&5
7052 1.76 pooka ac_status=$?
7053 1.81 christos echo "$as_me:7053: \$? = $ac_status" >&5
7054 1.76 pooka (exit $ac_status); }; }; then
7055 1.76 pooka ac_cv_have_decl_le16dec=yes
7056 1.53 dogcow else
7057 1.76 pooka echo "$as_me: failed program was:" >&5
7058 1.76 pooka cat conftest.$ac_ext >&5
7059 1.76 pooka ac_cv_have_decl_le16dec=no
7060 1.53 dogcow fi
7061 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7062 1.76 pooka fi
7063 1.81 christos echo "$as_me:7063: result: $ac_cv_have_decl_le16dec" >&5
7064 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le16dec" >&6
7065 1.76 pooka if test $ac_cv_have_decl_le16dec = yes; then
7066 1.53 dogcow
7067 1.76 pooka cat >>confdefs.h <<EOF
7068 1.76 pooka #define HAVE_DECL_LE16DEC 1
7069 1.76 pooka EOF
7070 1.53 dogcow
7071 1.53 dogcow else
7072 1.76 pooka cat >>confdefs.h <<EOF
7073 1.76 pooka #define HAVE_DECL_LE16DEC 0
7074 1.76 pooka EOF
7075 1.76 pooka
7076 1.53 dogcow fi
7077 1.81 christos echo "$as_me:7077: checking whether be32enc is declared" >&5
7078 1.76 pooka echo $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6
7079 1.76 pooka if test "${ac_cv_have_decl_be32enc+set}" = set; then
7080 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7081 1.76 pooka else
7082 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7083 1.81 christos #line 7083 "configure"
7084 1.76 pooka #include "confdefs.h"
7085 1.76 pooka #include <sys/endian.h>
7086 1.76 pooka
7087 1.76 pooka int
7088 1.76 pooka main ()
7089 1.76 pooka {
7090 1.76 pooka #ifndef be32enc
7091 1.76 pooka char *p = (char *) be32enc;
7092 1.76 pooka #endif
7093 1.61 christos
7094 1.76 pooka ;
7095 1.76 pooka return 0;
7096 1.76 pooka }
7097 1.74 christos _ACEOF
7098 1.76 pooka rm -f conftest.$ac_objext
7099 1.81 christos if { (eval echo "$as_me:7099: \"$ac_compile\"") >&5
7100 1.76 pooka (eval $ac_compile) 2>&5
7101 1.76 pooka ac_status=$?
7102 1.81 christos echo "$as_me:7102: \$? = $ac_status" >&5
7103 1.76 pooka (exit $ac_status); } &&
7104 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7105 1.81 christos { (eval echo "$as_me:7105: \"$ac_try\"") >&5
7106 1.76 pooka (eval $ac_try) 2>&5
7107 1.76 pooka ac_status=$?
7108 1.81 christos echo "$as_me:7108: \$? = $ac_status" >&5
7109 1.76 pooka (exit $ac_status); }; }; then
7110 1.76 pooka ac_cv_have_decl_be32enc=yes
7111 1.53 dogcow else
7112 1.76 pooka echo "$as_me: failed program was:" >&5
7113 1.76 pooka cat conftest.$ac_ext >&5
7114 1.76 pooka ac_cv_have_decl_be32enc=no
7115 1.76 pooka fi
7116 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7117 1.53 dogcow fi
7118 1.81 christos echo "$as_me:7118: result: $ac_cv_have_decl_be32enc" >&5
7119 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be32enc" >&6
7120 1.76 pooka if test $ac_cv_have_decl_be32enc = yes; then
7121 1.53 dogcow
7122 1.76 pooka cat >>confdefs.h <<EOF
7123 1.76 pooka #define HAVE_DECL_BE32ENC 1
7124 1.76 pooka EOF
7125 1.61 christos
7126 1.76 pooka else
7127 1.76 pooka cat >>confdefs.h <<EOF
7128 1.76 pooka #define HAVE_DECL_BE32ENC 0
7129 1.76 pooka EOF
7130 1.53 dogcow
7131 1.76 pooka fi
7132 1.81 christos echo "$as_me:7132: checking whether le32enc is declared" >&5
7133 1.76 pooka echo $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6
7134 1.76 pooka if test "${ac_cv_have_decl_le32enc+set}" = set; then
7135 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7136 1.53 dogcow else
7137 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7138 1.81 christos #line 7138 "configure"
7139 1.76 pooka #include "confdefs.h"
7140 1.76 pooka #include <sys/endian.h>
7141 1.76 pooka
7142 1.76 pooka int
7143 1.76 pooka main ()
7144 1.76 pooka {
7145 1.76 pooka #ifndef le32enc
7146 1.76 pooka char *p = (char *) le32enc;
7147 1.76 pooka #endif
7148 1.53 dogcow
7149 1.76 pooka ;
7150 1.76 pooka return 0;
7151 1.76 pooka }
7152 1.74 christos _ACEOF
7153 1.76 pooka rm -f conftest.$ac_objext
7154 1.81 christos if { (eval echo "$as_me:7154: \"$ac_compile\"") >&5
7155 1.76 pooka (eval $ac_compile) 2>&5
7156 1.76 pooka ac_status=$?
7157 1.81 christos echo "$as_me:7157: \$? = $ac_status" >&5
7158 1.76 pooka (exit $ac_status); } &&
7159 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7160 1.81 christos { (eval echo "$as_me:7160: \"$ac_try\"") >&5
7161 1.76 pooka (eval $ac_try) 2>&5
7162 1.76 pooka ac_status=$?
7163 1.81 christos echo "$as_me:7163: \$? = $ac_status" >&5
7164 1.76 pooka (exit $ac_status); }; }; then
7165 1.76 pooka ac_cv_have_decl_le32enc=yes
7166 1.53 dogcow else
7167 1.76 pooka echo "$as_me: failed program was:" >&5
7168 1.76 pooka cat conftest.$ac_ext >&5
7169 1.76 pooka ac_cv_have_decl_le32enc=no
7170 1.76 pooka fi
7171 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7172 1.53 dogcow fi
7173 1.81 christos echo "$as_me:7173: result: $ac_cv_have_decl_le32enc" >&5
7174 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le32enc" >&6
7175 1.76 pooka if test $ac_cv_have_decl_le32enc = yes; then
7176 1.61 christos
7177 1.76 pooka cat >>confdefs.h <<EOF
7178 1.76 pooka #define HAVE_DECL_LE32ENC 1
7179 1.76 pooka EOF
7180 1.53 dogcow
7181 1.53 dogcow else
7182 1.76 pooka cat >>confdefs.h <<EOF
7183 1.76 pooka #define HAVE_DECL_LE32ENC 0
7184 1.76 pooka EOF
7185 1.76 pooka
7186 1.53 dogcow fi
7187 1.81 christos echo "$as_me:7187: checking whether be32dec is declared" >&5
7188 1.76 pooka echo $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6
7189 1.76 pooka if test "${ac_cv_have_decl_be32dec+set}" = set; then
7190 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7191 1.76 pooka else
7192 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7193 1.81 christos #line 7193 "configure"
7194 1.76 pooka #include "confdefs.h"
7195 1.76 pooka #include <sys/endian.h>
7196 1.76 pooka
7197 1.76 pooka int
7198 1.76 pooka main ()
7199 1.76 pooka {
7200 1.76 pooka #ifndef be32dec
7201 1.76 pooka char *p = (char *) be32dec;
7202 1.76 pooka #endif
7203 1.53 dogcow
7204 1.76 pooka ;
7205 1.76 pooka return 0;
7206 1.76 pooka }
7207 1.74 christos _ACEOF
7208 1.76 pooka rm -f conftest.$ac_objext
7209 1.81 christos if { (eval echo "$as_me:7209: \"$ac_compile\"") >&5
7210 1.76 pooka (eval $ac_compile) 2>&5
7211 1.76 pooka ac_status=$?
7212 1.81 christos echo "$as_me:7212: \$? = $ac_status" >&5
7213 1.76 pooka (exit $ac_status); } &&
7214 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7215 1.81 christos { (eval echo "$as_me:7215: \"$ac_try\"") >&5
7216 1.76 pooka (eval $ac_try) 2>&5
7217 1.76 pooka ac_status=$?
7218 1.81 christos echo "$as_me:7218: \$? = $ac_status" >&5
7219 1.76 pooka (exit $ac_status); }; }; then
7220 1.76 pooka ac_cv_have_decl_be32dec=yes
7221 1.53 dogcow else
7222 1.76 pooka echo "$as_me: failed program was:" >&5
7223 1.76 pooka cat conftest.$ac_ext >&5
7224 1.76 pooka ac_cv_have_decl_be32dec=no
7225 1.76 pooka fi
7226 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7227 1.53 dogcow fi
7228 1.81 christos echo "$as_me:7228: result: $ac_cv_have_decl_be32dec" >&5
7229 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be32dec" >&6
7230 1.76 pooka if test $ac_cv_have_decl_be32dec = yes; then
7231 1.61 christos
7232 1.76 pooka cat >>confdefs.h <<EOF
7233 1.76 pooka #define HAVE_DECL_BE32DEC 1
7234 1.76 pooka EOF
7235 1.53 dogcow
7236 1.53 dogcow else
7237 1.76 pooka cat >>confdefs.h <<EOF
7238 1.76 pooka #define HAVE_DECL_BE32DEC 0
7239 1.76 pooka EOF
7240 1.76 pooka
7241 1.74 christos fi
7242 1.81 christos echo "$as_me:7242: checking whether le32dec is declared" >&5
7243 1.76 pooka echo $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6
7244 1.76 pooka if test "${ac_cv_have_decl_le32dec+set}" = set; then
7245 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7246 1.76 pooka else
7247 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7248 1.81 christos #line 7248 "configure"
7249 1.76 pooka #include "confdefs.h"
7250 1.76 pooka #include <sys/endian.h>
7251 1.76 pooka
7252 1.76 pooka int
7253 1.76 pooka main ()
7254 1.76 pooka {
7255 1.76 pooka #ifndef le32dec
7256 1.76 pooka char *p = (char *) le32dec;
7257 1.76 pooka #endif
7258 1.53 dogcow
7259 1.76 pooka ;
7260 1.76 pooka return 0;
7261 1.76 pooka }
7262 1.74 christos _ACEOF
7263 1.76 pooka rm -f conftest.$ac_objext
7264 1.81 christos if { (eval echo "$as_me:7264: \"$ac_compile\"") >&5
7265 1.76 pooka (eval $ac_compile) 2>&5
7266 1.76 pooka ac_status=$?
7267 1.81 christos echo "$as_me:7267: \$? = $ac_status" >&5
7268 1.76 pooka (exit $ac_status); } &&
7269 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7270 1.81 christos { (eval echo "$as_me:7270: \"$ac_try\"") >&5
7271 1.76 pooka (eval $ac_try) 2>&5
7272 1.76 pooka ac_status=$?
7273 1.81 christos echo "$as_me:7273: \$? = $ac_status" >&5
7274 1.76 pooka (exit $ac_status); }; }; then
7275 1.76 pooka ac_cv_have_decl_le32dec=yes
7276 1.53 dogcow else
7277 1.76 pooka echo "$as_me: failed program was:" >&5
7278 1.76 pooka cat conftest.$ac_ext >&5
7279 1.76 pooka ac_cv_have_decl_le32dec=no
7280 1.76 pooka fi
7281 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7282 1.53 dogcow fi
7283 1.81 christos echo "$as_me:7283: result: $ac_cv_have_decl_le32dec" >&5
7284 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le32dec" >&6
7285 1.76 pooka if test $ac_cv_have_decl_le32dec = yes; then
7286 1.61 christos
7287 1.76 pooka cat >>confdefs.h <<EOF
7288 1.76 pooka #define HAVE_DECL_LE32DEC 1
7289 1.76 pooka EOF
7290 1.53 dogcow
7291 1.53 dogcow else
7292 1.76 pooka cat >>confdefs.h <<EOF
7293 1.76 pooka #define HAVE_DECL_LE32DEC 0
7294 1.76 pooka EOF
7295 1.76 pooka
7296 1.53 dogcow fi
7297 1.81 christos echo "$as_me:7297: checking whether be64enc is declared" >&5
7298 1.76 pooka echo $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6
7299 1.76 pooka if test "${ac_cv_have_decl_be64enc+set}" = set; then
7300 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7301 1.76 pooka else
7302 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7303 1.81 christos #line 7303 "configure"
7304 1.76 pooka #include "confdefs.h"
7305 1.76 pooka #include <sys/endian.h>
7306 1.76 pooka
7307 1.76 pooka int
7308 1.76 pooka main ()
7309 1.76 pooka {
7310 1.76 pooka #ifndef be64enc
7311 1.76 pooka char *p = (char *) be64enc;
7312 1.76 pooka #endif
7313 1.53 dogcow
7314 1.76 pooka ;
7315 1.76 pooka return 0;
7316 1.76 pooka }
7317 1.74 christos _ACEOF
7318 1.76 pooka rm -f conftest.$ac_objext
7319 1.81 christos if { (eval echo "$as_me:7319: \"$ac_compile\"") >&5
7320 1.76 pooka (eval $ac_compile) 2>&5
7321 1.76 pooka ac_status=$?
7322 1.81 christos echo "$as_me:7322: \$? = $ac_status" >&5
7323 1.76 pooka (exit $ac_status); } &&
7324 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7325 1.81 christos { (eval echo "$as_me:7325: \"$ac_try\"") >&5
7326 1.76 pooka (eval $ac_try) 2>&5
7327 1.76 pooka ac_status=$?
7328 1.81 christos echo "$as_me:7328: \$? = $ac_status" >&5
7329 1.76 pooka (exit $ac_status); }; }; then
7330 1.76 pooka ac_cv_have_decl_be64enc=yes
7331 1.53 dogcow else
7332 1.76 pooka echo "$as_me: failed program was:" >&5
7333 1.76 pooka cat conftest.$ac_ext >&5
7334 1.76 pooka ac_cv_have_decl_be64enc=no
7335 1.53 dogcow fi
7336 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7337 1.76 pooka fi
7338 1.81 christos echo "$as_me:7338: result: $ac_cv_have_decl_be64enc" >&5
7339 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be64enc" >&6
7340 1.76 pooka if test $ac_cv_have_decl_be64enc = yes; then
7341 1.61 christos
7342 1.76 pooka cat >>confdefs.h <<EOF
7343 1.76 pooka #define HAVE_DECL_BE64ENC 1
7344 1.76 pooka EOF
7345 1.53 dogcow
7346 1.53 dogcow else
7347 1.76 pooka cat >>confdefs.h <<EOF
7348 1.76 pooka #define HAVE_DECL_BE64ENC 0
7349 1.76 pooka EOF
7350 1.76 pooka
7351 1.74 christos fi
7352 1.81 christos echo "$as_me:7352: checking whether le64enc is declared" >&5
7353 1.76 pooka echo $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6
7354 1.76 pooka if test "${ac_cv_have_decl_le64enc+set}" = set; then
7355 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7356 1.74 christos else
7357 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7358 1.81 christos #line 7358 "configure"
7359 1.76 pooka #include "confdefs.h"
7360 1.76 pooka #include <sys/endian.h>
7361 1.74 christos
7362 1.76 pooka int
7363 1.76 pooka main ()
7364 1.76 pooka {
7365 1.76 pooka #ifndef le64enc
7366 1.76 pooka char *p = (char *) le64enc;
7367 1.76 pooka #endif
7368 1.53 dogcow
7369 1.76 pooka ;
7370 1.76 pooka return 0;
7371 1.76 pooka }
7372 1.74 christos _ACEOF
7373 1.76 pooka rm -f conftest.$ac_objext
7374 1.81 christos if { (eval echo "$as_me:7374: \"$ac_compile\"") >&5
7375 1.76 pooka (eval $ac_compile) 2>&5
7376 1.76 pooka ac_status=$?
7377 1.81 christos echo "$as_me:7377: \$? = $ac_status" >&5
7378 1.76 pooka (exit $ac_status); } &&
7379 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7380 1.81 christos { (eval echo "$as_me:7380: \"$ac_try\"") >&5
7381 1.76 pooka (eval $ac_try) 2>&5
7382 1.76 pooka ac_status=$?
7383 1.81 christos echo "$as_me:7383: \$? = $ac_status" >&5
7384 1.76 pooka (exit $ac_status); }; }; then
7385 1.76 pooka ac_cv_have_decl_le64enc=yes
7386 1.74 christos else
7387 1.76 pooka echo "$as_me: failed program was:" >&5
7388 1.76 pooka cat conftest.$ac_ext >&5
7389 1.76 pooka ac_cv_have_decl_le64enc=no
7390 1.74 christos fi
7391 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7392 1.53 dogcow fi
7393 1.81 christos echo "$as_me:7393: result: $ac_cv_have_decl_le64enc" >&5
7394 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le64enc" >&6
7395 1.76 pooka if test $ac_cv_have_decl_le64enc = yes; then
7396 1.74 christos
7397 1.76 pooka cat >>confdefs.h <<EOF
7398 1.76 pooka #define HAVE_DECL_LE64ENC 1
7399 1.76 pooka EOF
7400 1.61 christos
7401 1.74 christos else
7402 1.76 pooka cat >>confdefs.h <<EOF
7403 1.76 pooka #define HAVE_DECL_LE64ENC 0
7404 1.76 pooka EOF
7405 1.53 dogcow
7406 1.74 christos fi
7407 1.81 christos echo "$as_me:7407: checking whether be64dec is declared" >&5
7408 1.76 pooka echo $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6
7409 1.76 pooka if test "${ac_cv_have_decl_be64dec+set}" = set; then
7410 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7411 1.74 christos else
7412 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7413 1.81 christos #line 7413 "configure"
7414 1.76 pooka #include "confdefs.h"
7415 1.76 pooka #include <sys/endian.h>
7416 1.74 christos
7417 1.76 pooka int
7418 1.76 pooka main ()
7419 1.76 pooka {
7420 1.76 pooka #ifndef be64dec
7421 1.76 pooka char *p = (char *) be64dec;
7422 1.76 pooka #endif
7423 1.54 wiz
7424 1.76 pooka ;
7425 1.76 pooka return 0;
7426 1.76 pooka }
7427 1.74 christos _ACEOF
7428 1.76 pooka rm -f conftest.$ac_objext
7429 1.81 christos if { (eval echo "$as_me:7429: \"$ac_compile\"") >&5
7430 1.76 pooka (eval $ac_compile) 2>&5
7431 1.76 pooka ac_status=$?
7432 1.81 christos echo "$as_me:7432: \$? = $ac_status" >&5
7433 1.76 pooka (exit $ac_status); } &&
7434 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7435 1.81 christos { (eval echo "$as_me:7435: \"$ac_try\"") >&5
7436 1.76 pooka (eval $ac_try) 2>&5
7437 1.76 pooka ac_status=$?
7438 1.81 christos echo "$as_me:7438: \$? = $ac_status" >&5
7439 1.76 pooka (exit $ac_status); }; }; then
7440 1.76 pooka ac_cv_have_decl_be64dec=yes
7441 1.74 christos else
7442 1.76 pooka echo "$as_me: failed program was:" >&5
7443 1.76 pooka cat conftest.$ac_ext >&5
7444 1.76 pooka ac_cv_have_decl_be64dec=no
7445 1.74 christos fi
7446 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7447 1.54 wiz fi
7448 1.81 christos echo "$as_me:7448: result: $ac_cv_have_decl_be64dec" >&5
7449 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_be64dec" >&6
7450 1.76 pooka if test $ac_cv_have_decl_be64dec = yes; then
7451 1.61 christos
7452 1.76 pooka cat >>confdefs.h <<EOF
7453 1.76 pooka #define HAVE_DECL_BE64DEC 1
7454 1.76 pooka EOF
7455 1.74 christos
7456 1.76 pooka else
7457 1.76 pooka cat >>confdefs.h <<EOF
7458 1.76 pooka #define HAVE_DECL_BE64DEC 0
7459 1.76 pooka EOF
7460 1.53 dogcow
7461 1.76 pooka fi
7462 1.81 christos echo "$as_me:7462: checking whether le64dec is declared" >&5
7463 1.76 pooka echo $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6
7464 1.76 pooka if test "${ac_cv_have_decl_le64dec+set}" = set; then
7465 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7466 1.54 wiz else
7467 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7468 1.81 christos #line 7468 "configure"
7469 1.76 pooka #include "confdefs.h"
7470 1.76 pooka #include <sys/endian.h>
7471 1.76 pooka
7472 1.76 pooka int
7473 1.76 pooka main ()
7474 1.76 pooka {
7475 1.76 pooka #ifndef le64dec
7476 1.76 pooka char *p = (char *) le64dec;
7477 1.76 pooka #endif
7478 1.53 dogcow
7479 1.76 pooka ;
7480 1.76 pooka return 0;
7481 1.76 pooka }
7482 1.74 christos _ACEOF
7483 1.76 pooka rm -f conftest.$ac_objext
7484 1.81 christos if { (eval echo "$as_me:7484: \"$ac_compile\"") >&5
7485 1.76 pooka (eval $ac_compile) 2>&5
7486 1.76 pooka ac_status=$?
7487 1.81 christos echo "$as_me:7487: \$? = $ac_status" >&5
7488 1.76 pooka (exit $ac_status); } &&
7489 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7490 1.81 christos { (eval echo "$as_me:7490: \"$ac_try\"") >&5
7491 1.76 pooka (eval $ac_try) 2>&5
7492 1.76 pooka ac_status=$?
7493 1.81 christos echo "$as_me:7493: \$? = $ac_status" >&5
7494 1.76 pooka (exit $ac_status); }; }; then
7495 1.76 pooka ac_cv_have_decl_le64dec=yes
7496 1.74 christos else
7497 1.76 pooka echo "$as_me: failed program was:" >&5
7498 1.76 pooka cat conftest.$ac_ext >&5
7499 1.76 pooka ac_cv_have_decl_le64dec=no
7500 1.54 wiz fi
7501 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7502 1.54 wiz fi
7503 1.81 christos echo "$as_me:7503: result: $ac_cv_have_decl_le64dec" >&5
7504 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_le64dec" >&6
7505 1.76 pooka if test $ac_cv_have_decl_le64dec = yes; then
7506 1.61 christos
7507 1.76 pooka cat >>confdefs.h <<EOF
7508 1.76 pooka #define HAVE_DECL_LE64DEC 1
7509 1.76 pooka EOF
7510 1.74 christos
7511 1.76 pooka else
7512 1.76 pooka cat >>confdefs.h <<EOF
7513 1.76 pooka #define HAVE_DECL_LE64DEC 0
7514 1.76 pooka EOF
7515 1.54 wiz
7516 1.74 christos fi
7517 1.54 wiz
7518 1.81 christos echo "$as_me:7518: checking whether fstatvfs is declared" >&5
7519 1.76 pooka echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6
7520 1.76 pooka if test "${ac_cv_have_decl_fstatvfs+set}" = set; then
7521 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7522 1.74 christos else
7523 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7524 1.81 christos #line 7524 "configure"
7525 1.76 pooka #include "confdefs.h"
7526 1.76 pooka #include <sys/statvfs.h>
7527 1.76 pooka
7528 1.76 pooka int
7529 1.76 pooka main ()
7530 1.76 pooka {
7531 1.76 pooka #ifndef fstatvfs
7532 1.76 pooka char *p = (char *) fstatvfs;
7533 1.76 pooka #endif
7534 1.74 christos
7535 1.76 pooka ;
7536 1.76 pooka return 0;
7537 1.76 pooka }
7538 1.74 christos _ACEOF
7539 1.76 pooka rm -f conftest.$ac_objext
7540 1.81 christos if { (eval echo "$as_me:7540: \"$ac_compile\"") >&5
7541 1.76 pooka (eval $ac_compile) 2>&5
7542 1.76 pooka ac_status=$?
7543 1.81 christos echo "$as_me:7543: \$? = $ac_status" >&5
7544 1.76 pooka (exit $ac_status); } &&
7545 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7546 1.81 christos { (eval echo "$as_me:7546: \"$ac_try\"") >&5
7547 1.76 pooka (eval $ac_try) 2>&5
7548 1.76 pooka ac_status=$?
7549 1.81 christos echo "$as_me:7549: \$? = $ac_status" >&5
7550 1.76 pooka (exit $ac_status); }; }; then
7551 1.76 pooka ac_cv_have_decl_fstatvfs=yes
7552 1.54 wiz else
7553 1.76 pooka echo "$as_me: failed program was:" >&5
7554 1.76 pooka cat conftest.$ac_ext >&5
7555 1.76 pooka ac_cv_have_decl_fstatvfs=no
7556 1.74 christos fi
7557 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7558 1.74 christos fi
7559 1.81 christos echo "$as_me:7559: result: $ac_cv_have_decl_fstatvfs" >&5
7560 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6
7561 1.76 pooka if test $ac_cv_have_decl_fstatvfs = yes; then
7562 1.54 wiz
7563 1.76 pooka cat >>confdefs.h <<EOF
7564 1.76 pooka #define HAVE_DECL_FSTATVFS 1
7565 1.76 pooka EOF
7566 1.74 christos
7567 1.74 christos else
7568 1.76 pooka cat >>confdefs.h <<EOF
7569 1.76 pooka #define HAVE_DECL_FSTATVFS 0
7570 1.76 pooka EOF
7571 1.61 christos
7572 1.74 christos fi
7573 1.54 wiz
7574 1.81 christos echo "$as_me:7574: checking whether setgroupent is declared" >&5
7575 1.76 pooka echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
7576 1.76 pooka if test "${ac_cv_have_decl_setgroupent+set}" = set; then
7577 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7578 1.54 wiz else
7579 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7580 1.81 christos #line 7580 "configure"
7581 1.76 pooka #include "confdefs.h"
7582 1.54 wiz
7583 1.76 pooka #include <sys/types.h>
7584 1.76 pooka #include <grp.h>
7585 1.76 pooka #include <pwd.h>
7586 1.45 jmc
7587 1.76 pooka int
7588 1.76 pooka main ()
7589 1.76 pooka {
7590 1.76 pooka #ifndef setgroupent
7591 1.76 pooka char *p = (char *) setgroupent;
7592 1.76 pooka #endif
7593 1.53 dogcow
7594 1.76 pooka ;
7595 1.76 pooka return 0;
7596 1.76 pooka }
7597 1.74 christos _ACEOF
7598 1.76 pooka rm -f conftest.$ac_objext
7599 1.81 christos if { (eval echo "$as_me:7599: \"$ac_compile\"") >&5
7600 1.76 pooka (eval $ac_compile) 2>&5
7601 1.76 pooka ac_status=$?
7602 1.81 christos echo "$as_me:7602: \$? = $ac_status" >&5
7603 1.76 pooka (exit $ac_status); } &&
7604 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7605 1.81 christos { (eval echo "$as_me:7605: \"$ac_try\"") >&5
7606 1.76 pooka (eval $ac_try) 2>&5
7607 1.76 pooka ac_status=$?
7608 1.81 christos echo "$as_me:7608: \$? = $ac_status" >&5
7609 1.76 pooka (exit $ac_status); }; }; then
7610 1.76 pooka ac_cv_have_decl_setgroupent=yes
7611 1.74 christos else
7612 1.76 pooka echo "$as_me: failed program was:" >&5
7613 1.76 pooka cat conftest.$ac_ext >&5
7614 1.76 pooka ac_cv_have_decl_setgroupent=no
7615 1.74 christos fi
7616 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7617 1.1 tv fi
7618 1.81 christos echo "$as_me:7618: result: $ac_cv_have_decl_setgroupent" >&5
7619 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
7620 1.76 pooka if test $ac_cv_have_decl_setgroupent = yes; then
7621 1.54 wiz
7622 1.76 pooka cat >>confdefs.h <<EOF
7623 1.76 pooka #define HAVE_DECL_SETGROUPENT 1
7624 1.76 pooka EOF
7625 1.74 christos
7626 1.76 pooka else
7627 1.76 pooka cat >>confdefs.h <<EOF
7628 1.76 pooka #define HAVE_DECL_SETGROUPENT 0
7629 1.76 pooka EOF
7630 1.54 wiz
7631 1.76 pooka fi
7632 1.81 christos echo "$as_me:7632: checking whether setpassent is declared" >&5
7633 1.76 pooka echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
7634 1.76 pooka if test "${ac_cv_have_decl_setpassent+set}" = set; then
7635 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7636 1.54 wiz else
7637 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7638 1.81 christos #line 7638 "configure"
7639 1.76 pooka #include "confdefs.h"
7640 1.54 wiz
7641 1.33 thorpej #include <sys/types.h>
7642 1.8 tv #include <grp.h>
7643 1.8 tv #include <pwd.h>
7644 1.8 tv
7645 1.76 pooka int
7646 1.76 pooka main ()
7647 1.76 pooka {
7648 1.76 pooka #ifndef setpassent
7649 1.76 pooka char *p = (char *) setpassent;
7650 1.76 pooka #endif
7651 1.76 pooka
7652 1.76 pooka ;
7653 1.76 pooka return 0;
7654 1.76 pooka }
7655 1.76 pooka _ACEOF
7656 1.76 pooka rm -f conftest.$ac_objext
7657 1.81 christos if { (eval echo "$as_me:7657: \"$ac_compile\"") >&5
7658 1.76 pooka (eval $ac_compile) 2>&5
7659 1.76 pooka ac_status=$?
7660 1.81 christos echo "$as_me:7660: \$? = $ac_status" >&5
7661 1.76 pooka (exit $ac_status); } &&
7662 1.76 pooka { ac_try='test -s conftest.$ac_objext'
7663 1.81 christos { (eval echo "$as_me:7663: \"$ac_try\"") >&5
7664 1.76 pooka (eval $ac_try) 2>&5
7665 1.76 pooka ac_status=$?
7666 1.81 christos echo "$as_me:7666: \$? = $ac_status" >&5
7667 1.76 pooka (exit $ac_status); }; }; then
7668 1.76 pooka ac_cv_have_decl_setpassent=yes
7669 1.8 tv else
7670 1.76 pooka echo "$as_me: failed program was:" >&5
7671 1.76 pooka cat conftest.$ac_ext >&5
7672 1.76 pooka ac_cv_have_decl_setpassent=no
7673 1.8 tv fi
7674 1.76 pooka rm -f conftest.$ac_objext conftest.$ac_ext
7675 1.76 pooka fi
7676 1.81 christos echo "$as_me:7676: result: $ac_cv_have_decl_setpassent" >&5
7677 1.76 pooka echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
7678 1.76 pooka if test $ac_cv_have_decl_setpassent = yes; then
7679 1.8 tv
7680 1.76 pooka cat >>confdefs.h <<EOF
7681 1.76 pooka #define HAVE_DECL_SETPASSENT 1
7682 1.76 pooka EOF
7683 1.8 tv
7684 1.8 tv else
7685 1.76 pooka cat >>confdefs.h <<EOF
7686 1.76 pooka #define HAVE_DECL_SETPASSENT 0
7687 1.76 pooka EOF
7688 1.76 pooka
7689 1.8 tv fi
7690 1.8 tv
7691 1.4 tv # regcomp() and regexec() are also names of functions in the old V8
7692 1.4 tv # regexp package. To avoid them, we need to find out who has regfree().
7693 1.4 tv
7694 1.81 christos echo "$as_me:7694: checking for regfree in -lregex" >&5
7695 1.76 pooka echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
7696 1.76 pooka if test "${ac_cv_lib_regex_regfree+set}" = set; then
7697 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7698 1.4 tv else
7699 1.4 tv ac_check_lib_save_LIBS=$LIBS
7700 1.4 tv LIBS="-lregex $LIBS"
7701 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7702 1.81 christos #line 7702 "configure"
7703 1.76 pooka #include "confdefs.h"
7704 1.4 tv
7705 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
7706 1.4 tv #ifdef __cplusplus
7707 1.4 tv extern "C"
7708 1.4 tv #endif
7709 1.76 pooka /* We use char because int might match the return type of a gcc2
7710 1.76 pooka builtin and then its argument prototype would still apply. */
7711 1.4 tv char regfree ();
7712 1.4 tv int
7713 1.4 tv main ()
7714 1.4 tv {
7715 1.76 pooka regfree ();
7716 1.4 tv ;
7717 1.4 tv return 0;
7718 1.4 tv }
7719 1.4 tv _ACEOF
7720 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
7721 1.81 christos if { (eval echo "$as_me:7721: \"$ac_link\"") >&5
7722 1.76 pooka (eval $ac_link) 2>&5
7723 1.76 pooka ac_status=$?
7724 1.81 christos echo "$as_me:7724: \$? = $ac_status" >&5
7725 1.76 pooka (exit $ac_status); } &&
7726 1.76 pooka { ac_try='test -s conftest$ac_exeext'
7727 1.81 christos { (eval echo "$as_me:7727: \"$ac_try\"") >&5
7728 1.76 pooka (eval $ac_try) 2>&5
7729 1.76 pooka ac_status=$?
7730 1.81 christos echo "$as_me:7730: \$? = $ac_status" >&5
7731 1.76 pooka (exit $ac_status); }; }; then
7732 1.4 tv ac_cv_lib_regex_regfree=yes
7733 1.4 tv else
7734 1.76 pooka echo "$as_me: failed program was:" >&5
7735 1.76 pooka cat conftest.$ac_ext >&5
7736 1.76 pooka ac_cv_lib_regex_regfree=no
7737 1.4 tv fi
7738 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7739 1.4 tv LIBS=$ac_check_lib_save_LIBS
7740 1.4 tv fi
7741 1.81 christos echo "$as_me:7741: result: $ac_cv_lib_regex_regfree" >&5
7742 1.76 pooka echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
7743 1.76 pooka if test $ac_cv_lib_regex_regfree = yes; then
7744 1.76 pooka cat >>confdefs.h <<EOF
7745 1.4 tv #define HAVE_LIBREGEX 1
7746 1.76 pooka EOF
7747 1.4 tv
7748 1.4 tv LIBS="-lregex $LIBS"
7749 1.4 tv
7750 1.4 tv fi
7751 1.4 tv
7752 1.81 christos echo "$as_me:7752: checking for library containing regfree" >&5
7753 1.76 pooka echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
7754 1.76 pooka if test "${ac_cv_search_regfree+set}" = set; then
7755 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7756 1.1 tv else
7757 1.1 tv ac_func_search_save_LIBS=$LIBS
7758 1.76 pooka ac_cv_search_regfree=no
7759 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7760 1.81 christos #line 7760 "configure"
7761 1.76 pooka #include "confdefs.h"
7762 1.1 tv
7763 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
7764 1.1 tv #ifdef __cplusplus
7765 1.1 tv extern "C"
7766 1.1 tv #endif
7767 1.76 pooka /* We use char because int might match the return type of a gcc2
7768 1.76 pooka builtin and then its argument prototype would still apply. */
7769 1.4 tv char regfree ();
7770 1.1 tv int
7771 1.1 tv main ()
7772 1.1 tv {
7773 1.76 pooka regfree ();
7774 1.1 tv ;
7775 1.1 tv return 0;
7776 1.1 tv }
7777 1.1 tv _ACEOF
7778 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
7779 1.81 christos if { (eval echo "$as_me:7779: \"$ac_link\"") >&5
7780 1.76 pooka (eval $ac_link) 2>&5
7781 1.76 pooka ac_status=$?
7782 1.81 christos echo "$as_me:7782: \$? = $ac_status" >&5
7783 1.76 pooka (exit $ac_status); } &&
7784 1.76 pooka { ac_try='test -s conftest$ac_exeext'
7785 1.81 christos { (eval echo "$as_me:7785: \"$ac_try\"") >&5
7786 1.76 pooka (eval $ac_try) 2>&5
7787 1.76 pooka ac_status=$?
7788 1.81 christos echo "$as_me:7788: \$? = $ac_status" >&5
7789 1.76 pooka (exit $ac_status); }; }; then
7790 1.76 pooka ac_cv_search_regfree="none required"
7791 1.76 pooka else
7792 1.76 pooka echo "$as_me: failed program was:" >&5
7793 1.76 pooka cat conftest.$ac_ext >&5
7794 1.76 pooka fi
7795 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7796 1.76 pooka if test "$ac_cv_search_regfree" = no; then
7797 1.76 pooka for ac_lib in rx posix; do
7798 1.66 tsutsui LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7799 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7800 1.81 christos #line 7800 "configure"
7801 1.76 pooka #include "confdefs.h"
7802 1.1 tv
7803 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
7804 1.76 pooka #ifdef __cplusplus
7805 1.76 pooka extern "C"
7806 1.76 pooka #endif
7807 1.76 pooka /* We use char because int might match the return type of a gcc2
7808 1.76 pooka builtin and then its argument prototype would still apply. */
7809 1.76 pooka char regfree ();
7810 1.76 pooka int
7811 1.76 pooka main ()
7812 1.76 pooka {
7813 1.76 pooka regfree ();
7814 1.76 pooka ;
7815 1.76 pooka return 0;
7816 1.76 pooka }
7817 1.76 pooka _ACEOF
7818 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
7819 1.81 christos if { (eval echo "$as_me:7819: \"$ac_link\"") >&5
7820 1.76 pooka (eval $ac_link) 2>&5
7821 1.76 pooka ac_status=$?
7822 1.81 christos echo "$as_me:7822: \$? = $ac_status" >&5
7823 1.76 pooka (exit $ac_status); } &&
7824 1.76 pooka { ac_try='test -s conftest$ac_exeext'
7825 1.81 christos { (eval echo "$as_me:7825: \"$ac_try\"") >&5
7826 1.76 pooka (eval $ac_try) 2>&5
7827 1.76 pooka ac_status=$?
7828 1.81 christos echo "$as_me:7828: \$? = $ac_status" >&5
7829 1.76 pooka (exit $ac_status); }; }; then
7830 1.76 pooka ac_cv_search_regfree="-l$ac_lib"
7831 1.76 pooka break
7832 1.66 tsutsui else
7833 1.76 pooka echo "$as_me: failed program was:" >&5
7834 1.76 pooka cat conftest.$ac_ext >&5
7835 1.76 pooka fi
7836 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7837 1.76 pooka done
7838 1.1 tv fi
7839 1.1 tv LIBS=$ac_func_search_save_LIBS
7840 1.1 tv fi
7841 1.81 christos echo "$as_me:7841: result: $ac_cv_search_regfree" >&5
7842 1.76 pooka echo "${ECHO_T}$ac_cv_search_regfree" >&6
7843 1.76 pooka if test "$ac_cv_search_regfree" != no; then
7844 1.76 pooka test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
7845 1.1 tv
7846 1.1 tv fi
7847 1.1 tv
7848 1.81 christos echo "$as_me:7848: checking for clock_gettime in -lrt" >&5
7849 1.78 jmcneill echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
7850 1.78 jmcneill if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
7851 1.78 jmcneill echo $ECHO_N "(cached) $ECHO_C" >&6
7852 1.78 jmcneill else
7853 1.78 jmcneill ac_check_lib_save_LIBS=$LIBS
7854 1.78 jmcneill LIBS="-lrt $LIBS"
7855 1.78 jmcneill cat >conftest.$ac_ext <<_ACEOF
7856 1.81 christos #line 7856 "configure"
7857 1.78 jmcneill #include "confdefs.h"
7858 1.78 jmcneill
7859 1.78 jmcneill /* Override any gcc2 internal prototype to avoid an error. */
7860 1.78 jmcneill #ifdef __cplusplus
7861 1.78 jmcneill extern "C"
7862 1.78 jmcneill #endif
7863 1.78 jmcneill /* We use char because int might match the return type of a gcc2
7864 1.78 jmcneill builtin and then its argument prototype would still apply. */
7865 1.78 jmcneill char clock_gettime ();
7866 1.78 jmcneill int
7867 1.78 jmcneill main ()
7868 1.78 jmcneill {
7869 1.78 jmcneill clock_gettime ();
7870 1.78 jmcneill ;
7871 1.78 jmcneill return 0;
7872 1.78 jmcneill }
7873 1.78 jmcneill _ACEOF
7874 1.78 jmcneill rm -f conftest.$ac_objext conftest$ac_exeext
7875 1.81 christos if { (eval echo "$as_me:7875: \"$ac_link\"") >&5
7876 1.78 jmcneill (eval $ac_link) 2>&5
7877 1.78 jmcneill ac_status=$?
7878 1.81 christos echo "$as_me:7878: \$? = $ac_status" >&5
7879 1.78 jmcneill (exit $ac_status); } &&
7880 1.78 jmcneill { ac_try='test -s conftest$ac_exeext'
7881 1.81 christos { (eval echo "$as_me:7881: \"$ac_try\"") >&5
7882 1.78 jmcneill (eval $ac_try) 2>&5
7883 1.78 jmcneill ac_status=$?
7884 1.81 christos echo "$as_me:7884: \$? = $ac_status" >&5
7885 1.78 jmcneill (exit $ac_status); }; }; then
7886 1.78 jmcneill ac_cv_lib_rt_clock_gettime=yes
7887 1.78 jmcneill else
7888 1.78 jmcneill echo "$as_me: failed program was:" >&5
7889 1.78 jmcneill cat conftest.$ac_ext >&5
7890 1.78 jmcneill ac_cv_lib_rt_clock_gettime=no
7891 1.78 jmcneill fi
7892 1.78 jmcneill rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7893 1.78 jmcneill LIBS=$ac_check_lib_save_LIBS
7894 1.78 jmcneill fi
7895 1.81 christos echo "$as_me:7895: result: $ac_cv_lib_rt_clock_gettime" >&5
7896 1.78 jmcneill echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
7897 1.78 jmcneill if test $ac_cv_lib_rt_clock_gettime = yes; then
7898 1.78 jmcneill cat >>confdefs.h <<EOF
7899 1.78 jmcneill #define HAVE_LIBRT 1
7900 1.78 jmcneill EOF
7901 1.78 jmcneill
7902 1.78 jmcneill LIBS="-lrt $LIBS"
7903 1.78 jmcneill
7904 1.78 jmcneill fi
7905 1.78 jmcneill
7906 1.76 pooka for ac_func in fparseln
7907 1.76 pooka do
7908 1.76 pooka as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7909 1.81 christos echo "$as_me:7909: checking for $ac_func" >&5
7910 1.76 pooka echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7911 1.76 pooka if eval "test \"\${$as_ac_var+set}\" = set"; then
7912 1.76 pooka echo $ECHO_N "(cached) $ECHO_C" >&6
7913 1.76 pooka else
7914 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7915 1.81 christos #line 7915 "configure"
7916 1.76 pooka #include "confdefs.h"
7917 1.76 pooka /* System header to define __stub macros and hopefully few prototypes,
7918 1.76 pooka which can conflict with char $ac_func (); below. */
7919 1.76 pooka #include <assert.h>
7920 1.76 pooka /* Override any gcc2 internal prototype to avoid an error. */
7921 1.76 pooka #ifdef __cplusplus
7922 1.76 pooka extern "C"
7923 1.76 pooka #endif
7924 1.76 pooka /* We use char because int might match the return type of a gcc2
7925 1.76 pooka builtin and then its argument prototype would still apply. */
7926 1.76 pooka char $ac_func ();
7927 1.76 pooka char (*f) ();
7928 1.74 christos
7929 1.76 pooka int
7930 1.76 pooka main ()
7931 1.76 pooka {
7932 1.76 pooka /* The GNU C library defines this for functions which it implements
7933 1.76 pooka to always fail with ENOSYS. Some functions are actually named
7934 1.76 pooka something starting with __ and the normal name is an alias. */
7935 1.76 pooka #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7936 1.76 pooka choke me
7937 1.76 pooka #else
7938 1.76 pooka f = $ac_func;
7939 1.76 pooka #endif
7940 1.68 tnozaki
7941 1.76 pooka ;
7942 1.76 pooka return 0;
7943 1.76 pooka }
7944 1.76 pooka _ACEOF
7945 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext
7946 1.81 christos if { (eval echo "$as_me:7946: \"$ac_link\"") >&5
7947 1.76 pooka (eval $ac_link) 2>&5
7948 1.76 pooka ac_status=$?
7949 1.81 christos echo "$as_me:7949: \$? = $ac_status" >&5
7950 1.76 pooka (exit $ac_status); } &&
7951 1.76 pooka { ac_try='test -s conftest$ac_exeext'
7952 1.81 christos { (eval echo "$as_me:7952: \"$ac_try\"") >&5
7953 1.76 pooka (eval $ac_try) 2>&5
7954 1.76 pooka ac_status=$?
7955 1.81 christos echo "$as_me:7955: \$? = $ac_status" >&5
7956 1.76 pooka (exit $ac_status); }; }; then
7957 1.76 pooka eval "$as_ac_var=yes"
7958 1.76 pooka else
7959 1.76 pooka echo "$as_me: failed program was:" >&5
7960 1.76 pooka cat conftest.$ac_ext >&5
7961 1.76 pooka eval "$as_ac_var=no"
7962 1.76 pooka fi
7963 1.76 pooka rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7964 1.76 pooka fi
7965 1.81 christos echo "$as_me:7965: result: `eval echo '${'$as_ac_var'}'`" >&5
7966 1.76 pooka echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7967 1.76 pooka if test `eval echo '${'$as_ac_var'}'` = yes; then
7968 1.76 pooka cat >>confdefs.h <<EOF
7969 1.76 pooka #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7970 1.76 pooka EOF
7971 1.76 pooka
7972 1.81 christos echo "$as_me:7972: checking if fparseln seems to work" >&5
7973 1.76 pooka echo $ECHO_N "checking if fparseln seems to work... $ECHO_C" >&6
7974 1.76 pooka if test "$cross_compiling" = yes; then
7975 1.81 christos { echo "$as_me:7975: WARNING: cross compiling: not checking farseln" >&5
7976 1.76 pooka echo "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
7977 1.76 pooka
7978 1.76 pooka else
7979 1.76 pooka cat >conftest.$ac_ext <<_ACEOF
7980 1.81 christos #line 7980 "configure"
7981 1.76 pooka #include "confdefs.h"
7982 1.68 tnozaki
7983 1.68 tnozaki #define _NETBSD_SOURCE
7984 1.68 tnozaki #include <stdio.h>
7985 1.68 tnozaki #include <stdlib.h>
7986 1.68 tnozaki #define CONFTEST "conftest.fparseln"
7987 1.68 tnozaki #define COMMENT '#'
7988 1.68 tnozaki int
7989 1.68 tnozaki main(void)
7990 1.68 tnozaki {
7991 1.68 tnozaki static const char delim[3] = { '\0', '\0', COMMENT };
7992 1.68 tnozaki FILE *fp;
7993 1.68 tnozaki char *ptr;
7994 1.68 tnozaki fp = fopen(CONFTEST, "w+");
7995 1.68 tnozaki if (fp != NULL) {
7996 1.68 tnozaki unlink(CONFTEST);
7997 1.68 tnozaki ungetc(COMMENT, fp);
7998 1.68 tnozaki ptr = fparseln(fp, NULL, NULL, delim,
7999 1.68 tnozaki FPARSELN_UNESCALL);
8000 1.68 tnozaki fclose(fp);
8001 1.68 tnozaki if (ptr == NULL)
8002 1.68 tnozaki exit(0);
8003 1.68 tnozaki }
8004 1.68 tnozaki exit(1);
8005 1.68 tnozaki }
8006 1.68 tnozaki
8007 1.68 tnozaki _ACEOF
8008 1.76 pooka rm -f conftest$ac_exeext
8009 1.81 christos if { (eval echo "$as_me:8009: \"$ac_link\"") >&5
8010 1.76 pooka (eval $ac_link) 2>&5
8011 1.76 pooka ac_status=$?
8012 1.81 christos echo "$as_me:8012: \$? = $ac_status" >&5
8013 1.76 pooka (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8014 1.81 christos { (eval echo "$as_me:8014: \"$ac_try\"") >&5
8015 1.76 pooka (eval $ac_try) 2>&5
8016 1.76 pooka ac_status=$?
8017 1.81 christos echo "$as_me:8017: \$? = $ac_status" >&5
8018 1.76 pooka (exit $ac_status); }; }; then
8019 1.81 christos echo "$as_me:8019: result: yes" >&5
8020 1.76 pooka echo "${ECHO_T}yes" >&6
8021 1.76 pooka else
8022 1.76 pooka echo "$as_me: program exited with status $ac_status" >&5
8023 1.76 pooka echo "$as_me: failed program was:" >&5
8024 1.76 pooka cat conftest.$ac_ext >&5
8025 1.81 christos echo "$as_me:8025: result: no" >&5
8026 1.76 pooka echo "${ECHO_T}no" >&6
8027 1.76 pooka
8028 1.76 pooka cat >>confdefs.h <<\EOF
8029 1.76 pooka #define BROKEN_FPARSELN 1
8030 1.76 pooka EOF
8031 1.68 tnozaki
8032 1.68 tnozaki fi
8033 1.76 pooka rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8034 1.68 tnozaki fi
8035 1.68 tnozaki
8036 1.68 tnozaki fi
8037 1.68 tnozaki done
8038 1.68 tnozaki
8039 1.72 apb # Variables substituted via @VARNAME@ in defs.mk.in
8040 1.72 apb HAVE_PTHREAD_H=$ac_cv_header_pthread_h
8041 1.72 apb
8042 1.1 tv cat >confcache <<\_ACEOF
8043 1.1 tv # This file is a shell script that caches the results of configure
8044 1.1 tv # tests run on this system so they can be shared between configure
8045 1.1 tv # scripts and configure runs, see configure's option --config-cache.
8046 1.1 tv # It is not useful on other systems. If it contains results you don't
8047 1.1 tv # want to keep, you may remove or edit it.
8048 1.1 tv #
8049 1.1 tv # config.status only pays attention to the cache file if you give it
8050 1.1 tv # the --recheck option to rerun configure.
8051 1.1 tv #
8052 1.76 pooka # `ac_cv_env_foo' variables (set or unset) will be overriden when
8053 1.1 tv # loading this file, other *unset* `ac_cv_foo' will be assigned the
8054 1.1 tv # following values.
8055 1.1 tv
8056 1.1 tv _ACEOF
8057 1.1 tv
8058 1.1 tv # The following way of writing the cache mishandles newlines in values,
8059 1.1 tv # but we know of no workaround that is simple, portable, and efficient.
8060 1.76 pooka # So, don't put newlines in cache variables' values.
8061 1.74 christos # Ultrix sh set writes to stderr and can't be redirected directly,
8062 1.74 christos # and sets the high bit in the cache file unless we assign to the vars.
8063 1.76 pooka {
8064 1.65 christos (set) 2>&1 |
8065 1.76 pooka case `(ac_space=' '; set | grep ac_space) 2>&1` in
8066 1.76 pooka *ac_space=\ *)
8067 1.76 pooka # `set' does not quote correctly, so add quotes (double-quote
8068 1.76 pooka # substitution turns \\\\ into \\, and sed turns \\ into \).
8069 1.65 christos sed -n \
8070 1.76 pooka "s/'/'\\\\''/g;
8071 1.76 pooka s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8072 1.76 pooka ;;
8073 1.65 christos *)
8074 1.65 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
8075 1.76 pooka sed -n \
8076 1.76 pooka "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8077 1.65 christos ;;
8078 1.76 pooka esac;
8079 1.76 pooka } |
8080 1.65 christos sed '
8081 1.65 christos t clear
8082 1.76 pooka : clear
8083 1.65 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8084 1.65 christos t end
8085 1.76 pooka /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8086 1.76 pooka : end' >>confcache
8087 1.76 pooka if cmp -s $cache_file confcache; then :; else
8088 1.76 pooka if test -w $cache_file; then
8089 1.76 pooka test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8090 1.76 pooka cat confcache >$cache_file
8091 1.65 christos else
8092 1.76 pooka echo "not updating unwritable cache $cache_file"
8093 1.65 christos fi
8094 1.65 christos fi
8095 1.66 tsutsui rm -f confcache
8096 1.65 christos
8097 1.66 tsutsui test "x$prefix" = xNONE && prefix=$ac_default_prefix
8098 1.66 tsutsui # Let make expand exec_prefix.
8099 1.66 tsutsui test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8100 1.65 christos
8101 1.76 pooka # VPATH may cause trouble with some makes, so we remove $(srcdir),
8102 1.76 pooka # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8103 1.76 pooka # trailing colons and then remove the whole line if VPATH becomes empty
8104 1.76 pooka # (actually we leave an empty line to preserve line numbers).
8105 1.76 pooka if test "x$srcdir" = x.; then
8106 1.76 pooka ac_vpsub='/^[ ]*VPATH[ ]*=/{
8107 1.76 pooka s/:*\$(srcdir):*/:/;
8108 1.76 pooka s/:*\${srcdir}:*/:/;
8109 1.76 pooka s/:*@srcdir@:*/:/;
8110 1.76 pooka s/^\([^=]*=[ ]*\):*/\1/;
8111 1.76 pooka s/:*$//;
8112 1.76 pooka s/^[^=]*=[ ]*$//;
8113 1.76 pooka }'
8114 1.76 pooka fi
8115 1.76 pooka
8116 1.74 christos DEFS=-DHAVE_CONFIG_H
8117 1.74 christos
8118 1.76 pooka : ${CONFIG_STATUS=./config.status}
8119 1.66 tsutsui ac_clean_files_save=$ac_clean_files
8120 1.66 tsutsui ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8121 1.81 christos { echo "$as_me:8121: creating $CONFIG_STATUS" >&5
8122 1.76 pooka echo "$as_me: creating $CONFIG_STATUS" >&6;}
8123 1.76 pooka cat >$CONFIG_STATUS <<_ACEOF
8124 1.66 tsutsui #! $SHELL
8125 1.76 pooka # Generated automatically by configure.
8126 1.66 tsutsui # Run this file to recreate the current configuration.
8127 1.66 tsutsui # Compiler output produced by configure, useful for debugging
8128 1.66 tsutsui # configure, is in config.log if it exists.
8129 1.65 christos
8130 1.66 tsutsui debug=false
8131 1.76 pooka SHELL=\${CONFIG_SHELL-$SHELL}
8132 1.76 pooka ac_cs_invocation="\$0 \$@"
8133 1.76 pooka
8134 1.76 pooka _ACEOF
8135 1.74 christos
8136 1.76 pooka cat >>$CONFIG_STATUS <<\_ACEOF
8137 1.76 pooka # Be Bourne compatible
8138 1.76 pooka if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8139 1.74 christos emulate sh
8140 1.74 christos NULLCMD=:
8141 1.76 pooka elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8142 1.76 pooka set -o posix
8143 1.74 christos fi
8144 1.65 christos
8145 1.76 pooka # Name of the executable.
8146 1.76 pooka as_me=`echo "$0" |sed 's,.*[\\/],,'`
8147 1.74 christos
8148 1.76 pooka if expr a : '\(a\)' >/dev/null 2>&1; then
8149 1.1 tv as_expr=expr
8150 1.1 tv else
8151 1.1 tv as_expr=false
8152 1.1 tv fi
8153 1.1 tv
8154 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
8155 1.76 pooka echo >conf$$.file
8156 1.76 pooka if ln -s conf$$.file conf$$ 2>/dev/null; then
8157 1.76 pooka # We could just check for DJGPP; but this test a) works b) is more generic
8158 1.76 pooka # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8159 1.76 pooka if test -f conf$$.exe; then
8160 1.76 pooka # Don't use ln at all; we don't have any links
8161 1.76 pooka as_ln_s='cp -p'
8162 1.76 pooka else
8163 1.74 christos as_ln_s='ln -s'
8164 1.66 tsutsui fi
8165 1.76 pooka elif ln conf$$.file conf$$ 2>/dev/null; then
8166 1.76 pooka as_ln_s=ln
8167 1.1 tv else
8168 1.76 pooka as_ln_s='cp -p'
8169 1.1 tv fi
8170 1.76 pooka rm -f conf$$ conf$$.exe conf$$.file
8171 1.1 tv
8172 1.76 pooka as_executable_p="test -f"
8173 1.63 apb
8174 1.76 pooka # Support unset when possible.
8175 1.76 pooka if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8176 1.76 pooka as_unset=unset
8177 1.61 christos else
8178 1.76 pooka as_unset=false
8179 1.61 christos fi
8180 1.61 christos
8181 1.76 pooka # NLS nuisances.
8182 1.76 pooka $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8183 1.76 pooka $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8184 1.76 pooka $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8185 1.76 pooka $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8186 1.76 pooka $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8187 1.76 pooka $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8188 1.76 pooka $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8189 1.76 pooka $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8190 1.1 tv
8191 1.76 pooka # IFS
8192 1.76 pooka # We need space, tab and new line, in precisely that order.
8193 1.76 pooka as_nl='
8194 1.76 pooka '
8195 1.76 pooka IFS=" $as_nl"
8196 1.1 tv
8197 1.76 pooka # CDPATH.
8198 1.76 pooka $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8199 1.1 tv
8200 1.1 tv exec 6>&1
8201 1.1 tv
8202 1.66 tsutsui _ACEOF
8203 1.1 tv
8204 1.76 pooka # Files that config.status was made for.
8205 1.76 pooka if test -n "$ac_config_files"; then
8206 1.76 pooka echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8207 1.76 pooka fi
8208 1.1 tv
8209 1.76 pooka if test -n "$ac_config_headers"; then
8210 1.76 pooka echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8211 1.76 pooka fi
8212 1.1 tv
8213 1.76 pooka if test -n "$ac_config_links"; then
8214 1.76 pooka echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8215 1.76 pooka fi
8216 1.1 tv
8217 1.76 pooka if test -n "$ac_config_commands"; then
8218 1.76 pooka echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8219 1.76 pooka fi
8220 1.1 tv
8221 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8222 1.1 tv
8223 1.1 tv ac_cs_usage="\
8224 1.76 pooka \`$as_me' instantiates files from templates according to the
8225 1.76 pooka current configuration.
8226 1.1 tv
8227 1.76 pooka Usage: $0 [OPTIONS] [FILE]...
8228 1.1 tv
8229 1.1 tv -h, --help print this help, then exit
8230 1.76 pooka -V, --version print version number, then exit
8231 1.1 tv -d, --debug don't remove temporary files
8232 1.1 tv --recheck update $as_me by reconfiguring in the same conditions
8233 1.76 pooka --file=FILE[:TEMPLATE]
8234 1.66 tsutsui instantiate the configuration file FILE
8235 1.76 pooka --header=FILE[:TEMPLATE]
8236 1.66 tsutsui instantiate the configuration header FILE
8237 1.1 tv
8238 1.1 tv Configuration files:
8239 1.1 tv $config_files
8240 1.1 tv
8241 1.1 tv Configuration headers:
8242 1.1 tv $config_headers
8243 1.1 tv
8244 1.76 pooka Report bugs to <bug-autoconf@gnu.org>."
8245 1.76 pooka EOF
8246 1.1 tv
8247 1.76 pooka cat >>$CONFIG_STATUS <<EOF
8248 1.1 tv ac_cs_version="\\
8249 1.1 tv libnbcompat config.status noversion
8250 1.76 pooka configured by $0, generated by GNU Autoconf 2.52,
8251 1.76 pooka with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8252 1.1 tv
8253 1.76 pooka Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8254 1.76 pooka Free Software Foundation, Inc.
8255 1.1 tv This config.status script is free software; the Free Software Foundation
8256 1.1 tv gives unlimited permission to copy, distribute and modify it."
8257 1.76 pooka srcdir=$srcdir
8258 1.76 pooka EOF
8259 1.1 tv
8260 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8261 1.76 pooka # If no file are specified by the user, then we need to provide default
8262 1.76 pooka # value. By we need to know if files were specified by the user.
8263 1.1 tv ac_need_defaults=:
8264 1.1 tv while test $# != 0
8265 1.1 tv do
8266 1.1 tv case $1 in
8267 1.76 pooka --*=*)
8268 1.76 pooka ac_option=`expr "x$1" : 'x\([^=]*\)='`
8269 1.76 pooka ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8270 1.76 pooka shift
8271 1.76 pooka set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8272 1.76 pooka shift
8273 1.1 tv ;;
8274 1.76 pooka -*);;
8275 1.76 pooka *) # This is not an option, so the user has probably given explicit
8276 1.76 pooka # arguments.
8277 1.76 pooka ac_need_defaults=false;;
8278 1.1 tv esac
8279 1.1 tv
8280 1.76 pooka case $1 in
8281 1.1 tv # Handling of the options.
8282 1.76 pooka EOF
8283 1.76 pooka cat >>$CONFIG_STATUS <<EOF
8284 1.1 tv -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8285 1.76 pooka echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8286 1.76 pooka exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8287 1.76 pooka EOF
8288 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8289 1.76 pooka --version | --vers* | -V )
8290 1.76 pooka echo "$ac_cs_version"; exit 0 ;;
8291 1.76 pooka --he | --h)
8292 1.76 pooka # Conflict between --help and --header
8293 1.81 christos { { echo "$as_me:8293: error: ambiguous option: $1
8294 1.76 pooka Try \`$0 --help' for more information." >&5
8295 1.76 pooka echo "$as_me: error: ambiguous option: $1
8296 1.76 pooka Try \`$0 --help' for more information." >&2;}
8297 1.76 pooka { (exit 1); exit 1; }; };;
8298 1.76 pooka --help | --hel | -h )
8299 1.76 pooka echo "$ac_cs_usage"; exit 0 ;;
8300 1.76 pooka --debug | --d* | -d )
8301 1.1 tv debug=: ;;
8302 1.1 tv --file | --fil | --fi | --f )
8303 1.76 pooka shift
8304 1.76 pooka CONFIG_FILES="$CONFIG_FILES $1"
8305 1.1 tv ac_need_defaults=false;;
8306 1.1 tv --header | --heade | --head | --hea )
8307 1.76 pooka shift
8308 1.76 pooka CONFIG_HEADERS="$CONFIG_HEADERS $1"
8309 1.1 tv ac_need_defaults=false;;
8310 1.1 tv
8311 1.1 tv # This is an error.
8312 1.81 christos -*) { { echo "$as_me:8312: error: unrecognized option: $1
8313 1.76 pooka Try \`$0 --help' for more information." >&5
8314 1.76 pooka echo "$as_me: error: unrecognized option: $1
8315 1.76 pooka Try \`$0 --help' for more information." >&2;}
8316 1.76 pooka { (exit 1); exit 1; }; } ;;
8317 1.1 tv
8318 1.76 pooka *) ac_config_targets="$ac_config_targets $1" ;;
8319 1.1 tv
8320 1.1 tv esac
8321 1.1 tv shift
8322 1.1 tv done
8323 1.1 tv
8324 1.76 pooka exec 5>>config.log
8325 1.76 pooka cat >&5 << _ACEOF
8326 1.74 christos
8327 1.76 pooka ## ----------------------- ##
8328 1.76 pooka ## Running config.status. ##
8329 1.76 pooka ## ----------------------- ##
8330 1.1 tv
8331 1.76 pooka This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
8332 1.76 pooka CONFIG_FILES = $CONFIG_FILES
8333 1.76 pooka CONFIG_HEADERS = $CONFIG_HEADERS
8334 1.76 pooka CONFIG_LINKS = $CONFIG_LINKS
8335 1.76 pooka CONFIG_COMMANDS = $CONFIG_COMMANDS
8336 1.76 pooka > $ac_cs_invocation
8337 1.76 pooka on `(hostname || uname -n) 2>/dev/null | sed 1q`
8338 1.1 tv
8339 1.1 tv _ACEOF
8340 1.76 pooka EOF
8341 1.1 tv
8342 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8343 1.1 tv for ac_config_target in $ac_config_targets
8344 1.1 tv do
8345 1.76 pooka case "$ac_config_target" in
8346 1.76 pooka # Handling of arguments.
8347 1.76 pooka "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
8348 1.76 pooka "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
8349 1.81 christos *) { { echo "$as_me:8349: error: invalid argument: $ac_config_target" >&5
8350 1.76 pooka echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8351 1.76 pooka { (exit 1); exit 1; }; };;
8352 1.1 tv esac
8353 1.1 tv done
8354 1.1 tv
8355 1.1 tv # If the user did not use the arguments to specify the items to instantiate,
8356 1.1 tv # then the envvar interface is used. Set only those that are not.
8357 1.1 tv # We use the long form for the default assignment because of an extremely
8358 1.1 tv # bizarre bug on SunOS 4.1.3.
8359 1.1 tv if $ac_need_defaults; then
8360 1.1 tv test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8361 1.1 tv test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8362 1.1 tv fi
8363 1.1 tv
8364 1.76 pooka # Create a temporary directory, and hook for its removal unless debugging.
8365 1.1 tv $debug ||
8366 1.1 tv {
8367 1.76 pooka trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8368 1.76 pooka trap '{ (exit 1); exit 1; }' 1 2 13 15
8369 1.1 tv }
8370 1.76 pooka
8371 1.74 christos # Create a (secure) tmp directory for tmp files.
8372 1.76 pooka : ${TMPDIR=/tmp}
8373 1.1 tv {
8374 1.76 pooka tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8375 1.76 pooka test -n "$tmp" && test -d "$tmp"
8376 1.1 tv } ||
8377 1.1 tv {
8378 1.76 pooka tmp=$TMPDIR/cs$$-$RANDOM
8379 1.76 pooka (umask 077 && mkdir $tmp)
8380 1.76 pooka } ||
8381 1.76 pooka {
8382 1.76 pooka echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8383 1.76 pooka { (exit 1); exit 1; }
8384 1.76 pooka }
8385 1.1 tv
8386 1.76 pooka EOF
8387 1.66 tsutsui
8388 1.76 pooka cat >>$CONFIG_STATUS <<EOF
8389 1.66 tsutsui
8390 1.76 pooka #
8391 1.76 pooka # CONFIG_FILES section.
8392 1.76 pooka #
8393 1.1 tv
8394 1.76 pooka # No need to generate the scripts if there are no CONFIG_FILES.
8395 1.76 pooka # This happens for instance when ./config.status config.h
8396 1.76 pooka if test -n "\$CONFIG_FILES"; then
8397 1.76 pooka # Protect against being on the right side of a sed subst in config.status.
8398 1.76 pooka sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8399 1.76 pooka s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8400 1.76 pooka s,@SHELL@,$SHELL,;t t
8401 1.76 pooka s,@exec_prefix@,$exec_prefix,;t t
8402 1.76 pooka s,@prefix@,$prefix,;t t
8403 1.76 pooka s,@program_transform_name@,$program_transform_name,;t t
8404 1.76 pooka s,@bindir@,$bindir,;t t
8405 1.76 pooka s,@sbindir@,$sbindir,;t t
8406 1.76 pooka s,@libexecdir@,$libexecdir,;t t
8407 1.76 pooka s,@datadir@,$datadir,;t t
8408 1.76 pooka s,@sysconfdir@,$sysconfdir,;t t
8409 1.76 pooka s,@sharedstatedir@,$sharedstatedir,;t t
8410 1.76 pooka s,@localstatedir@,$localstatedir,;t t
8411 1.76 pooka s,@libdir@,$libdir,;t t
8412 1.76 pooka s,@includedir@,$includedir,;t t
8413 1.76 pooka s,@oldincludedir@,$oldincludedir,;t t
8414 1.76 pooka s,@infodir@,$infodir,;t t
8415 1.76 pooka s,@mandir@,$mandir,;t t
8416 1.76 pooka s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8417 1.76 pooka s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8418 1.76 pooka s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8419 1.76 pooka s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8420 1.76 pooka s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8421 1.76 pooka s,@build_alias@,$build_alias,;t t
8422 1.76 pooka s,@host_alias@,$host_alias,;t t
8423 1.76 pooka s,@target_alias@,$target_alias,;t t
8424 1.76 pooka s,@ECHO_C@,$ECHO_C,;t t
8425 1.76 pooka s,@ECHO_N@,$ECHO_N,;t t
8426 1.76 pooka s,@ECHO_T@,$ECHO_T,;t t
8427 1.76 pooka s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8428 1.76 pooka s,@DEFS@,$DEFS,;t t
8429 1.76 pooka s,@LIBS@,$LIBS,;t t
8430 1.76 pooka s,@CC@,$CC,;t t
8431 1.76 pooka s,@CFLAGS@,$CFLAGS,;t t
8432 1.76 pooka s,@LDFLAGS@,$LDFLAGS,;t t
8433 1.76 pooka s,@CPPFLAGS@,$CPPFLAGS,;t t
8434 1.76 pooka s,@ac_ct_CC@,$ac_ct_CC,;t t
8435 1.76 pooka s,@EXEEXT@,$EXEEXT,;t t
8436 1.76 pooka s,@OBJEXT@,$OBJEXT,;t t
8437 1.76 pooka s,@CPP@,$CPP,;t t
8438 1.76 pooka s,@BSHELL@,$BSHELL,;t t
8439 1.76 pooka s,@ALLOCA@,$ALLOCA,;t t
8440 1.76 pooka s,@HAVE_PTHREAD_H@,$HAVE_PTHREAD_H,;t t
8441 1.76 pooka CEOF
8442 1.76 pooka
8443 1.76 pooka EOF
8444 1.76 pooka
8445 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8446 1.76 pooka # Split the substitutions into bite-sized pieces for seds with
8447 1.76 pooka # small command number limits, like on Digital OSF/1 and HP-UX.
8448 1.76 pooka ac_max_sed_lines=48
8449 1.76 pooka ac_sed_frag=1 # Number of current file.
8450 1.76 pooka ac_beg=1 # First line for current file.
8451 1.76 pooka ac_end=$ac_max_sed_lines # Line after last line for current file.
8452 1.76 pooka ac_more_lines=:
8453 1.76 pooka ac_sed_cmds=
8454 1.76 pooka while $ac_more_lines; do
8455 1.76 pooka if test $ac_beg -gt 1; then
8456 1.76 pooka sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8457 1.76 pooka else
8458 1.76 pooka sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8459 1.76 pooka fi
8460 1.76 pooka if test ! -s $tmp/subs.frag; then
8461 1.76 pooka ac_more_lines=false
8462 1.76 pooka else
8463 1.76 pooka # The purpose of the label and of the branching condition is to
8464 1.76 pooka # speed up the sed processing (if there are no `@' at all, there
8465 1.76 pooka # is no need to browse any of the substitutions).
8466 1.76 pooka # These are the two extra sed commands mentioned above.
8467 1.76 pooka (echo ':t
8468 1.76 pooka /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8469 1.76 pooka if test -z "$ac_sed_cmds"; then
8470 1.76 pooka ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8471 1.76 pooka else
8472 1.76 pooka ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8473 1.76 pooka fi
8474 1.76 pooka ac_sed_frag=`expr $ac_sed_frag + 1`
8475 1.76 pooka ac_beg=$ac_end
8476 1.76 pooka ac_end=`expr $ac_end + $ac_max_sed_lines`
8477 1.76 pooka fi
8478 1.76 pooka done
8479 1.76 pooka if test -z "$ac_sed_cmds"; then
8480 1.76 pooka ac_sed_cmds=cat
8481 1.76 pooka fi
8482 1.76 pooka fi # test -n "$CONFIG_FILES"
8483 1.65 christos
8484 1.76 pooka EOF
8485 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8486 1.76 pooka for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8487 1.76 pooka # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8488 1.76 pooka case $ac_file in
8489 1.76 pooka - | *:- | *:-:* ) # input from stdin
8490 1.76 pooka cat >$tmp/stdin
8491 1.76 pooka ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8492 1.76 pooka ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8493 1.76 pooka *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8494 1.76 pooka ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8495 1.76 pooka * ) ac_file_in=$ac_file.in ;;
8496 1.76 pooka esac
8497 1.65 christos
8498 1.76 pooka # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8499 1.76 pooka ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8500 1.76 pooka X"$ac_file" : 'X\(//\)[^/]' \| \
8501 1.76 pooka X"$ac_file" : 'X\(//\)$' \| \
8502 1.76 pooka X"$ac_file" : 'X\(/\)' \| \
8503 1.76 pooka . : '\(.\)' 2>/dev/null ||
8504 1.76 pooka echo X"$ac_file" |
8505 1.76 pooka sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8506 1.76 pooka /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8507 1.76 pooka /^X\(\/\/\)$/{ s//\1/; q; }
8508 1.76 pooka /^X\(\/\).*/{ s//\1/; q; }
8509 1.76 pooka s/.*/./; q'`
8510 1.76 pooka if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8511 1.76 pooka { case "$ac_dir" in
8512 1.76 pooka [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8513 1.76 pooka *) as_incr_dir=.;;
8514 1.76 pooka esac
8515 1.76 pooka as_dummy="$ac_dir"
8516 1.76 pooka for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8517 1.76 pooka case $as_mkdir_dir in
8518 1.76 pooka # Skip DOS drivespec
8519 1.76 pooka ?:) as_incr_dir=$as_mkdir_dir ;;
8520 1.76 pooka *)
8521 1.76 pooka as_incr_dir=$as_incr_dir/$as_mkdir_dir
8522 1.76 pooka test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8523 1.76 pooka ;;
8524 1.76 pooka esac
8525 1.76 pooka done; }
8526 1.65 christos
8527 1.76 pooka ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
8528 1.76 pooka # A "../" for each directory in $ac_dir_suffix.
8529 1.76 pooka ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8530 1.65 christos else
8531 1.76 pooka ac_dir_suffix= ac_dots=
8532 1.1 tv fi
8533 1.65 christos
8534 1.76 pooka case $srcdir in
8535 1.76 pooka .) ac_srcdir=.
8536 1.76 pooka if test -z "$ac_dots"; then
8537 1.76 pooka ac_top_srcdir=.
8538 1.76 pooka else
8539 1.76 pooka ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8540 1.76 pooka fi ;;
8541 1.76 pooka [\\/]* | ?:[\\/]* )
8542 1.76 pooka ac_srcdir=$srcdir$ac_dir_suffix;
8543 1.76 pooka ac_top_srcdir=$srcdir ;;
8544 1.76 pooka *) # Relative path.
8545 1.76 pooka ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8546 1.76 pooka ac_top_srcdir=$ac_dots$srcdir ;;
8547 1.76 pooka esac
8548 1.74 christos
8549 1.76 pooka if test x"$ac_file" != x-; then
8550 1.81 christos { echo "$as_me:8550: creating $ac_file" >&5
8551 1.76 pooka echo "$as_me: creating $ac_file" >&6;}
8552 1.76 pooka rm -f "$ac_file"
8553 1.76 pooka fi
8554 1.76 pooka # Let's still pretend it is `configure' which instantiates (i.e., don't
8555 1.76 pooka # use $as_me), people would be surprised to read:
8556 1.76 pooka # /* config.h. Generated automatically by config.status. */
8557 1.76 pooka configure_input="Generated automatically from `echo $ac_file_in |
8558 1.76 pooka sed 's,.*/,,'` by configure."
8559 1.76 pooka
8560 1.76 pooka # First look for the input files in the build tree, otherwise in the
8561 1.76 pooka # src tree.
8562 1.76 pooka ac_file_inputs=`IFS=:
8563 1.76 pooka for f in $ac_file_in; do
8564 1.76 pooka case $f in
8565 1.76 pooka -) echo $tmp/stdin ;;
8566 1.76 pooka [\\/$]*)
8567 1.76 pooka # Absolute (can't be DOS-style, as IFS=:)
8568 1.81 christos test -f "$f" || { { echo "$as_me:8568: error: cannot find input file: $f" >&5
8569 1.76 pooka echo "$as_me: error: cannot find input file: $f" >&2;}
8570 1.76 pooka { (exit 1); exit 1; }; }
8571 1.76 pooka echo $f;;
8572 1.76 pooka *) # Relative
8573 1.76 pooka if test -f "$f"; then
8574 1.76 pooka # Build tree
8575 1.76 pooka echo $f
8576 1.76 pooka elif test -f "$srcdir/$f"; then
8577 1.76 pooka # Source tree
8578 1.76 pooka echo $srcdir/$f
8579 1.76 pooka else
8580 1.76 pooka # /dev/null tree
8581 1.81 christos { { echo "$as_me:8581: error: cannot find input file: $f" >&5
8582 1.76 pooka echo "$as_me: error: cannot find input file: $f" >&2;}
8583 1.76 pooka { (exit 1); exit 1; }; }
8584 1.76 pooka fi;;
8585 1.76 pooka esac
8586 1.76 pooka done` || { (exit 1); exit 1; }
8587 1.76 pooka EOF
8588 1.76 pooka cat >>$CONFIG_STATUS <<EOF
8589 1.76 pooka sed "$ac_vpsub
8590 1.76 pooka $extrasub
8591 1.76 pooka EOF
8592 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8593 1.76 pooka :t
8594 1.76 pooka /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8595 1.76 pooka s,@configure_input@,$configure_input,;t t
8596 1.76 pooka s,@srcdir@,$ac_srcdir,;t t
8597 1.76 pooka s,@top_srcdir@,$ac_top_srcdir,;t t
8598 1.76 pooka " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8599 1.76 pooka rm -f $tmp/stdin
8600 1.76 pooka if test x"$ac_file" != x-; then
8601 1.76 pooka mv $tmp/out $ac_file
8602 1.66 tsutsui else
8603 1.76 pooka cat $tmp/out
8604 1.76 pooka rm -f $tmp/out
8605 1.66 tsutsui fi
8606 1.76 pooka
8607 1.66 tsutsui done
8608 1.76 pooka EOF
8609 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8610 1.66 tsutsui
8611 1.76 pooka #
8612 1.76 pooka # CONFIG_HEADER section.
8613 1.76 pooka #
8614 1.66 tsutsui
8615 1.76 pooka # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8616 1.76 pooka # NAME is the cpp macro being defined and VALUE is the value it is being given.
8617 1.76 pooka #
8618 1.76 pooka # ac_d sets the value in "#define NAME VALUE" lines.
8619 1.76 pooka ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8620 1.76 pooka ac_dB='[ ].*$,\1#\2'
8621 1.76 pooka ac_dC=' '
8622 1.76 pooka ac_dD=',;t'
8623 1.76 pooka # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8624 1.76 pooka ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8625 1.76 pooka ac_uB='$,\1#\2define\3'
8626 1.76 pooka ac_uC=' '
8627 1.76 pooka ac_uD=',;t'
8628 1.1 tv
8629 1.76 pooka for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8630 1.76 pooka # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8631 1.76 pooka case $ac_file in
8632 1.76 pooka - | *:- | *:-:* ) # input from stdin
8633 1.76 pooka cat >$tmp/stdin
8634 1.76 pooka ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8635 1.76 pooka ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8636 1.76 pooka *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8637 1.76 pooka ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8638 1.76 pooka * ) ac_file_in=$ac_file.in ;;
8639 1.74 christos esac
8640 1.74 christos
8641 1.81 christos test x"$ac_file" != x- && { echo "$as_me:8641: creating $ac_file" >&5
8642 1.76 pooka echo "$as_me: creating $ac_file" >&6;}
8643 1.76 pooka
8644 1.76 pooka # First look for the input files in the build tree, otherwise in the
8645 1.76 pooka # src tree.
8646 1.76 pooka ac_file_inputs=`IFS=:
8647 1.76 pooka for f in $ac_file_in; do
8648 1.76 pooka case $f in
8649 1.76 pooka -) echo $tmp/stdin ;;
8650 1.76 pooka [\\/$]*)
8651 1.76 pooka # Absolute (can't be DOS-style, as IFS=:)
8652 1.81 christos test -f "$f" || { { echo "$as_me:8652: error: cannot find input file: $f" >&5
8653 1.76 pooka echo "$as_me: error: cannot find input file: $f" >&2;}
8654 1.76 pooka { (exit 1); exit 1; }; }
8655 1.76 pooka echo $f;;
8656 1.76 pooka *) # Relative
8657 1.76 pooka if test -f "$f"; then
8658 1.76 pooka # Build tree
8659 1.76 pooka echo $f
8660 1.76 pooka elif test -f "$srcdir/$f"; then
8661 1.76 pooka # Source tree
8662 1.76 pooka echo $srcdir/$f
8663 1.76 pooka else
8664 1.76 pooka # /dev/null tree
8665 1.81 christos { { echo "$as_me:8665: error: cannot find input file: $f" >&5
8666 1.76 pooka echo "$as_me: error: cannot find input file: $f" >&2;}
8667 1.76 pooka { (exit 1); exit 1; }; }
8668 1.76 pooka fi;;
8669 1.74 christos esac
8670 1.76 pooka done` || { (exit 1); exit 1; }
8671 1.76 pooka # Remove the trailing spaces.
8672 1.76 pooka sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8673 1.76 pooka
8674 1.76 pooka EOF
8675 1.76 pooka
8676 1.76 pooka # Transform confdefs.h into two sed scripts, `conftest.defines' and
8677 1.76 pooka # `conftest.undefs', that substitutes the proper values into
8678 1.76 pooka # config.h.in to produce config.h. The first handles `#define'
8679 1.76 pooka # templates, and the second `#undef' templates.
8680 1.76 pooka # And first: Protect against being on the right side of a sed subst in
8681 1.76 pooka # config.status. Protect against being in an unquoted here document
8682 1.76 pooka # in config.status.
8683 1.76 pooka rm -f conftest.defines conftest.undefs
8684 1.76 pooka # Using a here document instead of a string reduces the quoting nightmare.
8685 1.76 pooka # Putting comments in sed scripts is not portable.
8686 1.76 pooka #
8687 1.76 pooka # `end' is used to avoid that the second main sed command (meant for
8688 1.76 pooka # 0-ary CPP macros) applies to n-ary macro definitions.
8689 1.76 pooka # See the Autoconf documentation for `clear'.
8690 1.76 pooka cat >confdef2sed.sed <<\EOF
8691 1.76 pooka s/[\\&,]/\\&/g
8692 1.76 pooka s,[\\$`],\\&,g
8693 1.76 pooka t clear
8694 1.76 pooka : clear
8695 1.76 pooka s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8696 1.76 pooka t end
8697 1.76 pooka s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8698 1.76 pooka : end
8699 1.76 pooka EOF
8700 1.76 pooka # If some macros were called several times there might be several times
8701 1.76 pooka # the same #defines, which is useless. Nevertheless, we may not want to
8702 1.76 pooka # sort them, since we want the *last* AC-DEFINE to be honored.
8703 1.76 pooka uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8704 1.76 pooka sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8705 1.76 pooka rm -f confdef2sed.sed
8706 1.76 pooka
8707 1.76 pooka # This sed command replaces #undef with comments. This is necessary, for
8708 1.76 pooka # example, in the case of _POSIX_SOURCE, which is predefined and required
8709 1.76 pooka # on some systems where configure will not decide to define it.
8710 1.76 pooka cat >>conftest.undefs <<\EOF
8711 1.76 pooka s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8712 1.76 pooka EOF
8713 1.76 pooka
8714 1.76 pooka # Break up conftest.defines because some shells have a limit on the size
8715 1.76 pooka # of here documents, and old seds have small limits too (100 cmds).
8716 1.76 pooka echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8717 1.76 pooka echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8718 1.76 pooka echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8719 1.76 pooka echo ' :' >>$CONFIG_STATUS
8720 1.76 pooka rm -f conftest.tail
8721 1.76 pooka while grep . conftest.defines >/dev/null
8722 1.76 pooka do
8723 1.76 pooka # Write a limited-size here document to $tmp/defines.sed.
8724 1.76 pooka echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8725 1.76 pooka # Speed up: don't consider the non `#define' lines.
8726 1.76 pooka echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8727 1.76 pooka # Work around the forget-to-reset-the-flag bug.
8728 1.76 pooka echo 't clr' >>$CONFIG_STATUS
8729 1.76 pooka echo ': clr' >>$CONFIG_STATUS
8730 1.76 pooka sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8731 1.76 pooka echo 'CEOF
8732 1.76 pooka sed -f $tmp/defines.sed $tmp/in >$tmp/out
8733 1.76 pooka rm -f $tmp/in
8734 1.76 pooka mv $tmp/out $tmp/in
8735 1.76 pooka ' >>$CONFIG_STATUS
8736 1.76 pooka sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8737 1.76 pooka rm -f conftest.defines
8738 1.76 pooka mv conftest.tail conftest.defines
8739 1.76 pooka done
8740 1.76 pooka rm -f conftest.defines
8741 1.76 pooka echo ' fi # egrep' >>$CONFIG_STATUS
8742 1.76 pooka echo >>$CONFIG_STATUS
8743 1.76 pooka
8744 1.76 pooka # Break up conftest.undefs because some shells have a limit on the size
8745 1.76 pooka # of here documents, and old seds have small limits too (100 cmds).
8746 1.76 pooka echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8747 1.76 pooka rm -f conftest.tail
8748 1.76 pooka while grep . conftest.undefs >/dev/null
8749 1.76 pooka do
8750 1.76 pooka # Write a limited-size here document to $tmp/undefs.sed.
8751 1.76 pooka echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8752 1.76 pooka # Speed up: don't consider the non `#undef'
8753 1.76 pooka echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8754 1.76 pooka # Work around the forget-to-reset-the-flag bug.
8755 1.76 pooka echo 't clr' >>$CONFIG_STATUS
8756 1.76 pooka echo ': clr' >>$CONFIG_STATUS
8757 1.76 pooka sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8758 1.76 pooka echo 'CEOF
8759 1.76 pooka sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8760 1.76 pooka rm -f $tmp/in
8761 1.76 pooka mv $tmp/out $tmp/in
8762 1.76 pooka ' >>$CONFIG_STATUS
8763 1.76 pooka sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8764 1.76 pooka rm -f conftest.undefs
8765 1.76 pooka mv conftest.tail conftest.undefs
8766 1.76 pooka done
8767 1.76 pooka rm -f conftest.undefs
8768 1.76 pooka
8769 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8770 1.76 pooka # Let's still pretend it is `configure' which instantiates (i.e., don't
8771 1.76 pooka # use $as_me), people would be surprised to read:
8772 1.76 pooka # /* config.h. Generated automatically by config.status. */
8773 1.76 pooka if test x"$ac_file" = x-; then
8774 1.76 pooka echo "/* Generated automatically by configure. */" >$tmp/config.h
8775 1.76 pooka else
8776 1.76 pooka echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
8777 1.76 pooka fi
8778 1.76 pooka cat $tmp/in >>$tmp/config.h
8779 1.76 pooka rm -f $tmp/in
8780 1.76 pooka if test x"$ac_file" != x-; then
8781 1.76 pooka if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8782 1.81 christos { echo "$as_me:8782: $ac_file is unchanged" >&5
8783 1.76 pooka echo "$as_me: $ac_file is unchanged" >&6;}
8784 1.76 pooka else
8785 1.76 pooka ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8786 1.76 pooka X"$ac_file" : 'X\(//\)[^/]' \| \
8787 1.76 pooka X"$ac_file" : 'X\(//\)$' \| \
8788 1.76 pooka X"$ac_file" : 'X\(/\)' \| \
8789 1.76 pooka . : '\(.\)' 2>/dev/null ||
8790 1.76 pooka echo X"$ac_file" |
8791 1.76 pooka sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8792 1.76 pooka /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8793 1.76 pooka /^X\(\/\/\)$/{ s//\1/; q; }
8794 1.76 pooka /^X\(\/\).*/{ s//\1/; q; }
8795 1.76 pooka s/.*/./; q'`
8796 1.76 pooka if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8797 1.76 pooka { case "$ac_dir" in
8798 1.76 pooka [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8799 1.76 pooka *) as_incr_dir=.;;
8800 1.76 pooka esac
8801 1.76 pooka as_dummy="$ac_dir"
8802 1.76 pooka for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8803 1.76 pooka case $as_mkdir_dir in
8804 1.76 pooka # Skip DOS drivespec
8805 1.76 pooka ?:) as_incr_dir=$as_mkdir_dir ;;
8806 1.76 pooka *)
8807 1.76 pooka as_incr_dir=$as_incr_dir/$as_mkdir_dir
8808 1.76 pooka test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8809 1.66 tsutsui ;;
8810 1.66 tsutsui esac
8811 1.76 pooka done; }
8812 1.66 tsutsui
8813 1.76 pooka fi
8814 1.76 pooka rm -f $ac_file
8815 1.76 pooka mv $tmp/config.h $ac_file
8816 1.1 tv fi
8817 1.1 tv else
8818 1.76 pooka cat $tmp/config.h
8819 1.76 pooka rm -f $tmp/config.h
8820 1.1 tv fi
8821 1.76 pooka done
8822 1.76 pooka EOF
8823 1.74 christos
8824 1.76 pooka cat >>$CONFIG_STATUS <<\EOF
8825 1.74 christos
8826 1.76 pooka { (exit 0); exit 0; }
8827 1.76 pooka EOF
8828 1.76 pooka chmod +x $CONFIG_STATUS
8829 1.1 tv ac_clean_files=$ac_clean_files_save
8830 1.1 tv
8831 1.1 tv # configure is writing to config.log, and then calls config.status.
8832 1.1 tv # config.status does its own redirection, appending to config.log.
8833 1.1 tv # Unfortunately, on DOS this fails, as config.log is still kept open
8834 1.1 tv # by configure, so config.status won't be able to write to it; its
8835 1.1 tv # output is simply discarded. So we exec the FD to /dev/null,
8836 1.1 tv # effectively closing config.log, so it can be properly (re)opened and
8837 1.1 tv # appended to by config.status. When coming back to configure, we
8838 1.1 tv # need to make the FD available again.
8839 1.1 tv if test "$no_create" != yes; then
8840 1.1 tv ac_cs_success=:
8841 1.1 tv exec 5>/dev/null
8842 1.76 pooka $SHELL $CONFIG_STATUS || ac_cs_success=false
8843 1.1 tv exec 5>>config.log
8844 1.1 tv # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8845 1.1 tv # would make configure fail if this is the last instruction.
8846 1.76 pooka $ac_cs_success || { (exit 1); exit 1; }
8847 1.1 tv fi
8848 1.1 tv
8849