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