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