Index: arm/ChangeLog
[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
b7026657
AC
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 SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile CPP_FOR_TARGET TARGET_SUBDIR LIBOBJS LTLIBOBJS'
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]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861
862Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-included-gettext use the GNU gettext library included here
866
867Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
875
876Use these variables to override the choices made by `configure' or to help
877it to find libraries and programs with nonstandard names/locations.
878
879_ACEOF
c906108c
SS
880fi
881
b7026657
AC
882if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
884 ac_popdir=`pwd`
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
887 ac_builddir=.
c906108c 888
b7026657
AC
889if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
c906108c 893else
b7026657 894 ac_dir_suffix= ac_top_builddir=
c906108c
SS
895fi
896
b7026657
AC
897case $srcdir in
898 .) # No --srcdir option. We are building in place.
899 ac_srcdir=.
900 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=.
902 else
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 fi ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
908 *) # Relative path.
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911esac
912
913# Do not use `cd foo && pwd` to compute absolute paths, because
914# the directories may not exist.
915case `pwd` in
916.) ac_abs_builddir="$ac_dir";;
917*)
918 case "$ac_dir" in
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 esac;;
923esac
924case $ac_abs_builddir in
925.) ac_abs_top_builddir=${ac_top_builddir}.;;
926*)
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_srcdir=$ac_srcdir;;
935*)
936 case $ac_srcdir in
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_top_srcdir=$ac_top_srcdir;;
944*)
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 esac;;
950esac
951
952 cd $ac_dir
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
955 echo
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
958 echo
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
962 echo
963 $ac_configure --help
964 else
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 fi
967 cd $ac_popdir
968 done
c906108c 969fi
b7026657
AC
970
971test -n "$ac_init_help" && exit 0
972if $ac_init_version; then
973 cat <<\_ACEOF
974
975Copyright (C) 2003 Free Software Foundation, Inc.
976This configure script is free software; the Free Software Foundation
977gives unlimited permission to copy, distribute and modify it.
978_ACEOF
979 exit 0
980fi
981exec 5>config.log
982cat >&5 <<_ACEOF
983This file contains any messages produced by compilers while
984running configure, to aid debugging if configure makes a mistake.
985
986It was created by $as_me, which was
987generated by GNU Autoconf 2.59. Invocation command line was
988
989 $ $0 $@
990
991_ACEOF
992{
993cat <<_ASUNAME
994## --------- ##
995## Platform. ##
996## --------- ##
997
998hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003
1004/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006
1007/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014
1015_ASUNAME
1016
1017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018for as_dir in $PATH
1019do
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023done
1024
1025} >&5
1026
1027cat >&5 <<_ACEOF
1028
1029
1030## ----------- ##
1031## Core tests. ##
1032## ----------- ##
1033
1034_ACEOF
1035
1036
1037# Keep a trace of the command line.
1038# Strip out --no-create and --no-recursion so they do not pile up.
1039# Strip out --silent because we don't want to record it for future runs.
1040# Also quote any args containing shell meta-characters.
1041# Make two passes to allow for proper duplicate-argument suppression.
1042ac_configure_args=
1043ac_configure_args0=
1044ac_configure_args1=
1045ac_sep=
1046ac_must_keep_next=false
1047for ac_pass in 1 2
1048do
1049 for ac_arg
1050 do
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 2)
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1074 ;;
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1077 fi
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1081 ;;
1082 esac
1083 done
1084done
1085$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087
1088# When interrupted or exit'd, cleanup temporary files, and complete
1089# config.log. We remove comments because anyway the quotes in there
1090# would cause problems or look ugly.
1091# WARNING: Be sure not to use single quotes in there, as some shells,
1092# such as our DU 5.0 friend, will then `close' the trap.
1093trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1095 {
1096 echo
1097
1098 cat <<\_ASBOX
1099## ---------------- ##
1100## Cache variables. ##
1101## ---------------- ##
1102_ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1105{
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112 ;;
1113 *)
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ;;
1117 esac;
1118}
1119 echo
1120
1121 cat <<\_ASBOX
1122## ----------------- ##
1123## Output variables. ##
1124## ----------------- ##
1125_ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1128 do
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1133
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136## ------------- ##
1137## Output files. ##
1138## ------------- ##
1139_ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1142 do
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1147 fi
1148
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151## ----------- ##
1152## confdefs.h. ##
1153## ----------- ##
1154_ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1158 fi
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1166 ' 0
1167for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169done
1170ac_signal=0
1171
1172# confdefs.h avoids OS command line length limits that DEFS can exceed.
1173rm -rf conftest* confdefs.h
1174# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175echo >confdefs.h
1176
1177# Predefined preprocessor variables.
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_NAME "$PACKAGE_NAME"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_VERSION "$PACKAGE_VERSION"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_STRING "$PACKAGE_STRING"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201_ACEOF
1202
1203
1204# Let the site file select an alternate cache file if it wants to.
1205# Prefer explicitly selected file to automatically selected ones.
1206if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 fi
1212fi
1213for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1219 fi
1220done
1221
1222if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1232 fi
1233else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1237fi
1238
1239# Check that the precious variables saved in the cache have kept the same
1240# value.
1241ac_cache_corrupted=false
1242for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1258 *)
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1280 fi
1281done
1282if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1288fi
1289
1290ac_ext=c
1291ac_cpp='$CPP $CPPFLAGS'
1292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
35695fd6
AC
1314 ac_config_headers="$ac_config_headers cconfig.h:config.in"
1315
1316
1317# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1318# it by inlining the macro's contents.
1319# This file contains common code used by all simulators.
1320#
1321# common.m4 invokes AC macros used by all simulators and by the common
1322# directory. It is intended to be included before any target specific
1323# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1324# the Makefile. It is intended to be invoked last.
1325#
1326# The simulator's configure.in should look like:
1327#
1328# dnl Process this file with autoconf to produce a configure script.
1329# AC_PREREQ(2.5)dnl
1330# AC_INIT(Makefile.in)
1331# AC_CONFIG_HEADER(config.h:config.in)
1332#
1333# sinclude(../common/aclocal.m4)
1334# sinclude(../common/common.m4)
1335#
1336# ... target specific stuff ...
b7026657 1337
b7026657
AC
1338ac_aux_dir=
1339for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1352 fi
1353done
1354if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1358fi
1359ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363# Make sure we can run config.sub.
1364$ac_config_sub sun4 >/dev/null 2>&1 ||
1365 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1366echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369echo "$as_me:$LINENO: checking build system type" >&5
1370echo $ECHO_N "checking build system type... $ECHO_C" >&6
1371if test "${ac_cv_build+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373else
1374 ac_cv_build_alias=$build_alias
1375test -z "$ac_cv_build_alias" &&
1376 ac_cv_build_alias=`$ac_config_guess`
1377test -z "$ac_cv_build_alias" &&
1378 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1379echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1380 { (exit 1); exit 1; }; }
1381ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1382 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1383echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1384 { (exit 1); exit 1; }; }
1385
1386fi
1387echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1388echo "${ECHO_T}$ac_cv_build" >&6
1389build=$ac_cv_build
1390build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1393
1394
1395echo "$as_me:$LINENO: checking host system type" >&5
1396echo $ECHO_N "checking host system type... $ECHO_C" >&6
1397if test "${ac_cv_host+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399else
1400 ac_cv_host_alias=$host_alias
1401test -z "$ac_cv_host_alias" &&
1402 ac_cv_host_alias=$ac_cv_build_alias
1403ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1405echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1406 { (exit 1); exit 1; }; }
1407
1408fi
1409echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1410echo "${ECHO_T}$ac_cv_host" >&6
1411host=$ac_cv_host
1412host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415
1416
35695fd6
AC
1417echo "$as_me:$LINENO: checking target system type" >&5
1418echo $ECHO_N "checking target system type... $ECHO_C" >&6
1419if test "${ac_cv_target+set}" = set; then
b7026657
AC
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421else
35695fd6
AC
1422 ac_cv_target_alias=$target_alias
1423test "x$ac_cv_target_alias" = "x" &&
1424 ac_cv_target_alias=$ac_cv_host_alias
1425ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1427echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1428 { (exit 1); exit 1; }; }
1429
1430fi
1431echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1432echo "${ECHO_T}$ac_cv_target" >&6
1433target=$ac_cv_target
1434target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1435target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1436target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437
1438
1439# The aliases save the names the user supplied, while $host etc.
1440# will get canonicalized.
1441test -n "$target_alias" &&
1442 test "$program_prefix$program_suffix$program_transform_name" = \
1443 NONENONEs,x,x, &&
1444 program_prefix=${target_alias}-
1445test "$program_prefix" != NONE &&
1446 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1447# Use a double $ so make ignores it.
1448test "$program_suffix" != NONE &&
1449 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1450# Double any \ or $. echo might interpret backslashes.
1451# By default was `s,x,x', remove it if useless.
1452cat <<\_ACEOF >conftest.sed
1453s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 1454_ACEOF
35695fd6
AC
1455program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1456rm conftest.sed
1457
1458ac_ext=c
1459ac_cpp='$CPP $CPPFLAGS'
1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466echo "$as_me:$LINENO: checking for $ac_word" >&5
1467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1470else
35695fd6
AC
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473else
1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475for as_dir in $PATH
1476do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 break 2
1484 fi
1485done
1486done
1487
b7026657 1488fi
b7026657 1489fi
35695fd6
AC
1490CC=$ac_cv_prog_CC
1491if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493echo "${ECHO_T}$CC" >&6
b7026657
AC
1494else
1495 echo "$as_me:$LINENO: result: no" >&5
1496echo "${ECHO_T}no" >&6
b7026657
AC
1497fi
1498
35695fd6
AC
1499fi
1500if test -z "$ac_cv_prog_CC"; then
1501 ac_ct_CC=$CC
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503set dummy gcc; ac_word=$2
1504echo "$as_me:$LINENO: checking for $ac_word" >&5
1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
35695fd6
AC
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 1511else
35695fd6
AC
1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513for as_dir in $PATH
1514do
1515 IFS=$as_save_IFS
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 break 2
1522 fi
1523done
1524done
b7026657
AC
1525
1526fi
b7026657 1527fi
35695fd6
AC
1528ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531echo "${ECHO_T}$ac_ct_CC" >&6
1532else
1533 echo "$as_me:$LINENO: result: no" >&5
1534echo "${ECHO_T}no" >&6
b7026657 1535fi
b7026657 1536
35695fd6
AC
1537 CC=$ac_ct_CC
1538else
1539 CC="$ac_cv_prog_CC"
b7026657
AC
1540fi
1541
35695fd6
AC
1542if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545set dummy ${ac_tool_prefix}cc; ac_word=$2
1546echo "$as_me:$LINENO: checking for $ac_word" >&5
1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548if test "${ac_cv_prog_CC+set}" = set; then
b7026657
AC
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
35695fd6
AC
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553else
1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
b7026657 1556do
35695fd6
AC
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
b7026657 1564 fi
35695fd6
AC
1565done
1566done
b7026657 1567
b7026657 1568fi
b7026657 1569fi
35695fd6
AC
1570CC=$ac_cv_prog_CC
1571if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573echo "${ECHO_T}$CC" >&6
b7026657 1574else
35695fd6
AC
1575 echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
b7026657
AC
1577fi
1578
b7026657 1579fi
35695fd6
AC
1580if test -z "$ac_cv_prog_CC"; then
1581 ac_ct_CC=$CC
1582 # Extract the first word of "cc", so it can be a program name with args.
1583set dummy cc; ac_word=$2
1584echo "$as_me:$LINENO: checking for $ac_word" >&5
1585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1588else
35695fd6
AC
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591else
1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593for as_dir in $PATH
b7026657 1594do
35695fd6
AC
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
b7026657 1602 fi
35695fd6
AC
1603done
1604done
b7026657 1605
b7026657 1606fi
b7026657 1607fi
35695fd6
AC
1608ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1612else
35695fd6
AC
1613 echo "$as_me:$LINENO: result: no" >&5
1614echo "${ECHO_T}no" >&6
b7026657 1615fi
b7026657 1616
35695fd6 1617 CC=$ac_ct_CC
b7026657 1618else
35695fd6 1619 CC="$ac_cv_prog_CC"
b7026657
AC
1620fi
1621
35695fd6
AC
1622fi
1623if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625set dummy cc; ac_word=$2
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC="$CC" # Let the user override the test.
1633else
1634 ac_prog_rejected=no
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected=yes
1644 continue
1645 fi
1646 ac_cv_prog_CC="cc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650done
1651done
b7026657 1652
35695fd6
AC
1653if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy $ac_cv_prog_CC
1656 shift
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1661 shift
1662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1663 fi
1664fi
1665fi
1666fi
1667CC=$ac_cv_prog_CC
1668if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
b7026657 1675
35695fd6
AC
1676fi
1677if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1679 for ac_prog in cl
1680 do
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683echo "$as_me:$LINENO: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685if test "${ac_cv_prog_CC+set}" = set; then
b7026657
AC
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
35695fd6
AC
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690else
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1701 fi
1702done
1703done
b7026657 1704
35695fd6
AC
1705fi
1706fi
1707CC=$ac_cv_prog_CC
1708if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710echo "${ECHO_T}$CC" >&6
1711else
1712 echo "$as_me:$LINENO: result: no" >&5
1713echo "${ECHO_T}no" >&6
1714fi
b7026657 1715
35695fd6
AC
1716 test -n "$CC" && break
1717 done
1718fi
1719if test -z "$CC"; then
1720 ac_ct_CC=$CC
1721 for ac_prog in cl
1722do
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724set dummy $ac_prog; ac_word=$2
1725echo "$as_me:$LINENO: checking for $ac_word" >&5
1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
35695fd6
AC
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732else
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744done
1745done
1746
1747fi
1748fi
1749ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752echo "${ECHO_T}$ac_ct_CC" >&6
1753else
1754 echo "$as_me:$LINENO: result: no" >&5
1755echo "${ECHO_T}no" >&6
1756fi
1757
1758 test -n "$ac_ct_CC" && break
1759done
1760
1761 CC=$ac_ct_CC
1762fi
1763
1764fi
1765
1766
1767test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768See \`config.log' for more details." >&5
1769echo "$as_me: error: no acceptable C compiler found in \$PATH
1770See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773# Provide some information about the compiler.
1774echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
1776ac_compiler=`set X $ac_compile; echo $2`
1777{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
1779 ac_status=$?
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792
1793cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
1794/* confdefs.h. */
1795_ACEOF
1796cat confdefs.h >>conftest.$ac_ext
1797cat >>conftest.$ac_ext <<_ACEOF
1798/* end confdefs.h. */
b7026657
AC
1799
1800int
1801main ()
1802{
1803
1804 ;
1805 return 0;
1806}
1807_ACEOF
35695fd6
AC
1808ac_clean_files_save=$ac_clean_files
1809ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810# Try to create an executable without -o first, disregard a.out.
1811# It will help us diagnose broken compilers, and finding out an intuition
1812# of exeext.
1813echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
b7026657
AC
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823# resort.
1824
1825# Be careful to initialize this variable, since it used to be cached.
1826# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827ac_cv_exeext=
1828# b.out is created by i960 compilers.
1829for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1830do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834 ;;
1835 conftest.$ac_ext )
1836 # This is the source file.
1837 ;;
1838 [ab].out )
1839 # We found the default executable, but exeext='' is most
1840 # certainly right.
1841 break;;
1842 *.* )
1843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1847 export ac_cv_exeext
1848 break;;
1849 * )
1850 break;;
1851 esac
1852done
b7026657
AC
1853else
1854 echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
35695fd6
AC
1857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858See \`config.log' for more details." >&5
1859echo "$as_me: error: C compiler cannot create executables
1860See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
b7026657 1862fi
c906108c 1863
35695fd6
AC
1864ac_exeext=$ac_cv_exeext
1865echo "$as_me:$LINENO: result: $ac_file" >&5
1866echo "${ECHO_T}$ac_file" >&6
c906108c 1867
35695fd6
AC
1868# Check the compiler produces executables we can run. If not, either
1869# the compiler is broken, or we cross compile.
1870echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873# If not cross compiling, check that we can run a simple program.
1874if test "$cross_compiling" != yes; then
1875 if { ac_try='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 (eval $ac_try) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1881 cross_compiling=no
1882 else
1883 if test "$cross_compiling" = maybe; then
1884 cross_compiling=yes
1885 else
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887If you meant to cross compile, use \`--host'.
1888See \`config.log' for more details." >&5
1889echo "$as_me: error: cannot run C compiled programs.
1890If you meant to cross compile, use \`--host'.
1891See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1893 fi
1894 fi
c906108c 1895fi
35695fd6
AC
1896echo "$as_me:$LINENO: result: yes" >&5
1897echo "${ECHO_T}yes" >&6
c906108c 1898
35695fd6
AC
1899rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900ac_clean_files=$ac_clean_files_save
1901# Check the compiler produces executables we can run. If not, either
1902# the compiler is broken, or we cross compile.
1903echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906echo "${ECHO_T}$cross_compiling" >&6
b7026657 1907
35695fd6
AC
1908echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917# work properly (i.e., refer to `conftest.exe'), while it won't with
1918# `rm'.
1919for ac_file in conftest.exe conftest conftest.*; do
1920 test -f "$ac_file" || continue
1921 case $ac_file in
1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924 export ac_cv_exeext
1925 break;;
1926 * ) break;;
1927 esac
1928done
c906108c 1929else
35695fd6
AC
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931See \`config.log' for more details." >&5
1932echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
c906108c 1935fi
c906108c 1936
35695fd6
AC
1937rm -f conftest$ac_cv_exeext
1938echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1940
35695fd6
AC
1941rm -f conftest.$ac_ext
1942EXEEXT=$ac_cv_exeext
1943ac_exeext=$EXEEXT
1944echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1948else
b7026657
AC
1949 cat >conftest.$ac_ext <<_ACEOF
1950/* confdefs.h. */
1951_ACEOF
1952cat confdefs.h >>conftest.$ac_ext
1953cat >>conftest.$ac_ext <<_ACEOF
1954/* end confdefs.h. */
c906108c 1955
b7026657
AC
1956int
1957main ()
1958{
35695fd6
AC
1959
1960 ;
1961 return 0;
b7026657
AC
1962}
1963_ACEOF
35695fd6
AC
1964rm -f conftest.o conftest.obj
1965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
b7026657
AC
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
1969 (exit $ac_status); }; then
1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971 case $ac_file in
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974 break;;
1975 esac
1976done
c906108c 1977else
35695fd6 1978 echo "$as_me: failed program was:" >&5
b7026657
AC
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
35695fd6
AC
1981{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982See \`config.log' for more details." >&5
1983echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
c906108c 1986fi
c906108c 1987
35695fd6 1988rm -f conftest.$ac_cv_objext conftest.$ac_ext
b7026657 1989fi
35695fd6
AC
1990echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991echo "${ECHO_T}$ac_cv_objext" >&6
1992OBJEXT=$ac_cv_objext
1993ac_objext=$OBJEXT
1994echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996if test "${ac_cv_c_compiler_gnu+set}" = set; then
b7026657
AC
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999 cat >conftest.$ac_ext <<_ACEOF
2000/* confdefs.h. */
2001_ACEOF
2002cat confdefs.h >>conftest.$ac_ext
2003cat >>conftest.$ac_ext <<_ACEOF
2004/* end confdefs.h. */
2005
2006int
2007main ()
2008{
35695fd6
AC
2009#ifndef __GNUC__
2010 choke me
b7026657
AC
2011#endif
2012
2013 ;
2014 return 0;
2015}
2016_ACEOF
2017rm -f conftest.$ac_objext
2018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2020 ac_status=$?
2021 grep -v '^ *+' conftest.er1 >conftest.err
2022 rm -f conftest.er1
2023 cat conftest.err >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -z "$ac_c_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 (eval $ac_try) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
35695fd6 2039 ac_compiler_gnu=yes
c906108c 2040else
b7026657
AC
2041 echo "$as_me: failed program was:" >&5
2042sed 's/^/| /' conftest.$ac_ext >&5
2043
35695fd6 2044ac_compiler_gnu=no
c906108c 2045fi
b7026657 2046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6 2047ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c
SS
2048
2049fi
35695fd6
AC
2050echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052GCC=`test $ac_compiler_gnu = yes && echo yes`
2053ac_test_CFLAGS=${CFLAGS+set}
2054ac_save_CFLAGS=$CFLAGS
2055CFLAGS="-g"
2056echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
b7026657
AC
2061 cat >conftest.$ac_ext <<_ACEOF
2062/* confdefs.h. */
2063_ACEOF
2064cat confdefs.h >>conftest.$ac_ext
2065cat >>conftest.$ac_ext <<_ACEOF
2066/* end confdefs.h. */
b7026657 2067
35695fd6
AC
2068int
2069main ()
2070{
2071
2072 ;
2073 return 0;
2074}
b7026657
AC
2075_ACEOF
2076rm -f conftest.$ac_objext
2077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2079 ac_status=$?
2080 grep -v '^ *+' conftest.er1 >conftest.err
2081 rm -f conftest.er1
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
35695fd6 2098 ac_cv_prog_cc_g=yes
c906108c 2099else
b7026657
AC
2100 echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
35695fd6 2103ac_cv_prog_cc_g=no
c906108c 2104fi
b7026657 2105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2106fi
35695fd6
AC
2107echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109if test "$ac_test_CFLAGS" = set; then
2110 CFLAGS=$ac_save_CFLAGS
2111elif test $ac_cv_prog_cc_g = yes; then
2112 if test "$GCC" = yes; then
2113 CFLAGS="-g -O2"
2114 else
2115 CFLAGS="-g"
2116 fi
2117else
2118 if test "$GCC" = yes; then
2119 CFLAGS="-O2"
2120 else
2121 CFLAGS=
2122 fi
2123fi
2124echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126if test "${ac_cv_prog_cc_stdc+set}" = set; then
b7026657
AC
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
35695fd6
AC
2129 ac_cv_prog_cc_stdc=no
2130ac_save_CC=$CC
2131cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2132/* confdefs.h. */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
2136/* end confdefs.h. */
35695fd6
AC
2137#include <stdarg.h>
2138#include <stdio.h>
2139#include <sys/types.h>
2140#include <sys/stat.h>
2141/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2142struct buf { int x; };
2143FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144static char *e (p, i)
2145 char **p;
2146 int i;
2147{
2148 return p[i];
2149}
2150static char *f (char * (*g) (char **, int), char **p, ...)
2151{
2152 char *s;
2153 va_list v;
2154 va_start (v,p);
2155 s = g (p, va_arg (v,int));
2156 va_end (v);
2157 return s;
2158}
b7026657 2159
35695fd6
AC
2160/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not '\xHH' hex character constants.
2162 These don't provoke an error unfortunately, instead are silently treated
2163 as 'x'. The following induces an error, until -std1 is added to get
2164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2165 array size at least. It's necessary to write '\x00'==0 to get something
2166 that's true only with -std1. */
2167int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2168
2169int test (int i, double x);
2170struct s1 {int (*f) (int a);};
2171struct s2 {int (*f) (double a);};
2172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2173int argc;
2174char **argv;
2175int
2176main ()
2177{
2178return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2179 ;
2180 return 0;
2181}
b7026657 2182_ACEOF
35695fd6
AC
2183# Don't try gcc -ansi; that turns off useful extensions and
2184# breaks some systems' header files.
2185# AIX -qlanglvl=ansi
2186# Ultrix and OSF/1 -std1
2187# HP-UX 10.20 and later -Ae
2188# HP-UX older versions -Aa -D_HPUX_SOURCE
2189# SVR4 -Xc -D__EXTENSIONS__
2190for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191do
2192 CC="$ac_save_CC $ac_arg"
2193 rm -f conftest.$ac_objext
b7026657
AC
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
35695fd6
AC
2215 ac_cv_prog_cc_stdc=$ac_arg
2216break
b7026657
AC
2217else
2218 echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
b7026657 2221fi
35695fd6
AC
2222rm -f conftest.err conftest.$ac_objext
2223done
2224rm -f conftest.$ac_ext conftest.$ac_objext
2225CC=$ac_save_CC
b7026657
AC
2226
2227fi
2228
35695fd6
AC
2229case "x$ac_cv_prog_cc_stdc" in
2230 x|xno)
2231 echo "$as_me:$LINENO: result: none needed" >&5
2232echo "${ECHO_T}none needed" >&6 ;;
2233 *)
2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236 CC="$CC $ac_cv_prog_cc_stdc" ;;
2237esac
b7026657 2238
35695fd6
AC
2239# Some people use a C++ compiler to compile C. Since we use `exit',
2240# in C++ we need to declare it. In case someone uses the same compiler
2241# for both compiling C and C++ we need to have the C++ compiler decide
2242# the declaration of exit, since it's the most demanding environment.
2243cat >conftest.$ac_ext <<_ACEOF
2244#ifndef __cplusplus
2245 choke me
2246#endif
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 for ac_declaration in \
2271 '' \
2272 'extern "C" void std::exit (int) throw (); using std::exit;' \
2273 'extern "C" void std::exit (int); using std::exit;' \
2274 'extern "C" void exit (int) throw ();' \
2275 'extern "C" void exit (int);' \
2276 'void exit (int);'
2277do
b7026657
AC
2278 cat >conftest.$ac_ext <<_ACEOF
2279/* confdefs.h. */
2280_ACEOF
2281cat confdefs.h >>conftest.$ac_ext
2282cat >>conftest.$ac_ext <<_ACEOF
2283/* end confdefs.h. */
35695fd6
AC
2284$ac_declaration
2285#include <stdlib.h>
b7026657
AC
2286int
2287main ()
2288{
35695fd6 2289exit (42);
b7026657
AC
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>conftest.er1
2297 ac_status=$?
2298 grep -v '^ *+' conftest.er1 >conftest.err
2299 rm -f conftest.er1
2300 cat conftest.err >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -z "$ac_c_werror_flag"
2304 || test ! -s conftest.err'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
35695fd6 2316 :
c906108c 2317else
b7026657
AC
2318 echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2320
35695fd6 2321continue
c906108c 2322fi
b7026657 2323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2324 cat >conftest.$ac_ext <<_ACEOF
2325/* confdefs.h. */
2326_ACEOF
2327cat confdefs.h >>conftest.$ac_ext
2328cat >>conftest.$ac_ext <<_ACEOF
2329/* end confdefs.h. */
35695fd6 2330$ac_declaration
b7026657
AC
2331int
2332main ()
2333{
35695fd6 2334exit (42);
b7026657
AC
2335 ;
2336 return 0;
2337}
2338_ACEOF
2339rm -f conftest.$ac_objext
2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
35695fd6 2361 break
c906108c 2362else
b7026657
AC
2363 echo "$as_me: failed program was:" >&5
2364sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2365
b7026657
AC
2366fi
2367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6
AC
2368done
2369rm -f conftest*
2370if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
c906108c 2374fi
35695fd6 2375
b7026657 2376else
35695fd6
AC
2377 echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380fi
2381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382ac_ext=c
2383ac_cpp='$CPP $CPPFLAGS'
2384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388# Find a good install program. We prefer a C program (faster),
2389# so one script is as good as another. But avoid the broken or
2390# incompatible versions:
2391# SysV /etc/install, /usr/sbin/install
2392# SunOS /usr/etc/install
2393# IRIX /sbin/install
2394# AIX /bin/install
2395# AmigaOS /C/install, which installs bootblocks on floppy discs
2396# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2397# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2398# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2399# OS/2's system install, which has a completely different semantic
2400# ./install, which can be erroneously created by make from ./install.sh.
2401echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2402echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2403if test -z "$INSTALL"; then
2404if test "${ac_cv_path_install+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 # Account for people who put trailing slashes in PATH elements.
2413case $as_dir/ in
2414 ./ | .// | /cC/* | \
2415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2416 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2417 /usr/ucb/* ) ;;
2418 *)
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2421 # by default.
2422 for ac_prog in ginstall scoinst install; do
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2425 if test $ac_prog = install &&
2426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2428 :
2429 elif test $ac_prog = install &&
2430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2432 :
2433 else
2434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435 break 3
2436 fi
2437 fi
2438 done
2439 done
2440 ;;
2441esac
2442done
b7026657 2443
c906108c
SS
2444
2445fi
35695fd6
AC
2446 if test "${ac_cv_path_install+set}" = set; then
2447 INSTALL=$ac_cv_path_install
2448 else
2449 # As a last resort, use the slow shell script. We don't cache a
2450 # path for INSTALL within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the path is relative.
2453 INSTALL=$ac_install_sh
2454 fi
2455fi
2456echo "$as_me:$LINENO: result: $INSTALL" >&5
2457echo "${ECHO_T}$INSTALL" >&6
c906108c 2458
35695fd6
AC
2459# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2460# It thinks the first close brace ends the variable substitution.
2461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2462
2463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2464
2465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2466
2467
2468# Put a plausible default for CC_FOR_BUILD in Makefile.
2469if test "x$cross_compiling" = "xno"; then
2470 CC_FOR_BUILD='$(CC)'
2471else
2472 CC_FOR_BUILD=gcc
2473fi
2474
2475
2476
2477
2478AR=${AR-ar}
2479
2480if test -n "$ac_tool_prefix"; then
2481 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2482set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2483echo "$as_me:$LINENO: checking for $ac_word" >&5
2484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485if test "${ac_cv_prog_RANLIB+set}" = set; then
b7026657
AC
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
35695fd6
AC
2488 if test -n "$RANLIB"; then
2489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2490else
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2501 fi
2502done
2503done
2504
2505fi
2506fi
2507RANLIB=$ac_cv_prog_RANLIB
2508if test -n "$RANLIB"; then
2509 echo "$as_me:$LINENO: result: $RANLIB" >&5
2510echo "${ECHO_T}$RANLIB" >&6
2511else
2512 echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6
2514fi
2515
2516fi
2517if test -z "$ac_cv_prog_RANLIB"; then
2518 ac_ct_RANLIB=$RANLIB
2519 # Extract the first word of "ranlib", so it can be a program name with args.
2520set dummy ranlib; ac_word=$2
2521echo "$as_me:$LINENO: checking for $ac_word" >&5
2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526 if test -n "$ac_ct_RANLIB"; then
2527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2528else
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_ac_ct_RANLIB="ranlib"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540done
2541done
2542
2543 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2544fi
2545fi
2546ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2547if test -n "$ac_ct_RANLIB"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2549echo "${ECHO_T}$ac_ct_RANLIB" >&6
2550else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553fi
2554
2555 RANLIB=$ac_ct_RANLIB
2556else
2557 RANLIB="$ac_cv_prog_RANLIB"
2558fi
2559
2560
2561ALL_LINGUAS=
2562echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2563echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2564set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2565if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567else
2568 cat >conftest.make <<\_ACEOF
2569all:
2570 @echo 'ac_maketemp="$(MAKE)"'
2571_ACEOF
2572# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2573eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2574if test -n "$ac_maketemp"; then
2575 eval ac_cv_prog_make_${ac_make}_set=yes
2576else
2577 eval ac_cv_prog_make_${ac_make}_set=no
2578fi
2579rm -f conftest.make
2580fi
2581if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2582 echo "$as_me:$LINENO: result: yes" >&5
2583echo "${ECHO_T}yes" >&6
2584 SET_MAKE=
2585else
2586 echo "$as_me:$LINENO: result: no" >&5
2587echo "${ECHO_T}no" >&6
2588 SET_MAKE="MAKE=${MAKE-make}"
2589fi
2590
2591
2592echo "$as_me:$LINENO: checking for library containing strerror" >&5
2593echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2594if test "${ac_cv_search_strerror+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597 ac_func_search_save_LIBS=$LIBS
2598ac_cv_search_strerror=no
2599cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
35695fd6
AC
2605
2606/* Override any gcc2 internal prototype to avoid an error. */
2607#ifdef __cplusplus
2608extern "C"
2609#endif
2610/* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
2612char strerror ();
b7026657
AC
2613int
2614main ()
2615{
35695fd6 2616strerror ();
b7026657
AC
2617 ;
2618 return 0;
2619}
2620_ACEOF
2621rm -f conftest.$ac_objext conftest$ac_exeext
2622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623 (eval $ac_link) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest$ac_exeext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
35695fd6 2643 ac_cv_search_strerror="none required"
b7026657
AC
2644else
2645 echo "$as_me: failed program was:" >&5
2646sed 's/^/| /' conftest.$ac_ext >&5
2647
b7026657
AC
2648fi
2649rm -f conftest.err conftest.$ac_objext \
2650 conftest$ac_exeext conftest.$ac_ext
35695fd6
AC
2651if test "$ac_cv_search_strerror" = no; then
2652 for ac_lib in cposix; do
2653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2654 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h. */
c906108c 2660
35695fd6
AC
2661/* Override any gcc2 internal prototype to avoid an error. */
2662#ifdef __cplusplus
2663extern "C"
2664#endif
2665/* We use char because int might match the return type of a gcc2
2666 builtin and then its argument prototype would still apply. */
2667char strerror ();
b7026657
AC
2668int
2669main ()
2670{
35695fd6 2671strerror ();
b7026657
AC
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext conftest$ac_exeext
2677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2678 (eval $ac_link) 2>conftest.er1
2679 ac_status=$?
2680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest$ac_exeext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
35695fd6
AC
2698 ac_cv_search_strerror="-l$ac_lib"
2699break
c906108c 2700else
b7026657
AC
2701 echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
c906108c 2704fi
b7026657
AC
2705rm -f conftest.err conftest.$ac_objext \
2706 conftest$ac_exeext conftest.$ac_ext
35695fd6 2707 done
c906108c 2708fi
35695fd6
AC
2709LIBS=$ac_func_search_save_LIBS
2710fi
2711echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2712echo "${ECHO_T}$ac_cv_search_strerror" >&6
2713if test "$ac_cv_search_strerror" != no; then
2714 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
c906108c 2715
35695fd6 2716fi
c906108c 2717
35695fd6
AC
2718ac_ext=c
2719ac_cpp='$CPP $CPPFLAGS'
2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2724echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2725# On Suns, sometimes $CPP names a directory.
2726if test -n "$CPP" && test -d "$CPP"; then
2727 CPP=
2728fi
2729if test -z "$CPP"; then
2730 if test "${ac_cv_prog_CPP+set}" = set; then
b7026657 2731 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2732else
35695fd6
AC
2733 # Double quotes because CPP needs to be expanded
2734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2735 do
2736 ac_preproc_ok=false
2737for ac_c_preproc_warn_flag in '' yes
2738do
2739 # Use a header file that comes with gcc, so configuring glibc
2740 # with a fresh cross-compiler works.
2741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2742 # <limits.h> exists even on freestanding compilers.
2743 # On the NeXT, cc -E runs the code through the compiler's parser,
2744 # not just through cpp. "Syntax error" is here to catch this case.
b7026657
AC
2745 cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
35695fd6
AC
2751#ifdef __STDC__
2752# include <limits.h>
c906108c 2753#else
35695fd6 2754# include <assert.h>
c906108c 2755#endif
35695fd6 2756 Syntax error
b7026657 2757_ACEOF
35695fd6
AC
2758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } >/dev/null; then
2766 if test -s conftest.err; then
2767 ac_cpp_err=$ac_c_preproc_warn_flag
2768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2769 else
2770 ac_cpp_err=
2771 fi
c906108c 2772else
35695fd6 2773 ac_cpp_err=yes
c906108c 2774fi
35695fd6
AC
2775if test -z "$ac_cpp_err"; then
2776 :
2777else
2778 echo "$as_me: failed program was:" >&5
2779sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2780
35695fd6
AC
2781 # Broken: fails on valid input.
2782continue
c906108c 2783fi
35695fd6
AC
2784rm -f conftest.err conftest.$ac_ext
2785
2786 # OK, works on sane cases. Now check whether non-existent headers
2787 # can be detected and how.
b7026657
AC
2788 cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h. */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h. */
35695fd6 2794#include <ac_nonexistent.h>
b7026657 2795_ACEOF
35695fd6
AC
2796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2798 ac_status=$?
2799 grep -v '^ *+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
2803 (exit $ac_status); } >/dev/null; then
2804 if test -s conftest.err; then
2805 ac_cpp_err=$ac_c_preproc_warn_flag
2806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2807 else
2808 ac_cpp_err=
2809 fi
2810else
2811 ac_cpp_err=yes
2812fi
2813if test -z "$ac_cpp_err"; then
2814 # Broken: success on invalid input.
2815continue
b7026657
AC
2816else
2817 echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
35695fd6
AC
2820 # Passes both tests.
2821ac_preproc_ok=:
2822break
b7026657 2823fi
35695fd6
AC
2824rm -f conftest.err conftest.$ac_ext
2825
2826done
2827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2828rm -f conftest.err conftest.$ac_ext
2829if $ac_preproc_ok; then
2830 break
b7026657 2831fi
b7026657 2832
35695fd6
AC
2833 done
2834 ac_cv_prog_CPP=$CPP
c906108c 2835
c906108c 2836fi
35695fd6 2837 CPP=$ac_cv_prog_CPP
c906108c 2838else
35695fd6
AC
2839 ac_cv_prog_CPP=$CPP
2840fi
2841echo "$as_me:$LINENO: result: $CPP" >&5
2842echo "${ECHO_T}$CPP" >&6
2843ac_preproc_ok=false
2844for ac_c_preproc_warn_flag in '' yes
2845do
2846 # Use a header file that comes with gcc, so configuring glibc
2847 # with a fresh cross-compiler works.
2848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2849 # <limits.h> exists even on freestanding compilers.
2850 # On the NeXT, cc -E runs the code through the compiler's parser,
2851 # not just through cpp. "Syntax error" is here to catch this case.
b7026657
AC
2852 cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
35695fd6
AC
2858#ifdef __STDC__
2859# include <limits.h>
2860#else
2861# include <assert.h>
2862#endif
2863 Syntax error
b7026657 2864_ACEOF
35695fd6
AC
2865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657 2867 ac_status=$?
35695fd6
AC
2868 grep -v '^ *+' conftest.er1 >conftest.err
2869 rm -f conftest.er1
2870 cat conftest.err >&5
b7026657 2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
2872 (exit $ac_status); } >/dev/null; then
2873 if test -s conftest.err; then
2874 ac_cpp_err=$ac_c_preproc_warn_flag
2875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2876 else
2877 ac_cpp_err=
2878 fi
c906108c 2879else
35695fd6
AC
2880 ac_cpp_err=yes
2881fi
2882if test -z "$ac_cpp_err"; then
2883 :
2884else
2885 echo "$as_me: failed program was:" >&5
b7026657
AC
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
35695fd6
AC
2888 # Broken: fails on valid input.
2889continue
c906108c 2890fi
35695fd6 2891rm -f conftest.err conftest.$ac_ext
c906108c 2892
35695fd6
AC
2893 # OK, works on sane cases. Now check whether non-existent headers
2894 # can be detected and how.
2895 cat >conftest.$ac_ext <<_ACEOF
2896/* confdefs.h. */
b7026657 2897_ACEOF
35695fd6
AC
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h. */
2901#include <ac_nonexistent.h>
2902_ACEOF
2903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2905 ac_status=$?
2906 grep -v '^ *+' conftest.er1 >conftest.err
2907 rm -f conftest.er1
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } >/dev/null; then
2911 if test -s conftest.err; then
2912 ac_cpp_err=$ac_c_preproc_warn_flag
2913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2914 else
2915 ac_cpp_err=
2916 fi
2917else
2918 ac_cpp_err=yes
2919fi
2920if test -z "$ac_cpp_err"; then
2921 # Broken: success on invalid input.
2922continue
2923else
2924 echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
b7026657 2926
35695fd6
AC
2927 # Passes both tests.
2928ac_preproc_ok=:
2929break
2930fi
2931rm -f conftest.err conftest.$ac_ext
c906108c 2932
35695fd6
AC
2933done
2934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2935rm -f conftest.err conftest.$ac_ext
2936if $ac_preproc_ok; then
2937 :
2938else
2939 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2940See \`config.log' for more details." >&5
2941echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2942See \`config.log' for more details." >&2;}
2943 { (exit 1); exit 1; }; }
c906108c
SS
2944fi
2945
35695fd6
AC
2946ac_ext=c
2947ac_cpp='$CPP $CPPFLAGS'
2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950ac_compiler_gnu=$ac_cv_c_compiler_gnu
b7026657
AC
2951
2952
35695fd6
AC
2953echo "$as_me:$LINENO: checking for egrep" >&5
2954echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2955if test "${ac_cv_prog_egrep+set}" = set; then
b7026657 2956 echo $ECHO_N "(cached) $ECHO_C" >&6
35695fd6
AC
2957else
2958 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2959 then ac_cv_prog_egrep='grep -E'
2960 else ac_cv_prog_egrep='egrep'
2961 fi
b7026657 2962fi
35695fd6
AC
2963echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2964echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2965 EGREP=$ac_cv_prog_egrep
2966
2967
2968echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2969echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2970if test "${ac_cv_header_stdc+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2972else
35695fd6 2973 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
35695fd6
AC
2979#include <stdlib.h>
2980#include <stdarg.h>
2981#include <string.h>
2982#include <float.h>
2983
2984int
2985main ()
2986{
2987
2988 ;
2989 return 0;
2990}
b7026657
AC
2991_ACEOF
2992rm -f conftest.$ac_objext
2993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag"
3002 || test ! -s conftest.err'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 (eval $ac_try) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
35695fd6 3014 ac_cv_header_stdc=yes
b7026657
AC
3015else
3016 echo "$as_me: failed program was:" >&5
3017sed 's/^/| /' conftest.$ac_ext >&5
3018
35695fd6 3019ac_cv_header_stdc=no
b7026657
AC
3020fi
3021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3022
35695fd6
AC
3023if test $ac_cv_header_stdc = yes; then
3024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3025 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
35695fd6
AC
3031#include <string.h>
3032
b7026657 3033_ACEOF
35695fd6
AC
3034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 $EGREP "memchr" >/dev/null 2>&1; then
3036 :
b7026657 3037else
35695fd6 3038 ac_cv_header_stdc=no
c906108c 3039fi
35695fd6
AC
3040rm -f conftest*
3041
3042fi
3043
3044if test $ac_cv_header_stdc = yes; then
3045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3046 cat >conftest.$ac_ext <<_ACEOF
3047/* confdefs.h. */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h. */
3052#include <stdlib.h>
3053
3054_ACEOF
3055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 $EGREP "free" >/dev/null 2>&1; then
3057 :
b7026657 3058else
35695fd6
AC
3059 ac_cv_header_stdc=no
3060fi
3061rm -f conftest*
b7026657 3062
c906108c 3063fi
b7026657 3064
35695fd6
AC
3065if test $ac_cv_header_stdc = yes; then
3066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3067 if test "$cross_compiling" = yes; then
3068 :
c906108c 3069else
35695fd6
AC
3070 cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h. */
3076#include <ctype.h>
3077#if ((' ' & 0x0FF) == 0x020)
3078# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3079# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3080#else
3081# define ISLOWER(c) \
3082 (('a' <= (c) && (c) <= 'i') \
3083 || ('j' <= (c) && (c) <= 'r') \
3084 || ('s' <= (c) && (c) <= 'z'))
3085# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3086#endif
b7026657 3087
35695fd6
AC
3088#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3089int
3090main ()
3091{
3092 int i;
3093 for (i = 0; i < 256; i++)
3094 if (XOR (islower (i), ISLOWER (i))
3095 || toupper (i) != TOUPPER (i))
3096 exit(2);
3097 exit (0);
3098}
b7026657 3099_ACEOF
35695fd6
AC
3100rm -f conftest$ac_exeext
3101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3102 (eval $ac_link) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 :
3112else
3113 echo "$as_me: program exited with status $ac_status" >&5
3114echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
b7026657 3116
35695fd6
AC
3117( exit $ac_status )
3118ac_cv_header_stdc=no
3119fi
3120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3121fi
3122fi
b7026657 3123fi
35695fd6
AC
3124echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3125echo "${ECHO_T}$ac_cv_header_stdc" >&6
3126if test $ac_cv_header_stdc = yes; then
b7026657 3127
35695fd6
AC
3128cat >>confdefs.h <<\_ACEOF
3129#define STDC_HEADERS 1
3130_ACEOF
c906108c 3131
35695fd6 3132fi
b7026657 3133
35695fd6
AC
3134echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3135echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3136if test "${ac_cv_c_const+set}" = set; then
b7026657
AC
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139 cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h. */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h. */
c906108c 3145
b7026657
AC
3146int
3147main ()
3148{
35695fd6
AC
3149/* FIXME: Include the comments suggested by Paul. */
3150#ifndef __cplusplus
3151 /* Ultrix mips cc rejects this. */
3152 typedef int charset[2];
3153 const charset x;
3154 /* SunOS 4.1.1 cc rejects this. */
3155 char const *const *ccp;
3156 char **p;
3157 /* NEC SVR4.0.2 mips cc rejects this. */
3158 struct point {int x, y;};
3159 static struct point const zero = {0,0};
3160 /* AIX XL C 1.02.0.0 rejects this.
3161 It does not let you subtract one const X* pointer from another in
3162 an arm of an if-expression whose if-part is not a constant
3163 expression */
3164 const char *g = "string";
3165 ccp = &g + (g ? g-g : 0);
3166 /* HPUX 7.0 cc rejects these. */
3167 ++ccp;
3168 p = (char**) ccp;
3169 ccp = (char const *const *) p;
3170 { /* SCO 3.2v4 cc rejects this. */
3171 char *t;
3172 char const *s = 0 ? (char *) 0 : (char const *) 0;
3173
3174 *t++ = 0;
3175 }
3176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3177 int x[] = {25, 17};
3178 const int *foo = &x[0];
3179 ++foo;
3180 }
3181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3182 typedef const int *iptr;
3183 iptr p = 0;
3184 ++p;
3185 }
3186 { /* AIX XL C 1.02.0.0 rejects this saying
3187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3188 struct s { int j; const int *ap[3]; };
3189 struct s *b; b->j = 5;
3190 }
3191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3192 const int foo = 10;
3193 }
3194#endif
3195
b7026657
AC
3196 ;
3197 return 0;
3198}
3199_ACEOF
35695fd6
AC
3200rm -f conftest.$ac_objext
3201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>conftest.er1
b7026657
AC
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_c_werror_flag"
3210 || test ! -s conftest.err'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 (eval $ac_try) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
35695fd6 3216 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; }; then
35695fd6 3222 ac_cv_c_const=yes
b7026657
AC
3223else
3224 echo "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
35695fd6 3227ac_cv_c_const=no
b7026657 3228fi
35695fd6 3229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3230fi
35695fd6
AC
3231echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3232echo "${ECHO_T}$ac_cv_c_const" >&6
3233if test $ac_cv_c_const = no; then
3234
3235cat >>confdefs.h <<\_ACEOF
3236#define const
b7026657 3237_ACEOF
c906108c 3238
c906108c 3239fi
c906108c 3240
35695fd6
AC
3241echo "$as_me:$LINENO: checking for inline" >&5
3242echo $ECHO_N "checking for inline... $ECHO_C" >&6
3243if test "${ac_cv_c_inline+set}" = set; then
b7026657 3244 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3245else
35695fd6
AC
3246 ac_cv_c_inline=no
3247for ac_kw in inline __inline__ __inline; do
b7026657
AC
3248 cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h. */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h. */
35695fd6
AC
3254#ifndef __cplusplus
3255typedef int foo_t;
3256static $ac_kw foo_t static_foo () {return 0; }
3257$ac_kw foo_t foo () {return 0; }
3258#endif
c906108c 3259
b7026657 3260_ACEOF
35695fd6
AC
3261rm -f conftest.$ac_objext
3262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
b7026657 3264 ac_status=$?
35695fd6
AC
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
b7026657 3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_c_werror_flag"
3271 || test ! -s conftest.err'
b7026657
AC
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3276 (exit $ac_status); }; } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 ac_cv_c_inline=$ac_kw; break
b7026657 3284else
35695fd6
AC
3285 echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3287
35695fd6
AC
3288fi
3289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3290done
c906108c 3291
b7026657 3292fi
35695fd6
AC
3293echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3294echo "${ECHO_T}$ac_cv_c_inline" >&6
b7026657 3295
b7026657 3296
35695fd6
AC
3297case $ac_cv_c_inline in
3298 inline | yes) ;;
3299 *)
3300 case $ac_cv_c_inline in
3301 no) ac_val=;;
3302 *) ac_val=$ac_cv_c_inline;;
3303 esac
3304 cat >>confdefs.h <<_ACEOF
3305#ifndef __cplusplus
3306#define inline $ac_val
3307#endif
3308_ACEOF
3309 ;;
3310esac
b7026657 3311
35695fd6 3312# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657 3313
35695fd6
AC
3314
3315
3316
3317
3318
3319
3320
3321
3322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3323 inttypes.h stdint.h unistd.h
3324do
3325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3326echo "$as_me:$LINENO: checking for $ac_header" >&5
3327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3328if eval "test \"\${$as_ac_Header+set}\" = set"; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337$ac_includes_default
3338
3339#include <$ac_header>
3340_ACEOF
3341rm -f conftest.$ac_objext
3342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
b7026657 3344 ac_status=$?
35695fd6
AC
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
b7026657 3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
b7026657
AC
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
b7026657
AC
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3362 (exit $ac_status); }; }; then
3363 eval "$as_ac_Header=yes"
3364else
3365 echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
b7026657 3367
35695fd6
AC
3368eval "$as_ac_Header=no"
3369fi
3370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371fi
3372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3374if test `eval echo '${'$as_ac_Header'}'` = yes; then
3375 cat >>confdefs.h <<_ACEOF
3376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3377_ACEOF
3378
3379fi
3380
3381done
3382
3383
3384echo "$as_me:$LINENO: checking for off_t" >&5
3385echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3386if test "${ac_cv_type_off_t+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
35695fd6 3395$ac_includes_default
b7026657
AC
3396int
3397main ()
3398{
35695fd6
AC
3399if ((off_t *) 0)
3400 return 0;
3401if (sizeof (off_t))
3402 return 0;
b7026657
AC
3403 ;
3404 return 0;
3405}
3406_ACEOF
35695fd6
AC
3407rm -f conftest.$ac_objext
3408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3409 (eval $ac_compile) 2>conftest.er1
b7026657 3410 ac_status=$?
35695fd6
AC
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
b7026657 3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3415 (exit $ac_status); } &&
3416 { ac_try='test -z "$ac_c_werror_flag"
3417 || test ! -s conftest.err'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 (eval $ac_try) 2>&5
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 ac_cv_type_off_t=yes
b7026657
AC
3430else
3431 echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
35695fd6
AC
3434ac_cv_type_off_t=no
3435fi
3436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3437fi
35695fd6
AC
3438echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3439echo "${ECHO_T}$ac_cv_type_off_t" >&6
3440if test $ac_cv_type_off_t = yes; then
3441 :
3442else
b7026657 3443
35695fd6
AC
3444cat >>confdefs.h <<_ACEOF
3445#define off_t long
3446_ACEOF
b7026657 3447
35695fd6
AC
3448fi
3449
3450echo "$as_me:$LINENO: checking for size_t" >&5
3451echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3452if test "${ac_cv_type_size_t+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455 cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
3461$ac_includes_default
3462int
3463main ()
3464{
3465if ((size_t *) 0)
3466 return 0;
3467if (sizeof (size_t))
3468 return 0;
3469 ;
3470 return 0;
3471}
3472_ACEOF
3473rm -f conftest.$ac_objext
3474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3475 (eval $ac_compile) 2>conftest.er1
3476 ac_status=$?
3477 grep -v '^ *+' conftest.er1 >conftest.err
3478 rm -f conftest.er1
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -z "$ac_c_werror_flag"
3483 || test ! -s conftest.err'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; } &&
3489 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
35695fd6
AC
3495 ac_cv_type_size_t=yes
3496else
3497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500ac_cv_type_size_t=no
b7026657 3501fi
35695fd6
AC
3502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3503fi
3504echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3505echo "${ECHO_T}$ac_cv_type_size_t" >&6
3506if test $ac_cv_type_size_t = yes; then
3507 :
3508else
b7026657 3509
35695fd6
AC
3510cat >>confdefs.h <<_ACEOF
3511#define size_t unsigned
3512_ACEOF
b7026657 3513
c906108c 3514fi
c906108c 3515
35695fd6
AC
3516# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3517# for constant arguments. Useless!
3518echo "$as_me:$LINENO: checking for working alloca.h" >&5
3519echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3520if test "${ac_cv_working_alloca_h+set}" = set; then
b7026657
AC
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3522else
3523 cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h. */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h. */
35695fd6 3529#include <alloca.h>
b7026657
AC
3530int
3531main ()
3532{
35695fd6 3533char *p = (char *) alloca (2 * sizeof (int));
b7026657
AC
3534 ;
3535 return 0;
3536}
3537_ACEOF
35695fd6
AC
3538rm -f conftest.$ac_objext conftest$ac_exeext
3539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3540 (eval $ac_link) 2>conftest.er1
b7026657 3541 ac_status=$?
35695fd6
AC
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
b7026657 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3546 (exit $ac_status); } &&
3547 { ac_try='test -z "$ac_c_werror_flag"
3548 || test ! -s conftest.err'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 (eval $ac_try) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest$ac_exeext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 ac_cv_working_alloca_h=yes
c906108c 3561else
b7026657
AC
3562 echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
35695fd6 3565ac_cv_working_alloca_h=no
c906108c 3566fi
35695fd6
AC
3567rm -f conftest.err conftest.$ac_objext \
3568 conftest$ac_exeext conftest.$ac_ext
3569fi
3570echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3571echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3572if test $ac_cv_working_alloca_h = yes; then
3573
3574cat >>confdefs.h <<\_ACEOF
3575#define HAVE_ALLOCA_H 1
3576_ACEOF
c906108c 3577
b7026657 3578fi
35695fd6
AC
3579
3580echo "$as_me:$LINENO: checking for alloca" >&5
3581echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3582if test "${ac_cv_func_alloca_works+set}" = set; then
b7026657 3583 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3584else
b7026657
AC
3585 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h. */
35695fd6
AC
3591#ifdef __GNUC__
3592# define alloca __builtin_alloca
3593#else
3594# ifdef _MSC_VER
3595# include <malloc.h>
3596# define alloca _alloca
3597# else
3598# if HAVE_ALLOCA_H
3599# include <alloca.h>
3600# else
3601# ifdef _AIX
3602 #pragma alloca
3603# else
3604# ifndef alloca /* predefined by HP cc +Olibcalls */
3605char *alloca ();
3606# endif
3607# endif
3608# endif
3609# endif
3610#endif
b7026657
AC
3611
3612int
3613main ()
3614{
35695fd6 3615char *p = (char *) alloca (1);
b7026657
AC
3616 ;
3617 return 0;
3618}
3619_ACEOF
35695fd6
AC
3620rm -f conftest.$ac_objext conftest$ac_exeext
3621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3622 (eval $ac_link) 2>conftest.er1
b7026657
AC
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
3629 { ac_try='test -z "$ac_c_werror_flag"
3630 || test ! -s conftest.err'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
35695fd6 3636 { ac_try='test -s conftest$ac_exeext'
b7026657
AC
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
35695fd6 3642 ac_cv_func_alloca_works=yes
b7026657
AC
3643else
3644 echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
35695fd6 3647ac_cv_func_alloca_works=no
b7026657 3648fi
35695fd6
AC
3649rm -f conftest.err conftest.$ac_objext \
3650 conftest$ac_exeext conftest.$ac_ext
3651fi
3652echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3653echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3654
3655if test $ac_cv_func_alloca_works = yes; then
3656
3657cat >>confdefs.h <<\_ACEOF
3658#define HAVE_ALLOCA 1
3659_ACEOF
3660
3661else
3662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3663# that cause trouble. Some versions do not even contain alloca or
3664# contain a buggy version. If you still want to use their alloca,
3665# use ar to extract alloca.o from them instead of compiling alloca.c.
3666
3667ALLOCA=alloca.$ac_objext
3668
3669cat >>confdefs.h <<\_ACEOF
3670#define C_ALLOCA 1
3671_ACEOF
3672
3673
3674echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3675echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3676if test "${ac_cv_os_cray+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679 cat >conftest.$ac_ext <<_ACEOF
3680/* confdefs.h. */
3681_ACEOF
3682cat confdefs.h >>conftest.$ac_ext
3683cat >>conftest.$ac_ext <<_ACEOF
3684/* end confdefs.h. */
3685#if defined(CRAY) && ! defined(CRAY2)
3686webecray
3687#else
3688wenotbecray
3689#endif
b7026657 3690
35695fd6
AC
3691_ACEOF
3692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 $EGREP "webecray" >/dev/null 2>&1; then
3694 ac_cv_os_cray=yes
3695else
3696 ac_cv_os_cray=no
b7026657 3697fi
35695fd6
AC
3698rm -f conftest*
3699
3700fi
3701echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3702echo "${ECHO_T}$ac_cv_os_cray" >&6
3703if test $ac_cv_os_cray = yes; then
3704 for ac_func in _getb67 GETB67 getb67; do
3705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3706echo "$as_me:$LINENO: checking for $ac_func" >&5
3707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3708if eval "test \"\${$as_ac_var+set}\" = set"; then
b7026657
AC
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711 cat >conftest.$ac_ext <<_ACEOF
3712/* confdefs.h. */
3713_ACEOF
3714cat confdefs.h >>conftest.$ac_ext
3715cat >>conftest.$ac_ext <<_ACEOF
3716/* end confdefs.h. */
35695fd6
AC
3717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3719#define $ac_func innocuous_$ac_func
3720
3721/* System header to define __stub macros and hopefully few prototypes,
3722 which can conflict with char $ac_func (); below.
3723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3724 <limits.h> exists even on freestanding compilers. */
3725
3726#ifdef __STDC__
3727# include <limits.h>
3728#else
3729# include <assert.h>
3730#endif
3731
3732#undef $ac_func
3733
3734/* Override any gcc2 internal prototype to avoid an error. */
3735#ifdef __cplusplus
3736extern "C"
3737{
3738#endif
3739/* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3741char $ac_func ();
3742/* The GNU C library defines this for functions which it implements
3743 to always fail with ENOSYS. Some functions are actually named
3744 something starting with __ and the normal name is an alias. */
3745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3746choke me
3747#else
3748char (*f) () = $ac_func;
3749#endif
3750#ifdef __cplusplus
3751}
3752#endif
b7026657
AC
3753
3754int
3755main ()
3756{
35695fd6 3757return f != $ac_func;
b7026657
AC
3758 ;
3759 return 0;
3760}
3761_ACEOF
35695fd6
AC
3762rm -f conftest.$ac_objext conftest$ac_exeext
3763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3764 (eval $ac_link) 2>conftest.er1
b7026657
AC
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag"
3772 || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
35695fd6 3778 { ac_try='test -s conftest$ac_exeext'
b7026657
AC
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
35695fd6 3784 eval "$as_ac_var=yes"
c906108c 3785else
b7026657
AC
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3788
35695fd6 3789eval "$as_ac_var=no"
c906108c 3790fi
35695fd6
AC
3791rm -f conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext conftest.$ac_ext
b7026657 3793fi
35695fd6
AC
3794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3796if test `eval echo '${'$as_ac_var'}'` = yes; then
3797
3798cat >>confdefs.h <<_ACEOF
3799#define CRAY_STACKSEG_END $ac_func
3800_ACEOF
3801
3802 break
c906108c 3803fi
35695fd6
AC
3804
3805 done
3806fi
3807
3808echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3809echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3810if test "${ac_cv_c_stack_direction+set}" = set; then
b7026657
AC
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812else
35695fd6
AC
3813 if test "$cross_compiling" = yes; then
3814 ac_cv_c_stack_direction=0
3815else
3816 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3817/* confdefs.h. */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h. */
35695fd6
AC
3822int
3823find_stack_direction ()
b7026657 3824{
35695fd6
AC
3825 static char *addr = 0;
3826 auto char dummy;
3827 if (addr == 0)
3828 {
3829 addr = &dummy;
3830 return find_stack_direction ();
3831 }
3832 else
3833 return (&dummy > addr) ? 1 : -1;
b7026657
AC
3834}
3835
b7026657
AC
3836int
3837main ()
3838{
35695fd6 3839 exit (find_stack_direction () < 0);
b7026657
AC
3840}
3841_ACEOF
35695fd6
AC
3842rm -f conftest$ac_exeext
3843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844 (eval $ac_link) 2>&5
b7026657
AC
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6 3847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
35695fd6 3853 ac_cv_c_stack_direction=1
b7026657 3854else
35695fd6
AC
3855 echo "$as_me: program exited with status $ac_status" >&5
3856echo "$as_me: failed program was:" >&5
b7026657
AC
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
35695fd6
AC
3859( exit $ac_status )
3860ac_cv_c_stack_direction=-1
b7026657 3861fi
35695fd6
AC
3862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3863fi
3864fi
3865echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3866echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3867
3868cat >>confdefs.h <<_ACEOF
3869#define STACK_DIRECTION $ac_cv_c_stack_direction
3870_ACEOF
3871
b7026657
AC
3872
3873fi
3874
b7026657 3875
35695fd6
AC
3876
3877for ac_header in stdlib.h unistd.h
b7026657 3878do
35695fd6
AC
3879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3880if eval "test \"\${$as_ac_Header+set}\" = set"; then
3881 echo "$as_me:$LINENO: checking for $ac_header" >&5
3882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3883if eval "test \"\${$as_ac_Header+set}\" = set"; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885fi
3886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3888else
3889 # Is the header compilable?
3890echo "$as_me:$LINENO: checking $ac_header usability" >&5
3891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3892cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3893/* confdefs.h. */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h. */
35695fd6
AC
3898$ac_includes_default
3899#include <$ac_header>
b7026657
AC
3900_ACEOF
3901rm -f conftest.$ac_objext
3902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3903 (eval $ac_compile) 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -z "$ac_c_werror_flag"
3911 || test ! -s conftest.err'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913 (eval $ac_try) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; } &&
3917 { ac_try='test -s conftest.$ac_objext'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
35695fd6 3923 ac_header_compiler=yes
b7026657
AC
3924else
3925 echo "$as_me: failed program was:" >&5
3926sed 's/^/| /' conftest.$ac_ext >&5
3927
35695fd6 3928ac_header_compiler=no
b7026657
AC
3929fi
3930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6
AC
3931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3932echo "${ECHO_T}$ac_header_compiler" >&6
3933
3934# Is the header present?
3935echo "$as_me:$LINENO: checking $ac_header presence" >&5
3936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3937cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
3943#include <$ac_header>
3944_ACEOF
3945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } >/dev/null; then
3953 if test -s conftest.err; then
3954 ac_cpp_err=$ac_c_preproc_warn_flag
3955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3956 else
3957 ac_cpp_err=
3958 fi
3959else
3960 ac_cpp_err=yes
3961fi
3962if test -z "$ac_cpp_err"; then
3963 ac_header_preproc=yes
3964else
3965 echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 ac_header_preproc=no
3969fi
3970rm -f conftest.err conftest.$ac_ext
3971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3972echo "${ECHO_T}$ac_header_preproc" >&6
3973
3974# So? What about this header?
3975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3976 yes:no: )
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3978echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3980echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3981 ac_header_preproc=yes
3982 ;;
3983 no:yes:* )
3984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3985echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3987echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3989echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3991echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3995echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3996 (
3997 cat <<\_ASBOX
3998## ------------------------------------------ ##
3999## Report this to the AC_PACKAGE_NAME lists. ##
4000## ------------------------------------------ ##
4001_ASBOX
4002 ) |
4003 sed "s/^/$as_me: WARNING: /" >&2
4004 ;;
4005esac
4006echo "$as_me:$LINENO: checking for $ac_header" >&5
4007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 eval "$as_ac_Header=\$ac_header_preproc"
4012fi
4013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4015
4016fi
4017if test `eval echo '${'$as_ac_Header'}'` = yes; then
4018 cat >>confdefs.h <<_ACEOF
4019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4020_ACEOF
4021
4022fi
4023
4024done
4025
4026
4027for ac_func in getpagesize
4028do
4029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4030echo "$as_me:$LINENO: checking for $ac_func" >&5
4031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4032if eval "test \"\${$as_ac_var+set}\" = set"; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
b7026657
AC
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
35695fd6
AC
4041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4043#define $ac_func innocuous_$ac_func
4044
4045/* System header to define __stub macros and hopefully few prototypes,
4046 which can conflict with char $ac_func (); below.
4047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048 <limits.h> exists even on freestanding compilers. */
4049
4050#ifdef __STDC__
4051# include <limits.h>
4052#else
4053# include <assert.h>
4054#endif
4055
4056#undef $ac_func
4057
4058/* Override any gcc2 internal prototype to avoid an error. */
4059#ifdef __cplusplus
4060extern "C"
4061{
4062#endif
4063/* We use char because int might match the return type of a gcc2
4064 builtin and then its argument prototype would still apply. */
4065char $ac_func ();
4066/* The GNU C library defines this for functions which it implements
4067 to always fail with ENOSYS. Some functions are actually named
4068 something starting with __ and the normal name is an alias. */
4069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4070choke me
4071#else
4072char (*f) () = $ac_func;
4073#endif
4074#ifdef __cplusplus
4075}
4076#endif
4077
b7026657
AC
4078int
4079main ()
4080{
35695fd6 4081return f != $ac_func;
b7026657
AC
4082 ;
4083 return 0;
4084}
4085_ACEOF
35695fd6
AC
4086rm -f conftest.$ac_objext conftest$ac_exeext
4087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4088 (eval $ac_link) 2>conftest.er1
b7026657
AC
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag"
4096 || test ! -s conftest.err'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
35695fd6 4102 { ac_try='test -s conftest$ac_exeext'
b7026657
AC
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
35695fd6 4108 eval "$as_ac_var=yes"
b7026657
AC
4109else
4110 echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
35695fd6 4113eval "$as_ac_var=no"
b7026657 4114fi
35695fd6
AC
4115rm -f conftest.err conftest.$ac_objext \
4116 conftest$ac_exeext conftest.$ac_ext
b7026657 4117fi
35695fd6
AC
4118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4120if test `eval echo '${'$as_ac_var'}'` = yes; then
4121 cat >>confdefs.h <<_ACEOF
4122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4123_ACEOF
c906108c
SS
4124
4125fi
35695fd6 4126done
c906108c 4127
35695fd6
AC
4128echo "$as_me:$LINENO: checking for working mmap" >&5
4129echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4130if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133 if test "$cross_compiling" = yes; then
4134 ac_cv_func_mmap_fixed_mapped=no
4135else
4136 cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h. */
4142$ac_includes_default
4143/* malloc might have been renamed as rpl_malloc. */
4144#undef malloc
c906108c 4145
35695fd6
AC
4146/* Thanks to Mike Haertel and Jim Avera for this test.
4147 Here is a matrix of mmap possibilities:
4148 mmap private not fixed
4149 mmap private fixed at somewhere currently unmapped
4150 mmap private fixed at somewhere already mapped
4151 mmap shared not fixed
4152 mmap shared fixed at somewhere currently unmapped
4153 mmap shared fixed at somewhere already mapped
4154 For private mappings, we should verify that changes cannot be read()
4155 back from the file, nor mmap's back from the file at a different
4156 address. (There have been systems where private was not correctly
4157 implemented like the infamous i386 svr4.0, and systems where the
4158 VM page cache was not coherent with the file system buffer cache
4159 like early versions of FreeBSD and possibly contemporary NetBSD.)
4160 For shared mappings, we should conversely verify that changes get
4161 propagated back to all the places they're supposed to be.
cd0fc7c3 4162
35695fd6
AC
4163 Grep wants private fixed already mapped.
4164 The main things grep needs to know about mmap are:
4165 * does it exist and is it safe to write into the mmap'd area
4166 * how to use it (BSD variants) */
c906108c 4167
35695fd6
AC
4168#include <fcntl.h>
4169#include <sys/mman.h>
c906108c 4170
35695fd6
AC
4171#if !STDC_HEADERS && !HAVE_STDLIB_H
4172char *malloc ();
4173#endif
c906108c 4174
35695fd6
AC
4175/* This mess was copied from the GNU getpagesize.h. */
4176#if !HAVE_GETPAGESIZE
4177/* Assume that all systems that can run configure have sys/param.h. */
4178# if !HAVE_SYS_PARAM_H
4179# define HAVE_SYS_PARAM_H 1
4180# endif
c906108c 4181
35695fd6
AC
4182# ifdef _SC_PAGESIZE
4183# define getpagesize() sysconf(_SC_PAGESIZE)
4184# else /* no _SC_PAGESIZE */
4185# if HAVE_SYS_PARAM_H
4186# include <sys/param.h>
4187# ifdef EXEC_PAGESIZE
4188# define getpagesize() EXEC_PAGESIZE
4189# else /* no EXEC_PAGESIZE */
4190# ifdef NBPG
4191# define getpagesize() NBPG * CLSIZE
4192# ifndef CLSIZE
4193# define CLSIZE 1
4194# endif /* no CLSIZE */
4195# else /* no NBPG */
4196# ifdef NBPC
4197# define getpagesize() NBPC
4198# else /* no NBPC */
4199# ifdef PAGESIZE
4200# define getpagesize() PAGESIZE
4201# endif /* PAGESIZE */
4202# endif /* no NBPC */
4203# endif /* no NBPG */
4204# endif /* no EXEC_PAGESIZE */
4205# else /* no HAVE_SYS_PARAM_H */
4206# define getpagesize() 8192 /* punt totally */
4207# endif /* no HAVE_SYS_PARAM_H */
4208# endif /* no _SC_PAGESIZE */
c906108c 4209
35695fd6 4210#endif /* no HAVE_GETPAGESIZE */
c906108c 4211
35695fd6
AC
4212int
4213main ()
4214{
4215 char *data, *data2, *data3;
4216 int i, pagesize;
4217 int fd;
c906108c 4218
35695fd6 4219 pagesize = getpagesize ();
b7026657 4220
35695fd6
AC
4221 /* First, make a file with some known garbage in it. */
4222 data = (char *) malloc (pagesize);
4223 if (!data)
4224 exit (1);
4225 for (i = 0; i < pagesize; ++i)
4226 *(data + i) = rand ();
4227 umask (0);
4228 fd = creat ("conftest.mmap", 0600);
4229 if (fd < 0)
4230 exit (1);
4231 if (write (fd, data, pagesize) != pagesize)
4232 exit (1);
4233 close (fd);
b7026657 4234
35695fd6
AC
4235 /* Next, try to mmap the file at a fixed address which already has
4236 something else allocated at it. If we can, also make sure that
4237 we see the same garbage. */
4238 fd = open ("conftest.mmap", O_RDWR);
4239 if (fd < 0)
4240 exit (1);
4241 data2 = (char *) malloc (2 * pagesize);
4242 if (!data2)
4243 exit (1);
4244 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4245 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4246 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4247 exit (1);
4248 for (i = 0; i < pagesize; ++i)
4249 if (*(data + i) != *(data2 + i))
4250 exit (1);
4251
4252 /* Finally, make sure that changes to the mapped area do not
4253 percolate back to the file as seen by read(). (This is a bug on
4254 some variants of i386 svr4.0.) */
4255 for (i = 0; i < pagesize; ++i)
4256 *(data2 + i) = *(data2 + i) + 1;
4257 data3 = (char *) malloc (pagesize);
4258 if (!data3)
4259 exit (1);
4260 if (read (fd, data3, pagesize) != pagesize)
4261 exit (1);
4262 for (i = 0; i < pagesize; ++i)
4263 if (*(data + i) != *(data3 + i))
4264 exit (1);
4265 close (fd);
4266 exit (0);
4267}
4268_ACEOF
4269rm -f conftest$ac_exeext
4270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 ac_cv_func_mmap_fixed_mapped=yes
b7026657 4281else
35695fd6
AC
4282 echo "$as_me: program exited with status $ac_status" >&5
4283echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
b7026657 4285
35695fd6
AC
4286( exit $ac_status )
4287ac_cv_func_mmap_fixed_mapped=no
b7026657 4288fi
35695fd6 4289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b7026657 4290fi
b7026657 4291fi
35695fd6
AC
4292echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4293echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4294if test $ac_cv_func_mmap_fixed_mapped = yes; then
b7026657 4295
35695fd6
AC
4296cat >>confdefs.h <<\_ACEOF
4297#define HAVE_MMAP 1
4298_ACEOF
c906108c 4299
35695fd6
AC
4300fi
4301rm -f conftest.mmap
c906108c 4302
b7026657
AC
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
c906108c
SS
4314unistd.h values.h sys/param.h
4315do
b7026657
AC
4316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4317if eval "test \"\${$as_ac_Header+set}\" = set"; then
4318 echo "$as_me:$LINENO: checking for $ac_header" >&5
4319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322fi
4323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4325else
4326 # Is the header compilable?
4327echo "$as_me:$LINENO: checking $ac_header usability" >&5
4328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4329cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4335$ac_includes_default
4336#include <$ac_header>
4337_ACEOF
4338rm -f conftest.$ac_objext
4339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340 (eval $ac_compile) 2>conftest.er1
4341 ac_status=$?
4342 grep -v '^ *+' conftest.er1 >conftest.err
4343 rm -f conftest.er1
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_header_compiler=yes
4361else
4362 echo "$as_me: failed program was:" >&5
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
4365ac_header_compiler=no
4366fi
4367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4369echo "${ECHO_T}$ac_header_compiler" >&6
4370
4371# Is the header present?
4372echo "$as_me:$LINENO: checking $ac_header presence" >&5
4373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4374cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h. */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h. */
4380#include <$ac_header>
4381_ACEOF
4382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev/null; then
4390 if test -s conftest.err; then
4391 ac_cpp_err=$ac_c_preproc_warn_flag
4392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4393 else
4394 ac_cpp_err=
4395 fi
4396else
4397 ac_cpp_err=yes
c906108c 4398fi
b7026657
AC
4399if test -z "$ac_cpp_err"; then
4400 ac_header_preproc=yes
4401else
4402 echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 ac_header_preproc=no
c906108c 4406fi
b7026657
AC
4407rm -f conftest.err conftest.$ac_ext
4408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4409echo "${ECHO_T}$ac_header_preproc" >&6
4410
4411# So? What about this header?
4412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4413 yes:no: )
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4418 ac_header_preproc=yes
4419 ;;
4420 no:yes:* )
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4433 (
4434 cat <<\_ASBOX
4435## ------------------------------------------ ##
4436## Report this to the AC_PACKAGE_NAME lists. ##
4437## ------------------------------------------ ##
4438_ASBOX
4439 ) |
4440 sed "s/^/$as_me: WARNING: /" >&2
4441 ;;
4442esac
4443echo "$as_me:$LINENO: checking for $ac_header" >&5
4444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4445if eval "test \"\${$as_ac_Header+set}\" = set"; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4447else
b7026657
AC
4448 eval "$as_ac_Header=\$ac_header_preproc"
4449fi
4450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4452
4453fi
4454if test `eval echo '${'$as_ac_Header'}'` = yes; then
4455 cat >>confdefs.h <<_ACEOF
4456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4457_ACEOF
4458
c906108c 4459fi
b7026657 4460
c906108c
SS
4461done
4462
b7026657
AC
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
c906108c
SS
4474__argz_count __argz_stringify __argz_next
4475do
b7026657
AC
4476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4477echo "$as_me:$LINENO: checking for $ac_func" >&5
4478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4479if eval "test \"\${$as_ac_var+set}\" = set"; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482 cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h. */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h. */
4488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4490#define $ac_func innocuous_$ac_func
4491
c906108c 4492/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4493 which can conflict with char $ac_func (); below.
4494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4495 <limits.h> exists even on freestanding compilers. */
4496
4497#ifdef __STDC__
4498# include <limits.h>
4499#else
4500# include <assert.h>
4501#endif
c906108c 4502
b7026657 4503#undef $ac_func
c906108c 4504
b7026657
AC
4505/* Override any gcc2 internal prototype to avoid an error. */
4506#ifdef __cplusplus
4507extern "C"
4508{
4509#endif
4510/* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4512char $ac_func ();
c906108c
SS
4513/* The GNU C library defines this for functions which it implements
4514 to always fail with ENOSYS. Some functions are actually named
4515 something starting with __ and the normal name is an alias. */
4516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4517choke me
4518#else
b7026657
AC
4519char (*f) () = $ac_func;
4520#endif
4521#ifdef __cplusplus
4522}
c906108c
SS
4523#endif
4524
b7026657
AC
4525int
4526main ()
4527{
4528return f != $ac_func;
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext conftest$ac_exeext
4534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535 (eval $ac_link) 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -z "$ac_c_werror_flag"
4543 || test ! -s conftest.err'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; } &&
4549 { ac_try='test -s conftest$ac_exeext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 eval "$as_ac_var=yes"
4556else
4557 echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560eval "$as_ac_var=no"
4561fi
4562rm -f conftest.err conftest.$ac_objext \
4563 conftest$ac_exeext conftest.$ac_ext
4564fi
4565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4567if test `eval echo '${'$as_ac_var'}'` = yes; then
4568 cat >>confdefs.h <<_ACEOF
4569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4570_ACEOF
c906108c 4571
c906108c
SS
4572fi
4573done
4574
4575
4576 if test "${ac_cv_func_stpcpy+set}" != "set"; then
b7026657
AC
4577
4578for ac_func in stpcpy
c906108c 4579do
b7026657
AC
4580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4581echo "$as_me:$LINENO: checking for $ac_func" >&5
4582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4583if eval "test \"\${$as_ac_var+set}\" = set"; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586 cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h. */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h. */
4592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4594#define $ac_func innocuous_$ac_func
4595
c906108c 4596/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4597 which can conflict with char $ac_func (); below.
4598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4599 <limits.h> exists even on freestanding compilers. */
4600
4601#ifdef __STDC__
4602# include <limits.h>
4603#else
4604# include <assert.h>
4605#endif
c906108c 4606
b7026657 4607#undef $ac_func
c906108c 4608
b7026657
AC
4609/* Override any gcc2 internal prototype to avoid an error. */
4610#ifdef __cplusplus
4611extern "C"
4612{
4613#endif
4614/* We use char because int might match the return type of a gcc2
4615 builtin and then its argument prototype would still apply. */
4616char $ac_func ();
c906108c
SS
4617/* The GNU C library defines this for functions which it implements
4618 to always fail with ENOSYS. Some functions are actually named
4619 something starting with __ and the normal name is an alias. */
4620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4621choke me
4622#else
b7026657
AC
4623char (*f) () = $ac_func;
4624#endif
4625#ifdef __cplusplus
4626}
c906108c
SS
4627#endif
4628
b7026657
AC
4629int
4630main ()
4631{
4632return f != $ac_func;
4633 ;
4634 return 0;
4635}
4636_ACEOF
4637rm -f conftest.$ac_objext conftest$ac_exeext
4638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4639 (eval $ac_link) 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -z "$ac_c_werror_flag"
4647 || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest$ac_exeext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 eval "$as_ac_var=yes"
4660else
4661 echo "$as_me: failed program was:" >&5
4662sed 's/^/| /' conftest.$ac_ext >&5
4663
4664eval "$as_ac_var=no"
4665fi
4666rm -f conftest.err conftest.$ac_objext \
4667 conftest$ac_exeext conftest.$ac_ext
4668fi
4669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4670echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4671if test `eval echo '${'$as_ac_var'}'` = yes; then
4672 cat >>confdefs.h <<_ACEOF
4673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4674_ACEOF
4675
c906108c
SS
4676fi
4677done
4678
4679 fi
4680 if test "${ac_cv_func_stpcpy}" = "yes"; then
b7026657 4681 cat >>confdefs.h <<\_ACEOF
c906108c 4682#define HAVE_STPCPY 1
b7026657 4683_ACEOF
c906108c
SS
4684
4685 fi
4686
4687 if test $ac_cv_header_locale_h = yes; then
b7026657
AC
4688 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4689echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4690if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
4693 cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
c906108c 4699#include <locale.h>
b7026657
AC
4700int
4701main ()
4702{
c906108c 4703return LC_MESSAGES
b7026657
AC
4704 ;
4705 return 0;
4706}
4707_ACEOF
4708rm -f conftest.$ac_objext conftest$ac_exeext
4709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_c_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest$ac_exeext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
c906108c
SS
4730 am_cv_val_LC_MESSAGES=yes
4731else
b7026657
AC
4732 echo "$as_me: failed program was:" >&5
4733sed 's/^/| /' conftest.$ac_ext >&5
4734
4735am_cv_val_LC_MESSAGES=no
c906108c 4736fi
b7026657
AC
4737rm -f conftest.err conftest.$ac_objext \
4738 conftest$ac_exeext conftest.$ac_ext
c906108c 4739fi
b7026657
AC
4740echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4741echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c906108c 4742 if test $am_cv_val_LC_MESSAGES = yes; then
b7026657 4743 cat >>confdefs.h <<\_ACEOF
c906108c 4744#define HAVE_LC_MESSAGES 1
b7026657 4745_ACEOF
c906108c
SS
4746
4747 fi
4748 fi
b7026657
AC
4749 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4750echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
c906108c
SS
4751 # Check whether --enable-nls or --disable-nls was given.
4752if test "${enable_nls+set}" = set; then
4753 enableval="$enable_nls"
4754 USE_NLS=$enableval
4755else
4756 USE_NLS=yes
b7026657
AC
4757fi;
4758 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4759echo "${ECHO_T}$USE_NLS" >&6
c906108c 4760
c906108c
SS
4761
4762 USE_INCLUDED_LIBINTL=no
4763
4764 if test "$USE_NLS" = "yes"; then
b7026657 4765 cat >>confdefs.h <<\_ACEOF
c906108c 4766#define ENABLE_NLS 1
b7026657
AC
4767_ACEOF
4768
4769 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4770echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
c906108c 4771
b7026657 4772# Check whether --with-included-gettext or --without-included-gettext was given.
c906108c
SS
4773if test "${with_included_gettext+set}" = set; then
4774 withval="$with_included_gettext"
4775 nls_cv_force_use_gnu_gettext=$withval
4776else
4777 nls_cv_force_use_gnu_gettext=no
b7026657
AC
4778fi;
4779 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4780echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
c906108c
SS
4781
4782 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4783 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4784 nls_cv_header_intl=
4785 nls_cv_header_libgt=
4786 CATOBJEXT=NONE
4787
b7026657
AC
4788 if test "${ac_cv_header_libintl_h+set}" = set; then
4789 echo "$as_me:$LINENO: checking for libintl.h" >&5
4790echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4791if test "${ac_cv_header_libintl_h+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793fi
4794echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4795echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4796else
4797 # Is the header compilable?
4798echo "$as_me:$LINENO: checking libintl.h usability" >&5
4799echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4800cat >conftest.$ac_ext <<_ACEOF
4801/* confdefs.h. */
4802_ACEOF
4803cat confdefs.h >>conftest.$ac_ext
4804cat >>conftest.$ac_ext <<_ACEOF
4805/* end confdefs.h. */
4806$ac_includes_default
4807#include <libintl.h>
4808_ACEOF
4809rm -f conftest.$ac_objext
4810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_header_compiler=yes
4832else
4833 echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836ac_header_compiler=no
4837fi
4838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4840echo "${ECHO_T}$ac_header_compiler" >&6
4841
4842# Is the header present?
4843echo "$as_me:$LINENO: checking libintl.h presence" >&5
4844echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4845cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h. */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h. */
c906108c 4851#include <libintl.h>
b7026657
AC
4852_ACEOF
4853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } >/dev/null; then
4861 if test -s conftest.err; then
4862 ac_cpp_err=$ac_c_preproc_warn_flag
4863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4864 else
4865 ac_cpp_err=
4866 fi
4867else
4868 ac_cpp_err=yes
c906108c 4869fi
b7026657
AC
4870if test -z "$ac_cpp_err"; then
4871 ac_header_preproc=yes
4872else
4873 echo "$as_me: failed program was:" >&5
4874sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 ac_header_preproc=no
4877fi
4878rm -f conftest.err conftest.$ac_ext
4879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4880echo "${ECHO_T}$ac_header_preproc" >&6
4881
4882# So? What about this header?
4883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4884 yes:no: )
4885 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4886echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4888echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4889 ac_header_preproc=yes
4890 ;;
4891 no:yes:* )
4892 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4893echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4895echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4897echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4899echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4901echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4902 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4903echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4904 (
4905 cat <<\_ASBOX
4906## ------------------------------------------ ##
4907## Report this to the AC_PACKAGE_NAME lists. ##
4908## ------------------------------------------ ##
4909_ASBOX
4910 ) |
4911 sed "s/^/$as_me: WARNING: /" >&2
4912 ;;
4913esac
4914echo "$as_me:$LINENO: checking for libintl.h" >&5
4915echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4916if test "${ac_cv_header_libintl_h+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919 ac_cv_header_libintl_h=$ac_header_preproc
c906108c 4920fi
b7026657
AC
4921echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4922echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4923
4924fi
4925if test $ac_cv_header_libintl_h = yes; then
4926 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4927echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4928if test "${gt_cv_func_gettext_libc+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4930else
b7026657
AC
4931 cat >conftest.$ac_ext <<_ACEOF
4932/* confdefs.h. */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
4936/* end confdefs.h. */
c906108c 4937#include <libintl.h>
b7026657
AC
4938int
4939main ()
4940{
c906108c 4941return (int) gettext ("")
b7026657
AC
4942 ;
4943 return 0;
4944}
4945_ACEOF
4946rm -f conftest.$ac_objext conftest$ac_exeext
4947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948 (eval $ac_link) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
c906108c
SS
4968 gt_cv_func_gettext_libc=yes
4969else
b7026657
AC
4970 echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973gt_cv_func_gettext_libc=no
c906108c 4974fi
b7026657
AC
4975rm -f conftest.err conftest.$ac_objext \
4976 conftest$ac_exeext conftest.$ac_ext
c906108c 4977fi
b7026657
AC
4978echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4979echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
c906108c
SS
4980
4981 if test "$gt_cv_func_gettext_libc" != "yes"; then
b7026657
AC
4982 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4983echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4984if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4986else
b7026657 4987 ac_check_lib_save_LIBS=$LIBS
c906108c 4988LIBS="-lintl $LIBS"
b7026657
AC
4989cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
4995
c906108c 4996/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4997#ifdef __cplusplus
4998extern "C"
4999#endif
c906108c 5000/* We use char because int might match the return type of a gcc2
b7026657
AC
5001 builtin and then its argument prototype would still apply. */
5002char bindtextdomain ();
5003int
5004main ()
5005{
5006bindtextdomain ();
5007 ;
5008 return 0;
5009}
5010_ACEOF
5011rm -f conftest.$ac_objext conftest$ac_exeext
5012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013 (eval $ac_link) 2>conftest.er1
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest$ac_exeext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 ac_cv_lib_intl_bindtextdomain=yes
5034else
5035 echo "$as_me: failed program was:" >&5
5036sed 's/^/| /' conftest.$ac_ext >&5
5037
5038ac_cv_lib_intl_bindtextdomain=no
5039fi
5040rm -f conftest.err conftest.$ac_objext \
5041 conftest$ac_exeext conftest.$ac_ext
5042LIBS=$ac_check_lib_save_LIBS
5043fi
5044echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5045echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5046if test $ac_cv_lib_intl_bindtextdomain = yes; then
5047 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5048echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5049if test "${gt_cv_func_gettext_libintl+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052 cat >conftest.$ac_ext <<_ACEOF
5053/* confdefs.h. */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h. */
c906108c 5058
b7026657
AC
5059int
5060main ()
5061{
c906108c 5062return (int) gettext ("")
b7026657
AC
5063 ;
5064 return 0;
5065}
5066_ACEOF
5067rm -f conftest.$ac_objext conftest$ac_exeext
5068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5069 (eval $ac_link) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -z "$ac_c_werror_flag"
5077 || test ! -s conftest.err'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest$ac_exeext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
c906108c
SS
5089 gt_cv_func_gettext_libintl=yes
5090else
b7026657
AC
5091 echo "$as_me: failed program was:" >&5
5092sed 's/^/| /' conftest.$ac_ext >&5
5093
5094gt_cv_func_gettext_libintl=no
c906108c 5095fi
b7026657
AC
5096rm -f conftest.err conftest.$ac_objext \
5097 conftest$ac_exeext conftest.$ac_ext
c906108c 5098fi
b7026657
AC
5099echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5100echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
c906108c
SS
5101fi
5102
5103 fi
5104
5105 if test "$gt_cv_func_gettext_libc" = "yes" \
5106 || test "$gt_cv_func_gettext_libintl" = "yes"; then
b7026657 5107 cat >>confdefs.h <<\_ACEOF
c906108c 5108#define HAVE_GETTEXT 1
b7026657 5109_ACEOF
c906108c
SS
5110
5111 # Extract the first word of "msgfmt", so it can be a program name with args.
5112set dummy msgfmt; ac_word=$2
b7026657
AC
5113echo "$as_me:$LINENO: checking for $ac_word" >&5
5114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5115if test "${ac_cv_path_MSGFMT+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5117else
5118 case "$MSGFMT" in
5119 /*)
5120 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5121 ;;
5122 *)
5123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5124 for ac_dir in $PATH; do
5125 test -z "$ac_dir" && ac_dir=.
5126 if test -f $ac_dir/$ac_word; then
5127 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5128 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5129 break
5130 fi
5131 fi
5132 done
5133 IFS="$ac_save_ifs"
5134 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5135 ;;
5136esac
5137fi
5138MSGFMT="$ac_cv_path_MSGFMT"
5139if test -n "$MSGFMT"; then
b7026657
AC
5140 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5141echo "${ECHO_T}$MSGFMT" >&6
c906108c 5142else
b7026657
AC
5143 echo "$as_me:$LINENO: result: no" >&5
5144echo "${ECHO_T}no" >&6
c906108c
SS
5145fi
5146 if test "$MSGFMT" != "no"; then
b7026657
AC
5147
5148for ac_func in dcgettext
c906108c 5149do
b7026657
AC
5150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5151echo "$as_me:$LINENO: checking for $ac_func" >&5
5152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5153if eval "test \"\${$as_ac_var+set}\" = set"; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156 cat >conftest.$ac_ext <<_ACEOF
5157/* confdefs.h. */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h. */
5162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5164#define $ac_func innocuous_$ac_func
5165
c906108c 5166/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
5167 which can conflict with char $ac_func (); below.
5168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 <limits.h> exists even on freestanding compilers. */
5170
5171#ifdef __STDC__
5172# include <limits.h>
5173#else
5174# include <assert.h>
5175#endif
c906108c 5176
b7026657 5177#undef $ac_func
c906108c 5178
b7026657
AC
5179/* Override any gcc2 internal prototype to avoid an error. */
5180#ifdef __cplusplus
5181extern "C"
5182{
5183#endif
5184/* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */
5186char $ac_func ();
c906108c
SS
5187/* The GNU C library defines this for functions which it implements
5188 to always fail with ENOSYS. Some functions are actually named
5189 something starting with __ and the normal name is an alias. */
5190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5191choke me
5192#else
b7026657
AC
5193char (*f) () = $ac_func;
5194#endif
5195#ifdef __cplusplus
5196}
c906108c
SS
5197#endif
5198
b7026657
AC
5199int
5200main ()
5201{
5202return f != $ac_func;
5203 ;
5204 return 0;
5205}
5206_ACEOF
5207rm -f conftest.$ac_objext conftest$ac_exeext
5208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209 (eval $ac_link) 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try='test -z "$ac_c_werror_flag"
5217 || test ! -s conftest.err'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try='test -s conftest$ac_exeext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 eval "$as_ac_var=yes"
5230else
5231 echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
5234eval "$as_ac_var=no"
5235fi
5236rm -f conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5238fi
5239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5241if test `eval echo '${'$as_ac_var'}'` = yes; then
5242 cat >>confdefs.h <<_ACEOF
5243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5244_ACEOF
c906108c 5245
c906108c
SS
5246fi
5247done
5248
5249 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5250set dummy gmsgfmt; ac_word=$2
b7026657
AC
5251echo "$as_me:$LINENO: checking for $ac_word" >&5
5252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253if test "${ac_cv_path_GMSGFMT+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5255else
b7026657
AC
5256 case $GMSGFMT in
5257 [\\/]* | ?:[\\/]*)
c906108c
SS
5258 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5259 ;;
c906108c 5260 *)
b7026657
AC
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272done
5273done
5274
c906108c
SS
5275 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5276 ;;
5277esac
5278fi
b7026657
AC
5279GMSGFMT=$ac_cv_path_GMSGFMT
5280
c906108c 5281if test -n "$GMSGFMT"; then
b7026657
AC
5282 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5283echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5284else
b7026657
AC
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
c906108c
SS
5287fi
5288
5289 # Extract the first word of "xgettext", so it can be a program name with args.
5290set dummy xgettext; ac_word=$2
b7026657
AC
5291echo "$as_me:$LINENO: checking for $ac_word" >&5
5292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293if test "${ac_cv_path_XGETTEXT+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5295else
5296 case "$XGETTEXT" in
5297 /*)
5298 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5299 ;;
5300 *)
5301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5302 for ac_dir in $PATH; do
5303 test -z "$ac_dir" && ac_dir=.
5304 if test -f $ac_dir/$ac_word; then
5305 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5306 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5307 break
5308 fi
5309 fi
5310 done
5311 IFS="$ac_save_ifs"
5312 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5313 ;;
5314esac
5315fi
5316XGETTEXT="$ac_cv_path_XGETTEXT"
5317if test -n "$XGETTEXT"; then
b7026657
AC
5318 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5319echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5320else
b7026657
AC
5321 echo "$as_me:$LINENO: result: no" >&5
5322echo "${ECHO_T}no" >&6
c906108c
SS
5323fi
5324
b7026657
AC
5325 cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h. */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h. */
c906108c 5331
b7026657
AC
5332int
5333main ()
5334{
c906108c
SS
5335extern int _nl_msg_cat_cntr;
5336 return _nl_msg_cat_cntr
b7026657
AC
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext conftest$ac_exeext
5342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343 (eval $ac_link) 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -z "$ac_c_werror_flag"
5351 || test ! -s conftest.err'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; } &&
5357 { ac_try='test -s conftest$ac_exeext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
c906108c
SS
5363 CATOBJEXT=.gmo
5364 DATADIRNAME=share
5365else
b7026657
AC
5366 echo "$as_me: failed program was:" >&5
5367sed 's/^/| /' conftest.$ac_ext >&5
5368
5369CATOBJEXT=.mo
c906108c
SS
5370 DATADIRNAME=lib
5371fi
b7026657
AC
5372rm -f conftest.err conftest.$ac_objext \
5373 conftest$ac_exeext conftest.$ac_ext
c906108c
SS
5374 INSTOBJEXT=.mo
5375 fi
5376 fi
b7026657 5377
c906108c
SS
5378fi
5379
5380
b7026657
AC
5381
5382
c906108c
SS
5383 if test "$CATOBJEXT" = "NONE"; then
5384 nls_cv_use_gnu_gettext=yes
5385 fi
5386 fi
5387
5388 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5389 INTLOBJS="\$(GETTOBJS)"
5390 # Extract the first word of "msgfmt", so it can be a program name with args.
5391set dummy msgfmt; ac_word=$2
b7026657
AC
5392echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394if test "${ac_cv_path_MSGFMT+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5396else
5397 case "$MSGFMT" in
5398 /*)
5399 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5400 ;;
5401 *)
5402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5403 for ac_dir in $PATH; do
5404 test -z "$ac_dir" && ac_dir=.
5405 if test -f $ac_dir/$ac_word; then
5406 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5407 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5408 break
5409 fi
5410 fi
5411 done
5412 IFS="$ac_save_ifs"
5413 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5414 ;;
5415esac
5416fi
5417MSGFMT="$ac_cv_path_MSGFMT"
5418if test -n "$MSGFMT"; then
b7026657
AC
5419 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5420echo "${ECHO_T}$MSGFMT" >&6
c906108c 5421else
b7026657
AC
5422 echo "$as_me:$LINENO: result: no" >&5
5423echo "${ECHO_T}no" >&6
c906108c
SS
5424fi
5425
5426 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5427set dummy gmsgfmt; ac_word=$2
b7026657
AC
5428echo "$as_me:$LINENO: checking for $ac_word" >&5
5429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430if test "${ac_cv_path_GMSGFMT+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5432else
b7026657
AC
5433 case $GMSGFMT in
5434 [\\/]* | ?:[\\/]*)
c906108c
SS
5435 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5436 ;;
c906108c 5437 *)
b7026657
AC
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH
5440do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5448 fi
5449done
5450done
5451
c906108c
SS
5452 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5453 ;;
5454esac
5455fi
b7026657
AC
5456GMSGFMT=$ac_cv_path_GMSGFMT
5457
c906108c 5458if test -n "$GMSGFMT"; then
b7026657
AC
5459 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5460echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5461else
b7026657
AC
5462 echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
c906108c
SS
5464fi
5465
5466 # Extract the first word of "xgettext", so it can be a program name with args.
5467set dummy xgettext; ac_word=$2
b7026657
AC
5468echo "$as_me:$LINENO: checking for $ac_word" >&5
5469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5470if test "${ac_cv_path_XGETTEXT+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5472else
5473 case "$XGETTEXT" in
5474 /*)
5475 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5476 ;;
5477 *)
5478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5479 for ac_dir in $PATH; do
5480 test -z "$ac_dir" && ac_dir=.
5481 if test -f $ac_dir/$ac_word; then
5482 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5483 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5484 break
5485 fi
5486 fi
5487 done
5488 IFS="$ac_save_ifs"
5489 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5490 ;;
5491esac
5492fi
5493XGETTEXT="$ac_cv_path_XGETTEXT"
5494if test -n "$XGETTEXT"; then
b7026657
AC
5495 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5496echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5497else
b7026657
AC
5498 echo "$as_me:$LINENO: result: no" >&5
5499echo "${ECHO_T}no" >&6
c906108c
SS
5500fi
5501
b7026657 5502
c906108c
SS
5503 USE_INCLUDED_LIBINTL=yes
5504 CATOBJEXT=.gmo
5505 INSTOBJEXT=.mo
5506 DATADIRNAME=share
5507 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5508 INTLLIBS=$INTLDEPS
5509 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5510 nls_cv_header_intl=libintl.h
5511 nls_cv_header_libgt=libgettext.h
5512 fi
5513
5514 if test "$XGETTEXT" != ":"; then
5515 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5516 : ;
5517 else
b7026657
AC
5518 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5519echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
c906108c
SS
5520 XGETTEXT=":"
5521 fi
5522 fi
5523
5524 # We need to process the po/ directory.
5525 POSUB=po
5526 else
5527 DATADIRNAME=share
5528 nls_cv_header_intl=libintl.h
5529 nls_cv_header_libgt=libgettext.h
5530 fi
5531
5532 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5533 # because some of the sources are only built for this goal.
5534 if test "$PACKAGE" = gettext; then
5535 USE_NLS=yes
5536 USE_INCLUDED_LIBINTL=yes
5537 fi
5538
5539 for lang in $ALL_LINGUAS; do
5540 GMOFILES="$GMOFILES $lang.gmo"
5541 POFILES="$POFILES $lang.po"
5542 done
5543
b7026657
AC
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
c906108c
SS
5556
5557 if test "x$CATOBJEXT" != "x"; then
5558 if test "x$ALL_LINGUAS" = "x"; then
5559 LINGUAS=
5560 else
b7026657
AC
5561 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5562echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
c906108c
SS
5563 NEW_LINGUAS=
5564 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5565 case "$ALL_LINGUAS" in
5566 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5567 esac
5568 done
5569 LINGUAS=$NEW_LINGUAS
b7026657
AC
5570 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5571echo "${ECHO_T}$LINGUAS" >&6
c906108c
SS
5572 fi
5573
5574 if test -n "$LINGUAS"; then
5575 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5576 fi
5577 fi
5578
5579 if test $ac_cv_header_locale_h = yes; then
5580 INCLUDE_LOCALE_H="#include <locale.h>"
5581 else
5582 INCLUDE_LOCALE_H="\
5583/* The system does not provide the header <locale.h>. Take care yourself. */"
5584 fi
b7026657 5585
c906108c
SS
5586
5587 if test -f $srcdir/po2tbl.sed.in; then
5588 if test "$CATOBJEXT" = ".cat"; then
b7026657
AC
5589 if test "${ac_cv_header_linux_version_h+set}" = set; then
5590 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5591echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5592if test "${ac_cv_header_linux_version_h+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594fi
5595echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5596echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5597else
5598 # Is the header compilable?
5599echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5600echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5601cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607$ac_includes_default
5608#include <linux/version.h>
5609_ACEOF
5610rm -f conftest.$ac_objext
5611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_header_compiler=yes
5633else
5634 echo "$as_me: failed program was:" >&5
5635sed 's/^/| /' conftest.$ac_ext >&5
5636
5637ac_header_compiler=no
5638fi
5639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5641echo "${ECHO_T}$ac_header_compiler" >&6
5642
5643# Is the header present?
5644echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5645echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5646cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h. */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h. */
c906108c 5652#include <linux/version.h>
b7026657
AC
5653_ACEOF
5654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } >/dev/null; then
5662 if test -s conftest.err; then
5663 ac_cpp_err=$ac_c_preproc_warn_flag
5664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5665 else
5666 ac_cpp_err=
5667 fi
5668else
5669 ac_cpp_err=yes
c906108c 5670fi
b7026657
AC
5671if test -z "$ac_cpp_err"; then
5672 ac_header_preproc=yes
5673else
5674 echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 ac_header_preproc=no
5678fi
5679rm -f conftest.err conftest.$ac_ext
5680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5681echo "${ECHO_T}$ac_header_preproc" >&6
5682
5683# So? What about this header?
5684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5685 yes:no: )
5686 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5687echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5689echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5690 ac_header_preproc=yes
5691 ;;
5692 no:yes:* )
5693 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5694echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5696echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5698echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5700echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5702echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5704echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5705 (
5706 cat <<\_ASBOX
5707## ------------------------------------------ ##
5708## Report this to the AC_PACKAGE_NAME lists. ##
5709## ------------------------------------------ ##
5710_ASBOX
5711 ) |
5712 sed "s/^/$as_me: WARNING: /" >&2
5713 ;;
5714esac
5715echo "$as_me:$LINENO: checking for linux/version.h" >&5
5716echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5717if test "${ac_cv_header_linux_version_h+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720 ac_cv_header_linux_version_h=$ac_header_preproc
c906108c 5721fi
b7026657
AC
5722echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5723echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5724
5725fi
5726if test $ac_cv_header_linux_version_h = yes; then
c906108c
SS
5727 msgformat=linux
5728else
b7026657 5729 msgformat=xopen
c906108c
SS
5730fi
5731
5732
b7026657 5733
c906108c
SS
5734 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5735 fi
5736 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5737 $srcdir/po2tbl.sed.in > po2tbl.sed
5738 fi
5739
5740 if test "$PACKAGE" = "gettext"; then
5741 GT_NO="#NO#"
5742 GT_YES=
5743 else
5744 GT_NO=
5745 GT_YES="#YES#"
5746 fi
b7026657
AC
5747
5748
c906108c
SS
5749
5750 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
b7026657 5751
c906108c
SS
5752
5753 l=
b7026657 5754
c906108c
SS
5755
5756 if test -d $srcdir/po; then
5757 test -d po || mkdir po
5758 if test "x$srcdir" != "x."; then
5759 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5760 posrcprefix="$srcdir/"
5761 else
5762 posrcprefix="../$srcdir/"
5763 fi
5764 else
5765 posrcprefix="../"
5766 fi
5767 rm -f po/POTFILES
5768 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5769 < $srcdir/po/POTFILES.in > po/POTFILES
5770 fi
b7026657 5771
c906108c
SS
5772
5773# Check for common headers.
5774# FIXME: Seems to me this can cause problems for i386-windows hosts.
5775# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
b7026657
AC
5776
5777
5778
5779
5780
5781for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 5782do
b7026657
AC
5783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5784if eval "test \"\${$as_ac_Header+set}\" = set"; then
5785 echo "$as_me:$LINENO: checking for $ac_header" >&5
5786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5787if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789fi
5790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5792else
5793 # Is the header compilable?
5794echo "$as_me:$LINENO: checking $ac_header usability" >&5
5795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5796cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h. */
5802$ac_includes_default
5803#include <$ac_header>
5804_ACEOF
5805rm -f conftest.$ac_objext
5806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807 (eval $ac_compile) 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } &&
5814 { ac_try='test -z "$ac_c_werror_flag"
5815 || test ! -s conftest.err'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; } &&
5821 { ac_try='test -s conftest.$ac_objext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_header_compiler=yes
5828else
5829 echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832ac_header_compiler=no
5833fi
5834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5836echo "${ECHO_T}$ac_header_compiler" >&6
5837
5838# Is the header present?
5839echo "$as_me:$LINENO: checking $ac_header presence" >&5
5840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5841cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h. */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */
5847#include <$ac_header>
5848_ACEOF
5849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } >/dev/null; then
5857 if test -s conftest.err; then
5858 ac_cpp_err=$ac_c_preproc_warn_flag
5859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5860 else
5861 ac_cpp_err=
5862 fi
5863else
5864 ac_cpp_err=yes
c906108c 5865fi
b7026657
AC
5866if test -z "$ac_cpp_err"; then
5867 ac_header_preproc=yes
5868else
5869 echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872 ac_header_preproc=no
c906108c 5873fi
b7026657
AC
5874rm -f conftest.err conftest.$ac_ext
5875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5876echo "${ECHO_T}$ac_header_preproc" >&6
5877
5878# So? What about this header?
5879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5880 yes:no: )
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5885 ac_header_preproc=yes
5886 ;;
5887 no:yes:* )
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5900 (
5901 cat <<\_ASBOX
5902## ------------------------------------------ ##
5903## Report this to the AC_PACKAGE_NAME lists. ##
5904## ------------------------------------------ ##
5905_ASBOX
5906 ) |
5907 sed "s/^/$as_me: WARNING: /" >&2
5908 ;;
5909esac
5910echo "$as_me:$LINENO: checking for $ac_header" >&5
5911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5912if eval "test \"\${$as_ac_Header+set}\" = set"; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5914else
b7026657
AC
5915 eval "$as_ac_Header=\$ac_header_preproc"
5916fi
5917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5919
5920fi
5921if test `eval echo '${'$as_ac_Header'}'` = yes; then
5922 cat >>confdefs.h <<_ACEOF
5923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5924_ACEOF
5925
c906108c 5926fi
b7026657 5927
c906108c
SS
5928done
5929
b7026657
AC
5930
5931
5932for ac_header in sys/time.h sys/resource.h
c906108c 5933do
b7026657
AC
5934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5935if eval "test \"\${$as_ac_Header+set}\" = set"; then
5936 echo "$as_me:$LINENO: checking for $ac_header" >&5
5937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5938if eval "test \"\${$as_ac_Header+set}\" = set"; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940fi
5941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5943else
5944 # Is the header compilable?
5945echo "$as_me:$LINENO: checking $ac_header usability" >&5
5946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5947cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
5953$ac_includes_default
5954#include <$ac_header>
5955_ACEOF
5956rm -f conftest.$ac_objext
5957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -z "$ac_c_werror_flag"
5966 || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_header_compiler=yes
5979else
5980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983ac_header_compiler=no
5984fi
5985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5987echo "${ECHO_T}$ac_header_compiler" >&6
5988
5989# Is the header present?
5990echo "$as_me:$LINENO: checking $ac_header presence" >&5
5991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5992cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
5998#include <$ac_header>
5999_ACEOF
6000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } >/dev/null; then
6008 if test -s conftest.err; then
6009 ac_cpp_err=$ac_c_preproc_warn_flag
6010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011 else
6012 ac_cpp_err=
6013 fi
6014else
6015 ac_cpp_err=yes
c906108c 6016fi
b7026657
AC
6017if test -z "$ac_cpp_err"; then
6018 ac_header_preproc=yes
6019else
6020 echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 ac_header_preproc=no
c906108c 6024fi
b7026657
AC
6025rm -f conftest.err conftest.$ac_ext
6026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6027echo "${ECHO_T}$ac_header_preproc" >&6
6028
6029# So? What about this header?
6030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6031 yes:no: )
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6036 ac_header_preproc=yes
6037 ;;
6038 no:yes:* )
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6051 (
6052 cat <<\_ASBOX
6053## ------------------------------------------ ##
6054## Report this to the AC_PACKAGE_NAME lists. ##
6055## ------------------------------------------ ##
6056_ASBOX
6057 ) |
6058 sed "s/^/$as_me: WARNING: /" >&2
6059 ;;
6060esac
6061echo "$as_me:$LINENO: checking for $ac_header" >&5
6062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6063if eval "test \"\${$as_ac_Header+set}\" = set"; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6065else
b7026657
AC
6066 eval "$as_ac_Header=\$ac_header_preproc"
6067fi
6068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070
6071fi
6072if test `eval echo '${'$as_ac_Header'}'` = yes; then
6073 cat >>confdefs.h <<_ACEOF
6074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6075_ACEOF
6076
c906108c 6077fi
b7026657 6078
c906108c
SS
6079done
6080
b7026657
AC
6081
6082
6083for ac_header in fcntl.h fpu_control.h
c906108c 6084do
b7026657
AC
6085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6086if eval "test \"\${$as_ac_Header+set}\" = set"; then
6087 echo "$as_me:$LINENO: checking for $ac_header" >&5
6088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6089if eval "test \"\${$as_ac_Header+set}\" = set"; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091fi
6092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6094else
6095 # Is the header compilable?
6096echo "$as_me:$LINENO: checking $ac_header usability" >&5
6097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6098cat >conftest.$ac_ext <<_ACEOF
6099/* confdefs.h. */
6100_ACEOF
6101cat confdefs.h >>conftest.$ac_ext
6102cat >>conftest.$ac_ext <<_ACEOF
6103/* end confdefs.h. */
6104$ac_includes_default
6105#include <$ac_header>
6106_ACEOF
6107rm -f conftest.$ac_objext
6108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -z "$ac_c_werror_flag"
6117 || test ! -s conftest.err'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_header_compiler=yes
6130else
6131 echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
6133
6134ac_header_compiler=no
6135fi
6136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138echo "${ECHO_T}$ac_header_compiler" >&6
6139
6140# Is the header present?
6141echo "$as_me:$LINENO: checking $ac_header presence" >&5
6142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6143cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149#include <$ac_header>
6150_ACEOF
6151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null; then
6159 if test -s conftest.err; then
6160 ac_cpp_err=$ac_c_preproc_warn_flag
6161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6162 else
6163 ac_cpp_err=
6164 fi
6165else
6166 ac_cpp_err=yes
c906108c 6167fi
b7026657
AC
6168if test -z "$ac_cpp_err"; then
6169 ac_header_preproc=yes
6170else
6171 echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174 ac_header_preproc=no
c906108c 6175fi
b7026657
AC
6176rm -f conftest.err conftest.$ac_ext
6177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6178echo "${ECHO_T}$ac_header_preproc" >&6
6179
6180# So? What about this header?
6181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6182 yes:no: )
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6187 ac_header_preproc=yes
6188 ;;
6189 no:yes:* )
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6202 (
6203 cat <<\_ASBOX
6204## ------------------------------------------ ##
6205## Report this to the AC_PACKAGE_NAME lists. ##
6206## ------------------------------------------ ##
6207_ASBOX
6208 ) |
6209 sed "s/^/$as_me: WARNING: /" >&2
6210 ;;
6211esac
6212echo "$as_me:$LINENO: checking for $ac_header" >&5
6213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6214if eval "test \"\${$as_ac_Header+set}\" = set"; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6216else
b7026657
AC
6217 eval "$as_ac_Header=\$ac_header_preproc"
6218fi
6219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221
6222fi
6223if test `eval echo '${'$as_ac_Header'}'` = yes; then
6224 cat >>confdefs.h <<_ACEOF
6225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226_ACEOF
6227
c906108c 6228fi
b7026657 6229
c906108c
SS
6230done
6231
b7026657
AC
6232
6233
6234
6235for ac_header in dlfcn.h errno.h sys/stat.h
c906108c 6236do
b7026657
AC
6237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238if eval "test \"\${$as_ac_Header+set}\" = set"; then
6239 echo "$as_me:$LINENO: checking for $ac_header" >&5
6240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6241if eval "test \"\${$as_ac_Header+set}\" = set"; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243fi
6244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6246else
6247 # Is the header compilable?
6248echo "$as_me:$LINENO: checking $ac_header usability" >&5
6249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6250cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256$ac_includes_default
6257#include <$ac_header>
6258_ACEOF
6259rm -f conftest.$ac_objext
6260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261 (eval $ac_compile) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest.$ac_objext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_header_compiler=yes
6282else
6283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
6286ac_header_compiler=no
6287fi
6288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6290echo "${ECHO_T}$ac_header_compiler" >&6
6291
6292# Is the header present?
6293echo "$as_me:$LINENO: checking $ac_header presence" >&5
6294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6295cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h. */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h. */
6301#include <$ac_header>
6302_ACEOF
6303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } >/dev/null; then
6311 if test -s conftest.err; then
6312 ac_cpp_err=$ac_c_preproc_warn_flag
6313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6314 else
6315 ac_cpp_err=
6316 fi
6317else
6318 ac_cpp_err=yes
c906108c 6319fi
b7026657
AC
6320if test -z "$ac_cpp_err"; then
6321 ac_header_preproc=yes
6322else
6323 echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_header_preproc=no
c906108c 6327fi
b7026657
AC
6328rm -f conftest.err conftest.$ac_ext
6329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6330echo "${ECHO_T}$ac_header_preproc" >&6
6331
6332# So? What about this header?
6333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6334 yes:no: )
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6339 ac_header_preproc=yes
6340 ;;
6341 no:yes:* )
6342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6354 (
6355 cat <<\_ASBOX
6356## ------------------------------------------ ##
6357## Report this to the AC_PACKAGE_NAME lists. ##
6358## ------------------------------------------ ##
6359_ASBOX
6360 ) |
6361 sed "s/^/$as_me: WARNING: /" >&2
6362 ;;
6363esac
6364echo "$as_me:$LINENO: checking for $ac_header" >&5
6365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6366if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6368else
b7026657
AC
6369 eval "$as_ac_Header=\$ac_header_preproc"
6370fi
6371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373
6374fi
6375if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376 cat >>confdefs.h <<_ACEOF
6377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378_ACEOF
6379
c906108c 6380fi
b7026657 6381
c906108c
SS
6382done
6383
b7026657
AC
6384
6385
6386
6387
c906108c
SS
6388for ac_func in getrusage time sigaction __setfpucw
6389do
b7026657
AC
6390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6391echo "$as_me:$LINENO: checking for $ac_func" >&5
6392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6393if eval "test \"\${$as_ac_var+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396 cat >conftest.$ac_ext <<_ACEOF
6397/* confdefs.h. */
6398_ACEOF
6399cat confdefs.h >>conftest.$ac_ext
6400cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h. */
6402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6404#define $ac_func innocuous_$ac_func
6405
c906108c 6406/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
6407 which can conflict with char $ac_func (); below.
6408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6409 <limits.h> exists even on freestanding compilers. */
6410
6411#ifdef __STDC__
6412# include <limits.h>
6413#else
6414# include <assert.h>
6415#endif
c906108c 6416
b7026657 6417#undef $ac_func
c906108c 6418
b7026657
AC
6419/* Override any gcc2 internal prototype to avoid an error. */
6420#ifdef __cplusplus
6421extern "C"
6422{
6423#endif
6424/* We use char because int might match the return type of a gcc2
6425 builtin and then its argument prototype would still apply. */
6426char $ac_func ();
c906108c
SS
6427/* The GNU C library defines this for functions which it implements
6428 to always fail with ENOSYS. Some functions are actually named
6429 something starting with __ and the normal name is an alias. */
6430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6431choke me
6432#else
b7026657
AC
6433char (*f) () = $ac_func;
6434#endif
6435#ifdef __cplusplus
6436}
c906108c
SS
6437#endif
6438
b7026657
AC
6439int
6440main ()
6441{
6442return f != $ac_func;
6443 ;
6444 return 0;
6445}
6446_ACEOF
6447rm -f conftest.$ac_objext conftest$ac_exeext
6448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6449 (eval $ac_link) 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_c_werror_flag"
6457 || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try='test -s conftest$ac_exeext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 eval "$as_ac_var=yes"
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474eval "$as_ac_var=no"
6475fi
6476rm -f conftest.err conftest.$ac_objext \
6477 conftest$ac_exeext conftest.$ac_ext
6478fi
6479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6480echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6481if test `eval echo '${'$as_ac_var'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6484_ACEOF
c906108c 6485
c906108c
SS
6486fi
6487done
6488
6489
6490# Check for socket libraries
b7026657
AC
6491
6492echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6493echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6494if test "${ac_cv_lib_socket_bind+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6496else
b7026657 6497 ac_check_lib_save_LIBS=$LIBS
c906108c 6498LIBS="-lsocket $LIBS"
b7026657
AC
6499cat >conftest.$ac_ext <<_ACEOF
6500/* confdefs.h. */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h. */
6505
c906108c 6506/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6507#ifdef __cplusplus
6508extern "C"
6509#endif
c906108c 6510/* We use char because int might match the return type of a gcc2
b7026657
AC
6511 builtin and then its argument prototype would still apply. */
6512char bind ();
6513int
6514main ()
6515{
6516bind ();
6517 ;
6518 return 0;
6519}
6520_ACEOF
6521rm -f conftest.$ac_objext conftest$ac_exeext
6522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest$ac_exeext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_lib_socket_bind=yes
6544else
6545 echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548ac_cv_lib_socket_bind=no
6549fi
6550rm -f conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6552LIBS=$ac_check_lib_save_LIBS
6553fi
6554echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6555echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6556if test $ac_cv_lib_socket_bind = yes; then
6557 cat >>confdefs.h <<_ACEOF
6558#define HAVE_LIBSOCKET 1
6559_ACEOF
c906108c
SS
6560
6561 LIBS="-lsocket $LIBS"
6562
c906108c
SS
6563fi
6564
b7026657
AC
6565
6566echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6567echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6568if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6570else
b7026657 6571 ac_check_lib_save_LIBS=$LIBS
c906108c 6572LIBS="-lnsl $LIBS"
b7026657
AC
6573cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h. */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h. */
6579
c906108c 6580/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6581#ifdef __cplusplus
6582extern "C"
6583#endif
c906108c 6584/* We use char because int might match the return type of a gcc2
b7026657
AC
6585 builtin and then its argument prototype would still apply. */
6586char gethostbyname ();
6587int
6588main ()
6589{
6590gethostbyname ();
6591 ;
6592 return 0;
6593}
6594_ACEOF
6595rm -f conftest.$ac_objext conftest$ac_exeext
6596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest$ac_exeext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_lib_nsl_gethostbyname=yes
6618else
6619 echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622ac_cv_lib_nsl_gethostbyname=no
6623fi
6624rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626LIBS=$ac_check_lib_save_LIBS
6627fi
6628echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6629echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6630if test $ac_cv_lib_nsl_gethostbyname = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632#define HAVE_LIBNSL 1
6633_ACEOF
c906108c
SS
6634
6635 LIBS="-lnsl $LIBS"
6636
c906108c
SS
6637fi
6638
6639
6640. ${srcdir}/../../bfd/configure.host
6641
6642
6643
6644USE_MAINTAINER_MODE=no
6645# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6646if test "${enable_maintainer_mode+set}" = set; then
6647 enableval="$enable_maintainer_mode"
6648 case "${enableval}" in
6649 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6650 no) MAINT="#" ;;
b7026657
AC
6651 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6652echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6653 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
6654esac
6655if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6656 echo "Setting maintainer mode" 6>&1
6657fi
6658else
6659 MAINT="#"
b7026657 6660fi;
c906108c
SS
6661
6662
6663# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6664if test "${enable_sim_bswap+set}" = set; then
6665 enableval="$enable_sim_bswap"
6666 case "${enableval}" in
6667 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6668 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
6669 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6670echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6671 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
6672esac
6673if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6674 echo "Setting bswap flags = $sim_bswap" 6>&1
6675fi
6676else
6677 sim_bswap=""
b7026657 6678fi;
c906108c
SS
6679
6680
6681# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6682if test "${enable_sim_cflags+set}" = set; then
6683 enableval="$enable_sim_cflags"
6684 case "${enableval}" in
6685 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
6686 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6687echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6688 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
6689 no) sim_cflags="";;
6690 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6691esac
6692if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6693 echo "Setting sim cflags = $sim_cflags" 6>&1
6694fi
6695else
6696 sim_cflags=""
b7026657 6697fi;
c906108c
SS
6698
6699
6700# Check whether --enable-sim-debug or --disable-sim-debug was given.
6701if test "${enable_sim_debug+set}" = set; then
6702 enableval="$enable_sim_debug"
6703 case "${enableval}" in
6704 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6705 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6706 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6707esac
6708if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6709 echo "Setting sim debug = $sim_debug" 6>&1
6710fi
6711else
6712 sim_debug=""
b7026657 6713fi;
c906108c
SS
6714
6715
6716# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6717if test "${enable_sim_stdio+set}" = set; then
6718 enableval="$enable_sim_stdio"
6719 case "${enableval}" in
6720 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6721 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
6722 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6723echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6724 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
6725esac
6726if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6727 echo "Setting stdio flags = $sim_stdio" 6>&1
6728fi
6729else
6730 sim_stdio=""
b7026657 6731fi;
c906108c
SS
6732
6733
6734# Check whether --enable-sim-trace or --disable-sim-trace was given.
6735if test "${enable_sim_trace+set}" = set; then
6736 enableval="$enable_sim_trace"
6737 case "${enableval}" in
6738 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6739 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6740 [-0-9]*)
6741 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6742 [a-z]*)
6743 sim_trace=""
6744 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6745 if test x"$sim_trace" = x; then
6746 sim_trace="-DWITH_TRACE='(TRACE_$x"
6747 else
6748 sim_trace="${sim_trace}|TRACE_$x"
6749 fi
6750 done
6751 sim_trace="$sim_trace)'" ;;
6752esac
6753if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6754 echo "Setting sim trace = $sim_trace" 6>&1
6755fi
6756else
6757 sim_trace=""
b7026657 6758fi;
c906108c
SS
6759
6760
6761# Check whether --enable-sim-profile or --disable-sim-profile was given.
6762if test "${enable_sim_profile+set}" = set; then
6763 enableval="$enable_sim_profile"
6764 case "${enableval}" in
6765 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6766 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6767 [-0-9]*)
6768 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6769 [a-z]*)
6770 sim_profile=""
6771 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6772 if test x"$sim_profile" = x; then
6773 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6774 else
6775 sim_profile="${sim_profile}|PROFILE_$x"
6776 fi
6777 done
6778 sim_profile="$sim_profile)'" ;;
6779esac
6780if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6781 echo "Setting sim profile = $sim_profile" 6>&1
6782fi
6783else
eb2d80b4 6784 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 6785fi;
c906108c
SS
6786
6787
b7026657
AC
6788echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6789echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6790if test "${ac_cv_type_signal+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6792else
b7026657
AC
6793 cat >conftest.$ac_ext <<_ACEOF
6794/* confdefs.h. */
6795_ACEOF
6796cat confdefs.h >>conftest.$ac_ext
6797cat >>conftest.$ac_ext <<_ACEOF
6798/* end confdefs.h. */
c906108c
SS
6799#include <sys/types.h>
6800#include <signal.h>
6801#ifdef signal
b7026657 6802# undef signal
c906108c
SS
6803#endif
6804#ifdef __cplusplus
6805extern "C" void (*signal (int, void (*)(int)))(int);
6806#else
6807void (*signal ()) ();
6808#endif
6809
b7026657
AC
6810int
6811main ()
6812{
c906108c 6813int i;
b7026657
AC
6814 ;
6815 return 0;
6816}
6817_ACEOF
6818rm -f conftest.$ac_objext
6819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest.$ac_objext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
c906108c
SS
6840 ac_cv_type_signal=void
6841else
b7026657
AC
6842 echo "$as_me: failed program was:" >&5
6843sed 's/^/| /' conftest.$ac_ext >&5
6844
6845ac_cv_type_signal=int
c906108c 6846fi
b7026657 6847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6848fi
b7026657
AC
6849echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6850echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 6851
b7026657 6852cat >>confdefs.h <<_ACEOF
c906108c 6853#define RETSIGTYPE $ac_cv_type_signal
b7026657 6854_ACEOF
cd0fc7c3
SS
6855
6856
cd0fc7c3 6857
c906108c
SS
6858
6859
6860sim_link_files=
6861sim_link_links=
6862
6863sim_link_links=tconfig.h
6864if test -f ${srcdir}/tconfig.in
6865then
6866 sim_link_files=tconfig.in
6867else
6868 sim_link_files=../common/tconfig.in
6869fi
6870
6871# targ-vals.def points to the libc macro description file.
6872case "${target}" in
6873*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6874esac
6875sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6876sim_link_links="${sim_link_links} targ-vals.def"
6877
6878
c906108c
SS
6879# Put a useful copy of CPP_FOR_TARGET in Makefile.
6880# This is only used to build the target values header files. These files are
6881# shipped with distributions so CPP_FOR_TARGET only needs to work in
6882# developer's trees. This value is borrowed from ../../Makefile.in.
6883CPP_FOR_TARGET="\` \
6884 if test -f \$\${rootme}/../../gcc/Makefile ; then \
6885 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
6886 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
6887 else \
6888 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
6889 fi; \
6890 else \
6891 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
6892 echo \$(CC); \
6893 else \
6894 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
6895 fi; \
6896 fi\` -E"
6897
6898
6899# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
6900if test x"${host}" = x"${target}" ; then
6901 TARGET_SUBDIR="."
6902else
6903 TARGET_SUBDIR=${target_alias}
6904fi
6905
6906
6907# These aren't all needed yet, but will be eventually.
b7026657
AC
6908
6909
6910
6911
6912
6913
6914
6915for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h
c906108c 6916do
b7026657
AC
6917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6918if eval "test \"\${$as_ac_Header+set}\" = set"; then
6919 echo "$as_me:$LINENO: checking for $ac_header" >&5
6920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6921if eval "test \"\${$as_ac_Header+set}\" = set"; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923fi
6924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6926else
6927 # Is the header compilable?
6928echo "$as_me:$LINENO: checking $ac_header usability" >&5
6929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6930cat >conftest.$ac_ext <<_ACEOF
6931/* confdefs.h. */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h. */
6936$ac_includes_default
6937#include <$ac_header>
6938_ACEOF
6939rm -f conftest.$ac_objext
6940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest.$ac_objext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 ac_header_compiler=yes
6962else
6963 echo "$as_me: failed program was:" >&5
6964sed 's/^/| /' conftest.$ac_ext >&5
6965
6966ac_header_compiler=no
6967fi
6968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6970echo "${ECHO_T}$ac_header_compiler" >&6
6971
6972# Is the header present?
6973echo "$as_me:$LINENO: checking $ac_header presence" >&5
6974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6975cat >conftest.$ac_ext <<_ACEOF
6976/* confdefs.h. */
6977_ACEOF
6978cat confdefs.h >>conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h. */
6981#include <$ac_header>
6982_ACEOF
6983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } >/dev/null; then
6991 if test -s conftest.err; then
6992 ac_cpp_err=$ac_c_preproc_warn_flag
6993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6994 else
6995 ac_cpp_err=
6996 fi
6997else
6998 ac_cpp_err=yes
c906108c 6999fi
b7026657
AC
7000if test -z "$ac_cpp_err"; then
7001 ac_header_preproc=yes
7002else
7003 echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006 ac_header_preproc=no
c906108c 7007fi
b7026657
AC
7008rm -f conftest.err conftest.$ac_ext
7009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7010echo "${ECHO_T}$ac_header_preproc" >&6
7011
7012# So? What about this header?
7013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7014 yes:no: )
7015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7019 ac_header_preproc=yes
7020 ;;
7021 no:yes:* )
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7034 (
7035 cat <<\_ASBOX
7036## ------------------------------------------ ##
7037## Report this to the AC_PACKAGE_NAME lists. ##
7038## ------------------------------------------ ##
7039_ASBOX
7040 ) |
7041 sed "s/^/$as_me: WARNING: /" >&2
7042 ;;
7043esac
7044echo "$as_me:$LINENO: checking for $ac_header" >&5
7045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7046if eval "test \"\${$as_ac_Header+set}\" = set"; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7048else
b7026657
AC
7049 eval "$as_ac_Header=\$ac_header_preproc"
7050fi
7051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7053
c906108c 7054fi
b7026657
AC
7055if test `eval echo '${'$as_ac_Header'}'` = yes; then
7056 cat >>confdefs.h <<_ACEOF
7057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7058_ACEOF
7059
7060fi
7061
c906108c
SS
7062done
7063
b7026657
AC
7064
7065
764f1408
FCE
7066for ac_func in mmap munmap
7067do
b7026657
AC
7068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7069echo "$as_me:$LINENO: checking for $ac_func" >&5
7070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7071if eval "test \"\${$as_ac_var+set}\" = set"; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else
7074 cat >conftest.$ac_ext <<_ACEOF
7075/* confdefs.h. */
7076_ACEOF
7077cat confdefs.h >>conftest.$ac_ext
7078cat >>conftest.$ac_ext <<_ACEOF
7079/* end confdefs.h. */
7080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7082#define $ac_func innocuous_$ac_func
7083
764f1408 7084/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
7085 which can conflict with char $ac_func (); below.
7086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7087 <limits.h> exists even on freestanding compilers. */
764f1408 7088
b7026657
AC
7089#ifdef __STDC__
7090# include <limits.h>
7091#else
7092# include <assert.h>
7093#endif
764f1408 7094
b7026657
AC
7095#undef $ac_func
7096
7097/* Override any gcc2 internal prototype to avoid an error. */
7098#ifdef __cplusplus
7099extern "C"
7100{
7101#endif
7102/* We use char because int might match the return type of a gcc2
7103 builtin and then its argument prototype would still apply. */
7104char $ac_func ();
764f1408
FCE
7105/* The GNU C library defines this for functions which it implements
7106 to always fail with ENOSYS. Some functions are actually named
7107 something starting with __ and the normal name is an alias. */
7108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7109choke me
7110#else
b7026657
AC
7111char (*f) () = $ac_func;
7112#endif
7113#ifdef __cplusplus
7114}
764f1408
FCE
7115#endif
7116
b7026657
AC
7117int
7118main ()
7119{
7120return f != $ac_func;
7121 ;
7122 return 0;
7123}
7124_ACEOF
7125rm -f conftest.$ac_objext conftest$ac_exeext
7126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest$ac_exeext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 eval "$as_ac_var=yes"
7148else
7149 echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152eval "$as_ac_var=no"
7153fi
7154rm -f conftest.err conftest.$ac_objext \
7155 conftest$ac_exeext conftest.$ac_ext
7156fi
7157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7159if test `eval echo '${'$as_ac_var'}'` = yes; then
7160 cat >>confdefs.h <<_ACEOF
7161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7162_ACEOF
764f1408 7163
764f1408
FCE
7164fi
7165done
7166
b7026657
AC
7167echo "$as_me:$LINENO: checking for struct stat.st_dev" >&5
7168echo $ECHO_N "checking for struct stat.st_dev... $ECHO_C" >&6
7169if test "${ac_struct_stat_st_dev+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7171else
7172 ac_struct_stat_st_dev=no;
b7026657
AC
7173cat >conftest.$ac_ext <<_ACEOF
7174/* confdefs.h. */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h. */
697afb65
HPN
7179#ifdef HAVE_SYS_TYPES_H
7180#include <sys/types.h>
7181#endif
7182#ifdef HAVE_SYS_STAT_H
7183#include <sys/stat.h>
7184#endif
b7026657
AC
7185int
7186main ()
7187{
697afb65
HPN
7188
7189static struct stat ac_aggr;
7190if (ac_aggr.st_dev)
7191return 0;
b7026657
AC
7192 ;
7193 return 0;
7194}
7195_ACEOF
7196rm -f conftest.$ac_objext
7197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
697afb65
HPN
7218 ac_struct_stat_st_dev=yes;
7219else
b7026657
AC
7220 echo "$as_me: failed program was:" >&5
7221sed 's/^/| /' conftest.$ac_ext >&5
7222
7223cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h. */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h. */
697afb65
HPN
7229#ifdef HAVE_SYS_TYPES_H
7230#include <sys/types.h>
7231#endif
7232#ifdef HAVE_SYS_STAT_H
7233#include <sys/stat.h>
7234#endif
b7026657
AC
7235int
7236main ()
7237{
697afb65
HPN
7238
7239static struct stat ac_aggr;
7240if (sizeof ac_aggr.st_dev)
7241return 0;
b7026657
AC
7242 ;
7243 return 0;
7244}
7245_ACEOF
7246rm -f conftest.$ac_objext
7247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7248 (eval $ac_compile) 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -z "$ac_c_werror_flag"
7256 || test ! -s conftest.err'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; } &&
7262 { ac_try='test -s conftest.$ac_objext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
697afb65
HPN
7268 ac_struct_stat_st_dev=yes;
7269else
b7026657
AC
7270 echo "$as_me: failed program was:" >&5
7271sed 's/^/| /' conftest.$ac_ext >&5
7272
7273ac_struct_stat_st_dev=no;
697afb65 7274fi
b7026657 7275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7276fi
b7026657
AC
7277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278if test $ac_struct_stat_st_dev = yes; then :;
7279cat >>confdefs.h <<_ACEOF
697afb65 7280#define HAVE_STRUCT_STAT_ST_DEV 1
b7026657 7281_ACEOF
697afb65 7282
b7026657 7283else :;
697afb65
HPN
7284fi
7285fi
b7026657
AC
7286echo "$as_me:$LINENO: result: $ac_struct_stat_st_dev" >&5
7287echo "${ECHO_T}$ac_struct_stat_st_dev" >&6
697afb65 7288
b7026657
AC
7289echo "$as_me:$LINENO: checking for struct stat.st_ino" >&5
7290echo $ECHO_N "checking for struct stat.st_ino... $ECHO_C" >&6
7291if test "${ac_struct_stat_st_ino+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7293else
7294 ac_struct_stat_st_ino=no;
b7026657
AC
7295cat >conftest.$ac_ext <<_ACEOF
7296/* confdefs.h. */
7297_ACEOF
7298cat confdefs.h >>conftest.$ac_ext
7299cat >>conftest.$ac_ext <<_ACEOF
7300/* end confdefs.h. */
697afb65
HPN
7301#ifdef HAVE_SYS_TYPES_H
7302#include <sys/types.h>
7303#endif
7304#ifdef HAVE_SYS_STAT_H
7305#include <sys/stat.h>
7306#endif
b7026657
AC
7307int
7308main ()
7309{
697afb65
HPN
7310
7311static struct stat ac_aggr;
7312if (ac_aggr.st_ino)
7313return 0;
b7026657
AC
7314 ;
7315 return 0;
7316}
7317_ACEOF
7318rm -f conftest.$ac_objext
7319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag"
7328 || test ! -s conftest.err'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; } &&
7334 { ac_try='test -s conftest.$ac_objext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
697afb65
HPN
7340 ac_struct_stat_st_ino=yes;
7341else
b7026657
AC
7342 echo "$as_me: failed program was:" >&5
7343sed 's/^/| /' conftest.$ac_ext >&5
7344
7345cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h. */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h. */
697afb65
HPN
7351#ifdef HAVE_SYS_TYPES_H
7352#include <sys/types.h>
7353#endif
7354#ifdef HAVE_SYS_STAT_H
7355#include <sys/stat.h>
7356#endif
b7026657
AC
7357int
7358main ()
7359{
697afb65
HPN
7360
7361static struct stat ac_aggr;
7362if (sizeof ac_aggr.st_ino)
7363return 0;
b7026657
AC
7364 ;
7365 return 0;
7366}
7367_ACEOF
7368rm -f conftest.$ac_objext
7369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_c_werror_flag"
7378 || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest.$ac_objext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
697afb65
HPN
7390 ac_struct_stat_st_ino=yes;
7391else
b7026657
AC
7392 echo "$as_me: failed program was:" >&5
7393sed 's/^/| /' conftest.$ac_ext >&5
7394
7395ac_struct_stat_st_ino=no;
697afb65 7396fi
b7026657 7397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7398fi
b7026657
AC
7399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7400if test $ac_struct_stat_st_ino = yes; then :;
7401cat >>confdefs.h <<_ACEOF
697afb65 7402#define HAVE_STRUCT_STAT_ST_INO 1
b7026657 7403_ACEOF
697afb65 7404
b7026657 7405else :;
697afb65
HPN
7406fi
7407fi
b7026657
AC
7408echo "$as_me:$LINENO: result: $ac_struct_stat_st_ino" >&5
7409echo "${ECHO_T}$ac_struct_stat_st_ino" >&6
697afb65 7410
b7026657
AC
7411echo "$as_me:$LINENO: checking for struct stat.st_mode" >&5
7412echo $ECHO_N "checking for struct stat.st_mode... $ECHO_C" >&6
7413if test "${ac_struct_stat_st_mode+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7415else
7416 ac_struct_stat_st_mode=no;
b7026657
AC
7417cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h. */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h. */
697afb65
HPN
7423#ifdef HAVE_SYS_TYPES_H
7424#include <sys/types.h>
7425#endif
7426#ifdef HAVE_SYS_STAT_H
7427#include <sys/stat.h>
7428#endif
b7026657
AC
7429int
7430main ()
7431{
697afb65
HPN
7432
7433static struct stat ac_aggr;
7434if (ac_aggr.st_mode)
7435return 0;
b7026657
AC
7436 ;
7437 return 0;
7438}
7439_ACEOF
7440rm -f conftest.$ac_objext
7441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7442 (eval $ac_compile) 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } &&
7449 { ac_try='test -z "$ac_c_werror_flag"
7450 || test ! -s conftest.err'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; } &&
7456 { ac_try='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
697afb65
HPN
7462 ac_struct_stat_st_mode=yes;
7463else
b7026657
AC
7464 echo "$as_me: failed program was:" >&5
7465sed 's/^/| /' conftest.$ac_ext >&5
7466
7467cat >conftest.$ac_ext <<_ACEOF
7468/* confdefs.h. */
7469_ACEOF
7470cat confdefs.h >>conftest.$ac_ext
7471cat >>conftest.$ac_ext <<_ACEOF
7472/* end confdefs.h. */
697afb65
HPN
7473#ifdef HAVE_SYS_TYPES_H
7474#include <sys/types.h>
7475#endif
7476#ifdef HAVE_SYS_STAT_H
7477#include <sys/stat.h>
7478#endif
b7026657
AC
7479int
7480main ()
7481{
697afb65
HPN
7482
7483static struct stat ac_aggr;
7484if (sizeof ac_aggr.st_mode)
7485return 0;
b7026657
AC
7486 ;
7487 return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext
7491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>conftest.er1
7493 ac_status=$?
7494 grep -v '^ *+' conftest.er1 >conftest.err
7495 rm -f conftest.er1
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest.$ac_objext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 (eval $ac_try) 2>&5
7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
697afb65
HPN
7512 ac_struct_stat_st_mode=yes;
7513else
b7026657
AC
7514 echo "$as_me: failed program was:" >&5
7515sed 's/^/| /' conftest.$ac_ext >&5
7516
7517ac_struct_stat_st_mode=no;
697afb65 7518fi
b7026657 7519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7520fi
b7026657
AC
7521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7522if test $ac_struct_stat_st_mode = yes; then :;
7523cat >>confdefs.h <<_ACEOF
697afb65 7524#define HAVE_STRUCT_STAT_ST_MODE 1
b7026657 7525_ACEOF
697afb65 7526
b7026657 7527else :;
697afb65
HPN
7528fi
7529fi
b7026657
AC
7530echo "$as_me:$LINENO: result: $ac_struct_stat_st_mode" >&5
7531echo "${ECHO_T}$ac_struct_stat_st_mode" >&6
697afb65 7532
b7026657
AC
7533echo "$as_me:$LINENO: checking for struct stat.st_nlink" >&5
7534echo $ECHO_N "checking for struct stat.st_nlink... $ECHO_C" >&6
7535if test "${ac_struct_stat_st_nlink+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7537else
7538 ac_struct_stat_st_nlink=no;
b7026657
AC
7539cat >conftest.$ac_ext <<_ACEOF
7540/* confdefs.h. */
7541_ACEOF
7542cat confdefs.h >>conftest.$ac_ext
7543cat >>conftest.$ac_ext <<_ACEOF
7544/* end confdefs.h. */
697afb65
HPN
7545#ifdef HAVE_SYS_TYPES_H
7546#include <sys/types.h>
7547#endif
7548#ifdef HAVE_SYS_STAT_H
7549#include <sys/stat.h>
7550#endif
b7026657
AC
7551int
7552main ()
7553{
697afb65
HPN
7554
7555static struct stat ac_aggr;
7556if (ac_aggr.st_nlink)
7557return 0;
b7026657
AC
7558 ;
7559 return 0;
7560}
7561_ACEOF
7562rm -f conftest.$ac_objext
7563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564 (eval $ac_compile) 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -z "$ac_c_werror_flag"
7572 || test ! -s conftest.err'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try='test -s conftest.$ac_objext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
697afb65
HPN
7584 ac_struct_stat_st_nlink=yes;
7585else
b7026657
AC
7586 echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589cat >conftest.$ac_ext <<_ACEOF
7590/* confdefs.h. */
7591_ACEOF
7592cat confdefs.h >>conftest.$ac_ext
7593cat >>conftest.$ac_ext <<_ACEOF
7594/* end confdefs.h. */
697afb65
HPN
7595#ifdef HAVE_SYS_TYPES_H
7596#include <sys/types.h>
7597#endif
7598#ifdef HAVE_SYS_STAT_H
7599#include <sys/stat.h>
7600#endif
b7026657
AC
7601int
7602main ()
7603{
697afb65
HPN
7604
7605static struct stat ac_aggr;
7606if (sizeof ac_aggr.st_nlink)
7607return 0;
b7026657
AC
7608 ;
7609 return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -z "$ac_c_werror_flag"
7622 || test ! -s conftest.err'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
697afb65
HPN
7634 ac_struct_stat_st_nlink=yes;
7635else
b7026657
AC
7636 echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
7639ac_struct_stat_st_nlink=no;
697afb65 7640fi
b7026657 7641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7642fi
b7026657
AC
7643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7644if test $ac_struct_stat_st_nlink = yes; then :;
7645cat >>confdefs.h <<_ACEOF
697afb65 7646#define HAVE_STRUCT_STAT_ST_NLINK 1
b7026657 7647_ACEOF
697afb65 7648
b7026657 7649else :;
697afb65
HPN
7650fi
7651fi
b7026657
AC
7652echo "$as_me:$LINENO: result: $ac_struct_stat_st_nlink" >&5
7653echo "${ECHO_T}$ac_struct_stat_st_nlink" >&6
697afb65 7654
b7026657
AC
7655echo "$as_me:$LINENO: checking for struct stat.st_uid" >&5
7656echo $ECHO_N "checking for struct stat.st_uid... $ECHO_C" >&6
7657if test "${ac_struct_stat_st_uid+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7659else
7660 ac_struct_stat_st_uid=no;
b7026657
AC
7661cat >conftest.$ac_ext <<_ACEOF
7662/* confdefs.h. */
7663_ACEOF
7664cat confdefs.h >>conftest.$ac_ext
7665cat >>conftest.$ac_ext <<_ACEOF
7666/* end confdefs.h. */
697afb65
HPN
7667#ifdef HAVE_SYS_TYPES_H
7668#include <sys/types.h>
7669#endif
7670#ifdef HAVE_SYS_STAT_H
7671#include <sys/stat.h>
7672#endif
b7026657
AC
7673int
7674main ()
7675{
697afb65
HPN
7676
7677static struct stat ac_aggr;
7678if (ac_aggr.st_uid)
7679return 0;
b7026657
AC
7680 ;
7681 return 0;
7682}
7683_ACEOF
7684rm -f conftest.$ac_objext
7685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 (eval $ac_try) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
697afb65
HPN
7706 ac_struct_stat_st_uid=yes;
7707else
b7026657
AC
7708 echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
7710
7711cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
697afb65
HPN
7717#ifdef HAVE_SYS_TYPES_H
7718#include <sys/types.h>
7719#endif
7720#ifdef HAVE_SYS_STAT_H
7721#include <sys/stat.h>
7722#endif
b7026657
AC
7723int
7724main ()
7725{
697afb65
HPN
7726
7727static struct stat ac_aggr;
7728if (sizeof ac_aggr.st_uid)
7729return 0;
b7026657
AC
7730 ;
7731 return 0;
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext
7735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -z "$ac_c_werror_flag"
7744 || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
697afb65
HPN
7756 ac_struct_stat_st_uid=yes;
7757else
b7026657
AC
7758 echo "$as_me: failed program was:" >&5
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
7761ac_struct_stat_st_uid=no;
697afb65 7762fi
b7026657 7763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7764fi
b7026657
AC
7765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7766if test $ac_struct_stat_st_uid = yes; then :;
7767cat >>confdefs.h <<_ACEOF
697afb65 7768#define HAVE_STRUCT_STAT_ST_UID 1
b7026657 7769_ACEOF
697afb65 7770
b7026657 7771else :;
697afb65
HPN
7772fi
7773fi
b7026657
AC
7774echo "$as_me:$LINENO: result: $ac_struct_stat_st_uid" >&5
7775echo "${ECHO_T}$ac_struct_stat_st_uid" >&6
697afb65 7776
b7026657
AC
7777echo "$as_me:$LINENO: checking for struct stat.st_gid" >&5
7778echo $ECHO_N "checking for struct stat.st_gid... $ECHO_C" >&6
7779if test "${ac_struct_stat_st_gid+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7781else
7782 ac_struct_stat_st_gid=no;
b7026657
AC
7783cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */
697afb65
HPN
7789#ifdef HAVE_SYS_TYPES_H
7790#include <sys/types.h>
7791#endif
7792#ifdef HAVE_SYS_STAT_H
7793#include <sys/stat.h>
7794#endif
b7026657
AC
7795int
7796main ()
7797{
697afb65
HPN
7798
7799static struct stat ac_aggr;
7800if (ac_aggr.st_gid)
7801return 0;
b7026657
AC
7802 ;
7803 return 0;
7804}
7805_ACEOF
7806rm -f conftest.$ac_objext
7807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7808 (eval $ac_compile) 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } &&
7815 { ac_try='test -z "$ac_c_werror_flag"
7816 || test ! -s conftest.err'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest.$ac_objext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
697afb65
HPN
7828 ac_struct_stat_st_gid=yes;
7829else
b7026657
AC
7830 echo "$as_me: failed program was:" >&5
7831sed 's/^/| /' conftest.$ac_ext >&5
7832
7833cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
697afb65
HPN
7839#ifdef HAVE_SYS_TYPES_H
7840#include <sys/types.h>
7841#endif
7842#ifdef HAVE_SYS_STAT_H
7843#include <sys/stat.h>
7844#endif
b7026657
AC
7845int
7846main ()
7847{
697afb65
HPN
7848
7849static struct stat ac_aggr;
7850if (sizeof ac_aggr.st_gid)
7851return 0;
b7026657
AC
7852 ;
7853 return 0;
7854}
7855_ACEOF
7856rm -f conftest.$ac_objext
7857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858 (eval $ac_compile) 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag"
7866 || test ! -s conftest.err'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; } &&
7872 { ac_try='test -s conftest.$ac_objext'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
697afb65
HPN
7878 ac_struct_stat_st_gid=yes;
7879else
b7026657
AC
7880 echo "$as_me: failed program was:" >&5
7881sed 's/^/| /' conftest.$ac_ext >&5
7882
7883ac_struct_stat_st_gid=no;
697afb65 7884fi
b7026657 7885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7886fi
b7026657
AC
7887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7888if test $ac_struct_stat_st_gid = yes; then :;
7889cat >>confdefs.h <<_ACEOF
697afb65 7890#define HAVE_STRUCT_STAT_ST_GID 1
b7026657 7891_ACEOF
697afb65 7892
b7026657 7893else :;
697afb65
HPN
7894fi
7895fi
b7026657
AC
7896echo "$as_me:$LINENO: result: $ac_struct_stat_st_gid" >&5
7897echo "${ECHO_T}$ac_struct_stat_st_gid" >&6
697afb65 7898
b7026657
AC
7899echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7900echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7901if test "${ac_struct_stat_st_rdev+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7903else
7904 ac_struct_stat_st_rdev=no;
b7026657
AC
7905cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
697afb65
HPN
7911#ifdef HAVE_SYS_TYPES_H
7912#include <sys/types.h>
7913#endif
7914#ifdef HAVE_SYS_STAT_H
7915#include <sys/stat.h>
7916#endif
b7026657
AC
7917int
7918main ()
7919{
697afb65
HPN
7920
7921static struct stat ac_aggr;
7922if (ac_aggr.st_rdev)
7923return 0;
b7026657
AC
7924 ;
7925 return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -z "$ac_c_werror_flag"
7938 || test ! -s conftest.err'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 (eval $ac_try) 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest.$ac_objext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 (eval $ac_try) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
697afb65
HPN
7950 ac_struct_stat_st_rdev=yes;
7951else
b7026657
AC
7952 echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955cat >conftest.$ac_ext <<_ACEOF
7956/* confdefs.h. */
7957_ACEOF
7958cat confdefs.h >>conftest.$ac_ext
7959cat >>conftest.$ac_ext <<_ACEOF
7960/* end confdefs.h. */
697afb65
HPN
7961#ifdef HAVE_SYS_TYPES_H
7962#include <sys/types.h>
7963#endif
7964#ifdef HAVE_SYS_STAT_H
7965#include <sys/stat.h>
7966#endif
b7026657
AC
7967int
7968main ()
7969{
697afb65
HPN
7970
7971static struct stat ac_aggr;
7972if (sizeof ac_aggr.st_rdev)
7973return 0;
b7026657
AC
7974 ;
7975 return 0;
7976}
7977_ACEOF
7978rm -f conftest.$ac_objext
7979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980 (eval $ac_compile) 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -z "$ac_c_werror_flag"
7988 || test ! -s conftest.err'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 (eval $ac_try) 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; } &&
7994 { ac_try='test -s conftest.$ac_objext'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 (eval $ac_try) 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
697afb65
HPN
8000 ac_struct_stat_st_rdev=yes;
8001else
b7026657
AC
8002 echo "$as_me: failed program was:" >&5
8003sed 's/^/| /' conftest.$ac_ext >&5
8004
8005ac_struct_stat_st_rdev=no;
697afb65 8006fi
b7026657 8007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8008fi
b7026657
AC
8009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8010if test $ac_struct_stat_st_rdev = yes; then :;
8011cat >>confdefs.h <<_ACEOF
697afb65 8012#define HAVE_STRUCT_STAT_ST_RDEV 1
b7026657 8013_ACEOF
697afb65 8014
b7026657 8015else :;
697afb65
HPN
8016fi
8017fi
b7026657
AC
8018echo "$as_me:$LINENO: result: $ac_struct_stat_st_rdev" >&5
8019echo "${ECHO_T}$ac_struct_stat_st_rdev" >&6
697afb65 8020
b7026657
AC
8021echo "$as_me:$LINENO: checking for struct stat.st_size" >&5
8022echo $ECHO_N "checking for struct stat.st_size... $ECHO_C" >&6
8023if test "${ac_struct_stat_st_size+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8025else
8026 ac_struct_stat_st_size=no;
b7026657
AC
8027cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
697afb65
HPN
8033#ifdef HAVE_SYS_TYPES_H
8034#include <sys/types.h>
8035#endif
8036#ifdef HAVE_SYS_STAT_H
8037#include <sys/stat.h>
8038#endif
b7026657
AC
8039int
8040main ()
8041{
697afb65
HPN
8042
8043static struct stat ac_aggr;
8044if (ac_aggr.st_size)
8045return 0;
b7026657
AC
8046 ;
8047 return 0;
8048}
8049_ACEOF
8050rm -f conftest.$ac_objext
8051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag"
8060 || test ! -s conftest.err'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest.$ac_objext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
697afb65
HPN
8072 ac_struct_stat_st_size=yes;
8073else
b7026657
AC
8074 echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077cat >conftest.$ac_ext <<_ACEOF
8078/* confdefs.h. */
8079_ACEOF
8080cat confdefs.h >>conftest.$ac_ext
8081cat >>conftest.$ac_ext <<_ACEOF
8082/* end confdefs.h. */
697afb65
HPN
8083#ifdef HAVE_SYS_TYPES_H
8084#include <sys/types.h>
8085#endif
8086#ifdef HAVE_SYS_STAT_H
8087#include <sys/stat.h>
8088#endif
b7026657
AC
8089int
8090main ()
8091{
697afb65
HPN
8092
8093static struct stat ac_aggr;
8094if (sizeof ac_aggr.st_size)
8095return 0;
b7026657
AC
8096 ;
8097 return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext
8101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102 (eval $ac_compile) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag"
8110 || test ! -s conftest.err'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
697afb65
HPN
8122 ac_struct_stat_st_size=yes;
8123else
b7026657
AC
8124 echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
8127ac_struct_stat_st_size=no;
697afb65 8128fi
b7026657 8129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8130fi
b7026657
AC
8131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8132if test $ac_struct_stat_st_size = yes; then :;
8133cat >>confdefs.h <<_ACEOF
697afb65 8134#define HAVE_STRUCT_STAT_ST_SIZE 1
b7026657 8135_ACEOF
697afb65 8136
b7026657 8137else :;
697afb65
HPN
8138fi
8139fi
b7026657
AC
8140echo "$as_me:$LINENO: result: $ac_struct_stat_st_size" >&5
8141echo "${ECHO_T}$ac_struct_stat_st_size" >&6
697afb65 8142
b7026657
AC
8143echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
8144echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
8145if test "${ac_struct_stat_st_blksize+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8147else
8148 ac_struct_stat_st_blksize=no;
b7026657
AC
8149cat >conftest.$ac_ext <<_ACEOF
8150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
697afb65
HPN
8155#ifdef HAVE_SYS_TYPES_H
8156#include <sys/types.h>
8157#endif
8158#ifdef HAVE_SYS_STAT_H
8159#include <sys/stat.h>
8160#endif
b7026657
AC
8161int
8162main ()
8163{
697afb65
HPN
8164
8165static struct stat ac_aggr;
8166if (ac_aggr.st_blksize)
8167return 0;
b7026657
AC
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext
8173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174 (eval $ac_compile) 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag"
8182 || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
697afb65
HPN
8194 ac_struct_stat_st_blksize=yes;
8195else
b7026657
AC
8196 echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199cat >conftest.$ac_ext <<_ACEOF
8200/* confdefs.h. */
8201_ACEOF
8202cat confdefs.h >>conftest.$ac_ext
8203cat >>conftest.$ac_ext <<_ACEOF
8204/* end confdefs.h. */
697afb65
HPN
8205#ifdef HAVE_SYS_TYPES_H
8206#include <sys/types.h>
8207#endif
8208#ifdef HAVE_SYS_STAT_H
8209#include <sys/stat.h>
8210#endif
b7026657
AC
8211int
8212main ()
8213{
697afb65
HPN
8214
8215static struct stat ac_aggr;
8216if (sizeof ac_aggr.st_blksize)
8217return 0;
b7026657
AC
8218 ;
8219 return 0;
8220}
8221_ACEOF
8222rm -f conftest.$ac_objext
8223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8224 (eval $ac_compile) 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag"
8232 || test ! -s conftest.err'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; } &&
8238 { ac_try='test -s conftest.$ac_objext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
697afb65
HPN
8244 ac_struct_stat_st_blksize=yes;
8245else
b7026657
AC
8246 echo "$as_me: failed program was:" >&5
8247sed 's/^/| /' conftest.$ac_ext >&5
8248
8249ac_struct_stat_st_blksize=no;
697afb65 8250fi
b7026657 8251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8252fi
b7026657
AC
8253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8254if test $ac_struct_stat_st_blksize = yes; then :;
8255cat >>confdefs.h <<_ACEOF
697afb65 8256#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
b7026657 8257_ACEOF
697afb65 8258
b7026657 8259else :;
697afb65
HPN
8260fi
8261fi
b7026657
AC
8262echo "$as_me:$LINENO: result: $ac_struct_stat_st_blksize" >&5
8263echo "${ECHO_T}$ac_struct_stat_st_blksize" >&6
697afb65 8264
b7026657
AC
8265echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
8266echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
8267if test "${ac_struct_stat_st_blocks+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8269else
8270 ac_struct_stat_st_blocks=no;
b7026657
AC
8271cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
697afb65
HPN
8277#ifdef HAVE_SYS_TYPES_H
8278#include <sys/types.h>
8279#endif
8280#ifdef HAVE_SYS_STAT_H
8281#include <sys/stat.h>
8282#endif
b7026657
AC
8283int
8284main ()
8285{
697afb65
HPN
8286
8287static struct stat ac_aggr;
8288if (ac_aggr.st_blocks)
8289return 0;
b7026657
AC
8290 ;
8291 return 0;
8292}
8293_ACEOF
8294rm -f conftest.$ac_objext
8295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296 (eval $ac_compile) 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag"
8304 || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 (eval $ac_try) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest.$ac_objext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 (eval $ac_try) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
697afb65
HPN
8316 ac_struct_stat_st_blocks=yes;
8317else
b7026657
AC
8318 echo "$as_me: failed program was:" >&5
8319sed 's/^/| /' conftest.$ac_ext >&5
8320
8321cat >conftest.$ac_ext <<_ACEOF
8322/* confdefs.h. */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h. */
697afb65
HPN
8327#ifdef HAVE_SYS_TYPES_H
8328#include <sys/types.h>
8329#endif
8330#ifdef HAVE_SYS_STAT_H
8331#include <sys/stat.h>
8332#endif
b7026657
AC
8333int
8334main ()
8335{
697afb65
HPN
8336
8337static struct stat ac_aggr;
8338if (sizeof ac_aggr.st_blocks)
8339return 0;
b7026657
AC
8340 ;
8341 return 0;
8342}
8343_ACEOF
8344rm -f conftest.$ac_objext
8345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346 (eval $ac_compile) 2>conftest.er1
8347 ac_status=$?
8348 grep -v '^ *+' conftest.er1 >conftest.err
8349 rm -f conftest.er1
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -z "$ac_c_werror_flag"
8354 || test ! -s conftest.err'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest.$ac_objext'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 (eval $ac_try) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
697afb65
HPN
8366 ac_struct_stat_st_blocks=yes;
8367else
b7026657
AC
8368 echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371ac_struct_stat_st_blocks=no;
697afb65 8372fi
b7026657 8373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8374fi
b7026657
AC
8375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8376if test $ac_struct_stat_st_blocks = yes; then :;
8377cat >>confdefs.h <<_ACEOF
697afb65 8378#define HAVE_STRUCT_STAT_ST_BLOCKS 1
b7026657 8379_ACEOF
697afb65 8380
b7026657 8381else :;
697afb65
HPN
8382fi
8383fi
b7026657
AC
8384echo "$as_me:$LINENO: result: $ac_struct_stat_st_blocks" >&5
8385echo "${ECHO_T}$ac_struct_stat_st_blocks" >&6
697afb65 8386
b7026657
AC
8387echo "$as_me:$LINENO: checking for struct stat.st_atime" >&5
8388echo $ECHO_N "checking for struct stat.st_atime... $ECHO_C" >&6
8389if test "${ac_struct_stat_st_atime+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8391else
8392 ac_struct_stat_st_atime=no;
b7026657
AC
8393cat >conftest.$ac_ext <<_ACEOF
8394/* confdefs.h. */
8395_ACEOF
8396cat confdefs.h >>conftest.$ac_ext
8397cat >>conftest.$ac_ext <<_ACEOF
8398/* end confdefs.h. */
697afb65
HPN
8399#ifdef HAVE_SYS_TYPES_H
8400#include <sys/types.h>
8401#endif
8402#ifdef HAVE_SYS_STAT_H
8403#include <sys/stat.h>
8404#endif
b7026657
AC
8405int
8406main ()
8407{
697afb65
HPN
8408
8409static struct stat ac_aggr;
8410if (ac_aggr.st_atime)
8411return 0;
b7026657
AC
8412 ;
8413 return 0;
8414}
8415_ACEOF
8416rm -f conftest.$ac_objext
8417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418 (eval $ac_compile) 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -z "$ac_c_werror_flag"
8426 || test ! -s conftest.err'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; } &&
8432 { ac_try='test -s conftest.$ac_objext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
697afb65
HPN
8438 ac_struct_stat_st_atime=yes;
8439else
b7026657
AC
8440 echo "$as_me: failed program was:" >&5
8441sed 's/^/| /' conftest.$ac_ext >&5
8442
8443cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
697afb65
HPN
8449#ifdef HAVE_SYS_TYPES_H
8450#include <sys/types.h>
8451#endif
8452#ifdef HAVE_SYS_STAT_H
8453#include <sys/stat.h>
8454#endif
b7026657
AC
8455int
8456main ()
8457{
697afb65
HPN
8458
8459static struct stat ac_aggr;
8460if (sizeof ac_aggr.st_atime)
8461return 0;
b7026657
AC
8462 ;
8463 return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext
8467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
697afb65
HPN
8488 ac_struct_stat_st_atime=yes;
8489else
b7026657
AC
8490 echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493ac_struct_stat_st_atime=no;
697afb65 8494fi
b7026657 8495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8496fi
b7026657
AC
8497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498if test $ac_struct_stat_st_atime = yes; then :;
8499cat >>confdefs.h <<_ACEOF
697afb65 8500#define HAVE_STRUCT_STAT_ST_ATIME 1
b7026657 8501_ACEOF
697afb65 8502
b7026657 8503else :;
697afb65
HPN
8504fi
8505fi
b7026657
AC
8506echo "$as_me:$LINENO: result: $ac_struct_stat_st_atime" >&5
8507echo "${ECHO_T}$ac_struct_stat_st_atime" >&6
697afb65 8508
b7026657
AC
8509echo "$as_me:$LINENO: checking for struct stat.st_mtime" >&5
8510echo $ECHO_N "checking for struct stat.st_mtime... $ECHO_C" >&6
8511if test "${ac_struct_stat_st_mtime+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8513else
8514 ac_struct_stat_st_mtime=no;
b7026657
AC
8515cat >conftest.$ac_ext <<_ACEOF
8516/* confdefs.h. */
8517_ACEOF
8518cat confdefs.h >>conftest.$ac_ext
8519cat >>conftest.$ac_ext <<_ACEOF
8520/* end confdefs.h. */
697afb65
HPN
8521#ifdef HAVE_SYS_TYPES_H
8522#include <sys/types.h>
8523#endif
8524#ifdef HAVE_SYS_STAT_H
8525#include <sys/stat.h>
8526#endif
b7026657
AC
8527int
8528main ()
8529{
697afb65
HPN
8530
8531static struct stat ac_aggr;
8532if (ac_aggr.st_mtime)
8533return 0;
b7026657
AC
8534 ;
8535 return 0;
8536}
8537_ACEOF
8538rm -f conftest.$ac_objext
8539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540 (eval $ac_compile) 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
697afb65
HPN
8560 ac_struct_stat_st_mtime=yes;
8561else
b7026657
AC
8562 echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565cat >conftest.$ac_ext <<_ACEOF
8566/* confdefs.h. */
8567_ACEOF
8568cat confdefs.h >>conftest.$ac_ext
8569cat >>conftest.$ac_ext <<_ACEOF
8570/* end confdefs.h. */
697afb65
HPN
8571#ifdef HAVE_SYS_TYPES_H
8572#include <sys/types.h>
8573#endif
8574#ifdef HAVE_SYS_STAT_H
8575#include <sys/stat.h>
8576#endif
b7026657
AC
8577int
8578main ()
8579{
697afb65
HPN
8580
8581static struct stat ac_aggr;
8582if (sizeof ac_aggr.st_mtime)
8583return 0;
b7026657
AC
8584 ;
8585 return 0;
8586}
8587_ACEOF
8588rm -f conftest.$ac_objext
8589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590 (eval $ac_compile) 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag"
8598 || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest.$ac_objext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
697afb65
HPN
8610 ac_struct_stat_st_mtime=yes;
8611else
b7026657
AC
8612 echo "$as_me: failed program was:" >&5
8613sed 's/^/| /' conftest.$ac_ext >&5
8614
8615ac_struct_stat_st_mtime=no;
697afb65 8616fi
b7026657 8617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8618fi
b7026657
AC
8619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8620if test $ac_struct_stat_st_mtime = yes; then :;
8621cat >>confdefs.h <<_ACEOF
697afb65 8622#define HAVE_STRUCT_STAT_ST_MTIME 1
b7026657 8623_ACEOF
697afb65 8624
b7026657 8625else :;
697afb65
HPN
8626fi
8627fi
b7026657
AC
8628echo "$as_me:$LINENO: result: $ac_struct_stat_st_mtime" >&5
8629echo "${ECHO_T}$ac_struct_stat_st_mtime" >&6
697afb65 8630
b7026657
AC
8631echo "$as_me:$LINENO: checking for struct stat.st_ctime" >&5
8632echo $ECHO_N "checking for struct stat.st_ctime... $ECHO_C" >&6
8633if test "${ac_struct_stat_st_ctime+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8635else
8636 ac_struct_stat_st_ctime=no;
b7026657
AC
8637cat >conftest.$ac_ext <<_ACEOF
8638/* confdefs.h. */
8639_ACEOF
8640cat confdefs.h >>conftest.$ac_ext
8641cat >>conftest.$ac_ext <<_ACEOF
8642/* end confdefs.h. */
697afb65
HPN
8643#ifdef HAVE_SYS_TYPES_H
8644#include <sys/types.h>
8645#endif
8646#ifdef HAVE_SYS_STAT_H
8647#include <sys/stat.h>
8648#endif
b7026657
AC
8649int
8650main ()
8651{
697afb65
HPN
8652
8653static struct stat ac_aggr;
8654if (ac_aggr.st_ctime)
8655return 0;
b7026657
AC
8656 ;
8657 return 0;
8658}
8659_ACEOF
8660rm -f conftest.$ac_objext
8661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662 (eval $ac_compile) 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -z "$ac_c_werror_flag"
8670 || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
697afb65
HPN
8682 ac_struct_stat_st_ctime=yes;
8683else
b7026657
AC
8684 echo "$as_me: failed program was:" >&5
8685sed 's/^/| /' conftest.$ac_ext >&5
8686
8687cat >conftest.$ac_ext <<_ACEOF
8688/* confdefs.h. */
8689_ACEOF
8690cat confdefs.h >>conftest.$ac_ext
8691cat >>conftest.$ac_ext <<_ACEOF
8692/* end confdefs.h. */
697afb65
HPN
8693#ifdef HAVE_SYS_TYPES_H
8694#include <sys/types.h>
8695#endif
8696#ifdef HAVE_SYS_STAT_H
8697#include <sys/stat.h>
8698#endif
b7026657
AC
8699int
8700main ()
8701{
697afb65
HPN
8702
8703static struct stat ac_aggr;
8704if (sizeof ac_aggr.st_ctime)
8705return 0;
b7026657
AC
8706 ;
8707 return 0;
8708}
8709_ACEOF
8710rm -f conftest.$ac_objext
8711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8712 (eval $ac_compile) 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest.$ac_objext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
697afb65
HPN
8732 ac_struct_stat_st_ctime=yes;
8733else
b7026657
AC
8734 echo "$as_me: failed program was:" >&5
8735sed 's/^/| /' conftest.$ac_ext >&5
8736
8737ac_struct_stat_st_ctime=no;
697afb65 8738fi
b7026657 8739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8740fi
b7026657
AC
8741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742if test $ac_struct_stat_st_ctime = yes; then :;
8743cat >>confdefs.h <<_ACEOF
697afb65 8744#define HAVE_STRUCT_STAT_ST_CTIME 1
b7026657 8745_ACEOF
697afb65 8746
b7026657 8747else :;
697afb65
HPN
8748fi
8749fi
b7026657
AC
8750echo "$as_me:$LINENO: result: $ac_struct_stat_st_ctime" >&5
8751echo "${ECHO_T}$ac_struct_stat_st_ctime" >&6
697afb65 8752
b7026657
AC
8753 ac_config_files="$ac_config_files Makefile"
8754 ac_config_commands="$ac_config_commands default"
8755cat >confcache <<\_ACEOF
c906108c
SS
8756# This file is a shell script that caches the results of configure
8757# tests run on this system so they can be shared between configure
b7026657
AC
8758# scripts and configure runs, see configure's option --config-cache.
8759# It is not useful on other systems. If it contains results you don't
8760# want to keep, you may remove or edit it.
c906108c 8761#
b7026657
AC
8762# config.status only pays attention to the cache file if you give it
8763# the --recheck option to rerun configure.
c906108c 8764#
b7026657
AC
8765# `ac_cv_env_foo' variables (set or unset) will be overridden when
8766# loading this file, other *unset* `ac_cv_foo' will be assigned the
8767# following values.
8768
8769_ACEOF
8770
c906108c
SS
8771# The following way of writing the cache mishandles newlines in values,
8772# but we know of no workaround that is simple, portable, and efficient.
8773# So, don't put newlines in cache variables' values.
8774# Ultrix sh set writes to stderr and can't be redirected directly,
8775# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
8776{
8777 (set) 2>&1 |
8778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8779 *ac_space=\ *)
8780 # `set' does not quote correctly, so add quotes (double-quote
8781 # substitution turns \\\\ into \\, and sed turns \\ into \).
8782 sed -n \
8783 "s/'/'\\\\''/g;
8784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8785 ;;
8786 *)
8787 # `set' quotes correctly as required by POSIX, so do not add quotes.
8788 sed -n \
8789 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8790 ;;
8791 esac;
8792} |
8793 sed '
8794 t clear
8795 : clear
8796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8797 t end
8798 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8799 : end' >>confcache
8800if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 8801 if test -w $cache_file; then
b7026657
AC
8802 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8803 cat confcache >$cache_file
c906108c
SS
8804 else
8805 echo "not updating unwritable cache $cache_file"
8806 fi
8807fi
8808rm -f confcache
8809
c906108c
SS
8810test "x$prefix" = xNONE && prefix=$ac_default_prefix
8811# Let make expand exec_prefix.
8812test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8813
b7026657
AC
8814# VPATH may cause trouble with some makes, so we remove $(srcdir),
8815# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8816# trailing colons and then remove the whole line if VPATH becomes empty
8817# (actually we leave an empty line to preserve line numbers).
c906108c 8818if test "x$srcdir" = x.; then
b7026657
AC
8819 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8820s/:*\$(srcdir):*/:/;
8821s/:*\${srcdir}:*/:/;
8822s/:*@srcdir@:*/:/;
8823s/^\([^=]*=[ ]*\):*/\1/;
8824s/:*$//;
8825s/^[^=]*=[ ]*$//;
8826}'
c906108c
SS
8827fi
8828
c906108c
SS
8829DEFS=-DHAVE_CONFIG_H
8830
b7026657
AC
8831ac_libobjs=
8832ac_ltlibobjs=
8833for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8834 # 1. Remove the extension, and $U if already installed.
8835 ac_i=`echo "$ac_i" |
8836 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8837 # 2. Add them.
8838 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8839 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8840done
8841LIBOBJS=$ac_libobjs
c906108c 8842
b7026657
AC
8843LTLIBOBJS=$ac_ltlibobjs
8844
8845
8846
8847: ${CONFIG_STATUS=./config.status}
8848ac_clean_files_save=$ac_clean_files
8849ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8850{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8851echo "$as_me: creating $CONFIG_STATUS" >&6;}
8852cat >$CONFIG_STATUS <<_ACEOF
8853#! $SHELL
8854# Generated by $as_me.
c906108c 8855# Run this file to recreate the current configuration.
c906108c 8856# Compiler output produced by configure, useful for debugging
b7026657 8857# configure, is in config.log if it exists.
c906108c 8858
b7026657
AC
8859debug=false
8860ac_cs_recheck=false
8861ac_cs_silent=false
8862SHELL=\${CONFIG_SHELL-$SHELL}
8863_ACEOF
8864
8865cat >>$CONFIG_STATUS <<\_ACEOF
8866## --------------------- ##
8867## M4sh Initialization. ##
8868## --------------------- ##
8869
8870# Be Bourne compatible
8871if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8872 emulate sh
8873 NULLCMD=:
8874 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8875 # is contrary to our usage. Disable this feature.
8876 alias -g '${1+"$@"}'='"$@"'
8877elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8878 set -o posix
8879fi
8880DUALCASE=1; export DUALCASE # for MKS sh
8881
8882# Support unset when possible.
8883if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8884 as_unset=unset
8885else
8886 as_unset=false
8887fi
8888
8889
8890# Work around bugs in pre-3.0 UWIN ksh.
8891$as_unset ENV MAIL MAILPATH
8892PS1='$ '
8893PS2='> '
8894PS4='+ '
8895
8896# NLS nuisances.
8897for as_var in \
8898 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8899 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8900 LC_TELEPHONE LC_TIME
c906108c 8901do
b7026657
AC
8902 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8903 eval $as_var=C; export $as_var
8904 else
8905 $as_unset $as_var
8906 fi
c906108c
SS
8907done
8908
b7026657
AC
8909# Required to use basename.
8910if expr a : '\(a\)' >/dev/null 2>&1; then
8911 as_expr=expr
8912else
8913 as_expr=false
8914fi
c906108c 8915
b7026657
AC
8916if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8917 as_basename=basename
8918else
8919 as_basename=false
8920fi
c906108c 8921
c906108c 8922
b7026657
AC
8923# Name of the executable.
8924as_me=`$as_basename "$0" ||
8925$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8926 X"$0" : 'X\(//\)$' \| \
8927 X"$0" : 'X\(/\)$' \| \
8928 . : '\(.\)' 2>/dev/null ||
8929echo X/"$0" |
8930 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8931 /^X\/\(\/\/\)$/{ s//\1/; q; }
8932 /^X\/\(\/\).*/{ s//\1/; q; }
8933 s/.*/./; q'`
8934
8935
8936# PATH needs CR, and LINENO needs CR and PATH.
8937# Avoid depending upon Character Ranges.
8938as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8939as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8940as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8941as_cr_digits='0123456789'
8942as_cr_alnum=$as_cr_Letters$as_cr_digits
8943
8944# The user is always right.
8945if test "${PATH_SEPARATOR+set}" != set; then
8946 echo "#! /bin/sh" >conf$$.sh
8947 echo "exit 0" >>conf$$.sh
8948 chmod +x conf$$.sh
8949 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8950 PATH_SEPARATOR=';'
c906108c 8951 else
b7026657
AC
8952 PATH_SEPARATOR=:
8953 fi
8954 rm -f conf$$.sh
8955fi
8956
8957
8958 as_lineno_1=$LINENO
8959 as_lineno_2=$LINENO
8960 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8961 test "x$as_lineno_1" != "x$as_lineno_2" &&
8962 test "x$as_lineno_3" = "x$as_lineno_2" || {
8963 # Find who we are. Look in the path if we contain no path at all
8964 # relative or not.
8965 case $0 in
8966 *[\\/]* ) as_myself=$0 ;;
8967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968for as_dir in $PATH
8969do
8970 IFS=$as_save_IFS
8971 test -z "$as_dir" && as_dir=.
8972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8973done
8974
8975 ;;
8976 esac
8977 # We did not find ourselves, most probably we were run as `sh COMMAND'
8978 # in which case we are not to be found in the path.
8979 if test "x$as_myself" = x; then
8980 as_myself=$0
c906108c 8981 fi
b7026657
AC
8982 if test ! -f "$as_myself"; then
8983 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8984echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8985 { (exit 1); exit 1; }; }
8986 fi
8987 case $CONFIG_SHELL in
8988 '')
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8991do
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for as_base in sh bash ksh sh5; do
8995 case $as_dir in
8996 /*)
8997 if ("$as_dir/$as_base" -c '
8998 as_lineno_1=$LINENO
8999 as_lineno_2=$LINENO
9000 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9001 test "x$as_lineno_1" != "x$as_lineno_2" &&
9002 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9003 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9004 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9005 CONFIG_SHELL=$as_dir/$as_base
9006 export CONFIG_SHELL
9007 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9008 fi;;
9009 esac
9010 done
9011done
9012;;
9013 esac
9014
9015 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9016 # uniformly replaced by the line number. The first 'sed' inserts a
9017 # line-number line before each line; the second 'sed' does the real
9018 # work. The second script uses 'N' to pair each line-number line
9019 # with the numbered line, and appends trailing '-' during
9020 # substitution so that $LINENO is not a special case at line end.
9021 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9022 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9023 sed '=' <$as_myself |
9024 sed '
9025 N
9026 s,$,-,
9027 : loop
9028 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9029 t loop
9030 s,-$,,
9031 s,^['$as_cr_digits']*\n,,
9032 ' >$as_me.lineno &&
9033 chmod +x $as_me.lineno ||
9034 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9035echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9036 { (exit 1); exit 1; }; }
9037
9038 # Don't try to exec as it changes $[0], causing all sort of problems
9039 # (the dirname of $[0] is not the place where we might find the
9040 # original and so on. Autoconf is especially sensible to this).
9041 . ./$as_me.lineno
9042 # Exit status is that of the last command.
9043 exit
9044}
9045
9046
9047case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9048 *c*,-n*) ECHO_N= ECHO_C='
9049' ECHO_T=' ' ;;
9050 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9051 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9052esac
9053
9054if expr a : '\(a\)' >/dev/null 2>&1; then
9055 as_expr=expr
9056else
9057 as_expr=false
9058fi
9059
9060rm -f conf$$ conf$$.exe conf$$.file
9061echo >conf$$.file
9062if ln -s conf$$.file conf$$ 2>/dev/null; then
9063 # We could just check for DJGPP; but this test a) works b) is more generic
9064 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9065 if test -f conf$$.exe; then
9066 # Don't use ln at all; we don't have any links
9067 as_ln_s='cp -p'
c906108c 9068 else
b7026657 9069 as_ln_s='ln -s'
c906108c 9070 fi
b7026657
AC
9071elif ln conf$$.file conf$$ 2>/dev/null; then
9072 as_ln_s=ln
9073else
9074 as_ln_s='cp -p'
9075fi
9076rm -f conf$$ conf$$.exe conf$$.file
9077
9078if mkdir -p . 2>/dev/null; then
9079 as_mkdir_p=:
9080else
9081 test -d ./-p && rmdir ./-p
9082 as_mkdir_p=false
9083fi
9084
9085as_executable_p="test -f"
9086
9087# Sed expression to map a string onto a valid CPP name.
9088as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9089
9090# Sed expression to map a string onto a valid variable name.
9091as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9092
9093
9094# IFS
9095# We need space, tab and new line, in precisely that order.
9096as_nl='
9097'
9098IFS=" $as_nl"
9099
9100# CDPATH.
9101$as_unset CDPATH
9102
9103exec 6>&1
9104
9105# Open the log real soon, to keep \$[0] and so on meaningful, and to
9106# report actual input values of CONFIG_FILES etc. instead of their
9107# values after options handling. Logging --version etc. is OK.
9108exec 5>>config.log
9109{
9110 echo
9111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9112## Running $as_me. ##
9113_ASBOX
9114} >&5
9115cat >&5 <<_CSEOF
9116
9117This file was extended by $as_me, which was
9118generated by GNU Autoconf 2.59. Invocation command line was
9119
9120 CONFIG_FILES = $CONFIG_FILES
9121 CONFIG_HEADERS = $CONFIG_HEADERS
9122 CONFIG_LINKS = $CONFIG_LINKS
9123 CONFIG_COMMANDS = $CONFIG_COMMANDS
9124 $ $0 $@
9125
9126_CSEOF
9127echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9128echo >&5
9129_ACEOF
9130
9131# Files that config.status was made for.
9132if test -n "$ac_config_files"; then
9133 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9134fi
9135
9136if test -n "$ac_config_headers"; then
9137 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9138fi
9139
9140if test -n "$ac_config_links"; then
9141 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9142fi
9143
9144if test -n "$ac_config_commands"; then
9145 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9146fi
9147
9148cat >>$CONFIG_STATUS <<\_ACEOF
9149
9150ac_cs_usage="\
9151\`$as_me' instantiates files from templates according to the
9152current configuration.
9153
9154Usage: $0 [OPTIONS] [FILE]...
9155
9156 -h, --help print this help, then exit
9157 -V, --version print version number, then exit
9158 -q, --quiet do not print progress messages
9159 -d, --debug don't remove temporary files
9160 --recheck update $as_me by reconfiguring in the same conditions
9161 --file=FILE[:TEMPLATE]
9162 instantiate the configuration file FILE
9163 --header=FILE[:TEMPLATE]
9164 instantiate the configuration header FILE
9165
9166Configuration files:
9167$config_files
9168
9169Configuration headers:
9170$config_headers
9171
9172Configuration commands:
9173$config_commands
9174
9175Report bugs to <bug-autoconf@gnu.org>."
9176_ACEOF
9177
9178cat >>$CONFIG_STATUS <<_ACEOF
9179ac_cs_version="\\
9180config.status
9181configured by $0, generated by GNU Autoconf 2.59,
9182 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9183
9184Copyright (C) 2003 Free Software Foundation, Inc.
9185This config.status script is free software; the Free Software Foundation
9186gives unlimited permission to copy, distribute and modify it."
9187srcdir=$srcdir
9188INSTALL="$INSTALL"
9189_ACEOF
9190
9191cat >>$CONFIG_STATUS <<\_ACEOF
9192# If no file are specified by the user, then we need to provide default
9193# value. By we need to know if files were specified by the user.
9194ac_need_defaults=:
9195while test $# != 0
9196do
9197 case $1 in
9198 --*=*)
9199 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9200 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9201 ac_shift=:
9202 ;;
9203 -*)
9204 ac_option=$1
9205 ac_optarg=$2
9206 ac_shift=shift
9207 ;;
9208 *) # This is not an option, so the user has probably given explicit
9209 # arguments.
9210 ac_option=$1
9211 ac_need_defaults=false;;
9212 esac
9213
9214 case $ac_option in
9215 # Handling of the options.
9216_ACEOF
9217cat >>$CONFIG_STATUS <<\_ACEOF
9218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9219 ac_cs_recheck=: ;;
9220 --version | --vers* | -V )
9221 echo "$ac_cs_version"; exit 0 ;;
9222 --he | --h)
9223 # Conflict between --help and --header
9224 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9225Try \`$0 --help' for more information." >&5
9226echo "$as_me: error: ambiguous option: $1
9227Try \`$0 --help' for more information." >&2;}
9228 { (exit 1); exit 1; }; };;
9229 --help | --hel | -h )
9230 echo "$ac_cs_usage"; exit 0 ;;
9231 --debug | --d* | -d )
9232 debug=: ;;
9233 --file | --fil | --fi | --f )
9234 $ac_shift
9235 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9236 ac_need_defaults=false;;
9237 --header | --heade | --head | --hea )
9238 $ac_shift
9239 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9240 ac_need_defaults=false;;
9241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9242 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9243 ac_cs_silent=: ;;
9244
9245 # This is an error.
9246 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9247Try \`$0 --help' for more information." >&5
9248echo "$as_me: error: unrecognized option: $1
9249Try \`$0 --help' for more information." >&2;}
9250 { (exit 1); exit 1; }; } ;;
9251
9252 *) ac_config_targets="$ac_config_targets $1" ;;
9253
9254 esac
9255 shift
c906108c 9256done
b7026657
AC
9257
9258ac_configure_extra_args=
9259
9260if $ac_cs_silent; then
9261 exec 6>/dev/null
9262 ac_configure_extra_args="$ac_configure_extra_args --silent"
9263fi
9264
9265_ACEOF
9266cat >>$CONFIG_STATUS <<_ACEOF
9267if \$ac_cs_recheck; then
9268 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9269 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
c906108c 9270fi
c906108c 9271
b7026657 9272_ACEOF
c906108c 9273
b7026657
AC
9274
9275
9276
9277
9278cat >>$CONFIG_STATUS <<\_ACEOF
9279for ac_config_target in $ac_config_targets
9280do
9281 case "$ac_config_target" in
9282 # Handling of arguments.
9283 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9284 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9285 "cconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;;
9286 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9287echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9288 { (exit 1); exit 1; }; };;
c906108c 9289 esac
b7026657 9290done
c906108c 9291
b7026657
AC
9292# If the user did not use the arguments to specify the items to instantiate,
9293# then the envvar interface is used. Set only those that are not.
9294# We use the long form for the default assignment because of an extremely
9295# bizarre bug on SunOS 4.1.3.
9296if $ac_need_defaults; then
9297 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9298 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9299 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9300fi
9301
9302# Have a temporary directory for convenience. Make it in the build tree
9303# simply because there is no reason to put it here, and in addition,
9304# creating and moving files from /tmp can sometimes cause problems.
9305# Create a temporary directory, and hook for its removal unless debugging.
9306$debug ||
9307{
9308 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9309 trap '{ (exit 1); exit 1; }' 1 2 13 15
9310}
c906108c 9311
b7026657
AC
9312# Create a (secure) tmp directory for tmp files.
9313
9314{
9315 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9316 test -n "$tmp" && test -d "$tmp"
9317} ||
9318{
9319 tmp=./confstat$$-$RANDOM
9320 (umask 077 && mkdir $tmp)
9321} ||
9322{
9323 echo "$me: cannot create a temporary directory in ." >&2
9324 { (exit 1); exit 1; }
9325}
9326
9327_ACEOF
9328
9329cat >>$CONFIG_STATUS <<_ACEOF
9330
9331#
9332# CONFIG_FILES section.
9333#
9334
9335# No need to generate the scripts if there are no CONFIG_FILES.
9336# This happens for instance when ./config.status config.h
9337if test -n "\$CONFIG_FILES"; then
9338 # Protect against being on the right side of a sed subst in config.status.
9339 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9340 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9341s,@sim_environment@,$sim_environment,;t t
9342s,@sim_alignment@,$sim_alignment,;t t
9343s,@sim_assert@,$sim_assert,;t t
9344s,@sim_bitsize@,$sim_bitsize,;t t
9345s,@sim_endian@,$sim_endian,;t t
9346s,@sim_hostendian@,$sim_hostendian,;t t
9347s,@sim_float@,$sim_float,;t t
9348s,@sim_scache@,$sim_scache,;t t
9349s,@sim_default_model@,$sim_default_model,;t t
9350s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9351s,@sim_hw_objs@,$sim_hw_objs,;t t
9352s,@sim_hw@,$sim_hw,;t t
9353s,@sim_inline@,$sim_inline,;t t
9354s,@sim_packages@,$sim_packages,;t t
9355s,@sim_regparm@,$sim_regparm,;t t
9356s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9357s,@sim_smp@,$sim_smp,;t t
9358s,@sim_stdcall@,$sim_stdcall,;t t
9359s,@sim_xor_endian@,$sim_xor_endian,;t t
9360s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9361s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9362s,@SHELL@,$SHELL,;t t
9363s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9364s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9365s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9366s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9367s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9368s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9369s,@exec_prefix@,$exec_prefix,;t t
9370s,@prefix@,$prefix,;t t
9371s,@program_transform_name@,$program_transform_name,;t t
9372s,@bindir@,$bindir,;t t
9373s,@sbindir@,$sbindir,;t t
9374s,@libexecdir@,$libexecdir,;t t
9375s,@datadir@,$datadir,;t t
9376s,@sysconfdir@,$sysconfdir,;t t
9377s,@sharedstatedir@,$sharedstatedir,;t t
9378s,@localstatedir@,$localstatedir,;t t
9379s,@libdir@,$libdir,;t t
9380s,@includedir@,$includedir,;t t
9381s,@oldincludedir@,$oldincludedir,;t t
9382s,@infodir@,$infodir,;t t
9383s,@mandir@,$mandir,;t t
9384s,@build_alias@,$build_alias,;t t
9385s,@host_alias@,$host_alias,;t t
9386s,@target_alias@,$target_alias,;t t
9387s,@DEFS@,$DEFS,;t t
9388s,@ECHO_C@,$ECHO_C,;t t
9389s,@ECHO_N@,$ECHO_N,;t t
9390s,@ECHO_T@,$ECHO_T,;t t
9391s,@LIBS@,$LIBS,;t t
9392s,@build@,$build,;t t
9393s,@build_cpu@,$build_cpu,;t t
9394s,@build_vendor@,$build_vendor,;t t
9395s,@build_os@,$build_os,;t t
9396s,@host@,$host,;t t
9397s,@host_cpu@,$host_cpu,;t t
9398s,@host_vendor@,$host_vendor,;t t
9399s,@host_os@,$host_os,;t t
9400s,@target@,$target,;t t
9401s,@target_cpu@,$target_cpu,;t t
9402s,@target_vendor@,$target_vendor,;t t
9403s,@target_os@,$target_os,;t t
9404s,@CC@,$CC,;t t
9405s,@CFLAGS@,$CFLAGS,;t t
9406s,@LDFLAGS@,$LDFLAGS,;t t
9407s,@CPPFLAGS@,$CPPFLAGS,;t t
9408s,@ac_ct_CC@,$ac_ct_CC,;t t
9409s,@EXEEXT@,$EXEEXT,;t t
9410s,@OBJEXT@,$OBJEXT,;t t
9411s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9412s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9413s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9414s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9415s,@HDEFINES@,$HDEFINES,;t t
9416s,@AR@,$AR,;t t
9417s,@RANLIB@,$RANLIB,;t t
9418s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9419s,@SET_MAKE@,$SET_MAKE,;t t
9420s,@CPP@,$CPP,;t t
9421s,@EGREP@,$EGREP,;t t
9422s,@ALLOCA@,$ALLOCA,;t t
9423s,@USE_NLS@,$USE_NLS,;t t
9424s,@MSGFMT@,$MSGFMT,;t t
9425s,@GMSGFMT@,$GMSGFMT,;t t
9426s,@XGETTEXT@,$XGETTEXT,;t t
9427s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9428s,@CATALOGS@,$CATALOGS,;t t
9429s,@CATOBJEXT@,$CATOBJEXT,;t t
9430s,@DATADIRNAME@,$DATADIRNAME,;t t
9431s,@GMOFILES@,$GMOFILES,;t t
9432s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9433s,@INTLDEPS@,$INTLDEPS,;t t
9434s,@INTLLIBS@,$INTLLIBS,;t t
9435s,@INTLOBJS@,$INTLOBJS,;t t
9436s,@POFILES@,$POFILES,;t t
9437s,@POSUB@,$POSUB,;t t
9438s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9439s,@GT_NO@,$GT_NO,;t t
9440s,@GT_YES@,$GT_YES,;t t
9441s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9442s,@l@,$l,;t t
9443s,@MAINT@,$MAINT,;t t
9444s,@sim_bswap@,$sim_bswap,;t t
9445s,@sim_cflags@,$sim_cflags,;t t
9446s,@sim_debug@,$sim_debug,;t t
9447s,@sim_stdio@,$sim_stdio,;t t
9448s,@sim_trace@,$sim_trace,;t t
9449s,@sim_profile@,$sim_profile,;t t
9450s,@CPP_FOR_TARGET@,$CPP_FOR_TARGET,;t t
9451s,@TARGET_SUBDIR@,$TARGET_SUBDIR,;t t
9452s,@LIBOBJS@,$LIBOBJS,;t t
9453s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9454CEOF
9455
9456_ACEOF
9457
9458 cat >>$CONFIG_STATUS <<\_ACEOF
9459 # Split the substitutions into bite-sized pieces for seds with
9460 # small command number limits, like on Digital OSF/1 and HP-UX.
9461 ac_max_sed_lines=48
9462 ac_sed_frag=1 # Number of current file.
9463 ac_beg=1 # First line for current file.
9464 ac_end=$ac_max_sed_lines # Line after last line for current file.
9465 ac_more_lines=:
9466 ac_sed_cmds=
9467 while $ac_more_lines; do
9468 if test $ac_beg -gt 1; then
9469 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9470 else
9471 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9472 fi
9473 if test ! -s $tmp/subs.frag; then
9474 ac_more_lines=false
9475 else
9476 # The purpose of the label and of the branching condition is to
9477 # speed up the sed processing (if there are no `@' at all, there
9478 # is no need to browse any of the substitutions).
9479 # These are the two extra sed commands mentioned above.
9480 (echo ':t
9481 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9482 if test -z "$ac_sed_cmds"; then
9483 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9484 else
9485 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9486 fi
9487 ac_sed_frag=`expr $ac_sed_frag + 1`
9488 ac_beg=$ac_end
9489 ac_end=`expr $ac_end + $ac_max_sed_lines`
9490 fi
9491 done
9492 if test -z "$ac_sed_cmds"; then
9493 ac_sed_cmds=cat
c906108c 9494 fi
b7026657 9495fi # test -n "$CONFIG_FILES"
c906108c 9496
b7026657
AC
9497_ACEOF
9498cat >>$CONFIG_STATUS <<\_ACEOF
9499for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9500 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9501 case $ac_file in
9502 - | *:- | *:-:* ) # input from stdin
9503 cat >$tmp/stdin
9504 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9505 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9506 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9507 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9508 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
9509 esac
9510
b7026657
AC
9511 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9512 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9513$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9514 X"$ac_file" : 'X\(//\)[^/]' \| \
9515 X"$ac_file" : 'X\(//\)$' \| \
9516 X"$ac_file" : 'X\(/\)' \| \
9517 . : '\(.\)' 2>/dev/null ||
9518echo X"$ac_file" |
9519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9521 /^X\(\/\/\)$/{ s//\1/; q; }
9522 /^X\(\/\).*/{ s//\1/; q; }
9523 s/.*/./; q'`
9524 { if $as_mkdir_p; then
9525 mkdir -p "$ac_dir"
9526 else
9527 as_dir="$ac_dir"
9528 as_dirs=
9529 while test ! -d "$as_dir"; do
9530 as_dirs="$as_dir $as_dirs"
9531 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9533 X"$as_dir" : 'X\(//\)[^/]' \| \
9534 X"$as_dir" : 'X\(//\)$' \| \
9535 X"$as_dir" : 'X\(/\)' \| \
9536 . : '\(.\)' 2>/dev/null ||
9537echo X"$as_dir" |
9538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9540 /^X\(\/\/\)$/{ s//\1/; q; }
9541 /^X\(\/\).*/{ s//\1/; q; }
9542 s/.*/./; q'`
9543 done
9544 test ! -n "$as_dirs" || mkdir $as_dirs
9545 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9546echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9547 { (exit 1); exit 1; }; }; }
9548
9549 ac_builddir=.
9550
9551if test "$ac_dir" != .; then
9552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9553 # A "../" for each directory in $ac_dir_suffix.
9554 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9555else
9556 ac_dir_suffix= ac_top_builddir=
9557fi
c906108c 9558
b7026657
AC
9559case $srcdir in
9560 .) # No --srcdir option. We are building in place.
9561 ac_srcdir=.
9562 if test -z "$ac_top_builddir"; then
9563 ac_top_srcdir=.
9564 else
9565 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9566 fi ;;
9567 [\\/]* | ?:[\\/]* ) # Absolute path.
9568 ac_srcdir=$srcdir$ac_dir_suffix;
9569 ac_top_srcdir=$srcdir ;;
9570 *) # Relative path.
9571 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9572 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9573esac
9574
9575# Do not use `cd foo && pwd` to compute absolute paths, because
9576# the directories may not exist.
9577case `pwd` in
9578.) ac_abs_builddir="$ac_dir";;
9579*)
9580 case "$ac_dir" in
9581 .) ac_abs_builddir=`pwd`;;
9582 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9583 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9584 esac;;
9585esac
9586case $ac_abs_builddir in
9587.) ac_abs_top_builddir=${ac_top_builddir}.;;
9588*)
9589 case ${ac_top_builddir}. in
9590 .) ac_abs_top_builddir=$ac_abs_builddir;;
9591 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9592 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9593 esac;;
9594esac
9595case $ac_abs_builddir in
9596.) ac_abs_srcdir=$ac_srcdir;;
9597*)
9598 case $ac_srcdir in
9599 .) ac_abs_srcdir=$ac_abs_builddir;;
9600 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9601 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9602 esac;;
9603esac
9604case $ac_abs_builddir in
9605.) ac_abs_top_srcdir=$ac_top_srcdir;;
9606*)
9607 case $ac_top_srcdir in
9608 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9609 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9610 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9611 esac;;
9612esac
9613
9614
9615 case $INSTALL in
9616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9617 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
9618 esac
9619
b7026657
AC
9620 if test x"$ac_file" != x-; then
9621 { echo "$as_me:$LINENO: creating $ac_file" >&5
9622echo "$as_me: creating $ac_file" >&6;}
9623 rm -f "$ac_file"
9624 fi
9625 # Let's still pretend it is `configure' which instantiates (i.e., don't
9626 # use $as_me), people would be surprised to read:
9627 # /* config.h. Generated by config.status. */
9628 if test x"$ac_file" = x-; then
9629 configure_input=
9630 else
9631 configure_input="$ac_file. "
9632 fi
9633 configure_input=$configure_input"Generated from `echo $ac_file_in |
9634 sed 's,.*/,,'` by configure."
9635
9636 # First look for the input files in the build tree, otherwise in the
9637 # src tree.
9638 ac_file_inputs=`IFS=:
9639 for f in $ac_file_in; do
9640 case $f in
9641 -) echo $tmp/stdin ;;
9642 [\\/$]*)
9643 # Absolute (can't be DOS-style, as IFS=:)
9644 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9645echo "$as_me: error: cannot find input file: $f" >&2;}
9646 { (exit 1); exit 1; }; }
9647 echo "$f";;
9648 *) # Relative
9649 if test -f "$f"; then
9650 # Build tree
9651 echo "$f"
9652 elif test -f "$srcdir/$f"; then
9653 # Source tree
9654 echo "$srcdir/$f"
9655 else
9656 # /dev/null tree
9657 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9658echo "$as_me: error: cannot find input file: $f" >&2;}
9659 { (exit 1); exit 1; }; }
9660 fi;;
9661 esac
9662 done` || { (exit 1); exit 1; }
9663_ACEOF
9664cat >>$CONFIG_STATUS <<_ACEOF
9665 sed "$ac_vpsub
9666$extrasub
9667_ACEOF
9668cat >>$CONFIG_STATUS <<\_ACEOF
9669:t
9670/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9671s,@configure_input@,$configure_input,;t t
9672s,@srcdir@,$ac_srcdir,;t t
9673s,@abs_srcdir@,$ac_abs_srcdir,;t t
9674s,@top_srcdir@,$ac_top_srcdir,;t t
9675s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9676s,@builddir@,$ac_builddir,;t t
9677s,@abs_builddir@,$ac_abs_builddir,;t t
9678s,@top_builddir@,$ac_top_builddir,;t t
9679s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9680s,@INSTALL@,$ac_INSTALL,;t t
9681" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9682 rm -f $tmp/stdin
9683 if test x"$ac_file" != x-; then
9684 mv $tmp/out $ac_file
9685 else
9686 cat $tmp/out
9687 rm -f $tmp/out
9688 fi
9689
9690done
9691_ACEOF
9692cat >>$CONFIG_STATUS <<\_ACEOF
9693
9694#
9695# CONFIG_HEADER section.
9696#
c906108c
SS
9697
9698# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9699# NAME is the cpp macro being defined and VALUE is the value it is being given.
9700#
9701# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
9702ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9703ac_dB='[ ].*$,\1#\2'
9704ac_dC=' '
9705ac_dD=',;t'
9706# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9707ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9708ac_uB='$,\1#\2define\3'
c906108c 9709ac_uC=' '
b7026657
AC
9710ac_uD=',;t'
9711
9712for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 9713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
9714 case $ac_file in
9715 - | *:- | *:-:* ) # input from stdin
9716 cat >$tmp/stdin
9717 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9718 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9719 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9721 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
9722 esac
9723
b7026657
AC
9724 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9725echo "$as_me: creating $ac_file" >&6;}
9726
9727 # First look for the input files in the build tree, otherwise in the
9728 # src tree.
9729 ac_file_inputs=`IFS=:
9730 for f in $ac_file_in; do
9731 case $f in
9732 -) echo $tmp/stdin ;;
9733 [\\/$]*)
9734 # Absolute (can't be DOS-style, as IFS=:)
9735 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9736echo "$as_me: error: cannot find input file: $f" >&2;}
9737 { (exit 1); exit 1; }; }
9738 # Do quote $f, to prevent DOS paths from being IFS'd.
9739 echo "$f";;
9740 *) # Relative
9741 if test -f "$f"; then
9742 # Build tree
9743 echo "$f"
9744 elif test -f "$srcdir/$f"; then
9745 # Source tree
9746 echo "$srcdir/$f"
9747 else
9748 # /dev/null tree
9749 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9750echo "$as_me: error: cannot find input file: $f" >&2;}
9751 { (exit 1); exit 1; }; }
9752 fi;;
9753 esac
9754 done` || { (exit 1); exit 1; }
9755 # Remove the trailing spaces.
9756 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9757
9758_ACEOF
9759
9760# Transform confdefs.h into two sed scripts, `conftest.defines' and
9761# `conftest.undefs', that substitutes the proper values into
9762# config.h.in to produce config.h. The first handles `#define'
9763# templates, and the second `#undef' templates.
9764# And first: Protect against being on the right side of a sed subst in
9765# config.status. Protect against being in an unquoted here document
9766# in config.status.
9767rm -f conftest.defines conftest.undefs
9768# Using a here document instead of a string reduces the quoting nightmare.
9769# Putting comments in sed scripts is not portable.
9770#
9771# `end' is used to avoid that the second main sed command (meant for
9772# 0-ary CPP macros) applies to n-ary macro definitions.
9773# See the Autoconf documentation for `clear'.
9774cat >confdef2sed.sed <<\_ACEOF
9775s/[\\&,]/\\&/g
9776s,[\\$`],\\&,g
9777t clear
9778: clear
9779s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9780t end
9781s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9782: end
9783_ACEOF
9784# If some macros were called several times there might be several times
9785# the same #defines, which is useless. Nevertheless, we may not want to
9786# sort them, since we want the *last* AC-DEFINE to be honored.
9787uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9788sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9789rm -f confdef2sed.sed
c906108c
SS
9790
9791# This sed command replaces #undef with comments. This is necessary, for
9792# example, in the case of _POSIX_SOURCE, which is predefined and required
9793# on some systems where configure will not decide to define it.
b7026657
AC
9794cat >>conftest.undefs <<\_ACEOF
9795s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9796_ACEOF
9797
9798# Break up conftest.defines because some shells have a limit on the size
9799# of here documents, and old seds have small limits too (100 cmds).
9800echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9801echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9802echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9803echo ' :' >>$CONFIG_STATUS
9804rm -f conftest.tail
9805while grep . conftest.defines >/dev/null
9806do
9807 # Write a limited-size here document to $tmp/defines.sed.
9808 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9809 # Speed up: don't consider the non `#define' lines.
9810 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9811 # Work around the forget-to-reset-the-flag bug.
9812 echo 't clr' >>$CONFIG_STATUS
9813 echo ': clr' >>$CONFIG_STATUS
9814 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9815 echo 'CEOF
9816 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9817 rm -f $tmp/in
9818 mv $tmp/out $tmp/in
9819' >>$CONFIG_STATUS
9820 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9821 rm -f conftest.defines
9822 mv conftest.tail conftest.defines
9823done
9824rm -f conftest.defines
9825echo ' fi # grep' >>$CONFIG_STATUS
9826echo >>$CONFIG_STATUS
c906108c 9827
b7026657
AC
9828# Break up conftest.undefs because some shells have a limit on the size
9829# of here documents, and old seds have small limits too (100 cmds).
9830echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 9831rm -f conftest.tail
b7026657 9832while grep . conftest.undefs >/dev/null
c906108c 9833do
b7026657
AC
9834 # Write a limited-size here document to $tmp/undefs.sed.
9835 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9836 # Speed up: don't consider the non `#undef'
9837 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9838 # Work around the forget-to-reset-the-flag bug.
9839 echo 't clr' >>$CONFIG_STATUS
9840 echo ': clr' >>$CONFIG_STATUS
9841 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 9842 echo 'CEOF
b7026657
AC
9843 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9844 rm -f $tmp/in
9845 mv $tmp/out $tmp/in
9846' >>$CONFIG_STATUS
9847 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9848 rm -f conftest.undefs
9849 mv conftest.tail conftest.undefs
c906108c 9850done
b7026657
AC
9851rm -f conftest.undefs
9852
9853cat >>$CONFIG_STATUS <<\_ACEOF
9854 # Let's still pretend it is `configure' which instantiates (i.e., don't
9855 # use $as_me), people would be surprised to read:
9856 # /* config.h. Generated by config.status. */
9857 if test x"$ac_file" = x-; then
9858 echo "/* Generated by configure. */" >$tmp/config.h
9859 else
9860 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9861 fi
9862 cat $tmp/in >>$tmp/config.h
9863 rm -f $tmp/in
9864 if test x"$ac_file" != x-; then
9865 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9866 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9867echo "$as_me: $ac_file is unchanged" >&6;}
9868 else
9869 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9871 X"$ac_file" : 'X\(//\)[^/]' \| \
9872 X"$ac_file" : 'X\(//\)$' \| \
9873 X"$ac_file" : 'X\(/\)' \| \
9874 . : '\(.\)' 2>/dev/null ||
9875echo X"$ac_file" |
9876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9878 /^X\(\/\/\)$/{ s//\1/; q; }
9879 /^X\(\/\).*/{ s//\1/; q; }
9880 s/.*/./; q'`
9881 { if $as_mkdir_p; then
9882 mkdir -p "$ac_dir"
c906108c 9883 else
b7026657
AC
9884 as_dir="$ac_dir"
9885 as_dirs=
9886 while test ! -d "$as_dir"; do
9887 as_dirs="$as_dir $as_dirs"
9888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9889$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9890 X"$as_dir" : 'X\(//\)[^/]' \| \
9891 X"$as_dir" : 'X\(//\)$' \| \
9892 X"$as_dir" : 'X\(/\)' \| \
9893 . : '\(.\)' 2>/dev/null ||
9894echo X"$as_dir" |
9895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9897 /^X\(\/\/\)$/{ s//\1/; q; }
9898 /^X\(\/\).*/{ s//\1/; q; }
9899 s/.*/./; q'`
9900 done
9901 test ! -n "$as_dirs" || mkdir $as_dirs
9902 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9903echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9904 { (exit 1); exit 1; }; }; }
9905
9906 rm -f $ac_file
9907 mv $tmp/config.h $ac_file
c906108c 9908 fi
b7026657
AC
9909 else
9910 cat $tmp/config.h
9911 rm -f $tmp/config.h
c906108c 9912 fi
b7026657
AC
9913done
9914_ACEOF
9915cat >>$CONFIG_STATUS <<\_ACEOF
9916
9917#
9918# CONFIG_COMMANDS section.
9919#
9920for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9921 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9922 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9923 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9924$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9925 X"$ac_dest" : 'X\(//\)[^/]' \| \
9926 X"$ac_dest" : 'X\(//\)$' \| \
9927 X"$ac_dest" : 'X\(/\)' \| \
9928 . : '\(.\)' 2>/dev/null ||
9929echo X"$ac_dest" |
9930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9932 /^X\(\/\/\)$/{ s//\1/; q; }
9933 /^X\(\/\).*/{ s//\1/; q; }
9934 s/.*/./; q'`
9935 { if $as_mkdir_p; then
9936 mkdir -p "$ac_dir"
9937 else
9938 as_dir="$ac_dir"
9939 as_dirs=
9940 while test ! -d "$as_dir"; do
9941 as_dirs="$as_dir $as_dirs"
9942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9944 X"$as_dir" : 'X\(//\)[^/]' \| \
9945 X"$as_dir" : 'X\(//\)$' \| \
9946 X"$as_dir" : 'X\(/\)' \| \
9947 . : '\(.\)' 2>/dev/null ||
9948echo X"$as_dir" |
9949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9951 /^X\(\/\/\)$/{ s//\1/; q; }
9952 /^X\(\/\).*/{ s//\1/; q; }
9953 s/.*/./; q'`
9954 done
9955 test ! -n "$as_dirs" || mkdir $as_dirs
9956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9957echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9958 { (exit 1); exit 1; }; }; }
9959
9960 ac_builddir=.
9961
9962if test "$ac_dir" != .; then
9963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9964 # A "../" for each directory in $ac_dir_suffix.
9965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9966else
9967 ac_dir_suffix= ac_top_builddir=
9968fi
9969
9970case $srcdir in
9971 .) # No --srcdir option. We are building in place.
9972 ac_srcdir=.
9973 if test -z "$ac_top_builddir"; then
9974 ac_top_srcdir=.
9975 else
9976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9977 fi ;;
9978 [\\/]* | ?:[\\/]* ) # Absolute path.
9979 ac_srcdir=$srcdir$ac_dir_suffix;
9980 ac_top_srcdir=$srcdir ;;
9981 *) # Relative path.
9982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9984esac
9985
9986# Do not use `cd foo && pwd` to compute absolute paths, because
9987# the directories may not exist.
9988case `pwd` in
9989.) ac_abs_builddir="$ac_dir";;
9990*)
9991 case "$ac_dir" in
9992 .) ac_abs_builddir=`pwd`;;
9993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9995 esac;;
9996esac
9997case $ac_abs_builddir in
9998.) ac_abs_top_builddir=${ac_top_builddir}.;;
9999*)
10000 case ${ac_top_builddir}. in
10001 .) ac_abs_top_builddir=$ac_abs_builddir;;
10002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10004 esac;;
10005esac
10006case $ac_abs_builddir in
10007.) ac_abs_srcdir=$ac_srcdir;;
10008*)
10009 case $ac_srcdir in
10010 .) ac_abs_srcdir=$ac_abs_builddir;;
10011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10013 esac;;
10014esac
10015case $ac_abs_builddir in
10016.) ac_abs_top_srcdir=$ac_top_srcdir;;
10017*)
10018 case $ac_top_srcdir in
10019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10022 esac;;
10023esac
10024
c906108c 10025
b7026657
AC
10026 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10027echo "$as_me: executing $ac_dest commands" >&6;}
10028 case $ac_dest in
10029 default ) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;;
10030 esac
10031done
10032_ACEOF
c906108c 10033
b7026657
AC
10034cat >>$CONFIG_STATUS <<\_ACEOF
10035
10036{ (exit 0); exit 0; }
10037_ACEOF
c906108c 10038chmod +x $CONFIG_STATUS
b7026657
AC
10039ac_clean_files=$ac_clean_files_save
10040
10041
10042# configure is writing to config.log, and then calls config.status.
10043# config.status does its own redirection, appending to config.log.
10044# Unfortunately, on DOS this fails, as config.log is still kept open
10045# by configure, so config.status won't be able to write to it; its
10046# output is simply discarded. So we exec the FD to /dev/null,
10047# effectively closing config.log, so it can be properly (re)opened and
10048# appended to by config.status. When coming back to configure, we
10049# need to make the FD available again.
10050if test "$no_create" != yes; then
10051 ac_cs_success=:
10052 ac_config_status_args=
10053 test "$silent" = yes &&
10054 ac_config_status_args="$ac_config_status_args --quiet"
10055 exec 5>/dev/null
10056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10057 exec 5>>config.log
10058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10059 # would make configure fail if this is the last instruction.
10060 $ac_cs_success || { (exit 1); exit 1; }
10061fi
c906108c 10062
This page took 0.732548 seconds and 4 git commands to generate.