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