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