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