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