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