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