Richard Earnshaw <rearnsha@arm.com>
[deliverable/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=
2706if test -f ../intl/config.intl; then
2707 . ../intl/config.intl
2708fi
2709echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2710echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2711if test x"$USE_NLS" != xyes; then
2712 echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6
2714else
2715 echo "$as_me:$LINENO: result: yes" >&5
2716echo "${ECHO_T}yes" >&6
2717
2718cat >>confdefs.h <<\_ACEOF
2719#define ENABLE_NLS 1
2720_ACEOF
2721
2722
2723 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2724echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2725 # Look for .po and .gmo files in the source directory.
2726 CATALOGS=
2727 XLINGUAS=
2728 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2729 # If there aren't any .gmo files the shell will give us the
2730 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2731 # weeded out.
2732 case "$cat" in *\**)
2733 continue;;
2734 esac
2735 # The quadruple backslash is collapsed to a double backslash
2736 # by the backticks, then collapsed again by the double quotes,
2737 # leaving us with one backslash in the sed expression (right
2738 # before the dot that mustn't act as a wildcard).
2739 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2740 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2741 # The user is allowed to set LINGUAS to a list of languages to
2742 # install catalogs for. If it's empty that means "all of them."
2743 if test "x$LINGUAS" = x; then
2744 CATALOGS="$CATALOGS $cat"
2745 XLINGUAS="$XLINGUAS $lang"
2746 else
2747 case "$LINGUAS" in *$lang*)
2748 CATALOGS="$CATALOGS $cat"
2749 XLINGUAS="$XLINGUAS $lang"
2750 ;;
2751 esac
2752 fi
2753 done
2754 LINGUAS="$XLINGUAS"
2755 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2756echo "${ECHO_T}$LINGUAS" >&6
2757
2758
2759 DATADIRNAME=share
2760
2761 INSTOBJEXT=.mo
2762
2763 GENCAT=gencat
2764
2765 CATOBJEXT=.gmo
2766
2767fi
35695fd6 2768
20e95c23
DJ
2769# Check for common headers.
2770# FIXME: Seems to me this can cause problems for i386-windows hosts.
2771# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
35695fd6
AC
2772
2773ac_ext=c
2774ac_cpp='$CPP $CPPFLAGS'
2775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2779echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2780# On Suns, sometimes $CPP names a directory.
2781if test -n "$CPP" && test -d "$CPP"; then
2782 CPP=
2783fi
2784if test -z "$CPP"; then
2785 if test "${ac_cv_prog_CPP+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787else
2788 # Double quotes because CPP needs to be expanded
2789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2790 do
2791 ac_preproc_ok=false
2792for ac_c_preproc_warn_flag in '' yes
2793do
2794 # Use a header file that comes with gcc, so configuring glibc
2795 # with a fresh cross-compiler works.
2796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2797 # <limits.h> exists even on freestanding compilers.
2798 # On the NeXT, cc -E runs the code through the compiler's parser,
2799 # not just through cpp. "Syntax error" is here to catch this case.
2800 cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h. */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h. */
2806#ifdef __STDC__
2807# include <limits.h>
2808#else
2809# include <assert.h>
2810#endif
2811 Syntax error
2812_ACEOF
2813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } >/dev/null; then
2821 if test -s conftest.err; then
2822 ac_cpp_err=$ac_c_preproc_warn_flag
2823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2824 else
2825 ac_cpp_err=
2826 fi
2827else
2828 ac_cpp_err=yes
2829fi
2830if test -z "$ac_cpp_err"; then
2831 :
2832else
2833 echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 # Broken: fails on valid input.
2837continue
2838fi
2839rm -f conftest.err conftest.$ac_ext
2840
2841 # OK, works on sane cases. Now check whether non-existent headers
2842 # can be detected and how.
2843 cat >conftest.$ac_ext <<_ACEOF
2844/* confdefs.h. */
2845_ACEOF
2846cat confdefs.h >>conftest.$ac_ext
2847cat >>conftest.$ac_ext <<_ACEOF
2848/* end confdefs.h. */
2849#include <ac_nonexistent.h>
2850_ACEOF
2851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2858 (exit $ac_status); } >/dev/null; then
2859 if test -s conftest.err; then
2860 ac_cpp_err=$ac_c_preproc_warn_flag
2861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2862 else
2863 ac_cpp_err=
2864 fi
2865else
2866 ac_cpp_err=yes
2867fi
2868if test -z "$ac_cpp_err"; then
2869 # Broken: success on invalid input.
2870continue
c906108c 2871else
b7026657
AC
2872 echo "$as_me: failed program was:" >&5
2873sed 's/^/| /' conftest.$ac_ext >&5
2874
f0569246
AC
2875 # Passes both tests.
2876ac_preproc_ok=:
2877break
c906108c 2878fi
f0569246
AC
2879rm -f conftest.err conftest.$ac_ext
2880
2881done
2882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2883rm -f conftest.err conftest.$ac_ext
2884if $ac_preproc_ok; then
2885 break
c906108c 2886fi
c906108c 2887
f0569246
AC
2888 done
2889 ac_cv_prog_CPP=$CPP
2890
2891fi
2892 CPP=$ac_cv_prog_CPP
c906108c 2893else
f0569246
AC
2894 ac_cv_prog_CPP=$CPP
2895fi
2896echo "$as_me:$LINENO: result: $CPP" >&5
2897echo "${ECHO_T}$CPP" >&6
2898ac_preproc_ok=false
2899for ac_c_preproc_warn_flag in '' yes
2900do
2901 # Use a header file that comes with gcc, so configuring glibc
2902 # with a fresh cross-compiler works.
2903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2904 # <limits.h> exists even on freestanding compilers.
2905 # On the NeXT, cc -E runs the code through the compiler's parser,
2906 # not just through cpp. "Syntax error" is here to catch this case.
2907 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
f0569246
AC
2913#ifdef __STDC__
2914# include <limits.h>
2915#else
2916# include <assert.h>
b7026657 2917#endif
f0569246 2918 Syntax error
b7026657 2919_ACEOF
f0569246
AC
2920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2927 (exit $ac_status); } >/dev/null; then
2928 if test -s conftest.err; then
2929 ac_cpp_err=$ac_c_preproc_warn_flag
2930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2931 else
2932 ac_cpp_err=
2933 fi
2934else
2935 ac_cpp_err=yes
2936fi
2937if test -z "$ac_cpp_err"; then
2938 :
b7026657
AC
2939else
2940 echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
f0569246
AC
2943 # Broken: fails on valid input.
2944continue
b7026657 2945fi
f0569246
AC
2946rm -f conftest.err conftest.$ac_ext
2947
2948 # OK, works on sane cases. Now check whether non-existent headers
2949 # can be detected and how.
b7026657
AC
2950 cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h. */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h. */
f0569246 2956#include <ac_nonexistent.h>
b7026657 2957_ACEOF
f0569246
AC
2958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2965 (exit $ac_status); } >/dev/null; then
2966 if test -s conftest.err; then
2967 ac_cpp_err=$ac_c_preproc_warn_flag
2968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2969 else
2970 ac_cpp_err=
2971 fi
2972else
2973 ac_cpp_err=yes
2974fi
2975if test -z "$ac_cpp_err"; then
2976 # Broken: success on invalid input.
2977continue
c906108c 2978else
b7026657
AC
2979 echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
f0569246
AC
2982 # Passes both tests.
2983ac_preproc_ok=:
2984break
c906108c 2985fi
f0569246 2986rm -f conftest.err conftest.$ac_ext
c906108c 2987
f0569246
AC
2988done
2989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2990rm -f conftest.err conftest.$ac_ext
2991if $ac_preproc_ok; then
2992 :
c906108c 2993else
f0569246
AC
2994 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2995See \`config.log' for more details." >&5
2996echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2997See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
c906108c 2999fi
b7026657 3000
f0569246
AC
3001ac_ext=c
3002ac_cpp='$CPP $CPPFLAGS'
3003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006
3007
3008echo "$as_me:$LINENO: checking for egrep" >&5
3009echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3010if test "${ac_cv_prog_egrep+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3014 then ac_cv_prog_egrep='grep -E'
3015 else ac_cv_prog_egrep='egrep'
3016 fi
3017fi
3018echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3019echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3020 EGREP=$ac_cv_prog_egrep
3021
3022
3023echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3024echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3025if test "${ac_cv_header_stdc+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027else
3028 cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
3034#include <stdlib.h>
3035#include <stdarg.h>
3036#include <string.h>
3037#include <float.h>
c906108c 3038
b7026657
AC
3039int
3040main ()
3041{
f0569246 3042
b7026657
AC
3043 ;
3044 return 0;
3045}
3046_ACEOF
f0569246
AC
3047rm -f conftest.$ac_objext
3048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>conftest.er1
b7026657
AC
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
40a5538e
CF
3056 { ac_try='test -z "$ac_c_werror_flag"
3057 || test ! -s conftest.err'
b7026657
AC
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 (eval $ac_try) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
f0569246 3063 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 (eval $ac_try) 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
f0569246 3069 ac_cv_header_stdc=yes
b7026657
AC
3070else
3071 echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
f0569246 3074ac_cv_header_stdc=no
b7026657 3075fi
f0569246 3076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3077
f0569246
AC
3078if test $ac_cv_header_stdc = yes; then
3079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3080 cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086#include <string.h>
c906108c 3087
f0569246
AC
3088_ACEOF
3089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3090 $EGREP "memchr" >/dev/null 2>&1; then
3091 :
c906108c 3092else
f0569246 3093 ac_cv_header_stdc=no
c906108c 3094fi
f0569246 3095rm -f conftest*
b7026657 3096
c906108c
SS
3097fi
3098
f0569246
AC
3099if test $ac_cv_header_stdc = yes; then
3100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107#include <stdlib.h>
3108
3109_ACEOF
3110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3111 $EGREP "free" >/dev/null 2>&1; then
3112 :
c906108c 3113else
f0569246 3114 ac_cv_header_stdc=no
c906108c 3115fi
f0569246
AC
3116rm -f conftest*
3117
c906108c
SS
3118fi
3119
f0569246
AC
3120if test $ac_cv_header_stdc = yes; then
3121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3122 if test "$cross_compiling" = yes; then
3123 :
3124else
3125 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3126/* confdefs.h. */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h. */
f0569246
AC
3131#include <ctype.h>
3132#if ((' ' & 0x0FF) == 0x020)
3133# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3134# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3135#else
3136# define ISLOWER(c) \
3137 (('a' <= (c) && (c) <= 'i') \
3138 || ('j' <= (c) && (c) <= 'r') \
3139 || ('s' <= (c) && (c) <= 'z'))
3140# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3141#endif
c906108c 3142
f0569246 3143#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3144int
3145main ()
3146{
f0569246
AC
3147 int i;
3148 for (i = 0; i < 256; i++)
3149 if (XOR (islower (i), ISLOWER (i))
3150 || toupper (i) != TOUPPER (i))
3151 exit(2);
3152 exit (0);
b7026657
AC
3153}
3154_ACEOF
f0569246 3155rm -f conftest$ac_exeext
b7026657 3156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f0569246 3157 (eval $ac_link) 2>&5
b7026657
AC
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246 3160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 (eval $ac_try) 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
f0569246 3166 :
c906108c 3167else
f0569246
AC
3168 echo "$as_me: program exited with status $ac_status" >&5
3169echo "$as_me: failed program was:" >&5
b7026657
AC
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
f0569246
AC
3172( exit $ac_status )
3173ac_cv_header_stdc=no
c906108c 3174fi
f0569246 3175rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3176fi
c906108c 3177fi
c906108c 3178fi
f0569246
AC
3179echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3180echo "${ECHO_T}$ac_cv_header_stdc" >&6
3181if test $ac_cv_header_stdc = yes; then
b7026657 3182
f0569246
AC
3183cat >>confdefs.h <<\_ACEOF
3184#define STDC_HEADERS 1
3185_ACEOF
c906108c 3186
c906108c
SS
3187fi
3188
f0569246 3189# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657
AC
3190
3191
3192
3193
3194
3195
3196
c906108c 3197
c906108c 3198
35695fd6
AC
3199for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3200 inttypes.h stdint.h unistd.h
3201do
3202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3203echo "$as_me:$LINENO: checking for $ac_header" >&5
3204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3205if eval "test \"\${$as_ac_Header+set}\" = set"; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 cat >conftest.$ac_ext <<_ACEOF
3209/* confdefs.h. */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h. */
3214$ac_includes_default
3215
3216#include <$ac_header>
3217_ACEOF
3218rm -f conftest.$ac_objext
3219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
40a5538e
CF
3227 { ac_try='test -z "$ac_c_werror_flag"
3228 || test ! -s conftest.err'
35695fd6
AC
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 eval "$as_ac_Header=yes"
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245eval "$as_ac_Header=no"
3246fi
3247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248fi
3249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3251if test `eval echo '${'$as_ac_Header'}'` = yes; then
3252 cat >>confdefs.h <<_ACEOF
3253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3254_ACEOF
3255
3256fi
3257
3258done
3259
3260
b7026657
AC
3261
3262
3263
3264
3265
3266for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 3267do
b7026657
AC
3268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3269if eval "test \"\${$as_ac_Header+set}\" = set"; then
3270 echo "$as_me:$LINENO: checking for $ac_header" >&5
3271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3272if eval "test \"\${$as_ac_Header+set}\" = set"; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274fi
3275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3277else
3278 # Is the header compilable?
3279echo "$as_me:$LINENO: checking $ac_header usability" >&5
3280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3281cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
3287$ac_includes_default
3288#include <$ac_header>
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
40a5538e
CF
3299 { ac_try='test -z "$ac_c_werror_flag"
3300 || test ! -s conftest.err'
b7026657
AC
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest.$ac_objext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 ac_header_compiler=yes
3313else
3314 echo "$as_me: failed program was:" >&5
3315sed 's/^/| /' conftest.$ac_ext >&5
3316
3317ac_header_compiler=no
3318fi
3319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3321echo "${ECHO_T}$ac_header_compiler" >&6
3322
3323# Is the header present?
3324echo "$as_me:$LINENO: checking $ac_header presence" >&5
3325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3326cat >conftest.$ac_ext <<_ACEOF
3327/* confdefs.h. */
3328_ACEOF
3329cat confdefs.h >>conftest.$ac_ext
3330cat >>conftest.$ac_ext <<_ACEOF
3331/* end confdefs.h. */
3332#include <$ac_header>
3333_ACEOF
3334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } >/dev/null; then
3342 if test -s conftest.err; then
3343 ac_cpp_err=$ac_c_preproc_warn_flag
3344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3345 else
3346 ac_cpp_err=
3347 fi
3348else
3349 ac_cpp_err=yes
c906108c 3350fi
b7026657
AC
3351if test -z "$ac_cpp_err"; then
3352 ac_header_preproc=yes
3353else
3354 echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 ac_header_preproc=no
c906108c 3358fi
b7026657
AC
3359rm -f conftest.err conftest.$ac_ext
3360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3361echo "${ECHO_T}$ac_header_preproc" >&6
3362
3363# So? What about this header?
3364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3365 yes:no: )
3366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3370 ac_header_preproc=yes
3371 ;;
3372 no:yes:* )
3373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3385 (
3386 cat <<\_ASBOX
3387## ------------------------------------------ ##
3388## Report this to the AC_PACKAGE_NAME lists. ##
3389## ------------------------------------------ ##
3390_ASBOX
3391 ) |
3392 sed "s/^/$as_me: WARNING: /" >&2
3393 ;;
3394esac
3395echo "$as_me:$LINENO: checking for $ac_header" >&5
3396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3397if eval "test \"\${$as_ac_Header+set}\" = set"; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3399else
b7026657
AC
3400 eval "$as_ac_Header=\$ac_header_preproc"
3401fi
3402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3404
3405fi
3406if test `eval echo '${'$as_ac_Header'}'` = yes; then
3407 cat >>confdefs.h <<_ACEOF
3408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3409_ACEOF
3410
c906108c 3411fi
b7026657 3412
c906108c
SS
3413done
3414
b7026657
AC
3415
3416
3417for ac_header in sys/time.h sys/resource.h
c906108c 3418do
b7026657
AC
3419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3420if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421 echo "$as_me:$LINENO: checking for $ac_header" >&5
3422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3423if eval "test \"\${$as_ac_Header+set}\" = set"; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425fi
3426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428else
3429 # Is the header compilable?
3430echo "$as_me:$LINENO: checking $ac_header usability" >&5
3431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3432cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */
3438$ac_includes_default
3439#include <$ac_header>
3440_ACEOF
3441rm -f conftest.$ac_objext
3442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
40a5538e
CF
3450 { ac_try='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
b7026657
AC
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_header_compiler=yes
3464else
3465 echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468ac_header_compiler=no
3469fi
3470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3472echo "${ECHO_T}$ac_header_compiler" >&6
3473
3474# Is the header present?
3475echo "$as_me:$LINENO: checking $ac_header presence" >&5
3476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3477cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h. */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h. */
3483#include <$ac_header>
3484_ACEOF
3485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } >/dev/null; then
3493 if test -s conftest.err; then
3494 ac_cpp_err=$ac_c_preproc_warn_flag
3495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3496 else
3497 ac_cpp_err=
3498 fi
3499else
3500 ac_cpp_err=yes
c906108c 3501fi
b7026657
AC
3502if test -z "$ac_cpp_err"; then
3503 ac_header_preproc=yes
3504else
3505 echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 ac_header_preproc=no
c906108c 3509fi
b7026657
AC
3510rm -f conftest.err conftest.$ac_ext
3511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3512echo "${ECHO_T}$ac_header_preproc" >&6
3513
3514# So? What about this header?
3515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3516 yes:no: )
3517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3521 ac_header_preproc=yes
3522 ;;
3523 no:yes:* )
3524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3536 (
3537 cat <<\_ASBOX
3538## ------------------------------------------ ##
3539## Report this to the AC_PACKAGE_NAME lists. ##
3540## ------------------------------------------ ##
3541_ASBOX
3542 ) |
3543 sed "s/^/$as_me: WARNING: /" >&2
3544 ;;
3545esac
3546echo "$as_me:$LINENO: checking for $ac_header" >&5
3547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3548if eval "test \"\${$as_ac_Header+set}\" = set"; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3550else
b7026657 3551 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 3552fi
b7026657
AC
3553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3555
3556fi
3557if test `eval echo '${'$as_ac_Header'}'` = yes; then
3558 cat >>confdefs.h <<_ACEOF
3559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3560_ACEOF
3561
3562fi
3563
c906108c
SS
3564done
3565
b7026657
AC
3566
3567
3568for ac_header in fcntl.h fpu_control.h
c906108c 3569do
b7026657
AC
3570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3571if eval "test \"\${$as_ac_Header+set}\" = set"; then
3572 echo "$as_me:$LINENO: checking for $ac_header" >&5
3573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3574if eval "test \"\${$as_ac_Header+set}\" = set"; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576fi
3577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3579else
3580 # Is the header compilable?
3581echo "$as_me:$LINENO: checking $ac_header usability" >&5
3582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3583cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589$ac_includes_default
3590#include <$ac_header>
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
40a5538e
CF
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
b7026657
AC
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_header_compiler=yes
3615else
3616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
3619ac_header_compiler=no
3620fi
3621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3623echo "${ECHO_T}$ac_header_compiler" >&6
3624
3625# Is the header present?
3626echo "$as_me:$LINENO: checking $ac_header presence" >&5
3627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3628cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h. */
3634#include <$ac_header>
3635_ACEOF
3636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev/null; then
3644 if test -s conftest.err; then
3645 ac_cpp_err=$ac_c_preproc_warn_flag
3646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3647 else
3648 ac_cpp_err=
3649 fi
3650else
3651 ac_cpp_err=yes
c906108c 3652fi
b7026657
AC
3653if test -z "$ac_cpp_err"; then
3654 ac_header_preproc=yes
3655else
3656 echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 ac_header_preproc=no
c906108c 3660fi
b7026657
AC
3661rm -f conftest.err conftest.$ac_ext
3662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3663echo "${ECHO_T}$ac_header_preproc" >&6
3664
3665# So? What about this header?
3666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3667 yes:no: )
3668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3672 ac_header_preproc=yes
3673 ;;
3674 no:yes:* )
3675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3687 (
3688 cat <<\_ASBOX
3689## ------------------------------------------ ##
3690## Report this to the AC_PACKAGE_NAME lists. ##
3691## ------------------------------------------ ##
3692_ASBOX
3693 ) |
3694 sed "s/^/$as_me: WARNING: /" >&2
3695 ;;
3696esac
3697echo "$as_me:$LINENO: checking for $ac_header" >&5
3698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3699if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3701else
b7026657
AC
3702 eval "$as_ac_Header=\$ac_header_preproc"
3703fi
3704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3706
3707fi
3708if test `eval echo '${'$as_ac_Header'}'` = yes; then
3709 cat >>confdefs.h <<_ACEOF
3710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3711_ACEOF
3712
c906108c 3713fi
b7026657 3714
c906108c
SS
3715done
3716
b7026657
AC
3717
3718
3719
3720for ac_header in dlfcn.h errno.h sys/stat.h
c906108c 3721do
b7026657
AC
3722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3723if eval "test \"\${$as_ac_Header+set}\" = set"; then
3724 echo "$as_me:$LINENO: checking for $ac_header" >&5
3725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3726if eval "test \"\${$as_ac_Header+set}\" = set"; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728fi
3729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3731else
3732 # Is the header compilable?
3733echo "$as_me:$LINENO: checking $ac_header usability" >&5
3734echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3735cat >conftest.$ac_ext <<_ACEOF
3736/* confdefs.h. */
3737_ACEOF
3738cat confdefs.h >>conftest.$ac_ext
3739cat >>conftest.$ac_ext <<_ACEOF
3740/* end confdefs.h. */
3741$ac_includes_default
3742#include <$ac_header>
3743_ACEOF
3744rm -f conftest.$ac_objext
3745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
40a5538e
CF
3753 { ac_try='test -z "$ac_c_werror_flag"
3754 || test ! -s conftest.err'
b7026657
AC
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 ac_header_compiler=yes
3767else
3768 echo "$as_me: failed program was:" >&5
3769sed 's/^/| /' conftest.$ac_ext >&5
3770
3771ac_header_compiler=no
3772fi
3773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3775echo "${ECHO_T}$ac_header_compiler" >&6
3776
3777# Is the header present?
3778echo "$as_me:$LINENO: checking $ac_header presence" >&5
3779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3780cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h. */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h. */
3786#include <$ac_header>
3787_ACEOF
3788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } >/dev/null; then
3796 if test -s conftest.err; then
3797 ac_cpp_err=$ac_c_preproc_warn_flag
3798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3799 else
3800 ac_cpp_err=
3801 fi
3802else
3803 ac_cpp_err=yes
c906108c 3804fi
b7026657
AC
3805if test -z "$ac_cpp_err"; then
3806 ac_header_preproc=yes
3807else
3808 echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 ac_header_preproc=no
c906108c 3812fi
b7026657
AC
3813rm -f conftest.err conftest.$ac_ext
3814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3815echo "${ECHO_T}$ac_header_preproc" >&6
3816
3817# So? What about this header?
3818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3819 yes:no: )
3820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3824 ac_header_preproc=yes
3825 ;;
3826 no:yes:* )
3827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3834echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3839 (
3840 cat <<\_ASBOX
3841## ------------------------------------------ ##
3842## Report this to the AC_PACKAGE_NAME lists. ##
3843## ------------------------------------------ ##
3844_ASBOX
3845 ) |
3846 sed "s/^/$as_me: WARNING: /" >&2
3847 ;;
3848esac
3849echo "$as_me:$LINENO: checking for $ac_header" >&5
3850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3851if eval "test \"\${$as_ac_Header+set}\" = set"; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3853else
b7026657
AC
3854 eval "$as_ac_Header=\$ac_header_preproc"
3855fi
3856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3858
3859fi
3860if test `eval echo '${'$as_ac_Header'}'` = yes; then
3861 cat >>confdefs.h <<_ACEOF
3862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3863_ACEOF
3864
c906108c 3865fi
b7026657 3866
c906108c
SS
3867done
3868
b7026657
AC
3869
3870
3871
3872
c906108c
SS
3873for ac_func in getrusage time sigaction __setfpucw
3874do
b7026657
AC
3875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3876echo "$as_me:$LINENO: checking for $ac_func" >&5
3877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3878if eval "test \"\${$as_ac_var+set}\" = set"; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h. */
3887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3889#define $ac_func innocuous_$ac_func
3890
c906108c 3891/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
3892 which can conflict with char $ac_func (); below.
3893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 <limits.h> exists even on freestanding compilers. */
3895
3896#ifdef __STDC__
3897# include <limits.h>
3898#else
3899# include <assert.h>
3900#endif
c906108c 3901
b7026657 3902#undef $ac_func
c906108c 3903
b7026657
AC
3904/* Override any gcc2 internal prototype to avoid an error. */
3905#ifdef __cplusplus
3906extern "C"
3907{
3908#endif
3909/* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3911char $ac_func ();
c906108c
SS
3912/* The GNU C library defines this for functions which it implements
3913 to always fail with ENOSYS. Some functions are actually named
3914 something starting with __ and the normal name is an alias. */
3915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3916choke me
3917#else
b7026657
AC
3918char (*f) () = $ac_func;
3919#endif
3920#ifdef __cplusplus
3921}
c906108c
SS
3922#endif
3923
b7026657
AC
3924int
3925main ()
3926{
3927return f != $ac_func;
3928 ;
3929 return 0;
3930}
3931_ACEOF
3932rm -f conftest.$ac_objext conftest$ac_exeext
3933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
40a5538e
CF
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
b7026657
AC
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 eval "$as_ac_var=yes"
3955else
3956 echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959eval "$as_ac_var=no"
3960fi
3961rm -f conftest.err conftest.$ac_objext \
3962 conftest$ac_exeext conftest.$ac_ext
3963fi
3964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3966if test `eval echo '${'$as_ac_var'}'` = yes; then
3967 cat >>confdefs.h <<_ACEOF
3968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3969_ACEOF
c906108c 3970
c906108c
SS
3971fi
3972done
3973
3974
3975# Check for socket libraries
b7026657
AC
3976
3977echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3978echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3979if test "${ac_cv_lib_socket_bind+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3981else
b7026657 3982 ac_check_lib_save_LIBS=$LIBS
c906108c 3983LIBS="-lsocket $LIBS"
b7026657
AC
3984cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h. */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h. */
3990
c906108c 3991/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
3992#ifdef __cplusplus
3993extern "C"
3994#endif
c906108c 3995/* We use char because int might match the return type of a gcc2
b7026657
AC
3996 builtin and then its argument prototype would still apply. */
3997char bind ();
3998int
3999main ()
4000{
4001bind ();
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008 (eval $ac_link) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
40a5538e
CF
4015 { ac_try='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
b7026657
AC
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest$ac_exeext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_lib_socket_bind=yes
4029else
4030 echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033ac_cv_lib_socket_bind=no
4034fi
4035rm -f conftest.err conftest.$ac_objext \
4036 conftest$ac_exeext conftest.$ac_ext
4037LIBS=$ac_check_lib_save_LIBS
4038fi
4039echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4040echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4041if test $ac_cv_lib_socket_bind = yes; then
4042 cat >>confdefs.h <<_ACEOF
4043#define HAVE_LIBSOCKET 1
4044_ACEOF
c906108c
SS
4045
4046 LIBS="-lsocket $LIBS"
4047
c906108c
SS
4048fi
4049
b7026657
AC
4050
4051echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4052echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4053if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4055else
b7026657 4056 ac_check_lib_save_LIBS=$LIBS
c906108c 4057LIBS="-lnsl $LIBS"
b7026657
AC
4058cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h. */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h. */
4064
c906108c 4065/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4066#ifdef __cplusplus
4067extern "C"
4068#endif
c906108c 4069/* We use char because int might match the return type of a gcc2
b7026657
AC
4070 builtin and then its argument prototype would still apply. */
4071char gethostbyname ();
4072int
4073main ()
4074{
4075gethostbyname ();
4076 ;
4077 return 0;
4078}
4079_ACEOF
4080rm -f conftest.$ac_objext conftest$ac_exeext
4081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4082 (eval $ac_link) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } &&
40a5538e
CF
4089 { ac_try='test -z "$ac_c_werror_flag"
4090 || test ! -s conftest.err'
b7026657
AC
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest$ac_exeext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_lib_nsl_gethostbyname=yes
4103else
4104 echo "$as_me: failed program was:" >&5
4105sed 's/^/| /' conftest.$ac_ext >&5
4106
4107ac_cv_lib_nsl_gethostbyname=no
4108fi
4109rm -f conftest.err conftest.$ac_objext \
4110 conftest$ac_exeext conftest.$ac_ext
4111LIBS=$ac_check_lib_save_LIBS
4112fi
4113echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4114echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4115if test $ac_cv_lib_nsl_gethostbyname = yes; then
4116 cat >>confdefs.h <<_ACEOF
4117#define HAVE_LIBNSL 1
4118_ACEOF
c906108c
SS
4119
4120 LIBS="-lnsl $LIBS"
4121
c906108c
SS
4122fi
4123
4124
4125. ${srcdir}/../../bfd/configure.host
4126
4127
4128
4129USE_MAINTAINER_MODE=no
4130# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4131if test "${enable_maintainer_mode+set}" = set; then
4132 enableval="$enable_maintainer_mode"
4133 case "${enableval}" in
4134 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4135 no) MAINT="#" ;;
b7026657
AC
4136 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4137echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4138 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
4139esac
4140if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4141 echo "Setting maintainer mode" 6>&1
4142fi
4143else
4144 MAINT="#"
b7026657 4145fi;
c906108c
SS
4146
4147
4148# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4149if test "${enable_sim_bswap+set}" = set; then
4150 enableval="$enable_sim_bswap"
4151 case "${enableval}" in
4152 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4153 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
4154 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4155echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4156 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
4157esac
4158if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4159 echo "Setting bswap flags = $sim_bswap" 6>&1
4160fi
4161else
4162 sim_bswap=""
b7026657 4163fi;
c906108c
SS
4164
4165
4166# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4167if test "${enable_sim_cflags+set}" = set; then
4168 enableval="$enable_sim_cflags"
4169 case "${enableval}" in
4170 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
4171 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4172echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4173 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
4174 no) sim_cflags="";;
4175 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4176esac
4177if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4178 echo "Setting sim cflags = $sim_cflags" 6>&1
4179fi
4180else
4181 sim_cflags=""
b7026657 4182fi;
c906108c
SS
4183
4184
4185# Check whether --enable-sim-debug or --disable-sim-debug was given.
4186if test "${enable_sim_debug+set}" = set; then
4187 enableval="$enable_sim_debug"
4188 case "${enableval}" in
4189 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4190 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4191 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4192esac
4193if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4194 echo "Setting sim debug = $sim_debug" 6>&1
4195fi
4196else
4197 sim_debug=""
b7026657 4198fi;
c906108c
SS
4199
4200
4201# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4202if test "${enable_sim_stdio+set}" = set; then
4203 enableval="$enable_sim_stdio"
4204 case "${enableval}" in
4205 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4206 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
4207 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4208echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4209 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
4210esac
4211if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4212 echo "Setting stdio flags = $sim_stdio" 6>&1
4213fi
4214else
b7026657
AC
4215 sim_stdio=""
4216fi;
c906108c
SS
4217
4218
4219# Check whether --enable-sim-trace or --disable-sim-trace was given.
4220if test "${enable_sim_trace+set}" = set; then
4221 enableval="$enable_sim_trace"
4222 case "${enableval}" in
4223 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4224 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4225 [-0-9]*)
4226 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4227 [a-z]*)
4228 sim_trace=""
4229 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4230 if test x"$sim_trace" = x; then
4231 sim_trace="-DWITH_TRACE='(TRACE_$x"
4232 else
4233 sim_trace="${sim_trace}|TRACE_$x"
4234 fi
4235 done
4236 sim_trace="$sim_trace)'" ;;
4237esac
4238if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4239 echo "Setting sim trace = $sim_trace" 6>&1
4240fi
4241else
4242 sim_trace=""
b7026657 4243fi;
c906108c
SS
4244
4245
4246# Check whether --enable-sim-profile or --disable-sim-profile was given.
4247if test "${enable_sim_profile+set}" = set; then
4248 enableval="$enable_sim_profile"
4249 case "${enableval}" in
4250 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4251 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4252 [-0-9]*)
4253 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4254 [a-z]*)
4255 sim_profile=""
4256 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4257 if test x"$sim_profile" = x; then
4258 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4259 else
4260 sim_profile="${sim_profile}|PROFILE_$x"
4261 fi
4262 done
4263 sim_profile="$sim_profile)'" ;;
4264esac
4265if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4266 echo "Setting sim profile = $sim_profile" 6>&1
4267fi
4268else
eb2d80b4 4269 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 4270fi;
c906108c
SS
4271
4272
b7026657
AC
4273echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4274echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4275if test "${ac_cv_type_signal+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4277else
b7026657
AC
4278 cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h. */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h. */
c906108c
SS
4284#include <sys/types.h>
4285#include <signal.h>
4286#ifdef signal
b7026657 4287# undef signal
c906108c
SS
4288#endif
4289#ifdef __cplusplus
4290extern "C" void (*signal (int, void (*)(int)))(int);
4291#else
4292void (*signal ()) ();
4293#endif
4294
b7026657
AC
4295int
4296main ()
4297{
c906108c 4298int i;
b7026657
AC
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext
4304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
40a5538e
CF
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
b7026657
AC
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
c906108c
SS
4325 ac_cv_type_signal=void
4326else
b7026657
AC
4327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330ac_cv_type_signal=int
c906108c 4331fi
b7026657 4332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4333fi
b7026657
AC
4334echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4335echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 4336
b7026657 4337cat >>confdefs.h <<_ACEOF
c906108c 4338#define RETSIGTYPE $ac_cv_type_signal
b7026657 4339_ACEOF
c906108c
SS
4340
4341
cd0fc7c3
SS
4342
4343
c906108c
SS
4344
4345sim_link_files=
4346sim_link_links=
4347
4348sim_link_links=tconfig.h
4349if test -f ${srcdir}/tconfig.in
4350then
4351 sim_link_files=tconfig.in
4352else
4353 sim_link_files=../common/tconfig.in
4354fi
4355
4356# targ-vals.def points to the libc macro description file.
4357case "${target}" in
4358*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4359esac
4360sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4361sim_link_links="${sim_link_links} targ-vals.def"
4362
c906108c
SS
4363
4364
4365default_sim_inline=""
4366# Check whether --enable-sim-inline or --disable-sim-inline was given.
4367if test "${enable_sim_inline+set}" = set; then
4368 enableval="$enable_sim_inline"
4369 sim_inline=""
4370case "$enableval" in
4371 no) sim_inline="-DDEFAULT_INLINE=0";;
4372 0) sim_inline="-DDEFAULT_INLINE=0";;
4373 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
4374 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
4375 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4376 new_flag=""
4377 case "$x" in
4378 *_INLINE=*) new_flag="-D$x";;
4379 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4380 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
4381 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
4382 esac
4383 if test x"$sim_inline" = x""; then
4384 sim_inline="$new_flag"
4385 else
4386 sim_inline="$sim_inline $new_flag"
4387 fi
4388 done;;
4389esac
4390if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4391 echo "Setting inline flags = $sim_inline" 6>&1
4392fi
4393else
b7026657 4394
c906108c
SS
4395if test "x$cross_compiling" = "xno"; then
4396 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
4397 sim_inline="${default_sim_inline}"
4398 if test x"$silent" != x"yes"; then
4399 echo "Setting inline flags = $sim_inline" 6>&1
4400 fi
4401 else
4402 sim_inline=""
4403 fi
4404else
4405 sim_inline="-DDEFAULT_INLINE=0"
4406fi
b7026657 4407fi;
c906108c
SS
4408wire_alignment="NONSTRICT_ALIGNMENT"
4409default_alignment=""
4410
4411# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4412if test "${enable_sim_alignment+set}" = set; then
4413 enableval="$enable_sim_alignment"
4414 case "${enableval}" in
4415 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4416 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4417 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4418 yes) if test x"$wire_alignment" != x; then
4419 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4420 else
4421 if test x"$default_alignment" != x; then
4422 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4423 else
4424 echo "No hard-wired alignment for target $target" 1>&6
4425 sim_alignment="-DWITH_ALIGNMENT=0"
4426 fi
4427 fi;;
4428 no) if test x"$default_alignment" != x; then
4429 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4430 else
4431 if test x"$wire_alignment" != x; then
4432 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4433 else
4434 echo "No default alignment for target $target" 1>&6
4435 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4436 fi
4437 fi;;
b7026657
AC
4438 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4439echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4440 { (exit 1); exit 1; }; }; sim_alignment="";;
c906108c
SS
4441esac
4442if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4443 echo "Setting alignment flags = $sim_alignment" 6>&1
4444fi
4445else
4446 if test x"$default_alignment" != x; then
4447 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4448else
4449 if test x"$wire_alignment" != x; then
4450 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4451 else
4452 sim_alignment=
4453 fi
4454fi
b7026657 4455fi;
c906108c
SS
4456
4457# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4458if test "${enable_sim_hostendian+set}" = set; then
4459 enableval="$enable_sim_hostendian"
4460 case "${enableval}" in
4461 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4462 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4463 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
b7026657
AC
4464 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4465echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4466 { (exit 1); exit 1; }; }; sim_hostendian="";;
c906108c
SS
4467esac
4468if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4469 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4470fi
4471else
b7026657 4472
c906108c 4473if test "x$cross_compiling" = "xno"; then
b7026657
AC
4474 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4475echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4476if test "${ac_cv_c_bigendian+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 # See if sys/param.h defines the BYTE_ORDER macro.
4480cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
c906108c
SS
4486#include <sys/types.h>
4487#include <sys/param.h>
c906108c 4488
b7026657
AC
4489int
4490main ()
4491{
c906108c
SS
4492#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4493 bogus endian macros
4494#endif
b7026657
AC
4495
4496 ;
4497 return 0;
4498}
4499_ACEOF
4500rm -f conftest.$ac_objext
4501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502 (eval $ac_compile) 2>conftest.er1
4503 ac_status=$?
4504 grep -v '^ *+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
40a5538e
CF
4509 { ac_try='test -z "$ac_c_werror_flag"
4510 || test ! -s conftest.err'
b7026657
AC
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; } &&
4516 { ac_try='test -s conftest.$ac_objext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
c906108c 4522 # It does; now see whether it defined to BIG_ENDIAN or not.
b7026657
AC
4523cat >conftest.$ac_ext <<_ACEOF
4524/* confdefs.h. */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */
c906108c
SS
4529#include <sys/types.h>
4530#include <sys/param.h>
c906108c 4531
b7026657
AC
4532int
4533main ()
4534{
c906108c
SS
4535#if BYTE_ORDER != BIG_ENDIAN
4536 not big endian
4537#endif
b7026657
AC
4538
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543rm -f conftest.$ac_objext
4544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
40a5538e
CF
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
b7026657
AC
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
c906108c
SS
4565 ac_cv_c_bigendian=yes
4566else
b7026657
AC
4567 echo "$as_me: failed program was:" >&5
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
4570ac_cv_c_bigendian=no
c906108c 4571fi
b7026657 4572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4573else
b7026657
AC
4574 echo "$as_me: failed program was:" >&5
4575sed 's/^/| /' conftest.$ac_ext >&5
4576
4577# It does not; compile a test program.
c906108c 4578if test "$cross_compiling" = yes; then
b7026657
AC
4579 # try to guess the endianness by grepping values into an object file
4580 ac_cv_c_bigendian=unknown
4581 cat >conftest.$ac_ext <<_ACEOF
4582/* confdefs.h. */
4583_ACEOF
4584cat confdefs.h >>conftest.$ac_ext
4585cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h. */
4587short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4588short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4589void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4590short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4591short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4592void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4593int
4594main ()
4595{
4596 _ascii (); _ebcdic ();
4597 ;
4598 return 0;
4599}
4600_ACEOF
4601rm -f conftest.$ac_objext
4602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
40a5538e
CF
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
b7026657
AC
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4624 ac_cv_c_bigendian=yes
4625fi
4626if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4627 if test "$ac_cv_c_bigendian" = unknown; then
4628 ac_cv_c_bigendian=no
4629 else
4630 # finding both strings is unlikely to happen, but who knows?
4631 ac_cv_c_bigendian=unknown
4632 fi
4633fi
4634else
4635 echo "$as_me: failed program was:" >&5
4636sed 's/^/| /' conftest.$ac_ext >&5
4637
4638fi
4639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4640else
b7026657
AC
4641 cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647int
4648main ()
4649{
c906108c
SS
4650 /* Are we little or big endian? From Harbison&Steele. */
4651 union
4652 {
4653 long l;
4654 char c[sizeof (long)];
4655 } u;
4656 u.l = 1;
4657 exit (u.c[sizeof (long) - 1] == 1);
4658}
b7026657
AC
4659_ACEOF
4660rm -f conftest$ac_exeext
4661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662 (eval $ac_link) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
c906108c
SS
4671 ac_cv_c_bigendian=no
4672else
b7026657
AC
4673 echo "$as_me: program exited with status $ac_status" >&5
4674echo "$as_me: failed program was:" >&5
4675sed 's/^/| /' conftest.$ac_ext >&5
4676
4677( exit $ac_status )
4678ac_cv_c_bigendian=yes
c906108c 4679fi
b7026657 4680rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 4681fi
c906108c 4682fi
b7026657 4683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4684fi
b7026657
AC
4685echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4686echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4687case $ac_cv_c_bigendian in
4688 yes)
c906108c 4689
b7026657 4690cat >>confdefs.h <<\_ACEOF
c906108c 4691#define WORDS_BIGENDIAN 1
b7026657
AC
4692_ACEOF
4693 ;;
4694 no)
4695 ;;
4696 *)
4697 { { echo "$as_me:$LINENO: error: unknown endianness
4698presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4699echo "$as_me: error: unknown endianness
4700presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4701 { (exit 1); exit 1; }; } ;;
4702esac
c906108c
SS
4703
4704 if test $ac_cv_c_bigendian = yes; then
4705 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4706 else
4707 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4708 fi
4709else
4710 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4711fi
b7026657 4712fi;
c906108c 4713
c8cca39f
AC
4714# NOTE: Don't add -Wall or -Wunused, they both include
4715# -Wunused-parameter which reports bogus warnings.
4716# NOTE: If you add to this list, remember to update
4717# gdb/doc/gdbint.texinfo.
4718build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
51216631
JB
4719-Wformat -Wparentheses -Wpointer-arith"
4720# GCC supports -Wuninitialized only with -O or -On, n != 0.
4721if test x${CFLAGS+set} = xset; then
4722 case "${CFLAGS}" in
4723 *"-O0"* ) ;;
4724 *"-O"* )
4725 build_warnings="${build_warnings} -Wuninitialized"
4726 ;;
4727 esac
4728else
4729 build_warnings="${build_warnings} -Wuninitialized"
4730fi
c8cca39f
AC
4731# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4732# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4733# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4734# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4735# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4736# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
4737# Check whether --enable-build-warnings or --disable-build-warnings was given.
4738if test "${enable_build_warnings+set}" = set; then
4739 enableval="$enable_build_warnings"
c8cca39f
AC
4740 case "${enableval}" in
4741 yes) ;;
4742 no) build_warnings="-w";;
4743 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4744 build_warnings="${build_warnings} ${t}";;
4745 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4746 build_warnings="${t} ${build_warnings}";;
4747 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4748esac
4749if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4750 echo "Setting compiler warning flags = $build_warnings" 6>&1
4751fi
b7026657 4752fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
c8cca39f
AC
4753if test "${enable_sim_build_warnings+set}" = set; then
4754 enableval="$enable_sim_build_warnings"
4755 case "${enableval}" in
c906108c
SS
4756 yes) ;;
4757 no) build_warnings="-w";;
4758 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 4759 build_warnings="${build_warnings} ${t}";;
c906108c 4760 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
4761 build_warnings="${t} ${build_warnings}";;
4762 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
4763esac
4764if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
4765 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4766fi
b7026657 4767fi; WARN_CFLAGS=""
d4f3574e
SS
4768WERROR_CFLAGS=""
4769if test "x${build_warnings}" != x -a "x$GCC" = xyes
4770then
b7026657
AC
4771 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4772echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
c8cca39f
AC
4773 # Separate out the -Werror flag as some files just cannot be
4774 # compiled with it enabled.
4775 for w in ${build_warnings}; do
4776 case $w in
4777 -Werr*) WERROR_CFLAGS=-Werror ;;
4778 *) # Check that GCC accepts it
4779 saved_CFLAGS="$CFLAGS"
4780 CFLAGS="$CFLAGS $w"
b7026657
AC
4781 cat >conftest.$ac_ext <<_ACEOF
4782/* confdefs.h. */
4783_ACEOF
4784cat confdefs.h >>conftest.$ac_ext
4785cat >>conftest.$ac_ext <<_ACEOF
4786/* end confdefs.h. */
c8cca39f 4787
b7026657
AC
4788int
4789main ()
4790{
c8cca39f 4791
b7026657
AC
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796rm -f conftest.$ac_objext
4797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
40a5538e
CF
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
b7026657
AC
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
c8cca39f 4818 WARN_CFLAGS="${WARN_CFLAGS} $w"
c906108c 4819else
b7026657
AC
4820 echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
c8cca39f 4823fi
b7026657 4824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
4825 CFLAGS="$saved_CFLAGS"
4826 esac
4827 done
b7026657
AC
4828 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4829echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
4830fi
4831
4832
e6c674b8
CD
4833default_sim_reserved_bits="1"
4834# Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
4835if test "${enable_sim_reserved_bits+set}" = set; then
4836 enableval="$enable_sim_reserved_bits"
4837 case "${enableval}" in
4838 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
4839 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
b7026657
AC
4840 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
4841echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
4842 { (exit 1); exit 1; }; }; sim_reserved_bits="";;
e6c674b8
CD
4843esac
4844if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
4845 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
4846fi
4847else
4848 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
b7026657 4849fi;
e6c674b8 4850
c906108c
SS
4851# DEPRECATED
4852#
4853# Instead of defining a `subtarget' macro, code should be checking
4854# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
4855# in question.
4856#
4857case "${target}" in
4c54fc26 4858 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
c906108c 4859 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
1e799e28
CD
4860 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
4861 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
4862 *) SIM_SUBTARGET="";;
4863esac
4864
4865
4866
4867
4868#
4869# Select the byte order of the target
4870#
4871mips_endian=
4872default_endian=
4873case "${target}" in
4874 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
7a292a7a 4875 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
c906108c
SS
4876 mips64*-*-*) default_endian=BIG_ENDIAN ;;
4877 mips16*-*-*) default_endian=BIG_ENDIAN ;;
1e799e28
CD
4878 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
4879 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
c906108c
SS
4880 mips*-*-*) default_endian=BIG_ENDIAN ;;
4881 *) default_endian=BIG_ENDIAN ;;
4882esac
4883
4884wire_endian="$mips_endian"
4885default_endian="$default_endian"
4886# Check whether --enable-sim-endian or --disable-sim-endian was given.
4887if test "${enable_sim_endian+set}" = set; then
4888 enableval="$enable_sim_endian"
4889 case "${enableval}" in
4890 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4891 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4892 yes) if test x"$wire_endian" != x; then
4893 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4894 else
4895 if test x"$default_endian" != x; then
4896 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4897 else
4898 echo "No hard-wired endian for target $target" 1>&6
4899 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
4900 fi
4901 fi;;
4902 no) if test x"$default_endian" != x; then
4903 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4904 else
4905 if test x"$wire_endian" != x; then
4906 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4907 else
4908 echo "No default endian for target $target" 1>&6
4909 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4910 fi
4911 fi;;
b7026657
AC
4912 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
4913echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
4914 { (exit 1); exit 1; }; }; sim_endian="";;
c906108c
SS
4915esac
4916if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
4917 echo "Setting endian flags = $sim_endian" 6>&1
4918fi
4919else
4920 if test x"$default_endian" != x; then
4921 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4922else
4923 if test x"$wire_endian" != x; then
4924 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4925 else
4926 sim_endian=
4927 fi
4928fi
b7026657 4929fi;
c906108c
SS
4930
4931
4932
4933#
4934# Select the bitsize of the target
4935#
4936mips_addr_bitsize=
4937case "${target}" in
4938 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
4939 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
4940 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
4941 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
4942 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
4943 *) mips_bitsize=64 ; mips_msb=63 ;;
4944esac
4945wire_word_bitsize="$mips_bitsize"
4946wire_word_msb="$mips_msb"
4947wire_address_bitsize="$mips_addr_bitsize"
4948wire_cell_bitsize=""
4949# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
4950if test "${enable_sim_bitsize+set}" = set; then
4951 enableval="$enable_sim_bitsize"
4952 sim_bitsize=
4953case "${enableval}" in
4954 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
4955 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
4956 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
4957 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
4958 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
4959 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
4960 else
4961 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
4962 fi ;;
4963 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
4964 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
4965 else
4966 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
4967 fi ;;
b7026657
AC
4968 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
4969echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
4970 { (exit 1); exit 1; }; } ;;
c906108c
SS
4971esac
4972# address bitsize
4973tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
4974case x"${tmp}" in
4975 x ) ;;
4976 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
4977 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
b7026657
AC
4978 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
4979echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
c906108c
SS
4981esac
4982# cell bitsize
4983tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
4984case x"${tmp}" in
4985 x ) ;;
4986 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
4987 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
b7026657
AC
4988 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
4989echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
4990 { (exit 1); exit 1; }; } ;;
c906108c
SS
4991esac
4992if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
4993 echo "Setting bitsize flags = $sim_bitsize" 6>&1
4994fi
4995else
4996 sim_bitsize=""
4997if test x"$wire_word_bitsize" != x; then
4998 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
4999fi
5000if test x"$wire_word_msb" != x; then
5001 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5002fi
5003if test x"$wire_address_bitsize" != x; then
5004 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5005fi
5006if test x"$wire_cell_bitsize" != x; then
5007 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5008fi
b7026657 5009fi;
c906108c
SS
5010
5011
5012
5013#
5014# Select the floating hardware support of the target
5015#
5016mips_fpu=HARDWARE_FLOATING_POINT
5017mips_fpu_bitsize=
5018case "${target}" in
5019 mips*tx39*) mips_fpu=HARD_FLOATING_POINT
5020 mips_fpu_bitsize=32
5021 ;;
5022 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5023 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
5024 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5025 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
5026 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5027 *) mips_fpu=HARD_FLOATING_POINT ;;
5028esac
5029
5030default_sim_float="$mips_fpu"
5031default_sim_float_bitsize="$mips_fpu_bitsize"
5032# Check whether --enable-sim-float or --disable-sim-float was given.
5033if test "${enable_sim_float+set}" = set; then
5034 enableval="$enable_sim_float"
5035 case "${enableval}" in
5036 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5037 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5038 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5039 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
b7026657
AC
5040 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
5041echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
5042 { (exit 1); exit 1; }; }; sim_float="";;
c906108c
SS
5043esac
5044if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5045 echo "Setting float flags = $sim_float" 6>&1
5046fi
5047else
b7026657 5048
c906108c
SS
5049sim_float=
5050if test x"${default_sim_float}" != x""; then
5051 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5052fi
5053if test x"${default_sim_float_bitsize}" != x""; then
5054 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5055fi
5056
b7026657 5057fi;
c906108c
SS
5058
5059
5060
5061#
5062# Select the level of SMP support
5063#
5064case "${target}" in
5065 *) mips_smp=0 ;;
5066esac
5067
5068default_sim_smp="$mips_smp"
5069# Check whether --enable-sim-smp or --disable-sim-smp was given.
5070if test "${enable_sim_smp+set}" = set; then
5071 enableval="$enable_sim_smp"
5072 case "${enableval}" in
5073 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5074 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5075 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5076esac
5077if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5078 echo "Setting smp flags = $sim_smp" 6>&1
5079fi
5080else
5081 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5082if test x"$silent" != x"yes"; then
5083 echo "Setting smp flags = $sim_smp" 6>&1
5084fi
b7026657 5085fi;
c906108c
SS
5086
5087
5088
5089#
5090# Select the IGEN architecture
5091#
5092sim_gen=IGEN
5093sim_igen_machine="-M mipsIV"
139181c8 5094sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
5095sim_igen_filter="32,64,f"
5096sim_m16_filter="16"
4c54fc26
CD
5097sim_mach_default="mips8000"
5098
c906108c
SS
5099case "${target}" in
5100 mips*tx39*) sim_gen=IGEN
5101 sim_igen_filter="32,f"
5102 sim_igen_machine="-M r3900"
5103 ;;
5104 mips64vr43*-*-*) sim_gen=IGEN
5105 sim_igen_machine="-M mipsIV"
4c54fc26 5106 sim_mach_default="mips8000"
c906108c
SS
5107 ;;
5108 mips64vr5*-*-*) sim_gen=IGEN
5109 sim_igen_machine="-M vr5000"
4c54fc26 5110 sim_mach_default="mips5000"
c906108c
SS
5111 ;;
5112 mips64vr41*) sim_gen=M16
5113 sim_igen_machine="-M vr4100"
5114 sim_m16_machine="-M vr4100"
5115 sim_igen_filter="32,64,f"
5116 sim_m16_filter="16"
4c54fc26 5117 sim_mach_default="mips4100"
c906108c 5118 ;;
4c54fc26
CD
5119 mips64vr-*-* | mips64vrel-*-*)
5120 sim_gen=MULTI
5121 sim_multi_configs="\
5122 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
5123 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
5124 vr5000:mipsIV:32,64,f:mips4300,mips5000\
5125 vr5400:mipsIV,vr5400:32,64,f:mips5400\
5126 vr5500:mipsIV,vr5500:32,64,f:mips5500"
5127 sim_multi_default=mips5000
5128 ;;
c906108c
SS
5129 mips64*-*-*) sim_igen_filter="32,64,f"
5130 sim_gen=IGEN
5131 ;;
5132 mips16*-*-*) sim_gen=M16
5133 sim_igen_filter="32,64,f"
5134 sim_m16_filter="16"
5135 ;;
b16d63da 5136 mipsisa32r2*-*-*) sim_gen=M16
40a5538e 5137 sim_igen_machine="-M mips32r2,mips16,mips16e,dsp"
b16d63da 5138 sim_m16_machine="-M mips16,mips16e,mips32r2"
e70cb6cd
CD
5139 sim_igen_filter="32,f"
5140 sim_mach_default="mipsisa32r2"
5141 ;;
b16d63da 5142 mipsisa32*-*-*) sim_gen=M16
40a5538e 5143 sim_igen_machine="-M mips32,mips16,mips16e,dsp"
b16d63da 5144 sim_m16_machine="-M mips16,mips16e,mips32"
1e799e28 5145 sim_igen_filter="32,f"
4c54fc26 5146 sim_mach_default="mipsisa32"
1e799e28 5147 ;;
b16d63da 5148 mipsisa64r2*-*-*) sim_gen=M16
40a5538e 5149 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,dsp"
b16d63da 5150 sim_m16_machine="-M mips16,mips16e,mips64r2"
e70cb6cd
CD
5151 sim_igen_filter="32,64,f"
5152 sim_mach_default="mipsisa64r2"
5153 ;;
7cbea089 5154 mipsisa64sb1*-*-*) sim_gen=IGEN
e5da76ec 5155 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 5156 sim_igen_filter="32,64,f"
4c54fc26 5157 sim_mach_default="mips_sb1"
7cbea089 5158 ;;
b16d63da 5159 mipsisa64*-*-*) sim_gen=M16
40a5538e 5160 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,dsp"
b16d63da 5161 sim_m16_machine="-M mips16,mips16e,mips64"
1e799e28 5162 sim_igen_filter="32,64,f"
4c54fc26 5163 sim_mach_default="mipsisa64"
1e799e28 5164 ;;
c906108c
SS
5165 mips*lsi*) sim_gen=M16
5166 sim_igen_machine="-M mipsIII,mips16"
5167 sim_m16_machine="-M mips16,mipsIII"
5168 sim_igen_filter="32,f"
5169 sim_m16_filter="16"
4c54fc26 5170 sim_mach_default="mips4000"
c906108c
SS
5171 ;;
5172 mips*-*-*) sim_gen=IGEN
5173 sim_igen_filter="32,f"
5174 ;;
5175esac
4c54fc26
CD
5176
5177# The MULTI generator can combine several simulation engines into one.
5178# executable. A configuration which uses the MULTI should set two
5179# variables: ${sim_multi_configs} and ${sim_multi_default}.
5180#
5181# ${sim_multi_configs} is the list of engines to build. Each
5182# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5183# where:
5184#
5185# - NAME is a C-compatible prefix for the engine,
5186# - MACHINE is a -M argument,
5187# - FILTER is a -F argument, and
5188# - BFDMACHS is a comma-separated list of bfd machines that the
5189# simulator can run.
5190#
5191# Each entry will have a separate simulation engine whose prefix is
5192# m32<NAME>. If the machine list includes "mips16", there will also
5193# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5194# generated using the same machine list as the 32-bit version,
5195# but the filter will be "16" instead of FILTER.
5196#
5197# The simulator compares the bfd mach against BFDMACHS to decide
5198# which engine to use. Entries in BFDMACHS should be bfd_mach
5199# values with "bfd_mach_" removed. ${sim_multi_default} says
5200# which entry should be the default.
5201if test ${sim_gen} = MULTI; then
5202
5203 # Simple sanity check.
5204 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
b7026657
AC
5205 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
5206echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
5207 { (exit 1); exit 1; }; }
4c54fc26
CD
5208 fi
5209
5210 # Start in a known state.
5211 rm -f multi-include.h multi-run.c
5212 sim_multi_flags=
5213 sim_multi_src=
5214 sim_multi_obj=multi-run.o
5215 sim_multi_igen_configs=
5216 sim_seen_default=no
5217
5218 cat << __EOF__ > multi-run.c
5219/* Main entry point for MULTI simulators.
5220 Copyright (C) 2003 Free Software Foundation, Inc.
5221
5222 This program is free software; you can redistribute it and/or modify
5223 it under the terms of the GNU General Public License as published by
5224 the Free Software Foundation; either version 2 of the License, or
5225 (at your option) any later version.
5226
5227 This program is distributed in the hope that it will be useful,
5228 but WITHOUT ANY WARRANTY; without even the implied warranty of
5229 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5230 GNU General Public License for more details.
5231
5232 You should have received a copy of the GNU General Public License
5233 along with this program; if not, write to the Free Software
5234 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5235
5236 --
5237
5238 This file was generated by sim/mips/configure. */
5239
5240#include "sim-main.h"
5241#include "multi-include.h"
5242
5243#define SD sd
5244#define CPU cpu
5245
5246void
5247sim_engine_run (SIM_DESC sd,
5248 int next_cpu_nr,
5249 int nr_cpus,
5250 int signal) /* ignore */
5251{
5252 int mach;
5253
5254 if (STATE_ARCHITECTURE (sd) == NULL)
5255 mach = bfd_mach_${sim_multi_default};
5256 else
5257 mach = STATE_ARCHITECTURE (SD)->mach;
5258
5259 switch (mach)
5260 {
5261__EOF__
5262
5263 for fc in ${sim_multi_configs}; do
5264
5265 # Split up the entry. ${c} contains the first three elements.
5266 # Note: outer sqaure brackets are m4 quotes.
5267 c=`echo ${fc} | sed 's/:[^:]*$//'`
5268 bfdmachs=`echo ${fc} | sed 's/.*://'`
5269 name=`echo ${c} | sed 's/:.*//'`
5270 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5271 filter=`echo ${c} | sed 's/.*://'`
5272
5273 # Build the following lists:
5274 #
5275 # sim_multi_flags: all -M and -F flags used by the simulator
5276 # sim_multi_src: all makefile-generated source files
5277 # sim_multi_obj: the objects for ${sim_multi_src}
5278 # sim_multi_igen_configs: igen configuration strings.
5279 #
5280 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5281 # or m16) followed by the NAME, MACHINE and FILTER part of
5282 # the ${sim_multi_configs} entry.
5283 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5284
5285 # Check whether mips16 handling is needed.
5286 case ${c} in
5287 *:*mips16*:*)
5288 # Run igen twice, once for normal mode and once for mips16.
5289 ws="m32 m16"
5290
5291 # The top-level function for the mips16 simulator is
5292 # in a file m16${name}_run.c, generated by the
5293 # tmp-run-multi Makefile rule.
5294 sim_multi_src="${sim_multi_src} m16${name}_run.c"
5295 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
5296 sim_multi_flags="${sim_multi_flags} -F 16"
5297 ;;
5298 *)
5299 ws=m32
5300 ;;
5301 esac
5302
5303 # Now add the list of igen-generated files to ${sim_multi_src}
5304 # and ${sim_multi_obj}.
5305 for w in ${ws}; do
5306 for base in engine icache idecode model semantics support; do
5307 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
5308 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
5309 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
5310 done
5311 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5312 done
5313
5314 # Add an include for the engine.h file. This file declares the
5315 # top-level foo_engine_run() function.
5316 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5317
5318 # Add case statements for this engine to sim_engine_run().
5319 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5320 echo " case bfd_mach_${mach}:" >> multi-run.c
5321 if test ${mach} = ${sim_multi_default}; then
5322 echo " default:" >> multi-run.c
5323 sim_seen_default=yes
5324 fi
5325 done
5326 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5327 >> multi-run.c
5328 echo " break;" >> multi-run.c
5329 done
5330
5331 # Check whether we added a 'default:' label.
5332 if test ${sim_seen_default} = no; then
b7026657
AC
5333 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
5334echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
5335 { (exit 1); exit 1; }; }
4c54fc26
CD
5336 fi
5337
5338 cat << __EOF__ >> multi-run.c
5339 }
5340}
5341
5342int
5343mips_mach_multi (SIM_DESC sd)
5344{
5345 if (STATE_ARCHITECTURE (sd) == NULL)
5346 return bfd_mach_${sim_multi_default};
5347
5348 switch (STATE_ARCHITECTURE (SD)->mach)
5349 {
5350__EOF__
5351
5352 # Add case statements for this engine to mips_mach_multi().
5353 for fc in ${sim_multi_configs}; do
5354
5355 # Split up the entry. ${c} contains the first three elements.
5356 # Note: outer sqaure brackets are m4 quotes.
5357 c=`echo ${fc} | sed 's/:[^:]*$//'`
5358 bfdmachs=`echo ${fc} | sed 's/.*://'`
5359
5360 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5361 echo " case bfd_mach_${mach}:" >> multi-run.c
5362 done
5363 done
5364
5365 cat << __EOF__ >> multi-run.c
5366 return (STATE_ARCHITECTURE (SD)->mach);
5367 default:
5368 return bfd_mach_${sim_multi_default};
5369 }
5370}
5371__EOF__
5372
5373 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5374else
5375 # For clean-extra
5376 sim_multi_src=doesnt-exist.c
5377
5378 if test x"${sim_mach_default}" = x""; then
b7026657
AC
5379 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_mach_default} not defined" >&5
5380echo "$as_me: error: Error in configure.in: \${sim_mach_default} not defined" >&2;}
5381 { (exit 1); exit 1; }; }
4c54fc26
CD
5382 fi
5383 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5384fi
c906108c
SS
5385sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5386sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5387
5388
5389
5390
5391
4c54fc26
CD
5392
5393
5394
5395
c906108c
SS
5396#
5397# Add simulated hardware devices
5398#
5399hw_enabled=no
5400case "${target}" in
5401 mips*tx39*)
5402 hw_enabled=yes
b7026657 5403 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
5404 mips_extra_objs="dv-sockser.o"
5405 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
5406 ;;
5407 *)
b7026657 5408 mips_extra_objs=""
c906108c
SS
5409 ;;
5410esac
5411
5412if test x"$hw_enabled" = x"yes"; then
5413 sim_hw_p=yes
5414else
5415 sim_hw_p=no
5416fi
5417if test "$hw_devices"; then
5418 hardware="core pal glue"
5419else
5420 hardware="core pal glue $hw_extra_devices"
5421fi
5422sim_hw_cflags="-DWITH_HW=1"
5423sim_hw="$hardware"
5424sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5425# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
5426if test "${enable_sim_hardware+set}" = set; then
5427 enableval="$enable_sim_hardware"
b7026657 5428
c906108c
SS
5429case "${enableval}" in
5430 yes) sim_hw_p=yes;;
5431 no) sim_hw_p=no;;
5432 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5433 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5434 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5435esac
5436if test "$sim_hw_p" != yes; then
5437 sim_hw_objs=
5438 sim_hw_cflags="-DWITH_HW=0"
5439 sim_hw=
5440else
5441 sim_hw_cflags="-DWITH_HW=1"
5442 # remove duplicates
5443 sim_hw=""
5444 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
5445 for i in $hardware ; do
5446 case " $sim_hw " in
c906108c
SS
5447 *" $i "*) ;;
5448 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5449 esac
5450 done
5451fi
5452if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5453 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5454fi
5455else
b7026657 5456
c906108c
SS
5457if test "$sim_hw_p" != yes; then
5458 sim_hw_objs=
5459 sim_hw_cflags="-DWITH_HW=0"
5460 sim_hw=
5461fi
5462if test x"$silent" != x"yes"; then
5463 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5464fi
b7026657 5465fi;
c906108c
SS
5466
5467
5468
5469# Choose simulator engine
5470case "${target}" in
5471 *) mips_igen_engine="engine.o"
5472 ;;
5473esac
5474
5475
5476
b7026657
AC
5477echo "$as_me:$LINENO: checking for X" >&5
5478echo $ECHO_N "checking for X... $ECHO_C" >&6
5479
c906108c
SS
5480
5481# Check whether --with-x or --without-x was given.
5482if test "${with_x+set}" = set; then
5483 withval="$with_x"
c906108c 5484
b7026657 5485fi;
c906108c
SS
5486# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5487if test "x$with_x" = xno; then
5488 # The user explicitly disabled X.
5489 have_x=disabled
5490else
5491 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5492 # Both variables are already set.
5493 have_x=yes
5494 else
b7026657
AC
5495 if test "${ac_cv_have_x+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5497else
5498 # One or both of the vars are not set, and there is no cached value.
b7026657
AC
5499ac_x_includes=no ac_x_libraries=no
5500rm -fr conftest.dir
5501if mkdir conftest.dir; then
5502 cd conftest.dir
c906108c 5503 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
b7026657 5504 cat >Imakefile <<'_ACEOF'
c906108c
SS
5505acfindx:
5506 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
b7026657 5507_ACEOF
c906108c
SS
5508 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5510 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5511 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5512 for ac_extension in a so sl; do
5513 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
b7026657
AC
5514 test -f $ac_im_libdir/libX11.$ac_extension; then
5515 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
5516 fi
5517 done
5518 # Screen out bogus values from the imake configuration. They are
5519 # bogus both because they are the default anyway, and because
5520 # using them would break gcc on systems where it needs fixed includes.
b7026657 5521 case $ac_im_incroot in
c906108c 5522 /usr/include) ;;
b7026657 5523 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 5524 esac
b7026657 5525 case $ac_im_usrlibdir in
c906108c 5526 /usr/lib | /lib) ;;
b7026657 5527 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
5528 esac
5529 fi
5530 cd ..
b7026657 5531 rm -fr conftest.dir
c906108c
SS
5532fi
5533
b7026657
AC
5534# Standard set of common directories for X headers.
5535# Check X11 before X11Rn because it is often a symlink to the current release.
5536ac_x_header_dirs='
5537/usr/X11/include
5538/usr/X11R6/include
5539/usr/X11R5/include
5540/usr/X11R4/include
5541
5542/usr/include/X11
5543/usr/include/X11R6
5544/usr/include/X11R5
5545/usr/include/X11R4
5546
5547/usr/local/X11/include
5548/usr/local/X11R6/include
5549/usr/local/X11R5/include
5550/usr/local/X11R4/include
5551
5552/usr/local/include/X11
5553/usr/local/include/X11R6
5554/usr/local/include/X11R5
5555/usr/local/include/X11R4
5556
5557/usr/X386/include
5558/usr/x386/include
5559/usr/XFree86/include/X11
5560
5561/usr/include
5562/usr/local/include
5563/usr/unsupported/include
5564/usr/athena/include
5565/usr/local/x11r5/include
5566/usr/lpp/Xamples/include
5567
5568/usr/openwin/include
5569/usr/openwin/share/include'
5570
5571if test "$ac_x_includes" = no; then
40a5538e 5572 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 5573 # First, try using that file with no special directory specified.
b7026657
AC
5574 cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
5580#include <X11/Intrinsic.h>
5581_ACEOF
5582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } >/dev/null; then
5590 if test -s conftest.err; then
5591 ac_cpp_err=$ac_c_preproc_warn_flag
5592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5593 else
5594 ac_cpp_err=
5595 fi
5596else
5597 ac_cpp_err=yes
5598fi
5599if test -z "$ac_cpp_err"; then
c906108c
SS
5600 # We can compile using X headers with no special include directory.
5601ac_x_includes=
5602else
b7026657
AC
5603 echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 for ac_dir in $ac_x_header_dirs; do
5607 if test -r "$ac_dir/X11/Intrinsic.h"; then
5608 ac_x_includes=$ac_dir
5609 break
5610 fi
5611done
c906108c 5612fi
b7026657
AC
5613rm -f conftest.err conftest.$ac_ext
5614fi # $ac_x_includes = no
c906108c 5615
b7026657 5616if test "$ac_x_libraries" = no; then
c906108c 5617 # Check for the libraries.
c906108c
SS
5618 # See if we find them without any special options.
5619 # Don't add to $LIBS permanently.
b7026657
AC
5620 ac_save_LIBS=$LIBS
5621 LIBS="-lXt $LIBS"
5622 cat >conftest.$ac_ext <<_ACEOF
5623/* confdefs.h. */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h. */
5628#include <X11/Intrinsic.h>
5629int
5630main ()
5631{
5632XtMalloc (0)
5633 ;
5634 return 0;
5635}
5636_ACEOF
5637rm -f conftest.$ac_objext conftest$ac_exeext
5638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
40a5538e
CF
5646 { ac_try='test -z "$ac_c_werror_flag"
5647 || test ! -s conftest.err'
b7026657
AC
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 (eval $ac_try) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 LIBS=$ac_save_LIBS
c906108c
SS
5660# We can link X programs with no special library path.
5661ac_x_libraries=
5662else
b7026657
AC
5663 echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
5665
5666LIBS=$ac_save_LIBS
5667for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 5668do
b7026657 5669 # Don't even attempt the hair of trying to link an X program!
c906108c 5670 for ac_extension in a so sl; do
b7026657 5671 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
5672 ac_x_libraries=$ac_dir
5673 break 2
5674 fi
5675 done
5676done
5677fi
b7026657
AC
5678rm -f conftest.err conftest.$ac_objext \
5679 conftest$ac_exeext conftest.$ac_ext
5680fi # $ac_x_libraries = no
c906108c 5681
b7026657 5682if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
5683 # Didn't find X anywhere. Cache the known absence of X.
5684 ac_cv_have_x="have_x=no"
5685else
5686 # Record where we found X for the cache.
5687 ac_cv_have_x="have_x=yes \
b7026657 5688 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
5689fi
5690fi
b7026657 5691
c906108c
SS
5692 fi
5693 eval "$ac_cv_have_x"
5694fi # $with_x != no
5695
5696if test "$have_x" != yes; then
b7026657
AC
5697 echo "$as_me:$LINENO: result: $have_x" >&5
5698echo "${ECHO_T}$have_x" >&6
c906108c
SS
5699 no_x=yes
5700else
5701 # If each of the values was on the command line, it overrides each guess.
5702 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5703 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5704 # Update the cache value to reflect the command line values.
5705 ac_cv_have_x="have_x=yes \
5706 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
40a5538e
CF
5707 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5708echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
b7026657
AC
5709fi
5710
5711mips_extra_libs=""
5712
5713
5714
5715
5716
5717
5718for ac_header in string.h strings.h stdlib.h stdlib.h
5719do
5720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5721if eval "test \"\${$as_ac_Header+set}\" = set"; then
5722 echo "$as_me:$LINENO: checking for $ac_header" >&5
5723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5724if eval "test \"\${$as_ac_Header+set}\" = set"; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726fi
5727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5729else
5730 # Is the header compilable?
5731echo "$as_me:$LINENO: checking $ac_header usability" >&5
5732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5733cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h. */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h. */
5739$ac_includes_default
5740#include <$ac_header>
5741_ACEOF
5742rm -f conftest.$ac_objext
5743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744 (eval $ac_compile) 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
40a5538e
CF
5751 { ac_try='test -z "$ac_c_werror_flag"
5752 || test ! -s conftest.err'
b7026657
AC
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_header_compiler=yes
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769ac_header_compiler=no
5770fi
5771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5773echo "${ECHO_T}$ac_header_compiler" >&6
5774
5775# Is the header present?
5776echo "$as_me:$LINENO: checking $ac_header presence" >&5
5777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5778cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h. */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h. */
5784#include <$ac_header>
5785_ACEOF
5786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } >/dev/null; then
5794 if test -s conftest.err; then
5795 ac_cpp_err=$ac_c_preproc_warn_flag
5796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5797 else
5798 ac_cpp_err=
5799 fi
5800else
5801 ac_cpp_err=yes
5802fi
5803if test -z "$ac_cpp_err"; then
5804 ac_header_preproc=yes
5805else
5806 echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 ac_header_preproc=no
5810fi
5811rm -f conftest.err conftest.$ac_ext
5812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5813echo "${ECHO_T}$ac_header_preproc" >&6
5814
5815# So? What about this header?
5816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5817 yes:no: )
5818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5822 ac_header_preproc=yes
5823 ;;
5824 no:yes:* )
5825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5837 (
5838 cat <<\_ASBOX
5839## ------------------------------------------ ##
5840## Report this to the AC_PACKAGE_NAME lists. ##
5841## ------------------------------------------ ##
5842_ASBOX
5843 ) |
5844 sed "s/^/$as_me: WARNING: /" >&2
5845 ;;
5846esac
5847echo "$as_me:$LINENO: checking for $ac_header" >&5
5848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5849if eval "test \"\${$as_ac_Header+set}\" = set"; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852 eval "$as_ac_Header=\$ac_header_preproc"
5853fi
5854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5856
5857fi
5858if test `eval echo '${'$as_ac_Header'}'` = yes; then
5859 cat >>confdefs.h <<_ACEOF
5860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5861_ACEOF
5862
5863fi
5864
5865done
5866
5867
5868echo "$as_me:$LINENO: checking for fabs in -lm" >&5
5869echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
5870if test "${ac_cv_lib_m_fabs+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872else
5873 ac_check_lib_save_LIBS=$LIBS
5874LIBS="-lm $LIBS"
5875cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h. */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
5880/* end confdefs.h. */
5881
5882/* Override any gcc2 internal prototype to avoid an error. */
5883#ifdef __cplusplus
5884extern "C"
5885#endif
5886/* We use char because int might match the return type of a gcc2
5887 builtin and then its argument prototype would still apply. */
5888char fabs ();
5889int
5890main ()
5891{
5892fabs ();
5893 ;
5894 return 0;
5895}
5896_ACEOF
5897rm -f conftest.$ac_objext conftest$ac_exeext
5898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5899 (eval $ac_link) 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } &&
40a5538e
CF
5906 { ac_try='test -z "$ac_c_werror_flag"
5907 || test ! -s conftest.err'
b7026657
AC
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest$ac_exeext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_cv_lib_m_fabs=yes
5920else
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924ac_cv_lib_m_fabs=no
5925fi
5926rm -f conftest.err conftest.$ac_objext \
5927 conftest$ac_exeext conftest.$ac_ext
5928LIBS=$ac_check_lib_save_LIBS
5929fi
5930echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
5931echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
5932if test $ac_cv_lib_m_fabs = yes; then
5933 cat >>confdefs.h <<_ACEOF
5934#define HAVE_LIBM 1
5935_ACEOF
5936
5937 LIBS="-lm $LIBS"
5938
5939fi
5940
5941
5942
5943
5944for ac_func in aint anint sqrt
5945do
5946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5947echo "$as_me:$LINENO: checking for $ac_func" >&5
5948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5949if eval "test \"\${$as_ac_var+set}\" = set"; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h. */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h. */
5958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5960#define $ac_func innocuous_$ac_func
5961
5962/* System header to define __stub macros and hopefully few prototypes,
5963 which can conflict with char $ac_func (); below.
5964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5965 <limits.h> exists even on freestanding compilers. */
5966
5967#ifdef __STDC__
5968# include <limits.h>
5969#else
5970# include <assert.h>
5971#endif
5972
5973#undef $ac_func
5974
5975/* Override any gcc2 internal prototype to avoid an error. */
5976#ifdef __cplusplus
5977extern "C"
5978{
5979#endif
5980/* We use char because int might match the return type of a gcc2
5981 builtin and then its argument prototype would still apply. */
5982char $ac_func ();
5983/* The GNU C library defines this for functions which it implements
5984 to always fail with ENOSYS. Some functions are actually named
5985 something starting with __ and the normal name is an alias. */
5986#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5987choke me
5988#else
5989char (*f) () = $ac_func;
5990#endif
5991#ifdef __cplusplus
5992}
5993#endif
5994
5995int
5996main ()
5997{
5998return f != $ac_func;
5999 ;
6000 return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext conftest$ac_exeext
6004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005 (eval $ac_link) 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
40a5538e
CF
6012 { ac_try='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
b7026657
AC
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest$ac_exeext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 eval "$as_ac_var=yes"
6026else
6027 echo "$as_me: failed program was:" >&5
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
6030eval "$as_ac_var=no"
6031fi
6032rm -f conftest.err conftest.$ac_objext \
6033 conftest$ac_exeext conftest.$ac_ext
6034fi
6035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6037if test `eval echo '${'$as_ac_var'}'` = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6040_ACEOF
6041
6042fi
6043done
6044
6045
6046
6047ac_sources="$sim_link_files"
6048ac_dests="$sim_link_links"
6049while test -n "$ac_sources"; do
6050 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6051 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6052 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
6053done
6054 ac_config_links="$ac_config_links $ac_config_links_1"
6055
6056cgen_breaks=""
6057if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
6058cgen_breaks="break cgen_rtx_error";
6059fi
6060
38f48d72
AC
6061 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
6062
6063 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
6064
6065 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
6066
6067 ac_config_commands="$ac_config_commands Makefile"
6068
6069 ac_config_commands="$ac_config_commands stamp-h"
6070
b7026657
AC
6071cat >confcache <<\_ACEOF
6072# This file is a shell script that caches the results of configure
6073# tests run on this system so they can be shared between configure
6074# scripts and configure runs, see configure's option --config-cache.
6075# It is not useful on other systems. If it contains results you don't
6076# want to keep, you may remove or edit it.
6077#
6078# config.status only pays attention to the cache file if you give it
6079# the --recheck option to rerun configure.
6080#
6081# `ac_cv_env_foo' variables (set or unset) will be overridden when
6082# loading this file, other *unset* `ac_cv_foo' will be assigned the
6083# following values.
6084
6085_ACEOF
6086
6087# The following way of writing the cache mishandles newlines in values,
6088# but we know of no workaround that is simple, portable, and efficient.
6089# So, don't put newlines in cache variables' values.
6090# Ultrix sh set writes to stderr and can't be redirected directly,
6091# and sets the high bit in the cache file unless we assign to the vars.
6092{
6093 (set) 2>&1 |
6094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6095 *ac_space=\ *)
6096 # `set' does not quote correctly, so add quotes (double-quote
6097 # substitution turns \\\\ into \\, and sed turns \\ into \).
6098 sed -n \
6099 "s/'/'\\\\''/g;
6100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6101 ;;
6102 *)
6103 # `set' quotes correctly as required by POSIX, so do not add quotes.
6104 sed -n \
6105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6106 ;;
6107 esac;
6108} |
6109 sed '
6110 t clear
6111 : clear
6112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6113 t end
6114 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6115 : end' >>confcache
6116if diff $cache_file confcache >/dev/null 2>&1; then :; else
6117 if test -w $cache_file; then
6118 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6119 cat confcache >$cache_file
6120 else
6121 echo "not updating unwritable cache $cache_file"
6122 fi
6123fi
6124rm -f confcache
6125
6126test "x$prefix" = xNONE && prefix=$ac_default_prefix
6127# Let make expand exec_prefix.
6128test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6129
6130# VPATH may cause trouble with some makes, so we remove $(srcdir),
6131# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6132# trailing colons and then remove the whole line if VPATH becomes empty
6133# (actually we leave an empty line to preserve line numbers).
6134if test "x$srcdir" = x.; then
6135 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6136s/:*\$(srcdir):*/:/;
6137s/:*\${srcdir}:*/:/;
6138s/:*@srcdir@:*/:/;
6139s/^\([^=]*=[ ]*\):*/\1/;
6140s/:*$//;
6141s/^[^=]*=[ ]*$//;
6142}'
c906108c
SS
6143fi
6144
b7026657
AC
6145DEFS=-DHAVE_CONFIG_H
6146
6147ac_libobjs=
6148ac_ltlibobjs=
6149for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6150 # 1. Remove the extension, and $U if already installed.
6151 ac_i=`echo "$ac_i" |
6152 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6153 # 2. Add them.
6154 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6155 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6156done
6157LIBOBJS=$ac_libobjs
6158
6159LTLIBOBJS=$ac_ltlibobjs
6160
6161
6162
6163: ${CONFIG_STATUS=./config.status}
6164ac_clean_files_save=$ac_clean_files
6165ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6166{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6167echo "$as_me: creating $CONFIG_STATUS" >&6;}
6168cat >$CONFIG_STATUS <<_ACEOF
6169#! $SHELL
6170# Generated by $as_me.
6171# Run this file to recreate the current configuration.
6172# Compiler output produced by configure, useful for debugging
6173# configure, is in config.log if it exists.
c906108c 6174
b7026657
AC
6175debug=false
6176ac_cs_recheck=false
6177ac_cs_silent=false
6178SHELL=\${CONFIG_SHELL-$SHELL}
6179_ACEOF
c906108c 6180
b7026657
AC
6181cat >>$CONFIG_STATUS <<\_ACEOF
6182## --------------------- ##
6183## M4sh Initialization. ##
6184## --------------------- ##
6185
6186# Be Bourne compatible
6187if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6188 emulate sh
6189 NULLCMD=:
6190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6191 # is contrary to our usage. Disable this feature.
6192 alias -g '${1+"$@"}'='"$@"'
6193elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6194 set -o posix
c906108c 6195fi
b7026657
AC
6196DUALCASE=1; export DUALCASE # for MKS sh
6197
6198# Support unset when possible.
6199if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6200 as_unset=unset
c906108c 6201else
b7026657 6202 as_unset=false
c906108c 6203fi
b7026657
AC
6204
6205
6206# Work around bugs in pre-3.0 UWIN ksh.
6207$as_unset ENV MAIL MAILPATH
6208PS1='$ '
6209PS2='> '
6210PS4='+ '
6211
6212# NLS nuisances.
6213for as_var in \
6214 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6215 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6216 LC_TELEPHONE LC_TIME
6217do
6218 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6219 eval $as_var=C; export $as_var
6220 else
6221 $as_unset $as_var
6222 fi
c906108c
SS
6223done
6224
b7026657
AC
6225# Required to use basename.
6226if expr a : '\(a\)' >/dev/null 2>&1; then
6227 as_expr=expr
c906108c 6228else
b7026657 6229 as_expr=false
c906108c 6230fi
c906108c 6231
b7026657
AC
6232if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6233 as_basename=basename
6234else
6235 as_basename=false
c906108c 6236fi
c906108c 6237
c906108c 6238
b7026657
AC
6239# Name of the executable.
6240as_me=`$as_basename "$0" ||
6241$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6242 X"$0" : 'X\(//\)$' \| \
6243 X"$0" : 'X\(/\)$' \| \
6244 . : '\(.\)' 2>/dev/null ||
6245echo X/"$0" |
6246 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6247 /^X\/\(\/\/\)$/{ s//\1/; q; }
6248 /^X\/\(\/\).*/{ s//\1/; q; }
6249 s/.*/./; q'`
6250
6251
6252# PATH needs CR, and LINENO needs CR and PATH.
6253# Avoid depending upon Character Ranges.
6254as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6255as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6256as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6257as_cr_digits='0123456789'
6258as_cr_alnum=$as_cr_Letters$as_cr_digits
6259
6260# The user is always right.
6261if test "${PATH_SEPARATOR+set}" != set; then
6262 echo "#! /bin/sh" >conf$$.sh
6263 echo "exit 0" >>conf$$.sh
6264 chmod +x conf$$.sh
6265 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6266 PATH_SEPARATOR=';'
6267 else
6268 PATH_SEPARATOR=:
6269 fi
6270 rm -f conf$$.sh
c906108c
SS
6271fi
6272
b7026657
AC
6273
6274 as_lineno_1=$LINENO
6275 as_lineno_2=$LINENO
6276 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6277 test "x$as_lineno_1" != "x$as_lineno_2" &&
6278 test "x$as_lineno_3" = "x$as_lineno_2" || {
6279 # Find who we are. Look in the path if we contain no path at all
6280 # relative or not.
6281 case $0 in
6282 *[\\/]* ) as_myself=$0 ;;
6283 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
c906108c 6285do
b7026657
AC
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6289done
c906108c 6290
b7026657
AC
6291 ;;
6292 esac
6293 # We did not find ourselves, most probably we were run as `sh COMMAND'
6294 # in which case we are not to be found in the path.
6295 if test "x$as_myself" = x; then
6296 as_myself=$0
6297 fi
6298 if test ! -f "$as_myself"; then
6299 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6300echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6301 { (exit 1); exit 1; }; }
6302 fi
6303 case $CONFIG_SHELL in
6304 '')
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6307do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for as_base in sh bash ksh sh5; do
6311 case $as_dir in
6312 /*)
6313 if ("$as_dir/$as_base" -c '
6314 as_lineno_1=$LINENO
6315 as_lineno_2=$LINENO
6316 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6317 test "x$as_lineno_1" != "x$as_lineno_2" &&
6318 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6319 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6320 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6321 CONFIG_SHELL=$as_dir/$as_base
6322 export CONFIG_SHELL
6323 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6324 fi;;
6325 esac
6326 done
6327done
6328;;
6329 esac
c906108c 6330
b7026657
AC
6331 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6332 # uniformly replaced by the line number. The first 'sed' inserts a
6333 # line-number line before each line; the second 'sed' does the real
6334 # work. The second script uses 'N' to pair each line-number line
6335 # with the numbered line, and appends trailing '-' during
6336 # substitution so that $LINENO is not a special case at line end.
6337 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6338 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6339 sed '=' <$as_myself |
6340 sed '
6341 N
6342 s,$,-,
6343 : loop
6344 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6345 t loop
6346 s,-$,,
6347 s,^['$as_cr_digits']*\n,,
6348 ' >$as_me.lineno &&
6349 chmod +x $as_me.lineno ||
6350 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6351echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6352 { (exit 1); exit 1; }; }
6353
6354 # Don't try to exec as it changes $[0], causing all sort of problems
6355 # (the dirname of $[0] is not the place where we might find the
6356 # original and so on. Autoconf is especially sensible to this).
6357 . ./$as_me.lineno
6358 # Exit status is that of the last command.
6359 exit
6360}
6361
6362
6363case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6364 *c*,-n*) ECHO_N= ECHO_C='
6365' ECHO_T=' ' ;;
6366 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6367 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6368esac
c906108c 6369
b7026657
AC
6370if expr a : '\(a\)' >/dev/null 2>&1; then
6371 as_expr=expr
c906108c 6372else
b7026657 6373 as_expr=false
c906108c 6374fi
b7026657
AC
6375
6376rm -f conf$$ conf$$.exe conf$$.file
6377echo >conf$$.file
6378if ln -s conf$$.file conf$$ 2>/dev/null; then
6379 # We could just check for DJGPP; but this test a) works b) is more generic
6380 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6381 if test -f conf$$.exe; then
6382 # Don't use ln at all; we don't have any links
6383 as_ln_s='cp -p'
6384 else
6385 as_ln_s='ln -s'
6386 fi
6387elif ln conf$$.file conf$$ 2>/dev/null; then
6388 as_ln_s=ln
6389else
6390 as_ln_s='cp -p'
c906108c 6391fi
b7026657 6392rm -f conf$$ conf$$.exe conf$$.file
c906108c 6393
b7026657
AC
6394if mkdir -p . 2>/dev/null; then
6395 as_mkdir_p=:
c906108c 6396else
b7026657
AC
6397 test -d ./-p && rmdir ./-p
6398 as_mkdir_p=false
c906108c 6399fi
c906108c 6400
b7026657 6401as_executable_p="test -f"
c906108c 6402
b7026657
AC
6403# Sed expression to map a string onto a valid CPP name.
6404as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 6405
b7026657
AC
6406# Sed expression to map a string onto a valid variable name.
6407as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 6408
b7026657
AC
6409
6410# IFS
6411# We need space, tab and new line, in precisely that order.
6412as_nl='
6413'
6414IFS=" $as_nl"
6415
6416# CDPATH.
6417$as_unset CDPATH
6418
6419exec 6>&1
6420
6421# Open the log real soon, to keep \$[0] and so on meaningful, and to
6422# report actual input values of CONFIG_FILES etc. instead of their
6423# values after options handling. Logging --version etc. is OK.
6424exec 5>>config.log
6425{
6426 echo
6427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6428## Running $as_me. ##
6429_ASBOX
6430} >&5
6431cat >&5 <<_CSEOF
6432
6433This file was extended by $as_me, which was
6434generated by GNU Autoconf 2.59. Invocation command line was
6435
6436 CONFIG_FILES = $CONFIG_FILES
6437 CONFIG_HEADERS = $CONFIG_HEADERS
6438 CONFIG_LINKS = $CONFIG_LINKS
6439 CONFIG_COMMANDS = $CONFIG_COMMANDS
6440 $ $0 $@
6441
6442_CSEOF
6443echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6444echo >&5
6445_ACEOF
6446
6447# Files that config.status was made for.
6448if test -n "$ac_config_files"; then
6449 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
379832de
HPN
6450fi
6451
b7026657
AC
6452if test -n "$ac_config_headers"; then
6453 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6454fi
6455
6456if test -n "$ac_config_links"; then
6457 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6458fi
6459
6460if test -n "$ac_config_commands"; then
6461 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6462fi
6463
6464cat >>$CONFIG_STATUS <<\_ACEOF
6465
6466ac_cs_usage="\
6467\`$as_me' instantiates files from templates according to the
6468current configuration.
6469
6470Usage: $0 [OPTIONS] [FILE]...
6471
6472 -h, --help print this help, then exit
6473 -V, --version print version number, then exit
6474 -q, --quiet do not print progress messages
6475 -d, --debug don't remove temporary files
6476 --recheck update $as_me by reconfiguring in the same conditions
6477 --file=FILE[:TEMPLATE]
6478 instantiate the configuration file FILE
6479 --header=FILE[:TEMPLATE]
6480 instantiate the configuration header FILE
6481
6482Configuration files:
6483$config_files
6484
6485Configuration headers:
6486$config_headers
6487
6488Configuration links:
6489$config_links
6490
6491Configuration commands:
6492$config_commands
6493
6494Report bugs to <bug-autoconf@gnu.org>."
6495_ACEOF
6496
6497cat >>$CONFIG_STATUS <<_ACEOF
6498ac_cs_version="\\
6499config.status
6500configured by $0, generated by GNU Autoconf 2.59,
6501 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6502
6503Copyright (C) 2003 Free Software Foundation, Inc.
6504This config.status script is free software; the Free Software Foundation
6505gives unlimited permission to copy, distribute and modify it."
6506srcdir=$srcdir
6507INSTALL="$INSTALL"
6508_ACEOF
6509
6510cat >>$CONFIG_STATUS <<\_ACEOF
6511# If no file are specified by the user, then we need to provide default
6512# value. By we need to know if files were specified by the user.
6513ac_need_defaults=:
6514while test $# != 0
6515do
6516 case $1 in
6517 --*=*)
6518 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6519 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6520 ac_shift=:
c906108c 6521 ;;
b7026657
AC
6522 -*)
6523 ac_option=$1
6524 ac_optarg=$2
6525 ac_shift=shift
c906108c 6526 ;;
b7026657
AC
6527 *) # This is not an option, so the user has probably given explicit
6528 # arguments.
6529 ac_option=$1
6530 ac_need_defaults=false;;
6531 esac
c906108c 6532
b7026657
AC
6533 case $ac_option in
6534 # Handling of the options.
6535_ACEOF
6536cat >>$CONFIG_STATUS <<\_ACEOF
6537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6538 ac_cs_recheck=: ;;
6539 --version | --vers* | -V )
6540 echo "$ac_cs_version"; exit 0 ;;
6541 --he | --h)
6542 # Conflict between --help and --header
6543 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6544Try \`$0 --help' for more information." >&5
6545echo "$as_me: error: ambiguous option: $1
6546Try \`$0 --help' for more information." >&2;}
6547 { (exit 1); exit 1; }; };;
6548 --help | --hel | -h )
6549 echo "$ac_cs_usage"; exit 0 ;;
6550 --debug | --d* | -d )
6551 debug=: ;;
6552 --file | --fil | --fi | --f )
6553 $ac_shift
6554 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6555 ac_need_defaults=false;;
6556 --header | --heade | --head | --hea )
6557 $ac_shift
6558 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6559 ac_need_defaults=false;;
6560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6562 ac_cs_silent=: ;;
c906108c 6563
b7026657
AC
6564 # This is an error.
6565 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6566Try \`$0 --help' for more information." >&5
6567echo "$as_me: error: unrecognized option: $1
6568Try \`$0 --help' for more information." >&2;}
6569 { (exit 1); exit 1; }; } ;;
c906108c 6570
b7026657
AC
6571 *) ac_config_targets="$ac_config_targets $1" ;;
6572
6573 esac
6574 shift
6575done
6576
6577ac_configure_extra_args=
6578
6579if $ac_cs_silent; then
6580 exec 6>/dev/null
6581 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
6582fi
6583
b7026657
AC
6584_ACEOF
6585cat >>$CONFIG_STATUS <<_ACEOF
6586if \$ac_cs_recheck; then
6587 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6588 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6589fi
c906108c 6590
b7026657 6591_ACEOF
c906108c 6592
c906108c 6593
c906108c 6594
b7026657
AC
6595
6596
6597cat >>$CONFIG_STATUS <<\_ACEOF
6598for ac_config_target in $ac_config_targets
c906108c 6599do
b7026657
AC
6600 case "$ac_config_target" in
6601 # Handling of arguments.
6602 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6603 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6604 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6605 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
38f48d72
AC
6606 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6607 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
b7026657
AC
6608 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6609 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6610echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6611 { (exit 1); exit 1; }; };;
c906108c
SS
6612 esac
6613done
6614
b7026657
AC
6615# If the user did not use the arguments to specify the items to instantiate,
6616# then the envvar interface is used. Set only those that are not.
6617# We use the long form for the default assignment because of an extremely
6618# bizarre bug on SunOS 4.1.3.
6619if $ac_need_defaults; then
6620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6622 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6623 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6624fi
6625
6626# Have a temporary directory for convenience. Make it in the build tree
6627# simply because there is no reason to put it here, and in addition,
6628# creating and moving files from /tmp can sometimes cause problems.
6629# Create a temporary directory, and hook for its removal unless debugging.
6630$debug ||
6631{
6632 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6633 trap '{ (exit 1); exit 1; }' 1 2 13 15
6634}
c906108c 6635
b7026657 6636# Create a (secure) tmp directory for tmp files.
c906108c 6637
b7026657
AC
6638{
6639 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6640 test -n "$tmp" && test -d "$tmp"
6641} ||
6642{
6643 tmp=./confstat$$-$RANDOM
6644 (umask 077 && mkdir $tmp)
6645} ||
6646{
6647 echo "$me: cannot create a temporary directory in ." >&2
6648 { (exit 1); exit 1; }
6649}
6650
6651_ACEOF
6652
6653cat >>$CONFIG_STATUS <<_ACEOF
6654
6655#
6656# CONFIG_FILES section.
6657#
c906108c 6658
b7026657
AC
6659# No need to generate the scripts if there are no CONFIG_FILES.
6660# This happens for instance when ./config.status config.h
6661if test -n "\$CONFIG_FILES"; then
6662 # Protect against being on the right side of a sed subst in config.status.
6663 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6664 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
b7026657
AC
6665s,@SHELL@,$SHELL,;t t
6666s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6667s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6668s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6669s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6670s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6671s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6672s,@exec_prefix@,$exec_prefix,;t t
6673s,@prefix@,$prefix,;t t
6674s,@program_transform_name@,$program_transform_name,;t t
6675s,@bindir@,$bindir,;t t
6676s,@sbindir@,$sbindir,;t t
6677s,@libexecdir@,$libexecdir,;t t
6678s,@datadir@,$datadir,;t t
6679s,@sysconfdir@,$sysconfdir,;t t
6680s,@sharedstatedir@,$sharedstatedir,;t t
6681s,@localstatedir@,$localstatedir,;t t
6682s,@libdir@,$libdir,;t t
6683s,@includedir@,$includedir,;t t
6684s,@oldincludedir@,$oldincludedir,;t t
6685s,@infodir@,$infodir,;t t
6686s,@mandir@,$mandir,;t t
6687s,@build_alias@,$build_alias,;t t
6688s,@host_alias@,$host_alias,;t t
6689s,@target_alias@,$target_alias,;t t
6690s,@DEFS@,$DEFS,;t t
6691s,@ECHO_C@,$ECHO_C,;t t
6692s,@ECHO_N@,$ECHO_N,;t t
6693s,@ECHO_T@,$ECHO_T,;t t
6694s,@LIBS@,$LIBS,;t t
35695fd6
AC
6695s,@sim_environment@,$sim_environment,;t t
6696s,@sim_alignment@,$sim_alignment,;t t
6697s,@sim_assert@,$sim_assert,;t t
6698s,@sim_bitsize@,$sim_bitsize,;t t
6699s,@sim_endian@,$sim_endian,;t t
6700s,@sim_hostendian@,$sim_hostendian,;t t
6701s,@sim_float@,$sim_float,;t t
6702s,@sim_scache@,$sim_scache,;t t
6703s,@sim_default_model@,$sim_default_model,;t t
6704s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6705s,@sim_hw_objs@,$sim_hw_objs,;t t
6706s,@sim_hw@,$sim_hw,;t t
6707s,@sim_inline@,$sim_inline,;t t
6708s,@sim_packages@,$sim_packages,;t t
6709s,@sim_regparm@,$sim_regparm,;t t
6710s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6711s,@sim_smp@,$sim_smp,;t t
6712s,@sim_stdcall@,$sim_stdcall,;t t
6713s,@sim_xor_endian@,$sim_xor_endian,;t t
6714s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6715s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
b7026657
AC
6716s,@build@,$build,;t t
6717s,@build_cpu@,$build_cpu,;t t
6718s,@build_vendor@,$build_vendor,;t t
6719s,@build_os@,$build_os,;t t
6720s,@host@,$host,;t t
6721s,@host_cpu@,$host_cpu,;t t
6722s,@host_vendor@,$host_vendor,;t t
6723s,@host_os@,$host_os,;t t
6724s,@target@,$target,;t t
6725s,@target_cpu@,$target_cpu,;t t
6726s,@target_vendor@,$target_vendor,;t t
6727s,@target_os@,$target_os,;t t
6728s,@CC@,$CC,;t t
6729s,@CFLAGS@,$CFLAGS,;t t
6730s,@LDFLAGS@,$LDFLAGS,;t t
6731s,@CPPFLAGS@,$CPPFLAGS,;t t
6732s,@ac_ct_CC@,$ac_ct_CC,;t t
6733s,@EXEEXT@,$EXEEXT,;t t
6734s,@OBJEXT@,$OBJEXT,;t t
6735s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6736s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6737s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6738s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
6739s,@HDEFINES@,$HDEFINES,;t t
6740s,@AR@,$AR,;t t
6741s,@RANLIB@,$RANLIB,;t t
6742s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
2f0122dc
DJ
6743s,@USE_NLS@,$USE_NLS,;t t
6744s,@LIBINTL@,$LIBINTL,;t t
6745s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6746s,@INCINTL@,$INCINTL,;t t
6747s,@XGETTEXT@,$XGETTEXT,;t t
6748s,@GMSGFMT@,$GMSGFMT,;t t
6749s,@POSUB@,$POSUB,;t t
6750s,@CATALOGS@,$CATALOGS,;t t
6751s,@DATADIRNAME@,$DATADIRNAME,;t t
6752s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6753s,@GENCAT@,$GENCAT,;t t
6754s,@CATOBJEXT@,$CATOBJEXT,;t t
b7026657
AC
6755s,@CPP@,$CPP,;t t
6756s,@EGREP@,$EGREP,;t t
b7026657
AC
6757s,@MAINT@,$MAINT,;t t
6758s,@sim_bswap@,$sim_bswap,;t t
6759s,@sim_cflags@,$sim_cflags,;t t
6760s,@sim_debug@,$sim_debug,;t t
6761s,@sim_stdio@,$sim_stdio,;t t
6762s,@sim_trace@,$sim_trace,;t t
6763s,@sim_profile@,$sim_profile,;t t
6764s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
6765s,@sim_igen_flags@,$sim_igen_flags,;t t
6766s,@sim_m16_flags@,$sim_m16_flags,;t t
6767s,@sim_gen@,$sim_gen,;t t
6768s,@sim_multi_flags@,$sim_multi_flags,;t t
6769s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
6770s,@sim_multi_src@,$sim_multi_src,;t t
6771s,@sim_multi_obj@,$sim_multi_obj,;t t
6772s,@mips_extra_objs@,$mips_extra_objs,;t t
6773s,@mips_igen_engine@,$mips_igen_engine,;t t
6774s,@mips_extra_libs@,$mips_extra_libs,;t t
6775s,@cgen_breaks@,$cgen_breaks,;t t
6776s,@LIBOBJS@,$LIBOBJS,;t t
6777s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 6778CEOF
b7026657
AC
6779
6780_ACEOF
6781
6782 cat >>$CONFIG_STATUS <<\_ACEOF
6783 # Split the substitutions into bite-sized pieces for seds with
6784 # small command number limits, like on Digital OSF/1 and HP-UX.
6785 ac_max_sed_lines=48
6786 ac_sed_frag=1 # Number of current file.
6787 ac_beg=1 # First line for current file.
6788 ac_end=$ac_max_sed_lines # Line after last line for current file.
6789 ac_more_lines=:
6790 ac_sed_cmds=
6791 while $ac_more_lines; do
6792 if test $ac_beg -gt 1; then
6793 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
c906108c 6794 else
b7026657
AC
6795 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6796 fi
6797 if test ! -s $tmp/subs.frag; then
6798 ac_more_lines=false
6799 else
6800 # The purpose of the label and of the branching condition is to
6801 # speed up the sed processing (if there are no `@' at all, there
6802 # is no need to browse any of the substitutions).
6803 # These are the two extra sed commands mentioned above.
6804 (echo ':t
6805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6806 if test -z "$ac_sed_cmds"; then
6807 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6808 else
6809 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6810 fi
6811 ac_sed_frag=`expr $ac_sed_frag + 1`
6812 ac_beg=$ac_end
6813 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 6814 fi
b7026657
AC
6815 done
6816 if test -z "$ac_sed_cmds"; then
6817 ac_sed_cmds=cat
c906108c 6818 fi
b7026657 6819fi # test -n "$CONFIG_FILES"
c906108c 6820
b7026657
AC
6821_ACEOF
6822cat >>$CONFIG_STATUS <<\_ACEOF
6823for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 6824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
6825 case $ac_file in
6826 - | *:- | *:-:* ) # input from stdin
6827 cat >$tmp/stdin
6828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6832 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
6833 esac
6834
b7026657
AC
6835 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6836 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6838 X"$ac_file" : 'X\(//\)[^/]' \| \
6839 X"$ac_file" : 'X\(//\)$' \| \
6840 X"$ac_file" : 'X\(/\)' \| \
6841 . : '\(.\)' 2>/dev/null ||
6842echo X"$ac_file" |
6843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6845 /^X\(\/\/\)$/{ s//\1/; q; }
6846 /^X\(\/\).*/{ s//\1/; q; }
6847 s/.*/./; q'`
6848 { if $as_mkdir_p; then
6849 mkdir -p "$ac_dir"
c906108c 6850 else
b7026657
AC
6851 as_dir="$ac_dir"
6852 as_dirs=
6853 while test ! -d "$as_dir"; do
6854 as_dirs="$as_dir $as_dirs"
6855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6857 X"$as_dir" : 'X\(//\)[^/]' \| \
6858 X"$as_dir" : 'X\(//\)$' \| \
6859 X"$as_dir" : 'X\(/\)' \| \
6860 . : '\(.\)' 2>/dev/null ||
6861echo X"$as_dir" |
6862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6864 /^X\(\/\/\)$/{ s//\1/; q; }
6865 /^X\(\/\).*/{ s//\1/; q; }
6866 s/.*/./; q'`
6867 done
6868 test ! -n "$as_dirs" || mkdir $as_dirs
6869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6870echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6871 { (exit 1); exit 1; }; }; }
6872
6873 ac_builddir=.
c906108c 6874
b7026657
AC
6875if test "$ac_dir" != .; then
6876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6877 # A "../" for each directory in $ac_dir_suffix.
6878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6879else
6880 ac_dir_suffix= ac_top_builddir=
6881fi
6882
6883case $srcdir in
6884 .) # No --srcdir option. We are building in place.
6885 ac_srcdir=.
6886 if test -z "$ac_top_builddir"; then
6887 ac_top_srcdir=.
6888 else
6889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6890 fi ;;
6891 [\\/]* | ?:[\\/]* ) # Absolute path.
6892 ac_srcdir=$srcdir$ac_dir_suffix;
6893 ac_top_srcdir=$srcdir ;;
c906108c 6894 *) # Relative path.
b7026657
AC
6895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6897esac
c906108c 6898
b7026657
AC
6899# Do not use `cd foo && pwd` to compute absolute paths, because
6900# the directories may not exist.
6901case `pwd` in
6902.) ac_abs_builddir="$ac_dir";;
6903*)
6904 case "$ac_dir" in
6905 .) ac_abs_builddir=`pwd`;;
6906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6908 esac;;
6909esac
6910case $ac_abs_builddir in
6911.) ac_abs_top_builddir=${ac_top_builddir}.;;
6912*)
6913 case ${ac_top_builddir}. in
6914 .) ac_abs_top_builddir=$ac_abs_builddir;;
6915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6917 esac;;
6918esac
6919case $ac_abs_builddir in
6920.) ac_abs_srcdir=$ac_srcdir;;
6921*)
6922 case $ac_srcdir in
6923 .) ac_abs_srcdir=$ac_abs_builddir;;
6924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6926 esac;;
6927esac
6928case $ac_abs_builddir in
6929.) ac_abs_top_srcdir=$ac_top_srcdir;;
6930*)
6931 case $ac_top_srcdir in
6932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6935 esac;;
6936esac
c906108c 6937
b7026657
AC
6938
6939 case $INSTALL in
6940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6941 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
6942 esac
6943
40a5538e
CF
6944 if test x"$ac_file" != x-; then
6945 { echo "$as_me:$LINENO: creating $ac_file" >&5
6946echo "$as_me: creating $ac_file" >&6;}
6947 rm -f "$ac_file"
6948 fi
b7026657
AC
6949 # Let's still pretend it is `configure' which instantiates (i.e., don't
6950 # use $as_me), people would be surprised to read:
6951 # /* config.h. Generated by config.status. */
6952 if test x"$ac_file" = x-; then
6953 configure_input=
6954 else
6955 configure_input="$ac_file. "
6956 fi
6957 configure_input=$configure_input"Generated from `echo $ac_file_in |
6958 sed 's,.*/,,'` by configure."
6959
6960 # First look for the input files in the build tree, otherwise in the
6961 # src tree.
6962 ac_file_inputs=`IFS=:
6963 for f in $ac_file_in; do
6964 case $f in
6965 -) echo $tmp/stdin ;;
6966 [\\/$]*)
6967 # Absolute (can't be DOS-style, as IFS=:)
6968 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6969echo "$as_me: error: cannot find input file: $f" >&2;}
6970 { (exit 1); exit 1; }; }
6971 echo "$f";;
6972 *) # Relative
6973 if test -f "$f"; then
6974 # Build tree
6975 echo "$f"
6976 elif test -f "$srcdir/$f"; then
6977 # Source tree
6978 echo "$srcdir/$f"
6979 else
6980 # /dev/null tree
6981 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6982echo "$as_me: error: cannot find input file: $f" >&2;}
6983 { (exit 1); exit 1; }; }
6984 fi;;
6985 esac
6986 done` || { (exit 1); exit 1; }
6987_ACEOF
6988cat >>$CONFIG_STATUS <<_ACEOF
6989 sed "$ac_vpsub
6990$extrasub
6991_ACEOF
6992cat >>$CONFIG_STATUS <<\_ACEOF
6993:t
6994/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6995s,@configure_input@,$configure_input,;t t
6996s,@srcdir@,$ac_srcdir,;t t
6997s,@abs_srcdir@,$ac_abs_srcdir,;t t
6998s,@top_srcdir@,$ac_top_srcdir,;t t
6999s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7000s,@builddir@,$ac_builddir,;t t
7001s,@abs_builddir@,$ac_abs_builddir,;t t
7002s,@top_builddir@,$ac_top_builddir,;t t
7003s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7004s,@INSTALL@,$ac_INSTALL,;t t
7005" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7006 rm -f $tmp/stdin
7007 if test x"$ac_file" != x-; then
7008 mv $tmp/out $ac_file
7009 else
7010 cat $tmp/out
7011 rm -f $tmp/out
7012 fi
7013
7014done
7015_ACEOF
7016cat >>$CONFIG_STATUS <<\_ACEOF
7017
7018#
7019# CONFIG_HEADER section.
7020#
c906108c
SS
7021
7022# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7023# NAME is the cpp macro being defined and VALUE is the value it is being given.
7024#
7025# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
7026ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7027ac_dB='[ ].*$,\1#\2'
7028ac_dC=' '
7029ac_dD=',;t'
7030# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7031ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7032ac_uB='$,\1#\2define\3'
c906108c 7033ac_uC=' '
b7026657
AC
7034ac_uD=',;t'
7035
7036for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 7037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
7038 case $ac_file in
7039 - | *:- | *:-:* ) # input from stdin
7040 cat >$tmp/stdin
7041 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7042 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7043 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7045 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
7046 esac
7047
b7026657
AC
7048 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7049echo "$as_me: creating $ac_file" >&6;}
7050
7051 # First look for the input files in the build tree, otherwise in the
7052 # src tree.
7053 ac_file_inputs=`IFS=:
7054 for f in $ac_file_in; do
7055 case $f in
7056 -) echo $tmp/stdin ;;
7057 [\\/$]*)
7058 # Absolute (can't be DOS-style, as IFS=:)
7059 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7060echo "$as_me: error: cannot find input file: $f" >&2;}
7061 { (exit 1); exit 1; }; }
7062 # Do quote $f, to prevent DOS paths from being IFS'd.
7063 echo "$f";;
7064 *) # Relative
7065 if test -f "$f"; then
7066 # Build tree
7067 echo "$f"
7068 elif test -f "$srcdir/$f"; then
7069 # Source tree
7070 echo "$srcdir/$f"
7071 else
7072 # /dev/null tree
7073 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7074echo "$as_me: error: cannot find input file: $f" >&2;}
7075 { (exit 1); exit 1; }; }
7076 fi;;
7077 esac
7078 done` || { (exit 1); exit 1; }
7079 # Remove the trailing spaces.
7080 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7081
7082_ACEOF
7083
7084# Transform confdefs.h into two sed scripts, `conftest.defines' and
7085# `conftest.undefs', that substitutes the proper values into
7086# config.h.in to produce config.h. The first handles `#define'
7087# templates, and the second `#undef' templates.
7088# And first: Protect against being on the right side of a sed subst in
7089# config.status. Protect against being in an unquoted here document
7090# in config.status.
7091rm -f conftest.defines conftest.undefs
7092# Using a here document instead of a string reduces the quoting nightmare.
7093# Putting comments in sed scripts is not portable.
7094#
7095# `end' is used to avoid that the second main sed command (meant for
7096# 0-ary CPP macros) applies to n-ary macro definitions.
7097# See the Autoconf documentation for `clear'.
7098cat >confdef2sed.sed <<\_ACEOF
7099s/[\\&,]/\\&/g
7100s,[\\$`],\\&,g
7101t clear
7102: clear
7103s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7104t end
7105s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7106: end
7107_ACEOF
7108# If some macros were called several times there might be several times
7109# the same #defines, which is useless. Nevertheless, we may not want to
7110# sort them, since we want the *last* AC-DEFINE to be honored.
7111uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7112sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7113rm -f confdef2sed.sed
c906108c
SS
7114
7115# This sed command replaces #undef with comments. This is necessary, for
7116# example, in the case of _POSIX_SOURCE, which is predefined and required
7117# on some systems where configure will not decide to define it.
b7026657
AC
7118cat >>conftest.undefs <<\_ACEOF
7119s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7120_ACEOF
7121
7122# Break up conftest.defines because some shells have a limit on the size
7123# of here documents, and old seds have small limits too (100 cmds).
7124echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7125echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7126echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7127echo ' :' >>$CONFIG_STATUS
7128rm -f conftest.tail
7129while grep . conftest.defines >/dev/null
7130do
7131 # Write a limited-size here document to $tmp/defines.sed.
7132 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7133 # Speed up: don't consider the non `#define' lines.
7134 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7135 # Work around the forget-to-reset-the-flag bug.
7136 echo 't clr' >>$CONFIG_STATUS
7137 echo ': clr' >>$CONFIG_STATUS
7138 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7139 echo 'CEOF
7140 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7141 rm -f $tmp/in
7142 mv $tmp/out $tmp/in
7143' >>$CONFIG_STATUS
7144 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7145 rm -f conftest.defines
7146 mv conftest.tail conftest.defines
7147done
7148rm -f conftest.defines
7149echo ' fi # grep' >>$CONFIG_STATUS
7150echo >>$CONFIG_STATUS
c906108c 7151
b7026657
AC
7152# Break up conftest.undefs because some shells have a limit on the size
7153# of here documents, and old seds have small limits too (100 cmds).
7154echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 7155rm -f conftest.tail
b7026657 7156while grep . conftest.undefs >/dev/null
c906108c 7157do
b7026657
AC
7158 # Write a limited-size here document to $tmp/undefs.sed.
7159 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7160 # Speed up: don't consider the non `#undef'
7161 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7162 # Work around the forget-to-reset-the-flag bug.
7163 echo 't clr' >>$CONFIG_STATUS
7164 echo ': clr' >>$CONFIG_STATUS
7165 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 7166 echo 'CEOF
b7026657
AC
7167 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7168 rm -f $tmp/in
7169 mv $tmp/out $tmp/in
7170' >>$CONFIG_STATUS
7171 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7172 rm -f conftest.undefs
7173 mv conftest.tail conftest.undefs
c906108c 7174done
b7026657
AC
7175rm -f conftest.undefs
7176
7177cat >>$CONFIG_STATUS <<\_ACEOF
7178 # Let's still pretend it is `configure' which instantiates (i.e., don't
7179 # use $as_me), people would be surprised to read:
7180 # /* config.h. Generated by config.status. */
7181 if test x"$ac_file" = x-; then
7182 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 7183 else
b7026657 7184 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 7185 fi
b7026657
AC
7186 cat $tmp/in >>$tmp/config.h
7187 rm -f $tmp/in
7188 if test x"$ac_file" != x-; then
7189 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7190 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7191echo "$as_me: $ac_file is unchanged" >&6;}
7192 else
7193 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7194$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7195 X"$ac_file" : 'X\(//\)[^/]' \| \
7196 X"$ac_file" : 'X\(//\)$' \| \
7197 X"$ac_file" : 'X\(/\)' \| \
7198 . : '\(.\)' 2>/dev/null ||
7199echo X"$ac_file" |
7200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7202 /^X\(\/\/\)$/{ s//\1/; q; }
7203 /^X\(\/\).*/{ s//\1/; q; }
7204 s/.*/./; q'`
7205 { if $as_mkdir_p; then
7206 mkdir -p "$ac_dir"
7207 else
7208 as_dir="$ac_dir"
7209 as_dirs=
7210 while test ! -d "$as_dir"; do
7211 as_dirs="$as_dir $as_dirs"
7212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7213$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7214 X"$as_dir" : 'X\(//\)[^/]' \| \
7215 X"$as_dir" : 'X\(//\)$' \| \
7216 X"$as_dir" : 'X\(/\)' \| \
7217 . : '\(.\)' 2>/dev/null ||
7218echo X"$as_dir" |
7219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7221 /^X\(\/\/\)$/{ s//\1/; q; }
7222 /^X\(\/\).*/{ s//\1/; q; }
7223 s/.*/./; q'`
7224 done
7225 test ! -n "$as_dirs" || mkdir $as_dirs
7226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7227echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7228 { (exit 1); exit 1; }; }; }
c906108c 7229
b7026657
AC
7230 rm -f $ac_file
7231 mv $tmp/config.h $ac_file
7232 fi
7233 else
7234 cat $tmp/config.h
7235 rm -f $tmp/config.h
7236 fi
7237done
7238_ACEOF
7239cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 7240
b7026657
AC
7241#
7242# CONFIG_LINKS section.
7243#
c906108c 7244
b7026657
AC
7245for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7246 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7247 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 7248
b7026657
AC
7249 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7250echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
7251
7252 if test ! -r $srcdir/$ac_source; then
b7026657
AC
7253 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7254echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7255 { (exit 1); exit 1; }; }
c906108c
SS
7256 fi
7257 rm -f $ac_dest
7258
7259 # Make relative symlinks.
b7026657
AC
7260 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7261$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7262 X"$ac_dest" : 'X\(//\)[^/]' \| \
7263 X"$ac_dest" : 'X\(//\)$' \| \
7264 X"$ac_dest" : 'X\(/\)' \| \
7265 . : '\(.\)' 2>/dev/null ||
7266echo X"$ac_dest" |
7267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7269 /^X\(\/\/\)$/{ s//\1/; q; }
7270 /^X\(\/\).*/{ s//\1/; q; }
7271 s/.*/./; q'`
7272 { if $as_mkdir_p; then
7273 mkdir -p "$ac_dest_dir"
c906108c 7274 else
b7026657
AC
7275 as_dir="$ac_dest_dir"
7276 as_dirs=
7277 while test ! -d "$as_dir"; do
7278 as_dirs="$as_dir $as_dirs"
7279 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7280$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7281 X"$as_dir" : 'X\(//\)[^/]' \| \
7282 X"$as_dir" : 'X\(//\)$' \| \
7283 X"$as_dir" : 'X\(/\)' \| \
7284 . : '\(.\)' 2>/dev/null ||
7285echo X"$as_dir" |
7286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7288 /^X\(\/\/\)$/{ s//\1/; q; }
7289 /^X\(\/\).*/{ s//\1/; q; }
7290 s/.*/./; q'`
7291 done
7292 test ! -n "$as_dirs" || mkdir $as_dirs
7293 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7294echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7295 { (exit 1); exit 1; }; }; }
7296
7297 ac_builddir=.
7298
7299if test "$ac_dest_dir" != .; then
7300 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7301 # A "../" for each directory in $ac_dir_suffix.
7302 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7303else
7304 ac_dir_suffix= ac_top_builddir=
7305fi
7306
7307case $srcdir in
7308 .) # No --srcdir option. We are building in place.
7309 ac_srcdir=.
7310 if test -z "$ac_top_builddir"; then
7311 ac_top_srcdir=.
7312 else
7313 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7314 fi ;;
7315 [\\/]* | ?:[\\/]* ) # Absolute path.
7316 ac_srcdir=$srcdir$ac_dir_suffix;
7317 ac_top_srcdir=$srcdir ;;
7318 *) # Relative path.
7319 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7320 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7321esac
7322
7323# Do not use `cd foo && pwd` to compute absolute paths, because
7324# the directories may not exist.
7325case `pwd` in
7326.) ac_abs_builddir="$ac_dest_dir";;
7327*)
7328 case "$ac_dest_dir" in
7329 .) ac_abs_builddir=`pwd`;;
7330 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
7331 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
7332 esac;;
7333esac
7334case $ac_abs_builddir in
7335.) ac_abs_top_builddir=${ac_top_builddir}.;;
7336*)
7337 case ${ac_top_builddir}. in
7338 .) ac_abs_top_builddir=$ac_abs_builddir;;
7339 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7340 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7341 esac;;
7342esac
7343case $ac_abs_builddir in
7344.) ac_abs_srcdir=$ac_srcdir;;
7345*)
7346 case $ac_srcdir in
7347 .) ac_abs_srcdir=$ac_abs_builddir;;
7348 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7349 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7350 esac;;
7351esac
7352case $ac_abs_builddir in
7353.) ac_abs_top_srcdir=$ac_top_srcdir;;
7354*)
7355 case $ac_top_srcdir in
7356 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7357 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7358 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7359 esac;;
7360esac
c906108c 7361
b7026657
AC
7362
7363 case $srcdir in
7364 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7365 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
7366 esac
7367
b7026657
AC
7368 # Try a symlink, then a hard link, then a copy.
7369 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7370 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
7371 cp -p $srcdir/$ac_source $ac_dest ||
7372 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7373echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7374 { (exit 1); exit 1; }; }
c906108c 7375done
b7026657
AC
7376_ACEOF
7377cat >>$CONFIG_STATUS <<\_ACEOF
7378
7379#
7380# CONFIG_COMMANDS section.
7381#
7382for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7383 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7384 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7385 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7386$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7387 X"$ac_dest" : 'X\(//\)[^/]' \| \
7388 X"$ac_dest" : 'X\(//\)$' \| \
7389 X"$ac_dest" : 'X\(/\)' \| \
7390 . : '\(.\)' 2>/dev/null ||
7391echo X"$ac_dest" |
7392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7394 /^X\(\/\/\)$/{ s//\1/; q; }
7395 /^X\(\/\).*/{ s//\1/; q; }
7396 s/.*/./; q'`
7397 { if $as_mkdir_p; then
7398 mkdir -p "$ac_dir"
7399 else
7400 as_dir="$ac_dir"
7401 as_dirs=
7402 while test ! -d "$as_dir"; do
7403 as_dirs="$as_dir $as_dirs"
7404 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7406 X"$as_dir" : 'X\(//\)[^/]' \| \
7407 X"$as_dir" : 'X\(//\)$' \| \
7408 X"$as_dir" : 'X\(/\)' \| \
7409 . : '\(.\)' 2>/dev/null ||
7410echo X"$as_dir" |
7411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7413 /^X\(\/\/\)$/{ s//\1/; q; }
7414 /^X\(\/\).*/{ s//\1/; q; }
7415 s/.*/./; q'`
7416 done
7417 test ! -n "$as_dirs" || mkdir $as_dirs
7418 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7419echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7420 { (exit 1); exit 1; }; }; }
7421
7422 ac_builddir=.
7423
7424if test "$ac_dir" != .; then
7425 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7426 # A "../" for each directory in $ac_dir_suffix.
7427 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7428else
7429 ac_dir_suffix= ac_top_builddir=
7430fi
c906108c 7431
b7026657
AC
7432case $srcdir in
7433 .) # No --srcdir option. We are building in place.
7434 ac_srcdir=.
7435 if test -z "$ac_top_builddir"; then
7436 ac_top_srcdir=.
7437 else
7438 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7439 fi ;;
7440 [\\/]* | ?:[\\/]* ) # Absolute path.
7441 ac_srcdir=$srcdir$ac_dir_suffix;
7442 ac_top_srcdir=$srcdir ;;
7443 *) # Relative path.
7444 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7445 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7446esac
7447
7448# Do not use `cd foo && pwd` to compute absolute paths, because
7449# the directories may not exist.
7450case `pwd` in
7451.) ac_abs_builddir="$ac_dir";;
7452*)
7453 case "$ac_dir" in
7454 .) ac_abs_builddir=`pwd`;;
7455 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7456 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7457 esac;;
7458esac
7459case $ac_abs_builddir in
7460.) ac_abs_top_builddir=${ac_top_builddir}.;;
7461*)
7462 case ${ac_top_builddir}. in
7463 .) ac_abs_top_builddir=$ac_abs_builddir;;
7464 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7465 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7466 esac;;
7467esac
7468case $ac_abs_builddir in
7469.) ac_abs_srcdir=$ac_srcdir;;
7470*)
7471 case $ac_srcdir in
7472 .) ac_abs_srcdir=$ac_abs_builddir;;
7473 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7474 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7475 esac;;
7476esac
7477case $ac_abs_builddir in
7478.) ac_abs_top_srcdir=$ac_top_srcdir;;
7479*)
7480 case $ac_top_srcdir in
7481 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7482 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7483 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7484 esac;;
7485esac
7486
7487
7488 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7489echo "$as_me: executing $ac_dest commands" >&6;}
7490 case $ac_dest in
38f48d72
AC
7491 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7492 rm -f Makesim1.tmp Makesim2.tmp Makefile
7493 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7494 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
7495 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
7496 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7497 <Makefile.sim >Makefile
38f48d72 7498 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 7499 ;;
38f48d72 7500 stamp-h ) echo > stamp-h ;;
b7026657
AC
7501 esac
7502done
7503_ACEOF
c906108c 7504
b7026657
AC
7505cat >>$CONFIG_STATUS <<\_ACEOF
7506
7507{ (exit 0); exit 0; }
7508_ACEOF
c906108c 7509chmod +x $CONFIG_STATUS
b7026657
AC
7510ac_clean_files=$ac_clean_files_save
7511
7512
7513# configure is writing to config.log, and then calls config.status.
7514# config.status does its own redirection, appending to config.log.
7515# Unfortunately, on DOS this fails, as config.log is still kept open
7516# by configure, so config.status won't be able to write to it; its
7517# output is simply discarded. So we exec the FD to /dev/null,
7518# effectively closing config.log, so it can be properly (re)opened and
7519# appended to by config.status. When coming back to configure, we
7520# need to make the FD available again.
7521if test "$no_create" != yes; then
7522 ac_cs_success=:
7523 ac_config_status_args=
7524 test "$silent" = yes &&
7525 ac_config_status_args="$ac_config_status_args --quiet"
7526 exec 5>/dev/null
7527 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7528 exec 5>>config.log
7529 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7530 # would make configure fail if this is the last instruction.
7531 $ac_cs_success || { (exit 1); exit 1; }
7532fi
c906108c
SS
7533
7534
This page took 0.736525 seconds and 4 git commands to generate.