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