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