configure revision 1.62 1 1.1 tv #! /bin/sh
2 1.1 tv # Guess values for system-dependent variables and create Makefiles.
3 1.61 christos # Generated by GNU Autoconf 2.59 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.61 christos # Copyright (C) 2003 Free Software Foundation, Inc.
8 1.1 tv # This configure script is free software; the Free Software Foundation
9 1.1 tv # gives unlimited permission to copy, distribute and modify it.
10 1.61 christos ## --------------------- ##
11 1.61 christos ## M4sh Initialization. ##
12 1.61 christos ## --------------------- ##
13 1.1 tv
14 1.61 christos # Be Bourne compatible
15 1.61 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 1.61 christos emulate sh
17 1.61 christos NULLCMD=:
18 1.61 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 1.61 christos # is contrary to our usage. Disable this feature.
20 1.61 christos alias -g '${1+"$@"}'='"$@"'
21 1.61 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 1.61 christos set -o posix
23 1.61 christos fi
24 1.61 christos DUALCASE=1; export DUALCASE # for MKS sh
25 1.61 christos
26 1.61 christos # Support unset when possible.
27 1.61 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 1.61 christos as_unset=unset
29 1.61 christos else
30 1.61 christos as_unset=false
31 1.61 christos fi
32 1.61 christos
33 1.61 christos
34 1.61 christos # Work around bugs in pre-3.0 UWIN ksh.
35 1.61 christos $as_unset ENV MAIL MAILPATH
36 1.61 christos PS1='$ '
37 1.61 christos PS2='> '
38 1.61 christos PS4='+ '
39 1.61 christos
40 1.61 christos # NLS nuisances.
41 1.61 christos for as_var in \
42 1.61 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 1.61 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 1.61 christos LC_TELEPHONE LC_TIME
45 1.61 christos do
46 1.61 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 1.61 christos eval $as_var=C; export $as_var
48 1.61 christos else
49 1.61 christos $as_unset $as_var
50 1.61 christos fi
51 1.61 christos done
52 1.61 christos
53 1.61 christos # Required to use basename.
54 1.61 christos if expr a : '\(a\)' >/dev/null 2>&1; then
55 1.61 christos as_expr=expr
56 1.61 christos else
57 1.61 christos as_expr=false
58 1.61 christos fi
59 1.61 christos
60 1.61 christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 1.61 christos as_basename=basename
62 1.61 christos else
63 1.61 christos as_basename=false
64 1.61 christos fi
65 1.61 christos
66 1.61 christos
67 1.61 christos # Name of the executable.
68 1.61 christos as_me=`$as_basename "$0" ||
69 1.61 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 1.61 christos X"$0" : 'X\(//\)$' \| \
71 1.61 christos X"$0" : 'X\(/\)$' \| \
72 1.61 christos . : '\(.\)' 2>/dev/null ||
73 1.61 christos echo X/"$0" |
74 1.61 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 1.61 christos /^X\/\(\/\/\)$/{ s//\1/; q; }
76 1.61 christos /^X\/\(\/\).*/{ s//\1/; q; }
77 1.61 christos s/.*/./; q'`
78 1.61 christos
79 1.61 christos
80 1.61 christos # PATH needs CR, and LINENO needs CR and PATH.
81 1.1 tv # Avoid depending upon Character Ranges.
82 1.1 tv as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 1.1 tv as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 1.1 tv as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 1.1 tv as_cr_digits='0123456789'
86 1.1 tv as_cr_alnum=$as_cr_Letters$as_cr_digits
87 1.1 tv
88 1.61 christos # The user is always right.
89 1.61 christos if test "${PATH_SEPARATOR+set}" != set; then
90 1.61 christos echo "#! /bin/sh" >conf$$.sh
91 1.61 christos echo "exit 0" >>conf$$.sh
92 1.61 christos chmod +x conf$$.sh
93 1.61 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 1.61 christos PATH_SEPARATOR=';'
95 1.61 christos else
96 1.61 christos PATH_SEPARATOR=:
97 1.61 christos fi
98 1.61 christos rm -f conf$$.sh
99 1.61 christos fi
100 1.61 christos
101 1.61 christos
102 1.61 christos as_lineno_1=$LINENO
103 1.61 christos as_lineno_2=$LINENO
104 1.61 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 1.61 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
106 1.61 christos test "x$as_lineno_3" = "x$as_lineno_2" || {
107 1.61 christos # Find who we are. Look in the path if we contain no path at all
108 1.61 christos # relative or not.
109 1.61 christos case $0 in
110 1.61 christos *[\\/]* ) as_myself=$0 ;;
111 1.61 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 1.61 christos for as_dir in $PATH
113 1.61 christos do
114 1.61 christos IFS=$as_save_IFS
115 1.61 christos test -z "$as_dir" && as_dir=.
116 1.61 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 1.61 christos done
118 1.61 christos
119 1.61 christos ;;
120 1.61 christos esac
121 1.61 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
122 1.61 christos # in which case we are not to be found in the path.
123 1.61 christos if test "x$as_myself" = x; then
124 1.61 christos as_myself=$0
125 1.61 christos fi
126 1.61 christos if test ! -f "$as_myself"; then
127 1.61 christos { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 1.61 christos { (exit 1); exit 1; }; }
129 1.61 christos fi
130 1.61 christos case $CONFIG_SHELL in
131 1.61 christos '')
132 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 1.61 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 1.61 christos do
135 1.61 christos IFS=$as_save_IFS
136 1.61 christos test -z "$as_dir" && as_dir=.
137 1.61 christos for as_base in sh bash ksh sh5; do
138 1.61 christos case $as_dir in
139 1.61 christos /*)
140 1.61 christos if ("$as_dir/$as_base" -c '
141 1.61 christos as_lineno_1=$LINENO
142 1.61 christos as_lineno_2=$LINENO
143 1.61 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 1.61 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
145 1.61 christos test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 1.61 christos $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 1.61 christos $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 1.61 christos CONFIG_SHELL=$as_dir/$as_base
149 1.61 christos export CONFIG_SHELL
150 1.61 christos exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 1.61 christos fi;;
152 1.61 christos esac
153 1.61 christos done
154 1.61 christos done
155 1.61 christos ;;
156 1.61 christos esac
157 1.61 christos
158 1.61 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 1.61 christos # uniformly replaced by the line number. The first 'sed' inserts a
160 1.61 christos # line-number line before each line; the second 'sed' does the real
161 1.61 christos # work. The second script uses 'N' to pair each line-number line
162 1.61 christos # with the numbered line, and appends trailing '-' during
163 1.61 christos # substitution so that $LINENO is not a special case at line end.
164 1.61 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 1.61 christos # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 1.61 christos sed '=' <$as_myself |
167 1.61 christos sed '
168 1.61 christos N
169 1.61 christos s,$,-,
170 1.61 christos : loop
171 1.61 christos s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 1.61 christos t loop
173 1.61 christos s,-$,,
174 1.61 christos s,^['$as_cr_digits']*\n,,
175 1.61 christos ' >$as_me.lineno &&
176 1.61 christos chmod +x $as_me.lineno ||
177 1.61 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 1.61 christos { (exit 1); exit 1; }; }
179 1.53 dogcow
180 1.61 christos # Don't try to exec as it changes $[0], causing all sort of problems
181 1.61 christos # (the dirname of $[0] is not the place where we might find the
182 1.61 christos # original and so on. Autoconf is especially sensible to this).
183 1.61 christos . ./$as_me.lineno
184 1.61 christos # Exit status is that of the last command.
185 1.61 christos exit
186 1.61 christos }
187 1.53 dogcow
188 1.48 jmc
189 1.61 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 1.61 christos *c*,-n*) ECHO_N= ECHO_C='
191 1.61 christos ' ECHO_T=' ' ;;
192 1.61 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 1.61 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 1.61 christos esac
195 1.1 tv
196 1.1 tv if expr a : '\(a\)' >/dev/null 2>&1; then
197 1.1 tv as_expr=expr
198 1.1 tv else
199 1.1 tv as_expr=false
200 1.1 tv fi
201 1.1 tv
202 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
203 1.1 tv echo >conf$$.file
204 1.1 tv if ln -s conf$$.file conf$$ 2>/dev/null; then
205 1.1 tv # We could just check for DJGPP; but this test a) works b) is more generic
206 1.1 tv # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 1.1 tv if test -f conf$$.exe; then
208 1.1 tv # Don't use ln at all; we don't have any links
209 1.1 tv as_ln_s='cp -p'
210 1.1 tv else
211 1.1 tv as_ln_s='ln -s'
212 1.1 tv fi
213 1.1 tv elif ln conf$$.file conf$$ 2>/dev/null; then
214 1.1 tv as_ln_s=ln
215 1.1 tv else
216 1.1 tv as_ln_s='cp -p'
217 1.1 tv fi
218 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
219 1.1 tv
220 1.61 christos if mkdir -p . 2>/dev/null; then
221 1.61 christos as_mkdir_p=:
222 1.61 christos else
223 1.61 christos test -d ./-p && rmdir ./-p
224 1.61 christos as_mkdir_p=false
225 1.61 christos fi
226 1.61 christos
227 1.60 apb as_executable_p="test -f"
228 1.60 apb
229 1.61 christos # Sed expression to map a string onto a valid CPP name.
230 1.61 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 1.61 christos
232 1.61 christos # Sed expression to map a string onto a valid variable name.
233 1.61 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 1.53 dogcow
235 1.1 tv
236 1.1 tv # IFS
237 1.1 tv # We need space, tab and new line, in precisely that order.
238 1.1 tv as_nl='
239 1.1 tv '
240 1.1 tv IFS=" $as_nl"
241 1.1 tv
242 1.1 tv # CDPATH.
243 1.61 christos $as_unset CDPATH
244 1.61 christos
245 1.1 tv
246 1.1 tv # Name of the host.
247 1.1 tv # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 1.1 tv # so uname gets run too.
249 1.1 tv ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 1.1 tv
251 1.1 tv exec 6>&1
252 1.1 tv
253 1.1 tv #
254 1.1 tv # Initializations.
255 1.1 tv #
256 1.1 tv ac_default_prefix=/usr/local
257 1.61 christos ac_config_libobj_dir=.
258 1.1 tv cross_compiling=no
259 1.1 tv subdirs=
260 1.61 christos MFLAGS=
261 1.61 christos MAKEFLAGS=
262 1.1 tv SHELL=${CONFIG_SHELL-/bin/sh}
263 1.1 tv
264 1.1 tv # Maximum number of lines to put in a shell here document.
265 1.1 tv # This variable seems obsolete. It should probably be removed, and
266 1.1 tv # only ac_max_sed_lines should be used.
267 1.1 tv : ${ac_max_here_lines=38}
268 1.1 tv
269 1.61 christos # Identity of this package.
270 1.61 christos PACKAGE_NAME='libnbcompat'
271 1.61 christos PACKAGE_TARNAME='libnbcompat'
272 1.61 christos PACKAGE_VERSION='noversion'
273 1.61 christos PACKAGE_STRING='libnbcompat noversion'
274 1.61 christos PACKAGE_BUGREPORT='lib-bug-people (at] NetBSD.org'
275 1.61 christos
276 1.1 tv # Factoring default headers for most tests.
277 1.1 tv ac_includes_default="\
278 1.1 tv #include <stdio.h>
279 1.1 tv #if HAVE_SYS_TYPES_H
280 1.1 tv # include <sys/types.h>
281 1.1 tv #endif
282 1.1 tv #if HAVE_SYS_STAT_H
283 1.1 tv # include <sys/stat.h>
284 1.1 tv #endif
285 1.1 tv #if STDC_HEADERS
286 1.1 tv # include <stdlib.h>
287 1.1 tv # include <stddef.h>
288 1.1 tv #else
289 1.1 tv # if HAVE_STDLIB_H
290 1.1 tv # include <stdlib.h>
291 1.1 tv # endif
292 1.1 tv #endif
293 1.1 tv #if HAVE_STRING_H
294 1.1 tv # if !STDC_HEADERS && HAVE_MEMORY_H
295 1.1 tv # include <memory.h>
296 1.1 tv # endif
297 1.1 tv # include <string.h>
298 1.1 tv #endif
299 1.1 tv #if HAVE_STRINGS_H
300 1.1 tv # include <strings.h>
301 1.1 tv #endif
302 1.1 tv #if HAVE_INTTYPES_H
303 1.1 tv # include <inttypes.h>
304 1.1 tv #else
305 1.1 tv # if HAVE_STDINT_H
306 1.1 tv # include <stdint.h>
307 1.1 tv # endif
308 1.1 tv #endif
309 1.1 tv #if HAVE_UNISTD_H
310 1.1 tv # include <unistd.h>
311 1.1 tv #endif"
312 1.1 tv
313 1.61 christos ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP BSHELL ALLOCA LIBOBJS LTLIBOBJS'
314 1.61 christos ac_subst_files=''
315 1.61 christos
316 1.1 tv # Initialize some variables set by options.
317 1.1 tv ac_init_help=
318 1.1 tv ac_init_version=false
319 1.1 tv # The variables have the same names as the options, with
320 1.1 tv # dashes changed to underlines.
321 1.1 tv cache_file=/dev/null
322 1.1 tv exec_prefix=NONE
323 1.1 tv no_create=
324 1.1 tv no_recursion=
325 1.1 tv prefix=NONE
326 1.1 tv program_prefix=NONE
327 1.1 tv program_suffix=NONE
328 1.1 tv program_transform_name=s,x,x,
329 1.1 tv silent=
330 1.1 tv site=
331 1.1 tv srcdir=
332 1.1 tv verbose=
333 1.1 tv x_includes=NONE
334 1.1 tv x_libraries=NONE
335 1.1 tv
336 1.1 tv # Installation directory options.
337 1.1 tv # These are left unexpanded so users can "make install exec_prefix=/foo"
338 1.1 tv # and all the variables that are supposed to be based on exec_prefix
339 1.1 tv # by default will actually change.
340 1.1 tv # Use braces instead of parens because sh, perl, etc. also accept them.
341 1.1 tv bindir='${exec_prefix}/bin'
342 1.1 tv sbindir='${exec_prefix}/sbin'
343 1.1 tv libexecdir='${exec_prefix}/libexec'
344 1.1 tv datadir='${prefix}/share'
345 1.1 tv sysconfdir='${prefix}/etc'
346 1.1 tv sharedstatedir='${prefix}/com'
347 1.1 tv localstatedir='${prefix}/var'
348 1.1 tv libdir='${exec_prefix}/lib'
349 1.1 tv includedir='${prefix}/include'
350 1.1 tv oldincludedir='/usr/include'
351 1.1 tv infodir='${prefix}/info'
352 1.1 tv mandir='${prefix}/man'
353 1.1 tv
354 1.1 tv ac_prev=
355 1.1 tv for ac_option
356 1.1 tv do
357 1.1 tv # If the previous option needs an argument, assign it.
358 1.1 tv if test -n "$ac_prev"; then
359 1.1 tv eval "$ac_prev=\$ac_option"
360 1.1 tv ac_prev=
361 1.1 tv continue
362 1.1 tv fi
363 1.1 tv
364 1.1 tv ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 1.1 tv
366 1.1 tv # Accept the important Cygnus configure options, so we can diagnose typos.
367 1.1 tv
368 1.1 tv case $ac_option in
369 1.1 tv
370 1.1 tv -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 1.1 tv ac_prev=bindir ;;
372 1.1 tv -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 1.1 tv bindir=$ac_optarg ;;
374 1.1 tv
375 1.1 tv -build | --build | --buil | --bui | --bu)
376 1.1 tv ac_prev=build_alias ;;
377 1.1 tv -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 1.1 tv build_alias=$ac_optarg ;;
379 1.1 tv
380 1.1 tv -cache-file | --cache-file | --cache-fil | --cache-fi \
381 1.1 tv | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 1.1 tv ac_prev=cache_file ;;
383 1.1 tv -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 1.1 tv | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 1.1 tv cache_file=$ac_optarg ;;
386 1.1 tv
387 1.1 tv --config-cache | -C)
388 1.1 tv cache_file=config.cache ;;
389 1.1 tv
390 1.1 tv -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 1.1 tv ac_prev=datadir ;;
392 1.1 tv -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 1.1 tv | --da=*)
394 1.1 tv datadir=$ac_optarg ;;
395 1.1 tv
396 1.1 tv -disable-* | --disable-*)
397 1.1 tv ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 1.1 tv # Reject names that are not valid shell variable names.
399 1.1 tv expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 1.1 tv { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 1.1 tv { (exit 1); exit 1; }; }
402 1.1 tv ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 1.1 tv eval "enable_$ac_feature=no" ;;
404 1.1 tv
405 1.1 tv -enable-* | --enable-*)
406 1.1 tv ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 1.1 tv # Reject names that are not valid shell variable names.
408 1.1 tv expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 1.1 tv { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 1.1 tv { (exit 1); exit 1; }; }
411 1.1 tv ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 1.1 tv case $ac_option in
413 1.1 tv *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 1.1 tv *) ac_optarg=yes ;;
415 1.1 tv esac
416 1.1 tv eval "enable_$ac_feature='$ac_optarg'" ;;
417 1.1 tv
418 1.1 tv -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 1.1 tv | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 1.1 tv | --exec | --exe | --ex)
421 1.1 tv ac_prev=exec_prefix ;;
422 1.1 tv -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 1.1 tv | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 1.1 tv | --exec=* | --exe=* | --ex=*)
425 1.1 tv exec_prefix=$ac_optarg ;;
426 1.1 tv
427 1.1 tv -gas | --gas | --ga | --g)
428 1.1 tv # Obsolete; use --with-gas.
429 1.1 tv with_gas=yes ;;
430 1.1 tv
431 1.1 tv -help | --help | --hel | --he | -h)
432 1.1 tv ac_init_help=long ;;
433 1.1 tv -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 1.1 tv ac_init_help=recursive ;;
435 1.1 tv -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 1.1 tv ac_init_help=short ;;
437 1.1 tv
438 1.1 tv -host | --host | --hos | --ho)
439 1.1 tv ac_prev=host_alias ;;
440 1.1 tv -host=* | --host=* | --hos=* | --ho=*)
441 1.1 tv host_alias=$ac_optarg ;;
442 1.1 tv
443 1.1 tv -includedir | --includedir | --includedi | --included | --include \
444 1.1 tv | --includ | --inclu | --incl | --inc)
445 1.1 tv ac_prev=includedir ;;
446 1.1 tv -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 1.1 tv | --includ=* | --inclu=* | --incl=* | --inc=*)
448 1.1 tv includedir=$ac_optarg ;;
449 1.1 tv
450 1.1 tv -infodir | --infodir | --infodi | --infod | --info | --inf)
451 1.1 tv ac_prev=infodir ;;
452 1.1 tv -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 1.1 tv infodir=$ac_optarg ;;
454 1.1 tv
455 1.1 tv -libdir | --libdir | --libdi | --libd)
456 1.1 tv ac_prev=libdir ;;
457 1.1 tv -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 1.1 tv libdir=$ac_optarg ;;
459 1.1 tv
460 1.1 tv -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 1.1 tv | --libexe | --libex | --libe)
462 1.1 tv ac_prev=libexecdir ;;
463 1.1 tv -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 1.1 tv | --libexe=* | --libex=* | --libe=*)
465 1.1 tv libexecdir=$ac_optarg ;;
466 1.1 tv
467 1.1 tv -localstatedir | --localstatedir | --localstatedi | --localstated \
468 1.1 tv | --localstate | --localstat | --localsta | --localst \
469 1.1 tv | --locals | --local | --loca | --loc | --lo)
470 1.1 tv ac_prev=localstatedir ;;
471 1.1 tv -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 1.1 tv | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 1.1 tv | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 1.1 tv localstatedir=$ac_optarg ;;
475 1.1 tv
476 1.1 tv -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 1.1 tv ac_prev=mandir ;;
478 1.1 tv -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 1.1 tv mandir=$ac_optarg ;;
480 1.1 tv
481 1.1 tv -nfp | --nfp | --nf)
482 1.1 tv # Obsolete; use --without-fp.
483 1.1 tv with_fp=no ;;
484 1.1 tv
485 1.1 tv -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 1.61 christos | --no-cr | --no-c | -n)
487 1.1 tv no_create=yes ;;
488 1.1 tv
489 1.1 tv -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 1.1 tv | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 1.1 tv no_recursion=yes ;;
492 1.1 tv
493 1.1 tv -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 1.1 tv | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 1.1 tv | --oldin | --oldi | --old | --ol | --o)
496 1.1 tv ac_prev=oldincludedir ;;
497 1.1 tv -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 1.1 tv | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 1.1 tv | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 1.1 tv oldincludedir=$ac_optarg ;;
501 1.1 tv
502 1.1 tv -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 1.1 tv ac_prev=prefix ;;
504 1.1 tv -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 1.1 tv prefix=$ac_optarg ;;
506 1.1 tv
507 1.1 tv -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 1.1 tv | --program-pre | --program-pr | --program-p)
509 1.1 tv ac_prev=program_prefix ;;
510 1.1 tv -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 1.1 tv | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 1.1 tv program_prefix=$ac_optarg ;;
513 1.1 tv
514 1.1 tv -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 1.1 tv | --program-suf | --program-su | --program-s)
516 1.1 tv ac_prev=program_suffix ;;
517 1.1 tv -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 1.1 tv | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 1.1 tv program_suffix=$ac_optarg ;;
520 1.1 tv
521 1.1 tv -program-transform-name | --program-transform-name \
522 1.1 tv | --program-transform-nam | --program-transform-na \
523 1.1 tv | --program-transform-n | --program-transform- \
524 1.1 tv | --program-transform | --program-transfor \
525 1.1 tv | --program-transfo | --program-transf \
526 1.1 tv | --program-trans | --program-tran \
527 1.1 tv | --progr-tra | --program-tr | --program-t)
528 1.1 tv ac_prev=program_transform_name ;;
529 1.1 tv -program-transform-name=* | --program-transform-name=* \
530 1.1 tv | --program-transform-nam=* | --program-transform-na=* \
531 1.1 tv | --program-transform-n=* | --program-transform-=* \
532 1.1 tv | --program-transform=* | --program-transfor=* \
533 1.1 tv | --program-transfo=* | --program-transf=* \
534 1.1 tv | --program-trans=* | --program-tran=* \
535 1.1 tv | --progr-tra=* | --program-tr=* | --program-t=*)
536 1.1 tv program_transform_name=$ac_optarg ;;
537 1.1 tv
538 1.1 tv -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 1.1 tv | -silent | --silent | --silen | --sile | --sil)
540 1.1 tv silent=yes ;;
541 1.1 tv
542 1.1 tv -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 1.1 tv ac_prev=sbindir ;;
544 1.1 tv -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 1.1 tv | --sbi=* | --sb=*)
546 1.1 tv sbindir=$ac_optarg ;;
547 1.1 tv
548 1.1 tv -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 1.1 tv | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 1.1 tv | --sharedst | --shareds | --shared | --share | --shar \
551 1.1 tv | --sha | --sh)
552 1.1 tv ac_prev=sharedstatedir ;;
553 1.1 tv -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 1.1 tv | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 1.1 tv | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 1.1 tv | --sha=* | --sh=*)
557 1.1 tv sharedstatedir=$ac_optarg ;;
558 1.1 tv
559 1.1 tv -site | --site | --sit)
560 1.1 tv ac_prev=site ;;
561 1.1 tv -site=* | --site=* | --sit=*)
562 1.1 tv site=$ac_optarg ;;
563 1.1 tv
564 1.1 tv -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 1.1 tv ac_prev=srcdir ;;
566 1.1 tv -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 1.1 tv srcdir=$ac_optarg ;;
568 1.1 tv
569 1.1 tv -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 1.1 tv | --syscon | --sysco | --sysc | --sys | --sy)
571 1.1 tv ac_prev=sysconfdir ;;
572 1.1 tv -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 1.1 tv | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 1.1 tv sysconfdir=$ac_optarg ;;
575 1.1 tv
576 1.1 tv -target | --target | --targe | --targ | --tar | --ta | --t)
577 1.1 tv ac_prev=target_alias ;;
578 1.1 tv -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 1.1 tv target_alias=$ac_optarg ;;
580 1.1 tv
581 1.1 tv -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 1.1 tv verbose=yes ;;
583 1.1 tv
584 1.1 tv -version | --version | --versio | --versi | --vers | -V)
585 1.1 tv ac_init_version=: ;;
586 1.1 tv
587 1.1 tv -with-* | --with-*)
588 1.1 tv ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 1.1 tv # Reject names that are not valid shell variable names.
590 1.1 tv expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 1.1 tv { echo "$as_me: error: invalid package name: $ac_package" >&2
592 1.1 tv { (exit 1); exit 1; }; }
593 1.1 tv ac_package=`echo $ac_package| sed 's/-/_/g'`
594 1.1 tv case $ac_option in
595 1.1 tv *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 1.1 tv *) ac_optarg=yes ;;
597 1.1 tv esac
598 1.1 tv eval "with_$ac_package='$ac_optarg'" ;;
599 1.1 tv
600 1.1 tv -without-* | --without-*)
601 1.1 tv ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 1.1 tv # Reject names that are not valid shell variable names.
603 1.1 tv expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 1.1 tv { echo "$as_me: error: invalid package name: $ac_package" >&2
605 1.1 tv { (exit 1); exit 1; }; }
606 1.1 tv ac_package=`echo $ac_package | sed 's/-/_/g'`
607 1.1 tv eval "with_$ac_package=no" ;;
608 1.1 tv
609 1.1 tv --x)
610 1.1 tv # Obsolete; use --with-x.
611 1.1 tv with_x=yes ;;
612 1.1 tv
613 1.1 tv -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 1.1 tv | --x-incl | --x-inc | --x-in | --x-i)
615 1.1 tv ac_prev=x_includes ;;
616 1.1 tv -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 1.1 tv | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 1.1 tv x_includes=$ac_optarg ;;
619 1.1 tv
620 1.1 tv -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 1.1 tv | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 1.1 tv ac_prev=x_libraries ;;
623 1.1 tv -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 1.1 tv | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 1.1 tv x_libraries=$ac_optarg ;;
626 1.1 tv
627 1.1 tv -*) { echo "$as_me: error: unrecognized option: $ac_option
628 1.1 tv Try \`$0 --help' for more information." >&2
629 1.1 tv { (exit 1); exit 1; }; }
630 1.1 tv ;;
631 1.1 tv
632 1.1 tv *=*)
633 1.1 tv ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 1.1 tv # Reject names that are not valid shell variable names.
635 1.1 tv expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 1.1 tv { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 1.1 tv { (exit 1); exit 1; }; }
638 1.1 tv ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 1.1 tv eval "$ac_envvar='$ac_optarg'"
640 1.1 tv export $ac_envvar ;;
641 1.1 tv
642 1.1 tv *)
643 1.1 tv # FIXME: should be removed in autoconf 3.0.
644 1.1 tv echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 1.1 tv expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 1.1 tv echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 1.1 tv : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 1.1 tv ;;
649 1.1 tv
650 1.1 tv esac
651 1.1 tv done
652 1.1 tv
653 1.1 tv if test -n "$ac_prev"; then
654 1.1 tv ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 1.1 tv { echo "$as_me: error: missing argument to $ac_option" >&2
656 1.1 tv { (exit 1); exit 1; }; }
657 1.1 tv fi
658 1.1 tv
659 1.1 tv # Be sure to have absolute paths.
660 1.1 tv for ac_var in exec_prefix prefix
661 1.1 tv do
662 1.1 tv eval ac_val=$`echo $ac_var`
663 1.1 tv case $ac_val in
664 1.1 tv [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 1.61 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 1.1 tv { (exit 1); exit 1; }; };;
667 1.1 tv esac
668 1.1 tv done
669 1.1 tv
670 1.1 tv # Be sure to have absolute paths.
671 1.1 tv for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 1.61 christos localstatedir libdir includedir oldincludedir infodir mandir
673 1.1 tv do
674 1.1 tv eval ac_val=$`echo $ac_var`
675 1.1 tv case $ac_val in
676 1.1 tv [\\/$]* | ?:[\\/]* ) ;;
677 1.61 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 1.1 tv { (exit 1); exit 1; }; };;
679 1.1 tv esac
680 1.1 tv done
681 1.1 tv
682 1.1 tv # There might be people who depend on the old broken behavior: `$host'
683 1.1 tv # used to hold the argument of --host etc.
684 1.61 christos # FIXME: To remove some day.
685 1.1 tv build=$build_alias
686 1.1 tv host=$host_alias
687 1.1 tv target=$target_alias
688 1.1 tv
689 1.61 christos # FIXME: To remove some day.
690 1.1 tv if test "x$host_alias" != x; then
691 1.1 tv if test "x$build_alias" = x; then
692 1.1 tv cross_compiling=maybe
693 1.1 tv echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 1.1 tv If a cross compiler is detected then cross compile mode will be used." >&2
695 1.1 tv elif test "x$build_alias" != "x$host_alias"; then
696 1.1 tv cross_compiling=yes
697 1.1 tv fi
698 1.1 tv fi
699 1.1 tv
700 1.1 tv ac_tool_prefix=
701 1.1 tv test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 1.1 tv
703 1.1 tv test "$silent" = yes && exec 6>/dev/null
704 1.1 tv
705 1.61 christos
706 1.1 tv # Find the source files, if location was not specified.
707 1.1 tv if test -z "$srcdir"; then
708 1.1 tv ac_srcdir_defaulted=yes
709 1.1 tv # Try the directory containing this script, then its parent.
710 1.61 christos ac_confdir=`(dirname "$0") 2>/dev/null ||
711 1.61 christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 1.61 christos X"$0" : 'X\(//\)[^/]' \| \
713 1.61 christos X"$0" : 'X\(//\)$' \| \
714 1.61 christos X"$0" : 'X\(/\)' \| \
715 1.61 christos . : '\(.\)' 2>/dev/null ||
716 1.61 christos echo X"$0" |
717 1.61 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 1.61 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 1.61 christos /^X\(\/\/\)$/{ s//\1/; q; }
720 1.61 christos /^X\(\/\).*/{ s//\1/; q; }
721 1.61 christos s/.*/./; q'`
722 1.1 tv srcdir=$ac_confdir
723 1.1 tv if test ! -r $srcdir/$ac_unique_file; then
724 1.1 tv srcdir=..
725 1.1 tv fi
726 1.1 tv else
727 1.1 tv ac_srcdir_defaulted=no
728 1.1 tv fi
729 1.1 tv if test ! -r $srcdir/$ac_unique_file; then
730 1.1 tv if test "$ac_srcdir_defaulted" = yes; then
731 1.61 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 1.1 tv { (exit 1); exit 1; }; }
733 1.1 tv else
734 1.61 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 1.1 tv { (exit 1); exit 1; }; }
736 1.1 tv fi
737 1.1 tv fi
738 1.61 christos (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 1.61 christos { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 1.61 christos { (exit 1); exit 1; }; }
741 1.1 tv srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 1.1 tv ac_env_build_alias_set=${build_alias+set}
743 1.1 tv ac_env_build_alias_value=$build_alias
744 1.1 tv ac_cv_env_build_alias_set=${build_alias+set}
745 1.1 tv ac_cv_env_build_alias_value=$build_alias
746 1.1 tv ac_env_host_alias_set=${host_alias+set}
747 1.1 tv ac_env_host_alias_value=$host_alias
748 1.1 tv ac_cv_env_host_alias_set=${host_alias+set}
749 1.1 tv ac_cv_env_host_alias_value=$host_alias
750 1.1 tv ac_env_target_alias_set=${target_alias+set}
751 1.1 tv ac_env_target_alias_value=$target_alias
752 1.1 tv ac_cv_env_target_alias_set=${target_alias+set}
753 1.1 tv ac_cv_env_target_alias_value=$target_alias
754 1.1 tv ac_env_CC_set=${CC+set}
755 1.1 tv ac_env_CC_value=$CC
756 1.1 tv ac_cv_env_CC_set=${CC+set}
757 1.1 tv ac_cv_env_CC_value=$CC
758 1.1 tv ac_env_CFLAGS_set=${CFLAGS+set}
759 1.1 tv ac_env_CFLAGS_value=$CFLAGS
760 1.1 tv ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 1.1 tv ac_cv_env_CFLAGS_value=$CFLAGS
762 1.1 tv ac_env_LDFLAGS_set=${LDFLAGS+set}
763 1.1 tv ac_env_LDFLAGS_value=$LDFLAGS
764 1.1 tv ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 1.1 tv ac_cv_env_LDFLAGS_value=$LDFLAGS
766 1.1 tv ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 1.1 tv ac_env_CPPFLAGS_value=$CPPFLAGS
768 1.1 tv ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 1.1 tv ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 1.1 tv ac_env_CPP_set=${CPP+set}
771 1.1 tv ac_env_CPP_value=$CPP
772 1.1 tv ac_cv_env_CPP_set=${CPP+set}
773 1.1 tv ac_cv_env_CPP_value=$CPP
774 1.1 tv
775 1.1 tv #
776 1.1 tv # Report the --help message.
777 1.1 tv #
778 1.1 tv if test "$ac_init_help" = "long"; then
779 1.1 tv # Omit some internal or obsolete options to make the list less imposing.
780 1.1 tv # This message is too long to be a string in the A/UX 3.1 sh.
781 1.61 christos cat <<_ACEOF
782 1.1 tv \`configure' configures libnbcompat noversion to adapt to many kinds of systems.
783 1.1 tv
784 1.1 tv Usage: $0 [OPTION]... [VAR=VALUE]...
785 1.1 tv
786 1.1 tv To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 1.1 tv VAR=VALUE. See below for descriptions of some of the useful variables.
788 1.1 tv
789 1.1 tv Defaults for the options are specified in brackets.
790 1.1 tv
791 1.1 tv Configuration:
792 1.1 tv -h, --help display this help and exit
793 1.1 tv --help=short display options specific to this package
794 1.1 tv --help=recursive display the short help of all the included packages
795 1.1 tv -V, --version display version information and exit
796 1.1 tv -q, --quiet, --silent do not print \`checking...' messages
797 1.1 tv --cache-file=FILE cache test results in FILE [disabled]
798 1.1 tv -C, --config-cache alias for \`--cache-file=config.cache'
799 1.1 tv -n, --no-create do not create output files
800 1.1 tv --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 1.1 tv
802 1.61 christos _ACEOF
803 1.1 tv
804 1.61 christos cat <<_ACEOF
805 1.1 tv Installation directories:
806 1.1 tv --prefix=PREFIX install architecture-independent files in PREFIX
807 1.61 christos [$ac_default_prefix]
808 1.1 tv --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 1.61 christos [PREFIX]
810 1.1 tv
811 1.1 tv By default, \`make install' will install all the files in
812 1.1 tv \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 1.1 tv an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 1.1 tv for instance \`--prefix=\$HOME'.
815 1.1 tv
816 1.1 tv For better control, use the options below.
817 1.1 tv
818 1.1 tv Fine tuning of the installation directories:
819 1.1 tv --bindir=DIR user executables [EPREFIX/bin]
820 1.1 tv --sbindir=DIR system admin executables [EPREFIX/sbin]
821 1.1 tv --libexecdir=DIR program executables [EPREFIX/libexec]
822 1.1 tv --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 1.1 tv --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 1.1 tv --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 1.1 tv --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 1.1 tv --libdir=DIR object code libraries [EPREFIX/lib]
827 1.1 tv --includedir=DIR C header files [PREFIX/include]
828 1.1 tv --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 1.1 tv --infodir=DIR info documentation [PREFIX/info]
830 1.1 tv --mandir=DIR man documentation [PREFIX/man]
831 1.61 christos _ACEOF
832 1.1 tv
833 1.61 christos cat <<\_ACEOF
834 1.61 christos _ACEOF
835 1.1 tv fi
836 1.1 tv
837 1.1 tv if test -n "$ac_init_help"; then
838 1.1 tv case $ac_init_help in
839 1.1 tv short | recursive ) echo "Configuration of libnbcompat noversion:";;
840 1.1 tv esac
841 1.61 christos cat <<\_ACEOF
842 1.1 tv
843 1.1 tv Some influential environment variables:
844 1.1 tv CC C compiler command
845 1.1 tv CFLAGS C compiler flags
846 1.1 tv LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
847 1.1 tv nonstandard directory <lib dir>
848 1.1 tv CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
849 1.1 tv headers in a nonstandard directory <include dir>
850 1.1 tv CPP C preprocessor
851 1.1 tv
852 1.1 tv Use these variables to override the choices made by `configure' or to help
853 1.1 tv it to find libraries and programs with nonstandard names/locations.
854 1.1 tv
855 1.41 salo Report bugs to <lib-bug-people@NetBSD.org>.
856 1.61 christos _ACEOF
857 1.1 tv fi
858 1.1 tv
859 1.1 tv if test "$ac_init_help" = "recursive"; then
860 1.1 tv # If there are subdirs, report their specific --help.
861 1.1 tv ac_popdir=`pwd`
862 1.61 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
863 1.61 christos test -d $ac_dir || continue
864 1.61 christos ac_builddir=.
865 1.61 christos
866 1.61 christos if test "$ac_dir" != .; then
867 1.61 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
868 1.61 christos # A "../" for each directory in $ac_dir_suffix.
869 1.61 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
870 1.61 christos else
871 1.61 christos ac_dir_suffix= ac_top_builddir=
872 1.61 christos fi
873 1.61 christos
874 1.61 christos case $srcdir in
875 1.61 christos .) # No --srcdir option. We are building in place.
876 1.61 christos ac_srcdir=.
877 1.61 christos if test -z "$ac_top_builddir"; then
878 1.61 christos ac_top_srcdir=.
879 1.61 christos else
880 1.61 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
881 1.61 christos fi ;;
882 1.61 christos [\\/]* | ?:[\\/]* ) # Absolute path.
883 1.61 christos ac_srcdir=$srcdir$ac_dir_suffix;
884 1.61 christos ac_top_srcdir=$srcdir ;;
885 1.61 christos *) # Relative path.
886 1.61 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
887 1.61 christos ac_top_srcdir=$ac_top_builddir$srcdir ;;
888 1.61 christos esac
889 1.61 christos
890 1.61 christos # Do not use `cd foo && pwd` to compute absolute paths, because
891 1.61 christos # the directories may not exist.
892 1.61 christos case `pwd` in
893 1.61 christos .) ac_abs_builddir="$ac_dir";;
894 1.61 christos *)
895 1.61 christos case "$ac_dir" in
896 1.61 christos .) ac_abs_builddir=`pwd`;;
897 1.61 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
898 1.61 christos *) ac_abs_builddir=`pwd`/"$ac_dir";;
899 1.61 christos esac;;
900 1.61 christos esac
901 1.61 christos case $ac_abs_builddir in
902 1.61 christos .) ac_abs_top_builddir=${ac_top_builddir}.;;
903 1.61 christos *)
904 1.61 christos case ${ac_top_builddir}. in
905 1.61 christos .) ac_abs_top_builddir=$ac_abs_builddir;;
906 1.61 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
907 1.61 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
908 1.61 christos esac;;
909 1.61 christos esac
910 1.61 christos case $ac_abs_builddir in
911 1.61 christos .) ac_abs_srcdir=$ac_srcdir;;
912 1.61 christos *)
913 1.61 christos case $ac_srcdir in
914 1.61 christos .) ac_abs_srcdir=$ac_abs_builddir;;
915 1.61 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
916 1.61 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
917 1.61 christos esac;;
918 1.61 christos esac
919 1.61 christos case $ac_abs_builddir in
920 1.61 christos .) ac_abs_top_srcdir=$ac_top_srcdir;;
921 1.61 christos *)
922 1.61 christos case $ac_top_srcdir in
923 1.61 christos .) ac_abs_top_srcdir=$ac_abs_builddir;;
924 1.61 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
925 1.61 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
926 1.61 christos esac;;
927 1.61 christos esac
928 1.1 tv
929 1.61 christos cd $ac_dir
930 1.1 tv # Check for guested configure; otherwise get Cygnus style configure.
931 1.61 christos if test -f $ac_srcdir/configure.gnu; then
932 1.1 tv echo
933 1.61 christos $SHELL $ac_srcdir/configure.gnu --help=recursive
934 1.61 christos elif test -f $ac_srcdir/configure; then
935 1.1 tv echo
936 1.61 christos $SHELL $ac_srcdir/configure --help=recursive
937 1.61 christos elif test -f $ac_srcdir/configure.ac ||
938 1.61 christos test -f $ac_srcdir/configure.in; then
939 1.1 tv echo
940 1.1 tv $ac_configure --help
941 1.1 tv else
942 1.61 christos echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 1.1 tv fi
944 1.1 tv cd $ac_popdir
945 1.1 tv done
946 1.1 tv fi
947 1.1 tv
948 1.1 tv test -n "$ac_init_help" && exit 0
949 1.1 tv if $ac_init_version; then
950 1.61 christos cat <<\_ACEOF
951 1.1 tv libnbcompat configure noversion
952 1.61 christos generated by GNU Autoconf 2.59
953 1.1 tv
954 1.61 christos Copyright (C) 2003 Free Software Foundation, Inc.
955 1.1 tv This configure script is free software; the Free Software Foundation
956 1.1 tv gives unlimited permission to copy, distribute and modify it.
957 1.61 christos _ACEOF
958 1.1 tv exit 0
959 1.1 tv fi
960 1.1 tv exec 5>config.log
961 1.61 christos cat >&5 <<_ACEOF
962 1.1 tv This file contains any messages produced by compilers while
963 1.1 tv running configure, to aid debugging if configure makes a mistake.
964 1.1 tv
965 1.1 tv It was created by libnbcompat $as_me noversion, which was
966 1.61 christos generated by GNU Autoconf 2.59. Invocation command line was
967 1.1 tv
968 1.1 tv $ $0 $@
969 1.1 tv
970 1.61 christos _ACEOF
971 1.1 tv {
972 1.1 tv cat <<_ASUNAME
973 1.61 christos ## --------- ##
974 1.61 christos ## Platform. ##
975 1.61 christos ## --------- ##
976 1.1 tv
977 1.1 tv hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 1.1 tv uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 1.1 tv uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 1.1 tv uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 1.1 tv uname -v = `(uname -v) 2>/dev/null || echo unknown`
982 1.1 tv
983 1.1 tv /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 1.1 tv /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
985 1.1 tv
986 1.1 tv /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 1.1 tv /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 1.1 tv /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 1.1 tv hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 1.1 tv /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 1.1 tv /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 1.1 tv /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
993 1.1 tv
994 1.61 christos _ASUNAME
995 1.61 christos
996 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 1.61 christos for as_dir in $PATH
998 1.61 christos do
999 1.61 christos IFS=$as_save_IFS
1000 1.61 christos test -z "$as_dir" && as_dir=.
1001 1.61 christos echo "PATH: $as_dir"
1002 1.61 christos done
1003 1.60 apb
1004 1.1 tv } >&5
1005 1.1 tv
1006 1.61 christos cat >&5 <<_ACEOF
1007 1.61 christos
1008 1.61 christos
1009 1.61 christos ## ----------- ##
1010 1.61 christos ## Core tests. ##
1011 1.61 christos ## ----------- ##
1012 1.61 christos
1013 1.61 christos _ACEOF
1014 1.1 tv
1015 1.1 tv
1016 1.1 tv # Keep a trace of the command line.
1017 1.1 tv # Strip out --no-create and --no-recursion so they do not pile up.
1018 1.61 christos # Strip out --silent because we don't want to record it for future runs.
1019 1.1 tv # Also quote any args containing shell meta-characters.
1020 1.61 christos # Make two passes to allow for proper duplicate-argument suppression.
1021 1.1 tv ac_configure_args=
1022 1.61 christos ac_configure_args0=
1023 1.61 christos ac_configure_args1=
1024 1.1 tv ac_sep=
1025 1.61 christos ac_must_keep_next=false
1026 1.61 christos for ac_pass in 1 2
1027 1.1 tv do
1028 1.61 christos for ac_arg
1029 1.61 christos do
1030 1.61 christos case $ac_arg in
1031 1.61 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 1.61 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 1.61 christos | -silent | --silent | --silen | --sile | --sil)
1034 1.61 christos continue ;;
1035 1.61 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 1.61 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 1.61 christos esac
1038 1.61 christos case $ac_pass in
1039 1.61 christos 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040 1.61 christos 2)
1041 1.61 christos ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 1.61 christos if test $ac_must_keep_next = true; then
1043 1.61 christos ac_must_keep_next=false # Got value, back to normal.
1044 1.61 christos else
1045 1.61 christos case $ac_arg in
1046 1.61 christos *=* | --config-cache | -C | -disable-* | --disable-* \
1047 1.61 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 1.61 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 1.61 christos | -with-* | --with-* | -without-* | --without-* | --x)
1050 1.61 christos case "$ac_configure_args0 " in
1051 1.61 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052 1.61 christos esac
1053 1.61 christos ;;
1054 1.61 christos -* ) ac_must_keep_next=true ;;
1055 1.61 christos esac
1056 1.61 christos fi
1057 1.61 christos ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 1.61 christos # Get rid of the leading space.
1059 1.61 christos ac_sep=" "
1060 1.61 christos ;;
1061 1.61 christos esac
1062 1.61 christos done
1063 1.1 tv done
1064 1.61 christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 1.61 christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066 1.1 tv
1067 1.1 tv # When interrupted or exit'd, cleanup temporary files, and complete
1068 1.1 tv # config.log. We remove comments because anyway the quotes in there
1069 1.1 tv # would cause problems or look ugly.
1070 1.61 christos # WARNING: Be sure not to use single quotes in there, as some shells,
1071 1.61 christos # such as our DU 5.0 friend, will then `close' the trap.
1072 1.1 tv trap 'exit_status=$?
1073 1.1 tv # Save into config.log some information that might help in debugging.
1074 1.61 christos {
1075 1.61 christos echo
1076 1.61 christos
1077 1.61 christos cat <<\_ASBOX
1078 1.61 christos ## ---------------- ##
1079 1.61 christos ## Cache variables. ##
1080 1.61 christos ## ---------------- ##
1081 1.61 christos _ASBOX
1082 1.61 christos echo
1083 1.61 christos # The following way of writing the cache mishandles newlines in values,
1084 1.1 tv {
1085 1.1 tv (set) 2>&1 |
1086 1.1 tv case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087 1.1 tv *ac_space=\ *)
1088 1.1 tv sed -n \
1089 1.61 christos "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 1.61 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091 1.1 tv ;;
1092 1.1 tv *)
1093 1.1 tv sed -n \
1094 1.61 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 1.1 tv ;;
1096 1.1 tv esac;
1097 1.61 christos }
1098 1.61 christos echo
1099 1.61 christos
1100 1.61 christos cat <<\_ASBOX
1101 1.61 christos ## ----------------- ##
1102 1.61 christos ## Output variables. ##
1103 1.61 christos ## ----------------- ##
1104 1.61 christos _ASBOX
1105 1.61 christos echo
1106 1.61 christos for ac_var in $ac_subst_vars
1107 1.61 christos do
1108 1.61 christos eval ac_val=$`echo $ac_var`
1109 1.61 christos echo "$ac_var='"'"'$ac_val'"'"'"
1110 1.61 christos done | sort
1111 1.61 christos echo
1112 1.61 christos
1113 1.61 christos if test -n "$ac_subst_files"; then
1114 1.61 christos cat <<\_ASBOX
1115 1.61 christos ## ------------- ##
1116 1.61 christos ## Output files. ##
1117 1.61 christos ## ------------- ##
1118 1.61 christos _ASBOX
1119 1.61 christos echo
1120 1.61 christos for ac_var in $ac_subst_files
1121 1.61 christos do
1122 1.61 christos eval ac_val=$`echo $ac_var`
1123 1.61 christos echo "$ac_var='"'"'$ac_val'"'"'"
1124 1.61 christos done | sort
1125 1.61 christos echo
1126 1.61 christos fi
1127 1.61 christos
1128 1.61 christos if test -s confdefs.h; then
1129 1.61 christos cat <<\_ASBOX
1130 1.61 christos ## ----------- ##
1131 1.61 christos ## confdefs.h. ##
1132 1.61 christos ## ----------- ##
1133 1.61 christos _ASBOX
1134 1.61 christos echo
1135 1.61 christos sed "/^$/d" confdefs.h | sort
1136 1.61 christos echo
1137 1.61 christos fi
1138 1.61 christos test "$ac_signal" != 0 &&
1139 1.61 christos echo "$as_me: caught signal $ac_signal"
1140 1.61 christos echo "$as_me: exit $exit_status"
1141 1.61 christos } >&5
1142 1.61 christos rm -f core *.core &&
1143 1.61 christos rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144 1.1 tv exit $exit_status
1145 1.1 tv ' 0
1146 1.1 tv for ac_signal in 1 2 13 15; do
1147 1.1 tv trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 1.1 tv done
1149 1.1 tv ac_signal=0
1150 1.1 tv
1151 1.1 tv # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 1.1 tv rm -rf conftest* confdefs.h
1153 1.1 tv # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 1.1 tv echo >confdefs.h
1155 1.1 tv
1156 1.61 christos # Predefined preprocessor variables.
1157 1.61 christos
1158 1.61 christos cat >>confdefs.h <<_ACEOF
1159 1.61 christos #define PACKAGE_NAME "$PACKAGE_NAME"
1160 1.61 christos _ACEOF
1161 1.61 christos
1162 1.61 christos
1163 1.61 christos cat >>confdefs.h <<_ACEOF
1164 1.61 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 1.61 christos _ACEOF
1166 1.61 christos
1167 1.61 christos
1168 1.61 christos cat >>confdefs.h <<_ACEOF
1169 1.61 christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 1.61 christos _ACEOF
1171 1.61 christos
1172 1.61 christos
1173 1.61 christos cat >>confdefs.h <<_ACEOF
1174 1.61 christos #define PACKAGE_STRING "$PACKAGE_STRING"
1175 1.61 christos _ACEOF
1176 1.61 christos
1177 1.61 christos
1178 1.61 christos cat >>confdefs.h <<_ACEOF
1179 1.61 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 1.61 christos _ACEOF
1181 1.61 christos
1182 1.61 christos
1183 1.1 tv # Let the site file select an alternate cache file if it wants to.
1184 1.1 tv # Prefer explicitly selected file to automatically selected ones.
1185 1.1 tv if test -z "$CONFIG_SITE"; then
1186 1.1 tv if test "x$prefix" != xNONE; then
1187 1.1 tv CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 1.1 tv else
1189 1.1 tv CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190 1.1 tv fi
1191 1.1 tv fi
1192 1.1 tv for ac_site_file in $CONFIG_SITE; do
1193 1.1 tv if test -r "$ac_site_file"; then
1194 1.61 christos { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 1.1 tv echo "$as_me: loading site script $ac_site_file" >&6;}
1196 1.61 christos sed 's/^/| /' "$ac_site_file" >&5
1197 1.1 tv . "$ac_site_file"
1198 1.1 tv fi
1199 1.1 tv done
1200 1.1 tv
1201 1.1 tv if test -r "$cache_file"; then
1202 1.1 tv # Some versions of bash will fail to source /dev/null (special
1203 1.1 tv # files actually), so we avoid doing that.
1204 1.1 tv if test -f "$cache_file"; then
1205 1.61 christos { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 1.1 tv echo "$as_me: loading cache $cache_file" >&6;}
1207 1.1 tv case $cache_file in
1208 1.1 tv [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 1.1 tv *) . ./$cache_file;;
1210 1.1 tv esac
1211 1.1 tv fi
1212 1.1 tv else
1213 1.61 christos { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 1.1 tv echo "$as_me: creating cache $cache_file" >&6;}
1215 1.1 tv >$cache_file
1216 1.1 tv fi
1217 1.1 tv
1218 1.1 tv # Check that the precious variables saved in the cache have kept the same
1219 1.1 tv # value.
1220 1.1 tv ac_cache_corrupted=false
1221 1.1 tv for ac_var in `(set) 2>&1 |
1222 1.61 christos sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 1.1 tv eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 1.1 tv eval ac_new_set=\$ac_env_${ac_var}_set
1225 1.1 tv eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 1.1 tv eval ac_new_val="\$ac_env_${ac_var}_value"
1227 1.1 tv case $ac_old_set,$ac_new_set in
1228 1.1 tv set,)
1229 1.61 christos { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 1.1 tv echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 1.1 tv ac_cache_corrupted=: ;;
1232 1.1 tv ,set)
1233 1.61 christos { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 1.1 tv echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 1.1 tv ac_cache_corrupted=: ;;
1236 1.1 tv ,);;
1237 1.1 tv *)
1238 1.1 tv if test "x$ac_old_val" != "x$ac_new_val"; then
1239 1.61 christos { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 1.1 tv echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 1.61 christos { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 1.1 tv echo "$as_me: former value: $ac_old_val" >&2;}
1243 1.61 christos { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 1.1 tv echo "$as_me: current value: $ac_new_val" >&2;}
1245 1.61 christos ac_cache_corrupted=:
1246 1.1 tv fi;;
1247 1.1 tv esac
1248 1.61 christos # Pass precious variables to config.status.
1249 1.1 tv if test "$ac_new_set" = set; then
1250 1.1 tv case $ac_new_val in
1251 1.1 tv *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 1.61 christos ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 1.61 christos *) ac_arg=$ac_var=$ac_new_val ;;
1254 1.61 christos esac
1255 1.61 christos case " $ac_configure_args " in
1256 1.61 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 1.61 christos *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258 1.1 tv esac
1259 1.1 tv fi
1260 1.1 tv done
1261 1.1 tv if $ac_cache_corrupted; then
1262 1.61 christos { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 1.1 tv echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 1.61 christos { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 1.1 tv echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 1.1 tv { (exit 1); exit 1; }; }
1267 1.1 tv fi
1268 1.1 tv
1269 1.1 tv ac_ext=c
1270 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1271 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274 1.1 tv
1275 1.1 tv
1276 1.1 tv
1277 1.61 christos
1278 1.61 christos
1279 1.61 christos
1280 1.61 christos
1281 1.61 christos
1282 1.61 christos
1283 1.61 christos
1284 1.61 christos
1285 1.61 christos
1286 1.61 christos
1287 1.61 christos
1288 1.61 christos
1289 1.61 christos
1290 1.61 christos
1291 1.61 christos
1292 1.61 christos
1293 1.61 christos
1294 1.61 christos
1295 1.61 christos
1296 1.61 christos
1297 1.61 christos
1298 1.61 christos
1299 1.61 christos
1300 1.61 christos
1301 1.61 christos ac_config_headers="$ac_config_headers nbtool_config.h"
1302 1.61 christos
1303 1.61 christos ac_config_files="$ac_config_files defs.mk"
1304 1.61 christos
1305 1.1 tv
1306 1.57 wiz # Autoheader header and footer
1307 1.57 wiz
1308 1.61 christos
1309 1.61 christos
1310 1.61 christos
1311 1.61 christos
1312 1.61 christos
1313 1.45 jmc # AC_NETBSD
1314 1.20 bjh21
1315 1.1 tv ac_ext=c
1316 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1317 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 1.1 tv if test -n "$ac_tool_prefix"; then
1321 1.1 tv # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1322 1.1 tv set dummy ${ac_tool_prefix}gcc; ac_word=$2
1323 1.61 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1324 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1326 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1327 1.1 tv else
1328 1.1 tv if test -n "$CC"; then
1329 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1330 1.1 tv else
1331 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332 1.61 christos for as_dir in $PATH
1333 1.61 christos do
1334 1.61 christos IFS=$as_save_IFS
1335 1.61 christos test -z "$as_dir" && as_dir=.
1336 1.61 christos for ac_exec_ext in '' $ac_executable_extensions; do
1337 1.61 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338 1.61 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
1339 1.61 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340 1.61 christos break 2
1341 1.61 christos fi
1342 1.61 christos done
1343 1.1 tv done
1344 1.1 tv
1345 1.1 tv fi
1346 1.1 tv fi
1347 1.1 tv CC=$ac_cv_prog_CC
1348 1.1 tv if test -n "$CC"; then
1349 1.61 christos echo "$as_me:$LINENO: result: $CC" >&5
1350 1.1 tv echo "${ECHO_T}$CC" >&6
1351 1.1 tv else
1352 1.61 christos echo "$as_me:$LINENO: result: no" >&5
1353 1.1 tv echo "${ECHO_T}no" >&6
1354 1.1 tv fi
1355 1.1 tv
1356 1.1 tv fi
1357 1.1 tv if test -z "$ac_cv_prog_CC"; then
1358 1.1 tv ac_ct_CC=$CC
1359 1.1 tv # Extract the first word of "gcc", so it can be a program name with args.
1360 1.1 tv set dummy gcc; ac_word=$2
1361 1.61 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1362 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1364 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1365 1.1 tv else
1366 1.1 tv if test -n "$ac_ct_CC"; then
1367 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1368 1.1 tv else
1369 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 1.61 christos for as_dir in $PATH
1371 1.61 christos do
1372 1.61 christos IFS=$as_save_IFS
1373 1.61 christos test -z "$as_dir" && as_dir=.
1374 1.61 christos for ac_exec_ext in '' $ac_executable_extensions; do
1375 1.61 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376 1.61 christos ac_cv_prog_ac_ct_CC="gcc"
1377 1.61 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 1.61 christos break 2
1379 1.61 christos fi
1380 1.61 christos done
1381 1.1 tv done
1382 1.1 tv
1383 1.1 tv fi
1384 1.1 tv fi
1385 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1386 1.1 tv if test -n "$ac_ct_CC"; then
1387 1.61 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1388 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1389 1.1 tv else
1390 1.61 christos echo "$as_me:$LINENO: result: no" >&5
1391 1.1 tv echo "${ECHO_T}no" >&6
1392 1.1 tv fi
1393 1.1 tv
1394 1.1 tv CC=$ac_ct_CC
1395 1.1 tv else
1396 1.1 tv CC="$ac_cv_prog_CC"
1397 1.1 tv fi
1398 1.1 tv
1399 1.1 tv if test -z "$CC"; then
1400 1.1 tv if test -n "$ac_tool_prefix"; then
1401 1.1 tv # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1402 1.1 tv set dummy ${ac_tool_prefix}cc; ac_word=$2
1403 1.61 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1406 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1407 1.1 tv else
1408 1.1 tv if test -n "$CC"; then
1409 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1410 1.1 tv else
1411 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 1.61 christos for as_dir in $PATH
1413 1.61 christos do
1414 1.61 christos IFS=$as_save_IFS
1415 1.61 christos test -z "$as_dir" && as_dir=.
1416 1.61 christos for ac_exec_ext in '' $ac_executable_extensions; do
1417 1.61 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 1.61 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
1419 1.61 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 1.61 christos break 2
1421 1.61 christos fi
1422 1.61 christos done
1423 1.1 tv done
1424 1.1 tv
1425 1.1 tv fi
1426 1.1 tv fi
1427 1.1 tv CC=$ac_cv_prog_CC
1428 1.1 tv if test -n "$CC"; then
1429 1.61 christos echo "$as_me:$LINENO: result: $CC" >&5
1430 1.1 tv echo "${ECHO_T}$CC" >&6
1431 1.1 tv else
1432 1.61 christos echo "$as_me:$LINENO: result: no" >&5
1433 1.1 tv echo "${ECHO_T}no" >&6
1434 1.1 tv fi
1435 1.1 tv
1436 1.1 tv fi
1437 1.1 tv if test -z "$ac_cv_prog_CC"; then
1438 1.1 tv ac_ct_CC=$CC
1439 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
1440 1.1 tv set dummy cc; ac_word=$2
1441 1.61 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1445 1.1 tv else
1446 1.1 tv if test -n "$ac_ct_CC"; then
1447 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 1.1 tv else
1449 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 1.61 christos for as_dir in $PATH
1451 1.61 christos do
1452 1.61 christos IFS=$as_save_IFS
1453 1.61 christos test -z "$as_dir" && as_dir=.
1454 1.61 christos for ac_exec_ext in '' $ac_executable_extensions; do
1455 1.61 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 1.61 christos ac_cv_prog_ac_ct_CC="cc"
1457 1.61 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 1.61 christos break 2
1459 1.61 christos fi
1460 1.61 christos done
1461 1.1 tv done
1462 1.1 tv
1463 1.1 tv fi
1464 1.1 tv fi
1465 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 1.1 tv if test -n "$ac_ct_CC"; then
1467 1.61 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1469 1.1 tv else
1470 1.61 christos echo "$as_me:$LINENO: result: no" >&5
1471 1.1 tv echo "${ECHO_T}no" >&6
1472 1.1 tv fi
1473 1.1 tv
1474 1.1 tv CC=$ac_ct_CC
1475 1.1 tv else
1476 1.1 tv CC="$ac_cv_prog_CC"
1477 1.1 tv fi
1478 1.1 tv
1479 1.1 tv fi
1480 1.1 tv if test -z "$CC"; then
1481 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
1482 1.1 tv set dummy cc; ac_word=$2
1483 1.61 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1486 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1487 1.1 tv else
1488 1.1 tv if test -n "$CC"; then
1489 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1490 1.1 tv else
1491 1.1 tv ac_prog_rejected=no
1492 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 1.61 christos for as_dir in $PATH
1494 1.61 christos do
1495 1.61 christos IFS=$as_save_IFS
1496 1.61 christos test -z "$as_dir" && as_dir=.
1497 1.61 christos for ac_exec_ext in '' $ac_executable_extensions; do
1498 1.61 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 1.61 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1500 1.61 christos ac_prog_rejected=yes
1501 1.61 christos continue
1502 1.61 christos fi
1503 1.61 christos ac_cv_prog_CC="cc"
1504 1.61 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 1.61 christos break 2
1506 1.61 christos fi
1507 1.61 christos done
1508 1.1 tv done
1509 1.1 tv
1510 1.1 tv if test $ac_prog_rejected = yes; then
1511 1.1 tv # We found a bogon in the path, so make sure we never use it.
1512 1.1 tv set dummy $ac_cv_prog_CC
1513 1.1 tv shift
1514 1.1 tv if test $# != 0; then
1515 1.1 tv # We chose a different compiler from the bogus one.
1516 1.1 tv # However, it has the same basename, so the bogon will be chosen
1517 1.1 tv # first if we set CC to just the basename; use the full file name.
1518 1.1 tv shift
1519 1.61 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1520 1.1 tv fi
1521 1.1 tv fi
1522 1.1 tv fi
1523 1.1 tv fi
1524 1.1 tv CC=$ac_cv_prog_CC
1525 1.1 tv if test -n "$CC"; then
1526 1.61 christos echo "$as_me:$LINENO: result: $CC" >&5
1527 1.1 tv echo "${ECHO_T}$CC" >&6
1528 1.1 tv else
1529 1.61 christos echo "$as_me:$LINENO: result: no" >&5
1530 1.1 tv echo "${ECHO_T}no" >&6
1531 1.1 tv fi
1532 1.1 tv
1533 1.1 tv fi
1534 1.1 tv if test -z "$CC"; then
1535 1.1 tv if test -n "$ac_tool_prefix"; then
1536 1.1 tv for ac_prog in cl
1537 1.1 tv do
1538 1.1 tv # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1539 1.1 tv set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1540 1.61 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1543 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1544 1.1 tv else
1545 1.1 tv if test -n "$CC"; then
1546 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1547 1.1 tv else
1548 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 1.61 christos for as_dir in $PATH
1550 1.61 christos do
1551 1.61 christos IFS=$as_save_IFS
1552 1.61 christos test -z "$as_dir" && as_dir=.
1553 1.61 christos for ac_exec_ext in '' $ac_executable_extensions; do
1554 1.61 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 1.61 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1556 1.61 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 1.61 christos break 2
1558 1.61 christos fi
1559 1.61 christos done
1560 1.1 tv done
1561 1.1 tv
1562 1.1 tv fi
1563 1.1 tv fi
1564 1.1 tv CC=$ac_cv_prog_CC
1565 1.1 tv if test -n "$CC"; then
1566 1.61 christos echo "$as_me:$LINENO: result: $CC" >&5
1567 1.1 tv echo "${ECHO_T}$CC" >&6
1568 1.1 tv else
1569 1.61 christos echo "$as_me:$LINENO: result: no" >&5
1570 1.1 tv echo "${ECHO_T}no" >&6
1571 1.1 tv fi
1572 1.1 tv
1573 1.1 tv test -n "$CC" && break
1574 1.1 tv done
1575 1.1 tv fi
1576 1.1 tv if test -z "$CC"; then
1577 1.1 tv ac_ct_CC=$CC
1578 1.1 tv for ac_prog in cl
1579 1.1 tv do
1580 1.1 tv # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 1.1 tv set dummy $ac_prog; ac_word=$2
1582 1.61 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1586 1.1 tv else
1587 1.1 tv if test -n "$ac_ct_CC"; then
1588 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589 1.1 tv else
1590 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 1.61 christos for as_dir in $PATH
1592 1.61 christos do
1593 1.61 christos IFS=$as_save_IFS
1594 1.61 christos test -z "$as_dir" && as_dir=.
1595 1.61 christos for ac_exec_ext in '' $ac_executable_extensions; do
1596 1.61 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 1.61 christos ac_cv_prog_ac_ct_CC="$ac_prog"
1598 1.61 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 1.61 christos break 2
1600 1.61 christos fi
1601 1.61 christos done
1602 1.1 tv done
1603 1.1 tv
1604 1.1 tv fi
1605 1.1 tv fi
1606 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607 1.1 tv if test -n "$ac_ct_CC"; then
1608 1.61 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1610 1.1 tv else
1611 1.61 christos echo "$as_me:$LINENO: result: no" >&5
1612 1.1 tv echo "${ECHO_T}no" >&6
1613 1.1 tv fi
1614 1.1 tv
1615 1.1 tv test -n "$ac_ct_CC" && break
1616 1.1 tv done
1617 1.1 tv
1618 1.1 tv CC=$ac_ct_CC
1619 1.1 tv fi
1620 1.1 tv
1621 1.1 tv fi
1622 1.1 tv
1623 1.61 christos
1624 1.61 christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1625 1.61 christos See \`config.log' for more details." >&5
1626 1.61 christos echo "$as_me: error: no acceptable C compiler found in \$PATH
1627 1.61 christos See \`config.log' for more details." >&2;}
1628 1.1 tv { (exit 1); exit 1; }; }
1629 1.1 tv
1630 1.1 tv # Provide some information about the compiler.
1631 1.61 christos echo "$as_me:$LINENO:" \
1632 1.1 tv "checking for C compiler version" >&5
1633 1.1 tv ac_compiler=`set X $ac_compile; echo $2`
1634 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1635 1.1 tv (eval $ac_compiler --version </dev/null >&5) 2>&5
1636 1.1 tv ac_status=$?
1637 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 1.1 tv (exit $ac_status); }
1639 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1640 1.1 tv (eval $ac_compiler -v </dev/null >&5) 2>&5
1641 1.1 tv ac_status=$?
1642 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 1.1 tv (exit $ac_status); }
1644 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1645 1.1 tv (eval $ac_compiler -V </dev/null >&5) 2>&5
1646 1.1 tv ac_status=$?
1647 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 1.1 tv (exit $ac_status); }
1649 1.1 tv
1650 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1651 1.61 christos /* confdefs.h. */
1652 1.61 christos _ACEOF
1653 1.61 christos cat confdefs.h >>conftest.$ac_ext
1654 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
1655 1.61 christos /* end confdefs.h. */
1656 1.1 tv
1657 1.1 tv int
1658 1.1 tv main ()
1659 1.1 tv {
1660 1.1 tv
1661 1.1 tv ;
1662 1.1 tv return 0;
1663 1.1 tv }
1664 1.1 tv _ACEOF
1665 1.1 tv ac_clean_files_save=$ac_clean_files
1666 1.61 christos ac_clean_files="$ac_clean_files a.out a.exe b.out"
1667 1.1 tv # Try to create an executable without -o first, disregard a.out.
1668 1.1 tv # It will help us diagnose broken compilers, and finding out an intuition
1669 1.1 tv # of exeext.
1670 1.61 christos echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1671 1.61 christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1672 1.1 tv ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1673 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1674 1.1 tv (eval $ac_link_default) 2>&5
1675 1.1 tv ac_status=$?
1676 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 1.1 tv (exit $ac_status); }; then
1678 1.1 tv # Find the output, starting from the most likely. This scheme is
1679 1.1 tv # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1680 1.1 tv # resort.
1681 1.61 christos
1682 1.61 christos # Be careful to initialize this variable, since it used to be cached.
1683 1.61 christos # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1684 1.61 christos ac_cv_exeext=
1685 1.61 christos # b.out is created by i960 compilers.
1686 1.61 christos for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1687 1.61 christos do
1688 1.61 christos test -f "$ac_file" || continue
1689 1.1 tv case $ac_file in
1690 1.61 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1691 1.61 christos ;;
1692 1.61 christos conftest.$ac_ext )
1693 1.61 christos # This is the source file.
1694 1.61 christos ;;
1695 1.61 christos [ab].out )
1696 1.61 christos # We found the default executable, but exeext='' is most
1697 1.61 christos # certainly right.
1698 1.61 christos break;;
1699 1.61 christos *.* )
1700 1.61 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701 1.61 christos # FIXME: I believe we export ac_cv_exeext for Libtool,
1702 1.61 christos # but it would be cool to find out if it's true. Does anybody
1703 1.61 christos # maintain Libtool? --akim.
1704 1.61 christos export ac_cv_exeext
1705 1.61 christos break;;
1706 1.61 christos * )
1707 1.61 christos break;;
1708 1.1 tv esac
1709 1.1 tv done
1710 1.1 tv else
1711 1.1 tv echo "$as_me: failed program was:" >&5
1712 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
1713 1.61 christos
1714 1.61 christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1715 1.61 christos See \`config.log' for more details." >&5
1716 1.61 christos echo "$as_me: error: C compiler cannot create executables
1717 1.61 christos See \`config.log' for more details." >&2;}
1718 1.1 tv { (exit 77); exit 77; }; }
1719 1.1 tv fi
1720 1.1 tv
1721 1.1 tv ac_exeext=$ac_cv_exeext
1722 1.61 christos echo "$as_me:$LINENO: result: $ac_file" >&5
1723 1.1 tv echo "${ECHO_T}$ac_file" >&6
1724 1.1 tv
1725 1.1 tv # Check the compiler produces executables we can run. If not, either
1726 1.1 tv # the compiler is broken, or we cross compile.
1727 1.61 christos echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1728 1.1 tv echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1729 1.1 tv # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1730 1.1 tv # If not cross compiling, check that we can run a simple program.
1731 1.1 tv if test "$cross_compiling" != yes; then
1732 1.1 tv if { ac_try='./$ac_file'
1733 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1734 1.1 tv (eval $ac_try) 2>&5
1735 1.1 tv ac_status=$?
1736 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 1.1 tv (exit $ac_status); }; }; then
1738 1.1 tv cross_compiling=no
1739 1.1 tv else
1740 1.1 tv if test "$cross_compiling" = maybe; then
1741 1.1 tv cross_compiling=yes
1742 1.1 tv else
1743 1.61 christos { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1744 1.61 christos If you meant to cross compile, use \`--host'.
1745 1.61 christos See \`config.log' for more details." >&5
1746 1.1 tv echo "$as_me: error: cannot run C compiled programs.
1747 1.61 christos If you meant to cross compile, use \`--host'.
1748 1.61 christos See \`config.log' for more details." >&2;}
1749 1.1 tv { (exit 1); exit 1; }; }
1750 1.1 tv fi
1751 1.1 tv fi
1752 1.1 tv fi
1753 1.61 christos echo "$as_me:$LINENO: result: yes" >&5
1754 1.1 tv echo "${ECHO_T}yes" >&6
1755 1.1 tv
1756 1.61 christos rm -f a.out a.exe conftest$ac_cv_exeext b.out
1757 1.1 tv ac_clean_files=$ac_clean_files_save
1758 1.1 tv # Check the compiler produces executables we can run. If not, either
1759 1.1 tv # the compiler is broken, or we cross compile.
1760 1.61 christos echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1761 1.1 tv echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1762 1.61 christos echo "$as_me:$LINENO: result: $cross_compiling" >&5
1763 1.1 tv echo "${ECHO_T}$cross_compiling" >&6
1764 1.1 tv
1765 1.61 christos echo "$as_me:$LINENO: checking for suffix of executables" >&5
1766 1.61 christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1767 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1768 1.1 tv (eval $ac_link) 2>&5
1769 1.1 tv ac_status=$?
1770 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 1.1 tv (exit $ac_status); }; then
1772 1.1 tv # If both `conftest.exe' and `conftest' are `present' (well, observable)
1773 1.1 tv # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1774 1.1 tv # work properly (i.e., refer to `conftest.exe'), while it won't with
1775 1.1 tv # `rm'.
1776 1.61 christos for ac_file in conftest.exe conftest conftest.*; do
1777 1.61 christos test -f "$ac_file" || continue
1778 1.1 tv case $ac_file in
1779 1.61 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1780 1.1 tv *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 1.61 christos export ac_cv_exeext
1782 1.61 christos break;;
1783 1.1 tv * ) break;;
1784 1.1 tv esac
1785 1.1 tv done
1786 1.1 tv else
1787 1.61 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1788 1.61 christos See \`config.log' for more details." >&5
1789 1.61 christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1790 1.61 christos See \`config.log' for more details." >&2;}
1791 1.1 tv { (exit 1); exit 1; }; }
1792 1.1 tv fi
1793 1.1 tv
1794 1.1 tv rm -f conftest$ac_cv_exeext
1795 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1796 1.1 tv echo "${ECHO_T}$ac_cv_exeext" >&6
1797 1.1 tv
1798 1.1 tv rm -f conftest.$ac_ext
1799 1.1 tv EXEEXT=$ac_cv_exeext
1800 1.1 tv ac_exeext=$EXEEXT
1801 1.61 christos echo "$as_me:$LINENO: checking for suffix of object files" >&5
1802 1.61 christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1803 1.1 tv if test "${ac_cv_objext+set}" = set; then
1804 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1805 1.1 tv else
1806 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1807 1.61 christos /* confdefs.h. */
1808 1.61 christos _ACEOF
1809 1.61 christos cat confdefs.h >>conftest.$ac_ext
1810 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
1811 1.61 christos /* end confdefs.h. */
1812 1.1 tv
1813 1.1 tv int
1814 1.1 tv main ()
1815 1.1 tv {
1816 1.1 tv
1817 1.1 tv ;
1818 1.1 tv return 0;
1819 1.1 tv }
1820 1.1 tv _ACEOF
1821 1.1 tv rm -f conftest.o conftest.obj
1822 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823 1.1 tv (eval $ac_compile) 2>&5
1824 1.1 tv ac_status=$?
1825 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 1.1 tv (exit $ac_status); }; then
1827 1.1 tv for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1828 1.1 tv case $ac_file in
1829 1.61 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1830 1.1 tv *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1831 1.1 tv break;;
1832 1.1 tv esac
1833 1.1 tv done
1834 1.1 tv else
1835 1.1 tv echo "$as_me: failed program was:" >&5
1836 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
1837 1.61 christos
1838 1.61 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1839 1.61 christos See \`config.log' for more details." >&5
1840 1.61 christos echo "$as_me: error: cannot compute suffix of object files: cannot compile
1841 1.61 christos See \`config.log' for more details." >&2;}
1842 1.1 tv { (exit 1); exit 1; }; }
1843 1.1 tv fi
1844 1.1 tv
1845 1.1 tv rm -f conftest.$ac_cv_objext conftest.$ac_ext
1846 1.1 tv fi
1847 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1848 1.1 tv echo "${ECHO_T}$ac_cv_objext" >&6
1849 1.1 tv OBJEXT=$ac_cv_objext
1850 1.1 tv ac_objext=$OBJEXT
1851 1.61 christos echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1852 1.1 tv echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1853 1.1 tv if test "${ac_cv_c_compiler_gnu+set}" = set; then
1854 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1855 1.1 tv else
1856 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1857 1.61 christos /* confdefs.h. */
1858 1.61 christos _ACEOF
1859 1.61 christos cat confdefs.h >>conftest.$ac_ext
1860 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
1861 1.61 christos /* end confdefs.h. */
1862 1.1 tv
1863 1.1 tv int
1864 1.1 tv main ()
1865 1.1 tv {
1866 1.1 tv #ifndef __GNUC__
1867 1.1 tv choke me
1868 1.1 tv #endif
1869 1.1 tv
1870 1.1 tv ;
1871 1.1 tv return 0;
1872 1.1 tv }
1873 1.1 tv _ACEOF
1874 1.1 tv rm -f conftest.$ac_objext
1875 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 1.61 christos (eval $ac_compile) 2>conftest.er1
1877 1.1 tv ac_status=$?
1878 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
1879 1.61 christos rm -f conftest.er1
1880 1.61 christos cat conftest.err >&5
1881 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 1.1 tv (exit $ac_status); } &&
1883 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
1884 1.61 christos || test ! -s conftest.err'
1885 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 1.53 dogcow (eval $ac_try) 2>&5
1887 1.53 dogcow ac_status=$?
1888 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 1.61 christos (exit $ac_status); }; } &&
1890 1.61 christos { ac_try='test -s conftest.$ac_objext'
1891 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 1.61 christos (eval $ac_try) 2>&5
1893 1.61 christos ac_status=$?
1894 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 1.60 apb (exit $ac_status); }; }; then
1896 1.1 tv ac_compiler_gnu=yes
1897 1.1 tv else
1898 1.1 tv echo "$as_me: failed program was:" >&5
1899 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
1900 1.61 christos
1901 1.1 tv ac_compiler_gnu=no
1902 1.1 tv fi
1903 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1904 1.1 tv ac_cv_c_compiler_gnu=$ac_compiler_gnu
1905 1.1 tv
1906 1.1 tv fi
1907 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1908 1.1 tv echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1909 1.1 tv GCC=`test $ac_compiler_gnu = yes && echo yes`
1910 1.1 tv ac_test_CFLAGS=${CFLAGS+set}
1911 1.1 tv ac_save_CFLAGS=$CFLAGS
1912 1.1 tv CFLAGS="-g"
1913 1.61 christos echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1914 1.1 tv echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1915 1.1 tv if test "${ac_cv_prog_cc_g+set}" = set; then
1916 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1917 1.1 tv else
1918 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1919 1.61 christos /* confdefs.h. */
1920 1.61 christos _ACEOF
1921 1.61 christos cat confdefs.h >>conftest.$ac_ext
1922 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
1923 1.61 christos /* end confdefs.h. */
1924 1.1 tv
1925 1.1 tv int
1926 1.1 tv main ()
1927 1.1 tv {
1928 1.1 tv
1929 1.1 tv ;
1930 1.1 tv return 0;
1931 1.1 tv }
1932 1.1 tv _ACEOF
1933 1.1 tv rm -f conftest.$ac_objext
1934 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 1.61 christos (eval $ac_compile) 2>conftest.er1
1936 1.1 tv ac_status=$?
1937 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
1938 1.61 christos rm -f conftest.er1
1939 1.61 christos cat conftest.err >&5
1940 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 1.52 dbj (exit $ac_status); } &&
1942 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
1943 1.61 christos || test ! -s conftest.err'
1944 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 1.61 christos (eval $ac_try) 2>&5
1946 1.61 christos ac_status=$?
1947 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 1.61 christos (exit $ac_status); }; } &&
1949 1.61 christos { ac_try='test -s conftest.$ac_objext'
1950 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 1.53 dogcow (eval $ac_try) 2>&5
1952 1.53 dogcow ac_status=$?
1953 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 1.1 tv (exit $ac_status); }; }; then
1955 1.1 tv ac_cv_prog_cc_g=yes
1956 1.1 tv else
1957 1.1 tv echo "$as_me: failed program was:" >&5
1958 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
1959 1.61 christos
1960 1.1 tv ac_cv_prog_cc_g=no
1961 1.1 tv fi
1962 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1963 1.1 tv fi
1964 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1965 1.1 tv echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1966 1.1 tv if test "$ac_test_CFLAGS" = set; then
1967 1.1 tv CFLAGS=$ac_save_CFLAGS
1968 1.1 tv elif test $ac_cv_prog_cc_g = yes; then
1969 1.1 tv if test "$GCC" = yes; then
1970 1.1 tv CFLAGS="-g -O2"
1971 1.1 tv else
1972 1.1 tv CFLAGS="-g"
1973 1.1 tv fi
1974 1.1 tv else
1975 1.1 tv if test "$GCC" = yes; then
1976 1.1 tv CFLAGS="-O2"
1977 1.1 tv else
1978 1.1 tv CFLAGS=
1979 1.1 tv fi
1980 1.1 tv fi
1981 1.61 christos echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1982 1.61 christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1983 1.61 christos if test "${ac_cv_prog_cc_stdc+set}" = set; then
1984 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1985 1.61 christos else
1986 1.61 christos ac_cv_prog_cc_stdc=no
1987 1.61 christos ac_save_CC=$CC
1988 1.61 christos cat >conftest.$ac_ext <<_ACEOF
1989 1.61 christos /* confdefs.h. */
1990 1.61 christos _ACEOF
1991 1.61 christos cat confdefs.h >>conftest.$ac_ext
1992 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
1993 1.61 christos /* end confdefs.h. */
1994 1.61 christos #include <stdarg.h>
1995 1.61 christos #include <stdio.h>
1996 1.61 christos #include <sys/types.h>
1997 1.61 christos #include <sys/stat.h>
1998 1.61 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1999 1.61 christos struct buf { int x; };
2000 1.61 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
2001 1.61 christos static char *e (p, i)
2002 1.61 christos char **p;
2003 1.61 christos int i;
2004 1.61 christos {
2005 1.61 christos return p[i];
2006 1.61 christos }
2007 1.61 christos static char *f (char * (*g) (char **, int), char **p, ...)
2008 1.61 christos {
2009 1.61 christos char *s;
2010 1.61 christos va_list v;
2011 1.61 christos va_start (v,p);
2012 1.61 christos s = g (p, va_arg (v,int));
2013 1.61 christos va_end (v);
2014 1.61 christos return s;
2015 1.61 christos }
2016 1.61 christos
2017 1.61 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2018 1.61 christos function prototypes and stuff, but not '\xHH' hex character constants.
2019 1.61 christos These don't provoke an error unfortunately, instead are silently treated
2020 1.61 christos as 'x'. The following induces an error, until -std1 is added to get
2021 1.61 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2022 1.61 christos array size at least. It's necessary to write '\x00'==0 to get something
2023 1.61 christos that's true only with -std1. */
2024 1.61 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2025 1.61 christos
2026 1.61 christos int test (int i, double x);
2027 1.61 christos struct s1 {int (*f) (int a);};
2028 1.61 christos struct s2 {int (*f) (double a);};
2029 1.61 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2030 1.61 christos int argc;
2031 1.61 christos char **argv;
2032 1.61 christos int
2033 1.61 christos main ()
2034 1.61 christos {
2035 1.61 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2036 1.61 christos ;
2037 1.61 christos return 0;
2038 1.61 christos }
2039 1.61 christos _ACEOF
2040 1.61 christos # Don't try gcc -ansi; that turns off useful extensions and
2041 1.61 christos # breaks some systems' header files.
2042 1.61 christos # AIX -qlanglvl=ansi
2043 1.61 christos # Ultrix and OSF/1 -std1
2044 1.61 christos # HP-UX 10.20 and later -Ae
2045 1.61 christos # HP-UX older versions -Aa -D_HPUX_SOURCE
2046 1.61 christos # SVR4 -Xc -D__EXTENSIONS__
2047 1.61 christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2048 1.61 christos do
2049 1.61 christos CC="$ac_save_CC $ac_arg"
2050 1.61 christos rm -f conftest.$ac_objext
2051 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 1.61 christos (eval $ac_compile) 2>conftest.er1
2053 1.61 christos ac_status=$?
2054 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2055 1.61 christos rm -f conftest.er1
2056 1.61 christos cat conftest.err >&5
2057 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 1.61 christos (exit $ac_status); } &&
2059 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
2060 1.61 christos || test ! -s conftest.err'
2061 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 1.61 christos (eval $ac_try) 2>&5
2063 1.61 christos ac_status=$?
2064 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 1.61 christos (exit $ac_status); }; } &&
2066 1.61 christos { ac_try='test -s conftest.$ac_objext'
2067 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 1.61 christos (eval $ac_try) 2>&5
2069 1.61 christos ac_status=$?
2070 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 1.61 christos (exit $ac_status); }; }; then
2072 1.61 christos ac_cv_prog_cc_stdc=$ac_arg
2073 1.61 christos break
2074 1.61 christos else
2075 1.61 christos echo "$as_me: failed program was:" >&5
2076 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2077 1.61 christos
2078 1.61 christos fi
2079 1.61 christos rm -f conftest.err conftest.$ac_objext
2080 1.61 christos done
2081 1.61 christos rm -f conftest.$ac_ext conftest.$ac_objext
2082 1.61 christos CC=$ac_save_CC
2083 1.61 christos
2084 1.61 christos fi
2085 1.61 christos
2086 1.61 christos case "x$ac_cv_prog_cc_stdc" in
2087 1.61 christos x|xno)
2088 1.61 christos echo "$as_me:$LINENO: result: none needed" >&5
2089 1.61 christos echo "${ECHO_T}none needed" >&6 ;;
2090 1.61 christos *)
2091 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2092 1.61 christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2093 1.61 christos CC="$CC $ac_cv_prog_cc_stdc" ;;
2094 1.61 christos esac
2095 1.61 christos
2096 1.1 tv # Some people use a C++ compiler to compile C. Since we use `exit',
2097 1.1 tv # in C++ we need to declare it. In case someone uses the same compiler
2098 1.1 tv # for both compiling C and C++ we need to have the C++ compiler decide
2099 1.1 tv # the declaration of exit, since it's the most demanding environment.
2100 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2101 1.1 tv #ifndef __cplusplus
2102 1.1 tv choke me
2103 1.1 tv #endif
2104 1.1 tv _ACEOF
2105 1.1 tv rm -f conftest.$ac_objext
2106 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 1.61 christos (eval $ac_compile) 2>conftest.er1
2108 1.1 tv ac_status=$?
2109 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2110 1.61 christos rm -f conftest.er1
2111 1.61 christos cat conftest.err >&5
2112 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 1.1 tv (exit $ac_status); } &&
2114 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
2115 1.61 christos || test ! -s conftest.err'
2116 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 1.61 christos (eval $ac_try) 2>&5
2118 1.61 christos ac_status=$?
2119 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 1.61 christos (exit $ac_status); }; } &&
2121 1.61 christos { ac_try='test -s conftest.$ac_objext'
2122 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 1.50 jmc (eval $ac_try) 2>&5
2124 1.50 jmc ac_status=$?
2125 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 1.1 tv (exit $ac_status); }; }; then
2127 1.1 tv for ac_declaration in \
2128 1.61 christos '' \
2129 1.1 tv 'extern "C" void std::exit (int) throw (); using std::exit;' \
2130 1.1 tv 'extern "C" void std::exit (int); using std::exit;' \
2131 1.1 tv 'extern "C" void exit (int) throw ();' \
2132 1.1 tv 'extern "C" void exit (int);' \
2133 1.1 tv 'void exit (int);'
2134 1.1 tv do
2135 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2136 1.61 christos /* confdefs.h. */
2137 1.61 christos _ACEOF
2138 1.61 christos cat confdefs.h >>conftest.$ac_ext
2139 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2140 1.61 christos /* end confdefs.h. */
2141 1.61 christos $ac_declaration
2142 1.60 apb #include <stdlib.h>
2143 1.1 tv int
2144 1.1 tv main ()
2145 1.1 tv {
2146 1.1 tv exit (42);
2147 1.1 tv ;
2148 1.1 tv return 0;
2149 1.1 tv }
2150 1.1 tv _ACEOF
2151 1.1 tv rm -f conftest.$ac_objext
2152 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 1.61 christos (eval $ac_compile) 2>conftest.er1
2154 1.1 tv ac_status=$?
2155 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2156 1.61 christos rm -f conftest.er1
2157 1.61 christos cat conftest.err >&5
2158 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 1.1 tv (exit $ac_status); } &&
2160 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
2161 1.61 christos || test ! -s conftest.err'
2162 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 1.61 christos (eval $ac_try) 2>&5
2164 1.61 christos ac_status=$?
2165 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 1.61 christos (exit $ac_status); }; } &&
2167 1.61 christos { ac_try='test -s conftest.$ac_objext'
2168 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 1.50 jmc (eval $ac_try) 2>&5
2170 1.50 jmc ac_status=$?
2171 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 1.1 tv (exit $ac_status); }; }; then
2173 1.1 tv :
2174 1.1 tv else
2175 1.1 tv echo "$as_me: failed program was:" >&5
2176 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2177 1.61 christos
2178 1.1 tv continue
2179 1.1 tv fi
2180 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2182 1.61 christos /* confdefs.h. */
2183 1.61 christos _ACEOF
2184 1.61 christos cat confdefs.h >>conftest.$ac_ext
2185 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2186 1.61 christos /* end confdefs.h. */
2187 1.1 tv $ac_declaration
2188 1.1 tv int
2189 1.1 tv main ()
2190 1.1 tv {
2191 1.1 tv exit (42);
2192 1.1 tv ;
2193 1.1 tv return 0;
2194 1.1 tv }
2195 1.1 tv _ACEOF
2196 1.1 tv rm -f conftest.$ac_objext
2197 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 1.61 christos (eval $ac_compile) 2>conftest.er1
2199 1.1 tv ac_status=$?
2200 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2201 1.61 christos rm -f conftest.er1
2202 1.61 christos cat conftest.err >&5
2203 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 1.1 tv (exit $ac_status); } &&
2205 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
2206 1.61 christos || test ! -s conftest.err'
2207 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 1.61 christos (eval $ac_try) 2>&5
2209 1.61 christos ac_status=$?
2210 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 1.61 christos (exit $ac_status); }; } &&
2212 1.61 christos { ac_try='test -s conftest.$ac_objext'
2213 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 1.53 dogcow (eval $ac_try) 2>&5
2215 1.53 dogcow ac_status=$?
2216 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 1.1 tv (exit $ac_status); }; }; then
2218 1.1 tv break
2219 1.1 tv else
2220 1.1 tv echo "$as_me: failed program was:" >&5
2221 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2222 1.61 christos
2223 1.1 tv fi
2224 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 1.1 tv done
2226 1.1 tv rm -f conftest*
2227 1.1 tv if test -n "$ac_declaration"; then
2228 1.1 tv echo '#ifdef __cplusplus' >>confdefs.h
2229 1.1 tv echo $ac_declaration >>confdefs.h
2230 1.1 tv echo '#endif' >>confdefs.h
2231 1.1 tv fi
2232 1.1 tv
2233 1.1 tv else
2234 1.1 tv echo "$as_me: failed program was:" >&5
2235 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2236 1.61 christos
2237 1.1 tv fi
2238 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2239 1.1 tv ac_ext=c
2240 1.1 tv ac_cpp='$CPP $CPPFLAGS'
2241 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244 1.1 tv
2245 1.61 christos
2246 1.1 tv ac_ext=c
2247 1.1 tv ac_cpp='$CPP $CPPFLAGS'
2248 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251 1.61 christos echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2252 1.1 tv echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2253 1.1 tv # On Suns, sometimes $CPP names a directory.
2254 1.1 tv if test -n "$CPP" && test -d "$CPP"; then
2255 1.1 tv CPP=
2256 1.1 tv fi
2257 1.1 tv if test -z "$CPP"; then
2258 1.1 tv if test "${ac_cv_prog_CPP+set}" = set; then
2259 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2260 1.1 tv else
2261 1.1 tv # Double quotes because CPP needs to be expanded
2262 1.1 tv for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2263 1.1 tv do
2264 1.1 tv ac_preproc_ok=false
2265 1.1 tv for ac_c_preproc_warn_flag in '' yes
2266 1.1 tv do
2267 1.1 tv # Use a header file that comes with gcc, so configuring glibc
2268 1.1 tv # with a fresh cross-compiler works.
2269 1.61 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2270 1.61 christos # <limits.h> exists even on freestanding compilers.
2271 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
2272 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
2273 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2274 1.61 christos /* confdefs.h. */
2275 1.61 christos _ACEOF
2276 1.61 christos cat confdefs.h >>conftest.$ac_ext
2277 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2278 1.61 christos /* end confdefs.h. */
2279 1.61 christos #ifdef __STDC__
2280 1.61 christos # include <limits.h>
2281 1.61 christos #else
2282 1.61 christos # include <assert.h>
2283 1.61 christos #endif
2284 1.61 christos Syntax error
2285 1.48 jmc _ACEOF
2286 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2287 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2288 1.1 tv ac_status=$?
2289 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2290 1.1 tv rm -f conftest.er1
2291 1.1 tv cat conftest.err >&5
2292 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 1.1 tv (exit $ac_status); } >/dev/null; then
2294 1.1 tv if test -s conftest.err; then
2295 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
2296 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2297 1.1 tv else
2298 1.1 tv ac_cpp_err=
2299 1.1 tv fi
2300 1.1 tv else
2301 1.1 tv ac_cpp_err=yes
2302 1.1 tv fi
2303 1.1 tv if test -z "$ac_cpp_err"; then
2304 1.1 tv :
2305 1.1 tv else
2306 1.1 tv echo "$as_me: failed program was:" >&5
2307 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2308 1.61 christos
2309 1.1 tv # Broken: fails on valid input.
2310 1.1 tv continue
2311 1.1 tv fi
2312 1.1 tv rm -f conftest.err conftest.$ac_ext
2313 1.1 tv
2314 1.1 tv # OK, works on sane cases. Now check whether non-existent headers
2315 1.1 tv # can be detected and how.
2316 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2317 1.61 christos /* confdefs.h. */
2318 1.61 christos _ACEOF
2319 1.61 christos cat confdefs.h >>conftest.$ac_ext
2320 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2321 1.61 christos /* end confdefs.h. */
2322 1.1 tv #include <ac_nonexistent.h>
2323 1.1 tv _ACEOF
2324 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2325 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2326 1.1 tv ac_status=$?
2327 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2328 1.1 tv rm -f conftest.er1
2329 1.1 tv cat conftest.err >&5
2330 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 1.1 tv (exit $ac_status); } >/dev/null; then
2332 1.1 tv if test -s conftest.err; then
2333 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
2334 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2335 1.1 tv else
2336 1.1 tv ac_cpp_err=
2337 1.1 tv fi
2338 1.1 tv else
2339 1.1 tv ac_cpp_err=yes
2340 1.1 tv fi
2341 1.1 tv if test -z "$ac_cpp_err"; then
2342 1.1 tv # Broken: success on invalid input.
2343 1.1 tv continue
2344 1.1 tv else
2345 1.1 tv echo "$as_me: failed program was:" >&5
2346 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2347 1.61 christos
2348 1.1 tv # Passes both tests.
2349 1.1 tv ac_preproc_ok=:
2350 1.1 tv break
2351 1.1 tv fi
2352 1.1 tv rm -f conftest.err conftest.$ac_ext
2353 1.1 tv
2354 1.1 tv done
2355 1.1 tv # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2356 1.1 tv rm -f conftest.err conftest.$ac_ext
2357 1.1 tv if $ac_preproc_ok; then
2358 1.1 tv break
2359 1.1 tv fi
2360 1.1 tv
2361 1.1 tv done
2362 1.1 tv ac_cv_prog_CPP=$CPP
2363 1.1 tv
2364 1.1 tv fi
2365 1.1 tv CPP=$ac_cv_prog_CPP
2366 1.1 tv else
2367 1.1 tv ac_cv_prog_CPP=$CPP
2368 1.1 tv fi
2369 1.61 christos echo "$as_me:$LINENO: result: $CPP" >&5
2370 1.1 tv echo "${ECHO_T}$CPP" >&6
2371 1.1 tv ac_preproc_ok=false
2372 1.1 tv for ac_c_preproc_warn_flag in '' yes
2373 1.1 tv do
2374 1.1 tv # Use a header file that comes with gcc, so configuring glibc
2375 1.1 tv # with a fresh cross-compiler works.
2376 1.61 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2377 1.61 christos # <limits.h> exists even on freestanding compilers.
2378 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
2379 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
2380 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2381 1.61 christos /* confdefs.h. */
2382 1.61 christos _ACEOF
2383 1.61 christos cat confdefs.h >>conftest.$ac_ext
2384 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2385 1.61 christos /* end confdefs.h. */
2386 1.61 christos #ifdef __STDC__
2387 1.61 christos # include <limits.h>
2388 1.61 christos #else
2389 1.61 christos # include <assert.h>
2390 1.61 christos #endif
2391 1.61 christos Syntax error
2392 1.53 dogcow _ACEOF
2393 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2394 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2395 1.1 tv ac_status=$?
2396 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2397 1.1 tv rm -f conftest.er1
2398 1.1 tv cat conftest.err >&5
2399 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 1.1 tv (exit $ac_status); } >/dev/null; then
2401 1.1 tv if test -s conftest.err; then
2402 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
2403 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2404 1.1 tv else
2405 1.1 tv ac_cpp_err=
2406 1.1 tv fi
2407 1.1 tv else
2408 1.1 tv ac_cpp_err=yes
2409 1.1 tv fi
2410 1.1 tv if test -z "$ac_cpp_err"; then
2411 1.1 tv :
2412 1.1 tv else
2413 1.1 tv echo "$as_me: failed program was:" >&5
2414 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2415 1.61 christos
2416 1.1 tv # Broken: fails on valid input.
2417 1.1 tv continue
2418 1.1 tv fi
2419 1.1 tv rm -f conftest.err conftest.$ac_ext
2420 1.1 tv
2421 1.1 tv # OK, works on sane cases. Now check whether non-existent headers
2422 1.1 tv # can be detected and how.
2423 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2424 1.61 christos /* confdefs.h. */
2425 1.61 christos _ACEOF
2426 1.61 christos cat confdefs.h >>conftest.$ac_ext
2427 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2428 1.61 christos /* end confdefs.h. */
2429 1.1 tv #include <ac_nonexistent.h>
2430 1.1 tv _ACEOF
2431 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2432 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2433 1.1 tv ac_status=$?
2434 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2435 1.1 tv rm -f conftest.er1
2436 1.1 tv cat conftest.err >&5
2437 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 1.1 tv (exit $ac_status); } >/dev/null; then
2439 1.1 tv if test -s conftest.err; then
2440 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
2441 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2442 1.1 tv else
2443 1.1 tv ac_cpp_err=
2444 1.1 tv fi
2445 1.1 tv else
2446 1.45 jmc ac_cpp_err=yes
2447 1.45 jmc fi
2448 1.45 jmc if test -z "$ac_cpp_err"; then
2449 1.45 jmc # Broken: success on invalid input.
2450 1.45 jmc continue
2451 1.45 jmc else
2452 1.45 jmc echo "$as_me: failed program was:" >&5
2453 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2454 1.61 christos
2455 1.45 jmc # Passes both tests.
2456 1.45 jmc ac_preproc_ok=:
2457 1.45 jmc break
2458 1.45 jmc fi
2459 1.45 jmc rm -f conftest.err conftest.$ac_ext
2460 1.45 jmc
2461 1.45 jmc done
2462 1.45 jmc # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2463 1.45 jmc rm -f conftest.err conftest.$ac_ext
2464 1.45 jmc if $ac_preproc_ok; then
2465 1.45 jmc :
2466 1.45 jmc else
2467 1.61 christos { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2468 1.61 christos See \`config.log' for more details." >&5
2469 1.61 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2470 1.61 christos See \`config.log' for more details." >&2;}
2471 1.45 jmc { (exit 1); exit 1; }; }
2472 1.45 jmc fi
2473 1.45 jmc
2474 1.45 jmc ac_ext=c
2475 1.45 jmc ac_cpp='$CPP $CPPFLAGS'
2476 1.45 jmc ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 1.45 jmc ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 1.45 jmc ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 1.45 jmc
2480 1.61 christos
2481 1.61 christos echo "$as_me:$LINENO: checking for egrep" >&5
2482 1.61 christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2483 1.61 christos if test "${ac_cv_prog_egrep+set}" = set; then
2484 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2485 1.61 christos else
2486 1.61 christos if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2487 1.61 christos then ac_cv_prog_egrep='grep -E'
2488 1.61 christos else ac_cv_prog_egrep='egrep'
2489 1.61 christos fi
2490 1.61 christos fi
2491 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2492 1.61 christos echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2493 1.61 christos EGREP=$ac_cv_prog_egrep
2494 1.61 christos
2495 1.61 christos
2496 1.61 christos echo "$as_me:$LINENO: checking for NetBSD" >&5
2497 1.45 jmc echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6
2498 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
2499 1.61 christos /* confdefs.h. */
2500 1.61 christos _ACEOF
2501 1.61 christos cat confdefs.h >>conftest.$ac_ext
2502 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2503 1.61 christos /* end confdefs.h. */
2504 1.45 jmc #ifdef __NetBSD__
2505 1.45 jmc yes
2506 1.45 jmc #endif
2507 1.45 jmc
2508 1.45 jmc _ACEOF
2509 1.45 jmc if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510 1.61 christos $EGREP "yes" >/dev/null 2>&1; then
2511 1.61 christos echo "$as_me:$LINENO: result: yes" >&5
2512 1.45 jmc echo "${ECHO_T}yes" >&6
2513 1.54 wiz
2514 1.61 christos cat >>confdefs.h <<\_ACEOF
2515 1.45 jmc #define _POSIX_SOURCE 1
2516 1.61 christos _ACEOF
2517 1.54 wiz
2518 1.61 christos
2519 1.61 christos cat >>confdefs.h <<\_ACEOF
2520 1.45 jmc #define _POSIX_C_SOURCE 200112L
2521 1.61 christos _ACEOF
2522 1.54 wiz
2523 1.61 christos
2524 1.61 christos cat >>confdefs.h <<\_ACEOF
2525 1.45 jmc #define _XOPEN_SOURCE 600
2526 1.61 christos _ACEOF
2527 1.45 jmc
2528 1.45 jmc else
2529 1.61 christos echo "$as_me:$LINENO: result: no" >&5
2530 1.45 jmc echo "${ECHO_T}no" >&6
2531 1.45 jmc fi
2532 1.45 jmc rm -f conftest*
2533 1.45 jmc
2534 1.61 christos
2535 1.45 jmc # Extract the first word of "sh", so it can be a program name with args.
2536 1.45 jmc set dummy sh; ac_word=$2
2537 1.61 christos echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 1.45 jmc echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2539 1.45 jmc if test "${ac_cv_path_BSHELL+set}" = set; then
2540 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
2541 1.45 jmc else
2542 1.45 jmc case $BSHELL in
2543 1.45 jmc [\\/]* | ?:[\\/]*)
2544 1.45 jmc ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
2545 1.45 jmc ;;
2546 1.45 jmc *)
2547 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 1.61 christos for as_dir in $PATH
2549 1.61 christos do
2550 1.61 christos IFS=$as_save_IFS
2551 1.61 christos test -z "$as_dir" && as_dir=.
2552 1.61 christos for ac_exec_ext in '' $ac_executable_extensions; do
2553 1.61 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 1.61 christos ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
2555 1.61 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 1.61 christos break 2
2557 1.61 christos fi
2558 1.61 christos done
2559 1.45 jmc done
2560 1.45 jmc
2561 1.45 jmc ;;
2562 1.45 jmc esac
2563 1.45 jmc fi
2564 1.45 jmc BSHELL=$ac_cv_path_BSHELL
2565 1.45 jmc
2566 1.45 jmc if test -n "$BSHELL"; then
2567 1.61 christos echo "$as_me:$LINENO: result: $BSHELL" >&5
2568 1.45 jmc echo "${ECHO_T}$BSHELL" >&6
2569 1.45 jmc else
2570 1.61 christos echo "$as_me:$LINENO: result: no" >&5
2571 1.45 jmc echo "${ECHO_T}no" >&6
2572 1.45 jmc fi
2573 1.45 jmc
2574 1.45 jmc if test x"$BSHELL" = x; then
2575 1.61 christos { { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5
2576 1.45 jmc echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
2577 1.45 jmc { (exit 1); exit 1; }; }
2578 1.45 jmc fi
2579 1.54 wiz
2580 1.61 christos cat >>confdefs.h <<_ACEOF
2581 1.45 jmc #define PATH_BSHELL "$BSHELL"
2582 1.61 christos _ACEOF
2583 1.53 dogcow
2584 1.61 christos
2585 1.61 christos echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2586 1.45 jmc echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2587 1.45 jmc if test "${ac_cv_c_bigendian+set}" = set; then
2588 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
2589 1.45 jmc else
2590 1.61 christos # See if sys/param.h defines the BYTE_ORDER macro.
2591 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
2592 1.61 christos /* confdefs.h. */
2593 1.61 christos _ACEOF
2594 1.61 christos cat confdefs.h >>conftest.$ac_ext
2595 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2596 1.61 christos /* end confdefs.h. */
2597 1.45 jmc #include <sys/types.h>
2598 1.45 jmc #include <sys/param.h>
2599 1.45 jmc
2600 1.45 jmc int
2601 1.45 jmc main ()
2602 1.45 jmc {
2603 1.45 jmc #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2604 1.45 jmc bogus endian macros
2605 1.45 jmc #endif
2606 1.45 jmc
2607 1.45 jmc ;
2608 1.45 jmc return 0;
2609 1.45 jmc }
2610 1.45 jmc _ACEOF
2611 1.45 jmc rm -f conftest.$ac_objext
2612 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 1.61 christos (eval $ac_compile) 2>conftest.er1
2614 1.45 jmc ac_status=$?
2615 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2616 1.61 christos rm -f conftest.er1
2617 1.61 christos cat conftest.err >&5
2618 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 1.45 jmc (exit $ac_status); } &&
2620 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
2621 1.61 christos || test ! -s conftest.err'
2622 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 1.45 jmc (eval $ac_try) 2>&5
2624 1.45 jmc ac_status=$?
2625 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 1.61 christos (exit $ac_status); }; } &&
2627 1.61 christos { ac_try='test -s conftest.$ac_objext'
2628 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 1.61 christos (eval $ac_try) 2>&5
2630 1.61 christos ac_status=$?
2631 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 1.45 jmc (exit $ac_status); }; }; then
2633 1.45 jmc # It does; now see whether it defined to BIG_ENDIAN or not.
2634 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
2635 1.61 christos /* confdefs.h. */
2636 1.61 christos _ACEOF
2637 1.61 christos cat confdefs.h >>conftest.$ac_ext
2638 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2639 1.61 christos /* end confdefs.h. */
2640 1.45 jmc #include <sys/types.h>
2641 1.45 jmc #include <sys/param.h>
2642 1.45 jmc
2643 1.45 jmc int
2644 1.45 jmc main ()
2645 1.45 jmc {
2646 1.45 jmc #if BYTE_ORDER != BIG_ENDIAN
2647 1.45 jmc not big endian
2648 1.45 jmc #endif
2649 1.45 jmc
2650 1.45 jmc ;
2651 1.45 jmc return 0;
2652 1.45 jmc }
2653 1.45 jmc _ACEOF
2654 1.45 jmc rm -f conftest.$ac_objext
2655 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 1.61 christos (eval $ac_compile) 2>conftest.er1
2657 1.45 jmc ac_status=$?
2658 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2659 1.61 christos rm -f conftest.er1
2660 1.61 christos cat conftest.err >&5
2661 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 1.45 jmc (exit $ac_status); } &&
2663 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
2664 1.61 christos || test ! -s conftest.err'
2665 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 1.61 christos (eval $ac_try) 2>&5
2667 1.61 christos ac_status=$?
2668 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 1.61 christos (exit $ac_status); }; } &&
2670 1.61 christos { ac_try='test -s conftest.$ac_objext'
2671 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 1.53 dogcow (eval $ac_try) 2>&5
2673 1.53 dogcow ac_status=$?
2674 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 1.45 jmc (exit $ac_status); }; }; then
2676 1.45 jmc ac_cv_c_bigendian=yes
2677 1.45 jmc else
2678 1.45 jmc echo "$as_me: failed program was:" >&5
2679 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2680 1.61 christos
2681 1.45 jmc ac_cv_c_bigendian=no
2682 1.45 jmc fi
2683 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 1.61 christos else
2685 1.61 christos echo "$as_me: failed program was:" >&5
2686 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2687 1.61 christos
2688 1.61 christos # It does not; compile a test program.
2689 1.61 christos if test "$cross_compiling" = yes; then
2690 1.61 christos # try to guess the endianness by grepping values into an object file
2691 1.61 christos ac_cv_c_bigendian=unknown
2692 1.61 christos cat >conftest.$ac_ext <<_ACEOF
2693 1.61 christos /* confdefs.h. */
2694 1.61 christos _ACEOF
2695 1.61 christos cat confdefs.h >>conftest.$ac_ext
2696 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2697 1.61 christos /* end confdefs.h. */
2698 1.61 christos short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2699 1.61 christos short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2700 1.61 christos void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2701 1.61 christos short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2702 1.61 christos short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2703 1.61 christos void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2704 1.61 christos int
2705 1.61 christos main ()
2706 1.61 christos {
2707 1.61 christos _ascii (); _ebcdic ();
2708 1.61 christos ;
2709 1.61 christos return 0;
2710 1.61 christos }
2711 1.61 christos _ACEOF
2712 1.61 christos rm -f conftest.$ac_objext
2713 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 1.61 christos (eval $ac_compile) 2>conftest.er1
2715 1.61 christos ac_status=$?
2716 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2717 1.61 christos rm -f conftest.er1
2718 1.61 christos cat conftest.err >&5
2719 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 1.61 christos (exit $ac_status); } &&
2721 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
2722 1.61 christos || test ! -s conftest.err'
2723 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 1.61 christos (eval $ac_try) 2>&5
2725 1.61 christos ac_status=$?
2726 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 1.61 christos (exit $ac_status); }; } &&
2728 1.61 christos { ac_try='test -s conftest.$ac_objext'
2729 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 1.61 christos (eval $ac_try) 2>&5
2731 1.61 christos ac_status=$?
2732 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 1.61 christos (exit $ac_status); }; }; then
2734 1.61 christos if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2735 1.61 christos ac_cv_c_bigendian=yes
2736 1.61 christos fi
2737 1.61 christos if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2738 1.61 christos if test "$ac_cv_c_bigendian" = unknown; then
2739 1.61 christos ac_cv_c_bigendian=no
2740 1.61 christos else
2741 1.61 christos # finding both strings is unlikely to happen, but who knows?
2742 1.61 christos ac_cv_c_bigendian=unknown
2743 1.61 christos fi
2744 1.61 christos fi
2745 1.53 dogcow else
2746 1.53 dogcow echo "$as_me: failed program was:" >&5
2747 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2748 1.61 christos
2749 1.60 apb fi
2750 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 1.45 jmc else
2752 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
2753 1.61 christos /* confdefs.h. */
2754 1.61 christos _ACEOF
2755 1.61 christos cat confdefs.h >>conftest.$ac_ext
2756 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2757 1.61 christos /* end confdefs.h. */
2758 1.45 jmc int
2759 1.45 jmc main ()
2760 1.45 jmc {
2761 1.45 jmc /* Are we little or big endian? From Harbison&Steele. */
2762 1.45 jmc union
2763 1.45 jmc {
2764 1.45 jmc long l;
2765 1.45 jmc char c[sizeof (long)];
2766 1.45 jmc } u;
2767 1.45 jmc u.l = 1;
2768 1.45 jmc exit (u.c[sizeof (long) - 1] == 1);
2769 1.45 jmc }
2770 1.45 jmc _ACEOF
2771 1.45 jmc rm -f conftest$ac_exeext
2772 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2773 1.45 jmc (eval $ac_link) 2>&5
2774 1.45 jmc ac_status=$?
2775 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 1.45 jmc (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2777 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 1.45 jmc (eval $ac_try) 2>&5
2779 1.45 jmc ac_status=$?
2780 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 1.45 jmc (exit $ac_status); }; }; then
2782 1.45 jmc ac_cv_c_bigendian=no
2783 1.45 jmc else
2784 1.45 jmc echo "$as_me: program exited with status $ac_status" >&5
2785 1.45 jmc echo "$as_me: failed program was:" >&5
2786 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2787 1.61 christos
2788 1.61 christos ( exit $ac_status )
2789 1.45 jmc ac_cv_c_bigendian=yes
2790 1.45 jmc fi
2791 1.61 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2792 1.45 jmc fi
2793 1.1 tv fi
2794 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 1.1 tv fi
2796 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2797 1.45 jmc echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2798 1.61 christos case $ac_cv_c_bigendian in
2799 1.61 christos yes)
2800 1.45 jmc
2801 1.61 christos cat >>confdefs.h <<\_ACEOF
2802 1.45 jmc #define WORDS_BIGENDIAN 1
2803 1.61 christos _ACEOF
2804 1.61 christos ;;
2805 1.61 christos no)
2806 1.61 christos ;;
2807 1.61 christos *)
2808 1.61 christos { { echo "$as_me:$LINENO: error: unknown endianness
2809 1.61 christos presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2810 1.61 christos echo "$as_me: error: unknown endianness
2811 1.61 christos presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2812 1.61 christos { (exit 1); exit 1; }; } ;;
2813 1.61 christos esac
2814 1.52 dbj
2815 1.61 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2816 1.6 tv echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2817 1.6 tv if test "${ac_cv_header_stdc+set}" = set; then
2818 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2819 1.6 tv else
2820 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2821 1.61 christos /* confdefs.h. */
2822 1.61 christos _ACEOF
2823 1.61 christos cat confdefs.h >>conftest.$ac_ext
2824 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2825 1.61 christos /* end confdefs.h. */
2826 1.6 tv #include <stdlib.h>
2827 1.6 tv #include <stdarg.h>
2828 1.6 tv #include <string.h>
2829 1.6 tv #include <float.h>
2830 1.6 tv
2831 1.61 christos int
2832 1.61 christos main ()
2833 1.61 christos {
2834 1.61 christos
2835 1.61 christos ;
2836 1.61 christos return 0;
2837 1.61 christos }
2838 1.6 tv _ACEOF
2839 1.61 christos rm -f conftest.$ac_objext
2840 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 1.61 christos (eval $ac_compile) 2>conftest.er1
2842 1.39 fredb ac_status=$?
2843 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
2844 1.50 jmc rm -f conftest.er1
2845 1.50 jmc cat conftest.err >&5
2846 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 1.61 christos (exit $ac_status); } &&
2848 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
2849 1.61 christos || test ! -s conftest.err'
2850 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 1.61 christos (eval $ac_try) 2>&5
2852 1.61 christos ac_status=$?
2853 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 1.61 christos (exit $ac_status); }; } &&
2855 1.61 christos { ac_try='test -s conftest.$ac_objext'
2856 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 1.61 christos (eval $ac_try) 2>&5
2858 1.61 christos ac_status=$?
2859 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 1.61 christos (exit $ac_status); }; }; then
2861 1.6 tv ac_cv_header_stdc=yes
2862 1.6 tv else
2863 1.6 tv echo "$as_me: failed program was:" >&5
2864 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2865 1.61 christos
2866 1.61 christos ac_cv_header_stdc=no
2867 1.6 tv fi
2868 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869 1.6 tv
2870 1.6 tv if test $ac_cv_header_stdc = yes; then
2871 1.6 tv # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2872 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2873 1.61 christos /* confdefs.h. */
2874 1.61 christos _ACEOF
2875 1.61 christos cat confdefs.h >>conftest.$ac_ext
2876 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2877 1.61 christos /* end confdefs.h. */
2878 1.6 tv #include <string.h>
2879 1.6 tv
2880 1.6 tv _ACEOF
2881 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2882 1.61 christos $EGREP "memchr" >/dev/null 2>&1; then
2883 1.6 tv :
2884 1.6 tv else
2885 1.6 tv ac_cv_header_stdc=no
2886 1.6 tv fi
2887 1.6 tv rm -f conftest*
2888 1.6 tv
2889 1.6 tv fi
2890 1.6 tv
2891 1.6 tv if test $ac_cv_header_stdc = yes; then
2892 1.6 tv # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2893 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2894 1.61 christos /* confdefs.h. */
2895 1.61 christos _ACEOF
2896 1.61 christos cat confdefs.h >>conftest.$ac_ext
2897 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2898 1.61 christos /* end confdefs.h. */
2899 1.6 tv #include <stdlib.h>
2900 1.6 tv
2901 1.6 tv _ACEOF
2902 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2903 1.61 christos $EGREP "free" >/dev/null 2>&1; then
2904 1.6 tv :
2905 1.6 tv else
2906 1.6 tv ac_cv_header_stdc=no
2907 1.6 tv fi
2908 1.6 tv rm -f conftest*
2909 1.6 tv
2910 1.6 tv fi
2911 1.6 tv
2912 1.6 tv if test $ac_cv_header_stdc = yes; then
2913 1.6 tv # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2914 1.6 tv if test "$cross_compiling" = yes; then
2915 1.6 tv :
2916 1.6 tv else
2917 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2918 1.61 christos /* confdefs.h. */
2919 1.61 christos _ACEOF
2920 1.61 christos cat confdefs.h >>conftest.$ac_ext
2921 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
2922 1.61 christos /* end confdefs.h. */
2923 1.6 tv #include <ctype.h>
2924 1.6 tv #if ((' ' & 0x0FF) == 0x020)
2925 1.6 tv # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2926 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2927 1.6 tv #else
2928 1.61 christos # define ISLOWER(c) \
2929 1.61 christos (('a' <= (c) && (c) <= 'i') \
2930 1.61 christos || ('j' <= (c) && (c) <= 'r') \
2931 1.61 christos || ('s' <= (c) && (c) <= 'z'))
2932 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2933 1.6 tv #endif
2934 1.6 tv
2935 1.6 tv #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2936 1.6 tv int
2937 1.6 tv main ()
2938 1.6 tv {
2939 1.6 tv int i;
2940 1.6 tv for (i = 0; i < 256; i++)
2941 1.6 tv if (XOR (islower (i), ISLOWER (i))
2942 1.61 christos || toupper (i) != TOUPPER (i))
2943 1.6 tv exit(2);
2944 1.6 tv exit (0);
2945 1.6 tv }
2946 1.6 tv _ACEOF
2947 1.6 tv rm -f conftest$ac_exeext
2948 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949 1.6 tv (eval $ac_link) 2>&5
2950 1.6 tv ac_status=$?
2951 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 1.6 tv (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2953 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 1.6 tv (eval $ac_try) 2>&5
2955 1.6 tv ac_status=$?
2956 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 1.6 tv (exit $ac_status); }; }; then
2958 1.6 tv :
2959 1.6 tv else
2960 1.6 tv echo "$as_me: program exited with status $ac_status" >&5
2961 1.6 tv echo "$as_me: failed program was:" >&5
2962 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
2963 1.61 christos
2964 1.61 christos ( exit $ac_status )
2965 1.6 tv ac_cv_header_stdc=no
2966 1.6 tv fi
2967 1.61 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2968 1.6 tv fi
2969 1.6 tv fi
2970 1.6 tv fi
2971 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2972 1.6 tv echo "${ECHO_T}$ac_cv_header_stdc" >&6
2973 1.6 tv if test $ac_cv_header_stdc = yes; then
2974 1.6 tv
2975 1.61 christos cat >>confdefs.h <<\_ACEOF
2976 1.6 tv #define STDC_HEADERS 1
2977 1.61 christos _ACEOF
2978 1.6 tv
2979 1.6 tv fi
2980 1.6 tv
2981 1.61 christos
2982 1.6 tv # Confirm existence of zlib. (This is available as a default install
2983 1.6 tv # option on many OS's; this could be added as a reachover build in the
2984 1.6 tv # future.)
2985 1.61 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2986 1.61 christos
2987 1.61 christos
2988 1.61 christos
2989 1.61 christos
2990 1.61 christos
2991 1.61 christos
2992 1.61 christos
2993 1.61 christos
2994 1.61 christos
2995 1.61 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2996 1.61 christos inttypes.h stdint.h unistd.h
2997 1.61 christos do
2998 1.61 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2999 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
3000 1.61 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3001 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
3002 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3003 1.39 fredb else
3004 1.43 dbj cat >conftest.$ac_ext <<_ACEOF
3005 1.61 christos /* confdefs.h. */
3006 1.61 christos _ACEOF
3007 1.61 christos cat confdefs.h >>conftest.$ac_ext
3008 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3009 1.61 christos /* end confdefs.h. */
3010 1.61 christos $ac_includes_default
3011 1.61 christos
3012 1.61 christos #include <$ac_header>
3013 1.53 dogcow _ACEOF
3014 1.61 christos rm -f conftest.$ac_objext
3015 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3016 1.61 christos (eval $ac_compile) 2>conftest.er1
3017 1.4 tv ac_status=$?
3018 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3019 1.50 jmc rm -f conftest.er1
3020 1.50 jmc cat conftest.err >&5
3021 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 1.61 christos (exit $ac_status); } &&
3023 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3024 1.61 christos || test ! -s conftest.err'
3025 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 1.61 christos (eval $ac_try) 2>&5
3027 1.61 christos ac_status=$?
3028 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 1.61 christos (exit $ac_status); }; } &&
3030 1.61 christos { ac_try='test -s conftest.$ac_objext'
3031 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 1.61 christos (eval $ac_try) 2>&5
3033 1.61 christos ac_status=$?
3034 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 1.61 christos (exit $ac_status); }; }; then
3036 1.61 christos eval "$as_ac_Header=yes"
3037 1.4 tv else
3038 1.4 tv echo "$as_me: failed program was:" >&5
3039 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3040 1.61 christos
3041 1.61 christos eval "$as_ac_Header=no"
3042 1.4 tv fi
3043 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3044 1.4 tv fi
3045 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3046 1.61 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3047 1.61 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
3048 1.61 christos cat >>confdefs.h <<_ACEOF
3049 1.61 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3050 1.61 christos _ACEOF
3051 1.61 christos
3052 1.6 tv fi
3053 1.6 tv
3054 1.61 christos done
3055 1.61 christos
3056 1.61 christos
3057 1.61 christos if test "${ac_cv_header_zlib_h+set}" = set; then
3058 1.61 christos echo "$as_me:$LINENO: checking for zlib.h" >&5
3059 1.61 christos echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3060 1.61 christos if test "${ac_cv_header_zlib_h+set}" = set; then
3061 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3062 1.61 christos fi
3063 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3064 1.61 christos echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3065 1.61 christos else
3066 1.61 christos # Is the header compilable?
3067 1.61 christos echo "$as_me:$LINENO: checking zlib.h usability" >&5
3068 1.61 christos echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
3069 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3070 1.61 christos /* confdefs.h. */
3071 1.61 christos _ACEOF
3072 1.61 christos cat confdefs.h >>conftest.$ac_ext
3073 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3074 1.61 christos /* end confdefs.h. */
3075 1.61 christos $ac_includes_default
3076 1.61 christos #include <zlib.h>
3077 1.61 christos _ACEOF
3078 1.61 christos rm -f conftest.$ac_objext
3079 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 1.61 christos (eval $ac_compile) 2>conftest.er1
3081 1.61 christos ac_status=$?
3082 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3083 1.61 christos rm -f conftest.er1
3084 1.61 christos cat conftest.err >&5
3085 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 1.61 christos (exit $ac_status); } &&
3087 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3088 1.61 christos || test ! -s conftest.err'
3089 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 1.61 christos (eval $ac_try) 2>&5
3091 1.61 christos ac_status=$?
3092 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 1.61 christos (exit $ac_status); }; } &&
3094 1.61 christos { ac_try='test -s conftest.$ac_objext'
3095 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 1.61 christos (eval $ac_try) 2>&5
3097 1.61 christos ac_status=$?
3098 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 1.61 christos (exit $ac_status); }; }; then
3100 1.61 christos ac_header_compiler=yes
3101 1.61 christos else
3102 1.61 christos echo "$as_me: failed program was:" >&5
3103 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3104 1.61 christos
3105 1.61 christos ac_header_compiler=no
3106 1.61 christos fi
3107 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108 1.61 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3109 1.61 christos echo "${ECHO_T}$ac_header_compiler" >&6
3110 1.61 christos
3111 1.61 christos # Is the header present?
3112 1.61 christos echo "$as_me:$LINENO: checking zlib.h presence" >&5
3113 1.61 christos echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
3114 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3115 1.61 christos /* confdefs.h. */
3116 1.61 christos _ACEOF
3117 1.61 christos cat confdefs.h >>conftest.$ac_ext
3118 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3119 1.61 christos /* end confdefs.h. */
3120 1.61 christos #include <zlib.h>
3121 1.61 christos _ACEOF
3122 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3123 1.61 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124 1.61 christos ac_status=$?
3125 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3126 1.61 christos rm -f conftest.er1
3127 1.61 christos cat conftest.err >&5
3128 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 1.61 christos (exit $ac_status); } >/dev/null; then
3130 1.61 christos if test -s conftest.err; then
3131 1.61 christos ac_cpp_err=$ac_c_preproc_warn_flag
3132 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3133 1.61 christos else
3134 1.61 christos ac_cpp_err=
3135 1.61 christos fi
3136 1.61 christos else
3137 1.61 christos ac_cpp_err=yes
3138 1.61 christos fi
3139 1.61 christos if test -z "$ac_cpp_err"; then
3140 1.61 christos ac_header_preproc=yes
3141 1.61 christos else
3142 1.61 christos echo "$as_me: failed program was:" >&5
3143 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3144 1.61 christos
3145 1.61 christos ac_header_preproc=no
3146 1.61 christos fi
3147 1.61 christos rm -f conftest.err conftest.$ac_ext
3148 1.61 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3149 1.61 christos echo "${ECHO_T}$ac_header_preproc" >&6
3150 1.61 christos
3151 1.61 christos # So? What about this header?
3152 1.61 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3153 1.61 christos yes:no: )
3154 1.61 christos { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3155 1.61 christos echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3156 1.61 christos { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
3157 1.61 christos echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
3158 1.61 christos ac_header_preproc=yes
3159 1.61 christos ;;
3160 1.61 christos no:yes:* )
3161 1.61 christos { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
3162 1.61 christos echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
3163 1.61 christos { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
3164 1.61 christos echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
3165 1.61 christos { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
3166 1.61 christos echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
3167 1.61 christos { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
3168 1.61 christos echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3169 1.61 christos { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
3170 1.61 christos echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
3171 1.61 christos { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
3172 1.61 christos echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
3173 1.61 christos (
3174 1.61 christos cat <<\_ASBOX
3175 1.61 christos ## ---------------------------------------- ##
3176 1.61 christos ## Report this to lib-bug-people (at] NetBSD.org ##
3177 1.61 christos ## ---------------------------------------- ##
3178 1.61 christos _ASBOX
3179 1.61 christos ) |
3180 1.61 christos sed "s/^/$as_me: WARNING: /" >&2
3181 1.61 christos ;;
3182 1.61 christos esac
3183 1.61 christos echo "$as_me:$LINENO: checking for zlib.h" >&5
3184 1.61 christos echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3185 1.61 christos if test "${ac_cv_header_zlib_h+set}" = set; then
3186 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3187 1.61 christos else
3188 1.61 christos ac_cv_header_zlib_h=$ac_header_preproc
3189 1.61 christos fi
3190 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3191 1.61 christos echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3192 1.61 christos
3193 1.61 christos fi
3194 1.61 christos if test $ac_cv_header_zlib_h = yes; then
3195 1.61 christos :
3196 1.61 christos else
3197 1.61 christos { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3198 1.61 christos echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3199 1.61 christos { (exit 1); exit 1; }; }
3200 1.61 christos fi
3201 1.61 christos
3202 1.61 christos
3203 1.61 christos
3204 1.61 christos echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
3205 1.60 apb echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
3206 1.60 apb if test "${ac_cv_lib_z_gzdopen+set}" = set; then
3207 1.52 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
3208 1.52 dbj else
3209 1.52 dbj ac_check_lib_save_LIBS=$LIBS
3210 1.52 dbj LIBS="-lz $LIBS"
3211 1.52 dbj cat >conftest.$ac_ext <<_ACEOF
3212 1.61 christos /* confdefs.h. */
3213 1.61 christos _ACEOF
3214 1.61 christos cat confdefs.h >>conftest.$ac_ext
3215 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3216 1.61 christos /* end confdefs.h. */
3217 1.48 jmc
3218 1.52 dbj /* Override any gcc2 internal prototype to avoid an error. */
3219 1.6 tv #ifdef __cplusplus
3220 1.6 tv extern "C"
3221 1.6 tv #endif
3222 1.6 tv /* We use char because int might match the return type of a gcc2
3223 1.6 tv builtin and then its argument prototype would still apply. */
3224 1.6 tv char gzdopen ();
3225 1.6 tv int
3226 1.6 tv main ()
3227 1.6 tv {
3228 1.6 tv gzdopen ();
3229 1.6 tv ;
3230 1.6 tv return 0;
3231 1.6 tv }
3232 1.6 tv _ACEOF
3233 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext
3234 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3235 1.61 christos (eval $ac_link) 2>conftest.er1
3236 1.6 tv ac_status=$?
3237 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3238 1.61 christos rm -f conftest.er1
3239 1.61 christos cat conftest.err >&5
3240 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 1.6 tv (exit $ac_status); } &&
3242 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3243 1.61 christos || test ! -s conftest.err'
3244 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 1.61 christos (eval $ac_try) 2>&5
3246 1.61 christos ac_status=$?
3247 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 1.61 christos (exit $ac_status); }; } &&
3249 1.61 christos { ac_try='test -s conftest$ac_exeext'
3250 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 1.53 dogcow (eval $ac_try) 2>&5
3252 1.53 dogcow ac_status=$?
3253 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 1.6 tv (exit $ac_status); }; }; then
3255 1.6 tv ac_cv_lib_z_gzdopen=yes
3256 1.6 tv else
3257 1.6 tv echo "$as_me: failed program was:" >&5
3258 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3259 1.61 christos
3260 1.6 tv ac_cv_lib_z_gzdopen=no
3261 1.6 tv fi
3262 1.61 christos rm -f conftest.err conftest.$ac_objext \
3263 1.61 christos conftest$ac_exeext conftest.$ac_ext
3264 1.6 tv LIBS=$ac_check_lib_save_LIBS
3265 1.6 tv fi
3266 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
3267 1.6 tv echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
3268 1.6 tv if test $ac_cv_lib_z_gzdopen = yes; then
3269 1.61 christos cat >>confdefs.h <<_ACEOF
3270 1.6 tv #define HAVE_LIBZ 1
3271 1.61 christos _ACEOF
3272 1.4 tv
3273 1.6 tv LIBS="-lz $LIBS"
3274 1.6 tv
3275 1.4 tv else
3276 1.61 christos { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3277 1.6 tv echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3278 1.4 tv { (exit 1); exit 1; }; }
3279 1.4 tv fi
3280 1.4 tv
3281 1.61 christos
3282 1.6 tv # Make sure certain required headers are available.
3283 1.6 tv # These are not necessarily required by the code, but they are not
3284 1.6 tv # currently conditionalized.
3285 1.4 tv
3286 1.61 christos
3287 1.61 christos
3288 1.61 christos
3289 1.61 christos
3290 1.61 christos
3291 1.61 christos
3292 1.61 christos
3293 1.61 christos
3294 1.61 christos
3295 1.61 christos
3296 1.61 christos
3297 1.61 christos
3298 1.61 christos
3299 1.61 christos
3300 1.61 christos
3301 1.61 christos
3302 1.61 christos
3303 1.61 christos
3304 1.61 christos
3305 1.61 christos
3306 1.61 christos
3307 1.61 christos
3308 1.61 christos
3309 1.61 christos
3310 1.61 christos
3311 1.43 dbj for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
3312 1.43 dbj sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
3313 1.43 dbj sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
3314 1.43 dbj netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
3315 1.43 dbj termios.h unistd.h
3316 1.43 dbj do
3317 1.43 dbj as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3318 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
3319 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
3320 1.43 dbj echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3321 1.43 dbj if eval "test \"\${$as_ac_Header+set}\" = set"; then
3322 1.43 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
3323 1.61 christos fi
3324 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3325 1.61 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3326 1.61 christos else
3327 1.61 christos # Is the header compilable?
3328 1.61 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
3329 1.61 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3330 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3331 1.61 christos /* confdefs.h. */
3332 1.61 christos _ACEOF
3333 1.61 christos cat confdefs.h >>conftest.$ac_ext
3334 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3335 1.61 christos /* end confdefs.h. */
3336 1.61 christos $ac_includes_default
3337 1.61 christos #include <$ac_header>
3338 1.61 christos _ACEOF
3339 1.61 christos rm -f conftest.$ac_objext
3340 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341 1.61 christos (eval $ac_compile) 2>conftest.er1
3342 1.61 christos ac_status=$?
3343 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3344 1.61 christos rm -f conftest.er1
3345 1.61 christos cat conftest.err >&5
3346 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 1.61 christos (exit $ac_status); } &&
3348 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3349 1.61 christos || test ! -s conftest.err'
3350 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 1.61 christos (eval $ac_try) 2>&5
3352 1.61 christos ac_status=$?
3353 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 1.61 christos (exit $ac_status); }; } &&
3355 1.61 christos { ac_try='test -s conftest.$ac_objext'
3356 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 1.61 christos (eval $ac_try) 2>&5
3358 1.61 christos ac_status=$?
3359 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 1.61 christos (exit $ac_status); }; }; then
3361 1.61 christos ac_header_compiler=yes
3362 1.53 dogcow else
3363 1.61 christos echo "$as_me: failed program was:" >&5
3364 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3365 1.61 christos
3366 1.61 christos ac_header_compiler=no
3367 1.61 christos fi
3368 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3369 1.61 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3370 1.61 christos echo "${ECHO_T}$ac_header_compiler" >&6
3371 1.61 christos
3372 1.61 christos # Is the header present?
3373 1.61 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
3374 1.61 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3375 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3376 1.61 christos /* confdefs.h. */
3377 1.61 christos _ACEOF
3378 1.61 christos cat confdefs.h >>conftest.$ac_ext
3379 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3380 1.61 christos /* end confdefs.h. */
3381 1.48 jmc #include <$ac_header>
3382 1.48 jmc _ACEOF
3383 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3384 1.4 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385 1.4 tv ac_status=$?
3386 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3387 1.4 tv rm -f conftest.er1
3388 1.4 tv cat conftest.err >&5
3389 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 1.4 tv (exit $ac_status); } >/dev/null; then
3391 1.4 tv if test -s conftest.err; then
3392 1.4 tv ac_cpp_err=$ac_c_preproc_warn_flag
3393 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3394 1.4 tv else
3395 1.4 tv ac_cpp_err=
3396 1.4 tv fi
3397 1.4 tv else
3398 1.6 tv ac_cpp_err=yes
3399 1.6 tv fi
3400 1.6 tv if test -z "$ac_cpp_err"; then
3401 1.61 christos ac_header_preproc=yes
3402 1.6 tv else
3403 1.6 tv echo "$as_me: failed program was:" >&5
3404 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3405 1.61 christos
3406 1.61 christos ac_header_preproc=no
3407 1.6 tv fi
3408 1.6 tv rm -f conftest.err conftest.$ac_ext
3409 1.61 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3410 1.61 christos echo "${ECHO_T}$ac_header_preproc" >&6
3411 1.61 christos
3412 1.61 christos # So? What about this header?
3413 1.61 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3414 1.61 christos yes:no: )
3415 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3416 1.61 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3417 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3418 1.61 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3419 1.61 christos ac_header_preproc=yes
3420 1.61 christos ;;
3421 1.61 christos no:yes:* )
3422 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3423 1.61 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3424 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3425 1.61 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3426 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3427 1.61 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3428 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3429 1.61 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3430 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3431 1.61 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3432 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3433 1.61 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3434 1.61 christos (
3435 1.61 christos cat <<\_ASBOX
3436 1.61 christos ## ---------------------------------------- ##
3437 1.61 christos ## Report this to lib-bug-people (at] NetBSD.org ##
3438 1.61 christos ## ---------------------------------------- ##
3439 1.61 christos _ASBOX
3440 1.61 christos ) |
3441 1.61 christos sed "s/^/$as_me: WARNING: /" >&2
3442 1.61 christos ;;
3443 1.61 christos esac
3444 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
3445 1.61 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3446 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
3447 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3448 1.61 christos else
3449 1.61 christos eval "$as_ac_Header=\$ac_header_preproc"
3450 1.6 tv fi
3451 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3452 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3453 1.61 christos
3454 1.61 christos fi
3455 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
3456 1.61 christos cat >>confdefs.h <<_ACEOF
3457 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3458 1.61 christos _ACEOF
3459 1.6 tv
3460 1.6 tv else
3461 1.61 christos { { echo "$as_me:$LINENO: error: standard system header file not found" >&5
3462 1.6 tv echo "$as_me: error: standard system header file not found" >&2;}
3463 1.6 tv { (exit 1); exit 1; }; }
3464 1.6 tv fi
3465 1.61 christos
3466 1.6 tv done
3467 1.6 tv
3468 1.61 christos
3469 1.6 tv # Find headers that may not be available.
3470 1.6 tv
3471 1.61 christos
3472 1.61 christos
3473 1.61 christos
3474 1.61 christos
3475 1.6 tv ac_header_dirent=no
3476 1.6 tv for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3477 1.6 tv as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3478 1.61 christos echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3479 1.6 tv echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3480 1.6 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
3481 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3482 1.6 tv else
3483 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3484 1.61 christos /* confdefs.h. */
3485 1.61 christos _ACEOF
3486 1.61 christos cat confdefs.h >>conftest.$ac_ext
3487 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3488 1.61 christos /* end confdefs.h. */
3489 1.6 tv #include <sys/types.h>
3490 1.6 tv #include <$ac_hdr>
3491 1.6 tv
3492 1.6 tv int
3493 1.6 tv main ()
3494 1.6 tv {
3495 1.6 tv if ((DIR *) 0)
3496 1.6 tv return 0;
3497 1.6 tv ;
3498 1.6 tv return 0;
3499 1.6 tv }
3500 1.6 tv _ACEOF
3501 1.6 tv rm -f conftest.$ac_objext
3502 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 1.61 christos (eval $ac_compile) 2>conftest.er1
3504 1.6 tv ac_status=$?
3505 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3506 1.61 christos rm -f conftest.er1
3507 1.61 christos cat conftest.err >&5
3508 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 1.6 tv (exit $ac_status); } &&
3510 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3511 1.61 christos || test ! -s conftest.err'
3512 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 1.61 christos (eval $ac_try) 2>&5
3514 1.61 christos ac_status=$?
3515 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 1.61 christos (exit $ac_status); }; } &&
3517 1.61 christos { ac_try='test -s conftest.$ac_objext'
3518 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 1.50 jmc (eval $ac_try) 2>&5
3520 1.50 jmc ac_status=$?
3521 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 1.6 tv (exit $ac_status); }; }; then
3523 1.6 tv eval "$as_ac_Header=yes"
3524 1.6 tv else
3525 1.6 tv echo "$as_me: failed program was:" >&5
3526 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3527 1.61 christos
3528 1.6 tv eval "$as_ac_Header=no"
3529 1.6 tv fi
3530 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531 1.6 tv fi
3532 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3533 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3534 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
3535 1.61 christos cat >>confdefs.h <<_ACEOF
3536 1.6 tv #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3537 1.61 christos _ACEOF
3538 1.6 tv
3539 1.6 tv ac_header_dirent=$ac_hdr; break
3540 1.6 tv fi
3541 1.6 tv
3542 1.6 tv done
3543 1.6 tv # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3544 1.6 tv if test $ac_header_dirent = dirent.h; then
3545 1.61 christos echo "$as_me:$LINENO: checking for library containing opendir" >&5
3546 1.61 christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3547 1.61 christos if test "${ac_cv_search_opendir+set}" = set; then
3548 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3549 1.6 tv else
3550 1.61 christos ac_func_search_save_LIBS=$LIBS
3551 1.61 christos ac_cv_search_opendir=no
3552 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3553 1.61 christos /* confdefs.h. */
3554 1.61 christos _ACEOF
3555 1.61 christos cat confdefs.h >>conftest.$ac_ext
3556 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3557 1.61 christos /* end confdefs.h. */
3558 1.48 jmc
3559 1.48 jmc /* Override any gcc2 internal prototype to avoid an error. */
3560 1.48 jmc #ifdef __cplusplus
3561 1.48 jmc extern "C"
3562 1.48 jmc #endif
3563 1.48 jmc /* We use char because int might match the return type of a gcc2
3564 1.48 jmc builtin and then its argument prototype would still apply. */
3565 1.48 jmc char opendir ();
3566 1.48 jmc int
3567 1.48 jmc main ()
3568 1.48 jmc {
3569 1.48 jmc opendir ();
3570 1.48 jmc ;
3571 1.48 jmc return 0;
3572 1.48 jmc }
3573 1.48 jmc _ACEOF
3574 1.48 jmc rm -f conftest.$ac_objext conftest$ac_exeext
3575 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3576 1.61 christos (eval $ac_link) 2>conftest.er1
3577 1.6 tv ac_status=$?
3578 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3579 1.61 christos rm -f conftest.er1
3580 1.61 christos cat conftest.err >&5
3581 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 1.6 tv (exit $ac_status); } &&
3583 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3584 1.61 christos || test ! -s conftest.err'
3585 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 1.61 christos (eval $ac_try) 2>&5
3587 1.61 christos ac_status=$?
3588 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 1.61 christos (exit $ac_status); }; } &&
3590 1.61 christos { ac_try='test -s conftest$ac_exeext'
3591 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 1.53 dogcow (eval $ac_try) 2>&5
3593 1.53 dogcow ac_status=$?
3594 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 1.6 tv (exit $ac_status); }; }; then
3596 1.61 christos ac_cv_search_opendir="none required"
3597 1.6 tv else
3598 1.6 tv echo "$as_me: failed program was:" >&5
3599 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3600 1.61 christos
3601 1.60 apb fi
3602 1.61 christos rm -f conftest.err conftest.$ac_objext \
3603 1.61 christos conftest$ac_exeext conftest.$ac_ext
3604 1.61 christos if test "$ac_cv_search_opendir" = no; then
3605 1.61 christos for ac_lib in dir; do
3606 1.61 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3607 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3608 1.61 christos /* confdefs.h. */
3609 1.61 christos _ACEOF
3610 1.61 christos cat confdefs.h >>conftest.$ac_ext
3611 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3612 1.61 christos /* end confdefs.h. */
3613 1.6 tv
3614 1.6 tv /* Override any gcc2 internal prototype to avoid an error. */
3615 1.6 tv #ifdef __cplusplus
3616 1.6 tv extern "C"
3617 1.6 tv #endif
3618 1.6 tv /* We use char because int might match the return type of a gcc2
3619 1.6 tv builtin and then its argument prototype would still apply. */
3620 1.6 tv char opendir ();
3621 1.6 tv int
3622 1.6 tv main ()
3623 1.6 tv {
3624 1.6 tv opendir ();
3625 1.6 tv ;
3626 1.6 tv return 0;
3627 1.6 tv }
3628 1.6 tv _ACEOF
3629 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext
3630 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3631 1.61 christos (eval $ac_link) 2>conftest.er1
3632 1.48 jmc ac_status=$?
3633 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3634 1.61 christos rm -f conftest.er1
3635 1.61 christos cat conftest.err >&5
3636 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 1.48 jmc (exit $ac_status); } &&
3638 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3639 1.61 christos || test ! -s conftest.err'
3640 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 1.61 christos (eval $ac_try) 2>&5
3642 1.61 christos ac_status=$?
3643 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 1.61 christos (exit $ac_status); }; } &&
3645 1.61 christos { ac_try='test -s conftest$ac_exeext'
3646 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 1.50 jmc (eval $ac_try) 2>&5
3648 1.50 jmc ac_status=$?
3649 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 1.48 jmc (exit $ac_status); }; }; then
3651 1.61 christos ac_cv_search_opendir="-l$ac_lib"
3652 1.61 christos break
3653 1.48 jmc else
3654 1.48 jmc echo "$as_me: failed program was:" >&5
3655 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3656 1.61 christos
3657 1.48 jmc fi
3658 1.61 christos rm -f conftest.err conftest.$ac_objext \
3659 1.61 christos conftest$ac_exeext conftest.$ac_ext
3660 1.61 christos done
3661 1.48 jmc fi
3662 1.61 christos LIBS=$ac_func_search_save_LIBS
3663 1.6 tv fi
3664 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3665 1.61 christos echo "${ECHO_T}$ac_cv_search_opendir" >&6
3666 1.61 christos if test "$ac_cv_search_opendir" != no; then
3667 1.61 christos test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3668 1.39 fredb
3669 1.6 tv fi
3670 1.6 tv
3671 1.61 christos else
3672 1.61 christos echo "$as_me:$LINENO: checking for library containing opendir" >&5
3673 1.61 christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3674 1.61 christos if test "${ac_cv_search_opendir+set}" = set; then
3675 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3676 1.48 jmc else
3677 1.61 christos ac_func_search_save_LIBS=$LIBS
3678 1.61 christos ac_cv_search_opendir=no
3679 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3680 1.61 christos /* confdefs.h. */
3681 1.61 christos _ACEOF
3682 1.61 christos cat confdefs.h >>conftest.$ac_ext
3683 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3684 1.61 christos /* end confdefs.h. */
3685 1.61 christos
3686 1.61 christos /* Override any gcc2 internal prototype to avoid an error. */
3687 1.61 christos #ifdef __cplusplus
3688 1.61 christos extern "C"
3689 1.61 christos #endif
3690 1.61 christos /* We use char because int might match the return type of a gcc2
3691 1.61 christos builtin and then its argument prototype would still apply. */
3692 1.61 christos char opendir ();
3693 1.61 christos int
3694 1.61 christos main ()
3695 1.61 christos {
3696 1.61 christos opendir ();
3697 1.61 christos ;
3698 1.61 christos return 0;
3699 1.61 christos }
3700 1.53 dogcow _ACEOF
3701 1.61 christos rm -f conftest.$ac_objext conftest$ac_exeext
3702 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3703 1.61 christos (eval $ac_link) 2>conftest.er1
3704 1.6 tv ac_status=$?
3705 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3706 1.6 tv rm -f conftest.er1
3707 1.6 tv cat conftest.err >&5
3708 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 1.61 christos (exit $ac_status); } &&
3710 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3711 1.61 christos || test ! -s conftest.err'
3712 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 1.61 christos (eval $ac_try) 2>&5
3714 1.61 christos ac_status=$?
3715 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 1.61 christos (exit $ac_status); }; } &&
3717 1.61 christos { ac_try='test -s conftest$ac_exeext'
3718 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 1.61 christos (eval $ac_try) 2>&5
3720 1.61 christos ac_status=$?
3721 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 1.61 christos (exit $ac_status); }; }; then
3723 1.61 christos ac_cv_search_opendir="none required"
3724 1.6 tv else
3725 1.6 tv echo "$as_me: failed program was:" >&5
3726 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3727 1.6 tv
3728 1.6 tv fi
3729 1.61 christos rm -f conftest.err conftest.$ac_objext \
3730 1.61 christos conftest$ac_exeext conftest.$ac_ext
3731 1.61 christos if test "$ac_cv_search_opendir" = no; then
3732 1.61 christos for ac_lib in x; do
3733 1.61 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3734 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3735 1.61 christos /* confdefs.h. */
3736 1.61 christos _ACEOF
3737 1.61 christos cat confdefs.h >>conftest.$ac_ext
3738 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3739 1.61 christos /* end confdefs.h. */
3740 1.6 tv
3741 1.61 christos /* Override any gcc2 internal prototype to avoid an error. */
3742 1.61 christos #ifdef __cplusplus
3743 1.61 christos extern "C"
3744 1.61 christos #endif
3745 1.61 christos /* We use char because int might match the return type of a gcc2
3746 1.61 christos builtin and then its argument prototype would still apply. */
3747 1.61 christos char opendir ();
3748 1.61 christos int
3749 1.61 christos main ()
3750 1.61 christos {
3751 1.61 christos opendir ();
3752 1.61 christos ;
3753 1.61 christos return 0;
3754 1.61 christos }
3755 1.61 christos _ACEOF
3756 1.61 christos rm -f conftest.$ac_objext conftest$ac_exeext
3757 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3758 1.61 christos (eval $ac_link) 2>conftest.er1
3759 1.61 christos ac_status=$?
3760 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3761 1.61 christos rm -f conftest.er1
3762 1.61 christos cat conftest.err >&5
3763 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 1.61 christos (exit $ac_status); } &&
3765 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3766 1.61 christos || test ! -s conftest.err'
3767 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 1.61 christos (eval $ac_try) 2>&5
3769 1.61 christos ac_status=$?
3770 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 1.61 christos (exit $ac_status); }; } &&
3772 1.61 christos { ac_try='test -s conftest$ac_exeext'
3773 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 1.61 christos (eval $ac_try) 2>&5
3775 1.61 christos ac_status=$?
3776 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 1.61 christos (exit $ac_status); }; }; then
3778 1.61 christos ac_cv_search_opendir="-l$ac_lib"
3779 1.61 christos break
3780 1.61 christos else
3781 1.61 christos echo "$as_me: failed program was:" >&5
3782 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3783 1.61 christos
3784 1.61 christos fi
3785 1.61 christos rm -f conftest.err conftest.$ac_objext \
3786 1.61 christos conftest$ac_exeext conftest.$ac_ext
3787 1.61 christos done
3788 1.61 christos fi
3789 1.61 christos LIBS=$ac_func_search_save_LIBS
3790 1.61 christos fi
3791 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3792 1.61 christos echo "${ECHO_T}$ac_cv_search_opendir" >&6
3793 1.61 christos if test "$ac_cv_search_opendir" != no; then
3794 1.61 christos test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3795 1.61 christos
3796 1.61 christos fi
3797 1.61 christos
3798 1.61 christos fi
3799 1.61 christos
3800 1.61 christos
3801 1.61 christos
3802 1.61 christos
3803 1.61 christos
3804 1.61 christos
3805 1.61 christos
3806 1.61 christos
3807 1.61 christos for ac_header in sys/sysmacros.h sys/syslimits.h \
3808 1.61 christos getopt.h features.h malloc.h sys/poll.h stddef.h
3809 1.60 apb do
3810 1.60 apb as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3811 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
3812 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
3813 1.60 apb echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3814 1.60 apb if eval "test \"\${$as_ac_Header+set}\" = set"; then
3815 1.39 fredb echo $ECHO_N "(cached) $ECHO_C" >&6
3816 1.61 christos fi
3817 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3818 1.61 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3819 1.61 christos else
3820 1.61 christos # Is the header compilable?
3821 1.61 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
3822 1.61 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3823 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3824 1.61 christos /* confdefs.h. */
3825 1.61 christos _ACEOF
3826 1.61 christos cat confdefs.h >>conftest.$ac_ext
3827 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3828 1.61 christos /* end confdefs.h. */
3829 1.61 christos $ac_includes_default
3830 1.61 christos #include <$ac_header>
3831 1.61 christos _ACEOF
3832 1.61 christos rm -f conftest.$ac_objext
3833 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 1.61 christos (eval $ac_compile) 2>conftest.er1
3835 1.61 christos ac_status=$?
3836 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3837 1.61 christos rm -f conftest.er1
3838 1.61 christos cat conftest.err >&5
3839 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 1.61 christos (exit $ac_status); } &&
3841 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
3842 1.61 christos || test ! -s conftest.err'
3843 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 1.61 christos (eval $ac_try) 2>&5
3845 1.61 christos ac_status=$?
3846 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 1.61 christos (exit $ac_status); }; } &&
3848 1.61 christos { ac_try='test -s conftest.$ac_objext'
3849 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 1.61 christos (eval $ac_try) 2>&5
3851 1.61 christos ac_status=$?
3852 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 1.61 christos (exit $ac_status); }; }; then
3854 1.61 christos ac_header_compiler=yes
3855 1.53 dogcow else
3856 1.61 christos echo "$as_me: failed program was:" >&5
3857 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3858 1.61 christos
3859 1.61 christos ac_header_compiler=no
3860 1.61 christos fi
3861 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862 1.61 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3863 1.61 christos echo "${ECHO_T}$ac_header_compiler" >&6
3864 1.61 christos
3865 1.61 christos # Is the header present?
3866 1.61 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
3867 1.61 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3868 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3869 1.61 christos /* confdefs.h. */
3870 1.61 christos _ACEOF
3871 1.61 christos cat confdefs.h >>conftest.$ac_ext
3872 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3873 1.61 christos /* end confdefs.h. */
3874 1.48 jmc #include <$ac_header>
3875 1.48 jmc _ACEOF
3876 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3877 1.6 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3878 1.6 tv ac_status=$?
3879 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3880 1.6 tv rm -f conftest.er1
3881 1.6 tv cat conftest.err >&5
3882 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 1.6 tv (exit $ac_status); } >/dev/null; then
3884 1.6 tv if test -s conftest.err; then
3885 1.6 tv ac_cpp_err=$ac_c_preproc_warn_flag
3886 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3887 1.6 tv else
3888 1.6 tv ac_cpp_err=
3889 1.6 tv fi
3890 1.6 tv else
3891 1.6 tv ac_cpp_err=yes
3892 1.6 tv fi
3893 1.6 tv if test -z "$ac_cpp_err"; then
3894 1.61 christos ac_header_preproc=yes
3895 1.6 tv else
3896 1.6 tv echo "$as_me: failed program was:" >&5
3897 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
3898 1.61 christos
3899 1.61 christos ac_header_preproc=no
3900 1.6 tv fi
3901 1.6 tv rm -f conftest.err conftest.$ac_ext
3902 1.61 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3903 1.61 christos echo "${ECHO_T}$ac_header_preproc" >&6
3904 1.61 christos
3905 1.61 christos # So? What about this header?
3906 1.61 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3907 1.61 christos yes:no: )
3908 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3909 1.61 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3910 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3911 1.61 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3912 1.61 christos ac_header_preproc=yes
3913 1.61 christos ;;
3914 1.61 christos no:yes:* )
3915 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3916 1.61 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3917 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3918 1.61 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3919 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3920 1.61 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3921 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3922 1.61 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3923 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3924 1.61 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3925 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3926 1.61 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3927 1.61 christos (
3928 1.61 christos cat <<\_ASBOX
3929 1.61 christos ## ---------------------------------------- ##
3930 1.61 christos ## Report this to lib-bug-people (at] NetBSD.org ##
3931 1.61 christos ## ---------------------------------------- ##
3932 1.61 christos _ASBOX
3933 1.61 christos ) |
3934 1.61 christos sed "s/^/$as_me: WARNING: /" >&2
3935 1.61 christos ;;
3936 1.61 christos esac
3937 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
3938 1.61 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3939 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
3940 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3941 1.61 christos else
3942 1.61 christos eval "$as_ac_Header=\$ac_header_preproc"
3943 1.6 tv fi
3944 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3945 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3946 1.61 christos
3947 1.61 christos fi
3948 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
3949 1.61 christos cat >>confdefs.h <<_ACEOF
3950 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3951 1.61 christos _ACEOF
3952 1.6 tv
3953 1.6 tv fi
3954 1.61 christos
3955 1.6 tv done
3956 1.6 tv
3957 1.61 christos
3958 1.61 christos
3959 1.61 christos
3960 1.61 christos
3961 1.61 christos
3962 1.61 christos
3963 1.61 christos
3964 1.61 christos
3965 1.61 christos
3966 1.61 christos
3967 1.61 christos
3968 1.61 christos for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
3969 1.61 christos sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h
3970 1.7 tv do
3971 1.7 tv as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
3973 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
3974 1.7 tv echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3975 1.7 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
3976 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3977 1.61 christos fi
3978 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3979 1.61 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3980 1.61 christos else
3981 1.61 christos # Is the header compilable?
3982 1.61 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
3983 1.61 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3984 1.61 christos cat >conftest.$ac_ext <<_ACEOF
3985 1.61 christos /* confdefs.h. */
3986 1.61 christos _ACEOF
3987 1.61 christos cat confdefs.h >>conftest.$ac_ext
3988 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
3989 1.61 christos /* end confdefs.h. */
3990 1.61 christos $ac_includes_default
3991 1.61 christos #include <$ac_header>
3992 1.61 christos _ACEOF
3993 1.61 christos rm -f conftest.$ac_objext
3994 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 1.61 christos (eval $ac_compile) 2>conftest.er1
3996 1.61 christos ac_status=$?
3997 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
3998 1.61 christos rm -f conftest.er1
3999 1.61 christos cat conftest.err >&5
4000 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 1.61 christos (exit $ac_status); } &&
4002 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4003 1.61 christos || test ! -s conftest.err'
4004 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 1.61 christos (eval $ac_try) 2>&5
4006 1.61 christos ac_status=$?
4007 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 1.61 christos (exit $ac_status); }; } &&
4009 1.61 christos { ac_try='test -s conftest.$ac_objext'
4010 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 1.61 christos (eval $ac_try) 2>&5
4012 1.61 christos ac_status=$?
4013 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 1.61 christos (exit $ac_status); }; }; then
4015 1.61 christos ac_header_compiler=yes
4016 1.53 dogcow else
4017 1.61 christos echo "$as_me: failed program was:" >&5
4018 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4019 1.61 christos
4020 1.61 christos ac_header_compiler=no
4021 1.61 christos fi
4022 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023 1.61 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4024 1.61 christos echo "${ECHO_T}$ac_header_compiler" >&6
4025 1.61 christos
4026 1.61 christos # Is the header present?
4027 1.61 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
4028 1.61 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4029 1.61 christos cat >conftest.$ac_ext <<_ACEOF
4030 1.61 christos /* confdefs.h. */
4031 1.61 christos _ACEOF
4032 1.61 christos cat confdefs.h >>conftest.$ac_ext
4033 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4034 1.61 christos /* end confdefs.h. */
4035 1.7 tv #include <$ac_header>
4036 1.7 tv _ACEOF
4037 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4038 1.7 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4039 1.7 tv ac_status=$?
4040 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4041 1.7 tv rm -f conftest.er1
4042 1.7 tv cat conftest.err >&5
4043 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 1.7 tv (exit $ac_status); } >/dev/null; then
4045 1.7 tv if test -s conftest.err; then
4046 1.7 tv ac_cpp_err=$ac_c_preproc_warn_flag
4047 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4048 1.7 tv else
4049 1.7 tv ac_cpp_err=
4050 1.7 tv fi
4051 1.7 tv else
4052 1.7 tv ac_cpp_err=yes
4053 1.7 tv fi
4054 1.7 tv if test -z "$ac_cpp_err"; then
4055 1.61 christos ac_header_preproc=yes
4056 1.7 tv else
4057 1.7 tv echo "$as_me: failed program was:" >&5
4058 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4059 1.61 christos
4060 1.61 christos ac_header_preproc=no
4061 1.43 dbj fi
4062 1.43 dbj rm -f conftest.err conftest.$ac_ext
4063 1.61 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4064 1.61 christos echo "${ECHO_T}$ac_header_preproc" >&6
4065 1.61 christos
4066 1.61 christos # So? What about this header?
4067 1.61 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4068 1.61 christos yes:no: )
4069 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4070 1.61 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4071 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4072 1.61 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4073 1.61 christos ac_header_preproc=yes
4074 1.61 christos ;;
4075 1.61 christos no:yes:* )
4076 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4077 1.61 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4078 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4079 1.61 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4080 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4081 1.61 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4082 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4083 1.61 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4084 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4085 1.61 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4086 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4087 1.61 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4088 1.61 christos (
4089 1.61 christos cat <<\_ASBOX
4090 1.61 christos ## ---------------------------------------- ##
4091 1.61 christos ## Report this to lib-bug-people (at] NetBSD.org ##
4092 1.61 christos ## ---------------------------------------- ##
4093 1.61 christos _ASBOX
4094 1.61 christos ) |
4095 1.61 christos sed "s/^/$as_me: WARNING: /" >&2
4096 1.61 christos ;;
4097 1.61 christos esac
4098 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
4099 1.61 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4100 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
4101 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4102 1.61 christos else
4103 1.61 christos eval "$as_ac_Header=\$ac_header_preproc"
4104 1.43 dbj fi
4105 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4106 1.43 dbj echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4107 1.61 christos
4108 1.61 christos fi
4109 1.43 dbj if test `eval echo '${'$as_ac_Header'}'` = yes; then
4110 1.61 christos cat >>confdefs.h <<_ACEOF
4111 1.43 dbj #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4112 1.61 christos _ACEOF
4113 1.39 fredb
4114 1.43 dbj else
4115 1.61 christos test -f include/$ac_header || touch include/$ac_header
4116 1.7 tv fi
4117 1.61 christos
4118 1.52 dbj done
4119 1.52 dbj
4120 1.52 dbj
4121 1.61 christos
4122 1.61 christos for ac_header in rpc/types.h netconfig.h
4123 1.52 dbj do
4124 1.52 dbj as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4125 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
4126 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
4127 1.52 dbj echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4128 1.52 dbj if eval "test \"\${$as_ac_Header+set}\" = set"; then
4129 1.52 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
4130 1.61 christos fi
4131 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4132 1.61 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4133 1.52 dbj else
4134 1.61 christos # Is the header compilable?
4135 1.61 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
4136 1.61 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4137 1.61 christos cat >conftest.$ac_ext <<_ACEOF
4138 1.61 christos /* confdefs.h. */
4139 1.61 christos _ACEOF
4140 1.61 christos cat confdefs.h >>conftest.$ac_ext
4141 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4142 1.61 christos /* end confdefs.h. */
4143 1.52 dbj $ac_includes_default
4144 1.52 dbj #include <$ac_header>
4145 1.52 dbj _ACEOF
4146 1.52 dbj rm -f conftest.$ac_objext
4147 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 1.61 christos (eval $ac_compile) 2>conftest.er1
4149 1.52 dbj ac_status=$?
4150 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4151 1.61 christos rm -f conftest.er1
4152 1.61 christos cat conftest.err >&5
4153 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 1.52 dbj (exit $ac_status); } &&
4155 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4156 1.61 christos || test ! -s conftest.err'
4157 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 1.52 dbj (eval $ac_try) 2>&5
4159 1.52 dbj ac_status=$?
4160 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 1.61 christos (exit $ac_status); }; } &&
4162 1.61 christos { ac_try='test -s conftest.$ac_objext'
4163 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 1.61 christos (eval $ac_try) 2>&5
4165 1.61 christos ac_status=$?
4166 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 1.52 dbj (exit $ac_status); }; }; then
4168 1.61 christos ac_header_compiler=yes
4169 1.61 christos else
4170 1.61 christos echo "$as_me: failed program was:" >&5
4171 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4172 1.61 christos
4173 1.61 christos ac_header_compiler=no
4174 1.61 christos fi
4175 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 1.61 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4177 1.61 christos echo "${ECHO_T}$ac_header_compiler" >&6
4178 1.61 christos
4179 1.61 christos # Is the header present?
4180 1.61 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
4181 1.61 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4182 1.61 christos cat >conftest.$ac_ext <<_ACEOF
4183 1.61 christos /* confdefs.h. */
4184 1.61 christos _ACEOF
4185 1.61 christos cat confdefs.h >>conftest.$ac_ext
4186 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4187 1.61 christos /* end confdefs.h. */
4188 1.61 christos #include <$ac_header>
4189 1.61 christos _ACEOF
4190 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4191 1.61 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4192 1.61 christos ac_status=$?
4193 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4194 1.61 christos rm -f conftest.er1
4195 1.61 christos cat conftest.err >&5
4196 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 1.61 christos (exit $ac_status); } >/dev/null; then
4198 1.61 christos if test -s conftest.err; then
4199 1.61 christos ac_cpp_err=$ac_c_preproc_warn_flag
4200 1.61 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4201 1.61 christos else
4202 1.61 christos ac_cpp_err=
4203 1.61 christos fi
4204 1.61 christos else
4205 1.61 christos ac_cpp_err=yes
4206 1.61 christos fi
4207 1.61 christos if test -z "$ac_cpp_err"; then
4208 1.61 christos ac_header_preproc=yes
4209 1.53 dogcow else
4210 1.53 dogcow echo "$as_me: failed program was:" >&5
4211 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4212 1.61 christos
4213 1.61 christos ac_header_preproc=no
4214 1.52 dbj fi
4215 1.61 christos rm -f conftest.err conftest.$ac_ext
4216 1.61 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4217 1.61 christos echo "${ECHO_T}$ac_header_preproc" >&6
4218 1.61 christos
4219 1.61 christos # So? What about this header?
4220 1.61 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4221 1.61 christos yes:no: )
4222 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4223 1.61 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4224 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4225 1.61 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4226 1.61 christos ac_header_preproc=yes
4227 1.61 christos ;;
4228 1.61 christos no:yes:* )
4229 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4230 1.61 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4231 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4232 1.61 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4233 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4234 1.61 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4235 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4236 1.61 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4237 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4238 1.61 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4239 1.61 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4240 1.61 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4241 1.61 christos (
4242 1.61 christos cat <<\_ASBOX
4243 1.61 christos ## ---------------------------------------- ##
4244 1.61 christos ## Report this to lib-bug-people (at] NetBSD.org ##
4245 1.61 christos ## ---------------------------------------- ##
4246 1.61 christos _ASBOX
4247 1.61 christos ) |
4248 1.61 christos sed "s/^/$as_me: WARNING: /" >&2
4249 1.61 christos ;;
4250 1.61 christos esac
4251 1.61 christos echo "$as_me:$LINENO: checking for $ac_header" >&5
4252 1.61 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4253 1.61 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
4254 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4255 1.61 christos else
4256 1.61 christos eval "$as_ac_Header=\$ac_header_preproc"
4257 1.52 dbj fi
4258 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4259 1.52 dbj echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4260 1.61 christos
4261 1.61 christos fi
4262 1.52 dbj if test `eval echo '${'$as_ac_Header'}'` = yes; then
4263 1.61 christos cat >>confdefs.h <<_ACEOF
4264 1.52 dbj #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4265 1.61 christos _ACEOF
4266 1.48 jmc
4267 1.61 christos else
4268 1.61 christos echo '#include "nbtool_config.h"' >include/$ac_header.new
4269 1.61 christos echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
4270 1.61 christos if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4271 1.61 christos rm -f include/$ac_header.new
4272 1.61 christos else
4273 1.61 christos mv -f include/$ac_header.new include/$ac_header
4274 1.61 christos fi
4275 1.52 dbj fi
4276 1.61 christos
4277 1.43 dbj done
4278 1.43 dbj
4279 1.61 christos
4280 1.61 christos # Typedefs.
4281 1.61 christos echo "$as_me:$LINENO: checking for size_t" >&5
4282 1.6 tv echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4283 1.6 tv if test "${ac_cv_type_size_t+set}" = set; then
4284 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4285 1.6 tv else
4286 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4287 1.61 christos /* confdefs.h. */
4288 1.61 christos _ACEOF
4289 1.61 christos cat confdefs.h >>conftest.$ac_ext
4290 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4291 1.61 christos /* end confdefs.h. */
4292 1.6 tv $ac_includes_default
4293 1.6 tv int
4294 1.6 tv main ()
4295 1.6 tv {
4296 1.6 tv if ((size_t *) 0)
4297 1.6 tv return 0;
4298 1.6 tv if (sizeof (size_t))
4299 1.6 tv return 0;
4300 1.6 tv ;
4301 1.6 tv return 0;
4302 1.6 tv }
4303 1.6 tv _ACEOF
4304 1.6 tv rm -f conftest.$ac_objext
4305 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 1.61 christos (eval $ac_compile) 2>conftest.er1
4307 1.6 tv ac_status=$?
4308 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4309 1.61 christos rm -f conftest.er1
4310 1.61 christos cat conftest.err >&5
4311 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 1.6 tv (exit $ac_status); } &&
4313 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4314 1.61 christos || test ! -s conftest.err'
4315 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 1.61 christos (eval $ac_try) 2>&5
4317 1.61 christos ac_status=$?
4318 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 1.61 christos (exit $ac_status); }; } &&
4320 1.61 christos { ac_try='test -s conftest.$ac_objext'
4321 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 1.53 dogcow (eval $ac_try) 2>&5
4323 1.53 dogcow ac_status=$?
4324 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 1.6 tv (exit $ac_status); }; }; then
4326 1.6 tv ac_cv_type_size_t=yes
4327 1.6 tv else
4328 1.6 tv echo "$as_me: failed program was:" >&5
4329 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4330 1.61 christos
4331 1.6 tv ac_cv_type_size_t=no
4332 1.6 tv fi
4333 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 1.6 tv fi
4335 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4336 1.6 tv echo "${ECHO_T}$ac_cv_type_size_t" >&6
4337 1.6 tv if test $ac_cv_type_size_t = yes; then
4338 1.6 tv :
4339 1.6 tv else
4340 1.6 tv
4341 1.61 christos cat >>confdefs.h <<_ACEOF
4342 1.6 tv #define size_t unsigned
4343 1.61 christos _ACEOF
4344 1.6 tv
4345 1.6 tv fi
4346 1.6 tv
4347 1.61 christos echo "$as_me:$LINENO: checking for id_t" >&5
4348 1.6 tv echo $ECHO_N "checking for id_t... $ECHO_C" >&6
4349 1.6 tv if test "${ac_cv_type_id_t+set}" = set; then
4350 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4351 1.6 tv else
4352 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4353 1.61 christos /* confdefs.h. */
4354 1.61 christos _ACEOF
4355 1.61 christos cat confdefs.h >>conftest.$ac_ext
4356 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4357 1.61 christos /* end confdefs.h. */
4358 1.6 tv $ac_includes_default
4359 1.6 tv int
4360 1.6 tv main ()
4361 1.6 tv {
4362 1.6 tv if ((id_t *) 0)
4363 1.6 tv return 0;
4364 1.6 tv if (sizeof (id_t))
4365 1.6 tv return 0;
4366 1.6 tv ;
4367 1.6 tv return 0;
4368 1.6 tv }
4369 1.6 tv _ACEOF
4370 1.6 tv rm -f conftest.$ac_objext
4371 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 1.61 christos (eval $ac_compile) 2>conftest.er1
4373 1.6 tv ac_status=$?
4374 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4375 1.61 christos rm -f conftest.er1
4376 1.61 christos cat conftest.err >&5
4377 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 1.6 tv (exit $ac_status); } &&
4379 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4380 1.61 christos || test ! -s conftest.err'
4381 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 1.61 christos (eval $ac_try) 2>&5
4383 1.61 christos ac_status=$?
4384 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 1.61 christos (exit $ac_status); }; } &&
4386 1.61 christos { ac_try='test -s conftest.$ac_objext'
4387 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 1.53 dogcow (eval $ac_try) 2>&5
4389 1.53 dogcow ac_status=$?
4390 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 1.6 tv (exit $ac_status); }; }; then
4392 1.6 tv ac_cv_type_id_t=yes
4393 1.6 tv else
4394 1.6 tv echo "$as_me: failed program was:" >&5
4395 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4396 1.61 christos
4397 1.6 tv ac_cv_type_id_t=no
4398 1.6 tv fi
4399 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4400 1.6 tv fi
4401 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
4402 1.6 tv echo "${ECHO_T}$ac_cv_type_id_t" >&6
4403 1.6 tv if test $ac_cv_type_id_t = yes; then
4404 1.6 tv
4405 1.61 christos cat >>confdefs.h <<_ACEOF
4406 1.6 tv #define HAVE_ID_T 1
4407 1.61 christos _ACEOF
4408 1.61 christos
4409 1.6 tv
4410 1.6 tv fi
4411 1.61 christos echo "$as_me:$LINENO: checking for long long" >&5
4412 1.6 tv echo $ECHO_N "checking for long long... $ECHO_C" >&6
4413 1.6 tv if test "${ac_cv_type_long_long+set}" = set; then
4414 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4415 1.6 tv else
4416 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4417 1.61 christos /* confdefs.h. */
4418 1.61 christos _ACEOF
4419 1.61 christos cat confdefs.h >>conftest.$ac_ext
4420 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4421 1.61 christos /* end confdefs.h. */
4422 1.6 tv $ac_includes_default
4423 1.6 tv int
4424 1.6 tv main ()
4425 1.6 tv {
4426 1.6 tv if ((long long *) 0)
4427 1.6 tv return 0;
4428 1.6 tv if (sizeof (long long))
4429 1.6 tv return 0;
4430 1.6 tv ;
4431 1.6 tv return 0;
4432 1.6 tv }
4433 1.6 tv _ACEOF
4434 1.6 tv rm -f conftest.$ac_objext
4435 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 1.61 christos (eval $ac_compile) 2>conftest.er1
4437 1.6 tv ac_status=$?
4438 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4439 1.61 christos rm -f conftest.er1
4440 1.61 christos cat conftest.err >&5
4441 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 1.6 tv (exit $ac_status); } &&
4443 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4444 1.61 christos || test ! -s conftest.err'
4445 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 1.48 jmc (eval $ac_try) 2>&5
4447 1.48 jmc ac_status=$?
4448 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 1.61 christos (exit $ac_status); }; } &&
4450 1.61 christos { ac_try='test -s conftest.$ac_objext'
4451 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 1.61 christos (eval $ac_try) 2>&5
4453 1.61 christos ac_status=$?
4454 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 1.6 tv (exit $ac_status); }; }; then
4456 1.6 tv ac_cv_type_long_long=yes
4457 1.6 tv else
4458 1.6 tv echo "$as_me: failed program was:" >&5
4459 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4460 1.61 christos
4461 1.6 tv ac_cv_type_long_long=no
4462 1.6 tv fi
4463 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4464 1.6 tv fi
4465 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4466 1.6 tv echo "${ECHO_T}$ac_cv_type_long_long" >&6
4467 1.6 tv if test $ac_cv_type_long_long = yes; then
4468 1.6 tv
4469 1.61 christos cat >>confdefs.h <<_ACEOF
4470 1.52 dbj #define HAVE_LONG_LONG 1
4471 1.61 christos _ACEOF
4472 1.61 christos
4473 1.6 tv
4474 1.6 tv fi
4475 1.61 christos echo "$as_me:$LINENO: checking for u_long" >&5
4476 1.38 fredb echo $ECHO_N "checking for u_long... $ECHO_C" >&6
4477 1.38 fredb if test "${ac_cv_type_u_long+set}" = set; then
4478 1.38 fredb echo $ECHO_N "(cached) $ECHO_C" >&6
4479 1.38 fredb else
4480 1.38 fredb cat >conftest.$ac_ext <<_ACEOF
4481 1.61 christos /* confdefs.h. */
4482 1.61 christos _ACEOF
4483 1.61 christos cat confdefs.h >>conftest.$ac_ext
4484 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4485 1.61 christos /* end confdefs.h. */
4486 1.38 fredb $ac_includes_default
4487 1.38 fredb int
4488 1.38 fredb main ()
4489 1.38 fredb {
4490 1.38 fredb if ((u_long *) 0)
4491 1.38 fredb return 0;
4492 1.38 fredb if (sizeof (u_long))
4493 1.38 fredb return 0;
4494 1.38 fredb ;
4495 1.38 fredb return 0;
4496 1.38 fredb }
4497 1.38 fredb _ACEOF
4498 1.38 fredb rm -f conftest.$ac_objext
4499 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 1.61 christos (eval $ac_compile) 2>conftest.er1
4501 1.38 fredb ac_status=$?
4502 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4503 1.61 christos rm -f conftest.er1
4504 1.61 christos cat conftest.err >&5
4505 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 1.38 fredb (exit $ac_status); } &&
4507 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4508 1.61 christos || test ! -s conftest.err'
4509 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 1.61 christos (eval $ac_try) 2>&5
4511 1.61 christos ac_status=$?
4512 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 1.61 christos (exit $ac_status); }; } &&
4514 1.61 christos { ac_try='test -s conftest.$ac_objext'
4515 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 1.38 fredb (eval $ac_try) 2>&5
4517 1.38 fredb ac_status=$?
4518 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 1.38 fredb (exit $ac_status); }; }; then
4520 1.38 fredb ac_cv_type_u_long=yes
4521 1.38 fredb else
4522 1.38 fredb echo "$as_me: failed program was:" >&5
4523 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4524 1.61 christos
4525 1.38 fredb ac_cv_type_u_long=no
4526 1.38 fredb fi
4527 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528 1.38 fredb fi
4529 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
4530 1.38 fredb echo "${ECHO_T}$ac_cv_type_u_long" >&6
4531 1.38 fredb if test $ac_cv_type_u_long = yes; then
4532 1.38 fredb
4533 1.61 christos cat >>confdefs.h <<_ACEOF
4534 1.38 fredb #define HAVE_U_LONG 1
4535 1.61 christos _ACEOF
4536 1.61 christos
4537 1.39 fredb
4538 1.38 fredb fi
4539 1.61 christos echo "$as_me:$LINENO: checking for u_char" >&5
4540 1.45 jmc echo $ECHO_N "checking for u_char... $ECHO_C" >&6
4541 1.45 jmc if test "${ac_cv_type_u_char+set}" = set; then
4542 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
4543 1.45 jmc else
4544 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
4545 1.61 christos /* confdefs.h. */
4546 1.61 christos _ACEOF
4547 1.61 christos cat confdefs.h >>conftest.$ac_ext
4548 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4549 1.61 christos /* end confdefs.h. */
4550 1.45 jmc $ac_includes_default
4551 1.45 jmc int
4552 1.45 jmc main ()
4553 1.45 jmc {
4554 1.45 jmc if ((u_char *) 0)
4555 1.45 jmc return 0;
4556 1.45 jmc if (sizeof (u_char))
4557 1.45 jmc return 0;
4558 1.45 jmc ;
4559 1.45 jmc return 0;
4560 1.45 jmc }
4561 1.45 jmc _ACEOF
4562 1.45 jmc rm -f conftest.$ac_objext
4563 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564 1.61 christos (eval $ac_compile) 2>conftest.er1
4565 1.45 jmc ac_status=$?
4566 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4567 1.61 christos rm -f conftest.er1
4568 1.61 christos cat conftest.err >&5
4569 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 1.45 jmc (exit $ac_status); } &&
4571 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4572 1.61 christos || test ! -s conftest.err'
4573 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 1.61 christos (eval $ac_try) 2>&5
4575 1.61 christos ac_status=$?
4576 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 1.61 christos (exit $ac_status); }; } &&
4578 1.61 christos { ac_try='test -s conftest.$ac_objext'
4579 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 1.53 dogcow (eval $ac_try) 2>&5
4581 1.53 dogcow ac_status=$?
4582 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 1.45 jmc (exit $ac_status); }; }; then
4584 1.45 jmc ac_cv_type_u_char=yes
4585 1.45 jmc else
4586 1.45 jmc echo "$as_me: failed program was:" >&5
4587 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4588 1.61 christos
4589 1.45 jmc ac_cv_type_u_char=no
4590 1.45 jmc fi
4591 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 1.45 jmc fi
4593 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
4594 1.45 jmc echo "${ECHO_T}$ac_cv_type_u_char" >&6
4595 1.45 jmc if test $ac_cv_type_u_char = yes; then
4596 1.45 jmc
4597 1.61 christos cat >>confdefs.h <<_ACEOF
4598 1.45 jmc #define HAVE_U_CHAR 1
4599 1.61 christos _ACEOF
4600 1.61 christos
4601 1.45 jmc
4602 1.45 jmc fi
4603 1.61 christos echo "$as_me:$LINENO: checking for u_short" >&5
4604 1.45 jmc echo $ECHO_N "checking for u_short... $ECHO_C" >&6
4605 1.45 jmc if test "${ac_cv_type_u_short+set}" = set; then
4606 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
4607 1.45 jmc else
4608 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
4609 1.61 christos /* confdefs.h. */
4610 1.61 christos _ACEOF
4611 1.61 christos cat confdefs.h >>conftest.$ac_ext
4612 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4613 1.61 christos /* end confdefs.h. */
4614 1.45 jmc $ac_includes_default
4615 1.45 jmc int
4616 1.45 jmc main ()
4617 1.45 jmc {
4618 1.45 jmc if ((u_short *) 0)
4619 1.45 jmc return 0;
4620 1.45 jmc if (sizeof (u_short))
4621 1.45 jmc return 0;
4622 1.45 jmc ;
4623 1.45 jmc return 0;
4624 1.45 jmc }
4625 1.45 jmc _ACEOF
4626 1.45 jmc rm -f conftest.$ac_objext
4627 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628 1.61 christos (eval $ac_compile) 2>conftest.er1
4629 1.45 jmc ac_status=$?
4630 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4631 1.61 christos rm -f conftest.er1
4632 1.61 christos cat conftest.err >&5
4633 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 1.45 jmc (exit $ac_status); } &&
4635 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4636 1.61 christos || test ! -s conftest.err'
4637 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 1.53 dogcow (eval $ac_try) 2>&5
4639 1.53 dogcow ac_status=$?
4640 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 1.61 christos (exit $ac_status); }; } &&
4642 1.61 christos { ac_try='test -s conftest.$ac_objext'
4643 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 1.61 christos (eval $ac_try) 2>&5
4645 1.61 christos ac_status=$?
4646 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 1.45 jmc (exit $ac_status); }; }; then
4648 1.45 jmc ac_cv_type_u_short=yes
4649 1.45 jmc else
4650 1.45 jmc echo "$as_me: failed program was:" >&5
4651 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4652 1.61 christos
4653 1.45 jmc ac_cv_type_u_short=no
4654 1.45 jmc fi
4655 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4656 1.45 jmc fi
4657 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
4658 1.45 jmc echo "${ECHO_T}$ac_cv_type_u_short" >&6
4659 1.45 jmc if test $ac_cv_type_u_short = yes; then
4660 1.45 jmc
4661 1.61 christos cat >>confdefs.h <<_ACEOF
4662 1.45 jmc #define HAVE_U_SHORT 1
4663 1.61 christos _ACEOF
4664 1.61 christos
4665 1.45 jmc
4666 1.45 jmc fi
4667 1.61 christos echo "$as_me:$LINENO: checking for u_int" >&5
4668 1.45 jmc echo $ECHO_N "checking for u_int... $ECHO_C" >&6
4669 1.45 jmc if test "${ac_cv_type_u_int+set}" = set; then
4670 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
4671 1.45 jmc else
4672 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
4673 1.61 christos /* confdefs.h. */
4674 1.61 christos _ACEOF
4675 1.61 christos cat confdefs.h >>conftest.$ac_ext
4676 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4677 1.61 christos /* end confdefs.h. */
4678 1.45 jmc $ac_includes_default
4679 1.45 jmc int
4680 1.45 jmc main ()
4681 1.45 jmc {
4682 1.45 jmc if ((u_int *) 0)
4683 1.45 jmc return 0;
4684 1.45 jmc if (sizeof (u_int))
4685 1.45 jmc return 0;
4686 1.45 jmc ;
4687 1.45 jmc return 0;
4688 1.45 jmc }
4689 1.45 jmc _ACEOF
4690 1.45 jmc rm -f conftest.$ac_objext
4691 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 1.61 christos (eval $ac_compile) 2>conftest.er1
4693 1.45 jmc ac_status=$?
4694 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4695 1.61 christos rm -f conftest.er1
4696 1.61 christos cat conftest.err >&5
4697 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 1.45 jmc (exit $ac_status); } &&
4699 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4700 1.61 christos || test ! -s conftest.err'
4701 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 1.50 jmc (eval $ac_try) 2>&5
4703 1.50 jmc ac_status=$?
4704 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 1.61 christos (exit $ac_status); }; } &&
4706 1.61 christos { ac_try='test -s conftest.$ac_objext'
4707 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 1.61 christos (eval $ac_try) 2>&5
4709 1.61 christos ac_status=$?
4710 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 1.45 jmc (exit $ac_status); }; }; then
4712 1.45 jmc ac_cv_type_u_int=yes
4713 1.45 jmc else
4714 1.45 jmc echo "$as_me: failed program was:" >&5
4715 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4716 1.61 christos
4717 1.45 jmc ac_cv_type_u_int=no
4718 1.45 jmc fi
4719 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4720 1.45 jmc fi
4721 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
4722 1.45 jmc echo "${ECHO_T}$ac_cv_type_u_int" >&6
4723 1.45 jmc if test $ac_cv_type_u_int = yes; then
4724 1.45 jmc
4725 1.61 christos cat >>confdefs.h <<_ACEOF
4726 1.45 jmc #define HAVE_U_INT 1
4727 1.61 christos _ACEOF
4728 1.61 christos
4729 1.45 jmc
4730 1.45 jmc fi
4731 1.61 christos echo "$as_me:$LINENO: checking for u_quad_t" >&5
4732 1.7 tv echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
4733 1.7 tv if test "${ac_cv_type_u_quad_t+set}" = set; then
4734 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4735 1.7 tv else
4736 1.7 tv cat >conftest.$ac_ext <<_ACEOF
4737 1.61 christos /* confdefs.h. */
4738 1.61 christos _ACEOF
4739 1.61 christos cat confdefs.h >>conftest.$ac_ext
4740 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4741 1.61 christos /* end confdefs.h. */
4742 1.7 tv $ac_includes_default
4743 1.7 tv int
4744 1.7 tv main ()
4745 1.7 tv {
4746 1.7 tv if ((u_quad_t *) 0)
4747 1.7 tv return 0;
4748 1.7 tv if (sizeof (u_quad_t))
4749 1.7 tv return 0;
4750 1.7 tv ;
4751 1.7 tv return 0;
4752 1.7 tv }
4753 1.7 tv _ACEOF
4754 1.7 tv rm -f conftest.$ac_objext
4755 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 1.61 christos (eval $ac_compile) 2>conftest.er1
4757 1.7 tv ac_status=$?
4758 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4759 1.61 christos rm -f conftest.er1
4760 1.61 christos cat conftest.err >&5
4761 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 1.7 tv (exit $ac_status); } &&
4763 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4764 1.61 christos || test ! -s conftest.err'
4765 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 1.61 christos (eval $ac_try) 2>&5
4767 1.61 christos ac_status=$?
4768 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 1.61 christos (exit $ac_status); }; } &&
4770 1.61 christos { ac_try='test -s conftest.$ac_objext'
4771 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 1.48 jmc (eval $ac_try) 2>&5
4773 1.48 jmc ac_status=$?
4774 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 1.7 tv (exit $ac_status); }; }; then
4776 1.7 tv ac_cv_type_u_quad_t=yes
4777 1.7 tv else
4778 1.7 tv echo "$as_me: failed program was:" >&5
4779 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4780 1.61 christos
4781 1.7 tv ac_cv_type_u_quad_t=no
4782 1.7 tv fi
4783 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4784 1.7 tv fi
4785 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
4786 1.7 tv echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
4787 1.7 tv if test $ac_cv_type_u_quad_t = yes; then
4788 1.7 tv
4789 1.61 christos cat >>confdefs.h <<_ACEOF
4790 1.7 tv #define HAVE_U_QUAD_T 1
4791 1.61 christos _ACEOF
4792 1.61 christos
4793 1.7 tv
4794 1.7 tv fi
4795 1.35 thorpej
4796 1.61 christos echo "$as_me:$LINENO: checking for socklen_t" >&5
4797 1.34 thorpej echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4798 1.34 thorpej if test "${ac_cv_type_socklen_t+set}" = set; then
4799 1.34 thorpej echo $ECHO_N "(cached) $ECHO_C" >&6
4800 1.34 thorpej else
4801 1.34 thorpej cat >conftest.$ac_ext <<_ACEOF
4802 1.61 christos /* confdefs.h. */
4803 1.61 christos _ACEOF
4804 1.61 christos cat confdefs.h >>conftest.$ac_ext
4805 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4806 1.61 christos /* end confdefs.h. */
4807 1.35 thorpej #include <sys/types.h>
4808 1.35 thorpej #include <sys/socket.h>
4809 1.35 thorpej
4810 1.34 thorpej int
4811 1.34 thorpej main ()
4812 1.34 thorpej {
4813 1.34 thorpej if ((socklen_t *) 0)
4814 1.34 thorpej return 0;
4815 1.34 thorpej if (sizeof (socklen_t))
4816 1.34 thorpej return 0;
4817 1.34 thorpej ;
4818 1.34 thorpej return 0;
4819 1.34 thorpej }
4820 1.34 thorpej _ACEOF
4821 1.34 thorpej rm -f conftest.$ac_objext
4822 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 1.61 christos (eval $ac_compile) 2>conftest.er1
4824 1.34 thorpej ac_status=$?
4825 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4826 1.61 christos rm -f conftest.er1
4827 1.61 christos cat conftest.err >&5
4828 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 1.34 thorpej (exit $ac_status); } &&
4830 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4831 1.61 christos || test ! -s conftest.err'
4832 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 1.61 christos (eval $ac_try) 2>&5
4834 1.61 christos ac_status=$?
4835 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 1.61 christos (exit $ac_status); }; } &&
4837 1.61 christos { ac_try='test -s conftest.$ac_objext'
4838 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 1.53 dogcow (eval $ac_try) 2>&5
4840 1.53 dogcow ac_status=$?
4841 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 1.34 thorpej (exit $ac_status); }; }; then
4843 1.34 thorpej ac_cv_type_socklen_t=yes
4844 1.34 thorpej else
4845 1.34 thorpej echo "$as_me: failed program was:" >&5
4846 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4847 1.61 christos
4848 1.34 thorpej ac_cv_type_socklen_t=no
4849 1.34 thorpej fi
4850 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851 1.34 thorpej fi
4852 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4853 1.34 thorpej echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4854 1.34 thorpej if test $ac_cv_type_socklen_t = yes; then
4855 1.54 wiz
4856 1.61 christos cat >>confdefs.h <<\_ACEOF
4857 1.34 thorpej #define HAVE_SOCKLEN_T 1
4858 1.61 christos _ACEOF
4859 1.34 thorpej
4860 1.34 thorpej fi
4861 1.34 thorpej
4862 1.61 christos
4863 1.61 christos
4864 1.61 christos
4865 1.61 christos
4866 1.61 christos echo "$as_me:$LINENO: checking for uint8_t" >&5
4867 1.9 tv echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4868 1.9 tv if test "${ac_cv_type_uint8_t+set}" = set; then
4869 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4870 1.6 tv else
4871 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4872 1.61 christos /* confdefs.h. */
4873 1.61 christos _ACEOF
4874 1.61 christos cat confdefs.h >>conftest.$ac_ext
4875 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4876 1.61 christos /* end confdefs.h. */
4877 1.6 tv $ac_includes_default
4878 1.6 tv int
4879 1.6 tv main ()
4880 1.6 tv {
4881 1.9 tv if ((uint8_t *) 0)
4882 1.6 tv return 0;
4883 1.9 tv if (sizeof (uint8_t))
4884 1.6 tv return 0;
4885 1.6 tv ;
4886 1.6 tv return 0;
4887 1.6 tv }
4888 1.6 tv _ACEOF
4889 1.6 tv rm -f conftest.$ac_objext
4890 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 1.61 christos (eval $ac_compile) 2>conftest.er1
4892 1.6 tv ac_status=$?
4893 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4894 1.61 christos rm -f conftest.er1
4895 1.61 christos cat conftest.err >&5
4896 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 1.6 tv (exit $ac_status); } &&
4898 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4899 1.61 christos || test ! -s conftest.err'
4900 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 1.61 christos (eval $ac_try) 2>&5
4902 1.61 christos ac_status=$?
4903 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 1.61 christos (exit $ac_status); }; } &&
4905 1.61 christos { ac_try='test -s conftest.$ac_objext'
4906 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 1.53 dogcow (eval $ac_try) 2>&5
4908 1.53 dogcow ac_status=$?
4909 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 1.6 tv (exit $ac_status); }; }; then
4911 1.9 tv ac_cv_type_uint8_t=yes
4912 1.9 tv else
4913 1.9 tv echo "$as_me: failed program was:" >&5
4914 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4915 1.61 christos
4916 1.9 tv ac_cv_type_uint8_t=no
4917 1.9 tv fi
4918 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4919 1.9 tv fi
4920 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4921 1.9 tv echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4922 1.9 tv if test $ac_cv_type_uint8_t = yes; then
4923 1.9 tv :
4924 1.9 tv else
4925 1.9 tv
4926 1.61 christos echo "$as_me:$LINENO: checking for u_int8_t" >&5
4927 1.9 tv echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4928 1.9 tv if test "${ac_cv_type_u_int8_t+set}" = set; then
4929 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4930 1.9 tv else
4931 1.9 tv cat >conftest.$ac_ext <<_ACEOF
4932 1.61 christos /* confdefs.h. */
4933 1.61 christos _ACEOF
4934 1.61 christos cat confdefs.h >>conftest.$ac_ext
4935 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
4936 1.61 christos /* end confdefs.h. */
4937 1.9 tv $ac_includes_default
4938 1.9 tv int
4939 1.9 tv main ()
4940 1.9 tv {
4941 1.9 tv if ((u_int8_t *) 0)
4942 1.9 tv return 0;
4943 1.9 tv if (sizeof (u_int8_t))
4944 1.9 tv return 0;
4945 1.9 tv ;
4946 1.9 tv return 0;
4947 1.9 tv }
4948 1.9 tv _ACEOF
4949 1.9 tv rm -f conftest.$ac_objext
4950 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 1.61 christos (eval $ac_compile) 2>conftest.er1
4952 1.9 tv ac_status=$?
4953 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
4954 1.61 christos rm -f conftest.er1
4955 1.61 christos cat conftest.err >&5
4956 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 1.9 tv (exit $ac_status); } &&
4958 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
4959 1.61 christos || test ! -s conftest.err'
4960 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 1.61 christos (eval $ac_try) 2>&5
4962 1.61 christos ac_status=$?
4963 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 1.61 christos (exit $ac_status); }; } &&
4965 1.61 christos { ac_try='test -s conftest.$ac_objext'
4966 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 1.48 jmc (eval $ac_try) 2>&5
4968 1.48 jmc ac_status=$?
4969 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 1.9 tv (exit $ac_status); }; }; then
4971 1.6 tv ac_cv_type_u_int8_t=yes
4972 1.6 tv else
4973 1.6 tv echo "$as_me: failed program was:" >&5
4974 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
4975 1.61 christos
4976 1.6 tv ac_cv_type_u_int8_t=no
4977 1.6 tv fi
4978 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4979 1.6 tv fi
4980 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4981 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
4982 1.9 tv if test $ac_cv_type_u_int8_t = yes; then
4983 1.54 wiz
4984 1.61 christos cat >>confdefs.h <<\_ACEOF
4985 1.9 tv #define uint8_t u_int8_t
4986 1.61 christos _ACEOF
4987 1.9 tv
4988 1.9 tv else
4989 1.61 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5
4990 1.9 tv echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
4991 1.9 tv { (exit 1); exit 1; }; }
4992 1.9 tv fi
4993 1.9 tv
4994 1.61 christos
4995 1.9 tv fi
4996 1.9 tv
4997 1.61 christos echo "$as_me:$LINENO: checking for u_int8_t" >&5
4998 1.9 tv echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4999 1.9 tv if test "${ac_cv_type_u_int8_t+set}" = set; then
5000 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5001 1.9 tv else
5002 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5003 1.61 christos /* confdefs.h. */
5004 1.61 christos _ACEOF
5005 1.61 christos cat confdefs.h >>conftest.$ac_ext
5006 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5007 1.61 christos /* end confdefs.h. */
5008 1.9 tv $ac_includes_default
5009 1.9 tv int
5010 1.9 tv main ()
5011 1.9 tv {
5012 1.9 tv if ((u_int8_t *) 0)
5013 1.9 tv return 0;
5014 1.9 tv if (sizeof (u_int8_t))
5015 1.9 tv return 0;
5016 1.9 tv ;
5017 1.9 tv return 0;
5018 1.9 tv }
5019 1.9 tv _ACEOF
5020 1.9 tv rm -f conftest.$ac_objext
5021 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022 1.61 christos (eval $ac_compile) 2>conftest.er1
5023 1.9 tv ac_status=$?
5024 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5025 1.61 christos rm -f conftest.er1
5026 1.61 christos cat conftest.err >&5
5027 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 1.9 tv (exit $ac_status); } &&
5029 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5030 1.61 christos || test ! -s conftest.err'
5031 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 1.61 christos (eval $ac_try) 2>&5
5033 1.61 christos ac_status=$?
5034 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 1.61 christos (exit $ac_status); }; } &&
5036 1.61 christos { ac_try='test -s conftest.$ac_objext'
5037 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 1.53 dogcow (eval $ac_try) 2>&5
5039 1.53 dogcow ac_status=$?
5040 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 1.9 tv (exit $ac_status); }; }; then
5042 1.9 tv ac_cv_type_u_int8_t=yes
5043 1.9 tv else
5044 1.9 tv echo "$as_me: failed program was:" >&5
5045 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5046 1.61 christos
5047 1.9 tv ac_cv_type_u_int8_t=no
5048 1.9 tv fi
5049 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050 1.9 tv fi
5051 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5052 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
5053 1.6 tv if test $ac_cv_type_u_int8_t = yes; then
5054 1.6 tv :
5055 1.6 tv else
5056 1.6 tv
5057 1.61 christos echo "$as_me:$LINENO: checking for uint8_t" >&5
5058 1.6 tv echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5059 1.6 tv if test "${ac_cv_type_uint8_t+set}" = set; then
5060 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5061 1.6 tv else
5062 1.6 tv cat >conftest.$ac_ext <<_ACEOF
5063 1.61 christos /* confdefs.h. */
5064 1.61 christos _ACEOF
5065 1.61 christos cat confdefs.h >>conftest.$ac_ext
5066 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5067 1.61 christos /* end confdefs.h. */
5068 1.6 tv $ac_includes_default
5069 1.6 tv int
5070 1.6 tv main ()
5071 1.6 tv {
5072 1.6 tv if ((uint8_t *) 0)
5073 1.6 tv return 0;
5074 1.6 tv if (sizeof (uint8_t))
5075 1.6 tv return 0;
5076 1.6 tv ;
5077 1.6 tv return 0;
5078 1.6 tv }
5079 1.6 tv _ACEOF
5080 1.6 tv rm -f conftest.$ac_objext
5081 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082 1.61 christos (eval $ac_compile) 2>conftest.er1
5083 1.6 tv ac_status=$?
5084 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5085 1.61 christos rm -f conftest.er1
5086 1.61 christos cat conftest.err >&5
5087 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 1.6 tv (exit $ac_status); } &&
5089 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5090 1.61 christos || test ! -s conftest.err'
5091 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 1.61 christos (eval $ac_try) 2>&5
5093 1.61 christos ac_status=$?
5094 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 1.61 christos (exit $ac_status); }; } &&
5096 1.61 christos { ac_try='test -s conftest.$ac_objext'
5097 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 1.48 jmc (eval $ac_try) 2>&5
5099 1.48 jmc ac_status=$?
5100 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 1.6 tv (exit $ac_status); }; }; then
5102 1.6 tv ac_cv_type_uint8_t=yes
5103 1.4 tv else
5104 1.4 tv echo "$as_me: failed program was:" >&5
5105 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5106 1.61 christos
5107 1.6 tv ac_cv_type_uint8_t=no
5108 1.4 tv fi
5109 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5110 1.4 tv fi
5111 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5112 1.6 tv echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5113 1.6 tv if test $ac_cv_type_uint8_t = yes; then
5114 1.54 wiz
5115 1.61 christos cat >>confdefs.h <<\_ACEOF
5116 1.6 tv #define u_int8_t uint8_t
5117 1.61 christos _ACEOF
5118 1.4 tv
5119 1.6 tv else
5120 1.61 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5
5121 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
5122 1.6 tv { (exit 1); exit 1; }; }
5123 1.6 tv fi
5124 1.6 tv
5125 1.61 christos
5126 1.4 tv fi
5127 1.4 tv
5128 1.61 christos
5129 1.61 christos
5130 1.61 christos echo "$as_me:$LINENO: checking for uint16_t" >&5
5131 1.9 tv echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5132 1.9 tv if test "${ac_cv_type_uint16_t+set}" = set; then
5133 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5134 1.9 tv else
5135 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5136 1.61 christos /* confdefs.h. */
5137 1.61 christos _ACEOF
5138 1.61 christos cat confdefs.h >>conftest.$ac_ext
5139 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5140 1.61 christos /* end confdefs.h. */
5141 1.9 tv $ac_includes_default
5142 1.9 tv int
5143 1.9 tv main ()
5144 1.9 tv {
5145 1.9 tv if ((uint16_t *) 0)
5146 1.9 tv return 0;
5147 1.9 tv if (sizeof (uint16_t))
5148 1.9 tv return 0;
5149 1.9 tv ;
5150 1.9 tv return 0;
5151 1.9 tv }
5152 1.9 tv _ACEOF
5153 1.9 tv rm -f conftest.$ac_objext
5154 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5155 1.61 christos (eval $ac_compile) 2>conftest.er1
5156 1.9 tv ac_status=$?
5157 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5158 1.61 christos rm -f conftest.er1
5159 1.61 christos cat conftest.err >&5
5160 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 1.9 tv (exit $ac_status); } &&
5162 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5163 1.61 christos || test ! -s conftest.err'
5164 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 1.61 christos (eval $ac_try) 2>&5
5166 1.61 christos ac_status=$?
5167 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 1.61 christos (exit $ac_status); }; } &&
5169 1.61 christos { ac_try='test -s conftest.$ac_objext'
5170 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 1.50 jmc (eval $ac_try) 2>&5
5172 1.50 jmc ac_status=$?
5173 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 1.9 tv (exit $ac_status); }; }; then
5175 1.9 tv ac_cv_type_uint16_t=yes
5176 1.9 tv else
5177 1.9 tv echo "$as_me: failed program was:" >&5
5178 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5179 1.61 christos
5180 1.9 tv ac_cv_type_uint16_t=no
5181 1.9 tv fi
5182 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5183 1.9 tv fi
5184 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5185 1.9 tv echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5186 1.9 tv if test $ac_cv_type_uint16_t = yes; then
5187 1.9 tv :
5188 1.9 tv else
5189 1.9 tv
5190 1.61 christos echo "$as_me:$LINENO: checking for u_int16_t" >&5
5191 1.9 tv echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5192 1.9 tv if test "${ac_cv_type_u_int16_t+set}" = set; then
5193 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5194 1.9 tv else
5195 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5196 1.61 christos /* confdefs.h. */
5197 1.61 christos _ACEOF
5198 1.61 christos cat confdefs.h >>conftest.$ac_ext
5199 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5200 1.61 christos /* end confdefs.h. */
5201 1.9 tv $ac_includes_default
5202 1.9 tv int
5203 1.9 tv main ()
5204 1.9 tv {
5205 1.9 tv if ((u_int16_t *) 0)
5206 1.9 tv return 0;
5207 1.9 tv if (sizeof (u_int16_t))
5208 1.9 tv return 0;
5209 1.9 tv ;
5210 1.9 tv return 0;
5211 1.9 tv }
5212 1.9 tv _ACEOF
5213 1.9 tv rm -f conftest.$ac_objext
5214 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 1.61 christos (eval $ac_compile) 2>conftest.er1
5216 1.9 tv ac_status=$?
5217 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5218 1.61 christos rm -f conftest.er1
5219 1.61 christos cat conftest.err >&5
5220 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 1.9 tv (exit $ac_status); } &&
5222 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5223 1.61 christos || test ! -s conftest.err'
5224 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 1.53 dogcow (eval $ac_try) 2>&5
5226 1.53 dogcow ac_status=$?
5227 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 1.61 christos (exit $ac_status); }; } &&
5229 1.61 christos { ac_try='test -s conftest.$ac_objext'
5230 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 1.61 christos (eval $ac_try) 2>&5
5232 1.61 christos ac_status=$?
5233 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 1.9 tv (exit $ac_status); }; }; then
5235 1.9 tv ac_cv_type_u_int16_t=yes
5236 1.9 tv else
5237 1.9 tv echo "$as_me: failed program was:" >&5
5238 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5239 1.61 christos
5240 1.9 tv ac_cv_type_u_int16_t=no
5241 1.9 tv fi
5242 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243 1.9 tv fi
5244 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5245 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5246 1.9 tv if test $ac_cv_type_u_int16_t = yes; then
5247 1.54 wiz
5248 1.61 christos cat >>confdefs.h <<\_ACEOF
5249 1.9 tv #define uint16_t u_int16_t
5250 1.61 christos _ACEOF
5251 1.9 tv
5252 1.9 tv else
5253 1.61 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5
5254 1.9 tv echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
5255 1.9 tv { (exit 1); exit 1; }; }
5256 1.9 tv fi
5257 1.9 tv
5258 1.61 christos
5259 1.9 tv fi
5260 1.9 tv
5261 1.61 christos echo "$as_me:$LINENO: checking for u_int16_t" >&5
5262 1.6 tv echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5263 1.6 tv if test "${ac_cv_type_u_int16_t+set}" = set; then
5264 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5265 1.1 tv else
5266 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5267 1.61 christos /* confdefs.h. */
5268 1.61 christos _ACEOF
5269 1.61 christos cat confdefs.h >>conftest.$ac_ext
5270 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5271 1.61 christos /* end confdefs.h. */
5272 1.6 tv $ac_includes_default
5273 1.6 tv int
5274 1.6 tv main ()
5275 1.6 tv {
5276 1.6 tv if ((u_int16_t *) 0)
5277 1.6 tv return 0;
5278 1.6 tv if (sizeof (u_int16_t))
5279 1.6 tv return 0;
5280 1.6 tv ;
5281 1.6 tv return 0;
5282 1.6 tv }
5283 1.1 tv _ACEOF
5284 1.6 tv rm -f conftest.$ac_objext
5285 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 1.61 christos (eval $ac_compile) 2>conftest.er1
5287 1.6 tv ac_status=$?
5288 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5289 1.61 christos rm -f conftest.er1
5290 1.61 christos cat conftest.err >&5
5291 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 1.6 tv (exit $ac_status); } &&
5293 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5294 1.61 christos || test ! -s conftest.err'
5295 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 1.61 christos (eval $ac_try) 2>&5
5297 1.61 christos ac_status=$?
5298 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 1.61 christos (exit $ac_status); }; } &&
5300 1.61 christos { ac_try='test -s conftest.$ac_objext'
5301 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 1.50 jmc (eval $ac_try) 2>&5
5303 1.50 jmc ac_status=$?
5304 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 1.6 tv (exit $ac_status); }; }; then
5306 1.6 tv ac_cv_type_u_int16_t=yes
5307 1.1 tv else
5308 1.6 tv echo "$as_me: failed program was:" >&5
5309 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5310 1.61 christos
5311 1.6 tv ac_cv_type_u_int16_t=no
5312 1.6 tv fi
5313 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5314 1.1 tv fi
5315 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5316 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5317 1.6 tv if test $ac_cv_type_u_int16_t = yes; then
5318 1.6 tv :
5319 1.1 tv else
5320 1.1 tv
5321 1.61 christos echo "$as_me:$LINENO: checking for uint16_t" >&5
5322 1.6 tv echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5323 1.6 tv if test "${ac_cv_type_uint16_t+set}" = set; then
5324 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5325 1.6 tv else
5326 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5327 1.61 christos /* confdefs.h. */
5328 1.61 christos _ACEOF
5329 1.61 christos cat confdefs.h >>conftest.$ac_ext
5330 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5331 1.61 christos /* end confdefs.h. */
5332 1.6 tv $ac_includes_default
5333 1.6 tv int
5334 1.6 tv main ()
5335 1.6 tv {
5336 1.6 tv if ((uint16_t *) 0)
5337 1.6 tv return 0;
5338 1.6 tv if (sizeof (uint16_t))
5339 1.6 tv return 0;
5340 1.6 tv ;
5341 1.6 tv return 0;
5342 1.6 tv }
5343 1.1 tv _ACEOF
5344 1.6 tv rm -f conftest.$ac_objext
5345 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 1.61 christos (eval $ac_compile) 2>conftest.er1
5347 1.6 tv ac_status=$?
5348 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5349 1.61 christos rm -f conftest.er1
5350 1.61 christos cat conftest.err >&5
5351 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 1.6 tv (exit $ac_status); } &&
5353 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5354 1.61 christos || test ! -s conftest.err'
5355 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 1.53 dogcow (eval $ac_try) 2>&5
5357 1.53 dogcow ac_status=$?
5358 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 1.61 christos (exit $ac_status); }; } &&
5360 1.61 christos { ac_try='test -s conftest.$ac_objext'
5361 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 1.61 christos (eval $ac_try) 2>&5
5363 1.61 christos ac_status=$?
5364 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 1.6 tv (exit $ac_status); }; }; then
5366 1.6 tv ac_cv_type_uint16_t=yes
5367 1.1 tv else
5368 1.6 tv echo "$as_me: failed program was:" >&5
5369 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5370 1.61 christos
5371 1.6 tv ac_cv_type_uint16_t=no
5372 1.1 tv fi
5373 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5374 1.1 tv fi
5375 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5376 1.6 tv echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5377 1.6 tv if test $ac_cv_type_uint16_t = yes; then
5378 1.54 wiz
5379 1.61 christos cat >>confdefs.h <<\_ACEOF
5380 1.6 tv #define u_int16_t uint16_t
5381 1.61 christos _ACEOF
5382 1.1 tv
5383 1.1 tv else
5384 1.61 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5
5385 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
5386 1.6 tv { (exit 1); exit 1; }; }
5387 1.1 tv fi
5388 1.1 tv
5389 1.61 christos
5390 1.1 tv fi
5391 1.1 tv
5392 1.61 christos
5393 1.61 christos
5394 1.61 christos echo "$as_me:$LINENO: checking for uint32_t" >&5
5395 1.9 tv echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5396 1.9 tv if test "${ac_cv_type_uint32_t+set}" = set; then
5397 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5398 1.9 tv else
5399 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5400 1.61 christos /* confdefs.h. */
5401 1.61 christos _ACEOF
5402 1.61 christos cat confdefs.h >>conftest.$ac_ext
5403 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5404 1.61 christos /* end confdefs.h. */
5405 1.9 tv $ac_includes_default
5406 1.9 tv int
5407 1.9 tv main ()
5408 1.9 tv {
5409 1.9 tv if ((uint32_t *) 0)
5410 1.9 tv return 0;
5411 1.9 tv if (sizeof (uint32_t))
5412 1.9 tv return 0;
5413 1.9 tv ;
5414 1.9 tv return 0;
5415 1.9 tv }
5416 1.9 tv _ACEOF
5417 1.9 tv rm -f conftest.$ac_objext
5418 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 1.61 christos (eval $ac_compile) 2>conftest.er1
5420 1.9 tv ac_status=$?
5421 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5422 1.61 christos rm -f conftest.er1
5423 1.61 christos cat conftest.err >&5
5424 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 1.9 tv (exit $ac_status); } &&
5426 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5427 1.61 christos || test ! -s conftest.err'
5428 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 1.61 christos (eval $ac_try) 2>&5
5430 1.61 christos ac_status=$?
5431 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 1.61 christos (exit $ac_status); }; } &&
5433 1.61 christos { ac_try='test -s conftest.$ac_objext'
5434 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 1.53 dogcow (eval $ac_try) 2>&5
5436 1.53 dogcow ac_status=$?
5437 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 1.9 tv (exit $ac_status); }; }; then
5439 1.9 tv ac_cv_type_uint32_t=yes
5440 1.9 tv else
5441 1.9 tv echo "$as_me: failed program was:" >&5
5442 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5443 1.61 christos
5444 1.9 tv ac_cv_type_uint32_t=no
5445 1.9 tv fi
5446 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 1.9 tv fi
5448 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5449 1.9 tv echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5450 1.9 tv if test $ac_cv_type_uint32_t = yes; then
5451 1.9 tv :
5452 1.9 tv else
5453 1.9 tv
5454 1.61 christos echo "$as_me:$LINENO: checking for u_int32_t" >&5
5455 1.6 tv echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5456 1.6 tv if test "${ac_cv_type_u_int32_t+set}" = set; then
5457 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5458 1.1 tv else
5459 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5460 1.61 christos /* confdefs.h. */
5461 1.61 christos _ACEOF
5462 1.61 christos cat confdefs.h >>conftest.$ac_ext
5463 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5464 1.61 christos /* end confdefs.h. */
5465 1.9 tv $ac_includes_default
5466 1.9 tv int
5467 1.9 tv main ()
5468 1.9 tv {
5469 1.9 tv if ((u_int32_t *) 0)
5470 1.9 tv return 0;
5471 1.9 tv if (sizeof (u_int32_t))
5472 1.9 tv return 0;
5473 1.9 tv ;
5474 1.9 tv return 0;
5475 1.9 tv }
5476 1.9 tv _ACEOF
5477 1.9 tv rm -f conftest.$ac_objext
5478 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479 1.61 christos (eval $ac_compile) 2>conftest.er1
5480 1.9 tv ac_status=$?
5481 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5482 1.61 christos rm -f conftest.er1
5483 1.61 christos cat conftest.err >&5
5484 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 1.9 tv (exit $ac_status); } &&
5486 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5487 1.61 christos || test ! -s conftest.err'
5488 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 1.61 christos (eval $ac_try) 2>&5
5490 1.61 christos ac_status=$?
5491 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 1.61 christos (exit $ac_status); }; } &&
5493 1.61 christos { ac_try='test -s conftest.$ac_objext'
5494 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 1.53 dogcow (eval $ac_try) 2>&5
5496 1.53 dogcow ac_status=$?
5497 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 1.9 tv (exit $ac_status); }; }; then
5499 1.9 tv ac_cv_type_u_int32_t=yes
5500 1.9 tv else
5501 1.9 tv echo "$as_me: failed program was:" >&5
5502 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5503 1.61 christos
5504 1.9 tv ac_cv_type_u_int32_t=no
5505 1.9 tv fi
5506 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5507 1.9 tv fi
5508 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5509 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5510 1.9 tv if test $ac_cv_type_u_int32_t = yes; then
5511 1.54 wiz
5512 1.61 christos cat >>confdefs.h <<\_ACEOF
5513 1.9 tv #define uint32_t u_int32_t
5514 1.61 christos _ACEOF
5515 1.9 tv
5516 1.9 tv else
5517 1.61 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5
5518 1.9 tv echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
5519 1.9 tv { (exit 1); exit 1; }; }
5520 1.9 tv fi
5521 1.9 tv
5522 1.61 christos
5523 1.9 tv fi
5524 1.9 tv
5525 1.61 christos echo "$as_me:$LINENO: checking for u_int32_t" >&5
5526 1.9 tv echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5527 1.9 tv if test "${ac_cv_type_u_int32_t+set}" = set; then
5528 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5529 1.9 tv else
5530 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5531 1.61 christos /* confdefs.h. */
5532 1.61 christos _ACEOF
5533 1.61 christos cat confdefs.h >>conftest.$ac_ext
5534 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5535 1.61 christos /* end confdefs.h. */
5536 1.6 tv $ac_includes_default
5537 1.1 tv int
5538 1.1 tv main ()
5539 1.1 tv {
5540 1.6 tv if ((u_int32_t *) 0)
5541 1.6 tv return 0;
5542 1.6 tv if (sizeof (u_int32_t))
5543 1.6 tv return 0;
5544 1.6 tv ;
5545 1.6 tv return 0;
5546 1.1 tv }
5547 1.1 tv _ACEOF
5548 1.6 tv rm -f conftest.$ac_objext
5549 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550 1.61 christos (eval $ac_compile) 2>conftest.er1
5551 1.1 tv ac_status=$?
5552 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5553 1.61 christos rm -f conftest.er1
5554 1.61 christos cat conftest.err >&5
5555 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 1.6 tv (exit $ac_status); } &&
5557 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5558 1.61 christos || test ! -s conftest.err'
5559 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 1.53 dogcow (eval $ac_try) 2>&5
5561 1.53 dogcow ac_status=$?
5562 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 1.61 christos (exit $ac_status); }; } &&
5564 1.61 christos { ac_try='test -s conftest.$ac_objext'
5565 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566 1.61 christos (eval $ac_try) 2>&5
5567 1.61 christos ac_status=$?
5568 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 1.1 tv (exit $ac_status); }; }; then
5570 1.6 tv ac_cv_type_u_int32_t=yes
5571 1.1 tv else
5572 1.6 tv echo "$as_me: failed program was:" >&5
5573 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5574 1.61 christos
5575 1.6 tv ac_cv_type_u_int32_t=no
5576 1.1 tv fi
5577 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5578 1.1 tv fi
5579 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5580 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5581 1.6 tv if test $ac_cv_type_u_int32_t = yes; then
5582 1.6 tv :
5583 1.6 tv else
5584 1.1 tv
5585 1.61 christos echo "$as_me:$LINENO: checking for uint32_t" >&5
5586 1.6 tv echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5587 1.6 tv if test "${ac_cv_type_uint32_t+set}" = set; then
5588 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5589 1.1 tv else
5590 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5591 1.61 christos /* confdefs.h. */
5592 1.61 christos _ACEOF
5593 1.61 christos cat confdefs.h >>conftest.$ac_ext
5594 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5595 1.61 christos /* end confdefs.h. */
5596 1.1 tv $ac_includes_default
5597 1.6 tv int
5598 1.6 tv main ()
5599 1.6 tv {
5600 1.6 tv if ((uint32_t *) 0)
5601 1.6 tv return 0;
5602 1.6 tv if (sizeof (uint32_t))
5603 1.6 tv return 0;
5604 1.6 tv ;
5605 1.6 tv return 0;
5606 1.6 tv }
5607 1.1 tv _ACEOF
5608 1.1 tv rm -f conftest.$ac_objext
5609 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 1.61 christos (eval $ac_compile) 2>conftest.er1
5611 1.1 tv ac_status=$?
5612 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5613 1.61 christos rm -f conftest.er1
5614 1.61 christos cat conftest.err >&5
5615 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 1.1 tv (exit $ac_status); } &&
5617 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5618 1.61 christos || test ! -s conftest.err'
5619 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 1.61 christos (eval $ac_try) 2>&5
5621 1.61 christos ac_status=$?
5622 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 1.61 christos (exit $ac_status); }; } &&
5624 1.61 christos { ac_try='test -s conftest.$ac_objext'
5625 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 1.48 jmc (eval $ac_try) 2>&5
5627 1.48 jmc ac_status=$?
5628 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 1.1 tv (exit $ac_status); }; }; then
5630 1.6 tv ac_cv_type_uint32_t=yes
5631 1.1 tv else
5632 1.1 tv echo "$as_me: failed program was:" >&5
5633 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5634 1.61 christos
5635 1.6 tv ac_cv_type_uint32_t=no
5636 1.1 tv fi
5637 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5638 1.1 tv fi
5639 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5640 1.6 tv echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5641 1.6 tv if test $ac_cv_type_uint32_t = yes; then
5642 1.54 wiz
5643 1.61 christos cat >>confdefs.h <<\_ACEOF
5644 1.6 tv #define u_int32_t uint32_t
5645 1.61 christos _ACEOF
5646 1.1 tv
5647 1.6 tv else
5648 1.61 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5
5649 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
5650 1.6 tv { (exit 1); exit 1; }; }
5651 1.6 tv fi
5652 1.6 tv
5653 1.61 christos
5654 1.1 tv fi
5655 1.1 tv
5656 1.61 christos
5657 1.61 christos
5658 1.61 christos echo "$as_me:$LINENO: checking for uint64_t" >&5
5659 1.9 tv echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5660 1.9 tv if test "${ac_cv_type_uint64_t+set}" = set; then
5661 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5662 1.9 tv else
5663 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5664 1.61 christos /* confdefs.h. */
5665 1.61 christos _ACEOF
5666 1.61 christos cat confdefs.h >>conftest.$ac_ext
5667 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5668 1.61 christos /* end confdefs.h. */
5669 1.9 tv $ac_includes_default
5670 1.9 tv int
5671 1.9 tv main ()
5672 1.9 tv {
5673 1.9 tv if ((uint64_t *) 0)
5674 1.9 tv return 0;
5675 1.9 tv if (sizeof (uint64_t))
5676 1.9 tv return 0;
5677 1.9 tv ;
5678 1.9 tv return 0;
5679 1.9 tv }
5680 1.9 tv _ACEOF
5681 1.9 tv rm -f conftest.$ac_objext
5682 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683 1.61 christos (eval $ac_compile) 2>conftest.er1
5684 1.9 tv ac_status=$?
5685 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5686 1.61 christos rm -f conftest.er1
5687 1.61 christos cat conftest.err >&5
5688 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 1.9 tv (exit $ac_status); } &&
5690 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5691 1.61 christos || test ! -s conftest.err'
5692 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 1.61 christos (eval $ac_try) 2>&5
5694 1.61 christos ac_status=$?
5695 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 1.61 christos (exit $ac_status); }; } &&
5697 1.61 christos { ac_try='test -s conftest.$ac_objext'
5698 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 1.50 jmc (eval $ac_try) 2>&5
5700 1.50 jmc ac_status=$?
5701 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 1.9 tv (exit $ac_status); }; }; then
5703 1.9 tv ac_cv_type_uint64_t=yes
5704 1.9 tv else
5705 1.9 tv echo "$as_me: failed program was:" >&5
5706 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5707 1.61 christos
5708 1.9 tv ac_cv_type_uint64_t=no
5709 1.9 tv fi
5710 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5711 1.9 tv fi
5712 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5713 1.9 tv echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5714 1.9 tv if test $ac_cv_type_uint64_t = yes; then
5715 1.9 tv :
5716 1.9 tv else
5717 1.9 tv
5718 1.61 christos echo "$as_me:$LINENO: checking for u_int64_t" >&5
5719 1.9 tv echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5720 1.9 tv if test "${ac_cv_type_u_int64_t+set}" = set; then
5721 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5722 1.9 tv else
5723 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5724 1.61 christos /* confdefs.h. */
5725 1.61 christos _ACEOF
5726 1.61 christos cat confdefs.h >>conftest.$ac_ext
5727 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5728 1.61 christos /* end confdefs.h. */
5729 1.9 tv $ac_includes_default
5730 1.9 tv int
5731 1.9 tv main ()
5732 1.9 tv {
5733 1.9 tv if ((u_int64_t *) 0)
5734 1.9 tv return 0;
5735 1.9 tv if (sizeof (u_int64_t))
5736 1.9 tv return 0;
5737 1.9 tv ;
5738 1.9 tv return 0;
5739 1.9 tv }
5740 1.9 tv _ACEOF
5741 1.9 tv rm -f conftest.$ac_objext
5742 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743 1.61 christos (eval $ac_compile) 2>conftest.er1
5744 1.9 tv ac_status=$?
5745 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5746 1.61 christos rm -f conftest.er1
5747 1.61 christos cat conftest.err >&5
5748 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 1.9 tv (exit $ac_status); } &&
5750 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5751 1.61 christos || test ! -s conftest.err'
5752 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 1.61 christos (eval $ac_try) 2>&5
5754 1.61 christos ac_status=$?
5755 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 1.61 christos (exit $ac_status); }; } &&
5757 1.61 christos { ac_try='test -s conftest.$ac_objext'
5758 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 1.53 dogcow (eval $ac_try) 2>&5
5760 1.53 dogcow ac_status=$?
5761 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 1.9 tv (exit $ac_status); }; }; then
5763 1.9 tv ac_cv_type_u_int64_t=yes
5764 1.9 tv else
5765 1.9 tv echo "$as_me: failed program was:" >&5
5766 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5767 1.61 christos
5768 1.9 tv ac_cv_type_u_int64_t=no
5769 1.9 tv fi
5770 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5771 1.9 tv fi
5772 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5773 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5774 1.9 tv if test $ac_cv_type_u_int64_t = yes; then
5775 1.54 wiz
5776 1.61 christos cat >>confdefs.h <<\_ACEOF
5777 1.9 tv #define uint64_t u_int64_t
5778 1.61 christos _ACEOF
5779 1.9 tv
5780 1.9 tv else
5781 1.61 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5
5782 1.9 tv echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
5783 1.9 tv { (exit 1); exit 1; }; }
5784 1.9 tv fi
5785 1.9 tv
5786 1.61 christos
5787 1.9 tv fi
5788 1.9 tv
5789 1.61 christos echo "$as_me:$LINENO: checking for u_int64_t" >&5
5790 1.6 tv echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5791 1.6 tv if test "${ac_cv_type_u_int64_t+set}" = set; then
5792 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5793 1.1 tv else
5794 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5795 1.61 christos /* confdefs.h. */
5796 1.61 christos _ACEOF
5797 1.61 christos cat confdefs.h >>conftest.$ac_ext
5798 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5799 1.61 christos /* end confdefs.h. */
5800 1.1 tv $ac_includes_default
5801 1.1 tv int
5802 1.1 tv main ()
5803 1.1 tv {
5804 1.6 tv if ((u_int64_t *) 0)
5805 1.1 tv return 0;
5806 1.6 tv if (sizeof (u_int64_t))
5807 1.1 tv return 0;
5808 1.1 tv ;
5809 1.1 tv return 0;
5810 1.1 tv }
5811 1.1 tv _ACEOF
5812 1.1 tv rm -f conftest.$ac_objext
5813 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 1.61 christos (eval $ac_compile) 2>conftest.er1
5815 1.1 tv ac_status=$?
5816 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5817 1.61 christos rm -f conftest.er1
5818 1.61 christos cat conftest.err >&5
5819 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 1.1 tv (exit $ac_status); } &&
5821 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5822 1.61 christos || test ! -s conftest.err'
5823 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 1.61 christos (eval $ac_try) 2>&5
5825 1.61 christos ac_status=$?
5826 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 1.61 christos (exit $ac_status); }; } &&
5828 1.61 christos { ac_try='test -s conftest.$ac_objext'
5829 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 1.50 jmc (eval $ac_try) 2>&5
5831 1.50 jmc ac_status=$?
5832 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 1.1 tv (exit $ac_status); }; }; then
5834 1.6 tv ac_cv_type_u_int64_t=yes
5835 1.1 tv else
5836 1.1 tv echo "$as_me: failed program was:" >&5
5837 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5838 1.61 christos
5839 1.6 tv ac_cv_type_u_int64_t=no
5840 1.1 tv fi
5841 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5842 1.1 tv fi
5843 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5844 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5845 1.6 tv if test $ac_cv_type_u_int64_t = yes; then
5846 1.1 tv :
5847 1.1 tv else
5848 1.1 tv
5849 1.61 christos echo "$as_me:$LINENO: checking for uint64_t" >&5
5850 1.6 tv echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5851 1.6 tv if test "${ac_cv_type_uint64_t+set}" = set; then
5852 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5853 1.1 tv else
5854 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5855 1.61 christos /* confdefs.h. */
5856 1.61 christos _ACEOF
5857 1.61 christos cat confdefs.h >>conftest.$ac_ext
5858 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5859 1.61 christos /* end confdefs.h. */
5860 1.4 tv $ac_includes_default
5861 1.4 tv int
5862 1.4 tv main ()
5863 1.4 tv {
5864 1.6 tv if ((uint64_t *) 0)
5865 1.4 tv return 0;
5866 1.6 tv if (sizeof (uint64_t))
5867 1.4 tv return 0;
5868 1.4 tv ;
5869 1.4 tv return 0;
5870 1.4 tv }
5871 1.1 tv _ACEOF
5872 1.4 tv rm -f conftest.$ac_objext
5873 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 1.61 christos (eval $ac_compile) 2>conftest.er1
5875 1.4 tv ac_status=$?
5876 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5877 1.61 christos rm -f conftest.er1
5878 1.61 christos cat conftest.err >&5
5879 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 1.4 tv (exit $ac_status); } &&
5881 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5882 1.61 christos || test ! -s conftest.err'
5883 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 1.61 christos (eval $ac_try) 2>&5
5885 1.61 christos ac_status=$?
5886 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 1.61 christos (exit $ac_status); }; } &&
5888 1.61 christos { ac_try='test -s conftest.$ac_objext'
5889 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 1.53 dogcow (eval $ac_try) 2>&5
5891 1.53 dogcow ac_status=$?
5892 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 1.4 tv (exit $ac_status); }; }; then
5894 1.6 tv ac_cv_type_uint64_t=yes
5895 1.4 tv else
5896 1.4 tv echo "$as_me: failed program was:" >&5
5897 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5898 1.61 christos
5899 1.6 tv ac_cv_type_uint64_t=no
5900 1.4 tv fi
5901 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902 1.4 tv fi
5903 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5904 1.6 tv echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5905 1.6 tv if test $ac_cv_type_uint64_t = yes; then
5906 1.54 wiz
5907 1.61 christos cat >>confdefs.h <<\_ACEOF
5908 1.6 tv #define u_int64_t uint64_t
5909 1.61 christos _ACEOF
5910 1.4 tv
5911 1.6 tv else
5912 1.61 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5
5913 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
5914 1.6 tv { (exit 1); exit 1; }; }
5915 1.6 tv fi
5916 1.4 tv
5917 1.61 christos
5918 1.4 tv fi
5919 1.4 tv
5920 1.61 christos
5921 1.61 christos
5922 1.4 tv # Struct members.
5923 1.61 christos echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
5924 1.7 tv echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
5925 1.7 tv if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
5926 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5927 1.7 tv else
5928 1.7 tv cat >conftest.$ac_ext <<_ACEOF
5929 1.61 christos /* confdefs.h. */
5930 1.61 christos _ACEOF
5931 1.61 christos cat confdefs.h >>conftest.$ac_ext
5932 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5933 1.61 christos /* end confdefs.h. */
5934 1.32 thorpej #include <sys/types.h>
5935 1.7 tv #include <dirent.h>
5936 1.7 tv
5937 1.7 tv int
5938 1.7 tv main ()
5939 1.7 tv {
5940 1.7 tv static DIR ac_aggr;
5941 1.7 tv if (ac_aggr.dd_fd)
5942 1.7 tv return 0;
5943 1.7 tv ;
5944 1.7 tv return 0;
5945 1.7 tv }
5946 1.7 tv _ACEOF
5947 1.7 tv rm -f conftest.$ac_objext
5948 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 1.61 christos (eval $ac_compile) 2>conftest.er1
5950 1.61 christos ac_status=$?
5951 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5952 1.61 christos rm -f conftest.er1
5953 1.61 christos cat conftest.err >&5
5954 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 1.61 christos (exit $ac_status); } &&
5956 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
5957 1.61 christos || test ! -s conftest.err'
5958 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 1.61 christos (eval $ac_try) 2>&5
5960 1.61 christos ac_status=$?
5961 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 1.61 christos (exit $ac_status); }; } &&
5963 1.61 christos { ac_try='test -s conftest.$ac_objext'
5964 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 1.61 christos (eval $ac_try) 2>&5
5966 1.61 christos ac_status=$?
5967 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 1.61 christos (exit $ac_status); }; }; then
5969 1.61 christos ac_cv_member_DIR_dd_fd=yes
5970 1.61 christos else
5971 1.61 christos echo "$as_me: failed program was:" >&5
5972 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
5973 1.61 christos
5974 1.61 christos cat >conftest.$ac_ext <<_ACEOF
5975 1.61 christos /* confdefs.h. */
5976 1.61 christos _ACEOF
5977 1.61 christos cat confdefs.h >>conftest.$ac_ext
5978 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
5979 1.61 christos /* end confdefs.h. */
5980 1.61 christos #include <sys/types.h>
5981 1.61 christos #include <dirent.h>
5982 1.61 christos
5983 1.61 christos int
5984 1.61 christos main ()
5985 1.61 christos {
5986 1.61 christos static DIR ac_aggr;
5987 1.61 christos if (sizeof ac_aggr.dd_fd)
5988 1.61 christos return 0;
5989 1.61 christos ;
5990 1.61 christos return 0;
5991 1.61 christos }
5992 1.61 christos _ACEOF
5993 1.61 christos rm -f conftest.$ac_objext
5994 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995 1.61 christos (eval $ac_compile) 2>conftest.er1
5996 1.53 dogcow ac_status=$?
5997 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
5998 1.61 christos rm -f conftest.er1
5999 1.61 christos cat conftest.err >&5
6000 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 1.53 dogcow (exit $ac_status); } &&
6002 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6003 1.61 christos || test ! -s conftest.err'
6004 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 1.61 christos (eval $ac_try) 2>&5
6006 1.61 christos ac_status=$?
6007 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 1.61 christos (exit $ac_status); }; } &&
6009 1.61 christos { ac_try='test -s conftest.$ac_objext'
6010 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 1.53 dogcow (eval $ac_try) 2>&5
6012 1.53 dogcow ac_status=$?
6013 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 1.53 dogcow (exit $ac_status); }; }; then
6015 1.53 dogcow ac_cv_member_DIR_dd_fd=yes
6016 1.53 dogcow else
6017 1.53 dogcow echo "$as_me: failed program was:" >&5
6018 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6019 1.61 christos
6020 1.48 jmc ac_cv_member_DIR_dd_fd=no
6021 1.48 jmc fi
6022 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023 1.53 dogcow fi
6024 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 1.61 christos fi
6026 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
6027 1.48 jmc echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
6028 1.48 jmc if test $ac_cv_member_DIR_dd_fd = yes; then
6029 1.48 jmc
6030 1.61 christos cat >>confdefs.h <<_ACEOF
6031 1.48 jmc #define HAVE_DIR_DD_FD 1
6032 1.61 christos _ACEOF
6033 1.61 christos
6034 1.48 jmc
6035 1.48 jmc fi
6036 1.61 christos echo "$as_me:$LINENO: checking for DIR.__dd_fd" >&5
6037 1.59 thorpej echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6
6038 1.59 thorpej if test "${ac_cv_member_DIR___dd_fd+set}" = set; then
6039 1.59 thorpej echo $ECHO_N "(cached) $ECHO_C" >&6
6040 1.59 thorpej else
6041 1.59 thorpej cat >conftest.$ac_ext <<_ACEOF
6042 1.61 christos /* confdefs.h. */
6043 1.61 christos _ACEOF
6044 1.61 christos cat confdefs.h >>conftest.$ac_ext
6045 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6046 1.61 christos /* end confdefs.h. */
6047 1.59 thorpej #include <sys/types.h>
6048 1.59 thorpej #include <dirent.h>
6049 1.59 thorpej
6050 1.59 thorpej int
6051 1.59 thorpej main ()
6052 1.59 thorpej {
6053 1.59 thorpej static DIR ac_aggr;
6054 1.59 thorpej if (ac_aggr.__dd_fd)
6055 1.59 thorpej return 0;
6056 1.59 thorpej ;
6057 1.59 thorpej return 0;
6058 1.59 thorpej }
6059 1.59 thorpej _ACEOF
6060 1.59 thorpej rm -f conftest.$ac_objext
6061 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 1.61 christos (eval $ac_compile) 2>conftest.er1
6063 1.61 christos ac_status=$?
6064 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6065 1.61 christos rm -f conftest.er1
6066 1.61 christos cat conftest.err >&5
6067 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 1.61 christos (exit $ac_status); } &&
6069 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6070 1.61 christos || test ! -s conftest.err'
6071 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 1.61 christos (eval $ac_try) 2>&5
6073 1.61 christos ac_status=$?
6074 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 1.61 christos (exit $ac_status); }; } &&
6076 1.61 christos { ac_try='test -s conftest.$ac_objext'
6077 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 1.61 christos (eval $ac_try) 2>&5
6079 1.61 christos ac_status=$?
6080 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 1.61 christos (exit $ac_status); }; }; then
6082 1.61 christos ac_cv_member_DIR___dd_fd=yes
6083 1.61 christos else
6084 1.61 christos echo "$as_me: failed program was:" >&5
6085 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6086 1.61 christos
6087 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6088 1.61 christos /* confdefs.h. */
6089 1.61 christos _ACEOF
6090 1.61 christos cat confdefs.h >>conftest.$ac_ext
6091 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6092 1.61 christos /* end confdefs.h. */
6093 1.61 christos #include <sys/types.h>
6094 1.61 christos #include <dirent.h>
6095 1.61 christos
6096 1.61 christos int
6097 1.61 christos main ()
6098 1.61 christos {
6099 1.61 christos static DIR ac_aggr;
6100 1.61 christos if (sizeof ac_aggr.__dd_fd)
6101 1.61 christos return 0;
6102 1.61 christos ;
6103 1.61 christos return 0;
6104 1.61 christos }
6105 1.61 christos _ACEOF
6106 1.61 christos rm -f conftest.$ac_objext
6107 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 1.61 christos (eval $ac_compile) 2>conftest.er1
6109 1.59 thorpej ac_status=$?
6110 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6111 1.61 christos rm -f conftest.er1
6112 1.61 christos cat conftest.err >&5
6113 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 1.59 thorpej (exit $ac_status); } &&
6115 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6116 1.61 christos || test ! -s conftest.err'
6117 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 1.59 thorpej (eval $ac_try) 2>&5
6119 1.59 thorpej ac_status=$?
6120 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 1.61 christos (exit $ac_status); }; } &&
6122 1.61 christos { ac_try='test -s conftest.$ac_objext'
6123 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 1.61 christos (eval $ac_try) 2>&5
6125 1.61 christos ac_status=$?
6126 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 1.59 thorpej (exit $ac_status); }; }; then
6128 1.59 thorpej ac_cv_member_DIR___dd_fd=yes
6129 1.59 thorpej else
6130 1.59 thorpej echo "$as_me: failed program was:" >&5
6131 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6132 1.61 christos
6133 1.59 thorpej ac_cv_member_DIR___dd_fd=no
6134 1.59 thorpej fi
6135 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6136 1.61 christos fi
6137 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6138 1.59 thorpej fi
6139 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_DIR___dd_fd" >&5
6140 1.59 thorpej echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6
6141 1.59 thorpej if test $ac_cv_member_DIR___dd_fd = yes; then
6142 1.59 thorpej
6143 1.61 christos cat >>confdefs.h <<_ACEOF
6144 1.59 thorpej #define HAVE_DIR___DD_FD 1
6145 1.61 christos _ACEOF
6146 1.61 christos
6147 1.59 thorpej
6148 1.59 thorpej fi
6149 1.61 christos echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
6150 1.48 jmc echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
6151 1.48 jmc if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
6152 1.48 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
6153 1.48 jmc else
6154 1.52 dbj cat >conftest.$ac_ext <<_ACEOF
6155 1.61 christos /* confdefs.h. */
6156 1.61 christos _ACEOF
6157 1.61 christos cat confdefs.h >>conftest.$ac_ext
6158 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6159 1.61 christos /* end confdefs.h. */
6160 1.32 thorpej #include <sys/types.h>
6161 1.8 tv #include <dirent.h>
6162 1.8 tv
6163 1.8 tv int
6164 1.8 tv main ()
6165 1.8 tv {
6166 1.8 tv static struct dirent ac_aggr;
6167 1.52 dbj if (ac_aggr.d_namlen)
6168 1.8 tv return 0;
6169 1.8 tv ;
6170 1.8 tv return 0;
6171 1.8 tv }
6172 1.8 tv _ACEOF
6173 1.8 tv rm -f conftest.$ac_objext
6174 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 1.61 christos (eval $ac_compile) 2>conftest.er1
6176 1.61 christos ac_status=$?
6177 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6178 1.61 christos rm -f conftest.er1
6179 1.61 christos cat conftest.err >&5
6180 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 1.61 christos (exit $ac_status); } &&
6182 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6183 1.61 christos || test ! -s conftest.err'
6184 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 1.61 christos (eval $ac_try) 2>&5
6186 1.61 christos ac_status=$?
6187 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 1.61 christos (exit $ac_status); }; } &&
6189 1.61 christos { ac_try='test -s conftest.$ac_objext'
6190 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 1.61 christos (eval $ac_try) 2>&5
6192 1.61 christos ac_status=$?
6193 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 1.61 christos (exit $ac_status); }; }; then
6195 1.61 christos ac_cv_member_struct_dirent_d_namlen=yes
6196 1.61 christos else
6197 1.61 christos echo "$as_me: failed program was:" >&5
6198 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6199 1.61 christos
6200 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6201 1.61 christos /* confdefs.h. */
6202 1.61 christos _ACEOF
6203 1.61 christos cat confdefs.h >>conftest.$ac_ext
6204 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6205 1.61 christos /* end confdefs.h. */
6206 1.61 christos #include <sys/types.h>
6207 1.61 christos #include <dirent.h>
6208 1.61 christos
6209 1.61 christos int
6210 1.61 christos main ()
6211 1.61 christos {
6212 1.61 christos static struct dirent ac_aggr;
6213 1.61 christos if (sizeof ac_aggr.d_namlen)
6214 1.61 christos return 0;
6215 1.61 christos ;
6216 1.61 christos return 0;
6217 1.61 christos }
6218 1.61 christos _ACEOF
6219 1.61 christos rm -f conftest.$ac_objext
6220 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221 1.61 christos (eval $ac_compile) 2>conftest.er1
6222 1.8 tv ac_status=$?
6223 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6224 1.61 christos rm -f conftest.er1
6225 1.61 christos cat conftest.err >&5
6226 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 1.8 tv (exit $ac_status); } &&
6228 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6229 1.61 christos || test ! -s conftest.err'
6230 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 1.61 christos (eval $ac_try) 2>&5
6232 1.61 christos ac_status=$?
6233 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 1.61 christos (exit $ac_status); }; } &&
6235 1.61 christos { ac_try='test -s conftest.$ac_objext'
6236 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 1.50 jmc (eval $ac_try) 2>&5
6238 1.50 jmc ac_status=$?
6239 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 1.8 tv (exit $ac_status); }; }; then
6241 1.8 tv ac_cv_member_struct_dirent_d_namlen=yes
6242 1.8 tv else
6243 1.8 tv echo "$as_me: failed program was:" >&5
6244 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6245 1.61 christos
6246 1.8 tv ac_cv_member_struct_dirent_d_namlen=no
6247 1.8 tv fi
6248 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249 1.48 jmc fi
6250 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6251 1.61 christos fi
6252 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
6253 1.8 tv echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
6254 1.8 tv if test $ac_cv_member_struct_dirent_d_namlen = yes; then
6255 1.8 tv
6256 1.61 christos cat >>confdefs.h <<_ACEOF
6257 1.60 apb #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
6258 1.61 christos _ACEOF
6259 1.61 christos
6260 1.61 christos
6261 1.61 christos fi
6262 1.61 christos
6263 1.61 christos echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
6264 1.61 christos echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
6265 1.61 christos if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
6266 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6267 1.61 christos else
6268 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6269 1.61 christos /* confdefs.h. */
6270 1.61 christos _ACEOF
6271 1.61 christos cat confdefs.h >>conftest.$ac_ext
6272 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6273 1.61 christos /* end confdefs.h. */
6274 1.61 christos #include <sys/stat.h>
6275 1.61 christos
6276 1.61 christos int
6277 1.61 christos main ()
6278 1.61 christos {
6279 1.61 christos static struct stat ac_aggr;
6280 1.61 christos if (ac_aggr.st_flags)
6281 1.61 christos return 0;
6282 1.61 christos ;
6283 1.61 christos return 0;
6284 1.61 christos }
6285 1.61 christos _ACEOF
6286 1.61 christos rm -f conftest.$ac_objext
6287 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 1.61 christos (eval $ac_compile) 2>conftest.er1
6289 1.61 christos ac_status=$?
6290 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6291 1.61 christos rm -f conftest.er1
6292 1.61 christos cat conftest.err >&5
6293 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 1.61 christos (exit $ac_status); } &&
6295 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6296 1.61 christos || test ! -s conftest.err'
6297 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 1.61 christos (eval $ac_try) 2>&5
6299 1.61 christos ac_status=$?
6300 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 1.61 christos (exit $ac_status); }; } &&
6302 1.61 christos { ac_try='test -s conftest.$ac_objext'
6303 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 1.61 christos (eval $ac_try) 2>&5
6305 1.61 christos ac_status=$?
6306 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 1.61 christos (exit $ac_status); }; }; then
6308 1.61 christos ac_cv_member_struct_stat_st_flags=yes
6309 1.61 christos else
6310 1.61 christos echo "$as_me: failed program was:" >&5
6311 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6312 1.61 christos
6313 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6314 1.61 christos /* confdefs.h. */
6315 1.61 christos _ACEOF
6316 1.61 christos cat confdefs.h >>conftest.$ac_ext
6317 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6318 1.61 christos /* end confdefs.h. */
6319 1.61 christos #include <sys/stat.h>
6320 1.61 christos
6321 1.61 christos int
6322 1.61 christos main ()
6323 1.61 christos {
6324 1.61 christos static struct stat ac_aggr;
6325 1.61 christos if (sizeof ac_aggr.st_flags)
6326 1.61 christos return 0;
6327 1.61 christos ;
6328 1.61 christos return 0;
6329 1.61 christos }
6330 1.61 christos _ACEOF
6331 1.61 christos rm -f conftest.$ac_objext
6332 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333 1.61 christos (eval $ac_compile) 2>conftest.er1
6334 1.61 christos ac_status=$?
6335 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6336 1.61 christos rm -f conftest.er1
6337 1.61 christos cat conftest.err >&5
6338 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 1.61 christos (exit $ac_status); } &&
6340 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6341 1.61 christos || test ! -s conftest.err'
6342 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 1.61 christos (eval $ac_try) 2>&5
6344 1.61 christos ac_status=$?
6345 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 1.61 christos (exit $ac_status); }; } &&
6347 1.61 christos { ac_try='test -s conftest.$ac_objext'
6348 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 1.61 christos (eval $ac_try) 2>&5
6350 1.61 christos ac_status=$?
6351 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 1.61 christos (exit $ac_status); }; }; then
6353 1.61 christos ac_cv_member_struct_stat_st_flags=yes
6354 1.61 christos else
6355 1.61 christos echo "$as_me: failed program was:" >&5
6356 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6357 1.61 christos
6358 1.61 christos ac_cv_member_struct_stat_st_flags=no
6359 1.61 christos fi
6360 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6361 1.61 christos fi
6362 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6363 1.61 christos fi
6364 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
6365 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
6366 1.61 christos if test $ac_cv_member_struct_stat_st_flags = yes; then
6367 1.61 christos
6368 1.61 christos cat >>confdefs.h <<_ACEOF
6369 1.61 christos #define HAVE_STRUCT_STAT_ST_FLAGS 1
6370 1.61 christos _ACEOF
6371 1.61 christos
6372 1.61 christos
6373 1.61 christos fi
6374 1.61 christos echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
6375 1.61 christos echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
6376 1.61 christos if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
6377 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6378 1.61 christos else
6379 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6380 1.61 christos /* confdefs.h. */
6381 1.61 christos _ACEOF
6382 1.61 christos cat confdefs.h >>conftest.$ac_ext
6383 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6384 1.61 christos /* end confdefs.h. */
6385 1.61 christos #include <sys/stat.h>
6386 1.61 christos
6387 1.61 christos int
6388 1.61 christos main ()
6389 1.61 christos {
6390 1.61 christos static struct stat ac_aggr;
6391 1.61 christos if (ac_aggr.st_gen)
6392 1.61 christos return 0;
6393 1.61 christos ;
6394 1.61 christos return 0;
6395 1.61 christos }
6396 1.61 christos _ACEOF
6397 1.61 christos rm -f conftest.$ac_objext
6398 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399 1.61 christos (eval $ac_compile) 2>conftest.er1
6400 1.61 christos ac_status=$?
6401 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6402 1.61 christos rm -f conftest.er1
6403 1.61 christos cat conftest.err >&5
6404 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 1.61 christos (exit $ac_status); } &&
6406 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6407 1.61 christos || test ! -s conftest.err'
6408 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 1.61 christos (eval $ac_try) 2>&5
6410 1.61 christos ac_status=$?
6411 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 1.61 christos (exit $ac_status); }; } &&
6413 1.61 christos { ac_try='test -s conftest.$ac_objext'
6414 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 1.61 christos (eval $ac_try) 2>&5
6416 1.61 christos ac_status=$?
6417 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 1.61 christos (exit $ac_status); }; }; then
6419 1.61 christos ac_cv_member_struct_stat_st_gen=yes
6420 1.61 christos else
6421 1.61 christos echo "$as_me: failed program was:" >&5
6422 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6423 1.61 christos
6424 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6425 1.61 christos /* confdefs.h. */
6426 1.61 christos _ACEOF
6427 1.61 christos cat confdefs.h >>conftest.$ac_ext
6428 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6429 1.61 christos /* end confdefs.h. */
6430 1.61 christos #include <sys/stat.h>
6431 1.53 dogcow
6432 1.61 christos int
6433 1.61 christos main ()
6434 1.61 christos {
6435 1.61 christos static struct stat ac_aggr;
6436 1.61 christos if (sizeof ac_aggr.st_gen)
6437 1.61 christos return 0;
6438 1.61 christos ;
6439 1.61 christos return 0;
6440 1.61 christos }
6441 1.61 christos _ACEOF
6442 1.61 christos rm -f conftest.$ac_objext
6443 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6444 1.61 christos (eval $ac_compile) 2>conftest.er1
6445 1.61 christos ac_status=$?
6446 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6447 1.61 christos rm -f conftest.er1
6448 1.61 christos cat conftest.err >&5
6449 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 1.61 christos (exit $ac_status); } &&
6451 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6452 1.61 christos || test ! -s conftest.err'
6453 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 1.61 christos (eval $ac_try) 2>&5
6455 1.61 christos ac_status=$?
6456 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 1.61 christos (exit $ac_status); }; } &&
6458 1.61 christos { ac_try='test -s conftest.$ac_objext'
6459 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 1.61 christos (eval $ac_try) 2>&5
6461 1.61 christos ac_status=$?
6462 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 1.61 christos (exit $ac_status); }; }; then
6464 1.61 christos ac_cv_member_struct_stat_st_gen=yes
6465 1.61 christos else
6466 1.61 christos echo "$as_me: failed program was:" >&5
6467 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6468 1.61 christos
6469 1.61 christos ac_cv_member_struct_stat_st_gen=no
6470 1.61 christos fi
6471 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6472 1.61 christos fi
6473 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6474 1.61 christos fi
6475 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
6476 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
6477 1.61 christos if test $ac_cv_member_struct_stat_st_gen = yes; then
6478 1.61 christos
6479 1.61 christos cat >>confdefs.h <<_ACEOF
6480 1.61 christos #define HAVE_STRUCT_STAT_ST_GEN 1
6481 1.61 christos _ACEOF
6482 1.61 christos
6483 1.61 christos
6484 1.61 christos fi
6485 1.61 christos echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
6486 1.61 christos echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
6487 1.61 christos if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
6488 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6489 1.61 christos else
6490 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6491 1.61 christos /* confdefs.h. */
6492 1.61 christos _ACEOF
6493 1.61 christos cat confdefs.h >>conftest.$ac_ext
6494 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6495 1.61 christos /* end confdefs.h. */
6496 1.61 christos #include <sys/stat.h>
6497 1.61 christos
6498 1.61 christos int
6499 1.61 christos main ()
6500 1.61 christos {
6501 1.61 christos static struct stat ac_aggr;
6502 1.61 christos if (ac_aggr.st_birthtime)
6503 1.61 christos return 0;
6504 1.61 christos ;
6505 1.61 christos return 0;
6506 1.61 christos }
6507 1.61 christos _ACEOF
6508 1.61 christos rm -f conftest.$ac_objext
6509 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 1.61 christos (eval $ac_compile) 2>conftest.er1
6511 1.61 christos ac_status=$?
6512 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6513 1.61 christos rm -f conftest.er1
6514 1.61 christos cat conftest.err >&5
6515 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 1.61 christos (exit $ac_status); } &&
6517 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6518 1.61 christos || test ! -s conftest.err'
6519 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 1.61 christos (eval $ac_try) 2>&5
6521 1.61 christos ac_status=$?
6522 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 1.61 christos (exit $ac_status); }; } &&
6524 1.61 christos { ac_try='test -s conftest.$ac_objext'
6525 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 1.61 christos (eval $ac_try) 2>&5
6527 1.61 christos ac_status=$?
6528 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 1.61 christos (exit $ac_status); }; }; then
6530 1.61 christos ac_cv_member_struct_stat_st_birthtime=yes
6531 1.61 christos else
6532 1.61 christos echo "$as_me: failed program was:" >&5
6533 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6534 1.61 christos
6535 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6536 1.61 christos /* confdefs.h. */
6537 1.61 christos _ACEOF
6538 1.61 christos cat confdefs.h >>conftest.$ac_ext
6539 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6540 1.61 christos /* end confdefs.h. */
6541 1.61 christos #include <sys/stat.h>
6542 1.61 christos
6543 1.61 christos int
6544 1.61 christos main ()
6545 1.61 christos {
6546 1.61 christos static struct stat ac_aggr;
6547 1.61 christos if (sizeof ac_aggr.st_birthtime)
6548 1.61 christos return 0;
6549 1.61 christos ;
6550 1.61 christos return 0;
6551 1.61 christos }
6552 1.61 christos _ACEOF
6553 1.61 christos rm -f conftest.$ac_objext
6554 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 1.61 christos (eval $ac_compile) 2>conftest.er1
6556 1.61 christos ac_status=$?
6557 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6558 1.61 christos rm -f conftest.er1
6559 1.61 christos cat conftest.err >&5
6560 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 1.61 christos (exit $ac_status); } &&
6562 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6563 1.61 christos || test ! -s conftest.err'
6564 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 1.61 christos (eval $ac_try) 2>&5
6566 1.61 christos ac_status=$?
6567 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 1.61 christos (exit $ac_status); }; } &&
6569 1.61 christos { ac_try='test -s conftest.$ac_objext'
6570 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 1.61 christos (eval $ac_try) 2>&5
6572 1.61 christos ac_status=$?
6573 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 1.61 christos (exit $ac_status); }; }; then
6575 1.61 christos ac_cv_member_struct_stat_st_birthtime=yes
6576 1.61 christos else
6577 1.61 christos echo "$as_me: failed program was:" >&5
6578 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6579 1.61 christos
6580 1.61 christos ac_cv_member_struct_stat_st_birthtime=no
6581 1.61 christos fi
6582 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6583 1.61 christos fi
6584 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 1.61 christos fi
6586 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
6587 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
6588 1.61 christos if test $ac_cv_member_struct_stat_st_birthtime = yes; then
6589 1.61 christos
6590 1.61 christos cat >>confdefs.h <<_ACEOF
6591 1.61 christos #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
6592 1.61 christos _ACEOF
6593 1.61 christos
6594 1.61 christos
6595 1.61 christos fi
6596 1.61 christos echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
6597 1.61 christos echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6
6598 1.61 christos if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
6599 1.43 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
6600 1.43 dbj else
6601 1.43 dbj cat >conftest.$ac_ext <<_ACEOF
6602 1.61 christos /* confdefs.h. */
6603 1.61 christos _ACEOF
6604 1.61 christos cat confdefs.h >>conftest.$ac_ext
6605 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6606 1.61 christos /* end confdefs.h. */
6607 1.40 atatat #include <sys/stat.h>
6608 1.40 atatat
6609 1.40 atatat int
6610 1.40 atatat main ()
6611 1.40 atatat {
6612 1.40 atatat static struct stat ac_aggr;
6613 1.61 christos if (ac_aggr.st_birthtimensec)
6614 1.40 atatat return 0;
6615 1.40 atatat ;
6616 1.40 atatat return 0;
6617 1.40 atatat }
6618 1.40 atatat _ACEOF
6619 1.40 atatat rm -f conftest.$ac_objext
6620 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 1.61 christos (eval $ac_compile) 2>conftest.er1
6622 1.53 dogcow ac_status=$?
6623 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6624 1.61 christos rm -f conftest.er1
6625 1.61 christos cat conftest.err >&5
6626 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 1.53 dogcow (exit $ac_status); } &&
6628 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6629 1.61 christos || test ! -s conftest.err'
6630 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 1.61 christos (eval $ac_try) 2>&5
6632 1.61 christos ac_status=$?
6633 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 1.61 christos (exit $ac_status); }; } &&
6635 1.61 christos { ac_try='test -s conftest.$ac_objext'
6636 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 1.53 dogcow (eval $ac_try) 2>&5
6638 1.53 dogcow ac_status=$?
6639 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 1.53 dogcow (exit $ac_status); }; }; then
6641 1.61 christos ac_cv_member_struct_stat_st_birthtimensec=yes
6642 1.53 dogcow else
6643 1.53 dogcow echo "$as_me: failed program was:" >&5
6644 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6645 1.60 apb
6646 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6647 1.61 christos /* confdefs.h. */
6648 1.61 christos _ACEOF
6649 1.61 christos cat confdefs.h >>conftest.$ac_ext
6650 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6651 1.61 christos /* end confdefs.h. */
6652 1.53 dogcow #include <sys/stat.h>
6653 1.53 dogcow
6654 1.53 dogcow int
6655 1.53 dogcow main ()
6656 1.53 dogcow {
6657 1.53 dogcow static struct stat ac_aggr;
6658 1.61 christos if (sizeof ac_aggr.st_birthtimensec)
6659 1.53 dogcow return 0;
6660 1.53 dogcow ;
6661 1.53 dogcow return 0;
6662 1.53 dogcow }
6663 1.53 dogcow _ACEOF
6664 1.53 dogcow rm -f conftest.$ac_objext
6665 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 1.61 christos (eval $ac_compile) 2>conftest.er1
6667 1.40 atatat ac_status=$?
6668 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6669 1.61 christos rm -f conftest.er1
6670 1.61 christos cat conftest.err >&5
6671 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 1.40 atatat (exit $ac_status); } &&
6673 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6674 1.61 christos || test ! -s conftest.err'
6675 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 1.61 christos (eval $ac_try) 2>&5
6677 1.61 christos ac_status=$?
6678 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 1.61 christos (exit $ac_status); }; } &&
6680 1.61 christos { ac_try='test -s conftest.$ac_objext'
6681 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 1.50 jmc (eval $ac_try) 2>&5
6683 1.50 jmc ac_status=$?
6684 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 1.40 atatat (exit $ac_status); }; }; then
6686 1.61 christos ac_cv_member_struct_stat_st_birthtimensec=yes
6687 1.40 atatat else
6688 1.40 atatat echo "$as_me: failed program was:" >&5
6689 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6690 1.61 christos
6691 1.61 christos ac_cv_member_struct_stat_st_birthtimensec=no
6692 1.61 christos fi
6693 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 1.40 atatat fi
6695 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6696 1.40 atatat fi
6697 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
6698 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6
6699 1.61 christos if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
6700 1.61 christos
6701 1.61 christos cat >>confdefs.h <<_ACEOF
6702 1.61 christos #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
6703 1.61 christos _ACEOF
6704 1.53 dogcow
6705 1.40 atatat
6706 1.40 atatat fi
6707 1.61 christos echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
6708 1.61 christos echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
6709 1.61 christos if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
6710 1.40 atatat echo $ECHO_N "(cached) $ECHO_C" >&6
6711 1.40 atatat else
6712 1.40 atatat cat >conftest.$ac_ext <<_ACEOF
6713 1.61 christos /* confdefs.h. */
6714 1.61 christos _ACEOF
6715 1.61 christos cat confdefs.h >>conftest.$ac_ext
6716 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6717 1.61 christos /* end confdefs.h. */
6718 1.40 atatat #include <sys/stat.h>
6719 1.40 atatat
6720 1.40 atatat int
6721 1.40 atatat main ()
6722 1.40 atatat {
6723 1.40 atatat static struct stat ac_aggr;
6724 1.61 christos if (ac_aggr.st_atim)
6725 1.40 atatat return 0;
6726 1.40 atatat ;
6727 1.40 atatat return 0;
6728 1.40 atatat }
6729 1.40 atatat _ACEOF
6730 1.40 atatat rm -f conftest.$ac_objext
6731 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732 1.61 christos (eval $ac_compile) 2>conftest.er1
6733 1.53 dogcow ac_status=$?
6734 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6735 1.61 christos rm -f conftest.er1
6736 1.61 christos cat conftest.err >&5
6737 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 1.53 dogcow (exit $ac_status); } &&
6739 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6740 1.61 christos || test ! -s conftest.err'
6741 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 1.61 christos (eval $ac_try) 2>&5
6743 1.61 christos ac_status=$?
6744 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 1.61 christos (exit $ac_status); }; } &&
6746 1.61 christos { ac_try='test -s conftest.$ac_objext'
6747 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 1.53 dogcow (eval $ac_try) 2>&5
6749 1.53 dogcow ac_status=$?
6750 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 1.53 dogcow (exit $ac_status); }; }; then
6752 1.61 christos ac_cv_member_struct_stat_st_atim=yes
6753 1.53 dogcow else
6754 1.53 dogcow echo "$as_me: failed program was:" >&5
6755 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6756 1.60 apb
6757 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6758 1.61 christos /* confdefs.h. */
6759 1.61 christos _ACEOF
6760 1.61 christos cat confdefs.h >>conftest.$ac_ext
6761 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6762 1.61 christos /* end confdefs.h. */
6763 1.53 dogcow #include <sys/stat.h>
6764 1.53 dogcow
6765 1.53 dogcow int
6766 1.53 dogcow main ()
6767 1.53 dogcow {
6768 1.53 dogcow static struct stat ac_aggr;
6769 1.61 christos if (sizeof ac_aggr.st_atim)
6770 1.53 dogcow return 0;
6771 1.53 dogcow ;
6772 1.53 dogcow return 0;
6773 1.53 dogcow }
6774 1.53 dogcow _ACEOF
6775 1.53 dogcow rm -f conftest.$ac_objext
6776 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 1.61 christos (eval $ac_compile) 2>conftest.er1
6778 1.40 atatat ac_status=$?
6779 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6780 1.61 christos rm -f conftest.er1
6781 1.61 christos cat conftest.err >&5
6782 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 1.40 atatat (exit $ac_status); } &&
6784 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6785 1.61 christos || test ! -s conftest.err'
6786 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 1.61 christos (eval $ac_try) 2>&5
6788 1.61 christos ac_status=$?
6789 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 1.61 christos (exit $ac_status); }; } &&
6791 1.61 christos { ac_try='test -s conftest.$ac_objext'
6792 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 1.40 atatat (eval $ac_try) 2>&5
6794 1.40 atatat ac_status=$?
6795 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 1.40 atatat (exit $ac_status); }; }; then
6797 1.61 christos ac_cv_member_struct_stat_st_atim=yes
6798 1.40 atatat else
6799 1.40 atatat echo "$as_me: failed program was:" >&5
6800 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6801 1.61 christos
6802 1.61 christos ac_cv_member_struct_stat_st_atim=no
6803 1.61 christos fi
6804 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6805 1.40 atatat fi
6806 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6807 1.53 dogcow fi
6808 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
6809 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
6810 1.61 christos if test $ac_cv_member_struct_stat_st_atim = yes; then
6811 1.61 christos
6812 1.61 christos cat >>confdefs.h <<_ACEOF
6813 1.61 christos #define HAVE_STRUCT_STAT_ST_ATIM 1
6814 1.61 christos _ACEOF
6815 1.53 dogcow
6816 1.40 atatat
6817 1.40 atatat fi
6818 1.61 christos echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
6819 1.61 christos echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
6820 1.61 christos if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
6821 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6822 1.7 tv else
6823 1.7 tv cat >conftest.$ac_ext <<_ACEOF
6824 1.61 christos /* confdefs.h. */
6825 1.61 christos _ACEOF
6826 1.61 christos cat confdefs.h >>conftest.$ac_ext
6827 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6828 1.61 christos /* end confdefs.h. */
6829 1.7 tv #include <sys/stat.h>
6830 1.7 tv
6831 1.7 tv int
6832 1.7 tv main ()
6833 1.7 tv {
6834 1.7 tv static struct stat ac_aggr;
6835 1.61 christos if (ac_aggr.st_mtimensec)
6836 1.7 tv return 0;
6837 1.7 tv ;
6838 1.7 tv return 0;
6839 1.7 tv }
6840 1.7 tv _ACEOF
6841 1.7 tv rm -f conftest.$ac_objext
6842 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 1.61 christos (eval $ac_compile) 2>conftest.er1
6844 1.53 dogcow ac_status=$?
6845 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6846 1.61 christos rm -f conftest.er1
6847 1.61 christos cat conftest.err >&5
6848 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 1.53 dogcow (exit $ac_status); } &&
6850 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6851 1.61 christos || test ! -s conftest.err'
6852 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 1.53 dogcow (eval $ac_try) 2>&5
6854 1.53 dogcow ac_status=$?
6855 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 1.61 christos (exit $ac_status); }; } &&
6857 1.61 christos { ac_try='test -s conftest.$ac_objext'
6858 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 1.61 christos (eval $ac_try) 2>&5
6860 1.61 christos ac_status=$?
6861 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 1.53 dogcow (exit $ac_status); }; }; then
6863 1.61 christos ac_cv_member_struct_stat_st_mtimensec=yes
6864 1.53 dogcow else
6865 1.53 dogcow echo "$as_me: failed program was:" >&5
6866 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6867 1.60 apb
6868 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6869 1.61 christos /* confdefs.h. */
6870 1.61 christos _ACEOF
6871 1.61 christos cat confdefs.h >>conftest.$ac_ext
6872 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6873 1.61 christos /* end confdefs.h. */
6874 1.53 dogcow #include <sys/stat.h>
6875 1.53 dogcow
6876 1.53 dogcow int
6877 1.53 dogcow main ()
6878 1.53 dogcow {
6879 1.53 dogcow static struct stat ac_aggr;
6880 1.61 christos if (sizeof ac_aggr.st_mtimensec)
6881 1.53 dogcow return 0;
6882 1.53 dogcow ;
6883 1.53 dogcow return 0;
6884 1.53 dogcow }
6885 1.53 dogcow _ACEOF
6886 1.53 dogcow rm -f conftest.$ac_objext
6887 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 1.61 christos (eval $ac_compile) 2>conftest.er1
6889 1.7 tv ac_status=$?
6890 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6891 1.61 christos rm -f conftest.er1
6892 1.61 christos cat conftest.err >&5
6893 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 1.7 tv (exit $ac_status); } &&
6895 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6896 1.61 christos || test ! -s conftest.err'
6897 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 1.61 christos (eval $ac_try) 2>&5
6899 1.61 christos ac_status=$?
6900 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 1.61 christos (exit $ac_status); }; } &&
6902 1.61 christos { ac_try='test -s conftest.$ac_objext'
6903 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 1.48 jmc (eval $ac_try) 2>&5
6905 1.48 jmc ac_status=$?
6906 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 1.7 tv (exit $ac_status); }; }; then
6908 1.7 tv ac_cv_member_struct_stat_st_mtimensec=yes
6909 1.7 tv else
6910 1.7 tv echo "$as_me: failed program was:" >&5
6911 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6912 1.61 christos
6913 1.7 tv ac_cv_member_struct_stat_st_mtimensec=no
6914 1.7 tv fi
6915 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6916 1.7 tv fi
6917 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918 1.61 christos fi
6919 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
6920 1.7 tv echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
6921 1.7 tv if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
6922 1.7 tv
6923 1.61 christos cat >>confdefs.h <<_ACEOF
6924 1.7 tv #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
6925 1.61 christos _ACEOF
6926 1.61 christos
6927 1.7 tv
6928 1.7 tv fi
6929 1.4 tv
6930 1.61 christos echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5
6931 1.47 dbj echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
6932 1.47 dbj if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
6933 1.47 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
6934 1.47 dbj else
6935 1.52 dbj cat >conftest.$ac_ext <<_ACEOF
6936 1.61 christos /* confdefs.h. */
6937 1.61 christos _ACEOF
6938 1.61 christos cat confdefs.h >>conftest.$ac_ext
6939 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6940 1.61 christos /* end confdefs.h. */
6941 1.48 jmc #include <sys/statvfs.h>
6942 1.48 jmc
6943 1.48 jmc int
6944 1.48 jmc main ()
6945 1.48 jmc {
6946 1.48 jmc static struct statvfs ac_aggr;
6947 1.52 dbj if (ac_aggr.f_iosize)
6948 1.48 jmc return 0;
6949 1.48 jmc ;
6950 1.48 jmc return 0;
6951 1.48 jmc }
6952 1.48 jmc _ACEOF
6953 1.48 jmc rm -f conftest.$ac_objext
6954 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 1.61 christos (eval $ac_compile) 2>conftest.er1
6956 1.61 christos ac_status=$?
6957 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
6958 1.61 christos rm -f conftest.er1
6959 1.61 christos cat conftest.err >&5
6960 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 1.61 christos (exit $ac_status); } &&
6962 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
6963 1.61 christos || test ! -s conftest.err'
6964 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 1.61 christos (eval $ac_try) 2>&5
6966 1.61 christos ac_status=$?
6967 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 1.61 christos (exit $ac_status); }; } &&
6969 1.61 christos { ac_try='test -s conftest.$ac_objext'
6970 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 1.61 christos (eval $ac_try) 2>&5
6972 1.61 christos ac_status=$?
6973 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 1.61 christos (exit $ac_status); }; }; then
6975 1.61 christos ac_cv_member_struct_statvfs_f_iosize=yes
6976 1.61 christos else
6977 1.61 christos echo "$as_me: failed program was:" >&5
6978 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
6979 1.61 christos
6980 1.61 christos cat >conftest.$ac_ext <<_ACEOF
6981 1.61 christos /* confdefs.h. */
6982 1.61 christos _ACEOF
6983 1.61 christos cat confdefs.h >>conftest.$ac_ext
6984 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
6985 1.61 christos /* end confdefs.h. */
6986 1.61 christos #include <sys/statvfs.h>
6987 1.61 christos
6988 1.61 christos int
6989 1.61 christos main ()
6990 1.61 christos {
6991 1.61 christos static struct statvfs ac_aggr;
6992 1.61 christos if (sizeof ac_aggr.f_iosize)
6993 1.61 christos return 0;
6994 1.61 christos ;
6995 1.61 christos return 0;
6996 1.61 christos }
6997 1.61 christos _ACEOF
6998 1.61 christos rm -f conftest.$ac_objext
6999 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 1.61 christos (eval $ac_compile) 2>conftest.er1
7001 1.7 tv ac_status=$?
7002 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7003 1.61 christos rm -f conftest.er1
7004 1.61 christos cat conftest.err >&5
7005 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 1.7 tv (exit $ac_status); } &&
7007 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7008 1.61 christos || test ! -s conftest.err'
7009 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 1.53 dogcow (eval $ac_try) 2>&5
7011 1.53 dogcow ac_status=$?
7012 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 1.61 christos (exit $ac_status); }; } &&
7014 1.61 christos { ac_try='test -s conftest.$ac_objext'
7015 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 1.61 christos (eval $ac_try) 2>&5
7017 1.61 christos ac_status=$?
7018 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 1.53 dogcow (exit $ac_status); }; }; then
7020 1.53 dogcow ac_cv_member_struct_statvfs_f_iosize=yes
7021 1.53 dogcow else
7022 1.53 dogcow echo "$as_me: failed program was:" >&5
7023 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7024 1.61 christos
7025 1.53 dogcow ac_cv_member_struct_statvfs_f_iosize=no
7026 1.53 dogcow fi
7027 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7028 1.61 christos fi
7029 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 1.53 dogcow fi
7031 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
7032 1.53 dogcow echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
7033 1.53 dogcow if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
7034 1.53 dogcow
7035 1.61 christos cat >>confdefs.h <<_ACEOF
7036 1.53 dogcow #define HAVE_STRUCT_STATVFS_F_IOSIZE 1
7037 1.61 christos _ACEOF
7038 1.61 christos
7039 1.53 dogcow
7040 1.53 dogcow fi
7041 1.53 dogcow
7042 1.61 christos
7043 1.53 dogcow # Global variable decls.
7044 1.61 christos echo "$as_me:$LINENO: checking whether optind is declared" >&5
7045 1.53 dogcow echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
7046 1.53 dogcow if test "${ac_cv_have_decl_optind+set}" = set; then
7047 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
7048 1.53 dogcow else
7049 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
7050 1.61 christos /* confdefs.h. */
7051 1.61 christos _ACEOF
7052 1.61 christos cat confdefs.h >>conftest.$ac_ext
7053 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7054 1.61 christos /* end confdefs.h. */
7055 1.53 dogcow
7056 1.53 dogcow #include <stdio.h>
7057 1.53 dogcow #include <stdlib.h>
7058 1.53 dogcow #include <unistd.h>
7059 1.53 dogcow
7060 1.61 christos
7061 1.53 dogcow int
7062 1.53 dogcow main ()
7063 1.53 dogcow {
7064 1.53 dogcow #ifndef optind
7065 1.53 dogcow char *p = (char *) optind;
7066 1.53 dogcow #endif
7067 1.53 dogcow
7068 1.53 dogcow ;
7069 1.53 dogcow return 0;
7070 1.53 dogcow }
7071 1.53 dogcow _ACEOF
7072 1.53 dogcow rm -f conftest.$ac_objext
7073 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074 1.61 christos (eval $ac_compile) 2>conftest.er1
7075 1.53 dogcow ac_status=$?
7076 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7077 1.61 christos rm -f conftest.er1
7078 1.61 christos cat conftest.err >&5
7079 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 1.53 dogcow (exit $ac_status); } &&
7081 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7082 1.61 christos || test ! -s conftest.err'
7083 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 1.53 dogcow (eval $ac_try) 2>&5
7085 1.53 dogcow ac_status=$?
7086 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 1.61 christos (exit $ac_status); }; } &&
7088 1.61 christos { ac_try='test -s conftest.$ac_objext'
7089 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 1.61 christos (eval $ac_try) 2>&5
7091 1.61 christos ac_status=$?
7092 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 1.7 tv (exit $ac_status); }; }; then
7094 1.7 tv ac_cv_have_decl_optind=yes
7095 1.7 tv else
7096 1.7 tv echo "$as_me: failed program was:" >&5
7097 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7098 1.61 christos
7099 1.7 tv ac_cv_have_decl_optind=no
7100 1.7 tv fi
7101 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102 1.7 tv fi
7103 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
7104 1.7 tv echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
7105 1.7 tv if test $ac_cv_have_decl_optind = yes; then
7106 1.7 tv
7107 1.61 christos cat >>confdefs.h <<_ACEOF
7108 1.7 tv #define HAVE_DECL_OPTIND 1
7109 1.61 christos _ACEOF
7110 1.61 christos
7111 1.7 tv
7112 1.7 tv else
7113 1.61 christos cat >>confdefs.h <<_ACEOF
7114 1.7 tv #define HAVE_DECL_OPTIND 0
7115 1.61 christos _ACEOF
7116 1.61 christos
7117 1.7 tv
7118 1.7 tv fi
7119 1.61 christos echo "$as_me:$LINENO: checking whether optreset is declared" >&5
7120 1.7 tv echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
7121 1.7 tv if test "${ac_cv_have_decl_optreset+set}" = set; then
7122 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
7123 1.7 tv else
7124 1.7 tv cat >conftest.$ac_ext <<_ACEOF
7125 1.61 christos /* confdefs.h. */
7126 1.61 christos _ACEOF
7127 1.61 christos cat confdefs.h >>conftest.$ac_ext
7128 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7129 1.61 christos /* end confdefs.h. */
7130 1.7 tv
7131 1.7 tv #include <stdio.h>
7132 1.7 tv #include <stdlib.h>
7133 1.7 tv #include <unistd.h>
7134 1.7 tv
7135 1.61 christos
7136 1.7 tv int
7137 1.7 tv main ()
7138 1.7 tv {
7139 1.7 tv #ifndef optreset
7140 1.7 tv char *p = (char *) optreset;
7141 1.7 tv #endif
7142 1.7 tv
7143 1.7 tv ;
7144 1.7 tv return 0;
7145 1.7 tv }
7146 1.7 tv _ACEOF
7147 1.7 tv rm -f conftest.$ac_objext
7148 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 1.61 christos (eval $ac_compile) 2>conftest.er1
7150 1.7 tv ac_status=$?
7151 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7152 1.61 christos rm -f conftest.er1
7153 1.61 christos cat conftest.err >&5
7154 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 1.7 tv (exit $ac_status); } &&
7156 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7157 1.61 christos || test ! -s conftest.err'
7158 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 1.53 dogcow (eval $ac_try) 2>&5
7160 1.53 dogcow ac_status=$?
7161 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 1.61 christos (exit $ac_status); }; } &&
7163 1.61 christos { ac_try='test -s conftest.$ac_objext'
7164 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 1.61 christos (eval $ac_try) 2>&5
7166 1.61 christos ac_status=$?
7167 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 1.7 tv (exit $ac_status); }; }; then
7169 1.7 tv ac_cv_have_decl_optreset=yes
7170 1.7 tv else
7171 1.7 tv echo "$as_me: failed program was:" >&5
7172 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7173 1.61 christos
7174 1.7 tv ac_cv_have_decl_optreset=no
7175 1.7 tv fi
7176 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7177 1.7 tv fi
7178 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7179 1.7 tv echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
7180 1.7 tv if test $ac_cv_have_decl_optreset = yes; then
7181 1.7 tv
7182 1.61 christos cat >>confdefs.h <<_ACEOF
7183 1.7 tv #define HAVE_DECL_OPTRESET 1
7184 1.61 christos _ACEOF
7185 1.61 christos
7186 1.7 tv
7187 1.7 tv else
7188 1.61 christos cat >>confdefs.h <<_ACEOF
7189 1.7 tv #define HAVE_DECL_OPTRESET 0
7190 1.61 christos _ACEOF
7191 1.61 christos
7192 1.7 tv
7193 1.7 tv fi
7194 1.7 tv
7195 1.61 christos
7196 1.61 christos echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
7197 1.4 tv echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
7198 1.4 tv if test "${ac_cv_have_decl_sys_signame+set}" = set; then
7199 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
7200 1.4 tv else
7201 1.4 tv cat >conftest.$ac_ext <<_ACEOF
7202 1.61 christos /* confdefs.h. */
7203 1.61 christos _ACEOF
7204 1.61 christos cat confdefs.h >>conftest.$ac_ext
7205 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7206 1.61 christos /* end confdefs.h. */
7207 1.4 tv #include <signal.h>
7208 1.4 tv
7209 1.4 tv int
7210 1.4 tv main ()
7211 1.4 tv {
7212 1.4 tv #ifndef sys_signame
7213 1.4 tv char *p = (char *) sys_signame;
7214 1.4 tv #endif
7215 1.4 tv
7216 1.4 tv ;
7217 1.4 tv return 0;
7218 1.4 tv }
7219 1.4 tv _ACEOF
7220 1.4 tv rm -f conftest.$ac_objext
7221 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 1.61 christos (eval $ac_compile) 2>conftest.er1
7223 1.4 tv ac_status=$?
7224 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7225 1.61 christos rm -f conftest.er1
7226 1.61 christos cat conftest.err >&5
7227 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 1.4 tv (exit $ac_status); } &&
7229 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7230 1.61 christos || test ! -s conftest.err'
7231 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 1.53 dogcow (eval $ac_try) 2>&5
7233 1.53 dogcow ac_status=$?
7234 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 1.61 christos (exit $ac_status); }; } &&
7236 1.61 christos { ac_try='test -s conftest.$ac_objext'
7237 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 1.61 christos (eval $ac_try) 2>&5
7239 1.61 christos ac_status=$?
7240 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 1.4 tv (exit $ac_status); }; }; then
7242 1.4 tv ac_cv_have_decl_sys_signame=yes
7243 1.4 tv else
7244 1.4 tv echo "$as_me: failed program was:" >&5
7245 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7246 1.61 christos
7247 1.4 tv ac_cv_have_decl_sys_signame=no
7248 1.4 tv fi
7249 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250 1.4 tv fi
7251 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
7252 1.4 tv echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
7253 1.4 tv if test $ac_cv_have_decl_sys_signame = yes; then
7254 1.4 tv
7255 1.61 christos cat >>confdefs.h <<_ACEOF
7256 1.4 tv #define HAVE_DECL_SYS_SIGNAME 1
7257 1.61 christos _ACEOF
7258 1.61 christos
7259 1.4 tv
7260 1.4 tv else
7261 1.61 christos cat >>confdefs.h <<_ACEOF
7262 1.4 tv #define HAVE_DECL_SYS_SIGNAME 0
7263 1.61 christos _ACEOF
7264 1.61 christos
7265 1.4 tv
7266 1.4 tv fi
7267 1.4 tv
7268 1.61 christos
7269 1.61 christos
7270 1.4 tv # Library functions (where a .h check isn't enough).
7271 1.19 bjh21 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7272 1.19 bjh21 # for constant arguments. Useless!
7273 1.61 christos echo "$as_me:$LINENO: checking for working alloca.h" >&5
7274 1.19 bjh21 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7275 1.19 bjh21 if test "${ac_cv_working_alloca_h+set}" = set; then
7276 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 1.19 bjh21 else
7278 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
7279 1.61 christos /* confdefs.h. */
7280 1.61 christos _ACEOF
7281 1.61 christos cat confdefs.h >>conftest.$ac_ext
7282 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7283 1.61 christos /* end confdefs.h. */
7284 1.19 bjh21 #include <alloca.h>
7285 1.19 bjh21 int
7286 1.19 bjh21 main ()
7287 1.19 bjh21 {
7288 1.19 bjh21 char *p = (char *) alloca (2 * sizeof (int));
7289 1.19 bjh21 ;
7290 1.19 bjh21 return 0;
7291 1.19 bjh21 }
7292 1.19 bjh21 _ACEOF
7293 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext
7294 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7295 1.61 christos (eval $ac_link) 2>conftest.er1
7296 1.19 bjh21 ac_status=$?
7297 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7298 1.61 christos rm -f conftest.er1
7299 1.61 christos cat conftest.err >&5
7300 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 1.19 bjh21 (exit $ac_status); } &&
7302 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7303 1.61 christos || test ! -s conftest.err'
7304 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 1.61 christos (eval $ac_try) 2>&5
7306 1.61 christos ac_status=$?
7307 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 1.61 christos (exit $ac_status); }; } &&
7309 1.61 christos { ac_try='test -s conftest$ac_exeext'
7310 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 1.50 jmc (eval $ac_try) 2>&5
7312 1.50 jmc ac_status=$?
7313 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 1.19 bjh21 (exit $ac_status); }; }; then
7315 1.19 bjh21 ac_cv_working_alloca_h=yes
7316 1.19 bjh21 else
7317 1.19 bjh21 echo "$as_me: failed program was:" >&5
7318 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7319 1.61 christos
7320 1.19 bjh21 ac_cv_working_alloca_h=no
7321 1.19 bjh21 fi
7322 1.61 christos rm -f conftest.err conftest.$ac_objext \
7323 1.61 christos conftest$ac_exeext conftest.$ac_ext
7324 1.19 bjh21 fi
7325 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7326 1.19 bjh21 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7327 1.19 bjh21 if test $ac_cv_working_alloca_h = yes; then
7328 1.19 bjh21
7329 1.61 christos cat >>confdefs.h <<\_ACEOF
7330 1.19 bjh21 #define HAVE_ALLOCA_H 1
7331 1.61 christos _ACEOF
7332 1.19 bjh21
7333 1.19 bjh21 fi
7334 1.19 bjh21
7335 1.61 christos echo "$as_me:$LINENO: checking for alloca" >&5
7336 1.19 bjh21 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7337 1.19 bjh21 if test "${ac_cv_func_alloca_works+set}" = set; then
7338 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 1.19 bjh21 else
7340 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
7341 1.61 christos /* confdefs.h. */
7342 1.61 christos _ACEOF
7343 1.61 christos cat confdefs.h >>conftest.$ac_ext
7344 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7345 1.61 christos /* end confdefs.h. */
7346 1.19 bjh21 #ifdef __GNUC__
7347 1.19 bjh21 # define alloca __builtin_alloca
7348 1.19 bjh21 #else
7349 1.19 bjh21 # ifdef _MSC_VER
7350 1.19 bjh21 # include <malloc.h>
7351 1.19 bjh21 # define alloca _alloca
7352 1.19 bjh21 # else
7353 1.19 bjh21 # if HAVE_ALLOCA_H
7354 1.19 bjh21 # include <alloca.h>
7355 1.19 bjh21 # else
7356 1.19 bjh21 # ifdef _AIX
7357 1.19 bjh21 #pragma alloca
7358 1.19 bjh21 # else
7359 1.19 bjh21 # ifndef alloca /* predefined by HP cc +Olibcalls */
7360 1.19 bjh21 char *alloca ();
7361 1.19 bjh21 # endif
7362 1.19 bjh21 # endif
7363 1.19 bjh21 # endif
7364 1.19 bjh21 # endif
7365 1.19 bjh21 #endif
7366 1.19 bjh21
7367 1.19 bjh21 int
7368 1.19 bjh21 main ()
7369 1.19 bjh21 {
7370 1.19 bjh21 char *p = (char *) alloca (1);
7371 1.19 bjh21 ;
7372 1.19 bjh21 return 0;
7373 1.19 bjh21 }
7374 1.19 bjh21 _ACEOF
7375 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext
7376 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 1.61 christos (eval $ac_link) 2>conftest.er1
7378 1.19 bjh21 ac_status=$?
7379 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7380 1.61 christos rm -f conftest.er1
7381 1.61 christos cat conftest.err >&5
7382 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 1.19 bjh21 (exit $ac_status); } &&
7384 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7385 1.61 christos || test ! -s conftest.err'
7386 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 1.61 christos (eval $ac_try) 2>&5
7388 1.61 christos ac_status=$?
7389 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 1.61 christos (exit $ac_status); }; } &&
7391 1.61 christos { ac_try='test -s conftest$ac_exeext'
7392 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 1.50 jmc (eval $ac_try) 2>&5
7394 1.50 jmc ac_status=$?
7395 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 1.19 bjh21 (exit $ac_status); }; }; then
7397 1.19 bjh21 ac_cv_func_alloca_works=yes
7398 1.19 bjh21 else
7399 1.19 bjh21 echo "$as_me: failed program was:" >&5
7400 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7401 1.61 christos
7402 1.19 bjh21 ac_cv_func_alloca_works=no
7403 1.19 bjh21 fi
7404 1.61 christos rm -f conftest.err conftest.$ac_objext \
7405 1.61 christos conftest$ac_exeext conftest.$ac_ext
7406 1.19 bjh21 fi
7407 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7408 1.19 bjh21 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7409 1.19 bjh21
7410 1.19 bjh21 if test $ac_cv_func_alloca_works = yes; then
7411 1.19 bjh21
7412 1.61 christos cat >>confdefs.h <<\_ACEOF
7413 1.19 bjh21 #define HAVE_ALLOCA 1
7414 1.61 christos _ACEOF
7415 1.19 bjh21
7416 1.19 bjh21 else
7417 1.19 bjh21 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7418 1.19 bjh21 # that cause trouble. Some versions do not even contain alloca or
7419 1.19 bjh21 # contain a buggy version. If you still want to use their alloca,
7420 1.19 bjh21 # use ar to extract alloca.o from them instead of compiling alloca.c.
7421 1.19 bjh21
7422 1.19 bjh21 ALLOCA=alloca.$ac_objext
7423 1.19 bjh21
7424 1.61 christos cat >>confdefs.h <<\_ACEOF
7425 1.19 bjh21 #define C_ALLOCA 1
7426 1.61 christos _ACEOF
7427 1.39 fredb
7428 1.61 christos
7429 1.61 christos echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7430 1.19 bjh21 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7431 1.19 bjh21 if test "${ac_cv_os_cray+set}" = set; then
7432 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 1.19 bjh21 else
7434 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
7435 1.61 christos /* confdefs.h. */
7436 1.61 christos _ACEOF
7437 1.61 christos cat confdefs.h >>conftest.$ac_ext
7438 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7439 1.61 christos /* end confdefs.h. */
7440 1.19 bjh21 #if defined(CRAY) && ! defined(CRAY2)
7441 1.19 bjh21 webecray
7442 1.19 bjh21 #else
7443 1.19 bjh21 wenotbecray
7444 1.19 bjh21 #endif
7445 1.19 bjh21
7446 1.19 bjh21 _ACEOF
7447 1.19 bjh21 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7448 1.61 christos $EGREP "webecray" >/dev/null 2>&1; then
7449 1.19 bjh21 ac_cv_os_cray=yes
7450 1.19 bjh21 else
7451 1.19 bjh21 ac_cv_os_cray=no
7452 1.19 bjh21 fi
7453 1.19 bjh21 rm -f conftest*
7454 1.19 bjh21
7455 1.19 bjh21 fi
7456 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7457 1.19 bjh21 echo "${ECHO_T}$ac_cv_os_cray" >&6
7458 1.19 bjh21 if test $ac_cv_os_cray = yes; then
7459 1.19 bjh21 for ac_func in _getb67 GETB67 getb67; do
7460 1.19 bjh21 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7461 1.61 christos echo "$as_me:$LINENO: checking for $ac_func" >&5
7462 1.19 bjh21 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7463 1.19 bjh21 if eval "test \"\${$as_ac_var+set}\" = set"; then
7464 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 1.19 bjh21 else
7466 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
7467 1.61 christos /* confdefs.h. */
7468 1.61 christos _ACEOF
7469 1.61 christos cat confdefs.h >>conftest.$ac_ext
7470 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7471 1.61 christos /* end confdefs.h. */
7472 1.61 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7473 1.61 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
7474 1.61 christos #define $ac_func innocuous_$ac_func
7475 1.61 christos
7476 1.19 bjh21 /* System header to define __stub macros and hopefully few prototypes,
7477 1.61 christos which can conflict with char $ac_func (); below.
7478 1.61 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7479 1.61 christos <limits.h> exists even on freestanding compilers. */
7480 1.61 christos
7481 1.61 christos #ifdef __STDC__
7482 1.61 christos # include <limits.h>
7483 1.61 christos #else
7484 1.61 christos # include <assert.h>
7485 1.61 christos #endif
7486 1.61 christos
7487 1.61 christos #undef $ac_func
7488 1.61 christos
7489 1.19 bjh21 /* Override any gcc2 internal prototype to avoid an error. */
7490 1.19 bjh21 #ifdef __cplusplus
7491 1.19 bjh21 extern "C"
7492 1.61 christos {
7493 1.19 bjh21 #endif
7494 1.19 bjh21 /* We use char because int might match the return type of a gcc2
7495 1.19 bjh21 builtin and then its argument prototype would still apply. */
7496 1.19 bjh21 char $ac_func ();
7497 1.19 bjh21 /* The GNU C library defines this for functions which it implements
7498 1.19 bjh21 to always fail with ENOSYS. Some functions are actually named
7499 1.19 bjh21 something starting with __ and the normal name is an alias. */
7500 1.19 bjh21 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7501 1.19 bjh21 choke me
7502 1.19 bjh21 #else
7503 1.61 christos char (*f) () = $ac_func;
7504 1.61 christos #endif
7505 1.61 christos #ifdef __cplusplus
7506 1.61 christos }
7507 1.19 bjh21 #endif
7508 1.19 bjh21
7509 1.61 christos int
7510 1.61 christos main ()
7511 1.61 christos {
7512 1.61 christos return f != $ac_func;
7513 1.19 bjh21 ;
7514 1.19 bjh21 return 0;
7515 1.19 bjh21 }
7516 1.19 bjh21 _ACEOF
7517 1.61 christos rm -f conftest.$ac_objext conftest$ac_exeext
7518 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 1.61 christos (eval $ac_link) 2>conftest.er1
7520 1.61 christos ac_status=$?
7521 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7522 1.61 christos rm -f conftest.er1
7523 1.61 christos cat conftest.err >&5
7524 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 1.61 christos (exit $ac_status); } &&
7526 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7527 1.61 christos || test ! -s conftest.err'
7528 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 1.61 christos (eval $ac_try) 2>&5
7530 1.19 bjh21 ac_status=$?
7531 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 1.61 christos (exit $ac_status); }; } &&
7533 1.61 christos { ac_try='test -s conftest$ac_exeext'
7534 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 1.50 jmc (eval $ac_try) 2>&5
7536 1.50 jmc ac_status=$?
7537 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 1.19 bjh21 (exit $ac_status); }; }; then
7539 1.19 bjh21 eval "$as_ac_var=yes"
7540 1.19 bjh21 else
7541 1.19 bjh21 echo "$as_me: failed program was:" >&5
7542 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7543 1.61 christos
7544 1.19 bjh21 eval "$as_ac_var=no"
7545 1.19 bjh21 fi
7546 1.61 christos rm -f conftest.err conftest.$ac_objext \
7547 1.61 christos conftest$ac_exeext conftest.$ac_ext
7548 1.19 bjh21 fi
7549 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7550 1.19 bjh21 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7551 1.19 bjh21 if test `eval echo '${'$as_ac_var'}'` = yes; then
7552 1.19 bjh21
7553 1.61 christos cat >>confdefs.h <<_ACEOF
7554 1.19 bjh21 #define CRAY_STACKSEG_END $ac_func
7555 1.61 christos _ACEOF
7556 1.19 bjh21
7557 1.19 bjh21 break
7558 1.19 bjh21 fi
7559 1.19 bjh21
7560 1.19 bjh21 done
7561 1.19 bjh21 fi
7562 1.19 bjh21
7563 1.61 christos echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7564 1.19 bjh21 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7565 1.19 bjh21 if test "${ac_cv_c_stack_direction+set}" = set; then
7566 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 1.19 bjh21 else
7568 1.19 bjh21 if test "$cross_compiling" = yes; then
7569 1.19 bjh21 ac_cv_c_stack_direction=0
7570 1.19 bjh21 else
7571 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
7572 1.61 christos /* confdefs.h. */
7573 1.61 christos _ACEOF
7574 1.61 christos cat confdefs.h >>conftest.$ac_ext
7575 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7576 1.61 christos /* end confdefs.h. */
7577 1.19 bjh21 int
7578 1.19 bjh21 find_stack_direction ()
7579 1.19 bjh21 {
7580 1.19 bjh21 static char *addr = 0;
7581 1.19 bjh21 auto char dummy;
7582 1.19 bjh21 if (addr == 0)
7583 1.19 bjh21 {
7584 1.19 bjh21 addr = &dummy;
7585 1.19 bjh21 return find_stack_direction ();
7586 1.19 bjh21 }
7587 1.19 bjh21 else
7588 1.19 bjh21 return (&dummy > addr) ? 1 : -1;
7589 1.19 bjh21 }
7590 1.19 bjh21
7591 1.43 dbj int
7592 1.43 dbj main ()
7593 1.43 dbj {
7594 1.43 dbj exit (find_stack_direction () < 0);
7595 1.43 dbj }
7596 1.43 dbj _ACEOF
7597 1.43 dbj rm -f conftest$ac_exeext
7598 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7599 1.43 dbj (eval $ac_link) 2>&5
7600 1.43 dbj ac_status=$?
7601 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 1.43 dbj (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7603 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 1.43 dbj (eval $ac_try) 2>&5
7605 1.43 dbj ac_status=$?
7606 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 1.43 dbj (exit $ac_status); }; }; then
7608 1.43 dbj ac_cv_c_stack_direction=1
7609 1.43 dbj else
7610 1.43 dbj echo "$as_me: program exited with status $ac_status" >&5
7611 1.43 dbj echo "$as_me: failed program was:" >&5
7612 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7613 1.61 christos
7614 1.61 christos ( exit $ac_status )
7615 1.43 dbj ac_cv_c_stack_direction=-1
7616 1.43 dbj fi
7617 1.61 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7618 1.43 dbj fi
7619 1.43 dbj fi
7620 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7621 1.43 dbj echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7622 1.39 fredb
7623 1.61 christos cat >>confdefs.h <<_ACEOF
7624 1.43 dbj #define STACK_DIRECTION $ac_cv_c_stack_direction
7625 1.61 christos _ACEOF
7626 1.61 christos
7627 1.39 fredb
7628 1.43 dbj fi
7629 1.40 atatat
7630 1.61 christos
7631 1.61 christos
7632 1.61 christos
7633 1.61 christos
7634 1.61 christos
7635 1.61 christos
7636 1.61 christos
7637 1.61 christos
7638 1.61 christos
7639 1.61 christos
7640 1.61 christos
7641 1.61 christos
7642 1.61 christos
7643 1.61 christos
7644 1.61 christos
7645 1.61 christos
7646 1.61 christos
7647 1.61 christos
7648 1.61 christos
7649 1.61 christos
7650 1.61 christos
7651 1.61 christos
7652 1.61 christos
7653 1.61 christos
7654 1.61 christos
7655 1.61 christos
7656 1.61 christos
7657 1.61 christos
7658 1.61 christos
7659 1.61 christos
7660 1.61 christos
7661 1.61 christos
7662 1.61 christos
7663 1.61 christos
7664 1.61 christos
7665 1.61 christos
7666 1.61 christos
7667 1.61 christos
7668 1.61 christos
7669 1.61 christos
7670 1.61 christos
7671 1.61 christos
7672 1.61 christos
7673 1.61 christos
7674 1.61 christos
7675 1.62 nakayama
7676 1.40 atatat for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
7677 1.61 christos esetfunc fgetln flock fparseln futimes getopt getopt_long \
7678 1.61 christos group_from_gid \
7679 1.49 jmc heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
7680 1.49 jmc mkdtemp poll pread putc_unlocked pwcache_userdb pwrite random setenv \
7681 1.60 apb setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \
7682 1.62 nakayama strndup strsep strsuftoll strtoll \
7683 1.23 thorpej user_from_uid vasprintf vasnprintf vsnprintf
7684 1.1 tv do
7685 1.1 tv as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7686 1.61 christos echo "$as_me:$LINENO: checking for $ac_func" >&5
7687 1.45 jmc echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7688 1.45 jmc if eval "test \"\${$as_ac_var+set}\" = set"; then
7689 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
7690 1.45 jmc else
7691 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
7692 1.61 christos /* confdefs.h. */
7693 1.61 christos _ACEOF
7694 1.61 christos cat confdefs.h >>conftest.$ac_ext
7695 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7696 1.61 christos /* end confdefs.h. */
7697 1.61 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7698 1.61 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
7699 1.61 christos #define $ac_func innocuous_$ac_func
7700 1.61 christos
7701 1.45 jmc /* System header to define __stub macros and hopefully few prototypes,
7702 1.61 christos which can conflict with char $ac_func (); below.
7703 1.61 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7704 1.61 christos <limits.h> exists even on freestanding compilers. */
7705 1.61 christos
7706 1.61 christos #ifdef __STDC__
7707 1.61 christos # include <limits.h>
7708 1.61 christos #else
7709 1.61 christos # include <assert.h>
7710 1.61 christos #endif
7711 1.61 christos
7712 1.61 christos #undef $ac_func
7713 1.61 christos
7714 1.45 jmc /* Override any gcc2 internal prototype to avoid an error. */
7715 1.45 jmc #ifdef __cplusplus
7716 1.45 jmc extern "C"
7717 1.61 christos {
7718 1.45 jmc #endif
7719 1.45 jmc /* We use char because int might match the return type of a gcc2
7720 1.45 jmc builtin and then its argument prototype would still apply. */
7721 1.45 jmc char $ac_func ();
7722 1.45 jmc /* The GNU C library defines this for functions which it implements
7723 1.45 jmc to always fail with ENOSYS. Some functions are actually named
7724 1.45 jmc something starting with __ and the normal name is an alias. */
7725 1.45 jmc #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7726 1.45 jmc choke me
7727 1.45 jmc #else
7728 1.61 christos char (*f) () = $ac_func;
7729 1.61 christos #endif
7730 1.61 christos #ifdef __cplusplus
7731 1.61 christos }
7732 1.45 jmc #endif
7733 1.45 jmc
7734 1.61 christos int
7735 1.61 christos main ()
7736 1.61 christos {
7737 1.61 christos return f != $ac_func;
7738 1.45 jmc ;
7739 1.45 jmc return 0;
7740 1.45 jmc }
7741 1.45 jmc _ACEOF
7742 1.45 jmc rm -f conftest.$ac_objext conftest$ac_exeext
7743 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 1.61 christos (eval $ac_link) 2>conftest.er1
7745 1.45 jmc ac_status=$?
7746 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7747 1.61 christos rm -f conftest.er1
7748 1.61 christos cat conftest.err >&5
7749 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 1.45 jmc (exit $ac_status); } &&
7751 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7752 1.61 christos || test ! -s conftest.err'
7753 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 1.61 christos (eval $ac_try) 2>&5
7755 1.61 christos ac_status=$?
7756 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 1.61 christos (exit $ac_status); }; } &&
7758 1.61 christos { ac_try='test -s conftest$ac_exeext'
7759 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 1.50 jmc (eval $ac_try) 2>&5
7761 1.50 jmc ac_status=$?
7762 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 1.45 jmc (exit $ac_status); }; }; then
7764 1.45 jmc eval "$as_ac_var=yes"
7765 1.45 jmc else
7766 1.45 jmc echo "$as_me: failed program was:" >&5
7767 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7768 1.61 christos
7769 1.45 jmc eval "$as_ac_var=no"
7770 1.45 jmc fi
7771 1.61 christos rm -f conftest.err conftest.$ac_objext \
7772 1.61 christos conftest$ac_exeext conftest.$ac_ext
7773 1.45 jmc fi
7774 1.61 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7775 1.45 jmc echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7776 1.45 jmc if test `eval echo '${'$as_ac_var'}'` = yes; then
7777 1.61 christos cat >>confdefs.h <<_ACEOF
7778 1.45 jmc #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7779 1.61 christos _ACEOF
7780 1.45 jmc
7781 1.45 jmc fi
7782 1.45 jmc done
7783 1.45 jmc
7784 1.61 christos
7785 1.61 christos echo "$as_me:$LINENO: checking whether strsuftoll is declared" >&5
7786 1.55 wiz echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6
7787 1.55 wiz if test "${ac_cv_have_decl_strsuftoll+set}" = set; then
7788 1.55 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
7789 1.55 wiz else
7790 1.55 wiz cat >conftest.$ac_ext <<_ACEOF
7791 1.61 christos /* confdefs.h. */
7792 1.61 christos _ACEOF
7793 1.61 christos cat confdefs.h >>conftest.$ac_ext
7794 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7795 1.61 christos /* end confdefs.h. */
7796 1.55 wiz #include <stdlib.h>
7797 1.55 wiz
7798 1.55 wiz int
7799 1.55 wiz main ()
7800 1.55 wiz {
7801 1.55 wiz #ifndef strsuftoll
7802 1.55 wiz char *p = (char *) strsuftoll;
7803 1.55 wiz #endif
7804 1.55 wiz
7805 1.55 wiz ;
7806 1.55 wiz return 0;
7807 1.55 wiz }
7808 1.55 wiz _ACEOF
7809 1.55 wiz rm -f conftest.$ac_objext
7810 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7811 1.61 christos (eval $ac_compile) 2>conftest.er1
7812 1.55 wiz ac_status=$?
7813 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7814 1.61 christos rm -f conftest.er1
7815 1.61 christos cat conftest.err >&5
7816 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 1.55 wiz (exit $ac_status); } &&
7818 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7819 1.61 christos || test ! -s conftest.err'
7820 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 1.55 wiz (eval $ac_try) 2>&5
7822 1.55 wiz ac_status=$?
7823 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 1.61 christos (exit $ac_status); }; } &&
7825 1.61 christos { ac_try='test -s conftest.$ac_objext'
7826 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 1.61 christos (eval $ac_try) 2>&5
7828 1.61 christos ac_status=$?
7829 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 1.55 wiz (exit $ac_status); }; }; then
7831 1.55 wiz ac_cv_have_decl_strsuftoll=yes
7832 1.55 wiz else
7833 1.55 wiz echo "$as_me: failed program was:" >&5
7834 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7835 1.61 christos
7836 1.55 wiz ac_cv_have_decl_strsuftoll=no
7837 1.55 wiz fi
7838 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7839 1.55 wiz fi
7840 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsuftoll" >&5
7841 1.55 wiz echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6
7842 1.55 wiz if test $ac_cv_have_decl_strsuftoll = yes; then
7843 1.55 wiz
7844 1.61 christos cat >>confdefs.h <<_ACEOF
7845 1.55 wiz #define HAVE_DECL_STRSUFTOLL 1
7846 1.61 christos _ACEOF
7847 1.61 christos
7848 1.55 wiz
7849 1.55 wiz else
7850 1.61 christos cat >>confdefs.h <<_ACEOF
7851 1.55 wiz #define HAVE_DECL_STRSUFTOLL 0
7852 1.61 christos _ACEOF
7853 1.61 christos
7854 1.55 wiz
7855 1.55 wiz fi
7856 1.55 wiz
7857 1.61 christos
7858 1.61 christos
7859 1.61 christos echo "$as_me:$LINENO: checking whether htobe16 is declared" >&5
7860 1.53 dogcow echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6
7861 1.53 dogcow if test "${ac_cv_have_decl_htobe16+set}" = set; then
7862 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
7863 1.45 jmc else
7864 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
7865 1.61 christos /* confdefs.h. */
7866 1.61 christos _ACEOF
7867 1.61 christos cat confdefs.h >>conftest.$ac_ext
7868 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7869 1.61 christos /* end confdefs.h. */
7870 1.53 dogcow #include <sys/types.h>
7871 1.53 dogcow
7872 1.52 dbj int
7873 1.52 dbj main ()
7874 1.52 dbj {
7875 1.53 dogcow #ifndef htobe16
7876 1.53 dogcow char *p = (char *) htobe16;
7877 1.48 jmc #endif
7878 1.45 jmc
7879 1.48 jmc ;
7880 1.48 jmc return 0;
7881 1.48 jmc }
7882 1.48 jmc _ACEOF
7883 1.53 dogcow rm -f conftest.$ac_objext
7884 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7885 1.61 christos (eval $ac_compile) 2>conftest.er1
7886 1.48 jmc ac_status=$?
7887 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7888 1.61 christos rm -f conftest.er1
7889 1.61 christos cat conftest.err >&5
7890 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 1.48 jmc (exit $ac_status); } &&
7892 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7893 1.61 christos || test ! -s conftest.err'
7894 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 1.61 christos (eval $ac_try) 2>&5
7896 1.61 christos ac_status=$?
7897 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 1.61 christos (exit $ac_status); }; } &&
7899 1.61 christos { ac_try='test -s conftest.$ac_objext'
7900 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 1.48 jmc (eval $ac_try) 2>&5
7902 1.48 jmc ac_status=$?
7903 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 1.48 jmc (exit $ac_status); }; }; then
7905 1.53 dogcow ac_cv_have_decl_htobe16=yes
7906 1.48 jmc else
7907 1.48 jmc echo "$as_me: failed program was:" >&5
7908 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7909 1.61 christos
7910 1.53 dogcow ac_cv_have_decl_htobe16=no
7911 1.48 jmc fi
7912 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7913 1.48 jmc fi
7914 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe16" >&5
7915 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6
7916 1.53 dogcow if test $ac_cv_have_decl_htobe16 = yes; then
7917 1.53 dogcow
7918 1.61 christos cat >>confdefs.h <<_ACEOF
7919 1.53 dogcow #define HAVE_DECL_HTOBE16 1
7920 1.61 christos _ACEOF
7921 1.61 christos
7922 1.53 dogcow
7923 1.53 dogcow else
7924 1.61 christos cat >>confdefs.h <<_ACEOF
7925 1.53 dogcow #define HAVE_DECL_HTOBE16 0
7926 1.61 christos _ACEOF
7927 1.61 christos
7928 1.48 jmc
7929 1.48 jmc fi
7930 1.61 christos echo "$as_me:$LINENO: checking whether htobe32 is declared" >&5
7931 1.53 dogcow echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6
7932 1.53 dogcow if test "${ac_cv_have_decl_htobe32+set}" = set; then
7933 1.48 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
7934 1.48 jmc else
7935 1.48 jmc cat >conftest.$ac_ext <<_ACEOF
7936 1.61 christos /* confdefs.h. */
7937 1.61 christos _ACEOF
7938 1.61 christos cat confdefs.h >>conftest.$ac_ext
7939 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
7940 1.61 christos /* end confdefs.h. */
7941 1.53 dogcow #include <sys/types.h>
7942 1.53 dogcow
7943 1.53 dogcow int
7944 1.53 dogcow main ()
7945 1.53 dogcow {
7946 1.53 dogcow #ifndef htobe32
7947 1.53 dogcow char *p = (char *) htobe32;
7948 1.53 dogcow #endif
7949 1.53 dogcow
7950 1.53 dogcow ;
7951 1.53 dogcow return 0;
7952 1.53 dogcow }
7953 1.53 dogcow _ACEOF
7954 1.53 dogcow rm -f conftest.$ac_objext
7955 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956 1.61 christos (eval $ac_compile) 2>conftest.er1
7957 1.53 dogcow ac_status=$?
7958 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
7959 1.61 christos rm -f conftest.er1
7960 1.61 christos cat conftest.err >&5
7961 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 1.53 dogcow (exit $ac_status); } &&
7963 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
7964 1.61 christos || test ! -s conftest.err'
7965 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 1.53 dogcow (eval $ac_try) 2>&5
7967 1.53 dogcow ac_status=$?
7968 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 1.61 christos (exit $ac_status); }; } &&
7970 1.61 christos { ac_try='test -s conftest.$ac_objext'
7971 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 1.61 christos (eval $ac_try) 2>&5
7973 1.61 christos ac_status=$?
7974 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 1.53 dogcow (exit $ac_status); }; }; then
7976 1.53 dogcow ac_cv_have_decl_htobe32=yes
7977 1.53 dogcow else
7978 1.53 dogcow echo "$as_me: failed program was:" >&5
7979 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
7980 1.61 christos
7981 1.53 dogcow ac_cv_have_decl_htobe32=no
7982 1.53 dogcow fi
7983 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7984 1.53 dogcow fi
7985 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe32" >&5
7986 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6
7987 1.53 dogcow if test $ac_cv_have_decl_htobe32 = yes; then
7988 1.53 dogcow
7989 1.61 christos cat >>confdefs.h <<_ACEOF
7990 1.53 dogcow #define HAVE_DECL_HTOBE32 1
7991 1.61 christos _ACEOF
7992 1.61 christos
7993 1.53 dogcow
7994 1.53 dogcow else
7995 1.61 christos cat >>confdefs.h <<_ACEOF
7996 1.53 dogcow #define HAVE_DECL_HTOBE32 0
7997 1.61 christos _ACEOF
7998 1.61 christos
7999 1.53 dogcow
8000 1.53 dogcow fi
8001 1.61 christos echo "$as_me:$LINENO: checking whether htobe64 is declared" >&5
8002 1.53 dogcow echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6
8003 1.53 dogcow if test "${ac_cv_have_decl_htobe64+set}" = set; then
8004 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8005 1.53 dogcow else
8006 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8007 1.61 christos /* confdefs.h. */
8008 1.61 christos _ACEOF
8009 1.61 christos cat confdefs.h >>conftest.$ac_ext
8010 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8011 1.61 christos /* end confdefs.h. */
8012 1.53 dogcow #include <sys/types.h>
8013 1.53 dogcow
8014 1.53 dogcow int
8015 1.53 dogcow main ()
8016 1.53 dogcow {
8017 1.53 dogcow #ifndef htobe64
8018 1.53 dogcow char *p = (char *) htobe64;
8019 1.53 dogcow #endif
8020 1.53 dogcow
8021 1.53 dogcow ;
8022 1.53 dogcow return 0;
8023 1.53 dogcow }
8024 1.53 dogcow _ACEOF
8025 1.53 dogcow rm -f conftest.$ac_objext
8026 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027 1.61 christos (eval $ac_compile) 2>conftest.er1
8028 1.53 dogcow ac_status=$?
8029 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8030 1.61 christos rm -f conftest.er1
8031 1.61 christos cat conftest.err >&5
8032 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 1.53 dogcow (exit $ac_status); } &&
8034 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8035 1.61 christos || test ! -s conftest.err'
8036 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 1.61 christos (eval $ac_try) 2>&5
8038 1.61 christos ac_status=$?
8039 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 1.61 christos (exit $ac_status); }; } &&
8041 1.61 christos { ac_try='test -s conftest.$ac_objext'
8042 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 1.53 dogcow (eval $ac_try) 2>&5
8044 1.53 dogcow ac_status=$?
8045 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 1.53 dogcow (exit $ac_status); }; }; then
8047 1.53 dogcow ac_cv_have_decl_htobe64=yes
8048 1.53 dogcow else
8049 1.53 dogcow echo "$as_me: failed program was:" >&5
8050 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8051 1.61 christos
8052 1.53 dogcow ac_cv_have_decl_htobe64=no
8053 1.53 dogcow fi
8054 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8055 1.53 dogcow fi
8056 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe64" >&5
8057 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6
8058 1.53 dogcow if test $ac_cv_have_decl_htobe64 = yes; then
8059 1.53 dogcow
8060 1.61 christos cat >>confdefs.h <<_ACEOF
8061 1.53 dogcow #define HAVE_DECL_HTOBE64 1
8062 1.61 christos _ACEOF
8063 1.61 christos
8064 1.53 dogcow
8065 1.53 dogcow else
8066 1.61 christos cat >>confdefs.h <<_ACEOF
8067 1.53 dogcow #define HAVE_DECL_HTOBE64 0
8068 1.61 christos _ACEOF
8069 1.61 christos
8070 1.53 dogcow
8071 1.53 dogcow fi
8072 1.61 christos echo "$as_me:$LINENO: checking whether htole16 is declared" >&5
8073 1.53 dogcow echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6
8074 1.53 dogcow if test "${ac_cv_have_decl_htole16+set}" = set; then
8075 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8076 1.53 dogcow else
8077 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8078 1.61 christos /* confdefs.h. */
8079 1.61 christos _ACEOF
8080 1.61 christos cat confdefs.h >>conftest.$ac_ext
8081 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8082 1.61 christos /* end confdefs.h. */
8083 1.53 dogcow #include <sys/types.h>
8084 1.53 dogcow
8085 1.53 dogcow int
8086 1.53 dogcow main ()
8087 1.53 dogcow {
8088 1.53 dogcow #ifndef htole16
8089 1.53 dogcow char *p = (char *) htole16;
8090 1.53 dogcow #endif
8091 1.53 dogcow
8092 1.53 dogcow ;
8093 1.53 dogcow return 0;
8094 1.53 dogcow }
8095 1.53 dogcow _ACEOF
8096 1.53 dogcow rm -f conftest.$ac_objext
8097 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098 1.61 christos (eval $ac_compile) 2>conftest.er1
8099 1.53 dogcow ac_status=$?
8100 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8101 1.61 christos rm -f conftest.er1
8102 1.61 christos cat conftest.err >&5
8103 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 1.53 dogcow (exit $ac_status); } &&
8105 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8106 1.61 christos || test ! -s conftest.err'
8107 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 1.61 christos (eval $ac_try) 2>&5
8109 1.61 christos ac_status=$?
8110 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 1.61 christos (exit $ac_status); }; } &&
8112 1.61 christos { ac_try='test -s conftest.$ac_objext'
8113 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 1.53 dogcow (eval $ac_try) 2>&5
8115 1.53 dogcow ac_status=$?
8116 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 1.53 dogcow (exit $ac_status); }; }; then
8118 1.53 dogcow ac_cv_have_decl_htole16=yes
8119 1.53 dogcow else
8120 1.53 dogcow echo "$as_me: failed program was:" >&5
8121 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8122 1.61 christos
8123 1.53 dogcow ac_cv_have_decl_htole16=no
8124 1.53 dogcow fi
8125 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8126 1.53 dogcow fi
8127 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole16" >&5
8128 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6
8129 1.53 dogcow if test $ac_cv_have_decl_htole16 = yes; then
8130 1.53 dogcow
8131 1.61 christos cat >>confdefs.h <<_ACEOF
8132 1.53 dogcow #define HAVE_DECL_HTOLE16 1
8133 1.61 christos _ACEOF
8134 1.61 christos
8135 1.53 dogcow
8136 1.53 dogcow else
8137 1.61 christos cat >>confdefs.h <<_ACEOF
8138 1.53 dogcow #define HAVE_DECL_HTOLE16 0
8139 1.61 christos _ACEOF
8140 1.61 christos
8141 1.53 dogcow
8142 1.53 dogcow fi
8143 1.61 christos echo "$as_me:$LINENO: checking whether htole32 is declared" >&5
8144 1.53 dogcow echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6
8145 1.53 dogcow if test "${ac_cv_have_decl_htole32+set}" = set; then
8146 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8147 1.53 dogcow else
8148 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8149 1.61 christos /* confdefs.h. */
8150 1.61 christos _ACEOF
8151 1.61 christos cat confdefs.h >>conftest.$ac_ext
8152 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8153 1.61 christos /* end confdefs.h. */
8154 1.53 dogcow #include <sys/types.h>
8155 1.53 dogcow
8156 1.53 dogcow int
8157 1.53 dogcow main ()
8158 1.53 dogcow {
8159 1.53 dogcow #ifndef htole32
8160 1.53 dogcow char *p = (char *) htole32;
8161 1.53 dogcow #endif
8162 1.53 dogcow
8163 1.53 dogcow ;
8164 1.53 dogcow return 0;
8165 1.53 dogcow }
8166 1.53 dogcow _ACEOF
8167 1.53 dogcow rm -f conftest.$ac_objext
8168 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8169 1.61 christos (eval $ac_compile) 2>conftest.er1
8170 1.53 dogcow ac_status=$?
8171 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8172 1.61 christos rm -f conftest.er1
8173 1.61 christos cat conftest.err >&5
8174 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 1.53 dogcow (exit $ac_status); } &&
8176 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8177 1.61 christos || test ! -s conftest.err'
8178 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 1.61 christos (eval $ac_try) 2>&5
8180 1.61 christos ac_status=$?
8181 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 1.61 christos (exit $ac_status); }; } &&
8183 1.61 christos { ac_try='test -s conftest.$ac_objext'
8184 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 1.53 dogcow (eval $ac_try) 2>&5
8186 1.53 dogcow ac_status=$?
8187 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 1.53 dogcow (exit $ac_status); }; }; then
8189 1.53 dogcow ac_cv_have_decl_htole32=yes
8190 1.53 dogcow else
8191 1.53 dogcow echo "$as_me: failed program was:" >&5
8192 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8193 1.61 christos
8194 1.53 dogcow ac_cv_have_decl_htole32=no
8195 1.53 dogcow fi
8196 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8197 1.53 dogcow fi
8198 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5
8199 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6
8200 1.53 dogcow if test $ac_cv_have_decl_htole32 = yes; then
8201 1.53 dogcow
8202 1.61 christos cat >>confdefs.h <<_ACEOF
8203 1.53 dogcow #define HAVE_DECL_HTOLE32 1
8204 1.61 christos _ACEOF
8205 1.61 christos
8206 1.53 dogcow
8207 1.53 dogcow else
8208 1.61 christos cat >>confdefs.h <<_ACEOF
8209 1.53 dogcow #define HAVE_DECL_HTOLE32 0
8210 1.61 christos _ACEOF
8211 1.61 christos
8212 1.53 dogcow
8213 1.53 dogcow fi
8214 1.61 christos echo "$as_me:$LINENO: checking whether htole64 is declared" >&5
8215 1.53 dogcow echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6
8216 1.53 dogcow if test "${ac_cv_have_decl_htole64+set}" = set; then
8217 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8218 1.53 dogcow else
8219 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8220 1.61 christos /* confdefs.h. */
8221 1.61 christos _ACEOF
8222 1.61 christos cat confdefs.h >>conftest.$ac_ext
8223 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8224 1.61 christos /* end confdefs.h. */
8225 1.53 dogcow #include <sys/types.h>
8226 1.53 dogcow
8227 1.53 dogcow int
8228 1.53 dogcow main ()
8229 1.53 dogcow {
8230 1.53 dogcow #ifndef htole64
8231 1.53 dogcow char *p = (char *) htole64;
8232 1.53 dogcow #endif
8233 1.53 dogcow
8234 1.53 dogcow ;
8235 1.53 dogcow return 0;
8236 1.53 dogcow }
8237 1.53 dogcow _ACEOF
8238 1.53 dogcow rm -f conftest.$ac_objext
8239 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240 1.61 christos (eval $ac_compile) 2>conftest.er1
8241 1.53 dogcow ac_status=$?
8242 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8243 1.61 christos rm -f conftest.er1
8244 1.61 christos cat conftest.err >&5
8245 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 1.53 dogcow (exit $ac_status); } &&
8247 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8248 1.61 christos || test ! -s conftest.err'
8249 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 1.53 dogcow (eval $ac_try) 2>&5
8251 1.53 dogcow ac_status=$?
8252 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 1.61 christos (exit $ac_status); }; } &&
8254 1.61 christos { ac_try='test -s conftest.$ac_objext'
8255 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 1.61 christos (eval $ac_try) 2>&5
8257 1.61 christos ac_status=$?
8258 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 1.53 dogcow (exit $ac_status); }; }; then
8260 1.53 dogcow ac_cv_have_decl_htole64=yes
8261 1.53 dogcow else
8262 1.53 dogcow echo "$as_me: failed program was:" >&5
8263 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8264 1.61 christos
8265 1.53 dogcow ac_cv_have_decl_htole64=no
8266 1.53 dogcow fi
8267 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8268 1.53 dogcow fi
8269 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole64" >&5
8270 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6
8271 1.53 dogcow if test $ac_cv_have_decl_htole64 = yes; then
8272 1.53 dogcow
8273 1.61 christos cat >>confdefs.h <<_ACEOF
8274 1.53 dogcow #define HAVE_DECL_HTOLE64 1
8275 1.61 christos _ACEOF
8276 1.61 christos
8277 1.53 dogcow
8278 1.53 dogcow else
8279 1.61 christos cat >>confdefs.h <<_ACEOF
8280 1.53 dogcow #define HAVE_DECL_HTOLE64 0
8281 1.61 christos _ACEOF
8282 1.61 christos
8283 1.53 dogcow
8284 1.53 dogcow fi
8285 1.61 christos echo "$as_me:$LINENO: checking whether be16toh is declared" >&5
8286 1.53 dogcow echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6
8287 1.53 dogcow if test "${ac_cv_have_decl_be16toh+set}" = set; then
8288 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8289 1.53 dogcow else
8290 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8291 1.61 christos /* confdefs.h. */
8292 1.61 christos _ACEOF
8293 1.61 christos cat confdefs.h >>conftest.$ac_ext
8294 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8295 1.61 christos /* end confdefs.h. */
8296 1.53 dogcow #include <sys/types.h>
8297 1.53 dogcow
8298 1.53 dogcow int
8299 1.53 dogcow main ()
8300 1.53 dogcow {
8301 1.53 dogcow #ifndef be16toh
8302 1.53 dogcow char *p = (char *) be16toh;
8303 1.53 dogcow #endif
8304 1.53 dogcow
8305 1.53 dogcow ;
8306 1.53 dogcow return 0;
8307 1.53 dogcow }
8308 1.53 dogcow _ACEOF
8309 1.53 dogcow rm -f conftest.$ac_objext
8310 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8311 1.61 christos (eval $ac_compile) 2>conftest.er1
8312 1.53 dogcow ac_status=$?
8313 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8314 1.61 christos rm -f conftest.er1
8315 1.61 christos cat conftest.err >&5
8316 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 1.53 dogcow (exit $ac_status); } &&
8318 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8319 1.61 christos || test ! -s conftest.err'
8320 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 1.61 christos (eval $ac_try) 2>&5
8322 1.61 christos ac_status=$?
8323 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 1.61 christos (exit $ac_status); }; } &&
8325 1.61 christos { ac_try='test -s conftest.$ac_objext'
8326 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 1.53 dogcow (eval $ac_try) 2>&5
8328 1.53 dogcow ac_status=$?
8329 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 1.53 dogcow (exit $ac_status); }; }; then
8331 1.53 dogcow ac_cv_have_decl_be16toh=yes
8332 1.53 dogcow else
8333 1.53 dogcow echo "$as_me: failed program was:" >&5
8334 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8335 1.61 christos
8336 1.53 dogcow ac_cv_have_decl_be16toh=no
8337 1.53 dogcow fi
8338 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8339 1.53 dogcow fi
8340 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16toh" >&5
8341 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6
8342 1.53 dogcow if test $ac_cv_have_decl_be16toh = yes; then
8343 1.53 dogcow
8344 1.61 christos cat >>confdefs.h <<_ACEOF
8345 1.53 dogcow #define HAVE_DECL_BE16TOH 1
8346 1.61 christos _ACEOF
8347 1.61 christos
8348 1.53 dogcow
8349 1.53 dogcow else
8350 1.61 christos cat >>confdefs.h <<_ACEOF
8351 1.53 dogcow #define HAVE_DECL_BE16TOH 0
8352 1.61 christos _ACEOF
8353 1.61 christos
8354 1.53 dogcow
8355 1.53 dogcow fi
8356 1.61 christos echo "$as_me:$LINENO: checking whether be32toh is declared" >&5
8357 1.53 dogcow echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6
8358 1.53 dogcow if test "${ac_cv_have_decl_be32toh+set}" = set; then
8359 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8360 1.53 dogcow else
8361 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8362 1.61 christos /* confdefs.h. */
8363 1.61 christos _ACEOF
8364 1.61 christos cat confdefs.h >>conftest.$ac_ext
8365 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8366 1.61 christos /* end confdefs.h. */
8367 1.53 dogcow #include <sys/types.h>
8368 1.53 dogcow
8369 1.53 dogcow int
8370 1.53 dogcow main ()
8371 1.53 dogcow {
8372 1.53 dogcow #ifndef be32toh
8373 1.53 dogcow char *p = (char *) be32toh;
8374 1.53 dogcow #endif
8375 1.53 dogcow
8376 1.53 dogcow ;
8377 1.53 dogcow return 0;
8378 1.53 dogcow }
8379 1.53 dogcow _ACEOF
8380 1.53 dogcow rm -f conftest.$ac_objext
8381 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8382 1.61 christos (eval $ac_compile) 2>conftest.er1
8383 1.53 dogcow ac_status=$?
8384 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8385 1.61 christos rm -f conftest.er1
8386 1.61 christos cat conftest.err >&5
8387 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 1.53 dogcow (exit $ac_status); } &&
8389 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8390 1.61 christos || test ! -s conftest.err'
8391 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 1.61 christos (eval $ac_try) 2>&5
8393 1.61 christos ac_status=$?
8394 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 1.61 christos (exit $ac_status); }; } &&
8396 1.61 christos { ac_try='test -s conftest.$ac_objext'
8397 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 1.53 dogcow (eval $ac_try) 2>&5
8399 1.53 dogcow ac_status=$?
8400 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 1.53 dogcow (exit $ac_status); }; }; then
8402 1.53 dogcow ac_cv_have_decl_be32toh=yes
8403 1.53 dogcow else
8404 1.53 dogcow echo "$as_me: failed program was:" >&5
8405 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8406 1.61 christos
8407 1.53 dogcow ac_cv_have_decl_be32toh=no
8408 1.53 dogcow fi
8409 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8410 1.53 dogcow fi
8411 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32toh" >&5
8412 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6
8413 1.53 dogcow if test $ac_cv_have_decl_be32toh = yes; then
8414 1.53 dogcow
8415 1.61 christos cat >>confdefs.h <<_ACEOF
8416 1.53 dogcow #define HAVE_DECL_BE32TOH 1
8417 1.61 christos _ACEOF
8418 1.61 christos
8419 1.53 dogcow
8420 1.53 dogcow else
8421 1.61 christos cat >>confdefs.h <<_ACEOF
8422 1.53 dogcow #define HAVE_DECL_BE32TOH 0
8423 1.61 christos _ACEOF
8424 1.61 christos
8425 1.53 dogcow
8426 1.53 dogcow fi
8427 1.61 christos echo "$as_me:$LINENO: checking whether be64toh is declared" >&5
8428 1.53 dogcow echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6
8429 1.53 dogcow if test "${ac_cv_have_decl_be64toh+set}" = set; then
8430 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8431 1.53 dogcow else
8432 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8433 1.61 christos /* confdefs.h. */
8434 1.61 christos _ACEOF
8435 1.61 christos cat confdefs.h >>conftest.$ac_ext
8436 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8437 1.61 christos /* end confdefs.h. */
8438 1.53 dogcow #include <sys/types.h>
8439 1.53 dogcow
8440 1.53 dogcow int
8441 1.53 dogcow main ()
8442 1.53 dogcow {
8443 1.53 dogcow #ifndef be64toh
8444 1.53 dogcow char *p = (char *) be64toh;
8445 1.53 dogcow #endif
8446 1.53 dogcow
8447 1.53 dogcow ;
8448 1.53 dogcow return 0;
8449 1.53 dogcow }
8450 1.53 dogcow _ACEOF
8451 1.53 dogcow rm -f conftest.$ac_objext
8452 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8453 1.61 christos (eval $ac_compile) 2>conftest.er1
8454 1.53 dogcow ac_status=$?
8455 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8456 1.61 christos rm -f conftest.er1
8457 1.61 christos cat conftest.err >&5
8458 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 1.53 dogcow (exit $ac_status); } &&
8460 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8461 1.61 christos || test ! -s conftest.err'
8462 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 1.61 christos (eval $ac_try) 2>&5
8464 1.61 christos ac_status=$?
8465 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 1.61 christos (exit $ac_status); }; } &&
8467 1.61 christos { ac_try='test -s conftest.$ac_objext'
8468 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 1.53 dogcow (eval $ac_try) 2>&5
8470 1.53 dogcow ac_status=$?
8471 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 1.53 dogcow (exit $ac_status); }; }; then
8473 1.53 dogcow ac_cv_have_decl_be64toh=yes
8474 1.53 dogcow else
8475 1.53 dogcow echo "$as_me: failed program was:" >&5
8476 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8477 1.61 christos
8478 1.53 dogcow ac_cv_have_decl_be64toh=no
8479 1.53 dogcow fi
8480 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481 1.53 dogcow fi
8482 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64toh" >&5
8483 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6
8484 1.53 dogcow if test $ac_cv_have_decl_be64toh = yes; then
8485 1.53 dogcow
8486 1.61 christos cat >>confdefs.h <<_ACEOF
8487 1.53 dogcow #define HAVE_DECL_BE64TOH 1
8488 1.61 christos _ACEOF
8489 1.61 christos
8490 1.53 dogcow
8491 1.53 dogcow else
8492 1.61 christos cat >>confdefs.h <<_ACEOF
8493 1.53 dogcow #define HAVE_DECL_BE64TOH 0
8494 1.61 christos _ACEOF
8495 1.61 christos
8496 1.53 dogcow
8497 1.53 dogcow fi
8498 1.61 christos echo "$as_me:$LINENO: checking whether le16toh is declared" >&5
8499 1.53 dogcow echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6
8500 1.53 dogcow if test "${ac_cv_have_decl_le16toh+set}" = set; then
8501 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8502 1.53 dogcow else
8503 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8504 1.61 christos /* confdefs.h. */
8505 1.61 christos _ACEOF
8506 1.61 christos cat confdefs.h >>conftest.$ac_ext
8507 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8508 1.61 christos /* end confdefs.h. */
8509 1.53 dogcow #include <sys/types.h>
8510 1.53 dogcow
8511 1.53 dogcow int
8512 1.53 dogcow main ()
8513 1.53 dogcow {
8514 1.53 dogcow #ifndef le16toh
8515 1.53 dogcow char *p = (char *) le16toh;
8516 1.53 dogcow #endif
8517 1.53 dogcow
8518 1.53 dogcow ;
8519 1.53 dogcow return 0;
8520 1.53 dogcow }
8521 1.53 dogcow _ACEOF
8522 1.53 dogcow rm -f conftest.$ac_objext
8523 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 1.61 christos (eval $ac_compile) 2>conftest.er1
8525 1.53 dogcow ac_status=$?
8526 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8527 1.61 christos rm -f conftest.er1
8528 1.61 christos cat conftest.err >&5
8529 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 1.53 dogcow (exit $ac_status); } &&
8531 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8532 1.61 christos || test ! -s conftest.err'
8533 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 1.53 dogcow (eval $ac_try) 2>&5
8535 1.53 dogcow ac_status=$?
8536 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 1.61 christos (exit $ac_status); }; } &&
8538 1.61 christos { ac_try='test -s conftest.$ac_objext'
8539 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 1.61 christos (eval $ac_try) 2>&5
8541 1.61 christos ac_status=$?
8542 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 1.53 dogcow (exit $ac_status); }; }; then
8544 1.53 dogcow ac_cv_have_decl_le16toh=yes
8545 1.53 dogcow else
8546 1.53 dogcow echo "$as_me: failed program was:" >&5
8547 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8548 1.61 christos
8549 1.53 dogcow ac_cv_have_decl_le16toh=no
8550 1.53 dogcow fi
8551 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8552 1.53 dogcow fi
8553 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16toh" >&5
8554 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6
8555 1.53 dogcow if test $ac_cv_have_decl_le16toh = yes; then
8556 1.53 dogcow
8557 1.61 christos cat >>confdefs.h <<_ACEOF
8558 1.53 dogcow #define HAVE_DECL_LE16TOH 1
8559 1.61 christos _ACEOF
8560 1.61 christos
8561 1.53 dogcow
8562 1.53 dogcow else
8563 1.61 christos cat >>confdefs.h <<_ACEOF
8564 1.53 dogcow #define HAVE_DECL_LE16TOH 0
8565 1.61 christos _ACEOF
8566 1.61 christos
8567 1.53 dogcow
8568 1.53 dogcow fi
8569 1.61 christos echo "$as_me:$LINENO: checking whether le32toh is declared" >&5
8570 1.53 dogcow echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6
8571 1.53 dogcow if test "${ac_cv_have_decl_le32toh+set}" = set; then
8572 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8573 1.53 dogcow else
8574 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8575 1.61 christos /* confdefs.h. */
8576 1.61 christos _ACEOF
8577 1.61 christos cat confdefs.h >>conftest.$ac_ext
8578 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8579 1.61 christos /* end confdefs.h. */
8580 1.53 dogcow #include <sys/types.h>
8581 1.53 dogcow
8582 1.53 dogcow int
8583 1.53 dogcow main ()
8584 1.53 dogcow {
8585 1.53 dogcow #ifndef le32toh
8586 1.53 dogcow char *p = (char *) le32toh;
8587 1.53 dogcow #endif
8588 1.53 dogcow
8589 1.53 dogcow ;
8590 1.53 dogcow return 0;
8591 1.53 dogcow }
8592 1.53 dogcow _ACEOF
8593 1.53 dogcow rm -f conftest.$ac_objext
8594 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8595 1.61 christos (eval $ac_compile) 2>conftest.er1
8596 1.53 dogcow ac_status=$?
8597 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8598 1.61 christos rm -f conftest.er1
8599 1.61 christos cat conftest.err >&5
8600 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 1.53 dogcow (exit $ac_status); } &&
8602 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8603 1.61 christos || test ! -s conftest.err'
8604 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 1.61 christos (eval $ac_try) 2>&5
8606 1.61 christos ac_status=$?
8607 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 1.61 christos (exit $ac_status); }; } &&
8609 1.61 christos { ac_try='test -s conftest.$ac_objext'
8610 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 1.53 dogcow (eval $ac_try) 2>&5
8612 1.53 dogcow ac_status=$?
8613 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 1.53 dogcow (exit $ac_status); }; }; then
8615 1.53 dogcow ac_cv_have_decl_le32toh=yes
8616 1.53 dogcow else
8617 1.53 dogcow echo "$as_me: failed program was:" >&5
8618 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8619 1.61 christos
8620 1.53 dogcow ac_cv_have_decl_le32toh=no
8621 1.53 dogcow fi
8622 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8623 1.53 dogcow fi
8624 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32toh" >&5
8625 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6
8626 1.53 dogcow if test $ac_cv_have_decl_le32toh = yes; then
8627 1.53 dogcow
8628 1.61 christos cat >>confdefs.h <<_ACEOF
8629 1.53 dogcow #define HAVE_DECL_LE32TOH 1
8630 1.61 christos _ACEOF
8631 1.61 christos
8632 1.53 dogcow
8633 1.53 dogcow else
8634 1.61 christos cat >>confdefs.h <<_ACEOF
8635 1.53 dogcow #define HAVE_DECL_LE32TOH 0
8636 1.61 christos _ACEOF
8637 1.61 christos
8638 1.53 dogcow
8639 1.53 dogcow fi
8640 1.61 christos echo "$as_me:$LINENO: checking whether le64toh is declared" >&5
8641 1.53 dogcow echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6
8642 1.53 dogcow if test "${ac_cv_have_decl_le64toh+set}" = set; then
8643 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8644 1.53 dogcow else
8645 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8646 1.61 christos /* confdefs.h. */
8647 1.61 christos _ACEOF
8648 1.61 christos cat confdefs.h >>conftest.$ac_ext
8649 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8650 1.61 christos /* end confdefs.h. */
8651 1.53 dogcow #include <sys/types.h>
8652 1.53 dogcow
8653 1.53 dogcow int
8654 1.53 dogcow main ()
8655 1.53 dogcow {
8656 1.53 dogcow #ifndef le64toh
8657 1.53 dogcow char *p = (char *) le64toh;
8658 1.53 dogcow #endif
8659 1.53 dogcow
8660 1.53 dogcow ;
8661 1.53 dogcow return 0;
8662 1.53 dogcow }
8663 1.53 dogcow _ACEOF
8664 1.53 dogcow rm -f conftest.$ac_objext
8665 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 1.61 christos (eval $ac_compile) 2>conftest.er1
8667 1.53 dogcow ac_status=$?
8668 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8669 1.61 christos rm -f conftest.er1
8670 1.61 christos cat conftest.err >&5
8671 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 1.53 dogcow (exit $ac_status); } &&
8673 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8674 1.61 christos || test ! -s conftest.err'
8675 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 1.61 christos (eval $ac_try) 2>&5
8677 1.61 christos ac_status=$?
8678 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 1.61 christos (exit $ac_status); }; } &&
8680 1.61 christos { ac_try='test -s conftest.$ac_objext'
8681 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 1.53 dogcow (eval $ac_try) 2>&5
8683 1.53 dogcow ac_status=$?
8684 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 1.53 dogcow (exit $ac_status); }; }; then
8686 1.53 dogcow ac_cv_have_decl_le64toh=yes
8687 1.53 dogcow else
8688 1.53 dogcow echo "$as_me: failed program was:" >&5
8689 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8690 1.61 christos
8691 1.53 dogcow ac_cv_have_decl_le64toh=no
8692 1.53 dogcow fi
8693 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8694 1.53 dogcow fi
8695 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64toh" >&5
8696 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6
8697 1.53 dogcow if test $ac_cv_have_decl_le64toh = yes; then
8698 1.53 dogcow
8699 1.61 christos cat >>confdefs.h <<_ACEOF
8700 1.53 dogcow #define HAVE_DECL_LE64TOH 1
8701 1.61 christos _ACEOF
8702 1.61 christos
8703 1.53 dogcow
8704 1.53 dogcow else
8705 1.61 christos cat >>confdefs.h <<_ACEOF
8706 1.53 dogcow #define HAVE_DECL_LE64TOH 0
8707 1.61 christos _ACEOF
8708 1.61 christos
8709 1.53 dogcow
8710 1.53 dogcow fi
8711 1.53 dogcow
8712 1.61 christos
8713 1.61 christos
8714 1.61 christos echo "$as_me:$LINENO: checking whether bswap16 is declared" >&5
8715 1.54 wiz echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6
8716 1.54 wiz if test "${ac_cv_have_decl_bswap16+set}" = set; then
8717 1.54 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
8718 1.54 wiz else
8719 1.54 wiz cat >conftest.$ac_ext <<_ACEOF
8720 1.61 christos /* confdefs.h. */
8721 1.61 christos _ACEOF
8722 1.61 christos cat confdefs.h >>conftest.$ac_ext
8723 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8724 1.61 christos /* end confdefs.h. */
8725 1.54 wiz #include <machine/bswap.h>
8726 1.54 wiz
8727 1.54 wiz int
8728 1.54 wiz main ()
8729 1.54 wiz {
8730 1.54 wiz #ifndef bswap16
8731 1.54 wiz char *p = (char *) bswap16;
8732 1.54 wiz #endif
8733 1.54 wiz
8734 1.54 wiz ;
8735 1.54 wiz return 0;
8736 1.54 wiz }
8737 1.54 wiz _ACEOF
8738 1.54 wiz rm -f conftest.$ac_objext
8739 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8740 1.61 christos (eval $ac_compile) 2>conftest.er1
8741 1.54 wiz ac_status=$?
8742 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8743 1.61 christos rm -f conftest.er1
8744 1.61 christos cat conftest.err >&5
8745 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 1.54 wiz (exit $ac_status); } &&
8747 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8748 1.61 christos || test ! -s conftest.err'
8749 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 1.61 christos (eval $ac_try) 2>&5
8751 1.61 christos ac_status=$?
8752 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 1.61 christos (exit $ac_status); }; } &&
8754 1.61 christos { ac_try='test -s conftest.$ac_objext'
8755 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 1.54 wiz (eval $ac_try) 2>&5
8757 1.54 wiz ac_status=$?
8758 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 1.54 wiz (exit $ac_status); }; }; then
8760 1.54 wiz ac_cv_have_decl_bswap16=yes
8761 1.54 wiz else
8762 1.54 wiz echo "$as_me: failed program was:" >&5
8763 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8764 1.61 christos
8765 1.54 wiz ac_cv_have_decl_bswap16=no
8766 1.54 wiz fi
8767 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8768 1.54 wiz fi
8769 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap16" >&5
8770 1.54 wiz echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6
8771 1.54 wiz if test $ac_cv_have_decl_bswap16 = yes; then
8772 1.54 wiz
8773 1.61 christos cat >>confdefs.h <<_ACEOF
8774 1.54 wiz #define HAVE_DECL_BSWAP16 1
8775 1.61 christos _ACEOF
8776 1.61 christos
8777 1.53 dogcow
8778 1.54 wiz else
8779 1.61 christos cat >>confdefs.h <<_ACEOF
8780 1.54 wiz #define HAVE_DECL_BSWAP16 0
8781 1.61 christos _ACEOF
8782 1.61 christos
8783 1.53 dogcow
8784 1.54 wiz fi
8785 1.61 christos echo "$as_me:$LINENO: checking whether bswap32 is declared" >&5
8786 1.54 wiz echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6
8787 1.54 wiz if test "${ac_cv_have_decl_bswap32+set}" = set; then
8788 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8789 1.53 dogcow else
8790 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8791 1.61 christos /* confdefs.h. */
8792 1.61 christos _ACEOF
8793 1.61 christos cat confdefs.h >>conftest.$ac_ext
8794 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8795 1.61 christos /* end confdefs.h. */
8796 1.54 wiz #include <machine/bswap.h>
8797 1.53 dogcow
8798 1.54 wiz int
8799 1.54 wiz main ()
8800 1.53 dogcow {
8801 1.54 wiz #ifndef bswap32
8802 1.54 wiz char *p = (char *) bswap32;
8803 1.48 jmc #endif
8804 1.54 wiz
8805 1.54 wiz ;
8806 1.54 wiz return 0;
8807 1.53 dogcow }
8808 1.54 wiz _ACEOF
8809 1.54 wiz rm -f conftest.$ac_objext
8810 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811 1.61 christos (eval $ac_compile) 2>conftest.er1
8812 1.54 wiz ac_status=$?
8813 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8814 1.61 christos rm -f conftest.er1
8815 1.61 christos cat conftest.err >&5
8816 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 1.54 wiz (exit $ac_status); } &&
8818 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8819 1.61 christos || test ! -s conftest.err'
8820 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 1.61 christos (eval $ac_try) 2>&5
8822 1.61 christos ac_status=$?
8823 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 1.61 christos (exit $ac_status); }; } &&
8825 1.61 christos { ac_try='test -s conftest.$ac_objext'
8826 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 1.54 wiz (eval $ac_try) 2>&5
8828 1.54 wiz ac_status=$?
8829 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 1.54 wiz (exit $ac_status); }; }; then
8831 1.54 wiz ac_cv_have_decl_bswap32=yes
8832 1.54 wiz else
8833 1.54 wiz echo "$as_me: failed program was:" >&5
8834 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8835 1.61 christos
8836 1.54 wiz ac_cv_have_decl_bswap32=no
8837 1.54 wiz fi
8838 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8839 1.54 wiz fi
8840 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap32" >&5
8841 1.54 wiz echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6
8842 1.54 wiz if test $ac_cv_have_decl_bswap32 = yes; then
8843 1.54 wiz
8844 1.61 christos cat >>confdefs.h <<_ACEOF
8845 1.54 wiz #define HAVE_DECL_BSWAP32 1
8846 1.61 christos _ACEOF
8847 1.61 christos
8848 1.54 wiz
8849 1.54 wiz else
8850 1.61 christos cat >>confdefs.h <<_ACEOF
8851 1.54 wiz #define HAVE_DECL_BSWAP32 0
8852 1.61 christos _ACEOF
8853 1.61 christos
8854 1.54 wiz
8855 1.54 wiz fi
8856 1.61 christos echo "$as_me:$LINENO: checking whether bswap64 is declared" >&5
8857 1.54 wiz echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6
8858 1.54 wiz if test "${ac_cv_have_decl_bswap64+set}" = set; then
8859 1.54 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
8860 1.54 wiz else
8861 1.54 wiz cat >conftest.$ac_ext <<_ACEOF
8862 1.61 christos /* confdefs.h. */
8863 1.61 christos _ACEOF
8864 1.61 christos cat confdefs.h >>conftest.$ac_ext
8865 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8866 1.61 christos /* end confdefs.h. */
8867 1.54 wiz #include <machine/bswap.h>
8868 1.54 wiz
8869 1.53 dogcow int
8870 1.53 dogcow main ()
8871 1.53 dogcow {
8872 1.54 wiz #ifndef bswap64
8873 1.54 wiz char *p = (char *) bswap64;
8874 1.54 wiz #endif
8875 1.54 wiz
8876 1.45 jmc ;
8877 1.45 jmc return 0;
8878 1.45 jmc }
8879 1.45 jmc _ACEOF
8880 1.54 wiz rm -f conftest.$ac_objext
8881 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8882 1.61 christos (eval $ac_compile) 2>conftest.er1
8883 1.45 jmc ac_status=$?
8884 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8885 1.61 christos rm -f conftest.er1
8886 1.61 christos cat conftest.err >&5
8887 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 1.45 jmc (exit $ac_status); } &&
8889 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8890 1.61 christos || test ! -s conftest.err'
8891 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 1.61 christos (eval $ac_try) 2>&5
8893 1.61 christos ac_status=$?
8894 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 1.61 christos (exit $ac_status); }; } &&
8896 1.61 christos { ac_try='test -s conftest.$ac_objext'
8897 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 1.45 jmc (eval $ac_try) 2>&5
8899 1.45 jmc ac_status=$?
8900 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 1.45 jmc (exit $ac_status); }; }; then
8902 1.54 wiz ac_cv_have_decl_bswap64=yes
8903 1.45 jmc else
8904 1.45 jmc echo "$as_me: failed program was:" >&5
8905 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8906 1.61 christos
8907 1.54 wiz ac_cv_have_decl_bswap64=no
8908 1.45 jmc fi
8909 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8910 1.45 jmc fi
8911 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap64" >&5
8912 1.54 wiz echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6
8913 1.54 wiz if test $ac_cv_have_decl_bswap64 = yes; then
8914 1.54 wiz
8915 1.61 christos cat >>confdefs.h <<_ACEOF
8916 1.54 wiz #define HAVE_DECL_BSWAP64 1
8917 1.61 christos _ACEOF
8918 1.61 christos
8919 1.54 wiz
8920 1.54 wiz else
8921 1.61 christos cat >>confdefs.h <<_ACEOF
8922 1.54 wiz #define HAVE_DECL_BSWAP64 0
8923 1.61 christos _ACEOF
8924 1.61 christos
8925 1.54 wiz
8926 1.45 jmc fi
8927 1.45 jmc
8928 1.61 christos
8929 1.61 christos
8930 1.61 christos echo "$as_me:$LINENO: checking whether fstatvfs is declared" >&5
8931 1.54 wiz echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6
8932 1.54 wiz if test "${ac_cv_have_decl_fstatvfs+set}" = set; then
8933 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
8934 1.1 tv else
8935 1.1 tv cat >conftest.$ac_ext <<_ACEOF
8936 1.61 christos /* confdefs.h. */
8937 1.61 christos _ACEOF
8938 1.61 christos cat confdefs.h >>conftest.$ac_ext
8939 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
8940 1.61 christos /* end confdefs.h. */
8941 1.54 wiz #include <sys/statvfs.h>
8942 1.53 dogcow
8943 1.54 wiz int
8944 1.54 wiz main ()
8945 1.53 dogcow {
8946 1.54 wiz #ifndef fstatvfs
8947 1.54 wiz char *p = (char *) fstatvfs;
8948 1.1 tv #endif
8949 1.1 tv
8950 1.1 tv ;
8951 1.1 tv return 0;
8952 1.1 tv }
8953 1.1 tv _ACEOF
8954 1.54 wiz rm -f conftest.$ac_objext
8955 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956 1.61 christos (eval $ac_compile) 2>conftest.er1
8957 1.1 tv ac_status=$?
8958 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
8959 1.61 christos rm -f conftest.er1
8960 1.61 christos cat conftest.err >&5
8961 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 1.1 tv (exit $ac_status); } &&
8963 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
8964 1.61 christos || test ! -s conftest.err'
8965 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 1.61 christos (eval $ac_try) 2>&5
8967 1.61 christos ac_status=$?
8968 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 1.61 christos (exit $ac_status); }; } &&
8970 1.61 christos { ac_try='test -s conftest.$ac_objext'
8971 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 1.1 tv (eval $ac_try) 2>&5
8973 1.1 tv ac_status=$?
8974 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 1.1 tv (exit $ac_status); }; }; then
8976 1.54 wiz ac_cv_have_decl_fstatvfs=yes
8977 1.1 tv else
8978 1.1 tv echo "$as_me: failed program was:" >&5
8979 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
8980 1.61 christos
8981 1.54 wiz ac_cv_have_decl_fstatvfs=no
8982 1.1 tv fi
8983 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8984 1.1 tv fi
8985 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_fstatvfs" >&5
8986 1.54 wiz echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6
8987 1.54 wiz if test $ac_cv_have_decl_fstatvfs = yes; then
8988 1.54 wiz
8989 1.61 christos cat >>confdefs.h <<_ACEOF
8990 1.54 wiz #define HAVE_DECL_FSTATVFS 1
8991 1.61 christos _ACEOF
8992 1.61 christos
8993 1.54 wiz
8994 1.54 wiz else
8995 1.61 christos cat >>confdefs.h <<_ACEOF
8996 1.54 wiz #define HAVE_DECL_FSTATVFS 0
8997 1.61 christos _ACEOF
8998 1.61 christos
8999 1.54 wiz
9000 1.1 tv fi
9001 1.54 wiz
9002 1.61 christos
9003 1.61 christos
9004 1.61 christos echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
9005 1.8 tv echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
9006 1.8 tv if test "${ac_cv_have_decl_setgroupent+set}" = set; then
9007 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
9008 1.8 tv else
9009 1.8 tv cat >conftest.$ac_ext <<_ACEOF
9010 1.61 christos /* confdefs.h. */
9011 1.61 christos _ACEOF
9012 1.61 christos cat confdefs.h >>conftest.$ac_ext
9013 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
9014 1.61 christos /* end confdefs.h. */
9015 1.8 tv
9016 1.33 thorpej #include <sys/types.h>
9017 1.8 tv #include <grp.h>
9018 1.8 tv #include <pwd.h>
9019 1.8 tv
9020 1.61 christos
9021 1.8 tv int
9022 1.8 tv main ()
9023 1.8 tv {
9024 1.8 tv #ifndef setgroupent
9025 1.8 tv char *p = (char *) setgroupent;
9026 1.8 tv #endif
9027 1.8 tv
9028 1.8 tv ;
9029 1.8 tv return 0;
9030 1.8 tv }
9031 1.8 tv _ACEOF
9032 1.8 tv rm -f conftest.$ac_objext
9033 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034 1.61 christos (eval $ac_compile) 2>conftest.er1
9035 1.8 tv ac_status=$?
9036 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
9037 1.61 christos rm -f conftest.er1
9038 1.61 christos cat conftest.err >&5
9039 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 1.8 tv (exit $ac_status); } &&
9041 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
9042 1.61 christos || test ! -s conftest.err'
9043 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 1.50 jmc (eval $ac_try) 2>&5
9045 1.50 jmc ac_status=$?
9046 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 1.61 christos (exit $ac_status); }; } &&
9048 1.61 christos { ac_try='test -s conftest.$ac_objext'
9049 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 1.61 christos (eval $ac_try) 2>&5
9051 1.61 christos ac_status=$?
9052 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 1.8 tv (exit $ac_status); }; }; then
9054 1.8 tv ac_cv_have_decl_setgroupent=yes
9055 1.8 tv else
9056 1.8 tv echo "$as_me: failed program was:" >&5
9057 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
9058 1.61 christos
9059 1.8 tv ac_cv_have_decl_setgroupent=no
9060 1.8 tv fi
9061 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9062 1.8 tv fi
9063 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
9064 1.8 tv echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
9065 1.8 tv if test $ac_cv_have_decl_setgroupent = yes; then
9066 1.8 tv
9067 1.61 christos cat >>confdefs.h <<_ACEOF
9068 1.8 tv #define HAVE_DECL_SETGROUPENT 1
9069 1.61 christos _ACEOF
9070 1.61 christos
9071 1.8 tv
9072 1.8 tv else
9073 1.61 christos cat >>confdefs.h <<_ACEOF
9074 1.8 tv #define HAVE_DECL_SETGROUPENT 0
9075 1.61 christos _ACEOF
9076 1.61 christos
9077 1.8 tv
9078 1.8 tv fi
9079 1.61 christos echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
9080 1.8 tv echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
9081 1.8 tv if test "${ac_cv_have_decl_setpassent+set}" = set; then
9082 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
9083 1.8 tv else
9084 1.8 tv cat >conftest.$ac_ext <<_ACEOF
9085 1.61 christos /* confdefs.h. */
9086 1.61 christos _ACEOF
9087 1.61 christos cat confdefs.h >>conftest.$ac_ext
9088 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
9089 1.61 christos /* end confdefs.h. */
9090 1.8 tv
9091 1.33 thorpej #include <sys/types.h>
9092 1.8 tv #include <grp.h>
9093 1.8 tv #include <pwd.h>
9094 1.8 tv
9095 1.61 christos
9096 1.8 tv int
9097 1.8 tv main ()
9098 1.8 tv {
9099 1.8 tv #ifndef setpassent
9100 1.8 tv char *p = (char *) setpassent;
9101 1.8 tv #endif
9102 1.8 tv
9103 1.8 tv ;
9104 1.8 tv return 0;
9105 1.8 tv }
9106 1.8 tv _ACEOF
9107 1.8 tv rm -f conftest.$ac_objext
9108 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9109 1.61 christos (eval $ac_compile) 2>conftest.er1
9110 1.8 tv ac_status=$?
9111 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
9112 1.61 christos rm -f conftest.er1
9113 1.61 christos cat conftest.err >&5
9114 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 1.8 tv (exit $ac_status); } &&
9116 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
9117 1.61 christos || test ! -s conftest.err'
9118 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 1.50 jmc (eval $ac_try) 2>&5
9120 1.50 jmc ac_status=$?
9121 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 1.61 christos (exit $ac_status); }; } &&
9123 1.61 christos { ac_try='test -s conftest.$ac_objext'
9124 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 1.61 christos (eval $ac_try) 2>&5
9126 1.61 christos ac_status=$?
9127 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 1.8 tv (exit $ac_status); }; }; then
9129 1.8 tv ac_cv_have_decl_setpassent=yes
9130 1.8 tv else
9131 1.8 tv echo "$as_me: failed program was:" >&5
9132 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
9133 1.61 christos
9134 1.8 tv ac_cv_have_decl_setpassent=no
9135 1.8 tv fi
9136 1.61 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9137 1.8 tv fi
9138 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
9139 1.8 tv echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
9140 1.8 tv if test $ac_cv_have_decl_setpassent = yes; then
9141 1.8 tv
9142 1.61 christos cat >>confdefs.h <<_ACEOF
9143 1.8 tv #define HAVE_DECL_SETPASSENT 1
9144 1.61 christos _ACEOF
9145 1.61 christos
9146 1.8 tv
9147 1.8 tv else
9148 1.61 christos cat >>confdefs.h <<_ACEOF
9149 1.8 tv #define HAVE_DECL_SETPASSENT 0
9150 1.61 christos _ACEOF
9151 1.61 christos
9152 1.8 tv
9153 1.8 tv fi
9154 1.8 tv
9155 1.61 christos
9156 1.61 christos
9157 1.4 tv # regcomp() and regexec() are also names of functions in the old V8
9158 1.4 tv # regexp package. To avoid them, we need to find out who has regfree().
9159 1.4 tv
9160 1.61 christos
9161 1.61 christos echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
9162 1.4 tv echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
9163 1.4 tv if test "${ac_cv_lib_regex_regfree+set}" = set; then
9164 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
9165 1.4 tv else
9166 1.4 tv ac_check_lib_save_LIBS=$LIBS
9167 1.4 tv LIBS="-lregex $LIBS"
9168 1.4 tv cat >conftest.$ac_ext <<_ACEOF
9169 1.61 christos /* confdefs.h. */
9170 1.61 christos _ACEOF
9171 1.61 christos cat confdefs.h >>conftest.$ac_ext
9172 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
9173 1.61 christos /* end confdefs.h. */
9174 1.4 tv
9175 1.4 tv /* Override any gcc2 internal prototype to avoid an error. */
9176 1.4 tv #ifdef __cplusplus
9177 1.4 tv extern "C"
9178 1.4 tv #endif
9179 1.4 tv /* We use char because int might match the return type of a gcc2
9180 1.4 tv builtin and then its argument prototype would still apply. */
9181 1.4 tv char regfree ();
9182 1.4 tv int
9183 1.4 tv main ()
9184 1.4 tv {
9185 1.4 tv regfree ();
9186 1.4 tv ;
9187 1.4 tv return 0;
9188 1.4 tv }
9189 1.4 tv _ACEOF
9190 1.4 tv rm -f conftest.$ac_objext conftest$ac_exeext
9191 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192 1.61 christos (eval $ac_link) 2>conftest.er1
9193 1.4 tv ac_status=$?
9194 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
9195 1.61 christos rm -f conftest.er1
9196 1.61 christos cat conftest.err >&5
9197 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 1.4 tv (exit $ac_status); } &&
9199 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
9200 1.61 christos || test ! -s conftest.err'
9201 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 1.61 christos (eval $ac_try) 2>&5
9203 1.61 christos ac_status=$?
9204 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 1.61 christos (exit $ac_status); }; } &&
9206 1.61 christos { ac_try='test -s conftest$ac_exeext'
9207 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 1.4 tv (eval $ac_try) 2>&5
9209 1.4 tv ac_status=$?
9210 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 1.4 tv (exit $ac_status); }; }; then
9212 1.4 tv ac_cv_lib_regex_regfree=yes
9213 1.4 tv else
9214 1.4 tv echo "$as_me: failed program was:" >&5
9215 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
9216 1.61 christos
9217 1.4 tv ac_cv_lib_regex_regfree=no
9218 1.4 tv fi
9219 1.61 christos rm -f conftest.err conftest.$ac_objext \
9220 1.61 christos conftest$ac_exeext conftest.$ac_ext
9221 1.4 tv LIBS=$ac_check_lib_save_LIBS
9222 1.4 tv fi
9223 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
9224 1.4 tv echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
9225 1.4 tv if test $ac_cv_lib_regex_regfree = yes; then
9226 1.61 christos cat >>confdefs.h <<_ACEOF
9227 1.4 tv #define HAVE_LIBREGEX 1
9228 1.61 christos _ACEOF
9229 1.4 tv
9230 1.4 tv LIBS="-lregex $LIBS"
9231 1.4 tv
9232 1.4 tv fi
9233 1.4 tv
9234 1.61 christos echo "$as_me:$LINENO: checking for library containing regfree" >&5
9235 1.4 tv echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
9236 1.4 tv if test "${ac_cv_search_regfree+set}" = set; then
9237 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
9238 1.1 tv else
9239 1.1 tv ac_func_search_save_LIBS=$LIBS
9240 1.4 tv ac_cv_search_regfree=no
9241 1.1 tv cat >conftest.$ac_ext <<_ACEOF
9242 1.61 christos /* confdefs.h. */
9243 1.61 christos _ACEOF
9244 1.61 christos cat confdefs.h >>conftest.$ac_ext
9245 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
9246 1.61 christos /* end confdefs.h. */
9247 1.1 tv
9248 1.1 tv /* Override any gcc2 internal prototype to avoid an error. */
9249 1.1 tv #ifdef __cplusplus
9250 1.1 tv extern "C"
9251 1.1 tv #endif
9252 1.1 tv /* We use char because int might match the return type of a gcc2
9253 1.1 tv builtin and then its argument prototype would still apply. */
9254 1.4 tv char regfree ();
9255 1.1 tv int
9256 1.1 tv main ()
9257 1.1 tv {
9258 1.4 tv regfree ();
9259 1.1 tv ;
9260 1.1 tv return 0;
9261 1.1 tv }
9262 1.1 tv _ACEOF
9263 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext
9264 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 1.61 christos (eval $ac_link) 2>conftest.er1
9266 1.1 tv ac_status=$?
9267 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
9268 1.61 christos rm -f conftest.er1
9269 1.61 christos cat conftest.err >&5
9270 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 1.1 tv (exit $ac_status); } &&
9272 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
9273 1.61 christos || test ! -s conftest.err'
9274 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 1.61 christos (eval $ac_try) 2>&5
9276 1.61 christos ac_status=$?
9277 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 1.61 christos (exit $ac_status); }; } &&
9279 1.61 christos { ac_try='test -s conftest$ac_exeext'
9280 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 1.1 tv (eval $ac_try) 2>&5
9282 1.1 tv ac_status=$?
9283 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 1.1 tv (exit $ac_status); }; }; then
9285 1.4 tv ac_cv_search_regfree="none required"
9286 1.1 tv else
9287 1.1 tv echo "$as_me: failed program was:" >&5
9288 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
9289 1.61 christos
9290 1.1 tv fi
9291 1.61 christos rm -f conftest.err conftest.$ac_objext \
9292 1.61 christos conftest$ac_exeext conftest.$ac_ext
9293 1.4 tv if test "$ac_cv_search_regfree" = no; then
9294 1.4 tv for ac_lib in rx posix; do
9295 1.1 tv LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9296 1.1 tv cat >conftest.$ac_ext <<_ACEOF
9297 1.61 christos /* confdefs.h. */
9298 1.61 christos _ACEOF
9299 1.61 christos cat confdefs.h >>conftest.$ac_ext
9300 1.61 christos cat >>conftest.$ac_ext <<_ACEOF
9301 1.61 christos /* end confdefs.h. */
9302 1.1 tv
9303 1.1 tv /* Override any gcc2 internal prototype to avoid an error. */
9304 1.1 tv #ifdef __cplusplus
9305 1.1 tv extern "C"
9306 1.1 tv #endif
9307 1.1 tv /* We use char because int might match the return type of a gcc2
9308 1.1 tv builtin and then its argument prototype would still apply. */
9309 1.4 tv char regfree ();
9310 1.1 tv int
9311 1.1 tv main ()
9312 1.1 tv {
9313 1.4 tv regfree ();
9314 1.1 tv ;
9315 1.1 tv return 0;
9316 1.1 tv }
9317 1.1 tv _ACEOF
9318 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext
9319 1.61 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 1.61 christos (eval $ac_link) 2>conftest.er1
9321 1.1 tv ac_status=$?
9322 1.61 christos grep -v '^ *+' conftest.er1 >conftest.err
9323 1.61 christos rm -f conftest.er1
9324 1.61 christos cat conftest.err >&5
9325 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 1.1 tv (exit $ac_status); } &&
9327 1.61 christos { ac_try='test -z "$ac_c_werror_flag"
9328 1.61 christos || test ! -s conftest.err'
9329 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 1.61 christos (eval $ac_try) 2>&5
9331 1.61 christos ac_status=$?
9332 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 1.61 christos (exit $ac_status); }; } &&
9334 1.61 christos { ac_try='test -s conftest$ac_exeext'
9335 1.61 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 1.1 tv (eval $ac_try) 2>&5
9337 1.1 tv ac_status=$?
9338 1.61 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 1.1 tv (exit $ac_status); }; }; then
9340 1.4 tv ac_cv_search_regfree="-l$ac_lib"
9341 1.1 tv break
9342 1.1 tv else
9343 1.1 tv echo "$as_me: failed program was:" >&5
9344 1.61 christos sed 's/^/| /' conftest.$ac_ext >&5
9345 1.61 christos
9346 1.1 tv fi
9347 1.61 christos rm -f conftest.err conftest.$ac_objext \
9348 1.61 christos conftest$ac_exeext conftest.$ac_ext
9349 1.1 tv done
9350 1.1 tv fi
9351 1.1 tv LIBS=$ac_func_search_save_LIBS
9352 1.1 tv fi
9353 1.61 christos echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
9354 1.4 tv echo "${ECHO_T}$ac_cv_search_regfree" >&6
9355 1.4 tv if test "$ac_cv_search_regfree" != no; then
9356 1.4 tv test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9357 1.1 tv
9358 1.1 tv fi
9359 1.1 tv
9360 1.61 christos
9361 1.1 tv cat >confcache <<\_ACEOF
9362 1.1 tv # This file is a shell script that caches the results of configure
9363 1.1 tv # tests run on this system so they can be shared between configure
9364 1.1 tv # scripts and configure runs, see configure's option --config-cache.
9365 1.1 tv # It is not useful on other systems. If it contains results you don't
9366 1.1 tv # want to keep, you may remove or edit it.
9367 1.1 tv #
9368 1.1 tv # config.status only pays attention to the cache file if you give it
9369 1.1 tv # the --recheck option to rerun configure.
9370 1.1 tv #
9371 1.61 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
9372 1.1 tv # loading this file, other *unset* `ac_cv_foo' will be assigned the
9373 1.1 tv # following values.
9374 1.1 tv
9375 1.1 tv _ACEOF
9376 1.1 tv
9377 1.1 tv # The following way of writing the cache mishandles newlines in values,
9378 1.1 tv # but we know of no workaround that is simple, portable, and efficient.
9379 1.1 tv # So, don't put newlines in cache variables' values.
9380 1.1 tv # Ultrix sh set writes to stderr and can't be redirected directly,
9381 1.1 tv # and sets the high bit in the cache file unless we assign to the vars.
9382 1.1 tv {
9383 1.1 tv (set) 2>&1 |
9384 1.1 tv case `(ac_space=' '; set | grep ac_space) 2>&1` in
9385 1.1 tv *ac_space=\ *)
9386 1.1 tv # `set' does not quote correctly, so add quotes (double-quote
9387 1.1 tv # substitution turns \\\\ into \\, and sed turns \\ into \).
9388 1.1 tv sed -n \
9389 1.61 christos "s/'/'\\\\''/g;
9390 1.61 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9391 1.1 tv ;;
9392 1.1 tv *)
9393 1.1 tv # `set' quotes correctly as required by POSIX, so do not add quotes.
9394 1.1 tv sed -n \
9395 1.61 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9396 1.1 tv ;;
9397 1.1 tv esac;
9398 1.1 tv } |
9399 1.1 tv sed '
9400 1.1 tv t clear
9401 1.1 tv : clear
9402 1.1 tv s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9403 1.1 tv t end
9404 1.1 tv /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9405 1.1 tv : end' >>confcache
9406 1.61 christos if diff $cache_file confcache >/dev/null 2>&1; then :; else
9407 1.1 tv if test -w $cache_file; then
9408 1.1 tv test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9409 1.1 tv cat confcache >$cache_file
9410 1.1 tv else
9411 1.1 tv echo "not updating unwritable cache $cache_file"
9412 1.1 tv fi
9413 1.1 tv fi
9414 1.1 tv rm -f confcache
9415 1.1 tv
9416 1.1 tv test "x$prefix" = xNONE && prefix=$ac_default_prefix
9417 1.1 tv # Let make expand exec_prefix.
9418 1.1 tv test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9419 1.1 tv
9420 1.1 tv # VPATH may cause trouble with some makes, so we remove $(srcdir),
9421 1.1 tv # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9422 1.1 tv # trailing colons and then remove the whole line if VPATH becomes empty
9423 1.1 tv # (actually we leave an empty line to preserve line numbers).
9424 1.1 tv if test "x$srcdir" = x.; then
9425 1.61 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{
9426 1.1 tv s/:*\$(srcdir):*/:/;
9427 1.1 tv s/:*\${srcdir}:*/:/;
9428 1.1 tv s/:*@srcdir@:*/:/;
9429 1.61 christos s/^\([^=]*=[ ]*\):*/\1/;
9430 1.1 tv s/:*$//;
9431 1.61 christos s/^[^=]*=[ ]*$//;
9432 1.1 tv }'
9433 1.1 tv fi
9434 1.1 tv
9435 1.1 tv DEFS=-DHAVE_CONFIG_H
9436 1.1 tv
9437 1.61 christos ac_libobjs=
9438 1.61 christos ac_ltlibobjs=
9439 1.61 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9440 1.61 christos # 1. Remove the extension, and $U if already installed.
9441 1.61 christos ac_i=`echo "$ac_i" |
9442 1.61 christos sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9443 1.61 christos # 2. Add them.
9444 1.61 christos ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9445 1.61 christos ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9446 1.61 christos done
9447 1.61 christos LIBOBJS=$ac_libobjs
9448 1.61 christos
9449 1.61 christos LTLIBOBJS=$ac_ltlibobjs
9450 1.61 christos
9451 1.61 christos
9452 1.61 christos
9453 1.1 tv : ${CONFIG_STATUS=./config.status}
9454 1.1 tv ac_clean_files_save=$ac_clean_files
9455 1.1 tv ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9456 1.61 christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9457 1.1 tv echo "$as_me: creating $CONFIG_STATUS" >&6;}
9458 1.1 tv cat >$CONFIG_STATUS <<_ACEOF
9459 1.1 tv #! $SHELL
9460 1.61 christos # Generated by $as_me.
9461 1.1 tv # Run this file to recreate the current configuration.
9462 1.1 tv # Compiler output produced by configure, useful for debugging
9463 1.1 tv # configure, is in config.log if it exists.
9464 1.1 tv
9465 1.1 tv debug=false
9466 1.61 christos ac_cs_recheck=false
9467 1.61 christos ac_cs_silent=false
9468 1.1 tv SHELL=\${CONFIG_SHELL-$SHELL}
9469 1.1 tv _ACEOF
9470 1.1 tv
9471 1.1 tv cat >>$CONFIG_STATUS <<\_ACEOF
9472 1.61 christos ## --------------------- ##
9473 1.61 christos ## M4sh Initialization. ##
9474 1.61 christos ## --------------------- ##
9475 1.61 christos
9476 1.1 tv # Be Bourne compatible
9477 1.1 tv if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9478 1.1 tv emulate sh
9479 1.1 tv NULLCMD=:
9480 1.61 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9481 1.61 christos # is contrary to our usage. Disable this feature.
9482 1.61 christos alias -g '${1+"$@"}'='"$@"'
9483 1.1 tv elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9484 1.1 tv set -o posix
9485 1.1 tv fi
9486 1.61 christos DUALCASE=1; export DUALCASE # for MKS sh
9487 1.61 christos
9488 1.61 christos # Support unset when possible.
9489 1.61 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9490 1.61 christos as_unset=unset
9491 1.61 christos else
9492 1.61 christos as_unset=false
9493 1.61 christos fi
9494 1.61 christos
9495 1.61 christos
9496 1.61 christos # Work around bugs in pre-3.0 UWIN ksh.
9497 1.61 christos $as_unset ENV MAIL MAILPATH
9498 1.61 christos PS1='$ '
9499 1.61 christos PS2='> '
9500 1.61 christos PS4='+ '
9501 1.61 christos
9502 1.61 christos # NLS nuisances.
9503 1.61 christos for as_var in \
9504 1.61 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9505 1.61 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9506 1.61 christos LC_TELEPHONE LC_TIME
9507 1.61 christos do
9508 1.61 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9509 1.61 christos eval $as_var=C; export $as_var
9510 1.61 christos else
9511 1.61 christos $as_unset $as_var
9512 1.61 christos fi
9513 1.61 christos done
9514 1.61 christos
9515 1.61 christos # Required to use basename.
9516 1.61 christos if expr a : '\(a\)' >/dev/null 2>&1; then
9517 1.61 christos as_expr=expr
9518 1.61 christos else
9519 1.61 christos as_expr=false
9520 1.61 christos fi
9521 1.61 christos
9522 1.61 christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9523 1.61 christos as_basename=basename
9524 1.61 christos else
9525 1.61 christos as_basename=false
9526 1.61 christos fi
9527 1.61 christos
9528 1.1 tv
9529 1.1 tv # Name of the executable.
9530 1.61 christos as_me=`$as_basename "$0" ||
9531 1.61 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9532 1.61 christos X"$0" : 'X\(//\)$' \| \
9533 1.61 christos X"$0" : 'X\(/\)$' \| \
9534 1.61 christos . : '\(.\)' 2>/dev/null ||
9535 1.61 christos echo X/"$0" |
9536 1.61 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9537 1.61 christos /^X\/\(\/\/\)$/{ s//\1/; q; }
9538 1.61 christos /^X\/\(\/\).*/{ s//\1/; q; }
9539 1.61 christos s/.*/./; q'`
9540 1.61 christos
9541 1.61 christos
9542 1.61 christos # PATH needs CR, and LINENO needs CR and PATH.
9543 1.61 christos # Avoid depending upon Character Ranges.
9544 1.61 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9545 1.61 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9546 1.61 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9547 1.61 christos as_cr_digits='0123456789'
9548 1.61 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
9549 1.61 christos
9550 1.61 christos # The user is always right.
9551 1.61 christos if test "${PATH_SEPARATOR+set}" != set; then
9552 1.61 christos echo "#! /bin/sh" >conf$$.sh
9553 1.61 christos echo "exit 0" >>conf$$.sh
9554 1.61 christos chmod +x conf$$.sh
9555 1.61 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9556 1.61 christos PATH_SEPARATOR=';'
9557 1.61 christos else
9558 1.61 christos PATH_SEPARATOR=:
9559 1.61 christos fi
9560 1.61 christos rm -f conf$$.sh
9561 1.61 christos fi
9562 1.61 christos
9563 1.61 christos
9564 1.61 christos as_lineno_1=$LINENO
9565 1.61 christos as_lineno_2=$LINENO
9566 1.61 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9567 1.61 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
9568 1.61 christos test "x$as_lineno_3" = "x$as_lineno_2" || {
9569 1.61 christos # Find who we are. Look in the path if we contain no path at all
9570 1.61 christos # relative or not.
9571 1.61 christos case $0 in
9572 1.61 christos *[\\/]* ) as_myself=$0 ;;
9573 1.61 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 1.61 christos for as_dir in $PATH
9575 1.61 christos do
9576 1.61 christos IFS=$as_save_IFS
9577 1.61 christos test -z "$as_dir" && as_dir=.
9578 1.61 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9579 1.61 christos done
9580 1.61 christos
9581 1.61 christos ;;
9582 1.61 christos esac
9583 1.61 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
9584 1.61 christos # in which case we are not to be found in the path.
9585 1.61 christos if test "x$as_myself" = x; then
9586 1.61 christos as_myself=$0
9587 1.61 christos fi
9588 1.61 christos if test ! -f "$as_myself"; then
9589 1.61 christos { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9590 1.61 christos echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9591 1.61 christos { (exit 1); exit 1; }; }
9592 1.61 christos fi
9593 1.61 christos case $CONFIG_SHELL in
9594 1.61 christos '')
9595 1.61 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 1.61 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9597 1.61 christos do
9598 1.61 christos IFS=$as_save_IFS
9599 1.61 christos test -z "$as_dir" && as_dir=.
9600 1.61 christos for as_base in sh bash ksh sh5; do
9601 1.61 christos case $as_dir in
9602 1.61 christos /*)
9603 1.61 christos if ("$as_dir/$as_base" -c '
9604 1.61 christos as_lineno_1=$LINENO
9605 1.61 christos as_lineno_2=$LINENO
9606 1.61 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9607 1.61 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
9608 1.61 christos test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9609 1.61 christos $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9610 1.61 christos $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9611 1.61 christos CONFIG_SHELL=$as_dir/$as_base
9612 1.61 christos export CONFIG_SHELL
9613 1.61 christos exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9614 1.61 christos fi;;
9615 1.61 christos esac
9616 1.61 christos done
9617 1.61 christos done
9618 1.61 christos ;;
9619 1.61 christos esac
9620 1.61 christos
9621 1.61 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9622 1.61 christos # uniformly replaced by the line number. The first 'sed' inserts a
9623 1.61 christos # line-number line before each line; the second 'sed' does the real
9624 1.61 christos # work. The second script uses 'N' to pair each line-number line
9625 1.61 christos # with the numbered line, and appends trailing '-' during
9626 1.61 christos # substitution so that $LINENO is not a special case at line end.
9627 1.61 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9628 1.61 christos # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9629 1.61 christos sed '=' <$as_myself |
9630 1.61 christos sed '
9631 1.61 christos N
9632 1.61 christos s,$,-,
9633 1.61 christos : loop
9634 1.61 christos s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9635 1.61 christos t loop
9636 1.61 christos s,-$,,
9637 1.61 christos s,^['$as_cr_digits']*\n,,
9638 1.61 christos ' >$as_me.lineno &&
9639 1.61 christos chmod +x $as_me.lineno ||
9640 1.61 christos { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9641 1.61 christos echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9642 1.61 christos { (exit 1); exit 1; }; }
9643 1.61 christos
9644 1.61 christos # Don't try to exec as it changes $[0], causing all sort of problems
9645 1.61 christos # (the dirname of $[0] is not the place where we might find the
9646 1.61 christos # original and so on. Autoconf is especially sensible to this).
9647 1.61 christos . ./$as_me.lineno
9648 1.61 christos # Exit status is that of the last command.
9649 1.61 christos exit
9650 1.61 christos }
9651 1.61 christos
9652 1.61 christos
9653 1.61 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9654 1.61 christos *c*,-n*) ECHO_N= ECHO_C='
9655 1.61 christos ' ECHO_T=' ' ;;
9656 1.61 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9657 1.61 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9658 1.61 christos esac
9659 1.1 tv
9660 1.1 tv if expr a : '\(a\)' >/dev/null 2>&1; then
9661 1.1 tv as_expr=expr
9662 1.1 tv else
9663 1.1 tv as_expr=false
9664 1.1 tv fi
9665 1.1 tv
9666 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
9667 1.1 tv echo >conf$$.file
9668 1.1 tv if ln -s conf$$.file conf$$ 2>/dev/null; then
9669 1.1 tv # We could just check for DJGPP; but this test a) works b) is more generic
9670 1.1 tv # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9671 1.1 tv if test -f conf$$.exe; then
9672 1.1 tv # Don't use ln at all; we don't have any links
9673 1.1 tv as_ln_s='cp -p'
9674 1.1 tv else
9675 1.1 tv as_ln_s='ln -s'
9676 1.1 tv fi
9677 1.1 tv elif ln conf$$.file conf$$ 2>/dev/null; then
9678 1.1 tv as_ln_s=ln
9679 1.1 tv else
9680 1.1 tv as_ln_s='cp -p'
9681 1.1 tv fi
9682 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
9683 1.1 tv
9684 1.61 christos if mkdir -p . 2>/dev/null; then
9685 1.61 christos as_mkdir_p=:
9686 1.61 christos else
9687 1.61 christos test -d ./-p && rmdir ./-p
9688 1.61 christos as_mkdir_p=false
9689 1.61 christos fi
9690 1.61 christos
9691 1.60 apb as_executable_p="test -f"
9692 1.60 apb
9693 1.61 christos # Sed expression to map a string onto a valid CPP name.
9694 1.61 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9695 1.61 christos
9696 1.61 christos # Sed expression to map a string onto a valid variable name.
9697 1.61 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9698 1.53 dogcow
9699 1.1 tv
9700 1.1 tv # IFS
9701 1.1 tv # We need space, tab and new line, in precisely that order.
9702 1.1 tv as_nl='
9703 1.1 tv '
9704 1.1 tv IFS=" $as_nl"
9705 1.1 tv
9706 1.1 tv # CDPATH.
9707 1.61 christos $as_unset CDPATH
9708 1.1 tv
9709 1.1 tv exec 6>&1
9710 1.1 tv
9711 1.61 christos # Open the log real soon, to keep \$[0] and so on meaningful, and to
9712 1.61 christos # report actual input values of CONFIG_FILES etc. instead of their
9713 1.61 christos # values after options handling. Logging --version etc. is OK.
9714 1.61 christos exec 5>>config.log
9715 1.61 christos {
9716 1.61 christos echo
9717 1.61 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9718 1.61 christos ## Running $as_me. ##
9719 1.61 christos _ASBOX
9720 1.61 christos } >&5
9721 1.61 christos cat >&5 <<_CSEOF
9722 1.61 christos
9723 1.61 christos This file was extended by libnbcompat $as_me noversion, which was
9724 1.61 christos generated by GNU Autoconf 2.59. Invocation command line was
9725 1.61 christos
9726 1.61 christos CONFIG_FILES = $CONFIG_FILES
9727 1.61 christos CONFIG_HEADERS = $CONFIG_HEADERS
9728 1.61 christos CONFIG_LINKS = $CONFIG_LINKS
9729 1.61 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
9730 1.61 christos $ $0 $@
9731 1.61 christos
9732 1.61 christos _CSEOF
9733 1.61 christos echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9734 1.61 christos echo >&5
9735 1.1 tv _ACEOF
9736 1.1 tv
9737 1.1 tv # Files that config.status was made for.
9738 1.1 tv if test -n "$ac_config_files"; then
9739 1.1 tv echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9740 1.1 tv fi
9741 1.1 tv
9742 1.1 tv if test -n "$ac_config_headers"; then
9743 1.1 tv echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9744 1.1 tv fi
9745 1.1 tv
9746 1.1 tv if test -n "$ac_config_links"; then
9747 1.1 tv echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9748 1.1 tv fi
9749 1.1 tv
9750 1.1 tv if test -n "$ac_config_commands"; then
9751 1.1 tv echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9752 1.1 tv fi
9753 1.1 tv
9754 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
9755 1.1 tv
9756 1.1 tv ac_cs_usage="\
9757 1.1 tv \`$as_me' instantiates files from templates according to the
9758 1.1 tv current configuration.
9759 1.1 tv
9760 1.1 tv Usage: $0 [OPTIONS] [FILE]...
9761 1.1 tv
9762 1.1 tv -h, --help print this help, then exit
9763 1.1 tv -V, --version print version number, then exit
9764 1.61 christos -q, --quiet do not print progress messages
9765 1.1 tv -d, --debug don't remove temporary files
9766 1.1 tv --recheck update $as_me by reconfiguring in the same conditions
9767 1.1 tv --file=FILE[:TEMPLATE]
9768 1.61 christos instantiate the configuration file FILE
9769 1.1 tv --header=FILE[:TEMPLATE]
9770 1.61 christos instantiate the configuration header FILE
9771 1.1 tv
9772 1.1 tv Configuration files:
9773 1.1 tv $config_files
9774 1.1 tv
9775 1.1 tv Configuration headers:
9776 1.1 tv $config_headers
9777 1.1 tv
9778 1.1 tv Report bugs to <bug-autoconf@gnu.org>."
9779 1.61 christos _ACEOF
9780 1.1 tv
9781 1.61 christos cat >>$CONFIG_STATUS <<_ACEOF
9782 1.1 tv ac_cs_version="\\
9783 1.1 tv libnbcompat config.status noversion
9784 1.61 christos configured by $0, generated by GNU Autoconf 2.59,
9785 1.1 tv with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9786 1.1 tv
9787 1.61 christos Copyright (C) 2003 Free Software Foundation, Inc.
9788 1.1 tv This config.status script is free software; the Free Software Foundation
9789 1.1 tv gives unlimited permission to copy, distribute and modify it."
9790 1.1 tv srcdir=$srcdir
9791 1.61 christos _ACEOF
9792 1.1 tv
9793 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
9794 1.1 tv # If no file are specified by the user, then we need to provide default
9795 1.1 tv # value. By we need to know if files were specified by the user.
9796 1.1 tv ac_need_defaults=:
9797 1.1 tv while test $# != 0
9798 1.1 tv do
9799 1.1 tv case $1 in
9800 1.1 tv --*=*)
9801 1.1 tv ac_option=`expr "x$1" : 'x\([^=]*\)='`
9802 1.1 tv ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9803 1.61 christos ac_shift=:
9804 1.61 christos ;;
9805 1.61 christos -*)
9806 1.61 christos ac_option=$1
9807 1.61 christos ac_optarg=$2
9808 1.61 christos ac_shift=shift
9809 1.1 tv ;;
9810 1.1 tv *) # This is not an option, so the user has probably given explicit
9811 1.1 tv # arguments.
9812 1.61 christos ac_option=$1
9813 1.1 tv ac_need_defaults=false;;
9814 1.1 tv esac
9815 1.1 tv
9816 1.61 christos case $ac_option in
9817 1.1 tv # Handling of the options.
9818 1.61 christos _ACEOF
9819 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
9820 1.1 tv -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9821 1.61 christos ac_cs_recheck=: ;;
9822 1.1 tv --version | --vers* | -V )
9823 1.1 tv echo "$ac_cs_version"; exit 0 ;;
9824 1.1 tv --he | --h)
9825 1.1 tv # Conflict between --help and --header
9826 1.61 christos { { echo "$as_me:$LINENO: error: ambiguous option: $1
9827 1.1 tv Try \`$0 --help' for more information." >&5
9828 1.1 tv echo "$as_me: error: ambiguous option: $1
9829 1.1 tv Try \`$0 --help' for more information." >&2;}
9830 1.1 tv { (exit 1); exit 1; }; };;
9831 1.1 tv --help | --hel | -h )
9832 1.1 tv echo "$ac_cs_usage"; exit 0 ;;
9833 1.1 tv --debug | --d* | -d )
9834 1.1 tv debug=: ;;
9835 1.1 tv --file | --fil | --fi | --f )
9836 1.61 christos $ac_shift
9837 1.61 christos CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9838 1.1 tv ac_need_defaults=false;;
9839 1.1 tv --header | --heade | --head | --hea )
9840 1.61 christos $ac_shift
9841 1.61 christos CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9842 1.1 tv ac_need_defaults=false;;
9843 1.61 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9844 1.61 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
9845 1.61 christos ac_cs_silent=: ;;
9846 1.1 tv
9847 1.1 tv # This is an error.
9848 1.61 christos -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9849 1.1 tv Try \`$0 --help' for more information." >&5
9850 1.1 tv echo "$as_me: error: unrecognized option: $1
9851 1.1 tv Try \`$0 --help' for more information." >&2;}
9852 1.1 tv { (exit 1); exit 1; }; } ;;
9853 1.1 tv
9854 1.1 tv *) ac_config_targets="$ac_config_targets $1" ;;
9855 1.1 tv
9856 1.1 tv esac
9857 1.1 tv shift
9858 1.1 tv done
9859 1.1 tv
9860 1.61 christos ac_configure_extra_args=
9861 1.1 tv
9862 1.61 christos if $ac_cs_silent; then
9863 1.61 christos exec 6>/dev/null
9864 1.61 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
9865 1.61 christos fi
9866 1.1 tv
9867 1.61 christos _ACEOF
9868 1.61 christos cat >>$CONFIG_STATUS <<_ACEOF
9869 1.61 christos if \$ac_cs_recheck; then
9870 1.61 christos echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9871 1.61 christos exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9872 1.61 christos fi
9873 1.1 tv
9874 1.1 tv _ACEOF
9875 1.1 tv
9876 1.61 christos
9877 1.61 christos
9878 1.61 christos
9879 1.61 christos
9880 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
9881 1.1 tv for ac_config_target in $ac_config_targets
9882 1.1 tv do
9883 1.1 tv case "$ac_config_target" in
9884 1.1 tv # Handling of arguments.
9885 1.1 tv "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
9886 1.57 wiz "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
9887 1.61 christos *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9888 1.1 tv echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9889 1.1 tv { (exit 1); exit 1; }; };;
9890 1.1 tv esac
9891 1.1 tv done
9892 1.1 tv
9893 1.1 tv # If the user did not use the arguments to specify the items to instantiate,
9894 1.1 tv # then the envvar interface is used. Set only those that are not.
9895 1.1 tv # We use the long form for the default assignment because of an extremely
9896 1.1 tv # bizarre bug on SunOS 4.1.3.
9897 1.1 tv if $ac_need_defaults; then
9898 1.1 tv test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9899 1.1 tv test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9900 1.1 tv fi
9901 1.1 tv
9902 1.61 christos # Have a temporary directory for convenience. Make it in the build tree
9903 1.61 christos # simply because there is no reason to put it here, and in addition,
9904 1.61 christos # creating and moving files from /tmp can sometimes cause problems.
9905 1.1 tv # Create a temporary directory, and hook for its removal unless debugging.
9906 1.1 tv $debug ||
9907 1.1 tv {
9908 1.1 tv trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9909 1.1 tv trap '{ (exit 1); exit 1; }' 1 2 13 15
9910 1.1 tv }
9911 1.1 tv
9912 1.1 tv # Create a (secure) tmp directory for tmp files.
9913 1.61 christos
9914 1.1 tv {
9915 1.61 christos tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9916 1.1 tv test -n "$tmp" && test -d "$tmp"
9917 1.1 tv } ||
9918 1.1 tv {
9919 1.61 christos tmp=./confstat$$-$RANDOM
9920 1.1 tv (umask 077 && mkdir $tmp)
9921 1.1 tv } ||
9922 1.1 tv {
9923 1.61 christos echo "$me: cannot create a temporary directory in ." >&2
9924 1.1 tv { (exit 1); exit 1; }
9925 1.1 tv }
9926 1.1 tv
9927 1.61 christos _ACEOF
9928 1.1 tv
9929 1.61 christos cat >>$CONFIG_STATUS <<_ACEOF
9930 1.1 tv
9931 1.1 tv #
9932 1.1 tv # CONFIG_FILES section.
9933 1.1 tv #
9934 1.1 tv
9935 1.1 tv # No need to generate the scripts if there are no CONFIG_FILES.
9936 1.1 tv # This happens for instance when ./config.status config.h
9937 1.1 tv if test -n "\$CONFIG_FILES"; then
9938 1.1 tv # Protect against being on the right side of a sed subst in config.status.
9939 1.1 tv sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9940 1.1 tv s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9941 1.1 tv s,@SHELL@,$SHELL,;t t
9942 1.61 christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9943 1.61 christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9944 1.61 christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9945 1.61 christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9946 1.61 christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9947 1.61 christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9948 1.1 tv s,@exec_prefix@,$exec_prefix,;t t
9949 1.1 tv s,@prefix@,$prefix,;t t
9950 1.1 tv s,@program_transform_name@,$program_transform_name,;t t
9951 1.1 tv s,@bindir@,$bindir,;t t
9952 1.1 tv s,@sbindir@,$sbindir,;t t
9953 1.1 tv s,@libexecdir@,$libexecdir,;t t
9954 1.1 tv s,@datadir@,$datadir,;t t
9955 1.1 tv s,@sysconfdir@,$sysconfdir,;t t
9956 1.1 tv s,@sharedstatedir@,$sharedstatedir,;t t
9957 1.1 tv s,@localstatedir@,$localstatedir,;t t
9958 1.1 tv s,@libdir@,$libdir,;t t
9959 1.1 tv s,@includedir@,$includedir,;t t
9960 1.1 tv s,@oldincludedir@,$oldincludedir,;t t
9961 1.1 tv s,@infodir@,$infodir,;t t
9962 1.1 tv s,@mandir@,$mandir,;t t
9963 1.1 tv s,@build_alias@,$build_alias,;t t
9964 1.1 tv s,@host_alias@,$host_alias,;t t
9965 1.1 tv s,@target_alias@,$target_alias,;t t
9966 1.61 christos s,@DEFS@,$DEFS,;t t
9967 1.1 tv s,@ECHO_C@,$ECHO_C,;t t
9968 1.1 tv s,@ECHO_N@,$ECHO_N,;t t
9969 1.1 tv s,@ECHO_T@,$ECHO_T,;t t
9970 1.1 tv s,@LIBS@,$LIBS,;t t
9971 1.1 tv s,@CC@,$CC,;t t
9972 1.1 tv s,@CFLAGS@,$CFLAGS,;t t
9973 1.1 tv s,@LDFLAGS@,$LDFLAGS,;t t
9974 1.1 tv s,@CPPFLAGS@,$CPPFLAGS,;t t
9975 1.1 tv s,@ac_ct_CC@,$ac_ct_CC,;t t
9976 1.1 tv s,@EXEEXT@,$EXEEXT,;t t
9977 1.1 tv s,@OBJEXT@,$OBJEXT,;t t
9978 1.1 tv s,@CPP@,$CPP,;t t
9979 1.61 christos s,@EGREP@,$EGREP,;t t
9980 1.45 jmc s,@BSHELL@,$BSHELL,;t t
9981 1.19 bjh21 s,@ALLOCA@,$ALLOCA,;t t
9982 1.61 christos s,@LIBOBJS@,$LIBOBJS,;t t
9983 1.61 christos s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9984 1.1 tv CEOF
9985 1.1 tv
9986 1.61 christos _ACEOF
9987 1.1 tv
9988 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
9989 1.1 tv # Split the substitutions into bite-sized pieces for seds with
9990 1.1 tv # small command number limits, like on Digital OSF/1 and HP-UX.
9991 1.1 tv ac_max_sed_lines=48
9992 1.1 tv ac_sed_frag=1 # Number of current file.
9993 1.1 tv ac_beg=1 # First line for current file.
9994 1.1 tv ac_end=$ac_max_sed_lines # Line after last line for current file.
9995 1.1 tv ac_more_lines=:
9996 1.1 tv ac_sed_cmds=
9997 1.1 tv while $ac_more_lines; do
9998 1.1 tv if test $ac_beg -gt 1; then
9999 1.1 tv sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10000 1.1 tv else
10001 1.1 tv sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10002 1.1 tv fi
10003 1.1 tv if test ! -s $tmp/subs.frag; then
10004 1.1 tv ac_more_lines=false
10005 1.1 tv else
10006 1.1 tv # The purpose of the label and of the branching condition is to
10007 1.1 tv # speed up the sed processing (if there are no `@' at all, there
10008 1.1 tv # is no need to browse any of the substitutions).
10009 1.1 tv # These are the two extra sed commands mentioned above.
10010 1.1 tv (echo ':t
10011 1.1 tv /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10012 1.1 tv if test -z "$ac_sed_cmds"; then
10013 1.61 christos ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10014 1.1 tv else
10015 1.61 christos ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10016 1.1 tv fi
10017 1.1 tv ac_sed_frag=`expr $ac_sed_frag + 1`
10018 1.1 tv ac_beg=$ac_end
10019 1.1 tv ac_end=`expr $ac_end + $ac_max_sed_lines`
10020 1.1 tv fi
10021 1.1 tv done
10022 1.1 tv if test -z "$ac_sed_cmds"; then
10023 1.1 tv ac_sed_cmds=cat
10024 1.1 tv fi
10025 1.1 tv fi # test -n "$CONFIG_FILES"
10026 1.1 tv
10027 1.61 christos _ACEOF
10028 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
10029 1.1 tv for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10030 1.1 tv # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10031 1.1 tv case $ac_file in
10032 1.1 tv - | *:- | *:-:* ) # input from stdin
10033 1.61 christos cat >$tmp/stdin
10034 1.61 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10035 1.61 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10036 1.1 tv *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10037 1.61 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10038 1.1 tv * ) ac_file_in=$ac_file.in ;;
10039 1.1 tv esac
10040 1.1 tv
10041 1.1 tv # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10042 1.61 christos ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10043 1.61 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10044 1.61 christos X"$ac_file" : 'X\(//\)[^/]' \| \
10045 1.61 christos X"$ac_file" : 'X\(//\)$' \| \
10046 1.61 christos X"$ac_file" : 'X\(/\)' \| \
10047 1.61 christos . : '\(.\)' 2>/dev/null ||
10048 1.1 tv echo X"$ac_file" |
10049 1.1 tv sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10050 1.1 tv /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10051 1.1 tv /^X\(\/\/\)$/{ s//\1/; q; }
10052 1.1 tv /^X\(\/\).*/{ s//\1/; q; }
10053 1.1 tv s/.*/./; q'`
10054 1.61 christos { if $as_mkdir_p; then
10055 1.61 christos mkdir -p "$ac_dir"
10056 1.61 christos else
10057 1.61 christos as_dir="$ac_dir"
10058 1.61 christos as_dirs=
10059 1.61 christos while test ! -d "$as_dir"; do
10060 1.61 christos as_dirs="$as_dir $as_dirs"
10061 1.61 christos as_dir=`(dirname "$as_dir") 2>/dev/null ||
10062 1.61 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10063 1.61 christos X"$as_dir" : 'X\(//\)[^/]' \| \
10064 1.61 christos X"$as_dir" : 'X\(//\)$' \| \
10065 1.61 christos X"$as_dir" : 'X\(/\)' \| \
10066 1.61 christos . : '\(.\)' 2>/dev/null ||
10067 1.61 christos echo X"$as_dir" |
10068 1.61 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10069 1.61 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10070 1.61 christos /^X\(\/\/\)$/{ s//\1/; q; }
10071 1.61 christos /^X\(\/\).*/{ s//\1/; q; }
10072 1.61 christos s/.*/./; q'`
10073 1.61 christos done
10074 1.61 christos test ! -n "$as_dirs" || mkdir $as_dirs
10075 1.61 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10076 1.61 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10077 1.61 christos { (exit 1); exit 1; }; }; }
10078 1.61 christos
10079 1.61 christos ac_builddir=.
10080 1.61 christos
10081 1.61 christos if test "$ac_dir" != .; then
10082 1.61 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10083 1.61 christos # A "../" for each directory in $ac_dir_suffix.
10084 1.61 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10085 1.61 christos else
10086 1.61 christos ac_dir_suffix= ac_top_builddir=
10087 1.61 christos fi
10088 1.61 christos
10089 1.61 christos case $srcdir in
10090 1.61 christos .) # No --srcdir option. We are building in place.
10091 1.61 christos ac_srcdir=.
10092 1.61 christos if test -z "$ac_top_builddir"; then
10093 1.61 christos ac_top_srcdir=.
10094 1.61 christos else
10095 1.61 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10096 1.61 christos fi ;;
10097 1.61 christos [\\/]* | ?:[\\/]* ) # Absolute path.
10098 1.61 christos ac_srcdir=$srcdir$ac_dir_suffix;
10099 1.61 christos ac_top_srcdir=$srcdir ;;
10100 1.61 christos *) # Relative path.
10101 1.61 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10102 1.61 christos ac_top_srcdir=$ac_top_builddir$srcdir ;;
10103 1.61 christos esac
10104 1.61 christos
10105 1.61 christos # Do not use `cd foo && pwd` to compute absolute paths, because
10106 1.61 christos # the directories may not exist.
10107 1.61 christos case `pwd` in
10108 1.61 christos .) ac_abs_builddir="$ac_dir";;
10109 1.61 christos *)
10110 1.61 christos case "$ac_dir" in
10111 1.61 christos .) ac_abs_builddir=`pwd`;;
10112 1.61 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10113 1.61 christos *) ac_abs_builddir=`pwd`/"$ac_dir";;
10114 1.61 christos esac;;
10115 1.61 christos esac
10116 1.61 christos case $ac_abs_builddir in
10117 1.61 christos .) ac_abs_top_builddir=${ac_top_builddir}.;;
10118 1.61 christos *)
10119 1.61 christos case ${ac_top_builddir}. in
10120 1.61 christos .) ac_abs_top_builddir=$ac_abs_builddir;;
10121 1.61 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10122 1.61 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10123 1.61 christos esac;;
10124 1.61 christos esac
10125 1.61 christos case $ac_abs_builddir in
10126 1.61 christos .) ac_abs_srcdir=$ac_srcdir;;
10127 1.61 christos *)
10128 1.61 christos case $ac_srcdir in
10129 1.61 christos .) ac_abs_srcdir=$ac_abs_builddir;;
10130 1.61 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10131 1.61 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10132 1.61 christos esac;;
10133 1.61 christos esac
10134 1.61 christos case $ac_abs_builddir in
10135 1.61 christos .) ac_abs_top_srcdir=$ac_top_srcdir;;
10136 1.61 christos *)
10137 1.61 christos case $ac_top_srcdir in
10138 1.61 christos .) ac_abs_top_srcdir=$ac_abs_builddir;;
10139 1.61 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10140 1.61 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10141 1.61 christos esac;;
10142 1.50 jmc esac
10143 1.1 tv
10144 1.1 tv
10145 1.1 tv
10146 1.1 tv if test x"$ac_file" != x-; then
10147 1.61 christos { echo "$as_me:$LINENO: creating $ac_file" >&5
10148 1.1 tv echo "$as_me: creating $ac_file" >&6;}
10149 1.1 tv rm -f "$ac_file"
10150 1.1 tv fi
10151 1.1 tv # Let's still pretend it is `configure' which instantiates (i.e., don't
10152 1.1 tv # use $as_me), people would be surprised to read:
10153 1.61 christos # /* config.h. Generated by config.status. */
10154 1.61 christos if test x"$ac_file" = x-; then
10155 1.61 christos configure_input=
10156 1.61 christos else
10157 1.61 christos configure_input="$ac_file. "
10158 1.61 christos fi
10159 1.61 christos configure_input=$configure_input"Generated from `echo $ac_file_in |
10160 1.61 christos sed 's,.*/,,'` by configure."
10161 1.1 tv
10162 1.1 tv # First look for the input files in the build tree, otherwise in the
10163 1.1 tv # src tree.
10164 1.1 tv ac_file_inputs=`IFS=:
10165 1.1 tv for f in $ac_file_in; do
10166 1.1 tv case $f in
10167 1.1 tv -) echo $tmp/stdin ;;
10168 1.1 tv [\\/$]*)
10169 1.61 christos # Absolute (can't be DOS-style, as IFS=:)
10170 1.61 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10171 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
10172 1.1 tv { (exit 1); exit 1; }; }
10173 1.61 christos echo "$f";;
10174 1.1 tv *) # Relative
10175 1.61 christos if test -f "$f"; then
10176 1.61 christos # Build tree
10177 1.61 christos echo "$f"
10178 1.61 christos elif test -f "$srcdir/$f"; then
10179 1.61 christos # Source tree
10180 1.61 christos echo "$srcdir/$f"
10181 1.61 christos else
10182 1.61 christos # /dev/null tree
10183 1.61 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10184 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
10185 1.1 tv { (exit 1); exit 1; }; }
10186 1.61 christos fi;;
10187 1.1 tv esac
10188 1.1 tv done` || { (exit 1); exit 1; }
10189 1.61 christos _ACEOF
10190 1.61 christos cat >>$CONFIG_STATUS <<_ACEOF
10191 1.1 tv sed "$ac_vpsub
10192 1.1 tv $extrasub
10193 1.61 christos _ACEOF
10194 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
10195 1.1 tv :t
10196 1.1 tv /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10197 1.1 tv s,@configure_input@,$configure_input,;t t
10198 1.1 tv s,@srcdir@,$ac_srcdir,;t t
10199 1.61 christos s,@abs_srcdir@,$ac_abs_srcdir,;t t
10200 1.1 tv s,@top_srcdir@,$ac_top_srcdir,;t t
10201 1.61 christos s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10202 1.61 christos s,@builddir@,$ac_builddir,;t t
10203 1.61 christos s,@abs_builddir@,$ac_abs_builddir,;t t
10204 1.61 christos s,@top_builddir@,$ac_top_builddir,;t t
10205 1.61 christos s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10206 1.1 tv " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10207 1.1 tv rm -f $tmp/stdin
10208 1.1 tv if test x"$ac_file" != x-; then
10209 1.1 tv mv $tmp/out $ac_file
10210 1.1 tv else
10211 1.1 tv cat $tmp/out
10212 1.1 tv rm -f $tmp/out
10213 1.1 tv fi
10214 1.1 tv
10215 1.1 tv done
10216 1.61 christos _ACEOF
10217 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
10218 1.1 tv
10219 1.1 tv #
10220 1.1 tv # CONFIG_HEADER section.
10221 1.1 tv #
10222 1.1 tv
10223 1.1 tv # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10224 1.1 tv # NAME is the cpp macro being defined and VALUE is the value it is being given.
10225 1.1 tv #
10226 1.1 tv # ac_d sets the value in "#define NAME VALUE" lines.
10227 1.61 christos ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10228 1.61 christos ac_dB='[ ].*$,\1#\2'
10229 1.1 tv ac_dC=' '
10230 1.1 tv ac_dD=',;t'
10231 1.1 tv # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10232 1.61 christos ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10233 1.1 tv ac_uB='$,\1#\2define\3'
10234 1.1 tv ac_uC=' '
10235 1.1 tv ac_uD=',;t'
10236 1.1 tv
10237 1.1 tv for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10238 1.1 tv # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10239 1.1 tv case $ac_file in
10240 1.1 tv - | *:- | *:-:* ) # input from stdin
10241 1.61 christos cat >$tmp/stdin
10242 1.61 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10243 1.61 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10244 1.1 tv *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10245 1.61 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10246 1.1 tv * ) ac_file_in=$ac_file.in ;;
10247 1.1 tv esac
10248 1.1 tv
10249 1.61 christos test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10250 1.1 tv echo "$as_me: creating $ac_file" >&6;}
10251 1.1 tv
10252 1.1 tv # First look for the input files in the build tree, otherwise in the
10253 1.1 tv # src tree.
10254 1.1 tv ac_file_inputs=`IFS=:
10255 1.1 tv for f in $ac_file_in; do
10256 1.1 tv case $f in
10257 1.1 tv -) echo $tmp/stdin ;;
10258 1.1 tv [\\/$]*)
10259 1.61 christos # Absolute (can't be DOS-style, as IFS=:)
10260 1.61 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10261 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
10262 1.1 tv { (exit 1); exit 1; }; }
10263 1.61 christos # Do quote $f, to prevent DOS paths from being IFS'd.
10264 1.61 christos echo "$f";;
10265 1.1 tv *) # Relative
10266 1.61 christos if test -f "$f"; then
10267 1.61 christos # Build tree
10268 1.61 christos echo "$f"
10269 1.61 christos elif test -f "$srcdir/$f"; then
10270 1.61 christos # Source tree
10271 1.61 christos echo "$srcdir/$f"
10272 1.61 christos else
10273 1.61 christos # /dev/null tree
10274 1.61 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10275 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
10276 1.1 tv { (exit 1); exit 1; }; }
10277 1.61 christos fi;;
10278 1.1 tv esac
10279 1.1 tv done` || { (exit 1); exit 1; }
10280 1.1 tv # Remove the trailing spaces.
10281 1.61 christos sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10282 1.1 tv
10283 1.61 christos _ACEOF
10284 1.1 tv
10285 1.1 tv # Transform confdefs.h into two sed scripts, `conftest.defines' and
10286 1.1 tv # `conftest.undefs', that substitutes the proper values into
10287 1.1 tv # config.h.in to produce config.h. The first handles `#define'
10288 1.1 tv # templates, and the second `#undef' templates.
10289 1.1 tv # And first: Protect against being on the right side of a sed subst in
10290 1.1 tv # config.status. Protect against being in an unquoted here document
10291 1.1 tv # in config.status.
10292 1.1 tv rm -f conftest.defines conftest.undefs
10293 1.1 tv # Using a here document instead of a string reduces the quoting nightmare.
10294 1.1 tv # Putting comments in sed scripts is not portable.
10295 1.1 tv #
10296 1.1 tv # `end' is used to avoid that the second main sed command (meant for
10297 1.1 tv # 0-ary CPP macros) applies to n-ary macro definitions.
10298 1.1 tv # See the Autoconf documentation for `clear'.
10299 1.61 christos cat >confdef2sed.sed <<\_ACEOF
10300 1.1 tv s/[\\&,]/\\&/g
10301 1.1 tv s,[\\$`],\\&,g
10302 1.1 tv t clear
10303 1.1 tv : clear
10304 1.61 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10305 1.1 tv t end
10306 1.61 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10307 1.1 tv : end
10308 1.61 christos _ACEOF
10309 1.1 tv # If some macros were called several times there might be several times
10310 1.1 tv # the same #defines, which is useless. Nevertheless, we may not want to
10311 1.1 tv # sort them, since we want the *last* AC-DEFINE to be honored.
10312 1.1 tv uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10313 1.1 tv sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10314 1.1 tv rm -f confdef2sed.sed
10315 1.1 tv
10316 1.1 tv # This sed command replaces #undef with comments. This is necessary, for
10317 1.1 tv # example, in the case of _POSIX_SOURCE, which is predefined and required
10318 1.1 tv # on some systems where configure will not decide to define it.
10319 1.61 christos cat >>conftest.undefs <<\_ACEOF
10320 1.61 christos s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10321 1.61 christos _ACEOF
10322 1.1 tv
10323 1.1 tv # Break up conftest.defines because some shells have a limit on the size
10324 1.1 tv # of here documents, and old seds have small limits too (100 cmds).
10325 1.1 tv echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10326 1.61 christos echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10327 1.1 tv echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10328 1.1 tv echo ' :' >>$CONFIG_STATUS
10329 1.1 tv rm -f conftest.tail
10330 1.1 tv while grep . conftest.defines >/dev/null
10331 1.1 tv do
10332 1.1 tv # Write a limited-size here document to $tmp/defines.sed.
10333 1.1 tv echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10334 1.1 tv # Speed up: don't consider the non `#define' lines.
10335 1.61 christos echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10336 1.1 tv # Work around the forget-to-reset-the-flag bug.
10337 1.1 tv echo 't clr' >>$CONFIG_STATUS
10338 1.1 tv echo ': clr' >>$CONFIG_STATUS
10339 1.1 tv sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10340 1.1 tv echo 'CEOF
10341 1.1 tv sed -f $tmp/defines.sed $tmp/in >$tmp/out
10342 1.1 tv rm -f $tmp/in
10343 1.1 tv mv $tmp/out $tmp/in
10344 1.1 tv ' >>$CONFIG_STATUS
10345 1.1 tv sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10346 1.1 tv rm -f conftest.defines
10347 1.1 tv mv conftest.tail conftest.defines
10348 1.1 tv done
10349 1.1 tv rm -f conftest.defines
10350 1.61 christos echo ' fi # grep' >>$CONFIG_STATUS
10351 1.1 tv echo >>$CONFIG_STATUS
10352 1.1 tv
10353 1.1 tv # Break up conftest.undefs because some shells have a limit on the size
10354 1.1 tv # of here documents, and old seds have small limits too (100 cmds).
10355 1.1 tv echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10356 1.1 tv rm -f conftest.tail
10357 1.1 tv while grep . conftest.undefs >/dev/null
10358 1.1 tv do
10359 1.1 tv # Write a limited-size here document to $tmp/undefs.sed.
10360 1.1 tv echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10361 1.1 tv # Speed up: don't consider the non `#undef'
10362 1.61 christos echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10363 1.1 tv # Work around the forget-to-reset-the-flag bug.
10364 1.1 tv echo 't clr' >>$CONFIG_STATUS
10365 1.1 tv echo ': clr' >>$CONFIG_STATUS
10366 1.1 tv sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10367 1.1 tv echo 'CEOF
10368 1.1 tv sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10369 1.1 tv rm -f $tmp/in
10370 1.1 tv mv $tmp/out $tmp/in
10371 1.1 tv ' >>$CONFIG_STATUS
10372 1.1 tv sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10373 1.1 tv rm -f conftest.undefs
10374 1.1 tv mv conftest.tail conftest.undefs
10375 1.1 tv done
10376 1.1 tv rm -f conftest.undefs
10377 1.1 tv
10378 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
10379 1.1 tv # Let's still pretend it is `configure' which instantiates (i.e., don't
10380 1.1 tv # use $as_me), people would be surprised to read:
10381 1.61 christos # /* config.h. Generated by config.status. */
10382 1.1 tv if test x"$ac_file" = x-; then
10383 1.61 christos echo "/* Generated by configure. */" >$tmp/config.h
10384 1.1 tv else
10385 1.61 christos echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10386 1.1 tv fi
10387 1.1 tv cat $tmp/in >>$tmp/config.h
10388 1.1 tv rm -f $tmp/in
10389 1.1 tv if test x"$ac_file" != x-; then
10390 1.61 christos if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10391 1.61 christos { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10392 1.1 tv echo "$as_me: $ac_file is unchanged" >&6;}
10393 1.1 tv else
10394 1.61 christos ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10395 1.61 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10396 1.61 christos X"$ac_file" : 'X\(//\)[^/]' \| \
10397 1.61 christos X"$ac_file" : 'X\(//\)$' \| \
10398 1.61 christos X"$ac_file" : 'X\(/\)' \| \
10399 1.61 christos . : '\(.\)' 2>/dev/null ||
10400 1.1 tv echo X"$ac_file" |
10401 1.1 tv sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10402 1.1 tv /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10403 1.1 tv /^X\(\/\/\)$/{ s//\1/; q; }
10404 1.1 tv /^X\(\/\).*/{ s//\1/; q; }
10405 1.1 tv s/.*/./; q'`
10406 1.61 christos { if $as_mkdir_p; then
10407 1.61 christos mkdir -p "$ac_dir"
10408 1.61 christos else
10409 1.61 christos as_dir="$ac_dir"
10410 1.61 christos as_dirs=
10411 1.61 christos while test ! -d "$as_dir"; do
10412 1.61 christos as_dirs="$as_dir $as_dirs"
10413 1.61 christos as_dir=`(dirname "$as_dir") 2>/dev/null ||
10414 1.61 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10415 1.61 christos X"$as_dir" : 'X\(//\)[^/]' \| \
10416 1.61 christos X"$as_dir" : 'X\(//\)$' \| \
10417 1.61 christos X"$as_dir" : 'X\(/\)' \| \
10418 1.61 christos . : '\(.\)' 2>/dev/null ||
10419 1.61 christos echo X"$as_dir" |
10420 1.61 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10421 1.61 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10422 1.61 christos /^X\(\/\/\)$/{ s//\1/; q; }
10423 1.61 christos /^X\(\/\).*/{ s//\1/; q; }
10424 1.61 christos s/.*/./; q'`
10425 1.61 christos done
10426 1.61 christos test ! -n "$as_dirs" || mkdir $as_dirs
10427 1.61 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10428 1.61 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10429 1.61 christos { (exit 1); exit 1; }; }; }
10430 1.1 tv
10431 1.1 tv rm -f $ac_file
10432 1.1 tv mv $tmp/config.h $ac_file
10433 1.1 tv fi
10434 1.1 tv else
10435 1.1 tv cat $tmp/config.h
10436 1.1 tv rm -f $tmp/config.h
10437 1.1 tv fi
10438 1.1 tv done
10439 1.61 christos _ACEOF
10440 1.1 tv
10441 1.61 christos cat >>$CONFIG_STATUS <<\_ACEOF
10442 1.1 tv
10443 1.1 tv { (exit 0); exit 0; }
10444 1.61 christos _ACEOF
10445 1.1 tv chmod +x $CONFIG_STATUS
10446 1.1 tv ac_clean_files=$ac_clean_files_save
10447 1.1 tv
10448 1.61 christos
10449 1.1 tv # configure is writing to config.log, and then calls config.status.
10450 1.1 tv # config.status does its own redirection, appending to config.log.
10451 1.1 tv # Unfortunately, on DOS this fails, as config.log is still kept open
10452 1.1 tv # by configure, so config.status won't be able to write to it; its
10453 1.1 tv # output is simply discarded. So we exec the FD to /dev/null,
10454 1.1 tv # effectively closing config.log, so it can be properly (re)opened and
10455 1.1 tv # appended to by config.status. When coming back to configure, we
10456 1.1 tv # need to make the FD available again.
10457 1.1 tv if test "$no_create" != yes; then
10458 1.1 tv ac_cs_success=:
10459 1.61 christos ac_config_status_args=
10460 1.61 christos test "$silent" = yes &&
10461 1.61 christos ac_config_status_args="$ac_config_status_args --quiet"
10462 1.1 tv exec 5>/dev/null
10463 1.61 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10464 1.1 tv exec 5>>config.log
10465 1.1 tv # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10466 1.1 tv # would make configure fail if this is the last instruction.
10467 1.1 tv $ac_cs_success || { (exit 1); exit 1; }
10468 1.1 tv fi
10469 1.1 tv
10470