]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/configure
* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
[thirdparty/binutils-gdb.git] / sim / m68hc11 / configure
CommitLineData
5d031c16 1#! /bin/sh
b7026657
AC
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
5d031c16 11
b7026657
AC
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
5d031c16 23
b7026657
AC
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
5d031c16
AC
30
31
b7026657
AC
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
5d031c16 37
b7026657
AC
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
5d031c16 50
b7026657
AC
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
5d031c16 57
b7026657
AC
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
5d031c16
AC
63
64
b7026657
AC
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
5d031c16
AC
76
77
b7026657
AC
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
5d031c16 85
b7026657
AC
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
5d031c16
AC
98
99
b7026657
AC
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
5d031c16 116
b7026657
AC
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
5d031c16 155
b7026657
AC
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
5d031c16
AC
185
186
b7026657
AC
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
5d031c16 193
b7026657
AC
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
5d031c16 199
b7026657
AC
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
5d031c16 217
b7026657
AC
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
5d031c16 224
b7026657 225as_executable_p="test -f"
5d031c16 226
b7026657
AC
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5d031c16 229
b7026657
AC
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5d031c16
AC
232
233
b7026657
AC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
5d031c16 239
b7026657
AC
240# CDPATH.
241$as_unset CDPATH
5d031c16
AC
242
243
b7026657
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5d031c16 248
b7026657 249exec 6>&1
5d031c16 250
5d031c16 251#
b7026657 252# Initializations.
5d031c16 253#
b7026657
AC
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
5d031c16 261
b7026657
AC
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
5d031c16 311
35695fd6 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile m68hc11_extra_objs cgen_breaks LIBOBJS LTLIBOBJS'
b7026657 313ac_subst_files=''
5d031c16
AC
314
315# Initialize some variables set by options.
b7026657
AC
316ac_init_help=
317ac_init_version=false
5d031c16
AC
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b7026657 320cache_file=/dev/null
5d031c16 321exec_prefix=NONE
5d031c16 322no_create=
5d031c16
AC
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
5d031c16 330srcdir=
5d031c16
AC
331verbose=
332x_includes=NONE
333x_libraries=NONE
b7026657
AC
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
5d031c16
AC
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
5d031c16
AC
353ac_prev=
354for ac_option
355do
5d031c16
AC
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
b7026657 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
5d031c16
AC
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b7026657 367 case $ac_option in
5d031c16
AC
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 372 bindir=$ac_optarg ;;
5d031c16
AC
373
374 -build | --build | --buil | --bui | --bu)
b7026657 375 ac_prev=build_alias ;;
5d031c16 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 377 build_alias=$ac_optarg ;;
5d031c16
AC
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
5d031c16
AC
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
b7026657 393 datadir=$ac_optarg ;;
5d031c16
AC
394
395 -disable-* | --disable-*)
b7026657 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5d031c16 397 # Reject names that are not valid shell variable names.
b7026657
AC
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
5d031c16
AC
403
404 -enable-* | --enable-*)
b7026657 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5d031c16 406 # Reject names that are not valid shell variable names.
b7026657
AC
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
5d031c16
AC
413 *) ac_optarg=yes ;;
414 esac
b7026657 415 eval "enable_$ac_feature='$ac_optarg'" ;;
5d031c16
AC
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
b7026657 424 exec_prefix=$ac_optarg ;;
5d031c16
AC
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
b7026657
AC
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
5d031c16
AC
436
437 -host | --host | --hos | --ho)
b7026657 438 ac_prev=host_alias ;;
5d031c16 439 -host=* | --host=* | --hos=* | --ho=*)
b7026657 440 host_alias=$ac_optarg ;;
5d031c16
AC
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 447 includedir=$ac_optarg ;;
5d031c16
AC
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 452 infodir=$ac_optarg ;;
5d031c16
AC
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 457 libdir=$ac_optarg ;;
5d031c16
AC
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
b7026657 464 libexecdir=$ac_optarg ;;
5d031c16
AC
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b7026657 473 localstatedir=$ac_optarg ;;
5d031c16
AC
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 478 mandir=$ac_optarg ;;
5d031c16
AC
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 485 | --no-cr | --no-c | -n)
5d031c16
AC
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 499 oldincludedir=$ac_optarg ;;
5d031c16
AC
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 504 prefix=$ac_optarg ;;
5d031c16
AC
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 511 program_prefix=$ac_optarg ;;
5d031c16
AC
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 518 program_suffix=$ac_optarg ;;
5d031c16
AC
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 535 program_transform_name=$ac_optarg ;;
5d031c16
AC
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
b7026657 545 sbindir=$ac_optarg ;;
5d031c16
AC
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
b7026657 556 sharedstatedir=$ac_optarg ;;
5d031c16
AC
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b7026657 561 site=$ac_optarg ;;
5d031c16
AC
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 566 srcdir=$ac_optarg ;;
5d031c16
AC
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 573 sysconfdir=$ac_optarg ;;
5d031c16
AC
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 576 ac_prev=target_alias ;;
5d031c16 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 578 target_alias=$ac_optarg ;;
5d031c16
AC
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
b7026657
AC
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
5d031c16
AC
585
586 -with-* | --with-*)
b7026657 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5d031c16 588 # Reject names that are not valid shell variable names.
b7026657
AC
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
5d031c16 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
5d031c16
AC
595 *) ac_optarg=yes ;;
596 esac
b7026657 597 eval "with_$ac_package='$ac_optarg'" ;;
5d031c16
AC
598
599 -without-* | --without-*)
b7026657 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5d031c16 601 # Reject names that are not valid shell variable names.
b7026657
AC
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
5d031c16
AC
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 617 x_includes=$ac_optarg ;;
5d031c16
AC
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 624 x_libraries=$ac_optarg ;;
5d031c16 625
b7026657
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
5d031c16
AC
629 ;;
630
b7026657
AC
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
5d031c16 641 *)
b7026657
AC
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
5d031c16
AC
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
b7026657
AC
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
5d031c16 656fi
5d031c16 657
b7026657
AC
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
5d031c16 668
b7026657
AC
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
5d031c16 672do
b7026657
AC
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
5d031c16
AC
678 esac
679done
680
b7026657
AC
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
5d031c16 698
b7026657
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
5d031c16 703
5d031c16
AC
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
b7026657
AC
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
5d031c16
AC
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
b7026657
AC
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
5d031c16 732 else
b7026657
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
5d031c16
AC
735 fi
736fi
b7026657
AC
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
5d031c16 773
b7026657
AC
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
5d031c16 782
b7026657 783Usage: $0 [OPTION]... [VAR=VALUE]...
5d031c16 784
b7026657
AC
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
5d031c16 787
b7026657 788Defaults for the options are specified in brackets.
5d031c16 789
b7026657
AC
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
5d031c16 809
b7026657
AC
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
5d031c16 814
b7026657
AC
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
5d031c16 844fi
b7026657
AC
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
35695fd6 853 --disable-nls do not use Native Language Support
b7026657
AC
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-inline=inlines Specify which functions should be inlined.
862 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify host byte endian orientation.
864 --enable-build-warnings Enable build-time compiler warnings if gcc is used
865 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
866 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
867
35695fd6
AC
868Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-included-gettext use the GNU gettext library included here
872
b7026657
AC
873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
5d031c16
AC
886fi
887
b7026657
AC
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
5d031c16 894
b7026657
AC
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5d031c16 899else
b7026657 900 ac_dir_suffix= ac_top_builddir=
5d031c16
AC
901fi
902
b7026657
AC
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
973 cd $ac_popdir
974 done
5d031c16 975fi
b7026657
AC
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979 cat <<\_ACEOF
980
981Copyright (C) 2003 Free Software Foundation, Inc.
982This configure script is free software; the Free Software Foundation
983gives unlimited permission to copy, distribute and modify it.
984_ACEOF
985 exit 0
986fi
987exec 5>config.log
988cat >&5 <<_ACEOF
989This file contains any messages produced by compilers while
990running configure, to aid debugging if configure makes a mistake.
991
992It was created by $as_me, which was
993generated by GNU Autoconf 2.59. Invocation command line was
994
995 $ $0 $@
996
997_ACEOF
998{
999cat <<_ASUNAME
1000## --------- ##
1001## Platform. ##
1002## --------- ##
1003
1004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021_ASUNAME
1022
1023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024for as_dir in $PATH
1025do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029done
1030
1031} >&5
1032
1033cat >&5 <<_ACEOF
1034
1035
1036## ----------- ##
1037## Core tests. ##
1038## ----------- ##
1039
1040_ACEOF
1041
1042
1043# Keep a trace of the command line.
1044# Strip out --no-create and --no-recursion so they do not pile up.
1045# Strip out --silent because we don't want to record it for future runs.
1046# Also quote any args containing shell meta-characters.
1047# Make two passes to allow for proper duplicate-argument suppression.
1048ac_configure_args=
1049ac_configure_args0=
1050ac_configure_args1=
1051ac_sep=
1052ac_must_keep_next=false
1053for ac_pass in 1 2
1054do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1087 ;;
1088 esac
1089 done
1090done
1091$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094# When interrupted or exit'd, cleanup temporary files, and complete
1095# config.log. We remove comments because anyway the quotes in there
1096# would cause problems or look ugly.
1097# WARNING: Be sure not to use single quotes in there, as some shells,
1098# such as our DU 5.0 friend, will then `close' the trap.
1099trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105## ---------------- ##
1106## Cache variables. ##
1107## ---------------- ##
1108_ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111{
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 ;;
1119 *)
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ;;
1123 esac;
1124}
1125 echo
1126
1127 cat <<\_ASBOX
1128## ----------------- ##
1129## Output variables. ##
1130## ----------------- ##
1131_ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142## ------------- ##
1143## Output files. ##
1144## ------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157## ----------- ##
1158## confdefs.h. ##
1159## ----------- ##
1160_ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175done
1176ac_signal=0
1177
1178# confdefs.h avoids OS command line length limits that DEFS can exceed.
1179rm -rf conftest* confdefs.h
1180# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181echo >confdefs.h
1182
1183# Predefined preprocessor variables.
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_NAME "$PACKAGE_NAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_STRING "$PACKAGE_STRING"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207_ACEOF
1208
1209
1210# Let the site file select an alternate cache file if it wants to.
1211# Prefer explicitly selected file to automatically selected ones.
1212if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 fi
1218fi
1219for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1225 fi
1226done
1227
1228if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
1239else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243fi
1244
1245# Check that the precious variables saved in the cache have kept the same
1246# value.
1247ac_cache_corrupted=false
1248for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287done
1288if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1294fi
1295
1296ac_ext=c
1297ac_cpp='$CPP $CPPFLAGS'
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
35695fd6
AC
1320 ac_config_headers="$ac_config_headers config.h:config.in"
1321
1322
1323# This file contains common code used by all simulators.
1324#
1325# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1326# directory. It is intended to be invoked before any target specific stuff.
1327# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1328# It is intended to be invoked last.
1329#
1330# The simulator's configure.in should look like:
1331#
1332# dnl Process this file with autoconf to produce a configure script.
1333# sinclude(../common/aclocal.m4)
1334# AC_PREREQ(2.5)dnl
1335# AC_INIT(Makefile.in)
1336#
1337# SIM_AC_COMMON
1338#
1339# ... target specific stuff ...
1340#
1341# SIM_AC_OUTPUT
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390sim_inline="-DDEFAULT_INLINE=0"
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427# This file is derived from `gettext.m4'. The difference is that the
1428# included macros assume Cygnus-style source and build trees.
1429
1430# Macro to add for using GNU gettext.
1431# Ulrich Drepper <drepper@cygnus.com>, 1995.
1432#
1433# This file file be copied and used freely without restrictions. It can
1434# be used in projects which are not available under the GNU Public License
1435# but which still want to provide support for the GNU gettext functionality.
1436# Please note that the actual code is *not* freely available.
1437
1438# serial 3
1439
1440
1441
1442
1443
1444# Search path for a program which passes the given test.
1445# Ulrich Drepper <drepper@cygnus.com>, 1996.
1446#
1447# This file file be copied and used freely without restrictions. It can
1448# be used in projects which are not available under the GNU Public License
1449# but which still want to provide support for the GNU gettext functionality.
1450# Please note that the actual code is *not* freely available.
1451
1452# serial 1
1453
1454
1455
1456# Check whether LC_MESSAGES is available in <locale.h>.
1457# Ulrich Drepper <drepper@cygnus.com>, 1995.
1458#
1459# This file file be copied and used freely without restrictions. It can
1460# be used in projects which are not available under the GNU Public License
1461# but which still want to provide support for the GNU gettext functionality.
1462# Please note that the actual code is *not* freely available.
1463
1464# serial 1
1465
1466
1467
1468
1469
1470
b7026657 1471
35695fd6
AC
1472# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1473# it by inlining the macro's contents.
f0569246
AC
1474# This file contains common code used by all simulators.
1475#
1476# common.m4 invokes AC macros used by all simulators and by the common
1477# directory. It is intended to be included before any target specific
1478# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1479# the Makefile. It is intended to be invoked last.
1480#
1481# The simulator's configure.in should look like:
1482#
1483# dnl Process this file with autoconf to produce a configure script.
1484# AC_PREREQ(2.5)dnl
1485# AC_INIT(Makefile.in)
35695fd6 1486# AC_CONFIG_HEADER(config.h:config.in)
f0569246 1487#
35695fd6 1488# sinclude(../common/aclocal.m4)
f0569246
AC
1489# sinclude(../common/common.m4)
1490#
1491# ... target specific stuff ...
1492
38f48d72
AC
1493ac_aux_dir=
1494for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508done
1509if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513fi
1514ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
b7026657
AC
1518# Make sure we can run config.sub.
1519$ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524echo "$as_me:$LINENO: checking build system type" >&5
1525echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 ac_cv_build_alias=$build_alias
1530test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541fi
1542echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543echo "${ECHO_T}$ac_cv_build" >&6
1544build=$ac_cv_build
1545build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550echo "$as_me:$LINENO: checking host system type" >&5
1551echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 ac_cv_host_alias=$host_alias
1556test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565echo "${ECHO_T}$ac_cv_host" >&6
1566host=$ac_cv_host
1567host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
f0569246
AC
1572echo "$as_me:$LINENO: checking target system type" >&5
1573echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574if test "${ac_cv_target+set}" = set; then
b7026657
AC
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
f0569246
AC
1577 ac_cv_target_alias=$target_alias
1578test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587echo "${ECHO_T}$ac_cv_target" >&6
1588target=$ac_cv_target
1589target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594# The aliases save the names the user supplied, while $host etc.
1595# will get canonicalized.
1596test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
1600test "$program_prefix" != NONE &&
1601 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1602# Use a double $ so make ignores it.
1603test "$program_suffix" != NONE &&
1604 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1605# Double any \ or $. echo might interpret backslashes.
1606# By default was `s,x,x', remove it if useless.
1607cat <<\_ACEOF >conftest.sed
1608s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 1609_ACEOF
f0569246
AC
1610program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1611rm conftest.sed
1612
1613ac_ext=c
1614ac_cpp='$CPP $CPPFLAGS'
1615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1617ac_compiler_gnu=$ac_cv_c_compiler_gnu
1618if test -n "$ac_tool_prefix"; then
1619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1620set dummy ${ac_tool_prefix}gcc; ac_word=$2
1621echo "$as_me:$LINENO: checking for $ac_word" >&5
1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1625else
f0569246
AC
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1628else
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640done
1641done
1642
b7026657 1643fi
b7026657 1644fi
f0569246
AC
1645CC=$ac_cv_prog_CC
1646if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648echo "${ECHO_T}$CC" >&6
b7026657
AC
1649else
1650 echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
b7026657
AC
1652fi
1653
f0569246
AC
1654fi
1655if test -z "$ac_cv_prog_CC"; then
1656 ac_ct_CC=$CC
1657 # Extract the first word of "gcc", so it can be a program name with args.
1658set dummy gcc; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
f0569246
AC
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666else
1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC="gcc"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678done
1679done
b7026657 1680
f0569246
AC
1681fi
1682fi
1683ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684if test -n "$ac_ct_CC"; then
1685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1687else
f0569246
AC
1688 echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
b7026657 1691
f0569246
AC
1692 CC=$ac_ct_CC
1693else
1694 CC="$ac_cv_prog_CC"
b7026657 1695fi
b7026657 1696
f0569246
AC
1697if test -z "$CC"; then
1698 if test -n "$ac_tool_prefix"; then
1699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1700set dummy ${ac_tool_prefix}cc; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1705else
f0569246
AC
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_CC="${ac_tool_prefix}cc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
1721done
b7026657
AC
1722
1723fi
b7026657 1724fi
f0569246
AC
1725CC=$ac_cv_prog_CC
1726if test -n "$CC"; then
1727 echo "$as_me:$LINENO: result: $CC" >&5
1728echo "${ECHO_T}$CC" >&6
1729else
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
b7026657
AC
1732fi
1733
b7026657 1734fi
f0569246
AC
1735if test -z "$ac_cv_prog_CC"; then
1736 ac_ct_CC=$CC
1737 # Extract the first word of "cc", so it can be a program name with args.
1738set dummy cc; ac_word=$2
1739echo "$as_me:$LINENO: checking for $ac_word" >&5
1740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1743else
f0569246
AC
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746else
1747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748for as_dir in $PATH
b7026657 1749do
f0569246
AC
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="cc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
b7026657 1757 fi
f0569246
AC
1758done
1759done
1760
b7026657 1761fi
f0569246
AC
1762fi
1763ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1767else
f0569246
AC
1768 echo "$as_me:$LINENO: result: no" >&5
1769echo "${ECHO_T}no" >&6
b7026657 1770fi
b7026657 1771
f0569246 1772 CC=$ac_ct_CC
b7026657 1773else
f0569246 1774 CC="$ac_cv_prog_CC"
b7026657 1775fi
b7026657 1776
b7026657 1777fi
f0569246
AC
1778if test -z "$CC"; then
1779 # Extract the first word of "cc", so it can be a program name with args.
1780set dummy cc; ac_word=$2
1781echo "$as_me:$LINENO: checking for $ac_word" >&5
1782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783if test "${ac_cv_prog_CC+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786 if test -n "$CC"; then
1787 ac_cv_prog_CC="$CC" # Let the user override the test.
1788else
1789 ac_prog_rejected=no
1790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791for as_dir in $PATH
1792do
1793 IFS=$as_save_IFS
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1798 ac_prog_rejected=yes
1799 continue
1800 fi
1801 ac_cv_prog_CC="cc"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 break 2
1804 fi
1805done
b7026657 1806done
b7026657 1807
f0569246
AC
1808if test $ac_prog_rejected = yes; then
1809 # We found a bogon in the path, so make sure we never use it.
1810 set dummy $ac_cv_prog_CC
1811 shift
1812 if test $# != 0; then
1813 # We chose a different compiler from the bogus one.
1814 # However, it has the same basename, so the bogon will be chosen
1815 # first if we set CC to just the basename; use the full file name.
1816 shift
1817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1818 fi
b7026657 1819fi
f0569246
AC
1820fi
1821fi
1822CC=$ac_cv_prog_CC
1823if test -n "$CC"; then
1824 echo "$as_me:$LINENO: result: $CC" >&5
1825echo "${ECHO_T}$CC" >&6
b7026657 1826else
f0569246
AC
1827 echo "$as_me:$LINENO: result: no" >&5
1828echo "${ECHO_T}no" >&6
b7026657 1829fi
f0569246
AC
1830
1831fi
1832if test -z "$CC"; then
1833 if test -n "$ac_tool_prefix"; then
1834 for ac_prog in cl
1835 do
1836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1838echo "$as_me:$LINENO: checking for $ac_word" >&5
1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1845else
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
b7026657 1848do
f0569246
AC
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
b7026657 1856 fi
f0569246
AC
1857done
1858done
1859
b7026657 1860fi
f0569246
AC
1861fi
1862CC=$ac_cv_prog_CC
1863if test -n "$CC"; then
1864 echo "$as_me:$LINENO: result: $CC" >&5
1865echo "${ECHO_T}$CC" >&6
b7026657 1866else
f0569246
AC
1867 echo "$as_me:$LINENO: result: no" >&5
1868echo "${ECHO_T}no" >&6
b7026657 1869fi
b7026657 1870
f0569246
AC
1871 test -n "$CC" && break
1872 done
b7026657 1873fi
f0569246
AC
1874if test -z "$CC"; then
1875 ac_ct_CC=$CC
1876 for ac_prog in cl
1877do
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879set dummy $ac_prog; ac_word=$2
1880echo "$as_me:$LINENO: checking for $ac_word" >&5
1881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
f0569246
AC
1885 if test -n "$ac_ct_CC"; then
1886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 1887else
f0569246
AC
1888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
1890do
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_CC="$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1898 fi
1899done
1900done
b7026657 1901
b7026657 1902fi
5d031c16 1903fi
f0569246
AC
1904ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905if test -n "$ac_ct_CC"; then
1906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907echo "${ECHO_T}$ac_ct_CC" >&6
1908else
1909 echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
5d031c16
AC
1911fi
1912
f0569246
AC
1913 test -n "$ac_ct_CC" && break
1914done
b7026657 1915
f0569246 1916 CC=$ac_ct_CC
5d031c16 1917fi
5d031c16
AC
1918
1919fi
1920
5d031c16 1921
f0569246
AC
1922test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1923See \`config.log' for more details." >&5
1924echo "$as_me: error: no acceptable C compiler found in \$PATH
1925See \`config.log' for more details." >&2;}
1926 { (exit 1); exit 1; }; }
1927
1928# Provide some information about the compiler.
1929echo "$as_me:$LINENO:" \
1930 "checking for C compiler version" >&5
1931ac_compiler=`set X $ac_compile; echo $2`
1932{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1933 (eval $ac_compiler --version </dev/null >&5) 2>&5
b7026657
AC
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1936 (exit $ac_status); }
1937{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1938 (eval $ac_compiler -v </dev/null >&5) 2>&5
b7026657
AC
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1941 (exit $ac_status); }
1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1943 (eval $ac_compiler -V </dev/null >&5) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }
b7026657 1947
f0569246
AC
1948cat >conftest.$ac_ext <<_ACEOF
1949/* confdefs.h. */
1950_ACEOF
1951cat confdefs.h >>conftest.$ac_ext
1952cat >>conftest.$ac_ext <<_ACEOF
1953/* end confdefs.h. */
b7026657 1954
b7026657
AC
1955int
1956main ()
1957{
f0569246 1958
b7026657
AC
1959 ;
1960 return 0;
1961}
1962_ACEOF
f0569246
AC
1963ac_clean_files_save=$ac_clean_files
1964ac_clean_files="$ac_clean_files a.out a.exe b.out"
1965# Try to create an executable without -o first, disregard a.out.
1966# It will help us diagnose broken compilers, and finding out an intuition
1967# of exeext.
1968echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1969echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1970ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1971if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1972 (eval $ac_link_default) 2>&5
b7026657
AC
1973 ac_status=$?
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1975 (exit $ac_status); }; then
1976 # Find the output, starting from the most likely. This scheme is
1977# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1978# resort.
1979
1980# Be careful to initialize this variable, since it used to be cached.
1981# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1982ac_cv_exeext=
1983# b.out is created by i960 compilers.
1984for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1985do
1986 test -f "$ac_file" || continue
1987 case $ac_file in
1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1989 ;;
1990 conftest.$ac_ext )
1991 # This is the source file.
1992 ;;
1993 [ab].out )
1994 # We found the default executable, but exeext='' is most
1995 # certainly right.
1996 break;;
1997 *.* )
1998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1999 # FIXME: I believe we export ac_cv_exeext for Libtool,
2000 # but it would be cool to find out if it's true. Does anybody
2001 # maintain Libtool? --akim.
2002 export ac_cv_exeext
2003 break;;
2004 * )
2005 break;;
2006 esac
2007done
b7026657
AC
2008else
2009 echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
2011
f0569246
AC
2012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: C compiler cannot create executables
2015See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }
b7026657
AC
2017fi
2018
f0569246
AC
2019ac_exeext=$ac_cv_exeext
2020echo "$as_me:$LINENO: result: $ac_file" >&5
2021echo "${ECHO_T}$ac_file" >&6
b7026657 2022
f0569246
AC
2023# Check the compiler produces executables we can run. If not, either
2024# the compiler is broken, or we cross compile.
2025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028# If not cross compiling, check that we can run a simple program.
2029if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
b7026657
AC
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2035 (exit $ac_status); }; }; then
2036 cross_compiling=no
2037 else
2038 if test "$cross_compiling" = maybe; then
2039 cross_compiling=yes
2040 else
2041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2042If you meant to cross compile, use \`--host'.
2043See \`config.log' for more details." >&5
2044echo "$as_me: error: cannot run C compiled programs.
2045If you meant to cross compile, use \`--host'.
2046See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2048 fi
2049 fi
2050fi
2051echo "$as_me:$LINENO: result: yes" >&5
2052echo "${ECHO_T}yes" >&6
2053
2054rm -f a.out a.exe conftest$ac_cv_exeext b.out
2055ac_clean_files=$ac_clean_files_save
2056# Check the compiler produces executables we can run. If not, either
2057# the compiler is broken, or we cross compile.
2058echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2059echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2060echo "$as_me:$LINENO: result: $cross_compiling" >&5
2061echo "${ECHO_T}$cross_compiling" >&6
2062
2063echo "$as_me:$LINENO: checking for suffix of executables" >&5
2064echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2066 (eval $ac_link) 2>&5
b7026657
AC
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2069 (exit $ac_status); }; then
2070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2071# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2072# work properly (i.e., refer to `conftest.exe'), while it won't with
2073# `rm'.
2074for ac_file in conftest.exe conftest conftest.*; do
2075 test -f "$ac_file" || continue
2076 case $ac_file in
2077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2079 export ac_cv_exeext
2080 break;;
2081 * ) break;;
2082 esac
2083done
2084else
2085 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2086See \`config.log' for more details." >&5
2087echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2088See \`config.log' for more details." >&2;}
2089 { (exit 1); exit 1; }; }
2090fi
2091
2092rm -f conftest$ac_cv_exeext
2093echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2094echo "${ECHO_T}$ac_cv_exeext" >&6
2095
2096rm -f conftest.$ac_ext
2097EXEEXT=$ac_cv_exeext
2098ac_exeext=$EXEEXT
2099echo "$as_me:$LINENO: checking for suffix of object files" >&5
2100echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2101if test "${ac_cv_objext+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
b7026657
AC
2104 cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h. */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
2109/* end confdefs.h. */
f0569246 2110
b7026657
AC
2111int
2112main ()
2113{
f0569246 2114
b7026657
AC
2115 ;
2116 return 0;
2117}
f0569246
AC
2118_ACEOF
2119rm -f conftest.o conftest.obj
2120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
b7026657
AC
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2124 (exit $ac_status); }; then
2125 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2126 case $ac_file in
2127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2129 break;;
2130 esac
2131done
b7026657
AC
2132else
2133 echo "$as_me: failed program was:" >&5
2134sed 's/^/| /' conftest.$ac_ext >&5
2135
f0569246
AC
2136{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2137See \`config.log' for more details." >&5
2138echo "$as_me: error: cannot compute suffix of object files: cannot compile
2139See \`config.log' for more details." >&2;}
2140 { (exit 1); exit 1; }; }
b7026657 2141fi
f0569246
AC
2142
2143rm -f conftest.$ac_cv_objext conftest.$ac_ext
2144fi
2145echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2146echo "${ECHO_T}$ac_cv_objext" >&6
2147OBJEXT=$ac_cv_objext
2148ac_objext=$OBJEXT
2149echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2150echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2151if test "${ac_cv_c_compiler_gnu+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
b7026657
AC
2154 cat >conftest.$ac_ext <<_ACEOF
2155/* confdefs.h. */
2156_ACEOF
2157cat confdefs.h >>conftest.$ac_ext
2158cat >>conftest.$ac_ext <<_ACEOF
2159/* end confdefs.h. */
f0569246 2160
b7026657
AC
2161int
2162main ()
2163{
f0569246
AC
2164#ifndef __GNUC__
2165 choke me
2166#endif
2167
b7026657
AC
2168 ;
2169 return 0;
2170}
2171_ACEOF
2172rm -f conftest.$ac_objext
2173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174 (eval $ac_compile) 2>conftest.er1
2175 ac_status=$?
2176 grep -v '^ *+' conftest.er1 >conftest.err
2177 rm -f conftest.er1
2178 cat conftest.err >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -z "$ac_c_werror_flag"
2182 || test ! -s conftest.err'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; } &&
2188 { ac_try='test -s conftest.$ac_objext'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
f0569246 2194 ac_compiler_gnu=yes
b7026657
AC
2195else
2196 echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
f0569246
AC
2198
2199ac_compiler_gnu=no
b7026657 2200fi
f0569246
AC
2201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2202ac_cv_c_compiler_gnu=$ac_compiler_gnu
2203
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2206echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2207GCC=`test $ac_compiler_gnu = yes && echo yes`
2208ac_test_CFLAGS=${CFLAGS+set}
2209ac_save_CFLAGS=$CFLAGS
2210CFLAGS="-g"
2211echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2212echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2213if test "${ac_cv_prog_cc_g+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2215else
f0569246 2216 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2217/* confdefs.h. */
2218_ACEOF
2219cat confdefs.h >>conftest.$ac_ext
2220cat >>conftest.$ac_ext <<_ACEOF
2221/* end confdefs.h. */
f0569246
AC
2222
2223int
2224main ()
2225{
2226
2227 ;
2228 return 0;
2229}
b7026657
AC
2230_ACEOF
2231rm -f conftest.$ac_objext
2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>conftest.er1
2234 ac_status=$?
2235 grep -v '^ *+' conftest.er1 >conftest.err
2236 rm -f conftest.er1
2237 cat conftest.err >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -z "$ac_c_werror_flag"
2241 || test ! -s conftest.err'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; } &&
2247 { ac_try='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
f0569246 2253 ac_cv_prog_cc_g=yes
b7026657
AC
2254else
2255 echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
f0569246 2258ac_cv_prog_cc_g=no
b7026657
AC
2259fi
2260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f0569246
AC
2261fi
2262echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2263echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2264if test "$ac_test_CFLAGS" = set; then
2265 CFLAGS=$ac_save_CFLAGS
2266elif test $ac_cv_prog_cc_g = yes; then
2267 if test "$GCC" = yes; then
2268 CFLAGS="-g -O2"
2269 else
2270 CFLAGS="-g"
2271 fi
2272else
2273 if test "$GCC" = yes; then
2274 CFLAGS="-O2"
2275 else
2276 CFLAGS=
2277 fi
2278fi
2279echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2280echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2281if test "${ac_cv_prog_cc_stdc+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284 ac_cv_prog_cc_stdc=no
2285ac_save_CC=$CC
b7026657
AC
2286cat >conftest.$ac_ext <<_ACEOF
2287/* confdefs.h. */
2288_ACEOF
2289cat confdefs.h >>conftest.$ac_ext
2290cat >>conftest.$ac_ext <<_ACEOF
2291/* end confdefs.h. */
f0569246
AC
2292#include <stdarg.h>
2293#include <stdio.h>
2294#include <sys/types.h>
2295#include <sys/stat.h>
2296/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2297struct buf { int x; };
2298FILE * (*rcsopen) (struct buf *, struct stat *, int);
2299static char *e (p, i)
2300 char **p;
2301 int i;
2302{
2303 return p[i];
2304}
2305static char *f (char * (*g) (char **, int), char **p, ...)
2306{
2307 char *s;
2308 va_list v;
2309 va_start (v,p);
2310 s = g (p, va_arg (v,int));
2311 va_end (v);
2312 return s;
2313}
2314
2315/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2316 function prototypes and stuff, but not '\xHH' hex character constants.
2317 These don't provoke an error unfortunately, instead are silently treated
2318 as 'x'. The following induces an error, until -std1 is added to get
2319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2320 array size at least. It's necessary to write '\x00'==0 to get something
2321 that's true only with -std1. */
2322int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2323
2324int test (int i, double x);
2325struct s1 {int (*f) (int a);};
2326struct s2 {int (*f) (double a);};
2327int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2328int argc;
2329char **argv;
2330int
2331main ()
2332{
2333return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2334 ;
2335 return 0;
2336}
b7026657 2337_ACEOF
f0569246
AC
2338# Don't try gcc -ansi; that turns off useful extensions and
2339# breaks some systems' header files.
2340# AIX -qlanglvl=ansi
2341# Ultrix and OSF/1 -std1
2342# HP-UX 10.20 and later -Ae
2343# HP-UX older versions -Aa -D_HPUX_SOURCE
2344# SVR4 -Xc -D__EXTENSIONS__
2345for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2346do
2347 CC="$ac_save_CC $ac_arg"
2348 rm -f conftest.$ac_objext
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2356 (exit $ac_status); } &&
2357 { ac_try='test -z "$ac_c_werror_flag"
2358 || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 ac_cv_prog_cc_stdc=$ac_arg
2371break
b7026657
AC
2372else
2373 echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
b7026657 2376fi
f0569246 2377rm -f conftest.err conftest.$ac_objext
5d031c16 2378done
f0569246
AC
2379rm -f conftest.$ac_ext conftest.$ac_objext
2380CC=$ac_save_CC
5d031c16 2381
f0569246 2382fi
b7026657 2383
f0569246
AC
2384case "x$ac_cv_prog_cc_stdc" in
2385 x|xno)
2386 echo "$as_me:$LINENO: result: none needed" >&5
2387echo "${ECHO_T}none needed" >&6 ;;
2388 *)
2389 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2390echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2391 CC="$CC $ac_cv_prog_cc_stdc" ;;
2392esac
b7026657 2393
f0569246
AC
2394# Some people use a C++ compiler to compile C. Since we use `exit',
2395# in C++ we need to declare it. In case someone uses the same compiler
2396# for both compiling C and C++ we need to have the C++ compiler decide
2397# the declaration of exit, since it's the most demanding environment.
2398cat >conftest.$ac_ext <<_ACEOF
2399#ifndef __cplusplus
2400 choke me
2401#endif
2402_ACEOF
2403rm -f conftest.$ac_objext
2404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2406 ac_status=$?
2407 grep -v '^ *+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag"
2413 || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 for ac_declaration in \
2426 '' \
2427 'extern "C" void std::exit (int) throw (); using std::exit;' \
2428 'extern "C" void std::exit (int); using std::exit;' \
2429 'extern "C" void exit (int) throw ();' \
2430 'extern "C" void exit (int);' \
2431 'void exit (int);'
5d031c16 2432do
b7026657
AC
2433 cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h. */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h. */
f0569246
AC
2439$ac_declaration
2440#include <stdlib.h>
b7026657
AC
2441int
2442main ()
2443{
f0569246 2444exit (42);
b7026657
AC
2445 ;
2446 return 0;
2447}
2448_ACEOF
f0569246
AC
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
f0569246 2465 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
f0569246 2471 :
b7026657
AC
2472else
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
f0569246 2476continue
5d031c16 2477fi
f0569246 2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2479 cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h. */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h. */
f0569246 2485$ac_declaration
b7026657
AC
2486int
2487main ()
2488{
f0569246 2489exit (42);
b7026657
AC
2490 ;
2491 return 0;
2492}
2493_ACEOF
f0569246
AC
2494rm -f conftest.$ac_objext
2495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
f0569246 2510 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
f0569246
AC
2516 break
2517else
2518 echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521fi
2522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523done
2524rm -f conftest*
2525if test -n "$ac_declaration"; then
2526 echo '#ifdef __cplusplus' >>confdefs.h
2527 echo $ac_declaration >>confdefs.h
2528 echo '#endif' >>confdefs.h
2529fi
2530
2531else
2532 echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535fi
2536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2537ac_ext=c
2538ac_cpp='$CPP $CPPFLAGS'
2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543# Find a good install program. We prefer a C program (faster),
2544# so one script is as good as another. But avoid the broken or
2545# incompatible versions:
2546# SysV /etc/install, /usr/sbin/install
2547# SunOS /usr/etc/install
2548# IRIX /sbin/install
2549# AIX /bin/install
2550# AmigaOS /C/install, which installs bootblocks on floppy discs
2551# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2552# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2554# OS/2's system install, which has a completely different semantic
2555# ./install, which can be erroneously created by make from ./install.sh.
2556echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2557echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2558if test -z "$INSTALL"; then
2559if test "${ac_cv_path_install+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 # Account for people who put trailing slashes in PATH elements.
2568case $as_dir/ in
2569 ./ | .// | /cC/* | \
2570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2571 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2572 /usr/ucb/* ) ;;
2573 *)
2574 # OSF1 and SCO ODT 3.0 have their own names for install.
2575 # Don't use installbsd from OSF since it installs stuff as root
2576 # by default.
2577 for ac_prog in ginstall scoinst install; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2580 if test $ac_prog = install &&
2581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # AIX install. It has an incompatible calling convention.
2583 :
2584 elif test $ac_prog = install &&
2585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # program-specific install script used by HP pwplus--don't use.
2587 :
2588 else
2589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2590 break 3
2591 fi
2592 fi
2593 done
2594 done
2595 ;;
2596esac
2597done
2598
2599
2600fi
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL=$ac_cv_path_install
2603 else
2604 # As a last resort, use the slow shell script. We don't cache a
2605 # path for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the path is relative.
2608 INSTALL=$ac_install_sh
2609 fi
2610fi
2611echo "$as_me:$LINENO: result: $INSTALL" >&5
2612echo "${ECHO_T}$INSTALL" >&6
2613
2614# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615# It thinks the first close brace ends the variable substitution.
2616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2617
2618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2619
2620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2621
2622
2623# Put a plausible default for CC_FOR_BUILD in Makefile.
2624if test "x$cross_compiling" = "xno"; then
2625 CC_FOR_BUILD='$(CC)'
b7026657 2626else
f0569246 2627 CC_FOR_BUILD=gcc
b7026657 2628fi
5d031c16 2629
5d031c16 2630
5d031c16 2631
5d031c16 2632
f0569246
AC
2633AR=${AR-ar}
2634
2635if test -n "$ac_tool_prefix"; then
2636 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2637set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2638echo "$as_me:$LINENO: checking for $ac_word" >&5
2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640if test "${ac_cv_prog_RANLIB+set}" = set; then
b7026657
AC
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642else
f0569246
AC
2643 if test -n "$RANLIB"; then
2644 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5d031c16 2645else
f0569246
AC
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657done
2658done
b7026657 2659
5d031c16 2660fi
5d031c16 2661fi
f0569246
AC
2662RANLIB=$ac_cv_prog_RANLIB
2663if test -n "$RANLIB"; then
2664 echo "$as_me:$LINENO: result: $RANLIB" >&5
2665echo "${ECHO_T}$RANLIB" >&6
2666else
2667 echo "$as_me:$LINENO: result: no" >&5
2668echo "${ECHO_T}no" >&6
2669fi
5d031c16 2670
f0569246
AC
2671fi
2672if test -z "$ac_cv_prog_RANLIB"; then
2673 ac_ct_RANLIB=$RANLIB
2674 # Extract the first word of "ranlib", so it can be a program name with args.
2675set dummy ranlib; ac_word=$2
2676echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if test -n "$ac_ct_RANLIB"; then
2682 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_RANLIB="ranlib"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
5d031c16 2694 fi
f0569246
AC
2695done
2696done
2697
2698 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2699fi
2700fi
2701ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2702if test -n "$ac_ct_RANLIB"; then
2703 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2704echo "${ECHO_T}$ac_ct_RANLIB" >&6
2705else
2706 echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6
2708fi
5d031c16 2709
f0569246
AC
2710 RANLIB=$ac_ct_RANLIB
2711else
2712 RANLIB="$ac_cv_prog_RANLIB"
2713fi
5d031c16 2714
5d031c16 2715
f0569246 2716ALL_LINGUAS=
35695fd6
AC
2717echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2719set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2720if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722else
2723 cat >conftest.make <<\_ACEOF
2724all:
2725 @echo 'ac_maketemp="$(MAKE)"'
2726_ACEOF
2727# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2728eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2729if test -n "$ac_maketemp"; then
2730 eval ac_cv_prog_make_${ac_make}_set=yes
2731else
2732 eval ac_cv_prog_make_${ac_make}_set=no
2733fi
2734rm -f conftest.make
2735fi
2736if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2737 echo "$as_me:$LINENO: result: yes" >&5
2738echo "${ECHO_T}yes" >&6
2739 SET_MAKE=
2740else
2741 echo "$as_me:$LINENO: result: no" >&5
2742echo "${ECHO_T}no" >&6
2743 SET_MAKE="MAKE=${MAKE-make}"
2744fi
5d031c16 2745
b7026657 2746
35695fd6
AC
2747echo "$as_me:$LINENO: checking for library containing strerror" >&5
2748echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2749if test "${ac_cv_search_strerror+set}" = set; then
f0569246 2750 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2751else
35695fd6
AC
2752 ac_func_search_save_LIBS=$LIBS
2753ac_cv_search_strerror=no
2754cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2755/* confdefs.h. */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h. */
35695fd6
AC
2760
2761/* Override any gcc2 internal prototype to avoid an error. */
2762#ifdef __cplusplus
2763extern "C"
f0569246 2764#endif
35695fd6
AC
2765/* We use char because int might match the return type of a gcc2
2766 builtin and then its argument prototype would still apply. */
2767char strerror ();
2768int
2769main ()
2770{
2771strerror ();
2772 ;
2773 return 0;
2774}
b7026657 2775_ACEOF
35695fd6
AC
2776rm -f conftest.$ac_objext conftest$ac_exeext
2777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2778 (eval $ac_link) 2>conftest.er1
b7026657
AC
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_c_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest$ac_exeext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 ac_cv_search_strerror="none required"
b7026657
AC
2799else
2800 echo "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
2802
b7026657 2803fi
35695fd6
AC
2804rm -f conftest.err conftest.$ac_objext \
2805 conftest$ac_exeext conftest.$ac_ext
2806if test "$ac_cv_search_strerror" = no; then
2807 for ac_lib in cposix; do
2808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2809 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2810/* confdefs.h. */
2811_ACEOF
f0569246
AC
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h. */
35695fd6
AC
2815
2816/* Override any gcc2 internal prototype to avoid an error. */
2817#ifdef __cplusplus
2818extern "C"
2819#endif
2820/* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2822char strerror ();
2823int
2824main ()
2825{
2826strerror ();
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831rm -f conftest.$ac_objext conftest$ac_exeext
2832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833 (eval $ac_link) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest$ac_exeext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_search_strerror="-l$ac_lib"
2854break
2855else
2856 echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859fi
2860rm -f conftest.err conftest.$ac_objext \
2861 conftest$ac_exeext conftest.$ac_ext
2862 done
2863fi
2864LIBS=$ac_func_search_save_LIBS
2865fi
2866echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2867echo "${ECHO_T}$ac_cv_search_strerror" >&6
2868if test "$ac_cv_search_strerror" != no; then
2869 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2870
2871fi
2872
2873ac_ext=c
2874ac_cpp='$CPP $CPPFLAGS'
2875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2879echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2880# On Suns, sometimes $CPP names a directory.
2881if test -n "$CPP" && test -d "$CPP"; then
2882 CPP=
2883fi
2884if test -z "$CPP"; then
2885 if test "${ac_cv_prog_CPP+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
2888 # Double quotes because CPP needs to be expanded
2889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2890 do
2891 ac_preproc_ok=false
2892for ac_c_preproc_warn_flag in '' yes
2893do
2894 # Use a header file that comes with gcc, so configuring glibc
2895 # with a fresh cross-compiler works.
2896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 # <limits.h> exists even on freestanding compilers.
2898 # On the NeXT, cc -E runs the code through the compiler's parser,
2899 # not just through cpp. "Syntax error" is here to catch this case.
2900 cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h. */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h. */
2906#ifdef __STDC__
2907# include <limits.h>
2908#else
2909# include <assert.h>
2910#endif
2911 Syntax error
2912_ACEOF
2913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } >/dev/null; then
2921 if test -s conftest.err; then
2922 ac_cpp_err=$ac_c_preproc_warn_flag
2923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2924 else
2925 ac_cpp_err=
2926 fi
2927else
2928 ac_cpp_err=yes
2929fi
2930if test -z "$ac_cpp_err"; then
2931 :
2932else
2933 echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 # Broken: fails on valid input.
2937continue
2938fi
2939rm -f conftest.err conftest.$ac_ext
2940
2941 # OK, works on sane cases. Now check whether non-existent headers
2942 # can be detected and how.
2943 cat >conftest.$ac_ext <<_ACEOF
2944/* confdefs.h. */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h. */
2949#include <ac_nonexistent.h>
2950_ACEOF
2951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f0569246 2952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2958 (exit $ac_status); } >/dev/null; then
2959 if test -s conftest.err; then
2960 ac_cpp_err=$ac_c_preproc_warn_flag
2961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2962 else
2963 ac_cpp_err=
2964 fi
2965else
2966 ac_cpp_err=yes
2967fi
2968if test -z "$ac_cpp_err"; then
2969 # Broken: success on invalid input.
2970continue
5d031c16 2971else
b7026657
AC
2972 echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
f0569246
AC
2975 # Passes both tests.
2976ac_preproc_ok=:
2977break
5d031c16 2978fi
f0569246
AC
2979rm -f conftest.err conftest.$ac_ext
2980
2981done
2982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983rm -f conftest.err conftest.$ac_ext
2984if $ac_preproc_ok; then
2985 break
5d031c16 2986fi
5d031c16 2987
f0569246
AC
2988 done
2989 ac_cv_prog_CPP=$CPP
2990
2991fi
2992 CPP=$ac_cv_prog_CPP
5d031c16 2993else
f0569246
AC
2994 ac_cv_prog_CPP=$CPP
2995fi
2996echo "$as_me:$LINENO: result: $CPP" >&5
2997echo "${ECHO_T}$CPP" >&6
2998ac_preproc_ok=false
2999for ac_c_preproc_warn_flag in '' yes
3000do
3001 # Use a header file that comes with gcc, so configuring glibc
3002 # with a fresh cross-compiler works.
3003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004 # <limits.h> exists even on freestanding compilers.
3005 # On the NeXT, cc -E runs the code through the compiler's parser,
3006 # not just through cpp. "Syntax error" is here to catch this case.
3007 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3008/* confdefs.h. */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h. */
f0569246
AC
3013#ifdef __STDC__
3014# include <limits.h>
3015#else
3016# include <assert.h>
b7026657 3017#endif
f0569246 3018 Syntax error
b7026657 3019_ACEOF
f0569246
AC
3020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3027 (exit $ac_status); } >/dev/null; then
3028 if test -s conftest.err; then
3029 ac_cpp_err=$ac_c_preproc_warn_flag
3030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3031 else
3032 ac_cpp_err=
3033 fi
3034else
3035 ac_cpp_err=yes
3036fi
3037if test -z "$ac_cpp_err"; then
3038 :
b7026657
AC
3039else
3040 echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
f0569246
AC
3043 # Broken: fails on valid input.
3044continue
b7026657 3045fi
f0569246
AC
3046rm -f conftest.err conftest.$ac_ext
3047
3048 # OK, works on sane cases. Now check whether non-existent headers
3049 # can be detected and how.
b7026657
AC
3050 cat >conftest.$ac_ext <<_ACEOF
3051/* confdefs.h. */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h. */
f0569246 3056#include <ac_nonexistent.h>
b7026657 3057_ACEOF
f0569246
AC
3058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3060 ac_status=$?
3061 grep -v '^ *+' conftest.er1 >conftest.err
3062 rm -f conftest.er1
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3065 (exit $ac_status); } >/dev/null; then
3066 if test -s conftest.err; then
3067 ac_cpp_err=$ac_c_preproc_warn_flag
3068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3069 else
3070 ac_cpp_err=
3071 fi
3072else
3073 ac_cpp_err=yes
3074fi
3075if test -z "$ac_cpp_err"; then
3076 # Broken: success on invalid input.
3077continue
5d031c16 3078else
b7026657
AC
3079 echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
f0569246
AC
3082 # Passes both tests.
3083ac_preproc_ok=:
3084break
5d031c16 3085fi
f0569246 3086rm -f conftest.err conftest.$ac_ext
5d031c16 3087
f0569246
AC
3088done
3089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090rm -f conftest.err conftest.$ac_ext
3091if $ac_preproc_ok; then
3092 :
5d031c16 3093else
f0569246
AC
3094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3095See \`config.log' for more details." >&5
3096echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3097See \`config.log' for more details." >&2;}
3098 { (exit 1); exit 1; }; }
5d031c16 3099fi
5d031c16 3100
f0569246
AC
3101ac_ext=c
3102ac_cpp='$CPP $CPPFLAGS'
3103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106
3107
3108echo "$as_me:$LINENO: checking for egrep" >&5
3109echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3110if test "${ac_cv_prog_egrep+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112else
3113 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3114 then ac_cv_prog_egrep='grep -E'
3115 else ac_cv_prog_egrep='egrep'
3116 fi
3117fi
3118echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3119echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3120 EGREP=$ac_cv_prog_egrep
3121
3122
3123echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3124echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3125if test "${ac_cv_header_stdc+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h. */
3134#include <stdlib.h>
3135#include <stdarg.h>
3136#include <string.h>
3137#include <float.h>
5d031c16 3138
b7026657
AC
3139int
3140main ()
3141{
f0569246 3142
b7026657
AC
3143 ;
3144 return 0;
3145}
3146_ACEOF
f0569246
AC
3147rm -f conftest.$ac_objext
3148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>conftest.er1
b7026657
AC
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag"
3157 || test ! -s conftest.err'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; } &&
f0569246 3163 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
f0569246 3169 ac_cv_header_stdc=yes
b7026657
AC
3170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
f0569246 3174ac_cv_header_stdc=no
b7026657 3175fi
f0569246 3176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d031c16 3177
f0569246
AC
3178if test $ac_cv_header_stdc = yes; then
3179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3180 cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186#include <string.h>
5d031c16 3187
f0569246
AC
3188_ACEOF
3189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3190 $EGREP "memchr" >/dev/null 2>&1; then
3191 :
5d031c16 3192else
f0569246 3193 ac_cv_header_stdc=no
5d031c16 3194fi
f0569246 3195rm -f conftest*
b7026657 3196
5d031c16
AC
3197fi
3198
f0569246
AC
3199if test $ac_cv_header_stdc = yes; then
3200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3201 cat >conftest.$ac_ext <<_ACEOF
3202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207#include <stdlib.h>
3208
3209_ACEOF
3210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211 $EGREP "free" >/dev/null 2>&1; then
3212 :
5d031c16 3213else
f0569246 3214 ac_cv_header_stdc=no
5d031c16 3215fi
f0569246
AC
3216rm -f conftest*
3217
5d031c16
AC
3218fi
3219
f0569246
AC
3220if test $ac_cv_header_stdc = yes; then
3221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3222 if test "$cross_compiling" = yes; then
3223 :
3224else
3225 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h. */
f0569246
AC
3231#include <ctype.h>
3232#if ((' ' & 0x0FF) == 0x020)
3233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3235#else
3236# define ISLOWER(c) \
3237 (('a' <= (c) && (c) <= 'i') \
3238 || ('j' <= (c) && (c) <= 'r') \
3239 || ('s' <= (c) && (c) <= 'z'))
3240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3241#endif
5d031c16 3242
f0569246 3243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3244int
3245main ()
3246{
f0569246
AC
3247 int i;
3248 for (i = 0; i < 256; i++)
3249 if (XOR (islower (i), ISLOWER (i))
3250 || toupper (i) != TOUPPER (i))
3251 exit(2);
3252 exit (0);
b7026657
AC
3253}
3254_ACEOF
f0569246 3255rm -f conftest$ac_exeext
b7026657 3256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f0569246 3257 (eval $ac_link) 2>&5
b7026657
AC
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246 3260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
f0569246 3266 :
5d031c16 3267else
f0569246
AC
3268 echo "$as_me: program exited with status $ac_status" >&5
3269echo "$as_me: failed program was:" >&5
b7026657
AC
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
f0569246
AC
3272( exit $ac_status )
3273ac_cv_header_stdc=no
5d031c16 3274fi
f0569246 3275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d031c16 3276fi
5d031c16 3277fi
5d031c16 3278fi
f0569246
AC
3279echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3280echo "${ECHO_T}$ac_cv_header_stdc" >&6
3281if test $ac_cv_header_stdc = yes; then
b7026657 3282
f0569246
AC
3283cat >>confdefs.h <<\_ACEOF
3284#define STDC_HEADERS 1
3285_ACEOF
5d031c16 3286
5d031c16
AC
3287fi
3288
35695fd6
AC
3289echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3290echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3291if test "${ac_cv_c_const+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300
3301int
3302main ()
3303{
3304/* FIXME: Include the comments suggested by Paul. */
3305#ifndef __cplusplus
3306 /* Ultrix mips cc rejects this. */
3307 typedef int charset[2];
3308 const charset x;
3309 /* SunOS 4.1.1 cc rejects this. */
3310 char const *const *ccp;
3311 char **p;
3312 /* NEC SVR4.0.2 mips cc rejects this. */
3313 struct point {int x, y;};
3314 static struct point const zero = {0,0};
3315 /* AIX XL C 1.02.0.0 rejects this.
3316 It does not let you subtract one const X* pointer from another in
3317 an arm of an if-expression whose if-part is not a constant
3318 expression */
3319 const char *g = "string";
3320 ccp = &g + (g ? g-g : 0);
3321 /* HPUX 7.0 cc rejects these. */
3322 ++ccp;
3323 p = (char**) ccp;
3324 ccp = (char const *const *) p;
3325 { /* SCO 3.2v4 cc rejects this. */
3326 char *t;
3327 char const *s = 0 ? (char *) 0 : (char const *) 0;
3328
3329 *t++ = 0;
3330 }
3331 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3332 int x[] = {25, 17};
3333 const int *foo = &x[0];
3334 ++foo;
3335 }
3336 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3337 typedef const int *iptr;
3338 iptr p = 0;
3339 ++p;
3340 }
3341 { /* AIX XL C 1.02.0.0 rejects this saying
3342 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3343 struct s { int j; const int *ap[3]; };
3344 struct s *b; b->j = 5;
3345 }
3346 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3347 const int foo = 10;
3348 }
3349#endif
3350
3351 ;
3352 return 0;
3353}
3354_ACEOF
3355rm -f conftest.$ac_objext
3356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_c_const=yes
3378else
3379 echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382ac_cv_c_const=no
3383fi
3384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385fi
3386echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3387echo "${ECHO_T}$ac_cv_c_const" >&6
3388if test $ac_cv_c_const = no; then
3389
3390cat >>confdefs.h <<\_ACEOF
3391#define const
3392_ACEOF
3393
3394fi
3395
3396echo "$as_me:$LINENO: checking for inline" >&5
3397echo $ECHO_N "checking for inline... $ECHO_C" >&6
3398if test "${ac_cv_c_inline+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401 ac_cv_c_inline=no
3402for ac_kw in inline __inline__ __inline; do
3403 cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
3409#ifndef __cplusplus
3410typedef int foo_t;
3411static $ac_kw foo_t static_foo () {return 0; }
3412$ac_kw foo_t foo () {return 0; }
3413#endif
3414
3415_ACEOF
3416rm -f conftest.$ac_objext
3417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_cv_c_inline=$ac_kw; break
3439else
3440 echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443fi
3444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445done
3446
3447fi
3448echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3449echo "${ECHO_T}$ac_cv_c_inline" >&6
3450
3451
3452case $ac_cv_c_inline in
3453 inline | yes) ;;
3454 *)
3455 case $ac_cv_c_inline in
3456 no) ac_val=;;
3457 *) ac_val=$ac_cv_c_inline;;
3458 esac
3459 cat >>confdefs.h <<_ACEOF
3460#ifndef __cplusplus
3461#define inline $ac_val
3462#endif
3463_ACEOF
3464 ;;
3465esac
3466
f0569246 3467# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657
AC
3468
3469
3470
3471
3472
3473
3474
5d031c16 3475
5d031c16 3476
35695fd6
AC
3477for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3478 inttypes.h stdint.h unistd.h
3479do
3480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3481echo "$as_me:$LINENO: checking for $ac_header" >&5
3482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3483if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486 cat >conftest.$ac_ext <<_ACEOF
3487/* confdefs.h. */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h. */
3492$ac_includes_default
3493
3494#include <$ac_header>
3495_ACEOF
3496rm -f conftest.$ac_objext
3497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try='test -z "$ac_c_werror_flag"
3506 || test ! -s conftest.err'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 eval "$as_ac_Header=yes"
3519else
3520 echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523eval "$as_ac_Header=no"
3524fi
3525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3526fi
3527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3529if test `eval echo '${'$as_ac_Header'}'` = yes; then
3530 cat >>confdefs.h <<_ACEOF
3531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3532_ACEOF
3533
3534fi
3535
3536done
3537
3538
3539echo "$as_me:$LINENO: checking for off_t" >&5
3540echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3541if test "${ac_cv_type_off_t+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h. */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h. */
3550$ac_includes_default
3551int
3552main ()
3553{
3554if ((off_t *) 0)
3555 return 0;
3556if (sizeof (off_t))
3557 return 0;
3558 ;
3559 return 0;
3560}
3561_ACEOF
3562rm -f conftest.$ac_objext
3563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 ac_cv_type_off_t=yes
3585else
3586 echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589ac_cv_type_off_t=no
3590fi
3591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592fi
3593echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3594echo "${ECHO_T}$ac_cv_type_off_t" >&6
3595if test $ac_cv_type_off_t = yes; then
3596 :
3597else
3598
3599cat >>confdefs.h <<_ACEOF
3600#define off_t long
3601_ACEOF
3602
3603fi
3604
3605echo "$as_me:$LINENO: checking for size_t" >&5
3606echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3607if test "${ac_cv_type_size_t+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610 cat >conftest.$ac_ext <<_ACEOF
3611/* confdefs.h. */
3612_ACEOF
3613cat confdefs.h >>conftest.$ac_ext
3614cat >>conftest.$ac_ext <<_ACEOF
3615/* end confdefs.h. */
3616$ac_includes_default
3617int
3618main ()
3619{
3620if ((size_t *) 0)
3621 return 0;
3622if (sizeof (size_t))
3623 return 0;
3624 ;
3625 return 0;
3626}
3627_ACEOF
3628rm -f conftest.$ac_objext
3629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_cv_type_size_t=yes
3651else
3652 echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655ac_cv_type_size_t=no
3656fi
3657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3658fi
3659echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3660echo "${ECHO_T}$ac_cv_type_size_t" >&6
3661if test $ac_cv_type_size_t = yes; then
3662 :
3663else
3664
3665cat >>confdefs.h <<_ACEOF
3666#define size_t unsigned
3667_ACEOF
3668
3669fi
3670
3671# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3672# for constant arguments. Useless!
3673echo "$as_me:$LINENO: checking for working alloca.h" >&5
3674echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3675if test "${ac_cv_working_alloca_h+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678 cat >conftest.$ac_ext <<_ACEOF
3679/* confdefs.h. */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h. */
3684#include <alloca.h>
3685int
3686main ()
3687{
3688char *p = (char *) alloca (2 * sizeof (int));
3689 ;
3690 return 0;
3691}
3692_ACEOF
3693rm -f conftest.$ac_objext conftest$ac_exeext
3694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695 (eval $ac_link) 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -z "$ac_c_werror_flag"
3703 || test ! -s conftest.err'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; } &&
3709 { ac_try='test -s conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_cv_working_alloca_h=yes
3716else
3717 echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720ac_cv_working_alloca_h=no
3721fi
3722rm -f conftest.err conftest.$ac_objext \
3723 conftest$ac_exeext conftest.$ac_ext
3724fi
3725echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3726echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3727if test $ac_cv_working_alloca_h = yes; then
3728
3729cat >>confdefs.h <<\_ACEOF
3730#define HAVE_ALLOCA_H 1
3731_ACEOF
3732
3733fi
3734
3735echo "$as_me:$LINENO: checking for alloca" >&5
3736echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3737if test "${ac_cv_func_alloca_works+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
3746#ifdef __GNUC__
3747# define alloca __builtin_alloca
3748#else
3749# ifdef _MSC_VER
3750# include <malloc.h>
3751# define alloca _alloca
3752# else
3753# if HAVE_ALLOCA_H
3754# include <alloca.h>
3755# else
3756# ifdef _AIX
3757 #pragma alloca
3758# else
3759# ifndef alloca /* predefined by HP cc +Olibcalls */
3760char *alloca ();
3761# endif
3762# endif
3763# endif
3764# endif
3765#endif
3766
3767int
3768main ()
3769{
3770char *p = (char *) alloca (1);
3771 ;
3772 return 0;
3773}
3774_ACEOF
3775rm -f conftest.$ac_objext conftest$ac_exeext
3776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777 (eval $ac_link) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest$ac_exeext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_cv_func_alloca_works=yes
3798else
3799 echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802ac_cv_func_alloca_works=no
3803fi
3804rm -f conftest.err conftest.$ac_objext \
3805 conftest$ac_exeext conftest.$ac_ext
3806fi
3807echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3808echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3809
3810if test $ac_cv_func_alloca_works = yes; then
3811
3812cat >>confdefs.h <<\_ACEOF
3813#define HAVE_ALLOCA 1
3814_ACEOF
3815
3816else
3817 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3818# that cause trouble. Some versions do not even contain alloca or
3819# contain a buggy version. If you still want to use their alloca,
3820# use ar to extract alloca.o from them instead of compiling alloca.c.
3821
3822ALLOCA=alloca.$ac_objext
3823
3824cat >>confdefs.h <<\_ACEOF
3825#define C_ALLOCA 1
3826_ACEOF
3827
3828
3829echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3830echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3831if test "${ac_cv_os_cray+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
3840#if defined(CRAY) && ! defined(CRAY2)
3841webecray
3842#else
3843wenotbecray
3844#endif
3845
3846_ACEOF
3847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 $EGREP "webecray" >/dev/null 2>&1; then
3849 ac_cv_os_cray=yes
3850else
3851 ac_cv_os_cray=no
3852fi
3853rm -f conftest*
3854
3855fi
3856echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3857echo "${ECHO_T}$ac_cv_os_cray" >&6
3858if test $ac_cv_os_cray = yes; then
3859 for ac_func in _getb67 GETB67 getb67; do
3860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3861echo "$as_me:$LINENO: checking for $ac_func" >&5
3862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3863if eval "test \"\${$as_ac_var+set}\" = set"; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865else
3866 cat >conftest.$ac_ext <<_ACEOF
3867/* confdefs.h. */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h. */
3872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3874#define $ac_func innocuous_$ac_func
3875
3876/* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char $ac_func (); below.
3878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879 <limits.h> exists even on freestanding compilers. */
3880
3881#ifdef __STDC__
3882# include <limits.h>
3883#else
3884# include <assert.h>
3885#endif
3886
3887#undef $ac_func
3888
3889/* Override any gcc2 internal prototype to avoid an error. */
3890#ifdef __cplusplus
3891extern "C"
3892{
3893#endif
3894/* We use char because int might match the return type of a gcc2
3895 builtin and then its argument prototype would still apply. */
3896char $ac_func ();
3897/* The GNU C library defines this for functions which it implements
3898 to always fail with ENOSYS. Some functions are actually named
3899 something starting with __ and the normal name is an alias. */
3900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3901choke me
3902#else
3903char (*f) () = $ac_func;
3904#endif
3905#ifdef __cplusplus
3906}
3907#endif
3908
3909int
3910main ()
3911{
3912return f != $ac_func;
3913 ;
3914 return 0;
3915}
3916_ACEOF
3917rm -f conftest.$ac_objext conftest$ac_exeext
3918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3919 (eval $ac_link) 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest$ac_exeext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 eval "$as_ac_var=yes"
3940else
3941 echo "$as_me: failed program was:" >&5
3942sed 's/^/| /' conftest.$ac_ext >&5
3943
3944eval "$as_ac_var=no"
3945fi
3946rm -f conftest.err conftest.$ac_objext \
3947 conftest$ac_exeext conftest.$ac_ext
3948fi
3949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3950echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3951if test `eval echo '${'$as_ac_var'}'` = yes; then
3952
3953cat >>confdefs.h <<_ACEOF
3954#define CRAY_STACKSEG_END $ac_func
3955_ACEOF
3956
3957 break
3958fi
3959
3960 done
3961fi
3962
3963echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3964echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3965if test "${ac_cv_c_stack_direction+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 if test "$cross_compiling" = yes; then
3969 ac_cv_c_stack_direction=0
3970else
3971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h. */
3977int
3978find_stack_direction ()
3979{
3980 static char *addr = 0;
3981 auto char dummy;
3982 if (addr == 0)
3983 {
3984 addr = &dummy;
3985 return find_stack_direction ();
3986 }
3987 else
3988 return (&dummy > addr) ? 1 : -1;
3989}
3990
3991int
3992main ()
3993{
3994 exit (find_stack_direction () < 0);
3995}
3996_ACEOF
3997rm -f conftest$ac_exeext
3998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_c_stack_direction=1
4009else
4010 echo "$as_me: program exited with status $ac_status" >&5
4011echo "$as_me: failed program was:" >&5
4012sed 's/^/| /' conftest.$ac_ext >&5
4013
4014( exit $ac_status )
4015ac_cv_c_stack_direction=-1
4016fi
4017rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4018fi
4019fi
4020echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4021echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4022
4023cat >>confdefs.h <<_ACEOF
4024#define STACK_DIRECTION $ac_cv_c_stack_direction
4025_ACEOF
4026
4027
4028fi
4029
4030
4031
4032for ac_header in stdlib.h unistd.h
4033do
4034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4035if eval "test \"\${$as_ac_Header+set}\" = set"; then
4036 echo "$as_me:$LINENO: checking for $ac_header" >&5
4037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4038if eval "test \"\${$as_ac_Header+set}\" = set"; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040fi
4041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4043else
4044 # Is the header compilable?
4045echo "$as_me:$LINENO: checking $ac_header usability" >&5
4046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4047cat >conftest.$ac_ext <<_ACEOF
4048/* confdefs.h. */
4049_ACEOF
4050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
4052/* end confdefs.h. */
4053$ac_includes_default
4054#include <$ac_header>
4055_ACEOF
4056rm -f conftest.$ac_objext
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_header_compiler=yes
4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083ac_header_compiler=no
4084fi
4085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4087echo "${ECHO_T}$ac_header_compiler" >&6
4088
4089# Is the header present?
4090echo "$as_me:$LINENO: checking $ac_header presence" >&5
4091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098#include <$ac_header>
4099_ACEOF
4100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } >/dev/null; then
4108 if test -s conftest.err; then
4109 ac_cpp_err=$ac_c_preproc_warn_flag
4110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4111 else
4112 ac_cpp_err=
4113 fi
4114else
4115 ac_cpp_err=yes
4116fi
4117if test -z "$ac_cpp_err"; then
4118 ac_header_preproc=yes
4119else
4120 echo "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4123 ac_header_preproc=no
4124fi
4125rm -f conftest.err conftest.$ac_ext
4126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4127echo "${ECHO_T}$ac_header_preproc" >&6
4128
4129# So? What about this header?
4130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4131 yes:no: )
4132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4136 ac_header_preproc=yes
4137 ;;
4138 no:yes:* )
4139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4151 (
4152 cat <<\_ASBOX
4153## ------------------------------------------ ##
4154## Report this to the AC_PACKAGE_NAME lists. ##
4155## ------------------------------------------ ##
4156_ASBOX
4157 ) |
4158 sed "s/^/$as_me: WARNING: /" >&2
4159 ;;
4160esac
4161echo "$as_me:$LINENO: checking for $ac_header" >&5
4162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4163if eval "test \"\${$as_ac_Header+set}\" = set"; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166 eval "$as_ac_Header=\$ac_header_preproc"
4167fi
4168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4170
4171fi
4172if test `eval echo '${'$as_ac_Header'}'` = yes; then
4173 cat >>confdefs.h <<_ACEOF
4174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4175_ACEOF
4176
4177fi
4178
4179done
4180
4181
4182for ac_func in getpagesize
4183do
4184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4185echo "$as_me:$LINENO: checking for $ac_func" >&5
4186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4187if eval "test \"\${$as_ac_var+set}\" = set"; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190 cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
4196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4198#define $ac_func innocuous_$ac_func
4199
4200/* System header to define __stub macros and hopefully few prototypes,
4201 which can conflict with char $ac_func (); below.
4202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 <limits.h> exists even on freestanding compilers. */
4204
4205#ifdef __STDC__
4206# include <limits.h>
4207#else
4208# include <assert.h>
4209#endif
4210
4211#undef $ac_func
4212
4213/* Override any gcc2 internal prototype to avoid an error. */
4214#ifdef __cplusplus
4215extern "C"
4216{
4217#endif
4218/* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4220char $ac_func ();
4221/* The GNU C library defines this for functions which it implements
4222 to always fail with ENOSYS. Some functions are actually named
4223 something starting with __ and the normal name is an alias. */
4224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4225choke me
4226#else
4227char (*f) () = $ac_func;
4228#endif
4229#ifdef __cplusplus
4230}
4231#endif
4232
4233int
4234main ()
4235{
4236return f != $ac_func;
4237 ;
4238 return 0;
4239}
4240_ACEOF
4241rm -f conftest.$ac_objext conftest$ac_exeext
4242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243 (eval $ac_link) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag"
4251 || test ! -s conftest.err'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; } &&
4257 { ac_try='test -s conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 eval "$as_ac_var=yes"
4264else
4265 echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
4267
4268eval "$as_ac_var=no"
4269fi
4270rm -f conftest.err conftest.$ac_objext \
4271 conftest$ac_exeext conftest.$ac_ext
4272fi
4273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4275if test `eval echo '${'$as_ac_var'}'` = yes; then
4276 cat >>confdefs.h <<_ACEOF
4277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4278_ACEOF
4279
4280fi
4281done
4282
4283echo "$as_me:$LINENO: checking for working mmap" >&5
4284echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4285if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288 if test "$cross_compiling" = yes; then
4289 ac_cv_func_mmap_fixed_mapped=no
4290else
4291 cat >conftest.$ac_ext <<_ACEOF
4292/* confdefs.h. */
4293_ACEOF
4294cat confdefs.h >>conftest.$ac_ext
4295cat >>conftest.$ac_ext <<_ACEOF
4296/* end confdefs.h. */
4297$ac_includes_default
4298/* malloc might have been renamed as rpl_malloc. */
4299#undef malloc
4300
4301/* Thanks to Mike Haertel and Jim Avera for this test.
4302 Here is a matrix of mmap possibilities:
4303 mmap private not fixed
4304 mmap private fixed at somewhere currently unmapped
4305 mmap private fixed at somewhere already mapped
4306 mmap shared not fixed
4307 mmap shared fixed at somewhere currently unmapped
4308 mmap shared fixed at somewhere already mapped
4309 For private mappings, we should verify that changes cannot be read()
4310 back from the file, nor mmap's back from the file at a different
4311 address. (There have been systems where private was not correctly
4312 implemented like the infamous i386 svr4.0, and systems where the
4313 VM page cache was not coherent with the file system buffer cache
4314 like early versions of FreeBSD and possibly contemporary NetBSD.)
4315 For shared mappings, we should conversely verify that changes get
4316 propagated back to all the places they're supposed to be.
4317
4318 Grep wants private fixed already mapped.
4319 The main things grep needs to know about mmap are:
4320 * does it exist and is it safe to write into the mmap'd area
4321 * how to use it (BSD variants) */
4322
4323#include <fcntl.h>
4324#include <sys/mman.h>
4325
4326#if !STDC_HEADERS && !HAVE_STDLIB_H
4327char *malloc ();
4328#endif
4329
4330/* This mess was copied from the GNU getpagesize.h. */
4331#if !HAVE_GETPAGESIZE
4332/* Assume that all systems that can run configure have sys/param.h. */
4333# if !HAVE_SYS_PARAM_H
4334# define HAVE_SYS_PARAM_H 1
4335# endif
4336
4337# ifdef _SC_PAGESIZE
4338# define getpagesize() sysconf(_SC_PAGESIZE)
4339# else /* no _SC_PAGESIZE */
4340# if HAVE_SYS_PARAM_H
4341# include <sys/param.h>
4342# ifdef EXEC_PAGESIZE
4343# define getpagesize() EXEC_PAGESIZE
4344# else /* no EXEC_PAGESIZE */
4345# ifdef NBPG
4346# define getpagesize() NBPG * CLSIZE
4347# ifndef CLSIZE
4348# define CLSIZE 1
4349# endif /* no CLSIZE */
4350# else /* no NBPG */
4351# ifdef NBPC
4352# define getpagesize() NBPC
4353# else /* no NBPC */
4354# ifdef PAGESIZE
4355# define getpagesize() PAGESIZE
4356# endif /* PAGESIZE */
4357# endif /* no NBPC */
4358# endif /* no NBPG */
4359# endif /* no EXEC_PAGESIZE */
4360# else /* no HAVE_SYS_PARAM_H */
4361# define getpagesize() 8192 /* punt totally */
4362# endif /* no HAVE_SYS_PARAM_H */
4363# endif /* no _SC_PAGESIZE */
4364
4365#endif /* no HAVE_GETPAGESIZE */
4366
4367int
4368main ()
4369{
4370 char *data, *data2, *data3;
4371 int i, pagesize;
4372 int fd;
4373
4374 pagesize = getpagesize ();
4375
4376 /* First, make a file with some known garbage in it. */
4377 data = (char *) malloc (pagesize);
4378 if (!data)
4379 exit (1);
4380 for (i = 0; i < pagesize; ++i)
4381 *(data + i) = rand ();
4382 umask (0);
4383 fd = creat ("conftest.mmap", 0600);
4384 if (fd < 0)
4385 exit (1);
4386 if (write (fd, data, pagesize) != pagesize)
4387 exit (1);
4388 close (fd);
4389
4390 /* Next, try to mmap the file at a fixed address which already has
4391 something else allocated at it. If we can, also make sure that
4392 we see the same garbage. */
4393 fd = open ("conftest.mmap", O_RDWR);
4394 if (fd < 0)
4395 exit (1);
4396 data2 = (char *) malloc (2 * pagesize);
4397 if (!data2)
4398 exit (1);
4399 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4400 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4401 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4402 exit (1);
4403 for (i = 0; i < pagesize; ++i)
4404 if (*(data + i) != *(data2 + i))
4405 exit (1);
4406
4407 /* Finally, make sure that changes to the mapped area do not
4408 percolate back to the file as seen by read(). (This is a bug on
4409 some variants of i386 svr4.0.) */
4410 for (i = 0; i < pagesize; ++i)
4411 *(data2 + i) = *(data2 + i) + 1;
4412 data3 = (char *) malloc (pagesize);
4413 if (!data3)
4414 exit (1);
4415 if (read (fd, data3, pagesize) != pagesize)
4416 exit (1);
4417 for (i = 0; i < pagesize; ++i)
4418 if (*(data + i) != *(data3 + i))
4419 exit (1);
4420 close (fd);
4421 exit (0);
4422}
4423_ACEOF
4424rm -f conftest$ac_exeext
4425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4426 (eval $ac_link) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_func_mmap_fixed_mapped=yes
4436else
4437 echo "$as_me: program exited with status $ac_status" >&5
4438echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441( exit $ac_status )
4442ac_cv_func_mmap_fixed_mapped=no
4443fi
4444rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4445fi
4446fi
4447echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4448echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4449if test $ac_cv_func_mmap_fixed_mapped = yes; then
4450
4451cat >>confdefs.h <<\_ACEOF
4452#define HAVE_MMAP 1
4453_ACEOF
4454
4455fi
4456rm -f conftest.mmap
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4469unistd.h values.h sys/param.h
4470do
4471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4472if eval "test \"\${$as_ac_Header+set}\" = set"; then
4473 echo "$as_me:$LINENO: checking for $ac_header" >&5
4474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4475if eval "test \"\${$as_ac_Header+set}\" = set"; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477fi
4478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4480else
4481 # Is the header compilable?
4482echo "$as_me:$LINENO: checking $ac_header usability" >&5
4483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
4490$ac_includes_default
4491#include <$ac_header>
4492_ACEOF
4493rm -f conftest.$ac_objext
4494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>conftest.er1
4496 ac_status=$?
4497 grep -v '^ *+' conftest.er1 >conftest.err
4498 rm -f conftest.er1
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -z "$ac_c_werror_flag"
4503 || test ! -s conftest.err'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; } &&
4509 { ac_try='test -s conftest.$ac_objext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_header_compiler=yes
4516else
4517 echo "$as_me: failed program was:" >&5
4518sed 's/^/| /' conftest.$ac_ext >&5
4519
4520ac_header_compiler=no
4521fi
4522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4523echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4524echo "${ECHO_T}$ac_header_compiler" >&6
4525
4526# Is the header present?
4527echo "$as_me:$LINENO: checking $ac_header presence" >&5
4528echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4529cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h. */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h. */
4535#include <$ac_header>
4536_ACEOF
4537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null; then
4545 if test -s conftest.err; then
4546 ac_cpp_err=$ac_c_preproc_warn_flag
4547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4548 else
4549 ac_cpp_err=
4550 fi
4551else
4552 ac_cpp_err=yes
4553fi
4554if test -z "$ac_cpp_err"; then
4555 ac_header_preproc=yes
4556else
4557 echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 ac_header_preproc=no
4561fi
4562rm -f conftest.err conftest.$ac_ext
4563echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564echo "${ECHO_T}$ac_header_preproc" >&6
4565
4566# So? What about this header?
4567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4568 yes:no: )
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4573 ac_header_preproc=yes
4574 ;;
4575 no:yes:* )
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4583echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4588 (
4589 cat <<\_ASBOX
4590## ------------------------------------------ ##
4591## Report this to the AC_PACKAGE_NAME lists. ##
4592## ------------------------------------------ ##
4593_ASBOX
4594 ) |
4595 sed "s/^/$as_me: WARNING: /" >&2
4596 ;;
4597esac
4598echo "$as_me:$LINENO: checking for $ac_header" >&5
4599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4600if eval "test \"\${$as_ac_Header+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603 eval "$as_ac_Header=\$ac_header_preproc"
4604fi
4605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4607
4608fi
4609if test `eval echo '${'$as_ac_Header'}'` = yes; then
4610 cat >>confdefs.h <<_ACEOF
4611#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4612_ACEOF
4613
4614fi
4615
4616done
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4629__argz_count __argz_stringify __argz_next
4630do
4631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4632echo "$as_me:$LINENO: checking for $ac_func" >&5
4633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4634if eval "test \"\${$as_ac_var+set}\" = set"; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
4637 cat >conftest.$ac_ext <<_ACEOF
4638/* confdefs.h. */
4639_ACEOF
4640cat confdefs.h >>conftest.$ac_ext
4641cat >>conftest.$ac_ext <<_ACEOF
4642/* end confdefs.h. */
4643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4645#define $ac_func innocuous_$ac_func
4646
4647/* System header to define __stub macros and hopefully few prototypes,
4648 which can conflict with char $ac_func (); below.
4649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650 <limits.h> exists even on freestanding compilers. */
4651
4652#ifdef __STDC__
4653# include <limits.h>
4654#else
4655# include <assert.h>
4656#endif
4657
4658#undef $ac_func
4659
4660/* Override any gcc2 internal prototype to avoid an error. */
4661#ifdef __cplusplus
4662extern "C"
4663{
4664#endif
4665/* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4667char $ac_func ();
4668/* The GNU C library defines this for functions which it implements
4669 to always fail with ENOSYS. Some functions are actually named
4670 something starting with __ and the normal name is an alias. */
4671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4672choke me
4673#else
4674char (*f) () = $ac_func;
4675#endif
4676#ifdef __cplusplus
4677}
4678#endif
4679
4680int
4681main ()
4682{
4683return f != $ac_func;
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688rm -f conftest.$ac_objext conftest$ac_exeext
4689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690 (eval $ac_link) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_c_werror_flag"
4698 || test ! -s conftest.err'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try='test -s conftest$ac_exeext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 eval "$as_ac_var=yes"
4711else
4712 echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715eval "$as_ac_var=no"
4716fi
4717rm -f conftest.err conftest.$ac_objext \
4718 conftest$ac_exeext conftest.$ac_ext
4719fi
4720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4722if test `eval echo '${'$as_ac_var'}'` = yes; then
4723 cat >>confdefs.h <<_ACEOF
4724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4725_ACEOF
4726
4727fi
4728done
4729
4730
4731 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4732
4733for ac_func in stpcpy
4734do
4735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4736echo "$as_me:$LINENO: checking for $ac_func" >&5
4737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4738if eval "test \"\${$as_ac_var+set}\" = set"; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741 cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h. */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h. */
4747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4749#define $ac_func innocuous_$ac_func
4750
4751/* System header to define __stub macros and hopefully few prototypes,
4752 which can conflict with char $ac_func (); below.
4753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4754 <limits.h> exists even on freestanding compilers. */
4755
4756#ifdef __STDC__
4757# include <limits.h>
4758#else
4759# include <assert.h>
4760#endif
4761
4762#undef $ac_func
4763
4764/* Override any gcc2 internal prototype to avoid an error. */
4765#ifdef __cplusplus
4766extern "C"
4767{
4768#endif
4769/* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4771char $ac_func ();
4772/* The GNU C library defines this for functions which it implements
4773 to always fail with ENOSYS. Some functions are actually named
4774 something starting with __ and the normal name is an alias. */
4775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4776choke me
4777#else
4778char (*f) () = $ac_func;
4779#endif
4780#ifdef __cplusplus
4781}
4782#endif
4783
4784int
4785main ()
4786{
4787return f != $ac_func;
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext conftest$ac_exeext
4793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 eval "$as_ac_var=yes"
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819eval "$as_ac_var=no"
4820fi
4821rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823fi
4824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4826if test `eval echo '${'$as_ac_var'}'` = yes; then
4827 cat >>confdefs.h <<_ACEOF
4828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4829_ACEOF
4830
4831fi
4832done
4833
4834 fi
4835 if test "${ac_cv_func_stpcpy}" = "yes"; then
2b193c4a
MK
4836
4837cat >>confdefs.h <<\_ACEOF
35695fd6
AC
4838#define HAVE_STPCPY 1
4839_ACEOF
4840
4841 fi
4842
4843 if test $ac_cv_header_locale_h = yes; then
4844 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4845echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4846if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848else
4849 cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h. */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h. */
4855#include <locale.h>
4856int
4857main ()
4858{
4859return LC_MESSAGES
4860 ;
4861 return 0;
4862}
4863_ACEOF
4864rm -f conftest.$ac_objext conftest$ac_exeext
4865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 am_cv_val_LC_MESSAGES=yes
4887else
4888 echo "$as_me: failed program was:" >&5
4889sed 's/^/| /' conftest.$ac_ext >&5
4890
4891am_cv_val_LC_MESSAGES=no
4892fi
4893rm -f conftest.err conftest.$ac_objext \
4894 conftest$ac_exeext conftest.$ac_ext
4895fi
4896echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4897echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4898 if test $am_cv_val_LC_MESSAGES = yes; then
2b193c4a
MK
4899
4900cat >>confdefs.h <<\_ACEOF
35695fd6
AC
4901#define HAVE_LC_MESSAGES 1
4902_ACEOF
4903
4904 fi
4905 fi
4906 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4907echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4908 # Check whether --enable-nls or --disable-nls was given.
4909if test "${enable_nls+set}" = set; then
4910 enableval="$enable_nls"
4911 USE_NLS=$enableval
4912else
4913 USE_NLS=yes
4914fi;
4915 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4916echo "${ECHO_T}$USE_NLS" >&6
4917
4918
4919 USE_INCLUDED_LIBINTL=no
4920
4921 if test "$USE_NLS" = "yes"; then
35695fd6
AC
4922 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4923echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4924
4925# Check whether --with-included-gettext or --without-included-gettext was given.
4926if test "${with_included_gettext+set}" = set; then
4927 withval="$with_included_gettext"
4928 nls_cv_force_use_gnu_gettext=$withval
4929else
4930 nls_cv_force_use_gnu_gettext=no
4931fi;
4932 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4933echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4934
4935 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4936 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4937 nls_cv_header_intl=
4938 nls_cv_header_libgt=
2b193c4a 4939 CATOBJEXT=
35695fd6
AC
4940
4941 if test "${ac_cv_header_libintl_h+set}" = set; then
4942 echo "$as_me:$LINENO: checking for libintl.h" >&5
4943echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4944if test "${ac_cv_header_libintl_h+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946fi
4947echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4948echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4949else
4950 # Is the header compilable?
4951echo "$as_me:$LINENO: checking libintl.h usability" >&5
4952echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4953cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959$ac_includes_default
4960#include <libintl.h>
4961_ACEOF
4962rm -f conftest.$ac_objext
4963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_header_compiler=yes
4985else
4986 echo "$as_me: failed program was:" >&5
4987sed 's/^/| /' conftest.$ac_ext >&5
4988
4989ac_header_compiler=no
4990fi
4991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4993echo "${ECHO_T}$ac_header_compiler" >&6
4994
4995# Is the header present?
4996echo "$as_me:$LINENO: checking libintl.h presence" >&5
4997echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4998cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h. */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h. */
5004#include <libintl.h>
5005_ACEOF
5006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev/null; then
5014 if test -s conftest.err; then
5015 ac_cpp_err=$ac_c_preproc_warn_flag
5016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5017 else
5018 ac_cpp_err=
5019 fi
5020else
5021 ac_cpp_err=yes
5022fi
5023if test -z "$ac_cpp_err"; then
5024 ac_header_preproc=yes
5025else
5026 echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 ac_header_preproc=no
5030fi
5031rm -f conftest.err conftest.$ac_ext
5032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5033echo "${ECHO_T}$ac_header_preproc" >&6
5034
5035# So? What about this header?
5036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5037 yes:no: )
5038 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5039echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5040 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5041echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5042 ac_header_preproc=yes
5043 ;;
5044 no:yes:* )
5045 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5046echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5048echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5049 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5050echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5052echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5054echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5056echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5057 (
5058 cat <<\_ASBOX
5059## ------------------------------------------ ##
5060## Report this to the AC_PACKAGE_NAME lists. ##
5061## ------------------------------------------ ##
5062_ASBOX
5063 ) |
5064 sed "s/^/$as_me: WARNING: /" >&2
5065 ;;
5066esac
5067echo "$as_me:$LINENO: checking for libintl.h" >&5
5068echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5069if test "${ac_cv_header_libintl_h+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072 ac_cv_header_libintl_h=$ac_header_preproc
5073fi
5074echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5075echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5076
5077fi
5078if test $ac_cv_header_libintl_h = yes; then
5079 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5080echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5081if test "${gt_cv_func_gettext_libc+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
5090#include <libintl.h>
5091int
5092main ()
5093{
5094return (int) gettext ("")
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext conftest$ac_exeext
5100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101 (eval $ac_link) 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -z "$ac_c_werror_flag"
5109 || test ! -s conftest.err'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 gt_cv_func_gettext_libc=yes
5122else
5123 echo "$as_me: failed program was:" >&5
5124sed 's/^/| /' conftest.$ac_ext >&5
5125
5126gt_cv_func_gettext_libc=no
5127fi
5128rm -f conftest.err conftest.$ac_objext \
5129 conftest$ac_exeext conftest.$ac_ext
5130fi
5131echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5132echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5133
5134 if test "$gt_cv_func_gettext_libc" != "yes"; then
5135 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5136echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5137if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140 ac_check_lib_save_LIBS=$LIBS
5141LIBS="-lintl $LIBS"
5142cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h. */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h. */
5148
5149/* Override any gcc2 internal prototype to avoid an error. */
5150#ifdef __cplusplus
5151extern "C"
5152#endif
5153/* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5155char bindtextdomain ();
5156int
5157main ()
5158{
5159bindtextdomain ();
5160 ;
5161 return 0;
5162}
5163_ACEOF
5164rm -f conftest.$ac_objext conftest$ac_exeext
5165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5166 (eval $ac_link) 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -z "$ac_c_werror_flag"
5174 || test ! -s conftest.err'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; } &&
5180 { ac_try='test -s conftest$ac_exeext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_lib_intl_bindtextdomain=yes
5187else
5188 echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5
5190
5191ac_cv_lib_intl_bindtextdomain=no
5192fi
5193rm -f conftest.err conftest.$ac_objext \
5194 conftest$ac_exeext conftest.$ac_ext
5195LIBS=$ac_check_lib_save_LIBS
5196fi
5197echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5198echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5199if test $ac_cv_lib_intl_bindtextdomain = yes; then
5200 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5201echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5202if test "${gt_cv_func_gettext_libintl+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205 cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h. */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h. */
5211
5212int
5213main ()
5214{
5215return (int) gettext ("")
5216 ;
5217 return 0;
5218}
5219_ACEOF
5220rm -f conftest.$ac_objext conftest$ac_exeext
5221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5222 (eval $ac_link) 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest$ac_exeext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 gt_cv_func_gettext_libintl=yes
5243else
5244 echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247gt_cv_func_gettext_libintl=no
5248fi
5249rm -f conftest.err conftest.$ac_objext \
5250 conftest$ac_exeext conftest.$ac_ext
5251fi
5252echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5253echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5254fi
5255
5256 fi
5257
5258 if test "$gt_cv_func_gettext_libc" = "yes" \
5259 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2b193c4a
MK
5260
5261cat >>confdefs.h <<\_ACEOF
35695fd6
AC
5262#define HAVE_GETTEXT 1
5263_ACEOF
5264
5265 # Extract the first word of "msgfmt", so it can be a program name with args.
5266set dummy msgfmt; ac_word=$2
5267echo "$as_me:$LINENO: checking for $ac_word" >&5
5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269if test "${ac_cv_path_MSGFMT+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 case "$MSGFMT" in
5273 /*)
5274 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5275 ;;
5276 *)
5277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5278 for ac_dir in $PATH; do
5279 test -z "$ac_dir" && ac_dir=.
5280 if test -f $ac_dir/$ac_word; then
5281 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5282 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5283 break
5284 fi
5285 fi
5286 done
5287 IFS="$ac_save_ifs"
5288 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5289 ;;
5290esac
5291fi
5292MSGFMT="$ac_cv_path_MSGFMT"
5293if test -n "$MSGFMT"; then
5294 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5295echo "${ECHO_T}$MSGFMT" >&6
5296else
5297 echo "$as_me:$LINENO: result: no" >&5
5298echo "${ECHO_T}no" >&6
5299fi
5300 if test "$MSGFMT" != "no"; then
5301
5302for ac_func in dcgettext
5303do
5304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5305echo "$as_me:$LINENO: checking for $ac_func" >&5
5306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5307if eval "test \"\${$as_ac_var+set}\" = set"; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310 cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h. */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h. */
5316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5318#define $ac_func innocuous_$ac_func
5319
5320/* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char $ac_func (); below.
5322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323 <limits.h> exists even on freestanding compilers. */
5324
5325#ifdef __STDC__
5326# include <limits.h>
5327#else
5328# include <assert.h>
5329#endif
5330
5331#undef $ac_func
5332
5333/* Override any gcc2 internal prototype to avoid an error. */
5334#ifdef __cplusplus
5335extern "C"
5336{
5337#endif
5338/* We use char because int might match the return type of a gcc2
5339 builtin and then its argument prototype would still apply. */
5340char $ac_func ();
5341/* The GNU C library defines this for functions which it implements
5342 to always fail with ENOSYS. Some functions are actually named
5343 something starting with __ and the normal name is an alias. */
5344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5345choke me
5346#else
5347char (*f) () = $ac_func;
5348#endif
5349#ifdef __cplusplus
5350}
5351#endif
5352
5353int
5354main ()
5355{
5356return f != $ac_func;
5357 ;
5358 return 0;
5359}
5360_ACEOF
5361rm -f conftest.$ac_objext conftest$ac_exeext
5362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -z "$ac_c_werror_flag"
5371 || test ! -s conftest.err'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 (eval $ac_try) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try='test -s conftest$ac_exeext'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 (eval $ac_try) 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 eval "$as_ac_var=yes"
5384else
5385 echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388eval "$as_ac_var=no"
5389fi
5390rm -f conftest.err conftest.$ac_objext \
5391 conftest$ac_exeext conftest.$ac_ext
5392fi
5393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5395if test `eval echo '${'$as_ac_var'}'` = yes; then
5396 cat >>confdefs.h <<_ACEOF
5397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5398_ACEOF
5399
5400fi
5401done
5402
5403 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5404set dummy gmsgfmt; ac_word=$2
5405echo "$as_me:$LINENO: checking for $ac_word" >&5
5406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407if test "${ac_cv_path_GMSGFMT+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410 case $GMSGFMT in
5411 [\\/]* | ?:[\\/]*)
5412 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5413 ;;
5414 *)
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426done
5427done
5428
5429 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5430 ;;
5431esac
5432fi
5433GMSGFMT=$ac_cv_path_GMSGFMT
5434
5435if test -n "$GMSGFMT"; then
5436 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5437echo "${ECHO_T}$GMSGFMT" >&6
5438else
5439 echo "$as_me:$LINENO: result: no" >&5
5440echo "${ECHO_T}no" >&6
5441fi
5442
5443 # Extract the first word of "xgettext", so it can be a program name with args.
5444set dummy xgettext; ac_word=$2
5445echo "$as_me:$LINENO: checking for $ac_word" >&5
5446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5447if test "${ac_cv_path_XGETTEXT+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
5450 case "$XGETTEXT" in
5451 /*)
5452 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5453 ;;
5454 *)
5455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5456 for ac_dir in $PATH; do
5457 test -z "$ac_dir" && ac_dir=.
5458 if test -f $ac_dir/$ac_word; then
5459 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5460 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5461 break
5462 fi
5463 fi
5464 done
5465 IFS="$ac_save_ifs"
5466 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5467 ;;
5468esac
5469fi
5470XGETTEXT="$ac_cv_path_XGETTEXT"
5471if test -n "$XGETTEXT"; then
5472 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5473echo "${ECHO_T}$XGETTEXT" >&6
5474else
5475 echo "$as_me:$LINENO: result: no" >&5
5476echo "${ECHO_T}no" >&6
5477fi
5478
5479 cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h. */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h. */
5485
5486int
5487main ()
5488{
5489extern int _nl_msg_cat_cntr;
5490 return _nl_msg_cat_cntr
5491 ;
5492 return 0;
5493}
5494_ACEOF
5495rm -f conftest.$ac_objext conftest$ac_exeext
5496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5497 (eval $ac_link) 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag"
5505 || test ! -s conftest.err'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try='test -s conftest$ac_exeext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 CATOBJEXT=.gmo
5518 DATADIRNAME=share
5519else
5520 echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
5523CATOBJEXT=.mo
5524 DATADIRNAME=lib
5525fi
5526rm -f conftest.err conftest.$ac_objext \
5527 conftest$ac_exeext conftest.$ac_ext
5528 INSTOBJEXT=.mo
5529 fi
5530 fi
5531
5532fi
5533
5534
5535
5536
2b193c4a
MK
5537 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5538 # Neither gettext nor catgets in included in the C library.
5539 # Fall back on GNU gettext library (assuming it is present).
5540 nls_cv_use_gnu_gettext=yes
35695fd6
AC
5541 fi
5542 fi
5543
5544 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5545 INTLOBJS="\$(GETTOBJS)"
5546 # Extract the first word of "msgfmt", so it can be a program name with args.
5547set dummy msgfmt; ac_word=$2
5548echo "$as_me:$LINENO: checking for $ac_word" >&5
5549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550if test "${ac_cv_path_MSGFMT+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553 case "$MSGFMT" in
5554 /*)
5555 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5556 ;;
5557 *)
5558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5559 for ac_dir in $PATH; do
5560 test -z "$ac_dir" && ac_dir=.
5561 if test -f $ac_dir/$ac_word; then
5562 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5563 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5564 break
5565 fi
5566 fi
5567 done
5568 IFS="$ac_save_ifs"
5569 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5570 ;;
5571esac
5572fi
5573MSGFMT="$ac_cv_path_MSGFMT"
5574if test -n "$MSGFMT"; then
5575 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5576echo "${ECHO_T}$MSGFMT" >&6
5577else
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580fi
5581
5582 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5583set dummy gmsgfmt; ac_word=$2
5584echo "$as_me:$LINENO: checking for $ac_word" >&5
5585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586if test "${ac_cv_path_GMSGFMT+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589 case $GMSGFMT in
5590 [\\/]* | ?:[\\/]*)
5591 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5592 ;;
5593 *)
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5604 fi
5605done
5606done
5607
5608 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5609 ;;
5610esac
5611fi
5612GMSGFMT=$ac_cv_path_GMSGFMT
5613
5614if test -n "$GMSGFMT"; then
5615 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5616echo "${ECHO_T}$GMSGFMT" >&6
5617else
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
5620fi
5621
5622 # Extract the first word of "xgettext", so it can be a program name with args.
5623set dummy xgettext; ac_word=$2
5624echo "$as_me:$LINENO: checking for $ac_word" >&5
5625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626if test "${ac_cv_path_XGETTEXT+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629 case "$XGETTEXT" in
5630 /*)
5631 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5632 ;;
5633 *)
5634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5635 for ac_dir in $PATH; do
5636 test -z "$ac_dir" && ac_dir=.
5637 if test -f $ac_dir/$ac_word; then
5638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5639 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5640 break
5641 fi
5642 fi
5643 done
5644 IFS="$ac_save_ifs"
5645 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5646 ;;
5647esac
5648fi
5649XGETTEXT="$ac_cv_path_XGETTEXT"
5650if test -n "$XGETTEXT"; then
5651 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5652echo "${ECHO_T}$XGETTEXT" >&6
5653else
5654 echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656fi
5657
5658
5659 USE_INCLUDED_LIBINTL=yes
5660 CATOBJEXT=.gmo
5661 INSTOBJEXT=.mo
5662 DATADIRNAME=share
5663 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5664 INTLLIBS=$INTLDEPS
5665 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5666 nls_cv_header_intl=libintl.h
5667 nls_cv_header_libgt=libgettext.h
5668 fi
5669
5670 if test "$XGETTEXT" != ":"; then
5671 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5672 : ;
5673 else
5674 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5675echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5676 XGETTEXT=":"
5677 fi
5678 fi
5679
5680 # We need to process the po/ directory.
5681 POSUB=po
5682 else
5683 DATADIRNAME=share
5684 nls_cv_header_intl=libintl.h
5685 nls_cv_header_libgt=libgettext.h
5686 fi
5687
5688 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5689 # because some of the sources are only built for this goal.
5690 if test "$PACKAGE" = gettext; then
5691 USE_NLS=yes
5692 USE_INCLUDED_LIBINTL=yes
5693 fi
5694
5695 for lang in $ALL_LINGUAS; do
5696 GMOFILES="$GMOFILES $lang.gmo"
5697 POFILES="$POFILES $lang.po"
5698 done
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
2b193c4a
MK
5711 if test "x$CATOBJEXT" != "x"; then
5712
5713cat >>confdefs.h <<\_ACEOF
5714#define ENABLE_NLS 1
5715_ACEOF
5716
5717 fi
35695fd6
AC
5718
5719
5720 if test "x$CATOBJEXT" != "x"; then
5721 if test "x$ALL_LINGUAS" = "x"; then
5722 LINGUAS=
5723 else
5724 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5725echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5726 NEW_LINGUAS=
5727 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5728 case "$ALL_LINGUAS" in
5729 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5730 esac
5731 done
5732 LINGUAS=$NEW_LINGUAS
5733 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5734echo "${ECHO_T}$LINGUAS" >&6
5735 fi
5736
5737 if test -n "$LINGUAS"; then
5738 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5739 fi
5740 fi
5741
5742 if test $ac_cv_header_locale_h = yes; then
5743 INCLUDE_LOCALE_H="#include <locale.h>"
5744 else
5745 INCLUDE_LOCALE_H="\
5746/* The system does not provide the header <locale.h>. Take care yourself. */"
5747 fi
5748
5749
5750 if test -f $srcdir/po2tbl.sed.in; then
5751 if test "$CATOBJEXT" = ".cat"; then
5752 if test "${ac_cv_header_linux_version_h+set}" = set; then
5753 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5754echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5755if test "${ac_cv_header_linux_version_h+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757fi
5758echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5759echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5760else
5761 # Is the header compilable?
5762echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5763echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5764cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h. */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h. */
5770$ac_includes_default
5771#include <linux/version.h>
5772_ACEOF
5773rm -f conftest.$ac_objext
5774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try='test -z "$ac_c_werror_flag"
5783 || test ! -s conftest.err'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; } &&
5789 { ac_try='test -s conftest.$ac_objext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_header_compiler=yes
5796else
5797 echo "$as_me: failed program was:" >&5
5798sed 's/^/| /' conftest.$ac_ext >&5
5799
5800ac_header_compiler=no
5801fi
5802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5804echo "${ECHO_T}$ac_header_compiler" >&6
5805
5806# Is the header present?
5807echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5808echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5809cat >conftest.$ac_ext <<_ACEOF
5810/* confdefs.h. */
5811_ACEOF
5812cat confdefs.h >>conftest.$ac_ext
5813cat >>conftest.$ac_ext <<_ACEOF
5814/* end confdefs.h. */
5815#include <linux/version.h>
5816_ACEOF
5817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } >/dev/null; then
5825 if test -s conftest.err; then
5826 ac_cpp_err=$ac_c_preproc_warn_flag
5827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5828 else
5829 ac_cpp_err=
5830 fi
5831else
5832 ac_cpp_err=yes
5833fi
5834if test -z "$ac_cpp_err"; then
5835 ac_header_preproc=yes
5836else
5837 echo "$as_me: failed program was:" >&5
5838sed 's/^/| /' conftest.$ac_ext >&5
5839
5840 ac_header_preproc=no
5841fi
5842rm -f conftest.err conftest.$ac_ext
5843echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5844echo "${ECHO_T}$ac_header_preproc" >&6
5845
5846# So? What about this header?
5847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5848 yes:no: )
5849 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5850echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5851 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5852echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5853 ac_header_preproc=yes
5854 ;;
5855 no:yes:* )
5856 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5857echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5858 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5859echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5861echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5863echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5865echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5867echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5868 (
5869 cat <<\_ASBOX
5870## ------------------------------------------ ##
5871## Report this to the AC_PACKAGE_NAME lists. ##
5872## ------------------------------------------ ##
5873_ASBOX
5874 ) |
5875 sed "s/^/$as_me: WARNING: /" >&2
5876 ;;
5877esac
5878echo "$as_me:$LINENO: checking for linux/version.h" >&5
5879echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5880if test "${ac_cv_header_linux_version_h+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883 ac_cv_header_linux_version_h=$ac_header_preproc
5884fi
5885echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5886echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5887
5888fi
5889if test $ac_cv_header_linux_version_h = yes; then
5890 msgformat=linux
5891else
5892 msgformat=xopen
5893fi
5894
5895
5896
5897 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5898 fi
5899 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5900 $srcdir/po2tbl.sed.in > po2tbl.sed
5901 fi
5902
5903 if test "$PACKAGE" = "gettext"; then
5904 GT_NO="#NO#"
5905 GT_YES=
5906 else
5907 GT_NO=
5908 GT_YES="#YES#"
5909 fi
5910
5911
5912
5913 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
f0569246 5914
b7026657 5915
35695fd6 5916 l=
b7026657 5917
5d031c16 5918
2b193c4a 5919 if test -f $srcdir/po/POTFILES.in; then
35695fd6
AC
5920 test -d po || mkdir po
5921 if test "x$srcdir" != "x."; then
5922 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5923 posrcprefix="$srcdir/"
5924 else
5925 posrcprefix="../$srcdir/"
5926 fi
5927 else
5928 posrcprefix="../"
5929 fi
5930 rm -f po/POTFILES
5931 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5932 < $srcdir/po/POTFILES.in > po/POTFILES
5933 fi
b7026657 5934
5d031c16 5935
35695fd6
AC
5936# Check for common headers.
5937# FIXME: Seems to me this can cause problems for i386-windows hosts.
5938# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
b7026657
AC
5939
5940
5941
5942
5943
5944for ac_header in stdlib.h string.h strings.h unistd.h time.h
5d031c16 5945do
b7026657
AC
5946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947if eval "test \"\${$as_ac_Header+set}\" = set"; then
5948 echo "$as_me:$LINENO: checking for $ac_header" >&5
5949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5950if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952fi
5953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5955else
5956 # Is the header compilable?
5957echo "$as_me:$LINENO: checking $ac_header usability" >&5
5958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5959cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965$ac_includes_default
5966#include <$ac_header>
5967_ACEOF
5968rm -f conftest.$ac_objext
5969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -z "$ac_c_werror_flag"
5978 || test ! -s conftest.err'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; } &&
5984 { ac_try='test -s conftest.$ac_objext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 ac_header_compiler=yes
5991else
5992 echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995ac_header_compiler=no
5996fi
5997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5998echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5999echo "${ECHO_T}$ac_header_compiler" >&6
6000
6001# Is the header present?
6002echo "$as_me:$LINENO: checking $ac_header presence" >&5
6003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6004cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h. */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h. */
6010#include <$ac_header>
6011_ACEOF
6012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev/null; then
6020 if test -s conftest.err; then
6021 ac_cpp_err=$ac_c_preproc_warn_flag
6022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6023 else
6024 ac_cpp_err=
6025 fi
6026else
6027 ac_cpp_err=yes
5d031c16 6028fi
b7026657
AC
6029if test -z "$ac_cpp_err"; then
6030 ac_header_preproc=yes
6031else
6032 echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 ac_header_preproc=no
5d031c16 6036fi
b7026657
AC
6037rm -f conftest.err conftest.$ac_ext
6038echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6039echo "${ECHO_T}$ac_header_preproc" >&6
6040
6041# So? What about this header?
6042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6043 yes:no: )
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6045echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6047echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6048 ac_header_preproc=yes
6049 ;;
6050 no:yes:* )
6051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6052echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6054echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6056echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6058echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6062echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6063 (
6064 cat <<\_ASBOX
6065## ------------------------------------------ ##
6066## Report this to the AC_PACKAGE_NAME lists. ##
6067## ------------------------------------------ ##
6068_ASBOX
6069 ) |
6070 sed "s/^/$as_me: WARNING: /" >&2
6071 ;;
6072esac
6073echo "$as_me:$LINENO: checking for $ac_header" >&5
6074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6075if eval "test \"\${$as_ac_Header+set}\" = set"; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
5d031c16 6077else
b7026657
AC
6078 eval "$as_ac_Header=\$ac_header_preproc"
6079fi
6080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6082
6083fi
6084if test `eval echo '${'$as_ac_Header'}'` = yes; then
6085 cat >>confdefs.h <<_ACEOF
6086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6087_ACEOF
6088
5d031c16 6089fi
b7026657 6090
5d031c16
AC
6091done
6092
b7026657
AC
6093
6094
6095for ac_header in sys/time.h sys/resource.h
5d031c16 6096do
b7026657
AC
6097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099 echo "$as_me:$LINENO: checking for $ac_header" >&5
6100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103fi
6104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6106else
6107 # Is the header compilable?
6108echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
6116$ac_includes_default
6117#include <$ac_header>
6118_ACEOF
6119rm -f conftest.$ac_objext
6120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_header_compiler=yes
6142else
6143 echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146ac_header_compiler=no
6147fi
6148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6150echo "${ECHO_T}$ac_header_compiler" >&6
6151
6152# Is the header present?
6153echo "$as_me:$LINENO: checking $ac_header presence" >&5
6154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6155cat >conftest.$ac_ext <<_ACEOF
6156/* confdefs.h. */
6157_ACEOF
6158cat confdefs.h >>conftest.$ac_ext
6159cat >>conftest.$ac_ext <<_ACEOF
6160/* end confdefs.h. */
6161#include <$ac_header>
6162_ACEOF
6163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } >/dev/null; then
6171 if test -s conftest.err; then
6172 ac_cpp_err=$ac_c_preproc_warn_flag
6173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6174 else
6175 ac_cpp_err=
6176 fi
6177else
6178 ac_cpp_err=yes
5d031c16 6179fi
b7026657
AC
6180if test -z "$ac_cpp_err"; then
6181 ac_header_preproc=yes
6182else
6183 echo "$as_me: failed program was:" >&5
6184sed 's/^/| /' conftest.$ac_ext >&5
6185
6186 ac_header_preproc=no
5d031c16 6187fi
b7026657
AC
6188rm -f conftest.err conftest.$ac_ext
6189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6190echo "${ECHO_T}$ac_header_preproc" >&6
6191
6192# So? What about this header?
6193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6194 yes:no: )
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6199 ac_header_preproc=yes
6200 ;;
6201 no:yes:* )
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6214 (
6215 cat <<\_ASBOX
6216## ------------------------------------------ ##
6217## Report this to the AC_PACKAGE_NAME lists. ##
6218## ------------------------------------------ ##
6219_ASBOX
6220 ) |
6221 sed "s/^/$as_me: WARNING: /" >&2
6222 ;;
6223esac
6224echo "$as_me:$LINENO: checking for $ac_header" >&5
6225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6226if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
5d031c16 6228else
b7026657
AC
6229 eval "$as_ac_Header=\$ac_header_preproc"
6230fi
6231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233
6234fi
6235if test `eval echo '${'$as_ac_Header'}'` = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6238_ACEOF
6239
5d031c16 6240fi
b7026657 6241
5d031c16
AC
6242done
6243
b7026657
AC
6244
6245
6246for ac_header in fcntl.h fpu_control.h
5d031c16 6247do
b7026657
AC
6248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6249if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo "$as_me:$LINENO: checking for $ac_header" >&5
6251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254fi
6255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6257else
6258 # Is the header compilable?
6259echo "$as_me:$LINENO: checking $ac_header usability" >&5
6260echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6261cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267$ac_includes_default
6268#include <$ac_header>
6269_ACEOF
6270rm -f conftest.$ac_objext
6271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_header_compiler=yes
6293else
6294 echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
6297ac_header_compiler=no
6298fi
6299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6301echo "${ECHO_T}$ac_header_compiler" >&6
6302
6303# Is the header present?
6304echo "$as_me:$LINENO: checking $ac_header presence" >&5
6305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6306cat >conftest.$ac_ext <<_ACEOF
6307/* confdefs.h. */
6308_ACEOF
6309cat confdefs.h >>conftest.$ac_ext
6310cat >>conftest.$ac_ext <<_ACEOF
6311/* end confdefs.h. */
6312#include <$ac_header>
6313_ACEOF
6314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } >/dev/null; then
6322 if test -s conftest.err; then
6323 ac_cpp_err=$ac_c_preproc_warn_flag
6324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6325 else
6326 ac_cpp_err=
6327 fi
6328else
6329 ac_cpp_err=yes
5d031c16 6330fi
b7026657
AC
6331if test -z "$ac_cpp_err"; then
6332 ac_header_preproc=yes
6333else
6334 echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_header_preproc=no
5d031c16 6338fi
b7026657
AC
6339rm -f conftest.err conftest.$ac_ext
6340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6341echo "${ECHO_T}$ac_header_preproc" >&6
6342
6343# So? What about this header?
6344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6345 yes:no: )
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6350 ac_header_preproc=yes
6351 ;;
6352 no:yes:* )
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6365 (
6366 cat <<\_ASBOX
6367## ------------------------------------------ ##
6368## Report this to the AC_PACKAGE_NAME lists. ##
6369## ------------------------------------------ ##
6370_ASBOX
6371 ) |
6372 sed "s/^/$as_me: WARNING: /" >&2
6373 ;;
6374esac
6375echo "$as_me:$LINENO: checking for $ac_header" >&5
6376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
5d031c16 6379else
b7026657
AC
6380 eval "$as_ac_Header=\$ac_header_preproc"
6381fi
6382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6384
5d031c16 6385fi
b7026657
AC
6386if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 cat >>confdefs.h <<_ACEOF
6388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389_ACEOF
6390
6391fi
6392
5d031c16
AC
6393done
6394
b7026657
AC
6395
6396
6397
6398for ac_header in dlfcn.h errno.h sys/stat.h
5d031c16 6399do
b7026657
AC
6400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo "$as_me:$LINENO: checking for $ac_header" >&5
6403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406fi
6407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6409else
6410 # Is the header compilable?
6411echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h. */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h. */
6419$ac_includes_default
6420#include <$ac_header>
6421_ACEOF
6422rm -f conftest.$ac_objext
6423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6445else
6446 echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
6448
6449ac_header_compiler=no
6450fi
6451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453echo "${ECHO_T}$ac_header_compiler" >&6
6454
6455# Is the header present?
6456echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h. */
6464#include <$ac_header>
6465_ACEOF
6466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477 else
6478 ac_cpp_err=
6479 fi
6480else
6481 ac_cpp_err=yes
5d031c16 6482fi
b7026657
AC
6483if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6485else
6486 echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489 ac_header_preproc=no
5d031c16 6490fi
b7026657
AC
6491rm -f conftest.err conftest.$ac_ext
6492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493echo "${ECHO_T}$ac_header_preproc" >&6
6494
6495# So? What about this header?
6496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497 yes:no: )
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6503 ;;
6504 no:yes:* )
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6517 (
6518 cat <<\_ASBOX
6519## ------------------------------------------ ##
6520## Report this to the AC_PACKAGE_NAME lists. ##
6521## ------------------------------------------ ##
6522_ASBOX
6523 ) |
6524 sed "s/^/$as_me: WARNING: /" >&2
6525 ;;
6526esac
6527echo "$as_me:$LINENO: checking for $ac_header" >&5
6528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
5d031c16 6531else
b7026657 6532 eval "$as_ac_Header=\$ac_header_preproc"
5d031c16 6533fi
b7026657
AC
6534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536
6537fi
6538if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541_ACEOF
6542
6543fi
6544
5d031c16
AC
6545done
6546
b7026657
AC
6547
6548
6549
6550
5d031c16
AC
6551for ac_func in getrusage time sigaction __setfpucw
6552do
b7026657
AC
6553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6554echo "$as_me:$LINENO: checking for $ac_func" >&5
6555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6556if eval "test \"\${$as_ac_var+set}\" = set"; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558else
6559 cat >conftest.$ac_ext <<_ACEOF
6560/* confdefs.h. */
6561_ACEOF
6562cat confdefs.h >>conftest.$ac_ext
6563cat >>conftest.$ac_ext <<_ACEOF
6564/* end confdefs.h. */
6565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6567#define $ac_func innocuous_$ac_func
6568
5d031c16 6569/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
6570 which can conflict with char $ac_func (); below.
6571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6572 <limits.h> exists even on freestanding compilers. */
5d031c16 6573
b7026657
AC
6574#ifdef __STDC__
6575# include <limits.h>
6576#else
6577# include <assert.h>
6578#endif
5d031c16 6579
b7026657
AC
6580#undef $ac_func
6581
6582/* Override any gcc2 internal prototype to avoid an error. */
6583#ifdef __cplusplus
6584extern "C"
6585{
6586#endif
6587/* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6589char $ac_func ();
5d031c16
AC
6590/* The GNU C library defines this for functions which it implements
6591 to always fail with ENOSYS. Some functions are actually named
6592 something starting with __ and the normal name is an alias. */
6593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6594choke me
6595#else
b7026657
AC
6596char (*f) () = $ac_func;
6597#endif
6598#ifdef __cplusplus
6599}
5d031c16
AC
6600#endif
6601
b7026657
AC
6602int
6603main ()
6604{
6605return f != $ac_func;
6606 ;
6607 return 0;
6608}
6609_ACEOF
6610rm -f conftest.$ac_objext conftest$ac_exeext
6611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -z "$ac_c_werror_flag"
6620 || test ! -s conftest.err'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest$ac_exeext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 eval "$as_ac_var=yes"
6633else
6634 echo "$as_me: failed program was:" >&5
6635sed 's/^/| /' conftest.$ac_ext >&5
6636
6637eval "$as_ac_var=no"
6638fi
6639rm -f conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6641fi
6642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6644if test `eval echo '${'$as_ac_var'}'` = yes; then
6645 cat >>confdefs.h <<_ACEOF
6646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6647_ACEOF
5d031c16 6648
5d031c16
AC
6649fi
6650done
6651
6652
6653# Check for socket libraries
b7026657
AC
6654
6655echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6656echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6657if test "${ac_cv_lib_socket_bind+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
5d031c16 6659else
b7026657 6660 ac_check_lib_save_LIBS=$LIBS
5d031c16 6661LIBS="-lsocket $LIBS"
b7026657
AC
6662cat >conftest.$ac_ext <<_ACEOF
6663/* confdefs.h. */
6664_ACEOF
6665cat confdefs.h >>conftest.$ac_ext
6666cat >>conftest.$ac_ext <<_ACEOF
6667/* end confdefs.h. */
6668
5d031c16 6669/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6670#ifdef __cplusplus
6671extern "C"
6672#endif
5d031c16 6673/* We use char because int might match the return type of a gcc2
b7026657
AC
6674 builtin and then its argument prototype would still apply. */
6675char bind ();
6676int
6677main ()
6678{
6679bind ();
6680 ;
6681 return 0;
6682}
6683_ACEOF
6684rm -f conftest.$ac_objext conftest$ac_exeext
6685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686 (eval $ac_link) 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -z "$ac_c_werror_flag"
6694 || test ! -s conftest.err'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; } &&
6700 { ac_try='test -s conftest$ac_exeext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_lib_socket_bind=yes
6707else
6708 echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711ac_cv_lib_socket_bind=no
6712fi
6713rm -f conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
6715LIBS=$ac_check_lib_save_LIBS
6716fi
6717echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6718echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6719if test $ac_cv_lib_socket_bind = yes; then
6720 cat >>confdefs.h <<_ACEOF
6721#define HAVE_LIBSOCKET 1
6722_ACEOF
5d031c16
AC
6723
6724 LIBS="-lsocket $LIBS"
6725
5d031c16
AC
6726fi
6727
b7026657
AC
6728
6729echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6730echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6731if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
5d031c16 6733else
b7026657 6734 ac_check_lib_save_LIBS=$LIBS
5d031c16 6735LIBS="-lnsl $LIBS"
b7026657
AC
6736cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h. */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h. */
6742
5d031c16 6743/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6744#ifdef __cplusplus
6745extern "C"
6746#endif
5d031c16 6747/* We use char because int might match the return type of a gcc2
b7026657
AC
6748 builtin and then its argument prototype would still apply. */
6749char gethostbyname ();
6750int
6751main ()
6752{
6753gethostbyname ();
6754 ;
6755 return 0;
6756}
6757_ACEOF
6758rm -f conftest.$ac_objext conftest$ac_exeext
6759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
6767 { ac_try='test -z "$ac_c_werror_flag"
6768 || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_lib_nsl_gethostbyname=yes
6781else
6782 echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785ac_cv_lib_nsl_gethostbyname=no
6786fi
6787rm -f conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789LIBS=$ac_check_lib_save_LIBS
6790fi
6791echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6792echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6793if test $ac_cv_lib_nsl_gethostbyname = yes; then
6794 cat >>confdefs.h <<_ACEOF
6795#define HAVE_LIBNSL 1
6796_ACEOF
5d031c16
AC
6797
6798 LIBS="-lnsl $LIBS"
6799
5d031c16
AC
6800fi
6801
6802
6803. ${srcdir}/../../bfd/configure.host
6804
6805
6806
6807USE_MAINTAINER_MODE=no
6808# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6809if test "${enable_maintainer_mode+set}" = set; then
6810 enableval="$enable_maintainer_mode"
6811 case "${enableval}" in
6812 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6813 no) MAINT="#" ;;
b7026657
AC
6814 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6815echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6816 { (exit 1); exit 1; }; }; MAINT="#" ;;
5d031c16
AC
6817esac
6818if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6819 echo "Setting maintainer mode" 6>&1
6820fi
6821else
6822 MAINT="#"
b7026657 6823fi;
5d031c16
AC
6824
6825
6826# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6827if test "${enable_sim_bswap+set}" = set; then
6828 enableval="$enable_sim_bswap"
6829 case "${enableval}" in
6830 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6831 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
6832 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6833echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6834 { (exit 1); exit 1; }; }; sim_bswap="";;
5d031c16
AC
6835esac
6836if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6837 echo "Setting bswap flags = $sim_bswap" 6>&1
6838fi
6839else
6840 sim_bswap=""
b7026657 6841fi;
5d031c16
AC
6842
6843
6844# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6845if test "${enable_sim_cflags+set}" = set; then
6846 enableval="$enable_sim_cflags"
6847 case "${enableval}" in
6848 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
6849 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6850echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6851 { (exit 1); exit 1; }; }; sim_cflags="";;
5d031c16
AC
6852 no) sim_cflags="";;
6853 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6854esac
6855if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6856 echo "Setting sim cflags = $sim_cflags" 6>&1
6857fi
6858else
6859 sim_cflags=""
b7026657 6860fi;
5d031c16
AC
6861
6862
6863# Check whether --enable-sim-debug or --disable-sim-debug was given.
6864if test "${enable_sim_debug+set}" = set; then
6865 enableval="$enable_sim_debug"
6866 case "${enableval}" in
6867 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6868 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6869 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6870esac
6871if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6872 echo "Setting sim debug = $sim_debug" 6>&1
6873fi
6874else
6875 sim_debug=""
b7026657 6876fi;
5d031c16
AC
6877
6878
6879# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6880if test "${enable_sim_stdio+set}" = set; then
6881 enableval="$enable_sim_stdio"
6882 case "${enableval}" in
6883 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6884 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
6885 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6886echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6887 { (exit 1); exit 1; }; }; sim_stdio="";;
5d031c16
AC
6888esac
6889if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6890 echo "Setting stdio flags = $sim_stdio" 6>&1
6891fi
6892else
6893 sim_stdio=""
b7026657 6894fi;
5d031c16
AC
6895
6896
6897# Check whether --enable-sim-trace or --disable-sim-trace was given.
6898if test "${enable_sim_trace+set}" = set; then
6899 enableval="$enable_sim_trace"
6900 case "${enableval}" in
6901 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6902 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6903 [-0-9]*)
6904 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6905 [a-z]*)
6906 sim_trace=""
6907 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6908 if test x"$sim_trace" = x; then
6909 sim_trace="-DWITH_TRACE='(TRACE_$x"
6910 else
6911 sim_trace="${sim_trace}|TRACE_$x"
6912 fi
6913 done
6914 sim_trace="$sim_trace)'" ;;
6915esac
6916if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6917 echo "Setting sim trace = $sim_trace" 6>&1
6918fi
6919else
6920 sim_trace=""
b7026657 6921fi;
5d031c16
AC
6922
6923
6924# Check whether --enable-sim-profile or --disable-sim-profile was given.
6925if test "${enable_sim_profile+set}" = set; then
6926 enableval="$enable_sim_profile"
6927 case "${enableval}" in
6928 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6929 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6930 [-0-9]*)
6931 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6932 [a-z]*)
6933 sim_profile=""
6934 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6935 if test x"$sim_profile" = x; then
6936 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6937 else
6938 sim_profile="${sim_profile}|PROFILE_$x"
6939 fi
6940 done
6941 sim_profile="$sim_profile)'" ;;
6942esac
6943if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6944 echo "Setting sim profile = $sim_profile" 6>&1
6945fi
6946else
6947 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 6948fi;
5d031c16
AC
6949
6950
b7026657
AC
6951echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6952echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6953if test "${ac_cv_type_signal+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
5d031c16 6955else
b7026657
AC
6956 cat >conftest.$ac_ext <<_ACEOF
6957/* confdefs.h. */
6958_ACEOF
6959cat confdefs.h >>conftest.$ac_ext
6960cat >>conftest.$ac_ext <<_ACEOF
6961/* end confdefs.h. */
5d031c16
AC
6962#include <sys/types.h>
6963#include <signal.h>
6964#ifdef signal
b7026657 6965# undef signal
5d031c16
AC
6966#endif
6967#ifdef __cplusplus
6968extern "C" void (*signal (int, void (*)(int)))(int);
6969#else
6970void (*signal ()) ();
6971#endif
6972
b7026657
AC
6973int
6974main ()
6975{
5d031c16 6976int i;
b7026657
AC
6977 ;
6978 return 0;
6979}
6980_ACEOF
6981rm -f conftest.$ac_objext
6982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_c_werror_flag"
6991 || test ! -s conftest.err'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; } &&
6997 { ac_try='test -s conftest.$ac_objext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
5d031c16
AC
7003 ac_cv_type_signal=void
7004else
b7026657
AC
7005 echo "$as_me: failed program was:" >&5
7006sed 's/^/| /' conftest.$ac_ext >&5
7007
7008ac_cv_type_signal=int
5d031c16 7009fi
b7026657 7010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d031c16 7011fi
b7026657
AC
7012echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7013echo "${ECHO_T}$ac_cv_type_signal" >&6
5d031c16 7014
b7026657 7015cat >>confdefs.h <<_ACEOF
5d031c16 7016#define RETSIGTYPE $ac_cv_type_signal
b7026657 7017_ACEOF
5d031c16
AC
7018
7019
7020
5d031c16
AC
7021
7022
7023sim_link_files=
7024sim_link_links=
7025
7026sim_link_links=tconfig.h
7027if test -f ${srcdir}/tconfig.in
7028then
7029 sim_link_files=tconfig.in
7030else
7031 sim_link_files=../common/tconfig.in
7032fi
7033
7034# targ-vals.def points to the libc macro description file.
7035case "${target}" in
7036*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
7037esac
7038sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
7039sim_link_links="${sim_link_links} targ-vals.def"
7040
5d031c16
AC
7041
7042
7043default_sim_inline=""
7044# Check whether --enable-sim-inline or --disable-sim-inline was given.
7045if test "${enable_sim_inline+set}" = set; then
7046 enableval="$enable_sim_inline"
7047 sim_inline=""
7048case "$enableval" in
7049 no) sim_inline="-DDEFAULT_INLINE=0";;
7050 0) sim_inline="-DDEFAULT_INLINE=0";;
7051 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
7052 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
7053 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
7054 new_flag=""
7055 case "$x" in
7056 *_INLINE=*) new_flag="-D$x";;
7057 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7058 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
7059 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
7060 esac
7061 if test x"$sim_inline" = x""; then
7062 sim_inline="$new_flag"
7063 else
7064 sim_inline="$sim_inline $new_flag"
7065 fi
7066 done;;
7067esac
7068if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
7069 echo "Setting inline flags = $sim_inline" 6>&1
7070fi
7071else
b7026657 7072
5d031c16
AC
7073if test "x$cross_compiling" = "xno"; then
7074 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
7075 sim_inline="${default_sim_inline}"
7076 if test x"$silent" != x"yes"; then
7077 echo "Setting inline flags = $sim_inline" 6>&1
7078 fi
7079 else
7080 sim_inline=""
7081 fi
7082else
7083 sim_inline="-DDEFAULT_INLINE=0"
7084fi
b7026657 7085fi;
5d031c16
AC
7086wire_alignment="NONSTRICT_ALIGNMENT"
7087default_alignment=""
7088
7089# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7090if test "${enable_sim_alignment+set}" = set; then
7091 enableval="$enable_sim_alignment"
7092 case "${enableval}" in
7093 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7094 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7095 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7096 yes) if test x"$wire_alignment" != x; then
7097 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
7098 else
7099 if test x"$default_alignment" != x; then
7100 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
7101 else
7102 echo "No hard-wired alignment for target $target" 1>&6
7103 sim_alignment="-DWITH_ALIGNMENT=0"
7104 fi
7105 fi;;
7106 no) if test x"$default_alignment" != x; then
7107 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7108 else
7109 if test x"$wire_alignment" != x; then
7110 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7111 else
7112 echo "No default alignment for target $target" 1>&6
7113 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
7114 fi
7115 fi;;
b7026657
AC
7116 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7117echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7118 { (exit 1); exit 1; }; }; sim_alignment="";;
5d031c16
AC
7119esac
7120if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
7121 echo "Setting alignment flags = $sim_alignment" 6>&1
7122fi
7123else
7124 if test x"$default_alignment" != x; then
7125 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7126else
7127 if test x"$wire_alignment" != x; then
7128 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
7129 else
7130 sim_alignment=
7131 fi
7132fi
b7026657 7133fi;
5d031c16
AC
7134
7135# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7136if test "${enable_sim_hostendian+set}" = set; then
7137 enableval="$enable_sim_hostendian"
7138 case "${enableval}" in
7139 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
7140 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7141 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
b7026657
AC
7142 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7143echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7144 { (exit 1); exit 1; }; }; sim_hostendian="";;
5d031c16
AC
7145esac
7146if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
7147 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7148fi
7149else
b7026657 7150
5d031c16 7151if test "x$cross_compiling" = "xno"; then
b7026657
AC
7152 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7153echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7154if test "${ac_cv_c_bigendian+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157 # See if sys/param.h defines the BYTE_ORDER macro.
7158cat >conftest.$ac_ext <<_ACEOF
7159/* confdefs.h. */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h. */
5d031c16
AC
7164#include <sys/types.h>
7165#include <sys/param.h>
5d031c16 7166
b7026657
AC
7167int
7168main ()
7169{
5d031c16
AC
7170#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7171 bogus endian macros
7172#endif
b7026657
AC
7173
7174 ;
7175 return 0;
7176}
7177_ACEOF
7178rm -f conftest.$ac_objext
7179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180 (eval $ac_compile) 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -z "$ac_c_werror_flag"
7188 || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
5d031c16 7200 # It does; now see whether it defined to BIG_ENDIAN or not.
b7026657
AC
7201cat >conftest.$ac_ext <<_ACEOF
7202/* confdefs.h. */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h. */
5d031c16
AC
7207#include <sys/types.h>
7208#include <sys/param.h>
5d031c16 7209
b7026657
AC
7210int
7211main ()
7212{
5d031c16
AC
7213#if BYTE_ORDER != BIG_ENDIAN
7214 not big endian
7215#endif
b7026657
AC
7216
7217 ;
7218 return 0;
7219}
7220_ACEOF
7221rm -f conftest.$ac_objext
7222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223 (eval $ac_compile) 2>conftest.er1
7224 ac_status=$?
7225 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -f conftest.er1
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } &&
7230 { ac_try='test -z "$ac_c_werror_flag"
7231 || test ! -s conftest.err'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; } &&
7237 { ac_try='test -s conftest.$ac_objext'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 (eval $ac_try) 2>&5
7240 ac_status=$?
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
5d031c16
AC
7243 ac_cv_c_bigendian=yes
7244else
b7026657
AC
7245 echo "$as_me: failed program was:" >&5
7246sed 's/^/| /' conftest.$ac_ext >&5
7247
7248ac_cv_c_bigendian=no
5d031c16 7249fi
b7026657 7250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d031c16 7251else
b7026657
AC
7252 echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
7255# It does not; compile a test program.
5d031c16 7256if test "$cross_compiling" = yes; then
b7026657
AC
7257 # try to guess the endianness by grepping values into an object file
7258 ac_cv_c_bigendian=unknown
7259 cat >conftest.$ac_ext <<_ACEOF
7260/* confdefs.h. */
7261_ACEOF
7262cat confdefs.h >>conftest.$ac_ext
7263cat >>conftest.$ac_ext <<_ACEOF
7264/* end confdefs.h. */
7265short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7266short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7267void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7268short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7269short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7270void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7271int
7272main ()
7273{
7274 _ascii (); _ebcdic ();
7275 ;
7276 return 0;
7277}
7278_ACEOF
7279rm -f conftest.$ac_objext
7280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7302 ac_cv_c_bigendian=yes
7303fi
7304if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7305 if test "$ac_cv_c_bigendian" = unknown; then
7306 ac_cv_c_bigendian=no
7307 else
7308 # finding both strings is unlikely to happen, but who knows?
7309 ac_cv_c_bigendian=unknown
7310 fi
7311fi
5d031c16 7312else
b7026657
AC
7313 echo "$as_me: failed program was:" >&5
7314sed 's/^/| /' conftest.$ac_ext >&5
7315
7316fi
7317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318else
7319 cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h. */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h. */
7325int
7326main ()
7327{
5d031c16
AC
7328 /* Are we little or big endian? From Harbison&Steele. */
7329 union
7330 {
7331 long l;
7332 char c[sizeof (long)];
7333 } u;
7334 u.l = 1;
7335 exit (u.c[sizeof (long) - 1] == 1);
7336}
b7026657
AC
7337_ACEOF
7338rm -f conftest$ac_exeext
7339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7340 (eval $ac_link) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
5d031c16
AC
7349 ac_cv_c_bigendian=no
7350else
b7026657
AC
7351 echo "$as_me: program exited with status $ac_status" >&5
7352echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5
7354
7355( exit $ac_status )
7356ac_cv_c_bigendian=yes
5d031c16 7357fi
b7026657 7358rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d031c16 7359fi
5d031c16 7360fi
b7026657 7361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d031c16 7362fi
b7026657
AC
7363echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7364echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7365case $ac_cv_c_bigendian in
7366 yes)
5d031c16 7367
b7026657 7368cat >>confdefs.h <<\_ACEOF
5d031c16 7369#define WORDS_BIGENDIAN 1
b7026657
AC
7370_ACEOF
7371 ;;
7372 no)
7373 ;;
7374 *)
7375 { { echo "$as_me:$LINENO: error: unknown endianness
7376presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7377echo "$as_me: error: unknown endianness
7378presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7379 { (exit 1); exit 1; }; } ;;
7380esac
5d031c16
AC
7381
7382 if test $ac_cv_c_bigendian = yes; then
7383 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7384 else
7385 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7386 fi
7387else
7388 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7389fi
b7026657 7390fi;
5d031c16 7391
c8cca39f
AC
7392# NOTE: Don't add -Wall or -Wunused, they both include
7393# -Wunused-parameter which reports bogus warnings.
7394# NOTE: If you add to this list, remember to update
7395# gdb/doc/gdbint.texinfo.
7396build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
51216631
JB
7397-Wformat -Wparentheses -Wpointer-arith"
7398# GCC supports -Wuninitialized only with -O or -On, n != 0.
7399if test x${CFLAGS+set} = xset; then
7400 case "${CFLAGS}" in
7401 *"-O0"* ) ;;
7402 *"-O"* )
7403 build_warnings="${build_warnings} -Wuninitialized"
7404 ;;
7405 esac
7406else
7407 build_warnings="${build_warnings} -Wuninitialized"
7408fi
c8cca39f
AC
7409# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7410# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7411# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7412# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7413# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7414# -Woverloaded-virtual -Winline -Werror"
5d031c16
AC
7415# Check whether --enable-build-warnings or --disable-build-warnings was given.
7416if test "${enable_build_warnings+set}" = set; then
7417 enableval="$enable_build_warnings"
c8cca39f
AC
7418 case "${enableval}" in
7419 yes) ;;
7420 no) build_warnings="-w";;
7421 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7422 build_warnings="${build_warnings} ${t}";;
7423 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7424 build_warnings="${t} ${build_warnings}";;
7425 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7426esac
7427if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7428 echo "Setting compiler warning flags = $build_warnings" 6>&1
7429fi
b7026657 7430fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
c8cca39f
AC
7431if test "${enable_sim_build_warnings+set}" = set; then
7432 enableval="$enable_sim_build_warnings"
7433 case "${enableval}" in
5d031c16
AC
7434 yes) ;;
7435 no) build_warnings="-w";;
7436 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 7437 build_warnings="${build_warnings} ${t}";;
5d031c16 7438 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
7439 build_warnings="${t} ${build_warnings}";;
7440 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5d031c16
AC
7441esac
7442if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
7443 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7444fi
b7026657 7445fi; WARN_CFLAGS=""
5d031c16
AC
7446WERROR_CFLAGS=""
7447if test "x${build_warnings}" != x -a "x$GCC" = xyes
7448then
b7026657
AC
7449 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7450echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
c8cca39f
AC
7451 # Separate out the -Werror flag as some files just cannot be
7452 # compiled with it enabled.
7453 for w in ${build_warnings}; do
7454 case $w in
7455 -Werr*) WERROR_CFLAGS=-Werror ;;
7456 *) # Check that GCC accepts it
7457 saved_CFLAGS="$CFLAGS"
7458 CFLAGS="$CFLAGS $w"
b7026657
AC
7459 cat >conftest.$ac_ext <<_ACEOF
7460/* confdefs.h. */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h. */
c8cca39f 7465
b7026657
AC
7466int
7467main ()
7468{
c8cca39f 7469
b7026657
AC
7470 ;
7471 return 0;
7472}
7473_ACEOF
7474rm -f conftest.$ac_objext
7475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476 (eval $ac_compile) 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try='test -z "$ac_c_werror_flag"
7484 || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
c8cca39f 7496 WARN_CFLAGS="${WARN_CFLAGS} $w"
5d031c16 7497else
b7026657
AC
7498 echo "$as_me: failed program was:" >&5
7499sed 's/^/| /' conftest.$ac_ext >&5
7500
c8cca39f 7501fi
b7026657 7502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
7503 CFLAGS="$saved_CFLAGS"
7504 esac
7505 done
b7026657
AC
7506 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7507echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
5d031c16
AC
7508fi
7509
7510
7511#
7512# Add simulated hardware devices
7513#
7514hw_enabled=no
7515case "${target}" in
7516 m68hc11-*-*|m6811-*-*)
7517 hw_enabled=yes
7518 hw_extra_devices="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
7519 m68hc11_extra_objs="dv-sockser.o"
7520 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_M68HC11=1"
7521 ;;
7522 *)
b7026657 7523 m68hc11_extra_objs=""
5d031c16
AC
7524 ;;
7525esac
7526
7527if test x"$hw_enabled" = x"yes"; then
7528 sim_hw_p=yes
7529else
7530 sim_hw_p=no
7531fi
7532if test "$hw_devices"; then
7533 hardware="core pal glue"
7534else
7535 hardware="core pal glue $hw_extra_devices"
7536fi
7537sim_hw_cflags="-DWITH_HW=1"
7538sim_hw="$hardware"
7539sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7540# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7541if test "${enable_sim_hardware+set}" = set; then
7542 enableval="$enable_sim_hardware"
b7026657 7543
5d031c16
AC
7544case "${enableval}" in
7545 yes) sim_hw_p=yes;;
7546 no) sim_hw_p=no;;
7547 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7548 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7549 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7550esac
7551if test "$sim_hw_p" != yes; then
7552 sim_hw_objs=
7553 sim_hw_cflags="-DWITH_HW=0"
7554 sim_hw=
7555else
7556 sim_hw_cflags="-DWITH_HW=1"
7557 # remove duplicates
7558 sim_hw=""
7559 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7560 for i in x $hardware ; do
7561 case " $f " in
7562 x) ;;
7563 *" $i "*) ;;
7564 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7565 esac
7566 done
7567fi
7568if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7569 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7570fi
7571else
b7026657 7572
5d031c16
AC
7573if test "$sim_hw_p" != yes; then
7574 sim_hw_objs=
7575 sim_hw_cflags="-DWITH_HW=0"
7576 sim_hw=
7577fi
7578if test x"$silent" != x"yes"; then
7579 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7580fi
b7026657 7581fi;
5d031c16
AC
7582
7583
b7026657
AC
7584
7585
7586
7587
7588for ac_header in string.h strings.h stdlib.h stdlib.h fcntl.h
5d031c16 7589do
b7026657
AC
7590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7591if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592 echo "$as_me:$LINENO: checking for $ac_header" >&5
7593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7594if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596fi
7597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7599else
7600 # Is the header compilable?
7601echo "$as_me:$LINENO: checking $ac_header usability" >&5
7602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7603cat >conftest.$ac_ext <<_ACEOF
7604/* confdefs.h. */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h. */
7609$ac_includes_default
7610#include <$ac_header>
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -z "$ac_c_werror_flag"
7622 || test ! -s conftest.err'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_header_compiler=yes
7635else
7636 echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
7639ac_header_compiler=no
7640fi
7641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7642echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7643echo "${ECHO_T}$ac_header_compiler" >&6
7644
7645# Is the header present?
7646echo "$as_me:$LINENO: checking $ac_header presence" >&5
7647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7648cat >conftest.$ac_ext <<_ACEOF
7649/* confdefs.h. */
7650_ACEOF
7651cat confdefs.h >>conftest.$ac_ext
7652cat >>conftest.$ac_ext <<_ACEOF
7653/* end confdefs.h. */
7654#include <$ac_header>
7655_ACEOF
7656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } >/dev/null; then
7664 if test -s conftest.err; then
7665 ac_cpp_err=$ac_c_preproc_warn_flag
7666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7667 else
7668 ac_cpp_err=
7669 fi
7670else
7671 ac_cpp_err=yes
5d031c16 7672fi
b7026657
AC
7673if test -z "$ac_cpp_err"; then
7674 ac_header_preproc=yes
7675else
7676 echo "$as_me: failed program was:" >&5
7677sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 ac_header_preproc=no
5d031c16 7680fi
b7026657
AC
7681rm -f conftest.err conftest.$ac_ext
7682echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7683echo "${ECHO_T}$ac_header_preproc" >&6
7684
7685# So? What about this header?
7686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7687 yes:no: )
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7692 ac_header_preproc=yes
7693 ;;
7694 no:yes:* )
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7698echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7702echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7707 (
7708 cat <<\_ASBOX
7709## ------------------------------------------ ##
7710## Report this to the AC_PACKAGE_NAME lists. ##
7711## ------------------------------------------ ##
7712_ASBOX
7713 ) |
7714 sed "s/^/$as_me: WARNING: /" >&2
7715 ;;
7716esac
7717echo "$as_me:$LINENO: checking for $ac_header" >&5
7718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7719if eval "test \"\${$as_ac_Header+set}\" = set"; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
5d031c16 7721else
b7026657
AC
7722 eval "$as_ac_Header=\$ac_header_preproc"
7723fi
7724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7726
5d031c16 7727fi
b7026657
AC
7728if test `eval echo '${'$as_ac_Header'}'` = yes; then
7729 cat >>confdefs.h <<_ACEOF
7730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7731_ACEOF
7732
7733fi
7734
5d031c16
AC
7735done
7736
7737
7738
7739
7740
b7026657
AC
7741ac_sources="$sim_link_files"
7742ac_dests="$sim_link_links"
7743while test -n "$ac_sources"; do
7744 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7745 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7746 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7747done
7748 ac_config_links="$ac_config_links $ac_config_links_1"
5d031c16 7749
379832de
HPN
7750cgen_breaks=""
7751if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7752cgen_breaks="break cgen_rtx_error";
7753fi
7754
38f48d72
AC
7755 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7756
7757 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7758
7759 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7760
7761 ac_config_commands="$ac_config_commands Makefile"
7762
7763 ac_config_commands="$ac_config_commands stamp-h"
7764
b7026657 7765cat >confcache <<\_ACEOF
5d031c16
AC
7766# This file is a shell script that caches the results of configure
7767# tests run on this system so they can be shared between configure
b7026657
AC
7768# scripts and configure runs, see configure's option --config-cache.
7769# It is not useful on other systems. If it contains results you don't
7770# want to keep, you may remove or edit it.
5d031c16 7771#
b7026657
AC
7772# config.status only pays attention to the cache file if you give it
7773# the --recheck option to rerun configure.
5d031c16 7774#
b7026657
AC
7775# `ac_cv_env_foo' variables (set or unset) will be overridden when
7776# loading this file, other *unset* `ac_cv_foo' will be assigned the
7777# following values.
7778
7779_ACEOF
7780
5d031c16
AC
7781# The following way of writing the cache mishandles newlines in values,
7782# but we know of no workaround that is simple, portable, and efficient.
7783# So, don't put newlines in cache variables' values.
7784# Ultrix sh set writes to stderr and can't be redirected directly,
7785# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
7786{
7787 (set) 2>&1 |
7788 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7789 *ac_space=\ *)
7790 # `set' does not quote correctly, so add quotes (double-quote
7791 # substitution turns \\\\ into \\, and sed turns \\ into \).
7792 sed -n \
7793 "s/'/'\\\\''/g;
7794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7795 ;;
7796 *)
7797 # `set' quotes correctly as required by POSIX, so do not add quotes.
7798 sed -n \
7799 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7800 ;;
7801 esac;
7802} |
7803 sed '
7804 t clear
7805 : clear
7806 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7807 t end
7808 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7809 : end' >>confcache
7810if diff $cache_file confcache >/dev/null 2>&1; then :; else
5d031c16 7811 if test -w $cache_file; then
b7026657
AC
7812 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7813 cat confcache >$cache_file
5d031c16
AC
7814 else
7815 echo "not updating unwritable cache $cache_file"
7816 fi
7817fi
7818rm -f confcache
7819
5d031c16
AC
7820test "x$prefix" = xNONE && prefix=$ac_default_prefix
7821# Let make expand exec_prefix.
7822test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7823
b7026657
AC
7824# VPATH may cause trouble with some makes, so we remove $(srcdir),
7825# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7826# trailing colons and then remove the whole line if VPATH becomes empty
7827# (actually we leave an empty line to preserve line numbers).
5d031c16 7828if test "x$srcdir" = x.; then
b7026657
AC
7829 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7830s/:*\$(srcdir):*/:/;
7831s/:*\${srcdir}:*/:/;
7832s/:*@srcdir@:*/:/;
7833s/^\([^=]*=[ ]*\):*/\1/;
7834s/:*$//;
7835s/^[^=]*=[ ]*$//;
7836}'
5d031c16
AC
7837fi
7838
5d031c16
AC
7839DEFS=-DHAVE_CONFIG_H
7840
b7026657
AC
7841ac_libobjs=
7842ac_ltlibobjs=
7843for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7844 # 1. Remove the extension, and $U if already installed.
7845 ac_i=`echo "$ac_i" |
7846 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7847 # 2. Add them.
7848 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7849 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7850done
7851LIBOBJS=$ac_libobjs
5d031c16 7852
b7026657
AC
7853LTLIBOBJS=$ac_ltlibobjs
7854
7855
7856
7857: ${CONFIG_STATUS=./config.status}
7858ac_clean_files_save=$ac_clean_files
7859ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7860{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7861echo "$as_me: creating $CONFIG_STATUS" >&6;}
7862cat >$CONFIG_STATUS <<_ACEOF
7863#! $SHELL
7864# Generated by $as_me.
5d031c16 7865# Run this file to recreate the current configuration.
5d031c16 7866# Compiler output produced by configure, useful for debugging
b7026657 7867# configure, is in config.log if it exists.
5d031c16 7868
b7026657
AC
7869debug=false
7870ac_cs_recheck=false
7871ac_cs_silent=false
7872SHELL=\${CONFIG_SHELL-$SHELL}
7873_ACEOF
7874
7875cat >>$CONFIG_STATUS <<\_ACEOF
7876## --------------------- ##
7877## M4sh Initialization. ##
7878## --------------------- ##
7879
7880# Be Bourne compatible
7881if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7882 emulate sh
7883 NULLCMD=:
7884 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7885 # is contrary to our usage. Disable this feature.
7886 alias -g '${1+"$@"}'='"$@"'
7887elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7888 set -o posix
7889fi
7890DUALCASE=1; export DUALCASE # for MKS sh
7891
7892# Support unset when possible.
7893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7894 as_unset=unset
7895else
7896 as_unset=false
7897fi
7898
7899
7900# Work around bugs in pre-3.0 UWIN ksh.
7901$as_unset ENV MAIL MAILPATH
7902PS1='$ '
7903PS2='> '
7904PS4='+ '
7905
7906# NLS nuisances.
7907for as_var in \
7908 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7909 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7910 LC_TELEPHONE LC_TIME
5d031c16 7911do
b7026657
AC
7912 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7913 eval $as_var=C; export $as_var
7914 else
7915 $as_unset $as_var
7916 fi
5d031c16
AC
7917done
7918
b7026657
AC
7919# Required to use basename.
7920if expr a : '\(a\)' >/dev/null 2>&1; then
7921 as_expr=expr
7922else
7923 as_expr=false
7924fi
7925
7926if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7927 as_basename=basename
7928else
7929 as_basename=false
7930fi
5d031c16 7931
5d031c16 7932
b7026657
AC
7933# Name of the executable.
7934as_me=`$as_basename "$0" ||
7935$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7936 X"$0" : 'X\(//\)$' \| \
7937 X"$0" : 'X\(/\)$' \| \
7938 . : '\(.\)' 2>/dev/null ||
7939echo X/"$0" |
7940 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7941 /^X\/\(\/\/\)$/{ s//\1/; q; }
7942 /^X\/\(\/\).*/{ s//\1/; q; }
7943 s/.*/./; q'`
5d031c16 7944
b7026657
AC
7945
7946# PATH needs CR, and LINENO needs CR and PATH.
7947# Avoid depending upon Character Ranges.
7948as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7949as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7950as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7951as_cr_digits='0123456789'
7952as_cr_alnum=$as_cr_Letters$as_cr_digits
7953
7954# The user is always right.
7955if test "${PATH_SEPARATOR+set}" != set; then
7956 echo "#! /bin/sh" >conf$$.sh
7957 echo "exit 0" >>conf$$.sh
7958 chmod +x conf$$.sh
7959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7960 PATH_SEPARATOR=';'
5d031c16 7961 else
b7026657
AC
7962 PATH_SEPARATOR=:
7963 fi
7964 rm -f conf$$.sh
7965fi
7966
7967
7968 as_lineno_1=$LINENO
7969 as_lineno_2=$LINENO
7970 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7971 test "x$as_lineno_1" != "x$as_lineno_2" &&
7972 test "x$as_lineno_3" = "x$as_lineno_2" || {
7973 # Find who we are. Look in the path if we contain no path at all
7974 # relative or not.
7975 case $0 in
7976 *[\\/]* ) as_myself=$0 ;;
7977 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978for as_dir in $PATH
7979do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7983done
7984
7985 ;;
7986 esac
7987 # We did not find ourselves, most probably we were run as `sh COMMAND'
7988 # in which case we are not to be found in the path.
7989 if test "x$as_myself" = x; then
7990 as_myself=$0
7991 fi
7992 if test ! -f "$as_myself"; then
7993 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7994echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7995 { (exit 1); exit 1; }; }
5d031c16 7996 fi
b7026657
AC
7997 case $CONFIG_SHELL in
7998 '')
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8001do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for as_base in sh bash ksh sh5; do
8005 case $as_dir in
8006 /*)
8007 if ("$as_dir/$as_base" -c '
8008 as_lineno_1=$LINENO
8009 as_lineno_2=$LINENO
8010 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8011 test "x$as_lineno_1" != "x$as_lineno_2" &&
8012 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8013 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8014 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8015 CONFIG_SHELL=$as_dir/$as_base
8016 export CONFIG_SHELL
8017 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8018 fi;;
8019 esac
8020 done
8021done
8022;;
8023 esac
8024
8025 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8026 # uniformly replaced by the line number. The first 'sed' inserts a
8027 # line-number line before each line; the second 'sed' does the real
8028 # work. The second script uses 'N' to pair each line-number line
8029 # with the numbered line, and appends trailing '-' during
8030 # substitution so that $LINENO is not a special case at line end.
8031 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8032 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8033 sed '=' <$as_myself |
8034 sed '
8035 N
8036 s,$,-,
8037 : loop
8038 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8039 t loop
8040 s,-$,,
8041 s,^['$as_cr_digits']*\n,,
8042 ' >$as_me.lineno &&
8043 chmod +x $as_me.lineno ||
8044 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8045echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8046 { (exit 1); exit 1; }; }
8047
8048 # Don't try to exec as it changes $[0], causing all sort of problems
8049 # (the dirname of $[0] is not the place where we might find the
8050 # original and so on. Autoconf is especially sensible to this).
8051 . ./$as_me.lineno
8052 # Exit status is that of the last command.
8053 exit
8054}
8055
8056
8057case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8058 *c*,-n*) ECHO_N= ECHO_C='
8059' ECHO_T=' ' ;;
8060 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8061 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8062esac
8063
8064if expr a : '\(a\)' >/dev/null 2>&1; then
8065 as_expr=expr
8066else
8067 as_expr=false
8068fi
8069
8070rm -f conf$$ conf$$.exe conf$$.file
8071echo >conf$$.file
8072if ln -s conf$$.file conf$$ 2>/dev/null; then
8073 # We could just check for DJGPP; but this test a) works b) is more generic
8074 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8075 if test -f conf$$.exe; then
8076 # Don't use ln at all; we don't have any links
8077 as_ln_s='cp -p'
5d031c16 8078 else
b7026657 8079 as_ln_s='ln -s'
5d031c16 8080 fi
b7026657
AC
8081elif ln conf$$.file conf$$ 2>/dev/null; then
8082 as_ln_s=ln
8083else
8084 as_ln_s='cp -p'
8085fi
8086rm -f conf$$ conf$$.exe conf$$.file
8087
8088if mkdir -p . 2>/dev/null; then
8089 as_mkdir_p=:
8090else
8091 test -d ./-p && rmdir ./-p
8092 as_mkdir_p=false
8093fi
8094
8095as_executable_p="test -f"
8096
8097# Sed expression to map a string onto a valid CPP name.
8098as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8099
8100# Sed expression to map a string onto a valid variable name.
8101as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8102
8103
8104# IFS
8105# We need space, tab and new line, in precisely that order.
8106as_nl='
8107'
8108IFS=" $as_nl"
8109
8110# CDPATH.
8111$as_unset CDPATH
8112
8113exec 6>&1
8114
8115# Open the log real soon, to keep \$[0] and so on meaningful, and to
8116# report actual input values of CONFIG_FILES etc. instead of their
8117# values after options handling. Logging --version etc. is OK.
8118exec 5>>config.log
8119{
8120 echo
8121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8122## Running $as_me. ##
8123_ASBOX
8124} >&5
8125cat >&5 <<_CSEOF
8126
8127This file was extended by $as_me, which was
8128generated by GNU Autoconf 2.59. Invocation command line was
8129
8130 CONFIG_FILES = $CONFIG_FILES
8131 CONFIG_HEADERS = $CONFIG_HEADERS
8132 CONFIG_LINKS = $CONFIG_LINKS
8133 CONFIG_COMMANDS = $CONFIG_COMMANDS
8134 $ $0 $@
8135
8136_CSEOF
8137echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8138echo >&5
8139_ACEOF
8140
8141# Files that config.status was made for.
8142if test -n "$ac_config_files"; then
8143 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8144fi
8145
8146if test -n "$ac_config_headers"; then
8147 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8148fi
8149
8150if test -n "$ac_config_links"; then
8151 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8152fi
8153
8154if test -n "$ac_config_commands"; then
8155 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8156fi
8157
8158cat >>$CONFIG_STATUS <<\_ACEOF
8159
8160ac_cs_usage="\
8161\`$as_me' instantiates files from templates according to the
8162current configuration.
8163
8164Usage: $0 [OPTIONS] [FILE]...
8165
8166 -h, --help print this help, then exit
8167 -V, --version print version number, then exit
8168 -q, --quiet do not print progress messages
8169 -d, --debug don't remove temporary files
8170 --recheck update $as_me by reconfiguring in the same conditions
8171 --file=FILE[:TEMPLATE]
8172 instantiate the configuration file FILE
8173 --header=FILE[:TEMPLATE]
8174 instantiate the configuration header FILE
8175
8176Configuration files:
8177$config_files
8178
8179Configuration headers:
8180$config_headers
8181
8182Configuration links:
8183$config_links
8184
8185Configuration commands:
8186$config_commands
8187
8188Report bugs to <bug-autoconf@gnu.org>."
8189_ACEOF
8190
8191cat >>$CONFIG_STATUS <<_ACEOF
8192ac_cs_version="\\
8193config.status
8194configured by $0, generated by GNU Autoconf 2.59,
8195 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8196
8197Copyright (C) 2003 Free Software Foundation, Inc.
8198This config.status script is free software; the Free Software Foundation
8199gives unlimited permission to copy, distribute and modify it."
8200srcdir=$srcdir
8201INSTALL="$INSTALL"
8202_ACEOF
8203
8204cat >>$CONFIG_STATUS <<\_ACEOF
8205# If no file are specified by the user, then we need to provide default
8206# value. By we need to know if files were specified by the user.
8207ac_need_defaults=:
8208while test $# != 0
8209do
8210 case $1 in
8211 --*=*)
8212 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8213 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8214 ac_shift=:
8215 ;;
8216 -*)
8217 ac_option=$1
8218 ac_optarg=$2
8219 ac_shift=shift
8220 ;;
8221 *) # This is not an option, so the user has probably given explicit
8222 # arguments.
8223 ac_option=$1
8224 ac_need_defaults=false;;
8225 esac
8226
8227 case $ac_option in
8228 # Handling of the options.
8229_ACEOF
8230cat >>$CONFIG_STATUS <<\_ACEOF
8231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8232 ac_cs_recheck=: ;;
8233 --version | --vers* | -V )
8234 echo "$ac_cs_version"; exit 0 ;;
8235 --he | --h)
8236 # Conflict between --help and --header
8237 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8238Try \`$0 --help' for more information." >&5
8239echo "$as_me: error: ambiguous option: $1
8240Try \`$0 --help' for more information." >&2;}
8241 { (exit 1); exit 1; }; };;
8242 --help | --hel | -h )
8243 echo "$ac_cs_usage"; exit 0 ;;
8244 --debug | --d* | -d )
8245 debug=: ;;
8246 --file | --fil | --fi | --f )
8247 $ac_shift
8248 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8249 ac_need_defaults=false;;
8250 --header | --heade | --head | --hea )
8251 $ac_shift
8252 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8253 ac_need_defaults=false;;
8254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8255 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8256 ac_cs_silent=: ;;
8257
8258 # This is an error.
8259 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8260Try \`$0 --help' for more information." >&5
8261echo "$as_me: error: unrecognized option: $1
8262Try \`$0 --help' for more information." >&2;}
8263 { (exit 1); exit 1; }; } ;;
8264
8265 *) ac_config_targets="$ac_config_targets $1" ;;
8266
8267 esac
8268 shift
5d031c16 8269done
b7026657
AC
8270
8271ac_configure_extra_args=
8272
8273if $ac_cs_silent; then
8274 exec 6>/dev/null
8275 ac_configure_extra_args="$ac_configure_extra_args --silent"
8276fi
8277
8278_ACEOF
8279cat >>$CONFIG_STATUS <<_ACEOF
8280if \$ac_cs_recheck; then
8281 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8282 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5d031c16 8283fi
5d031c16 8284
b7026657 8285_ACEOF
5d031c16 8286
b7026657
AC
8287
8288
8289
8290
8291cat >>$CONFIG_STATUS <<\_ACEOF
8292for ac_config_target in $ac_config_targets
8293do
8294 case "$ac_config_target" in
8295 # Handling of arguments.
8296 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8297 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8298 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8299 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
38f48d72
AC
8300 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
8301 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
b7026657
AC
8302 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8303 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8304echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8305 { (exit 1); exit 1; }; };;
5d031c16 8306 esac
b7026657 8307done
5d031c16 8308
b7026657
AC
8309# If the user did not use the arguments to specify the items to instantiate,
8310# then the envvar interface is used. Set only those that are not.
8311# We use the long form for the default assignment because of an extremely
8312# bizarre bug on SunOS 4.1.3.
8313if $ac_need_defaults; then
8314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8316 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8318fi
8319
8320# Have a temporary directory for convenience. Make it in the build tree
8321# simply because there is no reason to put it here, and in addition,
8322# creating and moving files from /tmp can sometimes cause problems.
8323# Create a temporary directory, and hook for its removal unless debugging.
8324$debug ||
8325{
8326 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8327 trap '{ (exit 1); exit 1; }' 1 2 13 15
8328}
5d031c16 8329
b7026657
AC
8330# Create a (secure) tmp directory for tmp files.
8331
8332{
8333 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8334 test -n "$tmp" && test -d "$tmp"
8335} ||
8336{
8337 tmp=./confstat$$-$RANDOM
8338 (umask 077 && mkdir $tmp)
8339} ||
8340{
8341 echo "$me: cannot create a temporary directory in ." >&2
8342 { (exit 1); exit 1; }
8343}
8344
8345_ACEOF
8346
8347cat >>$CONFIG_STATUS <<_ACEOF
8348
8349#
8350# CONFIG_FILES section.
8351#
8352
8353# No need to generate the scripts if there are no CONFIG_FILES.
8354# This happens for instance when ./config.status config.h
8355if test -n "\$CONFIG_FILES"; then
8356 # Protect against being on the right side of a sed subst in config.status.
8357 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8358 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
b7026657
AC
8359s,@SHELL@,$SHELL,;t t
8360s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8361s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8362s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8363s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8364s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8365s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8366s,@exec_prefix@,$exec_prefix,;t t
8367s,@prefix@,$prefix,;t t
8368s,@program_transform_name@,$program_transform_name,;t t
8369s,@bindir@,$bindir,;t t
8370s,@sbindir@,$sbindir,;t t
8371s,@libexecdir@,$libexecdir,;t t
8372s,@datadir@,$datadir,;t t
8373s,@sysconfdir@,$sysconfdir,;t t
8374s,@sharedstatedir@,$sharedstatedir,;t t
8375s,@localstatedir@,$localstatedir,;t t
8376s,@libdir@,$libdir,;t t
8377s,@includedir@,$includedir,;t t
8378s,@oldincludedir@,$oldincludedir,;t t
8379s,@infodir@,$infodir,;t t
8380s,@mandir@,$mandir,;t t
8381s,@build_alias@,$build_alias,;t t
8382s,@host_alias@,$host_alias,;t t
8383s,@target_alias@,$target_alias,;t t
8384s,@DEFS@,$DEFS,;t t
8385s,@ECHO_C@,$ECHO_C,;t t
8386s,@ECHO_N@,$ECHO_N,;t t
8387s,@ECHO_T@,$ECHO_T,;t t
8388s,@LIBS@,$LIBS,;t t
35695fd6
AC
8389s,@sim_environment@,$sim_environment,;t t
8390s,@sim_alignment@,$sim_alignment,;t t
8391s,@sim_assert@,$sim_assert,;t t
8392s,@sim_bitsize@,$sim_bitsize,;t t
8393s,@sim_endian@,$sim_endian,;t t
8394s,@sim_hostendian@,$sim_hostendian,;t t
8395s,@sim_float@,$sim_float,;t t
8396s,@sim_scache@,$sim_scache,;t t
8397s,@sim_default_model@,$sim_default_model,;t t
8398s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8399s,@sim_hw_objs@,$sim_hw_objs,;t t
8400s,@sim_hw@,$sim_hw,;t t
8401s,@sim_inline@,$sim_inline,;t t
8402s,@sim_packages@,$sim_packages,;t t
8403s,@sim_regparm@,$sim_regparm,;t t
8404s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8405s,@sim_smp@,$sim_smp,;t t
8406s,@sim_stdcall@,$sim_stdcall,;t t
8407s,@sim_xor_endian@,$sim_xor_endian,;t t
8408s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8409s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
b7026657
AC
8410s,@build@,$build,;t t
8411s,@build_cpu@,$build_cpu,;t t
8412s,@build_vendor@,$build_vendor,;t t
8413s,@build_os@,$build_os,;t t
8414s,@host@,$host,;t t
8415s,@host_cpu@,$host_cpu,;t t
8416s,@host_vendor@,$host_vendor,;t t
8417s,@host_os@,$host_os,;t t
8418s,@target@,$target,;t t
8419s,@target_cpu@,$target_cpu,;t t
8420s,@target_vendor@,$target_vendor,;t t
8421s,@target_os@,$target_os,;t t
8422s,@CC@,$CC,;t t
8423s,@CFLAGS@,$CFLAGS,;t t
8424s,@LDFLAGS@,$LDFLAGS,;t t
8425s,@CPPFLAGS@,$CPPFLAGS,;t t
8426s,@ac_ct_CC@,$ac_ct_CC,;t t
8427s,@EXEEXT@,$EXEEXT,;t t
8428s,@OBJEXT@,$OBJEXT,;t t
8429s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8430s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8431s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8432s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8433s,@HDEFINES@,$HDEFINES,;t t
8434s,@AR@,$AR,;t t
8435s,@RANLIB@,$RANLIB,;t t
8436s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35695fd6 8437s,@SET_MAKE@,$SET_MAKE,;t t
b7026657
AC
8438s,@CPP@,$CPP,;t t
8439s,@EGREP@,$EGREP,;t t
35695fd6
AC
8440s,@ALLOCA@,$ALLOCA,;t t
8441s,@USE_NLS@,$USE_NLS,;t t
8442s,@MSGFMT@,$MSGFMT,;t t
8443s,@GMSGFMT@,$GMSGFMT,;t t
8444s,@XGETTEXT@,$XGETTEXT,;t t
8445s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8446s,@CATALOGS@,$CATALOGS,;t t
8447s,@CATOBJEXT@,$CATOBJEXT,;t t
8448s,@DATADIRNAME@,$DATADIRNAME,;t t
8449s,@GMOFILES@,$GMOFILES,;t t
8450s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8451s,@INTLDEPS@,$INTLDEPS,;t t
8452s,@INTLLIBS@,$INTLLIBS,;t t
8453s,@INTLOBJS@,$INTLOBJS,;t t
8454s,@POFILES@,$POFILES,;t t
8455s,@POSUB@,$POSUB,;t t
8456s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8457s,@GT_NO@,$GT_NO,;t t
8458s,@GT_YES@,$GT_YES,;t t
8459s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8460s,@l@,$l,;t t
b7026657
AC
8461s,@MAINT@,$MAINT,;t t
8462s,@sim_bswap@,$sim_bswap,;t t
8463s,@sim_cflags@,$sim_cflags,;t t
8464s,@sim_debug@,$sim_debug,;t t
8465s,@sim_stdio@,$sim_stdio,;t t
8466s,@sim_trace@,$sim_trace,;t t
8467s,@sim_profile@,$sim_profile,;t t
8468s,@m68hc11_extra_objs@,$m68hc11_extra_objs,;t t
8469s,@cgen_breaks@,$cgen_breaks,;t t
8470s,@LIBOBJS@,$LIBOBJS,;t t
8471s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8472CEOF
8473
8474_ACEOF
8475
8476 cat >>$CONFIG_STATUS <<\_ACEOF
8477 # Split the substitutions into bite-sized pieces for seds with
8478 # small command number limits, like on Digital OSF/1 and HP-UX.
8479 ac_max_sed_lines=48
8480 ac_sed_frag=1 # Number of current file.
8481 ac_beg=1 # First line for current file.
8482 ac_end=$ac_max_sed_lines # Line after last line for current file.
8483 ac_more_lines=:
8484 ac_sed_cmds=
8485 while $ac_more_lines; do
8486 if test $ac_beg -gt 1; then
8487 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8488 else
8489 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8490 fi
8491 if test ! -s $tmp/subs.frag; then
8492 ac_more_lines=false
8493 else
8494 # The purpose of the label and of the branching condition is to
8495 # speed up the sed processing (if there are no `@' at all, there
8496 # is no need to browse any of the substitutions).
8497 # These are the two extra sed commands mentioned above.
8498 (echo ':t
8499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8500 if test -z "$ac_sed_cmds"; then
8501 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8502 else
8503 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8504 fi
8505 ac_sed_frag=`expr $ac_sed_frag + 1`
8506 ac_beg=$ac_end
8507 ac_end=`expr $ac_end + $ac_max_sed_lines`
8508 fi
8509 done
8510 if test -z "$ac_sed_cmds"; then
8511 ac_sed_cmds=cat
5d031c16 8512 fi
b7026657 8513fi # test -n "$CONFIG_FILES"
5d031c16 8514
b7026657
AC
8515_ACEOF
8516cat >>$CONFIG_STATUS <<\_ACEOF
8517for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8518 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8519 case $ac_file in
8520 - | *:- | *:-:* ) # input from stdin
8521 cat >$tmp/stdin
8522 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8523 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8524 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8526 * ) ac_file_in=$ac_file.in ;;
5d031c16
AC
8527 esac
8528
b7026657
AC
8529 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8530 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8531$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8532 X"$ac_file" : 'X\(//\)[^/]' \| \
8533 X"$ac_file" : 'X\(//\)$' \| \
8534 X"$ac_file" : 'X\(/\)' \| \
8535 . : '\(.\)' 2>/dev/null ||
8536echo X"$ac_file" |
8537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8539 /^X\(\/\/\)$/{ s//\1/; q; }
8540 /^X\(\/\).*/{ s//\1/; q; }
8541 s/.*/./; q'`
8542 { if $as_mkdir_p; then
8543 mkdir -p "$ac_dir"
8544 else
8545 as_dir="$ac_dir"
8546 as_dirs=
8547 while test ! -d "$as_dir"; do
8548 as_dirs="$as_dir $as_dirs"
8549 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8550$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8551 X"$as_dir" : 'X\(//\)[^/]' \| \
8552 X"$as_dir" : 'X\(//\)$' \| \
8553 X"$as_dir" : 'X\(/\)' \| \
8554 . : '\(.\)' 2>/dev/null ||
8555echo X"$as_dir" |
8556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8558 /^X\(\/\/\)$/{ s//\1/; q; }
8559 /^X\(\/\).*/{ s//\1/; q; }
8560 s/.*/./; q'`
8561 done
8562 test ! -n "$as_dirs" || mkdir $as_dirs
8563 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8564echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8565 { (exit 1); exit 1; }; }; }
5d031c16 8566
b7026657
AC
8567 ac_builddir=.
8568
8569if test "$ac_dir" != .; then
8570 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8571 # A "../" for each directory in $ac_dir_suffix.
8572 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8573else
8574 ac_dir_suffix= ac_top_builddir=
8575fi
8576
8577case $srcdir in
8578 .) # No --srcdir option. We are building in place.
8579 ac_srcdir=.
8580 if test -z "$ac_top_builddir"; then
8581 ac_top_srcdir=.
8582 else
8583 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8584 fi ;;
8585 [\\/]* | ?:[\\/]* ) # Absolute path.
8586 ac_srcdir=$srcdir$ac_dir_suffix;
8587 ac_top_srcdir=$srcdir ;;
8588 *) # Relative path.
8589 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8590 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8591esac
8592
8593# Do not use `cd foo && pwd` to compute absolute paths, because
8594# the directories may not exist.
8595case `pwd` in
8596.) ac_abs_builddir="$ac_dir";;
8597*)
8598 case "$ac_dir" in
8599 .) ac_abs_builddir=`pwd`;;
8600 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8601 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8602 esac;;
8603esac
8604case $ac_abs_builddir in
8605.) ac_abs_top_builddir=${ac_top_builddir}.;;
8606*)
8607 case ${ac_top_builddir}. in
8608 .) ac_abs_top_builddir=$ac_abs_builddir;;
8609 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8610 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8611 esac;;
8612esac
8613case $ac_abs_builddir in
8614.) ac_abs_srcdir=$ac_srcdir;;
8615*)
8616 case $ac_srcdir in
8617 .) ac_abs_srcdir=$ac_abs_builddir;;
8618 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8619 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8620 esac;;
8621esac
8622case $ac_abs_builddir in
8623.) ac_abs_top_srcdir=$ac_top_srcdir;;
8624*)
8625 case $ac_top_srcdir in
8626 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8627 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8628 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8629 esac;;
8630esac
8631
8632
8633 case $INSTALL in
8634 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8635 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5d031c16
AC
8636 esac
8637
b7026657
AC
8638 if test x"$ac_file" != x-; then
8639 { echo "$as_me:$LINENO: creating $ac_file" >&5
8640echo "$as_me: creating $ac_file" >&6;}
8641 rm -f "$ac_file"
8642 fi
8643 # Let's still pretend it is `configure' which instantiates (i.e., don't
8644 # use $as_me), people would be surprised to read:
8645 # /* config.h. Generated by config.status. */
8646 if test x"$ac_file" = x-; then
8647 configure_input=
8648 else
8649 configure_input="$ac_file. "
8650 fi
8651 configure_input=$configure_input"Generated from `echo $ac_file_in |
8652 sed 's,.*/,,'` by configure."
8653
8654 # First look for the input files in the build tree, otherwise in the
8655 # src tree.
8656 ac_file_inputs=`IFS=:
8657 for f in $ac_file_in; do
8658 case $f in
8659 -) echo $tmp/stdin ;;
8660 [\\/$]*)
8661 # Absolute (can't be DOS-style, as IFS=:)
8662 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8663echo "$as_me: error: cannot find input file: $f" >&2;}
8664 { (exit 1); exit 1; }; }
8665 echo "$f";;
8666 *) # Relative
8667 if test -f "$f"; then
8668 # Build tree
8669 echo "$f"
8670 elif test -f "$srcdir/$f"; then
8671 # Source tree
8672 echo "$srcdir/$f"
8673 else
8674 # /dev/null tree
8675 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8676echo "$as_me: error: cannot find input file: $f" >&2;}
8677 { (exit 1); exit 1; }; }
8678 fi;;
8679 esac
8680 done` || { (exit 1); exit 1; }
8681_ACEOF
8682cat >>$CONFIG_STATUS <<_ACEOF
8683 sed "$ac_vpsub
8684$extrasub
8685_ACEOF
8686cat >>$CONFIG_STATUS <<\_ACEOF
8687:t
8688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8689s,@configure_input@,$configure_input,;t t
8690s,@srcdir@,$ac_srcdir,;t t
8691s,@abs_srcdir@,$ac_abs_srcdir,;t t
8692s,@top_srcdir@,$ac_top_srcdir,;t t
8693s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8694s,@builddir@,$ac_builddir,;t t
8695s,@abs_builddir@,$ac_abs_builddir,;t t
8696s,@top_builddir@,$ac_top_builddir,;t t
8697s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8698s,@INSTALL@,$ac_INSTALL,;t t
8699" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8700 rm -f $tmp/stdin
8701 if test x"$ac_file" != x-; then
8702 mv $tmp/out $ac_file
8703 else
8704 cat $tmp/out
8705 rm -f $tmp/out
8706 fi
8707
8708done
8709_ACEOF
8710cat >>$CONFIG_STATUS <<\_ACEOF
8711
8712#
8713# CONFIG_HEADER section.
8714#
5d031c16
AC
8715
8716# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8717# NAME is the cpp macro being defined and VALUE is the value it is being given.
8718#
8719# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
8720ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8721ac_dB='[ ].*$,\1#\2'
8722ac_dC=' '
8723ac_dD=',;t'
8724# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8725ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8726ac_uB='$,\1#\2define\3'
5d031c16 8727ac_uC=' '
b7026657
AC
8728ac_uD=',;t'
8729
8730for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5d031c16 8731 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
8732 case $ac_file in
8733 - | *:- | *:-:* ) # input from stdin
8734 cat >$tmp/stdin
8735 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8736 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8737 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8738 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8739 * ) ac_file_in=$ac_file.in ;;
5d031c16
AC
8740 esac
8741
b7026657
AC
8742 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8743echo "$as_me: creating $ac_file" >&6;}
8744
8745 # First look for the input files in the build tree, otherwise in the
8746 # src tree.
8747 ac_file_inputs=`IFS=:
8748 for f in $ac_file_in; do
8749 case $f in
8750 -) echo $tmp/stdin ;;
8751 [\\/$]*)
8752 # Absolute (can't be DOS-style, as IFS=:)
8753 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8754echo "$as_me: error: cannot find input file: $f" >&2;}
8755 { (exit 1); exit 1; }; }
8756 # Do quote $f, to prevent DOS paths from being IFS'd.
8757 echo "$f";;
8758 *) # Relative
8759 if test -f "$f"; then
8760 # Build tree
8761 echo "$f"
8762 elif test -f "$srcdir/$f"; then
8763 # Source tree
8764 echo "$srcdir/$f"
8765 else
8766 # /dev/null tree
8767 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8768echo "$as_me: error: cannot find input file: $f" >&2;}
8769 { (exit 1); exit 1; }; }
8770 fi;;
8771 esac
8772 done` || { (exit 1); exit 1; }
8773 # Remove the trailing spaces.
8774 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8775
8776_ACEOF
8777
8778# Transform confdefs.h into two sed scripts, `conftest.defines' and
8779# `conftest.undefs', that substitutes the proper values into
8780# config.h.in to produce config.h. The first handles `#define'
8781# templates, and the second `#undef' templates.
8782# And first: Protect against being on the right side of a sed subst in
8783# config.status. Protect against being in an unquoted here document
8784# in config.status.
8785rm -f conftest.defines conftest.undefs
8786# Using a here document instead of a string reduces the quoting nightmare.
8787# Putting comments in sed scripts is not portable.
8788#
8789# `end' is used to avoid that the second main sed command (meant for
8790# 0-ary CPP macros) applies to n-ary macro definitions.
8791# See the Autoconf documentation for `clear'.
8792cat >confdef2sed.sed <<\_ACEOF
8793s/[\\&,]/\\&/g
8794s,[\\$`],\\&,g
8795t clear
8796: clear
8797s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8798t end
8799s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8800: end
8801_ACEOF
8802# If some macros were called several times there might be several times
8803# the same #defines, which is useless. Nevertheless, we may not want to
8804# sort them, since we want the *last* AC-DEFINE to be honored.
8805uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8806sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8807rm -f confdef2sed.sed
5d031c16
AC
8808
8809# This sed command replaces #undef with comments. This is necessary, for
8810# example, in the case of _POSIX_SOURCE, which is predefined and required
8811# on some systems where configure will not decide to define it.
b7026657
AC
8812cat >>conftest.undefs <<\_ACEOF
8813s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8814_ACEOF
8815
8816# Break up conftest.defines because some shells have a limit on the size
8817# of here documents, and old seds have small limits too (100 cmds).
8818echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8819echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8820echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8821echo ' :' >>$CONFIG_STATUS
8822rm -f conftest.tail
8823while grep . conftest.defines >/dev/null
8824do
8825 # Write a limited-size here document to $tmp/defines.sed.
8826 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8827 # Speed up: don't consider the non `#define' lines.
8828 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8829 # Work around the forget-to-reset-the-flag bug.
8830 echo 't clr' >>$CONFIG_STATUS
8831 echo ': clr' >>$CONFIG_STATUS
8832 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8833 echo 'CEOF
8834 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8835 rm -f $tmp/in
8836 mv $tmp/out $tmp/in
8837' >>$CONFIG_STATUS
8838 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8839 rm -f conftest.defines
8840 mv conftest.tail conftest.defines
8841done
8842rm -f conftest.defines
8843echo ' fi # grep' >>$CONFIG_STATUS
8844echo >>$CONFIG_STATUS
5d031c16 8845
b7026657
AC
8846# Break up conftest.undefs because some shells have a limit on the size
8847# of here documents, and old seds have small limits too (100 cmds).
8848echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5d031c16 8849rm -f conftest.tail
b7026657 8850while grep . conftest.undefs >/dev/null
5d031c16 8851do
b7026657
AC
8852 # Write a limited-size here document to $tmp/undefs.sed.
8853 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8854 # Speed up: don't consider the non `#undef'
8855 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8856 # Work around the forget-to-reset-the-flag bug.
8857 echo 't clr' >>$CONFIG_STATUS
8858 echo ': clr' >>$CONFIG_STATUS
8859 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5d031c16 8860 echo 'CEOF
b7026657
AC
8861 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8862 rm -f $tmp/in
8863 mv $tmp/out $tmp/in
8864' >>$CONFIG_STATUS
8865 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8866 rm -f conftest.undefs
8867 mv conftest.tail conftest.undefs
5d031c16 8868done
b7026657
AC
8869rm -f conftest.undefs
8870
8871cat >>$CONFIG_STATUS <<\_ACEOF
8872 # Let's still pretend it is `configure' which instantiates (i.e., don't
8873 # use $as_me), people would be surprised to read:
8874 # /* config.h. Generated by config.status. */
8875 if test x"$ac_file" = x-; then
8876 echo "/* Generated by configure. */" >$tmp/config.h
5d031c16 8877 else
b7026657 8878 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5d031c16 8879 fi
b7026657
AC
8880 cat $tmp/in >>$tmp/config.h
8881 rm -f $tmp/in
8882 if test x"$ac_file" != x-; then
8883 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8884 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8885echo "$as_me: $ac_file is unchanged" >&6;}
8886 else
8887 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8889 X"$ac_file" : 'X\(//\)[^/]' \| \
8890 X"$ac_file" : 'X\(//\)$' \| \
8891 X"$ac_file" : 'X\(/\)' \| \
8892 . : '\(.\)' 2>/dev/null ||
8893echo X"$ac_file" |
8894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8896 /^X\(\/\/\)$/{ s//\1/; q; }
8897 /^X\(\/\).*/{ s//\1/; q; }
8898 s/.*/./; q'`
8899 { if $as_mkdir_p; then
8900 mkdir -p "$ac_dir"
8901 else
8902 as_dir="$ac_dir"
8903 as_dirs=
8904 while test ! -d "$as_dir"; do
8905 as_dirs="$as_dir $as_dirs"
8906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8907$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8908 X"$as_dir" : 'X\(//\)[^/]' \| \
8909 X"$as_dir" : 'X\(//\)$' \| \
8910 X"$as_dir" : 'X\(/\)' \| \
8911 . : '\(.\)' 2>/dev/null ||
8912echo X"$as_dir" |
8913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8915 /^X\(\/\/\)$/{ s//\1/; q; }
8916 /^X\(\/\).*/{ s//\1/; q; }
8917 s/.*/./; q'`
8918 done
8919 test ! -n "$as_dirs" || mkdir $as_dirs
8920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8921echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8922 { (exit 1); exit 1; }; }; }
5d031c16 8923
b7026657
AC
8924 rm -f $ac_file
8925 mv $tmp/config.h $ac_file
8926 fi
8927 else
8928 cat $tmp/config.h
8929 rm -f $tmp/config.h
8930 fi
8931done
8932_ACEOF
8933cat >>$CONFIG_STATUS <<\_ACEOF
5d031c16 8934
b7026657
AC
8935#
8936# CONFIG_LINKS section.
8937#
5d031c16 8938
b7026657
AC
8939for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8940 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8941 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5d031c16 8942
b7026657
AC
8943 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8944echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
5d031c16
AC
8945
8946 if test ! -r $srcdir/$ac_source; then
b7026657
AC
8947 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8948echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8949 { (exit 1); exit 1; }; }
5d031c16
AC
8950 fi
8951 rm -f $ac_dest
8952
8953 # Make relative symlinks.
b7026657
AC
8954 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8955$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8956 X"$ac_dest" : 'X\(//\)[^/]' \| \
8957 X"$ac_dest" : 'X\(//\)$' \| \
8958 X"$ac_dest" : 'X\(/\)' \| \
8959 . : '\(.\)' 2>/dev/null ||
8960echo X"$ac_dest" |
8961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8963 /^X\(\/\/\)$/{ s//\1/; q; }
8964 /^X\(\/\).*/{ s//\1/; q; }
8965 s/.*/./; q'`
8966 { if $as_mkdir_p; then
8967 mkdir -p "$ac_dest_dir"
5d031c16 8968 else
b7026657
AC
8969 as_dir="$ac_dest_dir"
8970 as_dirs=
8971 while test ! -d "$as_dir"; do
8972 as_dirs="$as_dir $as_dirs"
8973 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8974$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8975 X"$as_dir" : 'X\(//\)[^/]' \| \
8976 X"$as_dir" : 'X\(//\)$' \| \
8977 X"$as_dir" : 'X\(/\)' \| \
8978 . : '\(.\)' 2>/dev/null ||
8979echo X"$as_dir" |
8980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8982 /^X\(\/\/\)$/{ s//\1/; q; }
8983 /^X\(\/\).*/{ s//\1/; q; }
8984 s/.*/./; q'`
8985 done
8986 test ! -n "$as_dirs" || mkdir $as_dirs
8987 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8988echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8989 { (exit 1); exit 1; }; }; }
8990
8991 ac_builddir=.
8992
8993if test "$ac_dest_dir" != .; then
8994 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8995 # A "../" for each directory in $ac_dir_suffix.
8996 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8997else
8998 ac_dir_suffix= ac_top_builddir=
8999fi
9000
9001case $srcdir in
9002 .) # No --srcdir option. We are building in place.
9003 ac_srcdir=.
9004 if test -z "$ac_top_builddir"; then
9005 ac_top_srcdir=.
9006 else
9007 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9008 fi ;;
9009 [\\/]* | ?:[\\/]* ) # Absolute path.
9010 ac_srcdir=$srcdir$ac_dir_suffix;
9011 ac_top_srcdir=$srcdir ;;
9012 *) # Relative path.
9013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9015esac
9016
9017# Do not use `cd foo && pwd` to compute absolute paths, because
9018# the directories may not exist.
9019case `pwd` in
9020.) ac_abs_builddir="$ac_dest_dir";;
9021*)
9022 case "$ac_dest_dir" in
9023 .) ac_abs_builddir=`pwd`;;
9024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9025 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9026 esac;;
9027esac
9028case $ac_abs_builddir in
9029.) ac_abs_top_builddir=${ac_top_builddir}.;;
9030*)
9031 case ${ac_top_builddir}. in
9032 .) ac_abs_top_builddir=$ac_abs_builddir;;
9033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9035 esac;;
9036esac
9037case $ac_abs_builddir in
9038.) ac_abs_srcdir=$ac_srcdir;;
9039*)
9040 case $ac_srcdir in
9041 .) ac_abs_srcdir=$ac_abs_builddir;;
9042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9044 esac;;
9045esac
9046case $ac_abs_builddir in
9047.) ac_abs_top_srcdir=$ac_top_srcdir;;
9048*)
9049 case $ac_top_srcdir in
9050 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9053 esac;;
9054esac
5d031c16 9055
b7026657
AC
9056
9057 case $srcdir in
9058 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9059 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
5d031c16
AC
9060 esac
9061
b7026657
AC
9062 # Try a symlink, then a hard link, then a copy.
9063 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9064 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9065 cp -p $srcdir/$ac_source $ac_dest ||
9066 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9067echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9068 { (exit 1); exit 1; }; }
5d031c16 9069done
b7026657
AC
9070_ACEOF
9071cat >>$CONFIG_STATUS <<\_ACEOF
9072
9073#
9074# CONFIG_COMMANDS section.
9075#
9076for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9077 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9078 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9079 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9080$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9081 X"$ac_dest" : 'X\(//\)[^/]' \| \
9082 X"$ac_dest" : 'X\(//\)$' \| \
9083 X"$ac_dest" : 'X\(/\)' \| \
9084 . : '\(.\)' 2>/dev/null ||
9085echo X"$ac_dest" |
9086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9088 /^X\(\/\/\)$/{ s//\1/; q; }
9089 /^X\(\/\).*/{ s//\1/; q; }
9090 s/.*/./; q'`
9091 { if $as_mkdir_p; then
9092 mkdir -p "$ac_dir"
9093 else
9094 as_dir="$ac_dir"
9095 as_dirs=
9096 while test ! -d "$as_dir"; do
9097 as_dirs="$as_dir $as_dirs"
9098 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9100 X"$as_dir" : 'X\(//\)[^/]' \| \
9101 X"$as_dir" : 'X\(//\)$' \| \
9102 X"$as_dir" : 'X\(/\)' \| \
9103 . : '\(.\)' 2>/dev/null ||
9104echo X"$as_dir" |
9105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9107 /^X\(\/\/\)$/{ s//\1/; q; }
9108 /^X\(\/\).*/{ s//\1/; q; }
9109 s/.*/./; q'`
9110 done
9111 test ! -n "$as_dirs" || mkdir $as_dirs
9112 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9113echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9114 { (exit 1); exit 1; }; }; }
9115
9116 ac_builddir=.
9117
9118if test "$ac_dir" != .; then
9119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9120 # A "../" for each directory in $ac_dir_suffix.
9121 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9122else
9123 ac_dir_suffix= ac_top_builddir=
9124fi
5d031c16 9125
b7026657
AC
9126case $srcdir in
9127 .) # No --srcdir option. We are building in place.
9128 ac_srcdir=.
9129 if test -z "$ac_top_builddir"; then
9130 ac_top_srcdir=.
9131 else
9132 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9133 fi ;;
9134 [\\/]* | ?:[\\/]* ) # Absolute path.
9135 ac_srcdir=$srcdir$ac_dir_suffix;
9136 ac_top_srcdir=$srcdir ;;
9137 *) # Relative path.
9138 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9139 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9140esac
9141
9142# Do not use `cd foo && pwd` to compute absolute paths, because
9143# the directories may not exist.
9144case `pwd` in
9145.) ac_abs_builddir="$ac_dir";;
9146*)
9147 case "$ac_dir" in
9148 .) ac_abs_builddir=`pwd`;;
9149 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9150 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9151 esac;;
9152esac
9153case $ac_abs_builddir in
9154.) ac_abs_top_builddir=${ac_top_builddir}.;;
9155*)
9156 case ${ac_top_builddir}. in
9157 .) ac_abs_top_builddir=$ac_abs_builddir;;
9158 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9159 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9160 esac;;
9161esac
9162case $ac_abs_builddir in
9163.) ac_abs_srcdir=$ac_srcdir;;
9164*)
9165 case $ac_srcdir in
9166 .) ac_abs_srcdir=$ac_abs_builddir;;
9167 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9168 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9169 esac;;
9170esac
9171case $ac_abs_builddir in
9172.) ac_abs_top_srcdir=$ac_top_srcdir;;
9173*)
9174 case $ac_top_srcdir in
9175 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9176 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9177 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9178 esac;;
9179esac
9180
9181
9182 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9183echo "$as_me: executing $ac_dest commands" >&6;}
9184 case $ac_dest in
38f48d72
AC
9185 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9186 rm -f Makesim1.tmp Makesim2.tmp Makefile
9187 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9188 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9189 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5d031c16
AC
9190 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9191 <Makefile.sim >Makefile
38f48d72 9192 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 9193 ;;
38f48d72 9194 stamp-h ) echo > stamp-h ;;
b7026657
AC
9195 esac
9196done
9197_ACEOF
5d031c16 9198
b7026657
AC
9199cat >>$CONFIG_STATUS <<\_ACEOF
9200
9201{ (exit 0); exit 0; }
9202_ACEOF
5d031c16 9203chmod +x $CONFIG_STATUS
b7026657
AC
9204ac_clean_files=$ac_clean_files_save
9205
9206
9207# configure is writing to config.log, and then calls config.status.
9208# config.status does its own redirection, appending to config.log.
9209# Unfortunately, on DOS this fails, as config.log is still kept open
9210# by configure, so config.status won't be able to write to it; its
9211# output is simply discarded. So we exec the FD to /dev/null,
9212# effectively closing config.log, so it can be properly (re)opened and
9213# appended to by config.status. When coming back to configure, we
9214# need to make the FD available again.
9215if test "$no_create" != yes; then
9216 ac_cs_success=:
9217 ac_config_status_args=
9218 test "$silent" = yes &&
9219 ac_config_status_args="$ac_config_status_args --quiet"
9220 exec 5>/dev/null
9221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9222 exec 5>>config.log
9223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9224 # would make configure fail if this is the last instruction.
9225 $ac_cs_success || { (exit 1); exit 1; }
9226fi
5d031c16
AC
9227
9228