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