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