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