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