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