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