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