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