]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/arm/configure
Index: m32r/ChangeLog
[thirdparty/binutils-gdb.git] / sim / arm / 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}
c906108c 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 COPRO 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
c906108c 969fi
b7026657
AC
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}"
1421fi
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. */
c906108c 2557
b7026657
AC
2558#ifdef __STDC__
2559# include <limits.h>
2560#else
2561# include <assert.h>
2562#endif
c906108c 2563
b7026657
AC
2564#undef $ac_func
2565
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
c906108c 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; }; }
c906108c 3151
b7026657
AC
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 3160
b7026657
AC
3161# The aliases save the names the user supplied, while $host etc.
3162# will get canonicalized.
3163test -n "$target_alias" &&
c906108c
SS
3164 test "$program_prefix$program_suffix$program_transform_name" = \
3165 NONENONEs,x,x, &&
3166 program_prefix=${target_alias}-
c906108c 3167test "$program_prefix" != NONE &&
b7026657 3168 program_transform_name="s,^,$program_prefix,;$program_transform_name"
c906108c
SS
3169# Use a double $ so make ignores it.
3170test "$program_suffix" != NONE &&
b7026657
AC
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
3179
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
3219fi
c906108c 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.
c906108c 3225set dummy gcc; ac_word=$2
b7026657
AC
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
3247
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
3254else
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257fi
3258
3259 CC=$ac_ct_CC
3260else
3261 CC="$ac_cv_prog_CC"
3262fi
3263
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}'
cd0fc7c3 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
4227fi
4228fi
4229RANLIB=$ac_cv_prog_RANLIB
4230if test -n "$RANLIB"; then
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=":"
c906108c
SS
4266fi
4267fi
b7026657
AC
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
4272else
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
4275fi
4276
4277 RANLIB=$ac_ct_RANLIB
c906108c 4278else
b7026657 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 4748_ACEOF
c906108c 4749
b7026657
AC
4750 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4751echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4752
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
c906108c 4788#include <libintl.h>
b7026657
AC
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. */
4832#include <libintl.h>
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. */
c906108c 5151
b7026657
AC
5152#ifdef __STDC__
5153# include <limits.h>
5154#else
5155# include <assert.h>
5156#endif
c906108c 5157
b7026657
AC
5158#undef $ac_func
5159
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
c906108c 5589#include <linux/version.h>
b7026657
AC
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. */
5633#include <linux/version.h>
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
5846fi
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"
c906108c 5897fi
b7026657
AC
5898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5900
c906108c 5901fi
b7026657
AC
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
c906108c 5907fi
b7026657 5908
c906108c
SS
5909done
5910
b7026657
AC
5911
5912
5913for ac_header in sys/time.h sys/resource.h
c906108c 5914do
b7026657
AC
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
c906108c 5997fi
b7026657
AC
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
c906108c 6005fi
b7026657
AC
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
c906108c 6046else
b7026657
AC
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
6052fi
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
c906108c 6058fi
b7026657 6059
c906108c
SS
6060done
6061
b7026657
AC
6062
6063
6064for ac_header in fcntl.h fpu_control.h
c906108c 6065do
b7026657
AC
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
cd0fc7c3 6148fi
b7026657
AC
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
cd0fc7c3 6156fi
b7026657
AC
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
cd0fc7c3 6197else
b7026657
AC
6198 eval "$as_ac_Header=\$ac_header_preproc"
6199fi
6200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6202
cd0fc7c3 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
6209fi
6210
cd0fc7c3
SS
6211done
6212
b7026657
AC
6213
6214
6215
6216for ac_header in dlfcn.h errno.h sys/stat.h
cd0fc7c3 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
c906108c 6300fi
b7026657
AC
6301if test -z "$ac_cpp_err"; then
6302 ac_header_preproc=yes
6303else
6304 echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ac_header_preproc=no
c906108c 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
6312
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
c906108c 6349else
b7026657
AC
6350 eval "$as_ac_Header=\$ac_header_preproc"
6351fi
6352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6354
6355fi
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. */
c906108c 6391
b7026657
AC
6392#ifdef __STDC__
6393# include <limits.h>
6394#else
6395# include <assert.h>
6396#endif
c906108c 6397
b7026657
AC
6398#undef $ac_func
6399
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
b7026657
AC
6765 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6766fi;
6767
6768
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
6773else
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. */
6780#include <sys/types.h>
6781#include <signal.h>
6782#ifdef signal
6783# undef signal
6784#endif
6785#ifdef __cplusplus
6786extern "C" void (*signal (int, void (*)(int)))(int);
6787#else
6788void (*signal ()) ();
6789#endif
6790
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 unistd.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
7012COPRO="armcopro.o maverick.o iwmmxt.o"
7013
7014
7015
7016
7017ac_sources="$sim_link_files"
7018ac_dests="$sim_link_links"
7019while test -n "$ac_sources"; do
7020 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7021 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7022 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7023done
7024 ac_config_links="$ac_config_links $ac_config_links_1"
7025
7026cgen_breaks=""
7027if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7028cgen_breaks="break cgen_rtx_error";
7029fi
7030
38f48d72
AC
7031 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7032
7033 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7034
7035 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7036
7037 ac_config_commands="$ac_config_commands Makefile"
7038
7039 ac_config_commands="$ac_config_commands stamp-h"
7040
b7026657
AC
7041cat >confcache <<\_ACEOF
7042# This file is a shell script that caches the results of configure
7043# tests run on this system so they can be shared between configure
7044# scripts and configure runs, see configure's option --config-cache.
7045# It is not useful on other systems. If it contains results you don't
7046# want to keep, you may remove or edit it.
7047#
7048# config.status only pays attention to the cache file if you give it
7049# the --recheck option to rerun configure.
7050#
7051# `ac_cv_env_foo' variables (set or unset) will be overridden when
7052# loading this file, other *unset* `ac_cv_foo' will be assigned the
7053# following values.
7054
7055_ACEOF
7056
7057# The following way of writing the cache mishandles newlines in values,
7058# but we know of no workaround that is simple, portable, and efficient.
7059# So, don't put newlines in cache variables' values.
7060# Ultrix sh set writes to stderr and can't be redirected directly,
7061# and sets the high bit in the cache file unless we assign to the vars.
7062{
7063 (set) 2>&1 |
7064 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7065 *ac_space=\ *)
7066 # `set' does not quote correctly, so add quotes (double-quote
7067 # substitution turns \\\\ into \\, and sed turns \\ into \).
7068 sed -n \
7069 "s/'/'\\\\''/g;
7070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7071 ;;
7072 *)
7073 # `set' quotes correctly as required by POSIX, so do not add quotes.
7074 sed -n \
7075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7076 ;;
7077 esac;
7078} |
7079 sed '
7080 t clear
7081 : clear
7082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7083 t end
7084 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7085 : end' >>confcache
7086if diff $cache_file confcache >/dev/null 2>&1; then :; else
7087 if test -w $cache_file; then
7088 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7089 cat confcache >$cache_file
7090 else
7091 echo "not updating unwritable cache $cache_file"
7092 fi
7093fi
7094rm -f confcache
7095
7096test "x$prefix" = xNONE && prefix=$ac_default_prefix
7097# Let make expand exec_prefix.
7098test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7099
7100# VPATH may cause trouble with some makes, so we remove $(srcdir),
7101# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7102# trailing colons and then remove the whole line if VPATH becomes empty
7103# (actually we leave an empty line to preserve line numbers).
7104if test "x$srcdir" = x.; then
7105 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7106s/:*\$(srcdir):*/:/;
7107s/:*\${srcdir}:*/:/;
7108s/:*@srcdir@:*/:/;
7109s/^\([^=]*=[ ]*\):*/\1/;
7110s/:*$//;
7111s/^[^=]*=[ ]*$//;
7112}'
7113fi
7114
7115DEFS=-DHAVE_CONFIG_H
7116
7117ac_libobjs=
7118ac_ltlibobjs=
7119for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7120 # 1. Remove the extension, and $U if already installed.
7121 ac_i=`echo "$ac_i" |
7122 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7123 # 2. Add them.
7124 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7125 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7126done
7127LIBOBJS=$ac_libobjs
7128
7129LTLIBOBJS=$ac_ltlibobjs
7130
7131
7132
7133: ${CONFIG_STATUS=./config.status}
7134ac_clean_files_save=$ac_clean_files
7135ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7136{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7137echo "$as_me: creating $CONFIG_STATUS" >&6;}
7138cat >$CONFIG_STATUS <<_ACEOF
7139#! $SHELL
7140# Generated by $as_me.
7141# Run this file to recreate the current configuration.
7142# Compiler output produced by configure, useful for debugging
7143# configure, is in config.log if it exists.
7144
7145debug=false
7146ac_cs_recheck=false
7147ac_cs_silent=false
7148SHELL=\${CONFIG_SHELL-$SHELL}
7149_ACEOF
7150
7151cat >>$CONFIG_STATUS <<\_ACEOF
7152## --------------------- ##
7153## M4sh Initialization. ##
7154## --------------------- ##
7155
7156# Be Bourne compatible
7157if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7158 emulate sh
7159 NULLCMD=:
7160 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7161 # is contrary to our usage. Disable this feature.
7162 alias -g '${1+"$@"}'='"$@"'
7163elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7164 set -o posix
7165fi
7166DUALCASE=1; export DUALCASE # for MKS sh
7167
7168# Support unset when possible.
7169if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7170 as_unset=unset
7171else
7172 as_unset=false
c906108c
SS
7173fi
7174
7175
b7026657
AC
7176# Work around bugs in pre-3.0 UWIN ksh.
7177$as_unset ENV MAIL MAILPATH
7178PS1='$ '
7179PS2='> '
7180PS4='+ '
7181
7182# NLS nuisances.
7183for as_var in \
7184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7186 LC_TELEPHONE LC_TIME
7187do
7188 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7189 eval $as_var=C; export $as_var
7190 else
7191 $as_unset $as_var
7192 fi
7193done
c906108c 7194
b7026657
AC
7195# Required to use basename.
7196if expr a : '\(a\)' >/dev/null 2>&1; then
7197 as_expr=expr
c906108c 7198else
b7026657
AC
7199 as_expr=false
7200fi
c906108c 7201
b7026657
AC
7202if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7203 as_basename=basename
c906108c 7204else
b7026657 7205 as_basename=false
c906108c 7206fi
b7026657
AC
7207
7208
7209# Name of the executable.
7210as_me=`$as_basename "$0" ||
7211$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7212 X"$0" : 'X\(//\)$' \| \
7213 X"$0" : 'X\(/\)$' \| \
7214 . : '\(.\)' 2>/dev/null ||
7215echo X/"$0" |
7216 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7217 /^X\/\(\/\/\)$/{ s//\1/; q; }
7218 /^X\/\(\/\).*/{ s//\1/; q; }
7219 s/.*/./; q'`
7220
7221
7222# PATH needs CR, and LINENO needs CR and PATH.
7223# Avoid depending upon Character Ranges.
7224as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7225as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7226as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7227as_cr_digits='0123456789'
7228as_cr_alnum=$as_cr_Letters$as_cr_digits
7229
7230# The user is always right.
7231if test "${PATH_SEPARATOR+set}" != set; then
7232 echo "#! /bin/sh" >conf$$.sh
7233 echo "exit 0" >>conf$$.sh
7234 chmod +x conf$$.sh
7235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7236 PATH_SEPARATOR=';'
7237 else
7238 PATH_SEPARATOR=:
7239 fi
7240 rm -f conf$$.sh
c906108c
SS
7241fi
7242
c906108c 7243
b7026657
AC
7244 as_lineno_1=$LINENO
7245 as_lineno_2=$LINENO
7246 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7247 test "x$as_lineno_1" != "x$as_lineno_2" &&
7248 test "x$as_lineno_3" = "x$as_lineno_2" || {
7249 # Find who we are. Look in the path if we contain no path at all
7250 # relative or not.
7251 case $0 in
7252 *[\\/]* ) as_myself=$0 ;;
7253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7259done
7260
7261 ;;
7262 esac
7263 # We did not find ourselves, most probably we were run as `sh COMMAND'
7264 # in which case we are not to be found in the path.
7265 if test "x$as_myself" = x; then
7266 as_myself=$0
7267 fi
7268 if test ! -f "$as_myself"; then
7269 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7270echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7271 { (exit 1); exit 1; }; }
7272 fi
7273 case $CONFIG_SHELL in
7274 '')
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7277do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for as_base in sh bash ksh sh5; do
7281 case $as_dir in
7282 /*)
7283 if ("$as_dir/$as_base" -c '
7284 as_lineno_1=$LINENO
7285 as_lineno_2=$LINENO
7286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7287 test "x$as_lineno_1" != "x$as_lineno_2" &&
7288 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7289 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7290 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7291 CONFIG_SHELL=$as_dir/$as_base
7292 export CONFIG_SHELL
7293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7294 fi;;
7295 esac
7296 done
7297done
7298;;
7299 esac
c906108c 7300
b7026657
AC
7301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7302 # uniformly replaced by the line number. The first 'sed' inserts a
7303 # line-number line before each line; the second 'sed' does the real
7304 # work. The second script uses 'N' to pair each line-number line
7305 # with the numbered line, and appends trailing '-' during
7306 # substitution so that $LINENO is not a special case at line end.
7307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7309 sed '=' <$as_myself |
7310 sed '
7311 N
7312 s,$,-,
7313 : loop
7314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7315 t loop
7316 s,-$,,
7317 s,^['$as_cr_digits']*\n,,
7318 ' >$as_me.lineno &&
7319 chmod +x $as_me.lineno ||
7320 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7321echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7322 { (exit 1); exit 1; }; }
7323
7324 # Don't try to exec as it changes $[0], causing all sort of problems
7325 # (the dirname of $[0] is not the place where we might find the
7326 # original and so on. Autoconf is especially sensible to this).
7327 . ./$as_me.lineno
7328 # Exit status is that of the last command.
7329 exit
7330}
c906108c 7331
cd0fc7c3 7332
b7026657
AC
7333case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7334 *c*,-n*) ECHO_N= ECHO_C='
7335' ECHO_T=' ' ;;
7336 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7337 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7338esac
cd0fc7c3 7339
b7026657
AC
7340if expr a : '\(a\)' >/dev/null 2>&1; then
7341 as_expr=expr
c906108c 7342else
b7026657
AC
7343 as_expr=false
7344fi
7345
7346rm -f conf$$ conf$$.exe conf$$.file
7347echo >conf$$.file
7348if ln -s conf$$.file conf$$ 2>/dev/null; then
7349 # We could just check for DJGPP; but this test a) works b) is more generic
7350 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7351 if test -f conf$$.exe; then
7352 # Don't use ln at all; we don't have any links
7353 as_ln_s='cp -p'
cd0fc7c3 7354 else
b7026657 7355 as_ln_s='ln -s'
cd0fc7c3 7356 fi
b7026657
AC
7357elif ln conf$$.file conf$$ 2>/dev/null; then
7358 as_ln_s=ln
7359else
7360 as_ln_s='cp -p'
c906108c 7361fi
b7026657
AC
7362rm -f conf$$ conf$$.exe conf$$.file
7363
7364if mkdir -p . 2>/dev/null; then
7365 as_mkdir_p=:
7366else
7367 test -d ./-p && rmdir ./-p
7368 as_mkdir_p=false
c906108c 7369fi
cd0fc7c3 7370
b7026657 7371as_executable_p="test -f"
c906108c 7372
b7026657
AC
7373# Sed expression to map a string onto a valid CPP name.
7374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 7375
b7026657
AC
7376# Sed expression to map a string onto a valid variable name.
7377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 7378
c906108c 7379
b7026657
AC
7380# IFS
7381# We need space, tab and new line, in precisely that order.
7382as_nl='
7383'
7384IFS=" $as_nl"
c906108c 7385
b7026657
AC
7386# CDPATH.
7387$as_unset CDPATH
c906108c 7388
b7026657 7389exec 6>&1
c906108c 7390
b7026657
AC
7391# Open the log real soon, to keep \$[0] and so on meaningful, and to
7392# report actual input values of CONFIG_FILES etc. instead of their
7393# values after options handling. Logging --version etc. is OK.
7394exec 5>>config.log
7395{
7396 echo
7397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7398## Running $as_me. ##
7399_ASBOX
7400} >&5
7401cat >&5 <<_CSEOF
7402
7403This file was extended by $as_me, which was
7404generated by GNU Autoconf 2.59. Invocation command line was
7405
7406 CONFIG_FILES = $CONFIG_FILES
7407 CONFIG_HEADERS = $CONFIG_HEADERS
7408 CONFIG_LINKS = $CONFIG_LINKS
7409 CONFIG_COMMANDS = $CONFIG_COMMANDS
7410 $ $0 $@
7411
7412_CSEOF
7413echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7414echo >&5
7415_ACEOF
7416
7417# Files that config.status was made for.
7418if test -n "$ac_config_files"; then
7419 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
c906108c 7420fi
b7026657
AC
7421
7422if test -n "$ac_config_headers"; then
7423 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
c906108c 7424fi
b7026657
AC
7425
7426if test -n "$ac_config_links"; then
7427 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
c906108c 7428fi
c906108c 7429
b7026657
AC
7430if test -n "$ac_config_commands"; then
7431 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7432fi
c906108c 7433
b7026657 7434cat >>$CONFIG_STATUS <<\_ACEOF
f603c8fe 7435
b7026657
AC
7436ac_cs_usage="\
7437\`$as_me' instantiates files from templates according to the
7438current configuration.
c906108c 7439
b7026657 7440Usage: $0 [OPTIONS] [FILE]...
c906108c 7441
b7026657
AC
7442 -h, --help print this help, then exit
7443 -V, --version print version number, then exit
7444 -q, --quiet do not print progress messages
7445 -d, --debug don't remove temporary files
7446 --recheck update $as_me by reconfiguring in the same conditions
7447 --file=FILE[:TEMPLATE]
7448 instantiate the configuration file FILE
7449 --header=FILE[:TEMPLATE]
7450 instantiate the configuration header FILE
c8cca39f 7451
b7026657
AC
7452Configuration files:
7453$config_files
c8cca39f 7454
b7026657
AC
7455Configuration headers:
7456$config_headers
379832de 7457
b7026657
AC
7458Configuration links:
7459$config_links
7460
7461Configuration commands:
7462$config_commands
7463
7464Report bugs to <bug-autoconf@gnu.org>."
7465_ACEOF
7466
7467cat >>$CONFIG_STATUS <<_ACEOF
7468ac_cs_version="\\
7469config.status
7470configured by $0, generated by GNU Autoconf 2.59,
7471 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7472
7473Copyright (C) 2003 Free Software Foundation, Inc.
7474This config.status script is free software; the Free Software Foundation
7475gives unlimited permission to copy, distribute and modify it."
7476srcdir=$srcdir
7477INSTALL="$INSTALL"
7478_ACEOF
7479
7480cat >>$CONFIG_STATUS <<\_ACEOF
7481# If no file are specified by the user, then we need to provide default
7482# value. By we need to know if files were specified by the user.
7483ac_need_defaults=:
7484while test $# != 0
7485do
7486 case $1 in
7487 --*=*)
7488 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7489 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7490 ac_shift=:
c906108c 7491 ;;
b7026657
AC
7492 -*)
7493 ac_option=$1
7494 ac_optarg=$2
7495 ac_shift=shift
c906108c 7496 ;;
b7026657
AC
7497 *) # This is not an option, so the user has probably given explicit
7498 # arguments.
7499 ac_option=$1
7500 ac_need_defaults=false;;
7501 esac
c906108c 7502
b7026657
AC
7503 case $ac_option in
7504 # Handling of the options.
7505_ACEOF
7506cat >>$CONFIG_STATUS <<\_ACEOF
7507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7508 ac_cs_recheck=: ;;
7509 --version | --vers* | -V )
7510 echo "$ac_cs_version"; exit 0 ;;
7511 --he | --h)
7512 # Conflict between --help and --header
7513 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7514Try \`$0 --help' for more information." >&5
7515echo "$as_me: error: ambiguous option: $1
7516Try \`$0 --help' for more information." >&2;}
7517 { (exit 1); exit 1; }; };;
7518 --help | --hel | -h )
7519 echo "$ac_cs_usage"; exit 0 ;;
7520 --debug | --d* | -d )
7521 debug=: ;;
7522 --file | --fil | --fi | --f )
7523 $ac_shift
7524 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7525 ac_need_defaults=false;;
7526 --header | --heade | --head | --hea )
7527 $ac_shift
7528 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7529 ac_need_defaults=false;;
7530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7532 ac_cs_silent=: ;;
c906108c 7533
b7026657
AC
7534 # This is an error.
7535 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7536Try \`$0 --help' for more information." >&5
7537echo "$as_me: error: unrecognized option: $1
7538Try \`$0 --help' for more information." >&2;}
7539 { (exit 1); exit 1; }; } ;;
c906108c 7540
b7026657
AC
7541 *) ac_config_targets="$ac_config_targets $1" ;;
7542
7543 esac
7544 shift
7545done
7546
7547ac_configure_extra_args=
7548
7549if $ac_cs_silent; then
7550 exec 6>/dev/null
7551 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
7552fi
7553
b7026657
AC
7554_ACEOF
7555cat >>$CONFIG_STATUS <<_ACEOF
7556if \$ac_cs_recheck; then
7557 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7558 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7559fi
c906108c 7560
b7026657 7561_ACEOF
c906108c 7562
c906108c 7563
c906108c 7564
b7026657
AC
7565
7566
7567cat >>$CONFIG_STATUS <<\_ACEOF
7568for ac_config_target in $ac_config_targets
c906108c 7569do
b7026657
AC
7570 case "$ac_config_target" in
7571 # Handling of arguments.
7572 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7573 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7574 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7575 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
38f48d72
AC
7576 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
7577 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
b7026657
AC
7578 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7579 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7580echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7581 { (exit 1); exit 1; }; };;
c906108c
SS
7582 esac
7583done
7584
b7026657
AC
7585# If the user did not use the arguments to specify the items to instantiate,
7586# then the envvar interface is used. Set only those that are not.
7587# We use the long form for the default assignment because of an extremely
7588# bizarre bug on SunOS 4.1.3.
7589if $ac_need_defaults; then
7590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7592 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7594fi
7595
7596# Have a temporary directory for convenience. Make it in the build tree
7597# simply because there is no reason to put it here, and in addition,
7598# creating and moving files from /tmp can sometimes cause problems.
7599# Create a temporary directory, and hook for its removal unless debugging.
7600$debug ||
7601{
7602 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7603 trap '{ (exit 1); exit 1; }' 1 2 13 15
7604}
c906108c 7605
b7026657 7606# Create a (secure) tmp directory for tmp files.
c906108c 7607
b7026657
AC
7608{
7609 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7610 test -n "$tmp" && test -d "$tmp"
7611} ||
7612{
7613 tmp=./confstat$$-$RANDOM
7614 (umask 077 && mkdir $tmp)
7615} ||
7616{
7617 echo "$me: cannot create a temporary directory in ." >&2
7618 { (exit 1); exit 1; }
7619}
7620
7621_ACEOF
7622
7623cat >>$CONFIG_STATUS <<_ACEOF
7624
7625#
7626# CONFIG_FILES section.
7627#
c906108c 7628
b7026657
AC
7629# No need to generate the scripts if there are no CONFIG_FILES.
7630# This happens for instance when ./config.status config.h
7631if test -n "\$CONFIG_FILES"; then
7632 # Protect against being on the right side of a sed subst in config.status.
7633 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7634 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7635s,@sim_environment@,$sim_environment,;t t
7636s,@sim_alignment@,$sim_alignment,;t t
7637s,@sim_assert@,$sim_assert,;t t
7638s,@sim_bitsize@,$sim_bitsize,;t t
7639s,@sim_endian@,$sim_endian,;t t
7640s,@sim_hostendian@,$sim_hostendian,;t t
7641s,@sim_float@,$sim_float,;t t
7642s,@sim_scache@,$sim_scache,;t t
7643s,@sim_default_model@,$sim_default_model,;t t
7644s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7645s,@sim_hw_objs@,$sim_hw_objs,;t t
7646s,@sim_hw@,$sim_hw,;t t
7647s,@sim_inline@,$sim_inline,;t t
7648s,@sim_packages@,$sim_packages,;t t
7649s,@sim_regparm@,$sim_regparm,;t t
7650s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7651s,@sim_smp@,$sim_smp,;t t
7652s,@sim_stdcall@,$sim_stdcall,;t t
7653s,@sim_xor_endian@,$sim_xor_endian,;t t
7654s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7655s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7656s,@SHELL@,$SHELL,;t t
7657s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7658s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7659s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7660s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7661s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7662s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7663s,@exec_prefix@,$exec_prefix,;t t
7664s,@prefix@,$prefix,;t t
7665s,@program_transform_name@,$program_transform_name,;t t
7666s,@bindir@,$bindir,;t t
7667s,@sbindir@,$sbindir,;t t
7668s,@libexecdir@,$libexecdir,;t t
7669s,@datadir@,$datadir,;t t
7670s,@sysconfdir@,$sysconfdir,;t t
7671s,@sharedstatedir@,$sharedstatedir,;t t
7672s,@localstatedir@,$localstatedir,;t t
7673s,@libdir@,$libdir,;t t
7674s,@includedir@,$includedir,;t t
7675s,@oldincludedir@,$oldincludedir,;t t
7676s,@infodir@,$infodir,;t t
7677s,@mandir@,$mandir,;t t
7678s,@build_alias@,$build_alias,;t t
7679s,@host_alias@,$host_alias,;t t
7680s,@target_alias@,$target_alias,;t t
7681s,@DEFS@,$DEFS,;t t
7682s,@ECHO_C@,$ECHO_C,;t t
7683s,@ECHO_N@,$ECHO_N,;t t
7684s,@ECHO_T@,$ECHO_T,;t t
7685s,@LIBS@,$LIBS,;t t
7686s,@build@,$build,;t t
7687s,@build_cpu@,$build_cpu,;t t
7688s,@build_vendor@,$build_vendor,;t t
7689s,@build_os@,$build_os,;t t
7690s,@host@,$host,;t t
7691s,@host_cpu@,$host_cpu,;t t
7692s,@host_vendor@,$host_vendor,;t t
7693s,@host_os@,$host_os,;t t
7694s,@target@,$target,;t t
7695s,@target_cpu@,$target_cpu,;t t
7696s,@target_vendor@,$target_vendor,;t t
7697s,@target_os@,$target_os,;t t
7698s,@CC@,$CC,;t t
7699s,@CFLAGS@,$CFLAGS,;t t
7700s,@LDFLAGS@,$LDFLAGS,;t t
7701s,@CPPFLAGS@,$CPPFLAGS,;t t
7702s,@ac_ct_CC@,$ac_ct_CC,;t t
7703s,@EXEEXT@,$EXEEXT,;t t
7704s,@OBJEXT@,$OBJEXT,;t t
7705s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7706s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7707s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7708s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7709s,@HDEFINES@,$HDEFINES,;t t
7710s,@AR@,$AR,;t t
7711s,@RANLIB@,$RANLIB,;t t
7712s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7713s,@SET_MAKE@,$SET_MAKE,;t t
7714s,@CPP@,$CPP,;t t
7715s,@EGREP@,$EGREP,;t t
7716s,@ALLOCA@,$ALLOCA,;t t
7717s,@USE_NLS@,$USE_NLS,;t t
7718s,@MSGFMT@,$MSGFMT,;t t
7719s,@GMSGFMT@,$GMSGFMT,;t t
7720s,@XGETTEXT@,$XGETTEXT,;t t
7721s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7722s,@CATALOGS@,$CATALOGS,;t t
7723s,@CATOBJEXT@,$CATOBJEXT,;t t
7724s,@DATADIRNAME@,$DATADIRNAME,;t t
7725s,@GMOFILES@,$GMOFILES,;t t
7726s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7727s,@INTLDEPS@,$INTLDEPS,;t t
7728s,@INTLLIBS@,$INTLLIBS,;t t
7729s,@INTLOBJS@,$INTLOBJS,;t t
7730s,@POFILES@,$POFILES,;t t
7731s,@POSUB@,$POSUB,;t t
7732s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
7733s,@GT_NO@,$GT_NO,;t t
7734s,@GT_YES@,$GT_YES,;t t
7735s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7736s,@l@,$l,;t t
7737s,@MAINT@,$MAINT,;t t
7738s,@sim_bswap@,$sim_bswap,;t t
7739s,@sim_cflags@,$sim_cflags,;t t
7740s,@sim_debug@,$sim_debug,;t t
7741s,@sim_stdio@,$sim_stdio,;t t
7742s,@sim_trace@,$sim_trace,;t t
7743s,@sim_profile@,$sim_profile,;t t
7744s,@COPRO@,$COPRO,;t t
7745s,@cgen_breaks@,$cgen_breaks,;t t
7746s,@LIBOBJS@,$LIBOBJS,;t t
7747s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 7748CEOF
b7026657
AC
7749
7750_ACEOF
7751
7752 cat >>$CONFIG_STATUS <<\_ACEOF
7753 # Split the substitutions into bite-sized pieces for seds with
7754 # small command number limits, like on Digital OSF/1 and HP-UX.
7755 ac_max_sed_lines=48
7756 ac_sed_frag=1 # Number of current file.
7757 ac_beg=1 # First line for current file.
7758 ac_end=$ac_max_sed_lines # Line after last line for current file.
7759 ac_more_lines=:
7760 ac_sed_cmds=
7761 while $ac_more_lines; do
7762 if test $ac_beg -gt 1; then
7763 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7764 else
7765 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7766 fi
7767 if test ! -s $tmp/subs.frag; then
7768 ac_more_lines=false
c906108c 7769 else
b7026657
AC
7770 # The purpose of the label and of the branching condition is to
7771 # speed up the sed processing (if there are no `@' at all, there
7772 # is no need to browse any of the substitutions).
7773 # These are the two extra sed commands mentioned above.
7774 (echo ':t
7775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7776 if test -z "$ac_sed_cmds"; then
7777 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7778 else
7779 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7780 fi
7781 ac_sed_frag=`expr $ac_sed_frag + 1`
7782 ac_beg=$ac_end
7783 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 7784 fi
b7026657
AC
7785 done
7786 if test -z "$ac_sed_cmds"; then
7787 ac_sed_cmds=cat
c906108c 7788 fi
b7026657 7789fi # test -n "$CONFIG_FILES"
c906108c 7790
b7026657
AC
7791_ACEOF
7792cat >>$CONFIG_STATUS <<\_ACEOF
7793for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 7794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
7795 case $ac_file in
7796 - | *:- | *:-:* ) # input from stdin
7797 cat >$tmp/stdin
7798 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7800 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7802 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
7803 esac
7804
b7026657
AC
7805 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7806 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7807$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7808 X"$ac_file" : 'X\(//\)[^/]' \| \
7809 X"$ac_file" : 'X\(//\)$' \| \
7810 X"$ac_file" : 'X\(/\)' \| \
7811 . : '\(.\)' 2>/dev/null ||
7812echo X"$ac_file" |
7813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7815 /^X\(\/\/\)$/{ s//\1/; q; }
7816 /^X\(\/\).*/{ s//\1/; q; }
7817 s/.*/./; q'`
7818 { if $as_mkdir_p; then
7819 mkdir -p "$ac_dir"
c906108c 7820 else
b7026657
AC
7821 as_dir="$ac_dir"
7822 as_dirs=
7823 while test ! -d "$as_dir"; do
7824 as_dirs="$as_dir $as_dirs"
7825 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7826$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7827 X"$as_dir" : 'X\(//\)[^/]' \| \
7828 X"$as_dir" : 'X\(//\)$' \| \
7829 X"$as_dir" : 'X\(/\)' \| \
7830 . : '\(.\)' 2>/dev/null ||
7831echo X"$as_dir" |
7832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7834 /^X\(\/\/\)$/{ s//\1/; q; }
7835 /^X\(\/\).*/{ s//\1/; q; }
7836 s/.*/./; q'`
7837 done
7838 test ! -n "$as_dirs" || mkdir $as_dirs
7839 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7840echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7841 { (exit 1); exit 1; }; }; }
c906108c 7842
b7026657
AC
7843 ac_builddir=.
7844
7845if test "$ac_dir" != .; then
7846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7847 # A "../" for each directory in $ac_dir_suffix.
7848 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7849else
7850 ac_dir_suffix= ac_top_builddir=
7851fi
7852
7853case $srcdir in
7854 .) # No --srcdir option. We are building in place.
7855 ac_srcdir=.
7856 if test -z "$ac_top_builddir"; then
7857 ac_top_srcdir=.
7858 else
7859 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7860 fi ;;
7861 [\\/]* | ?:[\\/]* ) # Absolute path.
7862 ac_srcdir=$srcdir$ac_dir_suffix;
7863 ac_top_srcdir=$srcdir ;;
c906108c 7864 *) # Relative path.
b7026657
AC
7865 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7866 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7867esac
7868
7869# Do not use `cd foo && pwd` to compute absolute paths, because
7870# the directories may not exist.
7871case `pwd` in
7872.) ac_abs_builddir="$ac_dir";;
7873*)
7874 case "$ac_dir" in
7875 .) ac_abs_builddir=`pwd`;;
7876 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7877 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7878 esac;;
7879esac
7880case $ac_abs_builddir in
7881.) ac_abs_top_builddir=${ac_top_builddir}.;;
7882*)
7883 case ${ac_top_builddir}. in
7884 .) ac_abs_top_builddir=$ac_abs_builddir;;
7885 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7886 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7887 esac;;
7888esac
7889case $ac_abs_builddir in
7890.) ac_abs_srcdir=$ac_srcdir;;
7891*)
7892 case $ac_srcdir in
7893 .) ac_abs_srcdir=$ac_abs_builddir;;
7894 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7895 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7896 esac;;
7897esac
7898case $ac_abs_builddir in
7899.) ac_abs_top_srcdir=$ac_top_srcdir;;
7900*)
7901 case $ac_top_srcdir in
7902 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7903 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7904 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7905 esac;;
7906esac
c906108c 7907
c906108c 7908
b7026657
AC
7909 case $INSTALL in
7910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7911 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
7912 esac
7913
b7026657
AC
7914 if test x"$ac_file" != x-; then
7915 { echo "$as_me:$LINENO: creating $ac_file" >&5
7916echo "$as_me: creating $ac_file" >&6;}
7917 rm -f "$ac_file"
7918 fi
7919 # Let's still pretend it is `configure' which instantiates (i.e., don't
7920 # use $as_me), people would be surprised to read:
7921 # /* config.h. Generated by config.status. */
7922 if test x"$ac_file" = x-; then
7923 configure_input=
7924 else
7925 configure_input="$ac_file. "
7926 fi
7927 configure_input=$configure_input"Generated from `echo $ac_file_in |
7928 sed 's,.*/,,'` by configure."
7929
7930 # First look for the input files in the build tree, otherwise in the
7931 # src tree.
7932 ac_file_inputs=`IFS=:
7933 for f in $ac_file_in; do
7934 case $f in
7935 -) echo $tmp/stdin ;;
7936 [\\/$]*)
7937 # Absolute (can't be DOS-style, as IFS=:)
7938 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7939echo "$as_me: error: cannot find input file: $f" >&2;}
7940 { (exit 1); exit 1; }; }
7941 echo "$f";;
7942 *) # Relative
7943 if test -f "$f"; then
7944 # Build tree
7945 echo "$f"
7946 elif test -f "$srcdir/$f"; then
7947 # Source tree
7948 echo "$srcdir/$f"
7949 else
7950 # /dev/null tree
7951 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7952echo "$as_me: error: cannot find input file: $f" >&2;}
7953 { (exit 1); exit 1; }; }
7954 fi;;
7955 esac
7956 done` || { (exit 1); exit 1; }
7957_ACEOF
7958cat >>$CONFIG_STATUS <<_ACEOF
7959 sed "$ac_vpsub
7960$extrasub
7961_ACEOF
7962cat >>$CONFIG_STATUS <<\_ACEOF
7963:t
7964/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7965s,@configure_input@,$configure_input,;t t
7966s,@srcdir@,$ac_srcdir,;t t
7967s,@abs_srcdir@,$ac_abs_srcdir,;t t
7968s,@top_srcdir@,$ac_top_srcdir,;t t
7969s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7970s,@builddir@,$ac_builddir,;t t
7971s,@abs_builddir@,$ac_abs_builddir,;t t
7972s,@top_builddir@,$ac_top_builddir,;t t
7973s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7974s,@INSTALL@,$ac_INSTALL,;t t
7975" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7976 rm -f $tmp/stdin
7977 if test x"$ac_file" != x-; then
7978 mv $tmp/out $ac_file
7979 else
7980 cat $tmp/out
7981 rm -f $tmp/out
7982 fi
7983
7984done
7985_ACEOF
7986cat >>$CONFIG_STATUS <<\_ACEOF
7987
7988#
7989# CONFIG_HEADER section.
7990#
c906108c
SS
7991
7992# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7993# NAME is the cpp macro being defined and VALUE is the value it is being given.
7994#
7995# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
7996ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7997ac_dB='[ ].*$,\1#\2'
7998ac_dC=' '
7999ac_dD=',;t'
8000# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8001ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8002ac_uB='$,\1#\2define\3'
c906108c 8003ac_uC=' '
b7026657
AC
8004ac_uD=',;t'
8005
8006for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 8007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
8008 case $ac_file in
8009 - | *:- | *:-:* ) # input from stdin
8010 cat >$tmp/stdin
8011 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8012 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8013 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8014 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8015 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
8016 esac
8017
b7026657
AC
8018 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8019echo "$as_me: creating $ac_file" >&6;}
8020
8021 # First look for the input files in the build tree, otherwise in the
8022 # src tree.
8023 ac_file_inputs=`IFS=:
8024 for f in $ac_file_in; do
8025 case $f in
8026 -) echo $tmp/stdin ;;
8027 [\\/$]*)
8028 # Absolute (can't be DOS-style, as IFS=:)
8029 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8030echo "$as_me: error: cannot find input file: $f" >&2;}
8031 { (exit 1); exit 1; }; }
8032 # Do quote $f, to prevent DOS paths from being IFS'd.
8033 echo "$f";;
8034 *) # Relative
8035 if test -f "$f"; then
8036 # Build tree
8037 echo "$f"
8038 elif test -f "$srcdir/$f"; then
8039 # Source tree
8040 echo "$srcdir/$f"
8041 else
8042 # /dev/null tree
8043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8044echo "$as_me: error: cannot find input file: $f" >&2;}
8045 { (exit 1); exit 1; }; }
8046 fi;;
8047 esac
8048 done` || { (exit 1); exit 1; }
8049 # Remove the trailing spaces.
8050 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8051
8052_ACEOF
8053
8054# Transform confdefs.h into two sed scripts, `conftest.defines' and
8055# `conftest.undefs', that substitutes the proper values into
8056# config.h.in to produce config.h. The first handles `#define'
8057# templates, and the second `#undef' templates.
8058# And first: Protect against being on the right side of a sed subst in
8059# config.status. Protect against being in an unquoted here document
8060# in config.status.
8061rm -f conftest.defines conftest.undefs
8062# Using a here document instead of a string reduces the quoting nightmare.
8063# Putting comments in sed scripts is not portable.
8064#
8065# `end' is used to avoid that the second main sed command (meant for
8066# 0-ary CPP macros) applies to n-ary macro definitions.
8067# See the Autoconf documentation for `clear'.
8068cat >confdef2sed.sed <<\_ACEOF
8069s/[\\&,]/\\&/g
8070s,[\\$`],\\&,g
8071t clear
8072: clear
8073s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8074t end
8075s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8076: end
8077_ACEOF
8078# If some macros were called several times there might be several times
8079# the same #defines, which is useless. Nevertheless, we may not want to
8080# sort them, since we want the *last* AC-DEFINE to be honored.
8081uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8082sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8083rm -f confdef2sed.sed
c906108c
SS
8084
8085# This sed command replaces #undef with comments. This is necessary, for
8086# example, in the case of _POSIX_SOURCE, which is predefined and required
8087# on some systems where configure will not decide to define it.
b7026657
AC
8088cat >>conftest.undefs <<\_ACEOF
8089s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8090_ACEOF
8091
8092# Break up conftest.defines because some shells have a limit on the size
8093# of here documents, and old seds have small limits too (100 cmds).
8094echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8095echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8096echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8097echo ' :' >>$CONFIG_STATUS
8098rm -f conftest.tail
8099while grep . conftest.defines >/dev/null
8100do
8101 # Write a limited-size here document to $tmp/defines.sed.
8102 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8103 # Speed up: don't consider the non `#define' lines.
8104 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8105 # Work around the forget-to-reset-the-flag bug.
8106 echo 't clr' >>$CONFIG_STATUS
8107 echo ': clr' >>$CONFIG_STATUS
8108 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8109 echo 'CEOF
8110 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8111 rm -f $tmp/in
8112 mv $tmp/out $tmp/in
8113' >>$CONFIG_STATUS
8114 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8115 rm -f conftest.defines
8116 mv conftest.tail conftest.defines
8117done
8118rm -f conftest.defines
8119echo ' fi # grep' >>$CONFIG_STATUS
8120echo >>$CONFIG_STATUS
c906108c 8121
b7026657
AC
8122# Break up conftest.undefs because some shells have a limit on the size
8123# of here documents, and old seds have small limits too (100 cmds).
8124echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 8125rm -f conftest.tail
b7026657 8126while grep . conftest.undefs >/dev/null
c906108c 8127do
b7026657
AC
8128 # Write a limited-size here document to $tmp/undefs.sed.
8129 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8130 # Speed up: don't consider the non `#undef'
8131 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8132 # Work around the forget-to-reset-the-flag bug.
8133 echo 't clr' >>$CONFIG_STATUS
8134 echo ': clr' >>$CONFIG_STATUS
8135 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 8136 echo 'CEOF
b7026657
AC
8137 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8138 rm -f $tmp/in
8139 mv $tmp/out $tmp/in
8140' >>$CONFIG_STATUS
8141 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8142 rm -f conftest.undefs
8143 mv conftest.tail conftest.undefs
8144done
8145rm -f conftest.undefs
8146
8147cat >>$CONFIG_STATUS <<\_ACEOF
8148 # Let's still pretend it is `configure' which instantiates (i.e., don't
8149 # use $as_me), people would be surprised to read:
8150 # /* config.h. Generated by config.status. */
8151 if test x"$ac_file" = x-; then
8152 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 8153 else
b7026657 8154 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 8155 fi
b7026657
AC
8156 cat $tmp/in >>$tmp/config.h
8157 rm -f $tmp/in
8158 if test x"$ac_file" != x-; then
8159 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8160 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8161echo "$as_me: $ac_file is unchanged" >&6;}
8162 else
8163 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8164$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8165 X"$ac_file" : 'X\(//\)[^/]' \| \
8166 X"$ac_file" : 'X\(//\)$' \| \
8167 X"$ac_file" : 'X\(/\)' \| \
8168 . : '\(.\)' 2>/dev/null ||
8169echo X"$ac_file" |
8170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8172 /^X\(\/\/\)$/{ s//\1/; q; }
8173 /^X\(\/\).*/{ s//\1/; q; }
8174 s/.*/./; q'`
8175 { if $as_mkdir_p; then
8176 mkdir -p "$ac_dir"
8177 else
8178 as_dir="$ac_dir"
8179 as_dirs=
8180 while test ! -d "$as_dir"; do
8181 as_dirs="$as_dir $as_dirs"
8182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8183$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8184 X"$as_dir" : 'X\(//\)[^/]' \| \
8185 X"$as_dir" : 'X\(//\)$' \| \
8186 X"$as_dir" : 'X\(/\)' \| \
8187 . : '\(.\)' 2>/dev/null ||
8188echo X"$as_dir" |
8189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8191 /^X\(\/\/\)$/{ s//\1/; q; }
8192 /^X\(\/\).*/{ s//\1/; q; }
8193 s/.*/./; q'`
8194 done
8195 test ! -n "$as_dirs" || mkdir $as_dirs
8196 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8197echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8198 { (exit 1); exit 1; }; }; }
c906108c 8199
b7026657
AC
8200 rm -f $ac_file
8201 mv $tmp/config.h $ac_file
8202 fi
8203 else
8204 cat $tmp/config.h
8205 rm -f $tmp/config.h
8206 fi
8207done
8208_ACEOF
8209cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 8210
b7026657
AC
8211#
8212# CONFIG_LINKS section.
8213#
c906108c 8214
b7026657
AC
8215for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8216 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8217 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 8218
b7026657
AC
8219 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8220echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
8221
8222 if test ! -r $srcdir/$ac_source; then
b7026657
AC
8223 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8224echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8225 { (exit 1); exit 1; }; }
c906108c
SS
8226 fi
8227 rm -f $ac_dest
8228
8229 # Make relative symlinks.
b7026657
AC
8230 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8231$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8232 X"$ac_dest" : 'X\(//\)[^/]' \| \
8233 X"$ac_dest" : 'X\(//\)$' \| \
8234 X"$ac_dest" : 'X\(/\)' \| \
8235 . : '\(.\)' 2>/dev/null ||
8236echo X"$ac_dest" |
8237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8239 /^X\(\/\/\)$/{ s//\1/; q; }
8240 /^X\(\/\).*/{ s//\1/; q; }
8241 s/.*/./; q'`
8242 { if $as_mkdir_p; then
8243 mkdir -p "$ac_dest_dir"
c906108c 8244 else
b7026657
AC
8245 as_dir="$ac_dest_dir"
8246 as_dirs=
8247 while test ! -d "$as_dir"; do
8248 as_dirs="$as_dir $as_dirs"
8249 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8251 X"$as_dir" : 'X\(//\)[^/]' \| \
8252 X"$as_dir" : 'X\(//\)$' \| \
8253 X"$as_dir" : 'X\(/\)' \| \
8254 . : '\(.\)' 2>/dev/null ||
8255echo X"$as_dir" |
8256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8258 /^X\(\/\/\)$/{ s//\1/; q; }
8259 /^X\(\/\).*/{ s//\1/; q; }
8260 s/.*/./; q'`
8261 done
8262 test ! -n "$as_dirs" || mkdir $as_dirs
8263 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8264echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8265 { (exit 1); exit 1; }; }; }
8266
8267 ac_builddir=.
8268
8269if test "$ac_dest_dir" != .; then
8270 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8271 # A "../" for each directory in $ac_dir_suffix.
8272 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8273else
8274 ac_dir_suffix= ac_top_builddir=
8275fi
8276
8277case $srcdir in
8278 .) # No --srcdir option. We are building in place.
8279 ac_srcdir=.
8280 if test -z "$ac_top_builddir"; then
8281 ac_top_srcdir=.
8282 else
8283 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8284 fi ;;
8285 [\\/]* | ?:[\\/]* ) # Absolute path.
8286 ac_srcdir=$srcdir$ac_dir_suffix;
8287 ac_top_srcdir=$srcdir ;;
8288 *) # Relative path.
8289 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8290 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8291esac
8292
8293# Do not use `cd foo && pwd` to compute absolute paths, because
8294# the directories may not exist.
8295case `pwd` in
8296.) ac_abs_builddir="$ac_dest_dir";;
8297*)
8298 case "$ac_dest_dir" in
8299 .) ac_abs_builddir=`pwd`;;
8300 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8301 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8302 esac;;
8303esac
8304case $ac_abs_builddir in
8305.) ac_abs_top_builddir=${ac_top_builddir}.;;
8306*)
8307 case ${ac_top_builddir}. in
8308 .) ac_abs_top_builddir=$ac_abs_builddir;;
8309 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8310 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8311 esac;;
8312esac
8313case $ac_abs_builddir in
8314.) ac_abs_srcdir=$ac_srcdir;;
8315*)
8316 case $ac_srcdir in
8317 .) ac_abs_srcdir=$ac_abs_builddir;;
8318 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8319 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8320 esac;;
8321esac
8322case $ac_abs_builddir in
8323.) ac_abs_top_srcdir=$ac_top_srcdir;;
8324*)
8325 case $ac_top_srcdir in
8326 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8327 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8328 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8329 esac;;
8330esac
c906108c 8331
b7026657
AC
8332
8333 case $srcdir in
8334 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8335 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
8336 esac
8337
b7026657
AC
8338 # Try a symlink, then a hard link, then a copy.
8339 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8340 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8341 cp -p $srcdir/$ac_source $ac_dest ||
8342 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8343echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8344 { (exit 1); exit 1; }; }
c906108c 8345done
b7026657
AC
8346_ACEOF
8347cat >>$CONFIG_STATUS <<\_ACEOF
8348
8349#
8350# CONFIG_COMMANDS section.
8351#
8352for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8353 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8354 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8355 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8356$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8357 X"$ac_dest" : 'X\(//\)[^/]' \| \
8358 X"$ac_dest" : 'X\(//\)$' \| \
8359 X"$ac_dest" : 'X\(/\)' \| \
8360 . : '\(.\)' 2>/dev/null ||
8361echo X"$ac_dest" |
8362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8364 /^X\(\/\/\)$/{ s//\1/; q; }
8365 /^X\(\/\).*/{ s//\1/; q; }
8366 s/.*/./; q'`
8367 { if $as_mkdir_p; then
8368 mkdir -p "$ac_dir"
8369 else
8370 as_dir="$ac_dir"
8371 as_dirs=
8372 while test ! -d "$as_dir"; do
8373 as_dirs="$as_dir $as_dirs"
8374 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8375$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8376 X"$as_dir" : 'X\(//\)[^/]' \| \
8377 X"$as_dir" : 'X\(//\)$' \| \
8378 X"$as_dir" : 'X\(/\)' \| \
8379 . : '\(.\)' 2>/dev/null ||
8380echo X"$as_dir" |
8381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8383 /^X\(\/\/\)$/{ s//\1/; q; }
8384 /^X\(\/\).*/{ s//\1/; q; }
8385 s/.*/./; q'`
8386 done
8387 test ! -n "$as_dirs" || mkdir $as_dirs
8388 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8389echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8390 { (exit 1); exit 1; }; }; }
8391
8392 ac_builddir=.
8393
8394if test "$ac_dir" != .; then
8395 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8396 # A "../" for each directory in $ac_dir_suffix.
8397 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8398else
8399 ac_dir_suffix= ac_top_builddir=
8400fi
c906108c 8401
b7026657
AC
8402case $srcdir in
8403 .) # No --srcdir option. We are building in place.
8404 ac_srcdir=.
8405 if test -z "$ac_top_builddir"; then
8406 ac_top_srcdir=.
8407 else
8408 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8409 fi ;;
8410 [\\/]* | ?:[\\/]* ) # Absolute path.
8411 ac_srcdir=$srcdir$ac_dir_suffix;
8412 ac_top_srcdir=$srcdir ;;
8413 *) # Relative path.
8414 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8415 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8416esac
8417
8418# Do not use `cd foo && pwd` to compute absolute paths, because
8419# the directories may not exist.
8420case `pwd` in
8421.) ac_abs_builddir="$ac_dir";;
8422*)
8423 case "$ac_dir" in
8424 .) ac_abs_builddir=`pwd`;;
8425 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8426 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8427 esac;;
8428esac
8429case $ac_abs_builddir in
8430.) ac_abs_top_builddir=${ac_top_builddir}.;;
8431*)
8432 case ${ac_top_builddir}. in
8433 .) ac_abs_top_builddir=$ac_abs_builddir;;
8434 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8435 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8436 esac;;
8437esac
8438case $ac_abs_builddir in
8439.) ac_abs_srcdir=$ac_srcdir;;
8440*)
8441 case $ac_srcdir in
8442 .) ac_abs_srcdir=$ac_abs_builddir;;
8443 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8444 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8445 esac;;
8446esac
8447case $ac_abs_builddir in
8448.) ac_abs_top_srcdir=$ac_top_srcdir;;
8449*)
8450 case $ac_top_srcdir in
8451 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8452 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8453 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8454 esac;;
8455esac
8456
8457
8458 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8459echo "$as_me: executing $ac_dest commands" >&6;}
8460 case $ac_dest in
38f48d72
AC
8461 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8462 rm -f Makesim1.tmp Makesim2.tmp Makefile
8463 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8464 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8465 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
8466 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8467 <Makefile.sim >Makefile
38f48d72 8468 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 8469 ;;
38f48d72 8470 stamp-h ) echo > stamp-h ;;
b7026657
AC
8471 esac
8472done
8473_ACEOF
c906108c 8474
b7026657
AC
8475cat >>$CONFIG_STATUS <<\_ACEOF
8476
8477{ (exit 0); exit 0; }
8478_ACEOF
c906108c 8479chmod +x $CONFIG_STATUS
b7026657
AC
8480ac_clean_files=$ac_clean_files_save
8481
8482
8483# configure is writing to config.log, and then calls config.status.
8484# config.status does its own redirection, appending to config.log.
8485# Unfortunately, on DOS this fails, as config.log is still kept open
8486# by configure, so config.status won't be able to write to it; its
8487# output is simply discarded. So we exec the FD to /dev/null,
8488# effectively closing config.log, so it can be properly (re)opened and
8489# appended to by config.status. When coming back to configure, we
8490# need to make the FD available again.
8491if test "$no_create" != yes; then
8492 ac_cs_success=:
8493 ac_config_status_args=
8494 test "$silent" = yes &&
8495 ac_config_status_args="$ac_config_status_args --quiet"
8496 exec 5>/dev/null
8497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8498 exec 5>>config.log
8499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8500 # would make configure fail if this is the last instruction.
8501 $ac_cs_success || { (exit 1); exit 1; }
8502fi
c906108c
SS
8503
8504