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