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