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