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