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