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