VirtualBox

source: kBuild/vendor/sed/4.1.5/configure@ 599

Last change on this file since 599 was 599, checked in by bird, 18 years ago

GNU sed 4.1.5.

File size: 328.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for sed 4.1.5.
4#
5# Report bugs to <[email protected]>.
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='sed'
271PACKAGE_TARNAME='sed'
272PACKAGE_VERSION='4.1.5'
273PACKAGE_STRING='sed 4.1.5'
274PACKAGE_BUGREPORT='[email protected]'
275
276ac_unique_file="sed/sed.c"
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
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SED_FEATURE_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP HAVE__BOOL ALLOCA LIBOBJS TEST_REGEX_TRUE TEST_REGEX_FALSE BUILD_HTML_TRUE BUILD_HTML_FALSE TEXI2HTML MAKEINFO_HTML_TRUE MAKEINFO_HTML_FALSE TEXI2HTML_HTML_TRUE TEXI2HTML_HTML_FALSE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
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 sed 4.1.5 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
836Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840
841System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844_ACEOF
845fi
846
847if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of sed 4.1.5:";;
850 esac
851 cat <<\_ACEOF
852
853Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --disable-largefile omit support for large files
859 --disable-i18n disable internationalization (default=yes)
860 --enable-regex-tests enable regex matcher regression tests (default=yes)
861 --enable-html build HTML manual (default=no)
862 --disable-nls do not use Native Language Support
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-included-regex use included regex matcher (default=yes)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
870 --without-libiconv-prefix don't search for libiconv in includedir and libdir
871 --with-included-gettext use the GNU gettext library included here
872 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
873 --without-libintl-prefix don't search for libintl in includedir and libdir
874
875Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
883
884Use these variables to override the choices made by `configure' or to help
885it to find libraries and programs with nonstandard names/locations.
886
887Report bugs to <[email protected]>.
888_ACEOF
889fi
890
891if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903 ac_dir_suffix= ac_top_builddir=
904fi
905
906case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920esac
921
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959esac
960
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
976 cd $ac_popdir
977 done
978fi
979
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
983sed configure 4.1.5
984generated by GNU Autoconf 2.59
985
986Copyright (C) 2003 Free Software Foundation, Inc.
987This configure script is free software; the Free Software Foundation
988gives unlimited permission to copy, distribute and modify it.
989_ACEOF
990 exit 0
991fi
992exec 5>config.log
993cat >&5 <<_ACEOF
994This file contains any messages produced by compilers while
995running configure, to aid debugging if configure makes a mistake.
996
997It was created by sed $as_me 4.1.5, which was
998generated by GNU Autoconf 2.59. Invocation command line was
999
1000 $ $0 $@
1001
1002_ACEOF
1003{
1004cat <<_ASUNAME
1005## --------- ##
1006## Platform. ##
1007## --------- ##
1008
1009hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014
1015/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017
1018/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025
1026_ASUNAME
1027
1028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029for as_dir in $PATH
1030do
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034done
1035
1036} >&5
1037
1038cat >&5 <<_ACEOF
1039
1040
1041## ----------- ##
1042## Core tests. ##
1043## ----------- ##
1044
1045_ACEOF
1046
1047
1048# Keep a trace of the command line.
1049# Strip out --no-create and --no-recursion so they do not pile up.
1050# Strip out --silent because we don't want to record it for future runs.
1051# Also quote any args containing shell meta-characters.
1052# Make two passes to allow for proper duplicate-argument suppression.
1053ac_configure_args=
1054ac_configure_args0=
1055ac_configure_args1=
1056ac_sep=
1057ac_must_keep_next=false
1058for ac_pass in 1 2
1059do
1060 for ac_arg
1061 do
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 2)
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1085 ;;
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1088 fi
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1092 ;;
1093 esac
1094 done
1095done
1096$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098
1099# When interrupted or exit'd, cleanup temporary files, and complete
1100# config.log. We remove comments because anyway the quotes in there
1101# would cause problems or look ugly.
1102# WARNING: Be sure not to use single quotes in there, as some shells,
1103# such as our DU 5.0 friend, will then `close' the trap.
1104trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1106 {
1107 echo
1108
1109 cat <<\_ASBOX
1110## ---------------- ##
1111## Cache variables. ##
1112## ---------------- ##
1113_ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1116{
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 ;;
1124 *)
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 ;;
1128 esac;
1129}
1130 echo
1131
1132 cat <<\_ASBOX
1133## ----------------- ##
1134## Output variables. ##
1135## ----------------- ##
1136_ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1139 do
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1144
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147## ------------- ##
1148## Output files. ##
1149## ------------- ##
1150_ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1153 do
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1158 fi
1159
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162## ----------- ##
1163## confdefs.h. ##
1164## ----------- ##
1165_ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1169 fi
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1177 ' 0
1178for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180done
1181ac_signal=0
1182
1183# confdefs.h avoids OS command line length limits that DEFS can exceed.
1184rm -rf conftest* confdefs.h
1185# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186echo >confdefs.h
1187
1188# Predefined preprocessor variables.
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_NAME "$PACKAGE_NAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_VERSION "$PACKAGE_VERSION"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_STRING "$PACKAGE_STRING"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212_ACEOF
1213
1214
1215# Let the site file select an alternate cache file if it wants to.
1216# Prefer explicitly selected file to automatically selected ones.
1217if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 fi
1223fi
1224for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1230 fi
1231done
1232
1233if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1243 fi
1244else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1248fi
1249
1250# Check that the precious variables saved in the cache have kept the same
1251# value.
1252ac_cache_corrupted=false
1253for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1269 *)
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1291 fi
1292done
1293if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1299fi
1300
1301ac_ext=c
1302ac_cpp='$CPP $CPPFLAGS'
1303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333ac_aux_dir=
1334for ac_dir in config $srcdir/config; do
1335 if test -f $ac_dir/install-sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 break
1339 elif test -f $ac_dir/install.sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 break
1343 elif test -f $ac_dir/shtool; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1346 break
1347 fi
1348done
1349if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1351echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1352 { (exit 1); exit 1; }; }
1353fi
1354ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1357
1358
1359 ac_config_headers="$ac_config_headers config.h:config_h.in"
1360
1361
1362am__api_version="1.9"
1363# Find a good install program. We prefer a C program (faster),
1364# so one script is as good as another. But avoid the broken or
1365# incompatible versions:
1366# SysV /etc/install, /usr/sbin/install
1367# SunOS /usr/etc/install
1368# IRIX /sbin/install
1369# AIX /bin/install
1370# AmigaOS /C/install, which installs bootblocks on floppy discs
1371# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1372# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1373# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1374# OS/2's system install, which has a completely different semantic
1375# ./install, which can be erroneously created by make from ./install.sh.
1376echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1377echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1378if test -z "$INSTALL"; then
1379if test "${ac_cv_path_install+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 # Account for people who put trailing slashes in PATH elements.
1388case $as_dir/ in
1389 ./ | .// | /cC/* | \
1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1392 /usr/ucb/* ) ;;
1393 *)
1394 # OSF1 and SCO ODT 3.0 have their own names for install.
1395 # Don't use installbsd from OSF since it installs stuff as root
1396 # by default.
1397 for ac_prog in ginstall scoinst install; do
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1400 if test $ac_prog = install &&
1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1402 # AIX install. It has an incompatible calling convention.
1403 :
1404 elif test $ac_prog = install &&
1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1406 # program-specific install script used by HP pwplus--don't use.
1407 :
1408 else
1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1410 break 3
1411 fi
1412 fi
1413 done
1414 done
1415 ;;
1416esac
1417done
1418
1419
1420fi
1421 if test "${ac_cv_path_install+set}" = set; then
1422 INSTALL=$ac_cv_path_install
1423 else
1424 # As a last resort, use the slow shell script. We don't cache a
1425 # path for INSTALL within a source directory, because that will
1426 # break other packages using the cache if that directory is
1427 # removed, or if the path is relative.
1428 INSTALL=$ac_install_sh
1429 fi
1430fi
1431echo "$as_me:$LINENO: result: $INSTALL" >&5
1432echo "${ECHO_T}$INSTALL" >&6
1433
1434# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1435# It thinks the first close brace ends the variable substitution.
1436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1437
1438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1439
1440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1441
1442echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1443echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1444# Just in case
1445sleep 1
1446echo timestamp > conftest.file
1447# Do `set' in a subshell so we don't clobber the current shell's
1448# arguments. Must try -L first in case configure is actually a
1449# symlink; some systems play weird games with the mod time of symlinks
1450# (eg FreeBSD returns the mod time of the symlink's containing
1451# directory).
1452if (
1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1454 if test "$*" = "X"; then
1455 # -L didn't work.
1456 set X `ls -t $srcdir/configure conftest.file`
1457 fi
1458 rm -f conftest.file
1459 if test "$*" != "X $srcdir/configure conftest.file" \
1460 && test "$*" != "X conftest.file $srcdir/configure"; then
1461
1462 # If neither matched, then we have a broken ls. This can happen
1463 # if, for instance, CONFIG_SHELL is bash and it inherits a
1464 # broken ls alias from the environment. This has actually
1465 # happened. Such a system could not be considered "sane".
1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1467alias in your environment" >&5
1468echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1469alias in your environment" >&2;}
1470 { (exit 1); exit 1; }; }
1471 fi
1472
1473 test "$2" = conftest.file
1474 )
1475then
1476 # Ok.
1477 :
1478else
1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1480Check your system clock" >&5
1481echo "$as_me: error: newly created file is older than distributed files!
1482Check your system clock" >&2;}
1483 { (exit 1); exit 1; }; }
1484fi
1485echo "$as_me:$LINENO: result: yes" >&5
1486echo "${ECHO_T}yes" >&6
1487test "$program_prefix" != NONE &&
1488 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1489# Use a double $ so make ignores it.
1490test "$program_suffix" != NONE &&
1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1492# Double any \ or $. echo might interpret backslashes.
1493# By default was `s,x,x', remove it if useless.
1494cat <<\_ACEOF >conftest.sed
1495s/[\\$]/&&/g;s/;s,x,x,$//
1496_ACEOF
1497program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1498rm conftest.sed
1499
1500# expand $ac_aux_dir to an absolute path
1501am_aux_dir=`cd $ac_aux_dir && pwd`
1502
1503test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1504# Use eval to expand $SHELL
1505if eval "$MISSING --run true"; then
1506 am_missing_run="$MISSING --run "
1507else
1508 am_missing_run=
1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1510echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1511fi
1512
1513if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1514 # We used to keeping the `.' as first argument, in order to
1515 # allow $(mkdir_p) to be used without argument. As in
1516 # $(mkdir_p) $(somedir)
1517 # where $(somedir) is conditionally defined. However this is wrong
1518 # for two reasons:
1519 # 1. if the package is installed by a user who cannot write `.'
1520 # make install will fail,
1521 # 2. the above comment should most certainly read
1522 # $(mkdir_p) $(DESTDIR)$(somedir)
1523 # so it does not work when $(somedir) is undefined and
1524 # $(DESTDIR) is not.
1525 # To support the latter case, we have to write
1526 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1527 # so the `.' trick is pointless.
1528 mkdir_p='mkdir -p --'
1529else
1530 # On NextStep and OpenStep, the `mkdir' command does not
1531 # recognize any option. It will interpret all options as
1532 # directories to create, and then abort because `.' already
1533 # exists.
1534 for d in ./-p ./--version;
1535 do
1536 test -d $d && rmdir $d
1537 done
1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1539 if test -f "$ac_aux_dir/mkinstalldirs"; then
1540 mkdir_p='$(mkinstalldirs)'
1541 else
1542 mkdir_p='$(install_sh) -d'
1543 fi
1544fi
1545
1546for ac_prog in gawk mawk nawk awk
1547do
1548 # Extract the first word of "$ac_prog", so it can be a program name with args.
1549set dummy $ac_prog; ac_word=$2
1550echo "$as_me:$LINENO: checking for $ac_word" >&5
1551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552if test "${ac_cv_prog_AWK+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 if test -n "$AWK"; then
1556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557else
1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_AWK="$ac_prog"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 break 2
1568 fi
1569done
1570done
1571
1572fi
1573fi
1574AWK=$ac_cv_prog_AWK
1575if test -n "$AWK"; then
1576 echo "$as_me:$LINENO: result: $AWK" >&5
1577echo "${ECHO_T}$AWK" >&6
1578else
1579 echo "$as_me:$LINENO: result: no" >&5
1580echo "${ECHO_T}no" >&6
1581fi
1582
1583 test -n "$AWK" && break
1584done
1585
1586echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592 cat >conftest.make <<\_ACEOF
1593all:
1594 @echo 'ac_maketemp="$(MAKE)"'
1595_ACEOF
1596# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598if test -n "$ac_maketemp"; then
1599 eval ac_cv_prog_make_${ac_make}_set=yes
1600else
1601 eval ac_cv_prog_make_${ac_make}_set=no
1602fi
1603rm -f conftest.make
1604fi
1605if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606 echo "$as_me:$LINENO: result: yes" >&5
1607echo "${ECHO_T}yes" >&6
1608 SET_MAKE=
1609else
1610 echo "$as_me:$LINENO: result: no" >&5
1611echo "${ECHO_T}no" >&6
1612 SET_MAKE="MAKE=${MAKE-make}"
1613fi
1614
1615rm -rf .tst 2>/dev/null
1616mkdir .tst 2>/dev/null
1617if test -d .tst; then
1618 am__leading_dot=.
1619else
1620 am__leading_dot=_
1621fi
1622rmdir .tst 2>/dev/null
1623
1624# test to see if srcdir already configured
1625if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626 test -f $srcdir/config.status; then
1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1630fi
1631
1632# test whether we have cygpath
1633if test -z "$CYGPATH_W"; then
1634 if (cygpath --version) >/dev/null 2>/dev/null; then
1635 CYGPATH_W='cygpath -w'
1636 else
1637 CYGPATH_W=echo
1638 fi
1639fi
1640
1641
1642# Define the identity of the package.
1643 PACKAGE='sed'
1644 VERSION='4.1.5'
1645
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE "$PACKAGE"
1649_ACEOF
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define VERSION "$VERSION"
1654_ACEOF
1655
1656# Some tools Automake needs.
1657
1658ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1659
1660
1661AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1662
1663
1664AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1665
1666
1667AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1668
1669
1670MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1671
1672install_sh=${install_sh-"$am_aux_dir/install-sh"}
1673
1674# Installed binaries are usually stripped using `strip' when the user
1675# run `make install-strip'. However `strip' might not be the right
1676# tool to use in cross-compilation environments, therefore Automake
1677# will honor the `STRIP' environment variable to overrule this program.
1678if test "$cross_compiling" != no; then
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1681set dummy ${ac_tool_prefix}strip; ac_word=$2
1682echo "$as_me:$LINENO: checking for $ac_word" >&5
1683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684if test "${ac_cv_prog_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686else
1687 if test -n "$STRIP"; then
1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1689else
1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691for as_dir in $PATH
1692do
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1700 fi
1701done
1702done
1703
1704fi
1705fi
1706STRIP=$ac_cv_prog_STRIP
1707if test -n "$STRIP"; then
1708 echo "$as_me:$LINENO: result: $STRIP" >&5
1709echo "${ECHO_T}$STRIP" >&6
1710else
1711 echo "$as_me:$LINENO: result: no" >&5
1712echo "${ECHO_T}no" >&6
1713fi
1714
1715fi
1716if test -z "$ac_cv_prog_STRIP"; then
1717 ac_ct_STRIP=$STRIP
1718 # Extract the first word of "strip", so it can be a program name with args.
1719set dummy strip; ac_word=$2
1720echo "$as_me:$LINENO: checking for $ac_word" >&5
1721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724else
1725 if test -n "$ac_ct_STRIP"; then
1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1727else
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 ac_cv_prog_ac_ct_STRIP="strip"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1738 fi
1739done
1740done
1741
1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1743fi
1744fi
1745ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1746if test -n "$ac_ct_STRIP"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1748echo "${ECHO_T}$ac_ct_STRIP" >&6
1749else
1750 echo "$as_me:$LINENO: result: no" >&5
1751echo "${ECHO_T}no" >&6
1752fi
1753
1754 STRIP=$ac_ct_STRIP
1755else
1756 STRIP="$ac_cv_prog_STRIP"
1757fi
1758
1759fi
1760INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1761
1762# We need awk for the "check" target. The system "awk" is bad on
1763# some platforms.
1764# Always define AMTAR for backward compatibility.
1765
1766AMTAR=${AMTAR-"${am_missing_run}tar"}
1767
1768am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1769
1770
1771
1772
1773
1774
1775SED_FEATURE_VERSION=4.1
1776
1777cat >>confdefs.h <<_ACEOF
1778#define SED_FEATURE_VERSION "$SED_FEATURE_VERSION"
1779_ACEOF
1780
1781
1782
1783ac_ext=c
1784ac_cpp='$CPP $CPPFLAGS'
1785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1790set dummy ${ac_tool_prefix}gcc; ac_word=$2
1791echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798else
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1809 fi
1810done
1811done
1812
1813fi
1814fi
1815CC=$ac_cv_prog_CC
1816if test -n "$CC"; then
1817 echo "$as_me:$LINENO: result: $CC" >&5
1818echo "${ECHO_T}$CC" >&6
1819else
1820 echo "$as_me:$LINENO: result: no" >&5
1821echo "${ECHO_T}no" >&6
1822fi
1823
1824fi
1825if test -z "$ac_cv_prog_CC"; then
1826 ac_ct_CC=$CC
1827 # Extract the first word of "gcc", so it can be a program name with args.
1828set dummy gcc; ac_word=$2
1829echo "$as_me:$LINENO: checking for $ac_word" >&5
1830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833else
1834 if test -n "$ac_ct_CC"; then
1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836else
1837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838for as_dir in $PATH
1839do
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_ac_ct_CC="gcc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1847 fi
1848done
1849done
1850
1851fi
1852fi
1853ac_ct_CC=$ac_cv_prog_ac_ct_CC
1854if test -n "$ac_ct_CC"; then
1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1856echo "${ECHO_T}$ac_ct_CC" >&6
1857else
1858 echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6
1860fi
1861
1862 CC=$ac_ct_CC
1863else
1864 CC="$ac_cv_prog_CC"
1865fi
1866
1867if test -z "$CC"; then
1868 if test -n "$ac_tool_prefix"; then
1869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1870set dummy ${ac_tool_prefix}cc; ac_word=$2
1871echo "$as_me:$LINENO: checking for $ac_word" >&5
1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873if test "${ac_cv_prog_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1878else
1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880for as_dir in $PATH
1881do
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_CC="${ac_tool_prefix}cc"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 break 2
1889 fi
1890done
1891done
1892
1893fi
1894fi
1895CC=$ac_cv_prog_CC
1896if test -n "$CC"; then
1897 echo "$as_me:$LINENO: result: $CC" >&5
1898echo "${ECHO_T}$CC" >&6
1899else
1900 echo "$as_me:$LINENO: result: no" >&5
1901echo "${ECHO_T}no" >&6
1902fi
1903
1904fi
1905if test -z "$ac_cv_prog_CC"; then
1906 ac_ct_CC=$CC
1907 # Extract the first word of "cc", so it can be a program name with args.
1908set dummy cc; ac_word=$2
1909echo "$as_me:$LINENO: checking for $ac_word" >&5
1910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913else
1914 if test -n "$ac_ct_CC"; then
1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916else
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_ac_ct_CC="cc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 break 2
1927 fi
1928done
1929done
1930
1931fi
1932fi
1933ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934if test -n "$ac_ct_CC"; then
1935 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936echo "${ECHO_T}$ac_ct_CC" >&6
1937else
1938 echo "$as_me:$LINENO: result: no" >&5
1939echo "${ECHO_T}no" >&6
1940fi
1941
1942 CC=$ac_ct_CC
1943else
1944 CC="$ac_cv_prog_CC"
1945fi
1946
1947fi
1948if test -z "$CC"; then
1949 # Extract the first word of "cc", so it can be a program name with args.
1950set dummy cc; ac_word=$2
1951echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1958else
1959 ac_prog_rejected=no
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1968 ac_prog_rejected=yes
1969 continue
1970 fi
1971 ac_cv_prog_CC="cc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975done
1976done
1977
1978if test $ac_prog_rejected = yes; then
1979 # We found a bogon in the path, so make sure we never use it.
1980 set dummy $ac_cv_prog_CC
1981 shift
1982 if test $# != 0; then
1983 # We chose a different compiler from the bogus one.
1984 # However, it has the same basename, so the bogon will be chosen
1985 # first if we set CC to just the basename; use the full file name.
1986 shift
1987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1988 fi
1989fi
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994 echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997 echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001fi
2002if test -z "$CC"; then
2003 if test -n "$ac_tool_prefix"; then
2004 for ac_prog in cl
2005 do
2006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2026 fi
2027done
2028done
2029
2030fi
2031fi
2032CC=$ac_cv_prog_CC
2033if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035echo "${ECHO_T}$CC" >&6
2036else
2037 echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6
2039fi
2040
2041 test -n "$CC" && break
2042 done
2043fi
2044if test -z "$CC"; then
2045 ac_ct_CC=$CC
2046 for ac_prog in cl
2047do
2048 # Extract the first word of "$ac_prog", so it can be a program name with args.
2049set dummy $ac_prog; ac_word=$2
2050echo "$as_me:$LINENO: checking for $ac_word" >&5
2051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2054else
2055 if test -n "$ac_ct_CC"; then
2056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057else
2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059for as_dir in $PATH
2060do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 ac_cv_prog_ac_ct_CC="$ac_prog"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 break 2
2068 fi
2069done
2070done
2071
2072fi
2073fi
2074ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075if test -n "$ac_ct_CC"; then
2076 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077echo "${ECHO_T}$ac_ct_CC" >&6
2078else
2079 echo "$as_me:$LINENO: result: no" >&5
2080echo "${ECHO_T}no" >&6
2081fi
2082
2083 test -n "$ac_ct_CC" && break
2084done
2085
2086 CC=$ac_ct_CC
2087fi
2088
2089fi
2090
2091
2092test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2093See \`config.log' for more details." >&5
2094echo "$as_me: error: no acceptable C compiler found in \$PATH
2095See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2097
2098# Provide some information about the compiler.
2099echo "$as_me:$LINENO:" \
2100 "checking for C compiler version" >&5
2101ac_compiler=`set X $ac_compile; echo $2`
2102{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2103 (eval $ac_compiler --version </dev/null >&5) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2108 (eval $ac_compiler -v </dev/null >&5) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2113 (eval $ac_compiler -V </dev/null >&5) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2117
2118cat >conftest.$ac_ext <<_ACEOF
2119/* confdefs.h. */
2120_ACEOF
2121cat confdefs.h >>conftest.$ac_ext
2122cat >>conftest.$ac_ext <<_ACEOF
2123/* end confdefs.h. */
2124
2125int
2126main ()
2127{
2128
2129 ;
2130 return 0;
2131}
2132_ACEOF
2133ac_clean_files_save=$ac_clean_files
2134ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135# Try to create an executable without -o first, disregard a.out.
2136# It will help us diagnose broken compilers, and finding out an intuition
2137# of exeext.
2138echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2139echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2140ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2142 (eval $ac_link_default) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # Find the output, starting from the most likely. This scheme is
2147# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2148# resort.
2149
2150# Be careful to initialize this variable, since it used to be cached.
2151# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2152ac_cv_exeext=
2153# b.out is created by i960 compilers.
2154for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2155do
2156 test -f "$ac_file" || continue
2157 case $ac_file in
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2159 ;;
2160 conftest.$ac_ext )
2161 # This is the source file.
2162 ;;
2163 [ab].out )
2164 # We found the default executable, but exeext='' is most
2165 # certainly right.
2166 break;;
2167 *.* )
2168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169 # FIXME: I believe we export ac_cv_exeext for Libtool,
2170 # but it would be cool to find out if it's true. Does anybody
2171 # maintain Libtool? --akim.
2172 export ac_cv_exeext
2173 break;;
2174 * )
2175 break;;
2176 esac
2177done
2178else
2179 echo "$as_me: failed program was:" >&5
2180sed 's/^/| /' conftest.$ac_ext >&5
2181
2182{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2183See \`config.log' for more details." >&5
2184echo "$as_me: error: C compiler cannot create executables
2185See \`config.log' for more details." >&2;}
2186 { (exit 77); exit 77; }; }
2187fi
2188
2189ac_exeext=$ac_cv_exeext
2190echo "$as_me:$LINENO: result: $ac_file" >&5
2191echo "${ECHO_T}$ac_file" >&6
2192
2193# Check the compiler produces executables we can run. If not, either
2194# the compiler is broken, or we cross compile.
2195echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2196echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2197# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2198# If not cross compiling, check that we can run a simple program.
2199if test "$cross_compiling" != yes; then
2200 if { ac_try='./$ac_file'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 cross_compiling=no
2207 else
2208 if test "$cross_compiling" = maybe; then
2209 cross_compiling=yes
2210 else
2211 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2212If you meant to cross compile, use \`--host'.
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: cannot run C compiled programs.
2215If you meant to cross compile, use \`--host'.
2216See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2218 fi
2219 fi
2220fi
2221echo "$as_me:$LINENO: result: yes" >&5
2222echo "${ECHO_T}yes" >&6
2223
2224rm -f a.out a.exe conftest$ac_cv_exeext b.out
2225ac_clean_files=$ac_clean_files_save
2226# Check the compiler produces executables we can run. If not, either
2227# the compiler is broken, or we cross compile.
2228echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2229echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2230echo "$as_me:$LINENO: result: $cross_compiling" >&5
2231echo "${ECHO_T}$cross_compiling" >&6
2232
2233echo "$as_me:$LINENO: checking for suffix of executables" >&5
2234echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2236 (eval $ac_link) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; then
2240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2241# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2242# work properly (i.e., refer to `conftest.exe'), while it won't with
2243# `rm'.
2244for ac_file in conftest.exe conftest conftest.*; do
2245 test -f "$ac_file" || continue
2246 case $ac_file in
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249 export ac_cv_exeext
2250 break;;
2251 * ) break;;
2252 esac
2253done
2254else
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2258See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2260fi
2261
2262rm -f conftest$ac_cv_exeext
2263echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2264echo "${ECHO_T}$ac_cv_exeext" >&6
2265
2266rm -f conftest.$ac_ext
2267EXEEXT=$ac_cv_exeext
2268ac_exeext=$EXEEXT
2269echo "$as_me:$LINENO: checking for suffix of object files" >&5
2270echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2271if test "${ac_cv_objext+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
2274 cat >conftest.$ac_ext <<_ACEOF
2275/* confdefs.h. */
2276_ACEOF
2277cat confdefs.h >>conftest.$ac_ext
2278cat >>conftest.$ac_ext <<_ACEOF
2279/* end confdefs.h. */
2280
2281int
2282main ()
2283{
2284
2285 ;
2286 return 0;
2287}
2288_ACEOF
2289rm -f conftest.o conftest.obj
2290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2296 case $ac_file in
2297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2299 break;;
2300 esac
2301done
2302else
2303 echo "$as_me: failed program was:" >&5
2304sed 's/^/| /' conftest.$ac_ext >&5
2305
2306{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2307See \`config.log' for more details." >&5
2308echo "$as_me: error: cannot compute suffix of object files: cannot compile
2309See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311fi
2312
2313rm -f conftest.$ac_cv_objext conftest.$ac_ext
2314fi
2315echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2316echo "${ECHO_T}$ac_cv_objext" >&6
2317OBJEXT=$ac_cv_objext
2318ac_objext=$OBJEXT
2319echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2320echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2321if test "${ac_cv_c_compiler_gnu+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324 cat >conftest.$ac_ext <<_ACEOF
2325/* confdefs.h. */
2326_ACEOF
2327cat confdefs.h >>conftest.$ac_ext
2328cat >>conftest.$ac_ext <<_ACEOF
2329/* end confdefs.h. */
2330
2331int
2332main ()
2333{
2334#ifndef __GNUC__
2335 choke me
2336#endif
2337
2338 ;
2339 return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_compiler_gnu=yes
2365else
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369ac_compiler_gnu=no
2370fi
2371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372ac_cv_c_compiler_gnu=$ac_compiler_gnu
2373
2374fi
2375echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2376echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2377GCC=`test $ac_compiler_gnu = yes && echo yes`
2378ac_test_CFLAGS=${CFLAGS+set}
2379ac_save_CFLAGS=$CFLAGS
2380CFLAGS="-g"
2381echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2382echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2383if test "${ac_cv_prog_cc_g+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385else
2386 cat >conftest.$ac_ext <<_ACEOF
2387/* confdefs.h. */
2388_ACEOF
2389cat confdefs.h >>conftest.$ac_ext
2390cat >>conftest.$ac_ext <<_ACEOF
2391/* end confdefs.h. */
2392
2393int
2394main ()
2395{
2396
2397 ;
2398 return 0;
2399}
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cc_g=yes
2424else
2425 echo "$as_me: failed program was:" >&5
2426sed 's/^/| /' conftest.$ac_ext >&5
2427
2428ac_cv_prog_cc_g=no
2429fi
2430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431fi
2432echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2433echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2434if test "$ac_test_CFLAGS" = set; then
2435 CFLAGS=$ac_save_CFLAGS
2436elif test $ac_cv_prog_cc_g = yes; then
2437 if test "$GCC" = yes; then
2438 CFLAGS="-g -O2"
2439 else
2440 CFLAGS="-g"
2441 fi
2442else
2443 if test "$GCC" = yes; then
2444 CFLAGS="-O2"
2445 else
2446 CFLAGS=
2447 fi
2448fi
2449echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2450echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2451if test "${ac_cv_prog_cc_stdc+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453else
2454 ac_cv_prog_cc_stdc=no
2455ac_save_CC=$CC
2456cat >conftest.$ac_ext <<_ACEOF
2457/* confdefs.h. */
2458_ACEOF
2459cat confdefs.h >>conftest.$ac_ext
2460cat >>conftest.$ac_ext <<_ACEOF
2461/* end confdefs.h. */
2462#include <stdarg.h>
2463#include <stdio.h>
2464#include <sys/types.h>
2465#include <sys/stat.h>
2466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2467struct buf { int x; };
2468FILE * (*rcsopen) (struct buf *, struct stat *, int);
2469static char *e (p, i)
2470 char **p;
2471 int i;
2472{
2473 return p[i];
2474}
2475static char *f (char * (*g) (char **, int), char **p, ...)
2476{
2477 char *s;
2478 va_list v;
2479 va_start (v,p);
2480 s = g (p, va_arg (v,int));
2481 va_end (v);
2482 return s;
2483}
2484
2485/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2486 function prototypes and stuff, but not '\xHH' hex character constants.
2487 These don't provoke an error unfortunately, instead are silently treated
2488 as 'x'. The following induces an error, until -std1 is added to get
2489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2490 array size at least. It's necessary to write '\x00'==0 to get something
2491 that's true only with -std1. */
2492int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2493
2494int test (int i, double x);
2495struct s1 {int (*f) (int a);};
2496struct s2 {int (*f) (double a);};
2497int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2498int argc;
2499char **argv;
2500int
2501main ()
2502{
2503return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508# Don't try gcc -ansi; that turns off useful extensions and
2509# breaks some systems' header files.
2510# AIX -qlanglvl=ansi
2511# Ultrix and OSF/1 -std1
2512# HP-UX 10.20 and later -Ae
2513# HP-UX older versions -Aa -D_HPUX_SOURCE
2514# SVR4 -Xc -D__EXTENSIONS__
2515for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2516do
2517 CC="$ac_save_CC $ac_arg"
2518 rm -f conftest.$ac_objext
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_prog_cc_stdc=$ac_arg
2541break
2542else
2543 echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546fi
2547rm -f conftest.err conftest.$ac_objext
2548done
2549rm -f conftest.$ac_ext conftest.$ac_objext
2550CC=$ac_save_CC
2551
2552fi
2553
2554case "x$ac_cv_prog_cc_stdc" in
2555 x|xno)
2556 echo "$as_me:$LINENO: result: none needed" >&5
2557echo "${ECHO_T}none needed" >&6 ;;
2558 *)
2559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2560echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2561 CC="$CC $ac_cv_prog_cc_stdc" ;;
2562esac
2563
2564# Some people use a C++ compiler to compile C. Since we use `exit',
2565# in C++ we need to declare it. In case someone uses the same compiler
2566# for both compiling C and C++ we need to have the C++ compiler decide
2567# the declaration of exit, since it's the most demanding environment.
2568cat >conftest.$ac_ext <<_ACEOF
2569#ifndef __cplusplus
2570 choke me
2571#endif
2572_ACEOF
2573rm -f conftest.$ac_objext
2574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag"
2583 || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 for ac_declaration in \
2596 '' \
2597 'extern "C" void std::exit (int) throw (); using std::exit;' \
2598 'extern "C" void std::exit (int); using std::exit;' \
2599 'extern "C" void exit (int) throw ();' \
2600 'extern "C" void exit (int);' \
2601 'void exit (int);'
2602do
2603 cat >conftest.$ac_ext <<_ACEOF
2604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
2609$ac_declaration
2610#include <stdlib.h>
2611int
2612main ()
2613{
2614exit (42);
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 :
2642else
2643 echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
2645
2646continue
2647fi
2648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h. */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h. */
2655$ac_declaration
2656int
2657main ()
2658{
2659exit (42);
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 break
2687else
2688 echo "$as_me: failed program was:" >&5
2689sed 's/^/| /' conftest.$ac_ext >&5
2690
2691fi
2692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693done
2694rm -f conftest*
2695if test -n "$ac_declaration"; then
2696 echo '#ifdef __cplusplus' >>confdefs.h
2697 echo $ac_declaration >>confdefs.h
2698 echo '#endif' >>confdefs.h
2699fi
2700
2701else
2702 echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705fi
2706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707ac_ext=c
2708ac_cpp='$CPP $CPPFLAGS'
2709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712DEPDIR="${am__leading_dot}deps"
2713
2714 ac_config_commands="$ac_config_commands depfiles"
2715
2716
2717am_make=${MAKE-make}
2718cat > confinc << 'END'
2719am__doit:
2720 @echo done
2721.PHONY: am__doit
2722END
2723# If we don't find an include directive, just comment out the code.
2724echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2725echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2726am__include="#"
2727am__quote=
2728_am_result=none
2729# First try GNU make style include.
2730echo "include confinc" > confmf
2731# We grep out `Entering directory' and `Leaving directory'
2732# messages which can occur if `w' ends up in MAKEFLAGS.
2733# In particular we don't look at `^make:' because GNU make might
2734# be invoked under some other name (usually "gmake"), in which
2735# case it prints its new name instead of `make'.
2736if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2737 am__include=include
2738 am__quote=
2739 _am_result=GNU
2740fi
2741# Now try BSD make style include.
2742if test "$am__include" = "#"; then
2743 echo '.include "confinc"' > confmf
2744 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2745 am__include=.include
2746 am__quote="\""
2747 _am_result=BSD
2748 fi
2749fi
2750
2751
2752echo "$as_me:$LINENO: result: $_am_result" >&5
2753echo "${ECHO_T}$_am_result" >&6
2754rm -f confinc confmf
2755
2756# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2757if test "${enable_dependency_tracking+set}" = set; then
2758 enableval="$enable_dependency_tracking"
2759
2760fi;
2761if test "x$enable_dependency_tracking" != xno; then
2762 am_depcomp="$ac_aux_dir/depcomp"
2763 AMDEPBACKSLASH='\'
2764fi
2765
2766
2767if test "x$enable_dependency_tracking" != xno; then
2768 AMDEP_TRUE=
2769 AMDEP_FALSE='#'
2770else
2771 AMDEP_TRUE='#'
2772 AMDEP_FALSE=
2773fi
2774
2775
2776
2777
2778depcc="$CC" am_compiler_list=
2779
2780echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2781echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2782if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2786 # We make a subdir and do the tests there. Otherwise we can end up
2787 # making bogus files that we don't know about and never remove. For
2788 # instance it was reported that on HP-UX the gcc test will end up
2789 # making a dummy file named `D' -- because `-MD' means `put the output
2790 # in D'.
2791 mkdir conftest.dir
2792 # Copy depcomp to subdir because otherwise we won't find it if we're
2793 # using a relative directory.
2794 cp "$am_depcomp" conftest.dir
2795 cd conftest.dir
2796 # We will build objects and dependencies in a subdirectory because
2797 # it helps to detect inapplicable dependency modes. For instance
2798 # both Tru64's cc and ICC support -MD to output dependencies as a
2799 # side effect of compilation, but ICC will put the dependencies in
2800 # the current directory while Tru64 will put them in the object
2801 # directory.
2802 mkdir sub
2803
2804 am_cv_CC_dependencies_compiler_type=none
2805 if test "$am_compiler_list" = ""; then
2806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2807 fi
2808 for depmode in $am_compiler_list; do
2809 # Setup a source with many dependencies, because some compilers
2810 # like to wrap large dependency lists on column 80 (with \), and
2811 # we should not choose a depcomp mode which is confused by this.
2812 #
2813 # We need to recreate these files for each test, as the compiler may
2814 # overwrite some of them when testing with obscure command lines.
2815 # This happens at least with the AIX C compiler.
2816 : > sub/conftest.c
2817 for i in 1 2 3 4 5 6; do
2818 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2820 # Solaris 8's {/usr,}/bin/sh.
2821 touch sub/conftst$i.h
2822 done
2823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2824
2825 case $depmode in
2826 nosideeffect)
2827 # after this tag, mechanisms are not by side-effect, so they'll
2828 # only be used when explicitly requested
2829 if test "x$enable_dependency_tracking" = xyes; then
2830 continue
2831 else
2832 break
2833 fi
2834 ;;
2835 none) break ;;
2836 esac
2837 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2838 # mode. It turns out that the SunPro C++ compiler does not properly
2839 # handle `-M -o', and we need to detect this.
2840 if depmode=$depmode \
2841 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2843 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2844 >/dev/null 2>conftest.err &&
2845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2846 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2848 # icc doesn't choke on unknown options, it will just issue warnings
2849 # or remarks (even with -Werror). So we grep stderr for any message
2850 # that says an option was ignored or not supported.
2851 # When given -MP, icc 7.0 and 7.1 complain thusly:
2852 # icc: Command line warning: ignoring option '-M'; no argument required
2853 # The diagnosis changed in icc 8.0:
2854 # icc: Command line remark: option '-MP' not supported
2855 if (grep 'ignoring option' conftest.err ||
2856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2857 am_cv_CC_dependencies_compiler_type=$depmode
2858 break
2859 fi
2860 fi
2861 done
2862
2863 cd ..
2864 rm -rf conftest.dir
2865else
2866 am_cv_CC_dependencies_compiler_type=none
2867fi
2868
2869fi
2870echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2871echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2872CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2873
2874
2875
2876if
2877 test "x$enable_dependency_tracking" != xno \
2878 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2879 am__fastdepCC_TRUE=
2880 am__fastdepCC_FALSE='#'
2881else
2882 am__fastdepCC_TRUE='#'
2883 am__fastdepCC_FALSE=
2884fi
2885
2886
2887if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2889set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2890echo "$as_me:$LINENO: checking for $ac_word" >&5
2891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892if test "${ac_cv_prog_RANLIB+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
2895 if test -n "$RANLIB"; then
2896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909done
2910done
2911
2912fi
2913fi
2914RANLIB=$ac_cv_prog_RANLIB
2915if test -n "$RANLIB"; then
2916 echo "$as_me:$LINENO: result: $RANLIB" >&5
2917echo "${ECHO_T}$RANLIB" >&6
2918else
2919 echo "$as_me:$LINENO: result: no" >&5
2920echo "${ECHO_T}no" >&6
2921fi
2922
2923fi
2924if test -z "$ac_cv_prog_RANLIB"; then
2925 ac_ct_RANLIB=$RANLIB
2926 # Extract the first word of "ranlib", so it can be a program name with args.
2927set dummy ranlib; ac_word=$2
2928echo "$as_me:$LINENO: checking for $ac_word" >&5
2929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933 if test -n "$ac_ct_RANLIB"; then
2934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_ac_ct_RANLIB="ranlib"
2944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947done
2948done
2949
2950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2951fi
2952fi
2953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2954if test -n "$ac_ct_RANLIB"; then
2955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2956echo "${ECHO_T}$ac_ct_RANLIB" >&6
2957else
2958 echo "$as_me:$LINENO: result: no" >&5
2959echo "${ECHO_T}no" >&6
2960fi
2961
2962 RANLIB=$ac_ct_RANLIB
2963else
2964 RANLIB="$ac_cv_prog_RANLIB"
2965fi
2966
2967
2968cat >>confdefs.h <<\_ACEOF
2969#define _GNU_SOURCE 1
2970_ACEOF
2971
2972
2973
2974ac_ext=c
2975ac_cpp='$CPP $CPPFLAGS'
2976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2980echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2981# On Suns, sometimes $CPP names a directory.
2982if test -n "$CPP" && test -d "$CPP"; then
2983 CPP=
2984fi
2985if test -z "$CPP"; then
2986 if test "${ac_cv_prog_CPP+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 # Double quotes because CPP needs to be expanded
2990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2991 do
2992 ac_preproc_ok=false
2993for ac_c_preproc_warn_flag in '' yes
2994do
2995 # Use a header file that comes with gcc, so configuring glibc
2996 # with a fresh cross-compiler works.
2997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2998 # <limits.h> exists even on freestanding compilers.
2999 # On the NeXT, cc -E runs the code through the compiler's parser,
3000 # not just through cpp. "Syntax error" is here to catch this case.
3001 cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h. */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h. */
3007#ifdef __STDC__
3008# include <limits.h>
3009#else
3010# include <assert.h>
3011#endif
3012 Syntax error
3013_ACEOF
3014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 ac_status=$?
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null; then
3022 if test -s conftest.err; then
3023 ac_cpp_err=$ac_c_preproc_warn_flag
3024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3025 else
3026 ac_cpp_err=
3027 fi
3028else
3029 ac_cpp_err=yes
3030fi
3031if test -z "$ac_cpp_err"; then
3032 :
3033else
3034 echo "$as_me: failed program was:" >&5
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 # Broken: fails on valid input.
3038continue
3039fi
3040rm -f conftest.err conftest.$ac_ext
3041
3042 # OK, works on sane cases. Now check whether non-existent headers
3043 # can be detected and how.
3044 cat >conftest.$ac_ext <<_ACEOF
3045/* confdefs.h. */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
3049/* end confdefs.h. */
3050#include <ac_nonexistent.h>
3051_ACEOF
3052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054 ac_status=$?
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3063 else
3064 ac_cpp_err=
3065 fi
3066else
3067 ac_cpp_err=yes
3068fi
3069if test -z "$ac_cpp_err"; then
3070 # Broken: success on invalid input.
3071continue
3072else
3073 echo "$as_me: failed program was:" >&5
3074sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 # Passes both tests.
3077ac_preproc_ok=:
3078break
3079fi
3080rm -f conftest.err conftest.$ac_ext
3081
3082done
3083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084rm -f conftest.err conftest.$ac_ext
3085if $ac_preproc_ok; then
3086 break
3087fi
3088
3089 done
3090 ac_cv_prog_CPP=$CPP
3091
3092fi
3093 CPP=$ac_cv_prog_CPP
3094else
3095 ac_cv_prog_CPP=$CPP
3096fi
3097echo "$as_me:$LINENO: result: $CPP" >&5
3098echo "${ECHO_T}$CPP" >&6
3099ac_preproc_ok=false
3100for ac_c_preproc_warn_flag in '' yes
3101do
3102 # Use a header file that comes with gcc, so configuring glibc
3103 # with a fresh cross-compiler works.
3104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3105 # <limits.h> exists even on freestanding compilers.
3106 # On the NeXT, cc -E runs the code through the compiler's parser,
3107 # not just through cpp. "Syntax error" is here to catch this case.
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114#ifdef __STDC__
3115# include <limits.h>
3116#else
3117# include <assert.h>
3118#endif
3119 Syntax error
3120_ACEOF
3121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132 else
3133 ac_cpp_err=
3134 fi
3135else
3136 ac_cpp_err=yes
3137fi
3138if test -z "$ac_cpp_err"; then
3139 :
3140else
3141 echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 # Broken: fails on valid input.
3145continue
3146fi
3147rm -f conftest.err conftest.$ac_ext
3148
3149 # OK, works on sane cases. Now check whether non-existent headers
3150 # can be detected and how.
3151 cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h. */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h. */
3157#include <ac_nonexistent.h>
3158_ACEOF
3159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3161 ac_status=$?
3162 grep -v '^ *+' conftest.er1 >conftest.err
3163 rm -f conftest.er1
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } >/dev/null; then
3167 if test -s conftest.err; then
3168 ac_cpp_err=$ac_c_preproc_warn_flag
3169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3170 else
3171 ac_cpp_err=
3172 fi
3173else
3174 ac_cpp_err=yes
3175fi
3176if test -z "$ac_cpp_err"; then
3177 # Broken: success on invalid input.
3178continue
3179else
3180 echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 # Passes both tests.
3184ac_preproc_ok=:
3185break
3186fi
3187rm -f conftest.err conftest.$ac_ext
3188
3189done
3190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3191rm -f conftest.err conftest.$ac_ext
3192if $ac_preproc_ok; then
3193 :
3194else
3195 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3196See \`config.log' for more details." >&5
3197echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3198See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3200fi
3201
3202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207
3208
3209echo "$as_me:$LINENO: checking for egrep" >&5
3210echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3211if test "${ac_cv_prog_egrep+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3215 then ac_cv_prog_egrep='grep -E'
3216 else ac_cv_prog_egrep='egrep'
3217 fi
3218fi
3219echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3220echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3221 EGREP=$ac_cv_prog_egrep
3222
3223
3224
3225echo "$as_me:$LINENO: checking for AIX" >&5
3226echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3227cat >conftest.$ac_ext <<_ACEOF
3228/* confdefs.h. */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h. */
3233#ifdef _AIX
3234 yes
3235#endif
3236
3237_ACEOF
3238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3239 $EGREP "yes" >/dev/null 2>&1; then
3240 echo "$as_me:$LINENO: result: yes" >&5
3241echo "${ECHO_T}yes" >&6
3242cat >>confdefs.h <<\_ACEOF
3243#define _ALL_SOURCE 1
3244_ACEOF
3245
3246else
3247 echo "$as_me:$LINENO: result: no" >&5
3248echo "${ECHO_T}no" >&6
3249fi
3250rm -f conftest*
3251
3252
3253echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3254echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3255if test "${ac_cv_header_stdc+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258 cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h. */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h. */
3264#include <stdlib.h>
3265#include <stdarg.h>
3266#include <string.h>
3267#include <float.h>
3268
3269int
3270main ()
3271{
3272
3273 ;
3274 return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext
3278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_header_stdc=yes
3300else
3301 echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304ac_cv_header_stdc=no
3305fi
3306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307
3308if test $ac_cv_header_stdc = yes; then
3309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3310 cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h. */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h. */
3316#include <string.h>
3317
3318_ACEOF
3319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3320 $EGREP "memchr" >/dev/null 2>&1; then
3321 :
3322else
3323 ac_cv_header_stdc=no
3324fi
3325rm -f conftest*
3326
3327fi
3328
3329if test $ac_cv_header_stdc = yes; then
3330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#include <stdlib.h>
3338
3339_ACEOF
3340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 $EGREP "free" >/dev/null 2>&1; then
3342 :
3343else
3344 ac_cv_header_stdc=no
3345fi
3346rm -f conftest*
3347
3348fi
3349
3350if test $ac_cv_header_stdc = yes; then
3351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3352 if test "$cross_compiling" = yes; then
3353 :
3354else
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361#include <ctype.h>
3362#if ((' ' & 0x0FF) == 0x020)
3363# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3365#else
3366# define ISLOWER(c) \
3367 (('a' <= (c) && (c) <= 'i') \
3368 || ('j' <= (c) && (c) <= 'r') \
3369 || ('s' <= (c) && (c) <= 'z'))
3370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3371#endif
3372
3373#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3374int
3375main ()
3376{
3377 int i;
3378 for (i = 0; i < 256; i++)
3379 if (XOR (islower (i), ISLOWER (i))
3380 || toupper (i) != TOUPPER (i))
3381 exit(2);
3382 exit (0);
3383}
3384_ACEOF
3385rm -f conftest$ac_exeext
3386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3387 (eval $ac_link) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 :
3397else
3398 echo "$as_me: program exited with status $ac_status" >&5
3399echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
3402( exit $ac_status )
3403ac_cv_header_stdc=no
3404fi
3405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3406fi
3407fi
3408fi
3409echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3410echo "${ECHO_T}$ac_cv_header_stdc" >&6
3411if test $ac_cv_header_stdc = yes; then
3412
3413cat >>confdefs.h <<\_ACEOF
3414#define STDC_HEADERS 1
3415_ACEOF
3416
3417fi
3418
3419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3430 inttypes.h stdint.h unistd.h
3431do
3432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3433echo "$as_me:$LINENO: checking for $ac_header" >&5
3434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3435if eval "test \"\${$as_ac_Header+set}\" = set"; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h. */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h. */
3444$ac_includes_default
3445
3446#include <$ac_header>
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -z "$ac_c_werror_flag"
3458 || test ! -s conftest.err'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3470 eval "$as_ac_Header=yes"
3471else
3472 echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475eval "$as_ac_Header=no"
3476fi
3477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478fi
3479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3481if test `eval echo '${'$as_ac_Header'}'` = yes; then
3482 cat >>confdefs.h <<_ACEOF
3483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3484_ACEOF
3485
3486fi
3487
3488done
3489
3490
3491if test "${ac_cv_header_minix_config_h+set}" = set; then
3492 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3493echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3494if test "${ac_cv_header_minix_config_h+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496fi
3497echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3498echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3499else
3500 # Is the header compilable?
3501echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3502echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3503cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h. */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h. */
3509$ac_includes_default
3510#include <minix/config.h>
3511_ACEOF
3512rm -f conftest.$ac_objext
3513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_header_compiler=yes
3535else
3536 echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539ac_header_compiler=no
3540fi
3541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3543echo "${ECHO_T}$ac_header_compiler" >&6
3544
3545# Is the header present?
3546echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3547echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3548cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h. */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h. */
3554#include <minix/config.h>
3555_ACEOF
3556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3569 fi
3570else
3571 ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
3574 ac_header_preproc=yes
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 ac_header_preproc=no
3580fi
3581rm -f conftest.err conftest.$ac_ext
3582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3583echo "${ECHO_T}$ac_header_preproc" >&6
3584
3585# So? What about this header?
3586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3587 yes:no: )
3588 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3589echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3591echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3592 ac_header_preproc=yes
3593 ;;
3594 no:yes:* )
3595 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3596echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3598echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3599 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3600echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3601 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3602echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3603 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3604echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3605 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3606echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3607 (
3608 cat <<\_ASBOX
3609## ------------------------------ ##
3610## Report this to [email protected] ##
3611## ------------------------------ ##
3612_ASBOX
3613 ) |
3614 sed "s/^/$as_me: WARNING: /" >&2
3615 ;;
3616esac
3617echo "$as_me:$LINENO: checking for minix/config.h" >&5
3618echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3619if test "${ac_cv_header_minix_config_h+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 ac_cv_header_minix_config_h=$ac_header_preproc
3623fi
3624echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3625echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3626
3627fi
3628if test $ac_cv_header_minix_config_h = yes; then
3629 MINIX=yes
3630else
3631 MINIX=
3632fi
3633
3634
3635if test "$MINIX" = yes; then
3636
3637cat >>confdefs.h <<\_ACEOF
3638#define _POSIX_SOURCE 1
3639_ACEOF
3640
3641
3642cat >>confdefs.h <<\_ACEOF
3643#define _POSIX_1_SOURCE 2
3644_ACEOF
3645
3646
3647cat >>confdefs.h <<\_ACEOF
3648#define _MINIX 1
3649_ACEOF
3650
3651fi
3652
3653echo "$as_me:$LINENO: checking for library containing strerror" >&5
3654echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3655if test "${ac_cv_search_strerror+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 ac_func_search_save_LIBS=$LIBS
3659ac_cv_search_strerror=no
3660cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h. */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h. */
3666
3667/* Override any gcc2 internal prototype to avoid an error. */
3668#ifdef __cplusplus
3669extern "C"
3670#endif
3671/* We use char because int might match the return type of a gcc2
3672 builtin and then its argument prototype would still apply. */
3673char strerror ();
3674int
3675main ()
3676{
3677strerror ();
3678 ;
3679 return 0;
3680}
3681_ACEOF
3682rm -f conftest.$ac_objext conftest$ac_exeext
3683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3684 (eval $ac_link) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest$ac_exeext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_cv_search_strerror="none required"
3705else
3706 echo "$as_me: failed program was:" >&5
3707sed 's/^/| /' conftest.$ac_ext >&5
3708
3709fi
3710rm -f conftest.err conftest.$ac_objext \
3711 conftest$ac_exeext conftest.$ac_ext
3712if test "$ac_cv_search_strerror" = no; then
3713 for ac_lib in cposix; do
3714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3715 cat >conftest.$ac_ext <<_ACEOF
3716/* confdefs.h. */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h. */
3721
3722/* Override any gcc2 internal prototype to avoid an error. */
3723#ifdef __cplusplus
3724extern "C"
3725#endif
3726/* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3728char strerror ();
3729int
3730main ()
3731{
3732strerror ();
3733 ;
3734 return 0;
3735}
3736_ACEOF
3737rm -f conftest.$ac_objext conftest$ac_exeext
3738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739 (eval $ac_link) 2>conftest.er1
3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_cv_search_strerror="-l$ac_lib"
3760break
3761else
3762 echo "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765fi
3766rm -f conftest.err conftest.$ac_objext \
3767 conftest$ac_exeext conftest.$ac_ext
3768 done
3769fi
3770LIBS=$ac_func_search_save_LIBS
3771fi
3772echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3773echo "${ECHO_T}$ac_cv_search_strerror" >&6
3774if test "$ac_cv_search_strerror" != no; then
3775 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3776
3777fi
3778
3779# Check whether --enable-largefile or --disable-largefile was given.
3780if test "${enable_largefile+set}" = set; then
3781 enableval="$enable_largefile"
3782
3783fi;
3784if test "$enable_largefile" != no; then
3785
3786 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3787echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3788if test "${ac_cv_sys_largefile_CC+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791 ac_cv_sys_largefile_CC=no
3792 if test "$GCC" != yes; then
3793 ac_save_CC=$CC
3794 while :; do
3795 # IRIX 6.2 and later do not support large files by default,
3796 # so use the C compiler's -n32 option if that helps.
3797 cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
3803#include <sys/types.h>
3804 /* Check that off_t can represent 2**63 - 1 correctly.
3805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3806 since some C++ compilers masquerading as C compilers
3807 incorrectly reject 9223372036854775807. */
3808#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3810 && LARGE_OFF_T % 2147483647 == 1)
3811 ? 1 : -1];
3812int
3813main ()
3814{
3815
3816 ;
3817 return 0;
3818}
3819_ACEOF
3820 rm -f conftest.$ac_objext
3821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_c_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 break
3843else
3844 echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847fi
3848rm -f conftest.err conftest.$ac_objext
3849 CC="$CC -n32"
3850 rm -f conftest.$ac_objext
3851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest.$ac_objext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_sys_largefile_CC=' -n32'; break
3873else
3874 echo "$as_me: failed program was:" >&5
3875sed 's/^/| /' conftest.$ac_ext >&5
3876
3877fi
3878rm -f conftest.err conftest.$ac_objext
3879 break
3880 done
3881 CC=$ac_save_CC
3882 rm -f conftest.$ac_ext
3883 fi
3884fi
3885echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3886echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3887 if test "$ac_cv_sys_largefile_CC" != no; then
3888 CC=$CC$ac_cv_sys_largefile_CC
3889 fi
3890
3891 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3892echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3893if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896 while :; do
3897 ac_cv_sys_file_offset_bits=no
3898 cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h. */
3904#include <sys/types.h>
3905 /* Check that off_t can represent 2**63 - 1 correctly.
3906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3907 since some C++ compilers masquerading as C compilers
3908 incorrectly reject 9223372036854775807. */
3909#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3911 && LARGE_OFF_T % 2147483647 == 1)
3912 ? 1 : -1];
3913int
3914main ()
3915{
3916
3917 ;
3918 return 0;
3919}
3920_ACEOF
3921rm -f conftest.$ac_objext
3922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest.$ac_objext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 break
3944else
3945 echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948fi
3949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3950 cat >conftest.$ac_ext <<_ACEOF
3951/* confdefs.h. */
3952_ACEOF
3953cat confdefs.h >>conftest.$ac_ext
3954cat >>conftest.$ac_ext <<_ACEOF
3955/* end confdefs.h. */
3956#define _FILE_OFFSET_BITS 64
3957#include <sys/types.h>
3958 /* Check that off_t can represent 2**63 - 1 correctly.
3959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3960 since some C++ compilers masquerading as C compilers
3961 incorrectly reject 9223372036854775807. */
3962#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3964 && LARGE_OFF_T % 2147483647 == 1)
3965 ? 1 : -1];
3966int
3967main ()
3968{
3969
3970 ;
3971 return 0;
3972}
3973_ACEOF
3974rm -f conftest.$ac_objext
3975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_c_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_sys_file_offset_bits=64; break
3997else
3998 echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001fi
4002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4003 break
4004done
4005fi
4006echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4007echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4008if test "$ac_cv_sys_file_offset_bits" != no; then
4009
4010cat >>confdefs.h <<_ACEOF
4011#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4012_ACEOF
4013
4014fi
4015rm -f conftest*
4016 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4017echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4018if test "${ac_cv_sys_large_files+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 while :; do
4022 ac_cv_sys_large_files=no
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029#include <sys/types.h>
4030 /* Check that off_t can represent 2**63 - 1 correctly.
4031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4032 since some C++ compilers masquerading as C compilers
4033 incorrectly reject 9223372036854775807. */
4034#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4036 && LARGE_OFF_T % 2147483647 == 1)
4037 ? 1 : -1];
4038int
4039main ()
4040{
4041
4042 ;
4043 return 0;
4044}
4045_ACEOF
4046rm -f conftest.$ac_objext
4047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048 (eval $ac_compile) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -z "$ac_c_werror_flag"
4056 || test ! -s conftest.err'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 break
4069else
4070 echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073fi
4074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081#define _LARGE_FILES 1
4082#include <sys/types.h>
4083 /* Check that off_t can represent 2**63 - 1 correctly.
4084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4085 since some C++ compilers masquerading as C compilers
4086 incorrectly reject 9223372036854775807. */
4087#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4089 && LARGE_OFF_T % 2147483647 == 1)
4090 ? 1 : -1];
4091int
4092main ()
4093{
4094
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext
4100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_sys_large_files=1; break
4122else
4123 echo "$as_me: failed program was:" >&5
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126fi
4127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128 break
4129done
4130fi
4131echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4132echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4133if test "$ac_cv_sys_large_files" != no; then
4134
4135cat >>confdefs.h <<_ACEOF
4136#define _LARGE_FILES $ac_cv_sys_large_files
4137_ACEOF
4138
4139fi
4140rm -f conftest*
4141fi
4142
4143echo "$as_me:$LINENO: checking for long file names" >&5
4144echo $ECHO_N "checking for long file names... $ECHO_C" >&6
4145if test "${ac_cv_sys_long_file_names+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147else
4148 ac_cv_sys_long_file_names=yes
4149# Test for long file names in all the places we know might matter:
4150# . the current directory, where building will happen
4151# $prefix/lib where we will be installing things
4152# $exec_prefix/lib likewise
4153# eval it to expand exec_prefix.
4154# $TMPDIR if set, where it might want to write temporary files
4155# if $TMPDIR is not set:
4156# /tmp where it might want to write temporary files
4157# /var/tmp likewise
4158# /usr/tmp likewise
4159if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4160 ac_tmpdirs=$TMPDIR
4161else
4162 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4163fi
4164for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4165 test -d $ac_dir || continue
4166 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4167 ac_xdir=$ac_dir/cf$$
4168 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
4169 ac_tf1=$ac_xdir/conftest9012345
4170 ac_tf2=$ac_xdir/conftest9012346
4171 (echo 1 >$ac_tf1) 2>/dev/null
4172 (echo 2 >$ac_tf2) 2>/dev/null
4173 ac_val=`cat $ac_tf1 2>/dev/null`
4174 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
4175 ac_cv_sys_long_file_names=no
4176 rm -rf $ac_xdir 2>/dev/null
4177 break
4178 fi
4179 rm -rf $ac_xdir 2>/dev/null
4180done
4181fi
4182echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
4183echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
4184if test $ac_cv_sys_long_file_names = yes; then
4185
4186cat >>confdefs.h <<\_ACEOF
4187#define HAVE_LONG_FILE_NAMES 1
4188_ACEOF
4189
4190fi
4191
4192
4193echo "$as_me:$LINENO: checking whether -lcP is needed" >&5
4194echo $ECHO_N "checking whether -lcP is needed... $ECHO_C" >&6
4195if test "${sed_cv_libcp_needed+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197else
4198
4199if test "$cross_compiling" = yes; then
4200 sed_cv_libcp_needed="assuming no"
4201else
4202 cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h. */
4208
4209#include <stdio.h>
4210#include <errno.h>
4211
4212int main()
4213{
4214 FILE *fp;
4215 int result;
4216 errno = 0;
4217 fp = fopen ("conftest.c", "r");
4218 if (!fp) return 0; /* error, assume not needed */
4219 result = fflush (fp) == EOF && errno == 0;
4220 fclose (fp);
4221 return result;
4222}
4223_ACEOF
4224rm -f conftest$ac_exeext
4225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226 (eval $ac_link) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 sed_cv_libcp_needed=no
4236else
4237 echo "$as_me: program exited with status $ac_status" >&5
4238echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241( exit $ac_status )
4242sed_cv_libcp_needed=yes
4243fi
4244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4245fi
4246
4247fi
4248echo "$as_me:$LINENO: result: $sed_cv_libcp_needed" >&5
4249echo "${ECHO_T}$sed_cv_libcp_needed" >&6
4250if test "$sed_cv_libcp_needed" = yes; then
4251 LIBS="-lcP $LIBS"
4252fi
4253
4254
4255
4256
4257
4258
4259ac_header_dirent=no
4260for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4261 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4262echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4263echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4264if eval "test \"\${$as_ac_Header+set}\" = set"; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267 cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
4273#include <sys/types.h>
4274#include <$ac_hdr>
4275
4276int
4277main ()
4278{
4279if ((DIR *) 0)
4280return 0;
4281 ;
4282 return 0;
4283}
4284_ACEOF
4285rm -f conftest.$ac_objext
4286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287 (eval $ac_compile) 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag"
4295 || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 eval "$as_ac_Header=yes"
4308else
4309 echo "$as_me: failed program was:" >&5
4310sed 's/^/| /' conftest.$ac_ext >&5
4311
4312eval "$as_ac_Header=no"
4313fi
4314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315fi
4316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4318if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4321_ACEOF
4322
4323ac_header_dirent=$ac_hdr; break
4324fi
4325
4326done
4327# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4328if test $ac_header_dirent = dirent.h; then
4329 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4330echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4331if test "${ac_cv_search_opendir+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 ac_func_search_save_LIBS=$LIBS
4335ac_cv_search_opendir=no
4336cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342
4343/* Override any gcc2 internal prototype to avoid an error. */
4344#ifdef __cplusplus
4345extern "C"
4346#endif
4347/* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4349char opendir ();
4350int
4351main ()
4352{
4353opendir ();
4354 ;
4355 return 0;
4356}
4357_ACEOF
4358rm -f conftest.$ac_objext conftest$ac_exeext
4359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -z "$ac_c_werror_flag"
4368 || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_search_opendir="none required"
4381else
4382 echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385fi
4386rm -f conftest.err conftest.$ac_objext \
4387 conftest$ac_exeext conftest.$ac_ext
4388if test "$ac_cv_search_opendir" = no; then
4389 for ac_lib in dir; do
4390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4391 cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
4397
4398/* Override any gcc2 internal prototype to avoid an error. */
4399#ifdef __cplusplus
4400extern "C"
4401#endif
4402/* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4404char opendir ();
4405int
4406main ()
4407{
4408opendir ();
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413rm -f conftest.$ac_objext conftest$ac_exeext
4414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -z "$ac_c_werror_flag"
4423 || test ! -s conftest.err'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; } &&
4429 { ac_try='test -s conftest$ac_exeext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_search_opendir="-l$ac_lib"
4436break
4437else
4438 echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441fi
4442rm -f conftest.err conftest.$ac_objext \
4443 conftest$ac_exeext conftest.$ac_ext
4444 done
4445fi
4446LIBS=$ac_func_search_save_LIBS
4447fi
4448echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4449echo "${ECHO_T}$ac_cv_search_opendir" >&6
4450if test "$ac_cv_search_opendir" != no; then
4451 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4452
4453fi
4454
4455else
4456 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4457echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4458if test "${ac_cv_search_opendir+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 ac_func_search_save_LIBS=$LIBS
4462ac_cv_search_opendir=no
4463cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469
4470/* Override any gcc2 internal prototype to avoid an error. */
4471#ifdef __cplusplus
4472extern "C"
4473#endif
4474/* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4476char opendir ();
4477int
4478main ()
4479{
4480opendir ();
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485rm -f conftest.$ac_objext conftest$ac_exeext
4486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -z "$ac_c_werror_flag"
4495 || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest$ac_exeext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 ac_cv_search_opendir="none required"
4508else
4509 echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512fi
4513rm -f conftest.err conftest.$ac_objext \
4514 conftest$ac_exeext conftest.$ac_ext
4515if test "$ac_cv_search_opendir" = no; then
4516 for ac_lib in x; do
4517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4518 cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
4524
4525/* Override any gcc2 internal prototype to avoid an error. */
4526#ifdef __cplusplus
4527extern "C"
4528#endif
4529/* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4531char opendir ();
4532int
4533main ()
4534{
4535opendir ();
4536 ;
4537 return 0;
4538}
4539_ACEOF
4540rm -f conftest.$ac_objext conftest$ac_exeext
4541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>conftest.er1
4543 ac_status=$?
4544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -z "$ac_c_werror_flag"
4550 || test ! -s conftest.err'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; } &&
4556 { ac_try='test -s conftest$ac_exeext'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 (eval $ac_try) 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 ac_cv_search_opendir="-l$ac_lib"
4563break
4564else
4565 echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568fi
4569rm -f conftest.err conftest.$ac_objext \
4570 conftest$ac_exeext conftest.$ac_ext
4571 done
4572fi
4573LIBS=$ac_func_search_save_LIBS
4574fi
4575echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4576echo "${ECHO_T}$ac_cv_search_opendir" >&6
4577if test "$ac_cv_search_opendir" != no; then
4578 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4579
4580fi
4581
4582fi
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595for ac_header in io.h limits.h locale.h stdarg.h alloca.h stddef.h errno.h \
4596 wchar.h wctype.h sys/file.h mcheck.h
4597do
4598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4599echo "$as_me:$LINENO: checking for $ac_header" >&5
4600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4601if eval "test \"\${$as_ac_Header+set}\" = set"; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604 cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h. */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h. */
4610$ac_includes_default
4611
4612#include <$ac_header>
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag"
4624 || test ! -s conftest.err'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 eval "$as_ac_Header=yes"
4637else
4638 echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641eval "$as_ac_Header=no"
4642fi
4643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4644fi
4645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4647if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650_ACEOF
4651
4652fi
4653
4654done
4655
4656echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4657echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4658if test "${ac_cv_c_const+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661 cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h. */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h. */
4667
4668int
4669main ()
4670{
4671/* FIXME: Include the comments suggested by Paul. */
4672#ifndef __cplusplus
4673 /* Ultrix mips cc rejects this. */
4674 typedef int charset[2];
4675 const charset x;
4676 /* SunOS 4.1.1 cc rejects this. */
4677 char const *const *ccp;
4678 char **p;
4679 /* NEC SVR4.0.2 mips cc rejects this. */
4680 struct point {int x, y;};
4681 static struct point const zero = {0,0};
4682 /* AIX XL C 1.02.0.0 rejects this.
4683 It does not let you subtract one const X* pointer from another in
4684 an arm of an if-expression whose if-part is not a constant
4685 expression */
4686 const char *g = "string";
4687 ccp = &g + (g ? g-g : 0);
4688 /* HPUX 7.0 cc rejects these. */
4689 ++ccp;
4690 p = (char**) ccp;
4691 ccp = (char const *const *) p;
4692 { /* SCO 3.2v4 cc rejects this. */
4693 char *t;
4694 char const *s = 0 ? (char *) 0 : (char const *) 0;
4695
4696 *t++ = 0;
4697 }
4698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4699 int x[] = {25, 17};
4700 const int *foo = &x[0];
4701 ++foo;
4702 }
4703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4704 typedef const int *iptr;
4705 iptr p = 0;
4706 ++p;
4707 }
4708 { /* AIX XL C 1.02.0.0 rejects this saying
4709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4710 struct s { int j; const int *ap[3]; };
4711 struct s *b; b->j = 5;
4712 }
4713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4714 const int foo = 10;
4715 }
4716#endif
4717
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext
4723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724 (eval $ac_compile) 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_c_werror_flag"
4732 || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_cv_c_const=yes
4745else
4746 echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749ac_cv_c_const=no
4750fi
4751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4752fi
4753echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4754echo "${ECHO_T}$ac_cv_c_const" >&6
4755if test $ac_cv_c_const = no; then
4756
4757cat >>confdefs.h <<\_ACEOF
4758#define const
4759_ACEOF
4760
4761fi
4762
4763echo "$as_me:$LINENO: checking for size_t" >&5
4764echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4765if test "${ac_cv_type_size_t+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768 cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h. */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h. */
4774$ac_includes_default
4775int
4776main ()
4777{
4778if ((size_t *) 0)
4779 return 0;
4780if (sizeof (size_t))
4781 return 0;
4782 ;
4783 return 0;
4784}
4785_ACEOF
4786rm -f conftest.$ac_objext
4787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_type_size_t=yes
4809else
4810 echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813ac_cv_type_size_t=no
4814fi
4815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816fi
4817echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4818echo "${ECHO_T}$ac_cv_type_size_t" >&6
4819if test $ac_cv_type_size_t = yes; then
4820 :
4821else
4822
4823cat >>confdefs.h <<_ACEOF
4824#define size_t unsigned
4825_ACEOF
4826
4827fi
4828
4829echo "$as_me:$LINENO: checking for ssize_t" >&5
4830echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4831if test "${ac_cv_type_ssize_t+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834 cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840$ac_includes_default
4841int
4842main ()
4843{
4844if ((ssize_t *) 0)
4845 return 0;
4846if (sizeof (ssize_t))
4847 return 0;
4848 ;
4849 return 0;
4850}
4851_ACEOF
4852rm -f conftest.$ac_objext
4853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 ac_cv_type_ssize_t=yes
4875else
4876 echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879ac_cv_type_ssize_t=no
4880fi
4881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882fi
4883echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
4884echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4885if test $ac_cv_type_ssize_t = yes; then
4886 :
4887else
4888
4889cat >>confdefs.h <<_ACEOF
4890#define ssize_t int
4891_ACEOF
4892
4893fi
4894
4895
4896echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4897echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4898if test "${ac_cv_header_stdbool_h+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901 cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907
4908 #include <stdbool.h>
4909 #ifndef bool
4910 "error: bool is not defined"
4911 #endif
4912 #ifndef false
4913 "error: false is not defined"
4914 #endif
4915 #if false
4916 "error: false is not 0"
4917 #endif
4918 #ifndef true
4919 "error: false is not defined"
4920 #endif
4921 #if true != 1
4922 "error: true is not 1"
4923 #endif
4924 #ifndef __bool_true_false_are_defined
4925 "error: __bool_true_false_are_defined is not defined"
4926 #endif
4927
4928 struct s { _Bool s: 1; _Bool t; } s;
4929
4930 char a[true == 1 ? 1 : -1];
4931 char b[false == 0 ? 1 : -1];
4932 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4933 char d[(bool) -0.5 == true ? 1 : -1];
4934 bool e = &s;
4935 char f[(_Bool) -0.0 == false ? 1 : -1];
4936 char g[true];
4937 char h[sizeof (_Bool)];
4938 char i[sizeof s.t];
4939
4940int
4941main ()
4942{
4943 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4944 ;
4945 return 0;
4946}
4947_ACEOF
4948rm -f conftest.$ac_objext
4949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950 (eval $ac_compile) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -z "$ac_c_werror_flag"
4958 || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_header_stdbool_h=yes
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975ac_cv_header_stdbool_h=no
4976fi
4977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978fi
4979echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4980echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4981 echo "$as_me:$LINENO: checking for _Bool" >&5
4982echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4983if test "${ac_cv_type__Bool+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986 cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h. */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h. */
4992$ac_includes_default
4993int
4994main ()
4995{
4996if ((_Bool *) 0)
4997 return 0;
4998if (sizeof (_Bool))
4999 return 0;
5000 ;
5001 return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext
5005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -z "$ac_c_werror_flag"
5014 || test ! -s conftest.err'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; } &&
5020 { ac_try='test -s conftest.$ac_objext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_cv_type__Bool=yes
5027else
5028 echo "$as_me: failed program was:" >&5
5029sed 's/^/| /' conftest.$ac_ext >&5
5030
5031ac_cv_type__Bool=no
5032fi
5033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034fi
5035echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5036echo "${ECHO_T}$ac_cv_type__Bool" >&6
5037if test $ac_cv_type__Bool = yes; then
5038
5039cat >>confdefs.h <<_ACEOF
5040#define HAVE__BOOL 1
5041_ACEOF
5042
5043
5044fi
5045
5046 if test $ac_cv_header_stdbool_h = yes; then
5047
5048cat >>confdefs.h <<\_ACEOF
5049#define HAVE_STDBOOL_H 1
5050_ACEOF
5051
5052 fi
5053if test "$ac_cv_type__Bool" = no; then
5054 HAVE__BOOL=0
5055else
5056 HAVE__BOOL=1
5057fi
5058
5059if test "$ac_cv_header_stdbool_h" = no; then
5060 ac_config_files="$ac_config_files lib/stdbool.h:lib/stdbool_.h"
5061
5062fi
5063
5064# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5065# for constant arguments. Useless!
5066echo "$as_me:$LINENO: checking for working alloca.h" >&5
5067echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5068if test "${ac_cv_working_alloca_h+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071 cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077#include <alloca.h>
5078int
5079main ()
5080{
5081char *p = (char *) alloca (2 * sizeof (int));
5082 ;
5083 return 0;
5084}
5085_ACEOF
5086rm -f conftest.$ac_objext conftest$ac_exeext
5087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_working_alloca_h=yes
5109else
5110 echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113ac_cv_working_alloca_h=no
5114fi
5115rm -f conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5117fi
5118echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5119echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5120if test $ac_cv_working_alloca_h = yes; then
5121
5122cat >>confdefs.h <<\_ACEOF
5123#define HAVE_ALLOCA_H 1
5124_ACEOF
5125
5126fi
5127
5128echo "$as_me:$LINENO: checking for alloca" >&5
5129echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5130if test "${ac_cv_func_alloca_works+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h. */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h. */
5139#ifdef __GNUC__
5140# define alloca __builtin_alloca
5141#else
5142# ifdef _MSC_VER
5143# include <malloc.h>
5144# define alloca _alloca
5145# else
5146# if HAVE_ALLOCA_H
5147# include <alloca.h>
5148# else
5149# ifdef _AIX
5150 #pragma alloca
5151# else
5152# ifndef alloca /* predefined by HP cc +Olibcalls */
5153char *alloca ();
5154# endif
5155# endif
5156# endif
5157# endif
5158#endif
5159
5160int
5161main ()
5162{
5163char *p = (char *) alloca (1);
5164 ;
5165 return 0;
5166}
5167_ACEOF
5168rm -f conftest.$ac_objext conftest$ac_exeext
5169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170 (eval $ac_link) 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest$ac_exeext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_func_alloca_works=yes
5191else
5192 echo "$as_me: failed program was:" >&5
5193sed 's/^/| /' conftest.$ac_ext >&5
5194
5195ac_cv_func_alloca_works=no
5196fi
5197rm -f conftest.err conftest.$ac_objext \
5198 conftest$ac_exeext conftest.$ac_ext
5199fi
5200echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5201echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5202
5203if test $ac_cv_func_alloca_works = yes; then
5204
5205cat >>confdefs.h <<\_ACEOF
5206#define HAVE_ALLOCA 1
5207_ACEOF
5208
5209else
5210 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5211# that cause trouble. Some versions do not even contain alloca or
5212# contain a buggy version. If you still want to use their alloca,
5213# use ar to extract alloca.o from them instead of compiling alloca.c.
5214
5215ALLOCA=alloca.$ac_objext
5216
5217cat >>confdefs.h <<\_ACEOF
5218#define C_ALLOCA 1
5219_ACEOF
5220
5221
5222echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5223echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5224if test "${ac_cv_os_cray+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227 cat >conftest.$ac_ext <<_ACEOF
5228/* confdefs.h. */
5229_ACEOF
5230cat confdefs.h >>conftest.$ac_ext
5231cat >>conftest.$ac_ext <<_ACEOF
5232/* end confdefs.h. */
5233#if defined(CRAY) && ! defined(CRAY2)
5234webecray
5235#else
5236wenotbecray
5237#endif
5238
5239_ACEOF
5240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 $EGREP "webecray" >/dev/null 2>&1; then
5242 ac_cv_os_cray=yes
5243else
5244 ac_cv_os_cray=no
5245fi
5246rm -f conftest*
5247
5248fi
5249echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5250echo "${ECHO_T}$ac_cv_os_cray" >&6
5251if test $ac_cv_os_cray = yes; then
5252 for ac_func in _getb67 GETB67 getb67; do
5253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5254echo "$as_me:$LINENO: checking for $ac_func" >&5
5255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5256if eval "test \"\${$as_ac_var+set}\" = set"; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259 cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h. */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h. */
5265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5267#define $ac_func innocuous_$ac_func
5268
5269/* System header to define __stub macros and hopefully few prototypes,
5270 which can conflict with char $ac_func (); below.
5271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 <limits.h> exists even on freestanding compilers. */
5273
5274#ifdef __STDC__
5275# include <limits.h>
5276#else
5277# include <assert.h>
5278#endif
5279
5280#undef $ac_func
5281
5282/* Override any gcc2 internal prototype to avoid an error. */
5283#ifdef __cplusplus
5284extern "C"
5285{
5286#endif
5287/* We use char because int might match the return type of a gcc2
5288 builtin and then its argument prototype would still apply. */
5289char $ac_func ();
5290/* The GNU C library defines this for functions which it implements
5291 to always fail with ENOSYS. Some functions are actually named
5292 something starting with __ and the normal name is an alias. */
5293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5294choke me
5295#else
5296char (*f) () = $ac_func;
5297#endif
5298#ifdef __cplusplus
5299}
5300#endif
5301
5302int
5303main ()
5304{
5305return f != $ac_func;
5306 ;
5307 return 0;
5308}
5309_ACEOF
5310rm -f conftest.$ac_objext conftest$ac_exeext
5311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest$ac_exeext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 eval "$as_ac_var=yes"
5333else
5334 echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
5337eval "$as_ac_var=no"
5338fi
5339rm -f conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341fi
5342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5344if test `eval echo '${'$as_ac_var'}'` = yes; then
5345
5346cat >>confdefs.h <<_ACEOF
5347#define CRAY_STACKSEG_END $ac_func
5348_ACEOF
5349
5350 break
5351fi
5352
5353 done
5354fi
5355
5356echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5357echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5358if test "${ac_cv_c_stack_direction+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361 if test "$cross_compiling" = yes; then
5362 ac_cv_c_stack_direction=0
5363else
5364 cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370int
5371find_stack_direction ()
5372{
5373 static char *addr = 0;
5374 auto char dummy;
5375 if (addr == 0)
5376 {
5377 addr = &dummy;
5378 return find_stack_direction ();
5379 }
5380 else
5381 return (&dummy > addr) ? 1 : -1;
5382}
5383
5384int
5385main ()
5386{
5387 exit (find_stack_direction () < 0);
5388}
5389_ACEOF
5390rm -f conftest$ac_exeext
5391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5392 (eval $ac_link) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_c_stack_direction=1
5402else
5403 echo "$as_me: program exited with status $ac_status" >&5
5404echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407( exit $ac_status )
5408ac_cv_c_stack_direction=-1
5409fi
5410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5411fi
5412fi
5413echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5414echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5415
5416cat >>confdefs.h <<_ACEOF
5417#define STACK_DIRECTION $ac_cv_c_stack_direction
5418_ACEOF
5419
5420
5421fi
5422
5423
5424for ac_func in vprintf
5425do
5426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5427echo "$as_me:$LINENO: checking for $ac_func" >&5
5428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5429if eval "test \"\${$as_ac_var+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h. */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h. */
5438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5440#define $ac_func innocuous_$ac_func
5441
5442/* System header to define __stub macros and hopefully few prototypes,
5443 which can conflict with char $ac_func (); below.
5444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 <limits.h> exists even on freestanding compilers. */
5446
5447#ifdef __STDC__
5448# include <limits.h>
5449#else
5450# include <assert.h>
5451#endif
5452
5453#undef $ac_func
5454
5455/* Override any gcc2 internal prototype to avoid an error. */
5456#ifdef __cplusplus
5457extern "C"
5458{
5459#endif
5460/* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5462char $ac_func ();
5463/* The GNU C library defines this for functions which it implements
5464 to always fail with ENOSYS. Some functions are actually named
5465 something starting with __ and the normal name is an alias. */
5466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5467choke me
5468#else
5469char (*f) () = $ac_func;
5470#endif
5471#ifdef __cplusplus
5472}
5473#endif
5474
5475int
5476main ()
5477{
5478return f != $ac_func;
5479 ;
5480 return 0;
5481}
5482_ACEOF
5483rm -f conftest.$ac_objext conftest$ac_exeext
5484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest$ac_exeext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 eval "$as_ac_var=yes"
5506else
5507 echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
5509
5510eval "$as_ac_var=no"
5511fi
5512rm -f conftest.err conftest.$ac_objext \
5513 conftest$ac_exeext conftest.$ac_ext
5514fi
5515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5517if test `eval echo '${'$as_ac_var'}'` = yes; then
5518 cat >>confdefs.h <<_ACEOF
5519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5520_ACEOF
5521
5522echo "$as_me:$LINENO: checking for _doprnt" >&5
5523echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5524if test "${ac_cv_func__doprnt+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527 cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h. */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h. */
5533/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5535#define _doprnt innocuous__doprnt
5536
5537/* System header to define __stub macros and hopefully few prototypes,
5538 which can conflict with char _doprnt (); below.
5539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5540 <limits.h> exists even on freestanding compilers. */
5541
5542#ifdef __STDC__
5543# include <limits.h>
5544#else
5545# include <assert.h>
5546#endif
5547
5548#undef _doprnt
5549
5550/* Override any gcc2 internal prototype to avoid an error. */
5551#ifdef __cplusplus
5552extern "C"
5553{
5554#endif
5555/* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5557char _doprnt ();
5558/* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561#if defined (__stub__doprnt) || defined (__stub____doprnt)
5562choke me
5563#else
5564char (*f) () = _doprnt;
5565#endif
5566#ifdef __cplusplus
5567}
5568#endif
5569
5570int
5571main ()
5572{
5573return f != _doprnt;
5574 ;
5575 return 0;
5576}
5577_ACEOF
5578rm -f conftest.$ac_objext conftest$ac_exeext
5579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_c_werror_flag"
5588 || test ! -s conftest.err'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; } &&
5594 { ac_try='test -s conftest$ac_exeext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_cv_func__doprnt=yes
5601else
5602 echo "$as_me: failed program was:" >&5
5603sed 's/^/| /' conftest.$ac_ext >&5
5604
5605ac_cv_func__doprnt=no
5606fi
5607rm -f conftest.err conftest.$ac_objext \
5608 conftest$ac_exeext conftest.$ac_ext
5609fi
5610echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5611echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5612if test $ac_cv_func__doprnt = yes; then
5613
5614cat >>confdefs.h <<\_ACEOF
5615#define HAVE_DOPRNT 1
5616_ACEOF
5617
5618fi
5619
5620fi
5621done
5622
5623
5624 am_getline_needs_run_time_check=no
5625 echo "$as_me:$LINENO: checking for getline" >&5
5626echo $ECHO_N "checking for getline... $ECHO_C" >&6
5627if test "${ac_cv_func_getline+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630 cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h. */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h. */
5636/* Define getline to an innocuous variant, in case <limits.h> declares getline.
5637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5638#define getline innocuous_getline
5639
5640/* System header to define __stub macros and hopefully few prototypes,
5641 which can conflict with char getline (); below.
5642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5643 <limits.h> exists even on freestanding compilers. */
5644
5645#ifdef __STDC__
5646# include <limits.h>
5647#else
5648# include <assert.h>
5649#endif
5650
5651#undef getline
5652
5653/* Override any gcc2 internal prototype to avoid an error. */
5654#ifdef __cplusplus
5655extern "C"
5656{
5657#endif
5658/* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5660char getline ();
5661/* The GNU C library defines this for functions which it implements
5662 to always fail with ENOSYS. Some functions are actually named
5663 something starting with __ and the normal name is an alias. */
5664#if defined (__stub_getline) || defined (__stub___getline)
5665choke me
5666#else
5667char (*f) () = getline;
5668#endif
5669#ifdef __cplusplus
5670}
5671#endif
5672
5673int
5674main ()
5675{
5676return f != getline;
5677 ;
5678 return 0;
5679}
5680_ACEOF
5681rm -f conftest.$ac_objext conftest$ac_exeext
5682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_func_getline=yes
5704else
5705 echo "$as_me: failed program was:" >&5
5706sed 's/^/| /' conftest.$ac_ext >&5
5707
5708ac_cv_func_getline=no
5709fi
5710rm -f conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712fi
5713echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
5714echo "${ECHO_T}$ac_cv_func_getline" >&6
5715if test $ac_cv_func_getline = yes; then
5716 am_getline_needs_run_time_check=yes
5717else
5718 am_cv_func_working_getline=no
5719fi
5720
5721 if test $am_getline_needs_run_time_check = yes; then
5722 echo "$as_me:$LINENO: checking for working getline function" >&5
5723echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
5724if test "${am_cv_func_working_getline+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726else
5727 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
5728 if test "$cross_compiling" = yes; then
5729 am_cv_func_working_getline=no
5730else
5731 cat >conftest.$ac_ext <<_ACEOF
5732/* confdefs.h. */
5733_ACEOF
5734cat confdefs.h >>conftest.$ac_ext
5735cat >>conftest.$ac_ext <<_ACEOF
5736/* end confdefs.h. */
5737
5738# include <stdio.h>
5739# include <sys/types.h>
5740# include <string.h>
5741 int main ()
5742 { /* Based on a test program from Karl Heuer. */
5743 char *line = NULL;
5744 size_t siz = 0;
5745 int len;
5746 FILE *in = fopen ("./conftest.data", "r");
5747 if (!in)
5748 return 1;
5749 len = getline (&line, &siz, in);
5750 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
5751 }
5752
5753_ACEOF
5754rm -f conftest$ac_exeext
5755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 am_cv_func_working_getline=yes
5766else
5767 echo "$as_me: program exited with status $ac_status" >&5
5768echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
5770
5771( exit $ac_status )
5772am_cv_func_working_getline=no
5773fi
5774rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5775fi
5776fi
5777echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
5778echo "${ECHO_T}$am_cv_func_working_getline" >&6
5779 fi
5780
5781 if test $am_cv_func_working_getline = no; then
5782 case $LIBOBJS in
5783 "getline.$ac_objext" | \
5784 *" getline.$ac_objext" | \
5785 "getline.$ac_objext "* | \
5786 *" getline.$ac_objext "* ) ;;
5787 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
5788esac
5789
5790 fi
5791
5792echo "$as_me:$LINENO: checking for obstacks" >&5
5793echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
5794if test "${ac_cv_func_obstack+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
5803#include "obstack.h"
5804int
5805main ()
5806{
5807struct obstack *mem; obstack_free(mem,(char *) 0)
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812rm -f conftest.$ac_objext conftest$ac_exeext
5813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814 (eval $ac_link) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest$ac_exeext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 ac_cv_func_obstack=yes
5835else
5836 echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
5838
5839ac_cv_func_obstack=no
5840fi
5841rm -f conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext
5843fi
5844echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
5845echo "${ECHO_T}$ac_cv_func_obstack" >&6
5846if test $ac_cv_func_obstack = yes; then
5847
5848cat >>confdefs.h <<\_ACEOF
5849#define HAVE_OBSTACK 1
5850_ACEOF
5851
5852else
5853 case $LIBOBJS in
5854 "obstack.$ac_objext" | \
5855 *" obstack.$ac_objext" | \
5856 "obstack.$ac_objext "* | \
5857 *" obstack.$ac_objext "* ) ;;
5858 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
5859esac
5860
5861fi
5862
5863
5864 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5865echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5866if test "${ac_cv_func_mbrtowc+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 cat >conftest.$ac_ext <<_ACEOF
5870/* confdefs.h. */
5871_ACEOF
5872cat confdefs.h >>conftest.$ac_ext
5873cat >>conftest.$ac_ext <<_ACEOF
5874/* end confdefs.h. */
5875#include <wchar.h>
5876int
5877main ()
5878{
5879mbstate_t state; return ! (sizeof state && mbrtowc);
5880 ;
5881 return 0;
5882}
5883_ACEOF
5884rm -f conftest.$ac_objext conftest$ac_exeext
5885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_func_mbrtowc=yes
5907else
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911ac_cv_func_mbrtowc=no
5912fi
5913rm -f conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5915fi
5916echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
5917echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
5918 if test $ac_cv_func_mbrtowc = yes; then
5919
5920cat >>confdefs.h <<\_ACEOF
5921#define HAVE_MBRTOWC 1
5922_ACEOF
5923
5924 fi
5925
5926echo "$as_me:$LINENO: checking for mbstate_t" >&5
5927echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5928if test "${ac_cv_type_mbstate_t+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931 cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h. */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h. */
5937$ac_includes_default
5938# include <wchar.h>
5939int
5940main ()
5941{
5942mbstate_t x; return sizeof x;
5943 ;
5944 return 0;
5945}
5946_ACEOF
5947rm -f conftest.$ac_objext
5948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_type_mbstate_t=yes
5970else
5971 echo "$as_me: failed program was:" >&5
5972sed 's/^/| /' conftest.$ac_ext >&5
5973
5974ac_cv_type_mbstate_t=no
5975fi
5976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977fi
5978echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5979echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5980 if test $ac_cv_type_mbstate_t = yes; then
5981
5982cat >>confdefs.h <<\_ACEOF
5983#define HAVE_MBSTATE_T 1
5984_ACEOF
5985
5986 else
5987
5988cat >>confdefs.h <<\_ACEOF
5989#define mbstate_t int
5990_ACEOF
5991
5992 fi
5993
5994
5995
5996
5997for ac_func in strverscmp
5998do
5999as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6000echo "$as_me:$LINENO: checking for $ac_func" >&5
6001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6002if eval "test \"\${$as_ac_var+set}\" = set"; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h. */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h. */
6011/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6013#define $ac_func innocuous_$ac_func
6014
6015/* System header to define __stub macros and hopefully few prototypes,
6016 which can conflict with char $ac_func (); below.
6017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018 <limits.h> exists even on freestanding compilers. */
6019
6020#ifdef __STDC__
6021# include <limits.h>
6022#else
6023# include <assert.h>
6024#endif
6025
6026#undef $ac_func
6027
6028/* Override any gcc2 internal prototype to avoid an error. */
6029#ifdef __cplusplus
6030extern "C"
6031{
6032#endif
6033/* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6035char $ac_func ();
6036/* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6040choke me
6041#else
6042char (*f) () = $ac_func;
6043#endif
6044#ifdef __cplusplus
6045}
6046#endif
6047
6048int
6049main ()
6050{
6051return f != $ac_func;
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext conftest$ac_exeext
6057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 eval "$as_ac_var=yes"
6079else
6080 echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083eval "$as_ac_var=no"
6084fi
6085rm -f conftest.err conftest.$ac_objext \
6086 conftest$ac_exeext conftest.$ac_ext
6087fi
6088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6090if test `eval echo '${'$as_ac_var'}'` = yes; then
6091 cat >>confdefs.h <<_ACEOF
6092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6093_ACEOF
6094
6095else
6096 case $LIBOBJS in
6097 "$ac_func.$ac_objext" | \
6098 *" $ac_func.$ac_objext" | \
6099 "$ac_func.$ac_objext "* | \
6100 *" $ac_func.$ac_objext "* ) ;;
6101 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6102esac
6103
6104fi
6105done
6106
6107
6108 if test $ac_cv_func_strverscmp = no; then
6109
6110 :
6111
6112 fi
6113
6114
6115
6116
6117
6118
6119for ac_func in memchr memcmp memmove strerror mkstemp
6120do
6121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6122echo "$as_me:$LINENO: checking for $ac_func" >&5
6123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6124if eval "test \"\${$as_ac_var+set}\" = set"; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
6127 cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h. */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h. */
6133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6135#define $ac_func innocuous_$ac_func
6136
6137/* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func (); below.
6139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6140 <limits.h> exists even on freestanding compilers. */
6141
6142#ifdef __STDC__
6143# include <limits.h>
6144#else
6145# include <assert.h>
6146#endif
6147
6148#undef $ac_func
6149
6150/* Override any gcc2 internal prototype to avoid an error. */
6151#ifdef __cplusplus
6152extern "C"
6153{
6154#endif
6155/* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */
6157char $ac_func ();
6158/* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162choke me
6163#else
6164char (*f) () = $ac_func;
6165#endif
6166#ifdef __cplusplus
6167}
6168#endif
6169
6170int
6171main ()
6172{
6173return f != $ac_func;
6174 ;
6175 return 0;
6176}
6177_ACEOF
6178rm -f conftest.$ac_objext conftest$ac_exeext
6179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 eval "$as_ac_var=yes"
6201else
6202 echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205eval "$as_ac_var=no"
6206fi
6207rm -f conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6209fi
6210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6212if test `eval echo '${'$as_ac_var'}'` = yes; then
6213 cat >>confdefs.h <<_ACEOF
6214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6215_ACEOF
6216
6217else
6218 case $LIBOBJS in
6219 "$ac_func.$ac_objext" | \
6220 *" $ac_func.$ac_objext" | \
6221 "$ac_func.$ac_objext "* | \
6222 *" $ac_func.$ac_objext "* ) ;;
6223 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6224esac
6225
6226fi
6227done
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247for ac_func in isatty bcopy bzero isascii memcpy memset strchr strtoul popen \
6248 pathconf isblank fchown fchmod setlocale wcrtomb wcscoll btowc
6249do
6250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6251echo "$as_me:$LINENO: checking for $ac_func" >&5
6252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6253if eval "test \"\${$as_ac_var+set}\" = set"; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256 cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6264#define $ac_func innocuous_$ac_func
6265
6266/* System header to define __stub macros and hopefully few prototypes,
6267 which can conflict with char $ac_func (); below.
6268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6269 <limits.h> exists even on freestanding compilers. */
6270
6271#ifdef __STDC__
6272# include <limits.h>
6273#else
6274# include <assert.h>
6275#endif
6276
6277#undef $ac_func
6278
6279/* Override any gcc2 internal prototype to avoid an error. */
6280#ifdef __cplusplus
6281extern "C"
6282{
6283#endif
6284/* We use char because int might match the return type of a gcc2
6285 builtin and then its argument prototype would still apply. */
6286char $ac_func ();
6287/* The GNU C library defines this for functions which it implements
6288 to always fail with ENOSYS. Some functions are actually named
6289 something starting with __ and the normal name is an alias. */
6290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6291choke me
6292#else
6293char (*f) () = $ac_func;
6294#endif
6295#ifdef __cplusplus
6296}
6297#endif
6298
6299int
6300main ()
6301{
6302return f != $ac_func;
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307rm -f conftest.$ac_objext conftest$ac_exeext
6308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6309 (eval $ac_link) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag"
6317 || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest$ac_exeext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 eval "$as_ac_var=yes"
6330else
6331 echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
6334eval "$as_ac_var=no"
6335fi
6336rm -f conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338fi
6339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6341if test `eval echo '${'$as_ac_var'}'` = yes; then
6342 cat >>confdefs.h <<_ACEOF
6343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6344_ACEOF
6345
6346fi
6347done
6348
6349
6350# Check whether --enable-i18n or --disable-i18n was given.
6351if test "${enable_i18n+set}" = set; then
6352 enableval="$enable_i18n"
6353
6354else
6355 enable_i18n=yes
6356fi;
6357if test "x$enable_i18n" = xno; then
6358 ac_cv_func_wcscoll=false
6359fi
6360
6361
6362# Check whether --with-included-regex or --without-included-regex was given.
6363if test "${with_included_regex+set}" = set; then
6364 withval="$with_included_regex"
6365
6366else
6367 with_included_regex=yes
6368fi;
6369
6370if test "x$with_included_regex" = xno; then
6371
6372for ac_header in regex.h
6373do
6374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6375if eval "test \"\${$as_ac_Header+set}\" = set"; then
6376 echo "$as_me:$LINENO: checking for $ac_header" >&5
6377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6378if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380fi
6381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383else
6384 # Is the header compilable?
6385echo "$as_me:$LINENO: checking $ac_header usability" >&5
6386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6387cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393$ac_includes_default
6394#include <$ac_header>
6395_ACEOF
6396rm -f conftest.$ac_objext
6397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398 (eval $ac_compile) 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } &&
6405 { ac_try='test -z "$ac_c_werror_flag"
6406 || test ! -s conftest.err'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest.$ac_objext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 ac_header_compiler=yes
6419else
6420 echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
6423ac_header_compiler=no
6424fi
6425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6427echo "${ECHO_T}$ac_header_compiler" >&6
6428
6429# Is the header present?
6430echo "$as_me:$LINENO: checking $ac_header presence" >&5
6431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6432cat >conftest.$ac_ext <<_ACEOF
6433/* confdefs.h. */
6434_ACEOF
6435cat confdefs.h >>conftest.$ac_ext
6436cat >>conftest.$ac_ext <<_ACEOF
6437/* end confdefs.h. */
6438#include <$ac_header>
6439_ACEOF
6440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } >/dev/null; then
6448 if test -s conftest.err; then
6449 ac_cpp_err=$ac_c_preproc_warn_flag
6450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6451 else
6452 ac_cpp_err=
6453 fi
6454else
6455 ac_cpp_err=yes
6456fi
6457if test -z "$ac_cpp_err"; then
6458 ac_header_preproc=yes
6459else
6460 echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463 ac_header_preproc=no
6464fi
6465rm -f conftest.err conftest.$ac_ext
6466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6467echo "${ECHO_T}$ac_header_preproc" >&6
6468
6469# So? What about this header?
6470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6471 yes:no: )
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6476 ac_header_preproc=yes
6477 ;;
6478 no:yes:* )
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6482echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6486echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491 (
6492 cat <<\_ASBOX
6493## ------------------------------ ##
6494## Report this to [email protected] ##
6495## ------------------------------ ##
6496_ASBOX
6497 ) |
6498 sed "s/^/$as_me: WARNING: /" >&2
6499 ;;
6500esac
6501echo "$as_me:$LINENO: checking for $ac_header" >&5
6502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6503if eval "test \"\${$as_ac_Header+set}\" = set"; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 eval "$as_ac_Header=\$ac_header_preproc"
6507fi
6508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510
6511fi
6512if test `eval echo '${'$as_ac_Header'}'` = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515_ACEOF
6516
6517fi
6518
6519done
6520
6521
6522echo "$as_me:$LINENO: checking for re_search in -lregex" >&5
6523echo $ECHO_N "checking for re_search in -lregex... $ECHO_C" >&6
6524if test "${ac_cv_lib_regex_re_search+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 ac_check_lib_save_LIBS=$LIBS
6528LIBS="-lregex $LIBS"
6529cat >conftest.$ac_ext <<_ACEOF
6530/* confdefs.h. */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h. */
6535
6536/* Override any gcc2 internal prototype to avoid an error. */
6537#ifdef __cplusplus
6538extern "C"
6539#endif
6540/* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542char re_search ();
6543int
6544main ()
6545{
6546re_search ();
6547 ;
6548 return 0;
6549}
6550_ACEOF
6551rm -f conftest.$ac_objext conftest$ac_exeext
6552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag"
6561 || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 (eval $ac_try) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 ac_cv_lib_regex_re_search=yes
6574else
6575 echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578ac_cv_lib_regex_re_search=no
6579fi
6580rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582LIBS=$ac_check_lib_save_LIBS
6583fi
6584echo "$as_me:$LINENO: result: $ac_cv_lib_regex_re_search" >&5
6585echo "${ECHO_T}$ac_cv_lib_regex_re_search" >&6
6586if test $ac_cv_lib_regex_re_search = yes; then
6587 cat >>confdefs.h <<_ACEOF
6588#define HAVE_LIBREGEX 1
6589_ACEOF
6590
6591 LIBS="-lregex $LIBS"
6592
6593fi
6594
6595 echo "$as_me:$LINENO: checking for re_search" >&5
6596echo $ECHO_N "checking for re_search... $ECHO_C" >&6
6597if test "${ac_cv_func_re_search+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600 cat >conftest.$ac_ext <<_ACEOF
6601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
6606/* Define re_search to an innocuous variant, in case <limits.h> declares re_search.
6607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6608#define re_search innocuous_re_search
6609
6610/* System header to define __stub macros and hopefully few prototypes,
6611 which can conflict with char re_search (); below.
6612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6613 <limits.h> exists even on freestanding compilers. */
6614
6615#ifdef __STDC__
6616# include <limits.h>
6617#else
6618# include <assert.h>
6619#endif
6620
6621#undef re_search
6622
6623/* Override any gcc2 internal prototype to avoid an error. */
6624#ifdef __cplusplus
6625extern "C"
6626{
6627#endif
6628/* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6630char re_search ();
6631/* The GNU C library defines this for functions which it implements
6632 to always fail with ENOSYS. Some functions are actually named
6633 something starting with __ and the normal name is an alias. */
6634#if defined (__stub_re_search) || defined (__stub___re_search)
6635choke me
6636#else
6637char (*f) () = re_search;
6638#endif
6639#ifdef __cplusplus
6640}
6641#endif
6642
6643int
6644main ()
6645{
6646return f != re_search;
6647 ;
6648 return 0;
6649}
6650_ACEOF
6651rm -f conftest.$ac_objext conftest$ac_exeext
6652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_func_re_search=yes
6674else
6675 echo "$as_me: failed program was:" >&5
6676sed 's/^/| /' conftest.$ac_ext >&5
6677
6678ac_cv_func_re_search=no
6679fi
6680rm -f conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6682fi
6683echo "$as_me:$LINENO: result: $ac_cv_func_re_search" >&5
6684echo "${ECHO_T}$ac_cv_func_re_search" >&6
6685
6686 if test $ac_cv_header_regex_h = no || test $ac_cv_func_re_search = no; then
6687 { echo "$as_me:$LINENO: WARNING: GNU regex not found, falling back to the included version" >&5
6688echo "$as_me: WARNING: GNU regex not found, falling back to the included version" >&2;}
6689 with_included_regex=yes
6690 fi
6691fi
6692
6693# Check whether --enable-regex-tests or --disable-regex-tests was given.
6694if test "${enable_regex_tests+set}" = set; then
6695 enableval="$enable_regex_tests"
6696 if test "x$with_included_regex" = xno; then
6697 enable_regex_tests=no
6698fi
6699else
6700 enable_regex_tests=$with_included_regex
6701fi;
6702
6703
6704
6705if test "x$enable_regex_tests" != xno; then
6706 TEST_REGEX_TRUE=
6707 TEST_REGEX_FALSE='#'
6708else
6709 TEST_REGEX_TRUE='#'
6710 TEST_REGEX_FALSE=
6711fi
6712
6713if test "x$with_included_regex" != xno; then
6714 ac_config_links="$ac_config_links lib/regex.h:lib/regex_.h"
6715
6716 case $LIBOBJS in
6717 "regex.$ac_objext" | \
6718 *" regex.$ac_objext" | \
6719 "regex.$ac_objext "* | \
6720 *" regex.$ac_objext "* ) ;;
6721 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
6722esac
6723
6724fi
6725if test "x$enable_regex_tests" = xyes; then
6726
6727cat >>confdefs.h <<_ACEOF
6728#define _REGEX_RE_COMP 1
6729_ACEOF
6730
6731fi
6732
6733# Check whether --enable-html or --disable-html was given.
6734if test "${enable_html+set}" = set; then
6735 enableval="$enable_html"
6736
6737else
6738 enable_html=no
6739fi;
6740
6741
6742
6743if test "x$enable_html" != xno; then
6744 BUILD_HTML_TRUE=
6745 BUILD_HTML_FALSE='#'
6746else
6747 BUILD_HTML_TRUE='#'
6748 BUILD_HTML_FALSE=
6749fi
6750
6751
6752: ${TEXI2HTML=texi2html -monolithic}
6753
6754
6755echo "$as_me:$LINENO: checking how to build HTML documentation" >&5
6756echo $ECHO_N "checking how to build HTML documentation... $ECHO_C" >&6
6757if eval $am_missing_run makeinfo --help 2>&1 | grep .-html > /dev/null; then
6758 echo "$as_me:$LINENO: result: with makeinfo" >&5
6759echo "${ECHO_T}with makeinfo" >&6
6760 enable_html=makeinfo
6761else
6762 if $TEXI2HTML --help 2>&1 | grep monolithic > /dev/null; then
6763 echo "$as_me:$LINENO: result: with texi2html" >&5
6764echo "${ECHO_T}with texi2html" >&6
6765 enable_html=texi2html
6766 else
6767 echo "$as_me:$LINENO: result: not built" >&5
6768echo "${ECHO_T}not built" >&6
6769 if test "x$enable_html" != xno; then
6770 { { echo "$as_me:$LINENO: error: cannot build HTML documentation" >&5
6771echo "$as_me: error: cannot build HTML documentation" >&2;}
6772 { (exit install makeinfo 4.0 or texi2html); exit install makeinfo 4.0 or texi2html; }; }
6773 fi
6774 enable_html=no
6775 fi
6776fi
6777
6778
6779
6780if test "x$enable_html" = xmakeinfo; then
6781 MAKEINFO_HTML_TRUE=
6782 MAKEINFO_HTML_FALSE='#'
6783else
6784 MAKEINFO_HTML_TRUE='#'
6785 MAKEINFO_HTML_FALSE=
6786fi
6787
6788
6789
6790if test "x$enable_html" = xtexi2html; then
6791 TEXI2HTML_HTML_TRUE=
6792 TEXI2HTML_HTML_FALSE='#'
6793else
6794 TEXI2HTML_HTML_TRUE='#'
6795 TEXI2HTML_HTML_FALSE=
6796fi
6797
6798
6799
6800
6801
6802MKINSTALLDIRS="$mkdir_p"
6803
6804
6805
6806 # Extract the first word of "msgfmt", so it can be a program name with args.
6807set dummy msgfmt; ac_word=$2
6808echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6810if test "${ac_cv_path_MSGFMT+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 case "$MSGFMT" in
6814 /*)
6815 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6819 for ac_dir in $PATH; do
6820 test -z "$ac_dir" && ac_dir=.
6821 if test -f $ac_dir/$ac_word; then
6822 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6823 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6824 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6825 break
6826 fi
6827 fi
6828 done
6829 IFS="$ac_save_ifs"
6830 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6831 ;;
6832esac
6833fi
6834MSGFMT="$ac_cv_path_MSGFMT"
6835if test "$MSGFMT" != ":"; then
6836 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6837echo "${ECHO_T}$MSGFMT" >&6
6838else
6839 echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6
6841fi
6842
6843 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6844set dummy gmsgfmt; ac_word=$2
6845echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6847if test "${ac_cv_path_GMSGFMT+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 case $GMSGFMT in
6851 [\\/]* | ?:[\\/]*)
6852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6853 ;;
6854 *)
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866done
6867done
6868
6869 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6870 ;;
6871esac
6872fi
6873GMSGFMT=$ac_cv_path_GMSGFMT
6874
6875if test -n "$GMSGFMT"; then
6876 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6877echo "${ECHO_T}$GMSGFMT" >&6
6878else
6879 echo "$as_me:$LINENO: result: no" >&5
6880echo "${ECHO_T}no" >&6
6881fi
6882
6883
6884 # Extract the first word of "xgettext", so it can be a program name with args.
6885set dummy xgettext; ac_word=$2
6886echo "$as_me:$LINENO: checking for $ac_word" >&5
6887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6888if test "${ac_cv_path_XGETTEXT+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890else
6891 case "$XGETTEXT" in
6892 /*)
6893 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6894 ;;
6895 *)
6896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6897 for ac_dir in $PATH; do
6898 test -z "$ac_dir" && ac_dir=.
6899 if test -f $ac_dir/$ac_word; then
6900 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
6901 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6902 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6903 break
6904 fi
6905 fi
6906 done
6907 IFS="$ac_save_ifs"
6908 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6909 ;;
6910esac
6911fi
6912XGETTEXT="$ac_cv_path_XGETTEXT"
6913if test "$XGETTEXT" != ":"; then
6914 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6915echo "${ECHO_T}$XGETTEXT" >&6
6916else
6917 echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6
6919fi
6920
6921 rm -f messages.po
6922
6923 # Extract the first word of "msgmerge", so it can be a program name with args.
6924set dummy msgmerge; ac_word=$2
6925echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6927if test "${ac_cv_path_MSGMERGE+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 case "$MSGMERGE" in
6931 /*)
6932 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6936 for ac_dir in $PATH; do
6937 test -z "$ac_dir" && ac_dir=.
6938 if test -f $ac_dir/$ac_word; then
6939 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6940 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
6941 break
6942 fi
6943 fi
6944 done
6945 IFS="$ac_save_ifs"
6946 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6947 ;;
6948esac
6949fi
6950MSGMERGE="$ac_cv_path_MSGMERGE"
6951if test "$MSGMERGE" != ":"; then
6952 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6953echo "${ECHO_T}$MSGMERGE" >&6
6954else
6955 echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6
6957fi
6958
6959
6960 if test "$GMSGFMT" != ":"; then
6961 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6962 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6963 : ;
6964 else
6965 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6966 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6967echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6968 GMSGFMT=":"
6969 fi
6970 fi
6971
6972 if test "$XGETTEXT" != ":"; then
6973 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
6974 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6975 : ;
6976 else
6977 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6978echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6979 XGETTEXT=":"
6980 fi
6981 rm -f messages.po
6982 fi
6983
6984 ac_config_commands="$ac_config_commands default-1"
6985
6986
6987# Make sure we can run config.sub.
6988$ac_config_sub sun4 >/dev/null 2>&1 ||
6989 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6990echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6991 { (exit 1); exit 1; }; }
6992
6993echo "$as_me:$LINENO: checking build system type" >&5
6994echo $ECHO_N "checking build system type... $ECHO_C" >&6
6995if test "${ac_cv_build+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998 ac_cv_build_alias=$build_alias
6999test -z "$ac_cv_build_alias" &&
7000 ac_cv_build_alias=`$ac_config_guess`
7001test -z "$ac_cv_build_alias" &&
7002 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7003echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7004 { (exit 1); exit 1; }; }
7005ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7006 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7007echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7008 { (exit 1); exit 1; }; }
7009
7010fi
7011echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7012echo "${ECHO_T}$ac_cv_build" >&6
7013build=$ac_cv_build
7014build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7015build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7016build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7017
7018
7019echo "$as_me:$LINENO: checking host system type" >&5
7020echo $ECHO_N "checking host system type... $ECHO_C" >&6
7021if test "${ac_cv_host+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024 ac_cv_host_alias=$host_alias
7025test -z "$ac_cv_host_alias" &&
7026 ac_cv_host_alias=$ac_cv_build_alias
7027ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7028 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7029echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7030 { (exit 1); exit 1; }; }
7031
7032fi
7033echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7034echo "${ECHO_T}$ac_cv_host" >&6
7035host=$ac_cv_host
7036host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7037host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7038host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7039
7040
7041echo "$as_me:$LINENO: checking for inline" >&5
7042echo $ECHO_N "checking for inline... $ECHO_C" >&6
7043if test "${ac_cv_c_inline+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 ac_cv_c_inline=no
7047for ac_kw in inline __inline__ __inline; do
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054#ifndef __cplusplus
7055typedef int foo_t;
7056static $ac_kw foo_t static_foo () {return 0; }
7057$ac_kw foo_t foo () {return 0; }
7058#endif
7059
7060_ACEOF
7061rm -f conftest.$ac_objext
7062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>conftest.er1
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } &&
7070 { ac_try='test -z "$ac_c_werror_flag"
7071 || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try='test -s conftest.$ac_objext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_c_inline=$ac_kw; break
7084else
7085 echo "$as_me: failed program was:" >&5
7086sed 's/^/| /' conftest.$ac_ext >&5
7087
7088fi
7089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7090done
7091
7092fi
7093echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7094echo "${ECHO_T}$ac_cv_c_inline" >&6
7095
7096
7097case $ac_cv_c_inline in
7098 inline | yes) ;;
7099 *)
7100 case $ac_cv_c_inline in
7101 no) ac_val=;;
7102 *) ac_val=$ac_cv_c_inline;;
7103 esac
7104 cat >>confdefs.h <<_ACEOF
7105#ifndef __cplusplus
7106#define inline $ac_val
7107#endif
7108_ACEOF
7109 ;;
7110esac
7111
7112echo "$as_me:$LINENO: checking for off_t" >&5
7113echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7114if test "${ac_cv_type_off_t+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117 cat >conftest.$ac_ext <<_ACEOF
7118/* confdefs.h. */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h. */
7123$ac_includes_default
7124int
7125main ()
7126{
7127if ((off_t *) 0)
7128 return 0;
7129if (sizeof (off_t))
7130 return 0;
7131 ;
7132 return 0;
7133}
7134_ACEOF
7135rm -f conftest.$ac_objext
7136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7137 (eval $ac_compile) 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest.$ac_objext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_type_off_t=yes
7158else
7159 echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162ac_cv_type_off_t=no
7163fi
7164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7165fi
7166echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7167echo "${ECHO_T}$ac_cv_type_off_t" >&6
7168if test $ac_cv_type_off_t = yes; then
7169 :
7170else
7171
7172cat >>confdefs.h <<_ACEOF
7173#define off_t long
7174_ACEOF
7175
7176fi
7177
7178
7179
7180for ac_header in stdlib.h unistd.h
7181do
7182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7183if eval "test \"\${$as_ac_Header+set}\" = set"; then
7184 echo "$as_me:$LINENO: checking for $ac_header" >&5
7185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7186if eval "test \"\${$as_ac_Header+set}\" = set"; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188fi
7189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7191else
7192 # Is the header compilable?
7193echo "$as_me:$LINENO: checking $ac_header usability" >&5
7194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7195cat >conftest.$ac_ext <<_ACEOF
7196/* confdefs.h. */
7197_ACEOF
7198cat confdefs.h >>conftest.$ac_ext
7199cat >>conftest.$ac_ext <<_ACEOF
7200/* end confdefs.h. */
7201$ac_includes_default
7202#include <$ac_header>
7203_ACEOF
7204rm -f conftest.$ac_objext
7205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_header_compiler=yes
7227else
7228 echo "$as_me: failed program was:" >&5
7229sed 's/^/| /' conftest.$ac_ext >&5
7230
7231ac_header_compiler=no
7232fi
7233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7235echo "${ECHO_T}$ac_header_compiler" >&6
7236
7237# Is the header present?
7238echo "$as_me:$LINENO: checking $ac_header presence" >&5
7239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7240cat >conftest.$ac_ext <<_ACEOF
7241/* confdefs.h. */
7242_ACEOF
7243cat confdefs.h >>conftest.$ac_ext
7244cat >>conftest.$ac_ext <<_ACEOF
7245/* end confdefs.h. */
7246#include <$ac_header>
7247_ACEOF
7248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } >/dev/null; then
7256 if test -s conftest.err; then
7257 ac_cpp_err=$ac_c_preproc_warn_flag
7258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7259 else
7260 ac_cpp_err=
7261 fi
7262else
7263 ac_cpp_err=yes
7264fi
7265if test -z "$ac_cpp_err"; then
7266 ac_header_preproc=yes
7267else
7268 echo "$as_me: failed program was:" >&5
7269sed 's/^/| /' conftest.$ac_ext >&5
7270
7271 ac_header_preproc=no
7272fi
7273rm -f conftest.err conftest.$ac_ext
7274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7275echo "${ECHO_T}$ac_header_preproc" >&6
7276
7277# So? What about this header?
7278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7279 yes:no: )
7280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7284 ac_header_preproc=yes
7285 ;;
7286 no:yes:* )
7287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7299 (
7300 cat <<\_ASBOX
7301## ------------------------------ ##
7302## Report this to [email protected] ##
7303## ------------------------------ ##
7304_ASBOX
7305 ) |
7306 sed "s/^/$as_me: WARNING: /" >&2
7307 ;;
7308esac
7309echo "$as_me:$LINENO: checking for $ac_header" >&5
7310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7311if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314 eval "$as_ac_Header=\$ac_header_preproc"
7315fi
7316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7318
7319fi
7320if test `eval echo '${'$as_ac_Header'}'` = yes; then
7321 cat >>confdefs.h <<_ACEOF
7322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7323_ACEOF
7324
7325fi
7326
7327done
7328
7329
7330for ac_func in getpagesize
7331do
7332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7333echo "$as_me:$LINENO: checking for $ac_func" >&5
7334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7335if eval "test \"\${$as_ac_var+set}\" = set"; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338 cat >conftest.$ac_ext <<_ACEOF
7339/* confdefs.h. */
7340_ACEOF
7341cat confdefs.h >>conftest.$ac_ext
7342cat >>conftest.$ac_ext <<_ACEOF
7343/* end confdefs.h. */
7344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7346#define $ac_func innocuous_$ac_func
7347
7348/* System header to define __stub macros and hopefully few prototypes,
7349 which can conflict with char $ac_func (); below.
7350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351 <limits.h> exists even on freestanding compilers. */
7352
7353#ifdef __STDC__
7354# include <limits.h>
7355#else
7356# include <assert.h>
7357#endif
7358
7359#undef $ac_func
7360
7361/* Override any gcc2 internal prototype to avoid an error. */
7362#ifdef __cplusplus
7363extern "C"
7364{
7365#endif
7366/* We use char because int might match the return type of a gcc2
7367 builtin and then its argument prototype would still apply. */
7368char $ac_func ();
7369/* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7373choke me
7374#else
7375char (*f) () = $ac_func;
7376#endif
7377#ifdef __cplusplus
7378}
7379#endif
7380
7381int
7382main ()
7383{
7384return f != $ac_func;
7385 ;
7386 return 0;
7387}
7388_ACEOF
7389rm -f conftest.$ac_objext conftest$ac_exeext
7390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest$ac_exeext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 eval "$as_ac_var=yes"
7412else
7413 echo "$as_me: failed program was:" >&5
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
7416eval "$as_ac_var=no"
7417fi
7418rm -f conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7420fi
7421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7423if test `eval echo '${'$as_ac_var'}'` = yes; then
7424 cat >>confdefs.h <<_ACEOF
7425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7426_ACEOF
7427
7428fi
7429done
7430
7431echo "$as_me:$LINENO: checking for working mmap" >&5
7432echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7433if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 if test "$cross_compiling" = yes; then
7437 ac_cv_func_mmap_fixed_mapped=no
7438else
7439 cat >conftest.$ac_ext <<_ACEOF
7440/* confdefs.h. */
7441_ACEOF
7442cat confdefs.h >>conftest.$ac_ext
7443cat >>conftest.$ac_ext <<_ACEOF
7444/* end confdefs.h. */
7445$ac_includes_default
7446/* malloc might have been renamed as rpl_malloc. */
7447#undef malloc
7448
7449/* Thanks to Mike Haertel and Jim Avera for this test.
7450 Here is a matrix of mmap possibilities:
7451 mmap private not fixed
7452 mmap private fixed at somewhere currently unmapped
7453 mmap private fixed at somewhere already mapped
7454 mmap shared not fixed
7455 mmap shared fixed at somewhere currently unmapped
7456 mmap shared fixed at somewhere already mapped
7457 For private mappings, we should verify that changes cannot be read()
7458 back from the file, nor mmap's back from the file at a different
7459 address. (There have been systems where private was not correctly
7460 implemented like the infamous i386 svr4.0, and systems where the
7461 VM page cache was not coherent with the file system buffer cache
7462 like early versions of FreeBSD and possibly contemporary NetBSD.)
7463 For shared mappings, we should conversely verify that changes get
7464 propagated back to all the places they're supposed to be.
7465
7466 Grep wants private fixed already mapped.
7467 The main things grep needs to know about mmap are:
7468 * does it exist and is it safe to write into the mmap'd area
7469 * how to use it (BSD variants) */
7470
7471#include <fcntl.h>
7472#include <sys/mman.h>
7473
7474#if !STDC_HEADERS && !HAVE_STDLIB_H
7475char *malloc ();
7476#endif
7477
7478/* This mess was copied from the GNU getpagesize.h. */
7479#if !HAVE_GETPAGESIZE
7480/* Assume that all systems that can run configure have sys/param.h. */
7481# if !HAVE_SYS_PARAM_H
7482# define HAVE_SYS_PARAM_H 1
7483# endif
7484
7485# ifdef _SC_PAGESIZE
7486# define getpagesize() sysconf(_SC_PAGESIZE)
7487# else /* no _SC_PAGESIZE */
7488# if HAVE_SYS_PARAM_H
7489# include <sys/param.h>
7490# ifdef EXEC_PAGESIZE
7491# define getpagesize() EXEC_PAGESIZE
7492# else /* no EXEC_PAGESIZE */
7493# ifdef NBPG
7494# define getpagesize() NBPG * CLSIZE
7495# ifndef CLSIZE
7496# define CLSIZE 1
7497# endif /* no CLSIZE */
7498# else /* no NBPG */
7499# ifdef NBPC
7500# define getpagesize() NBPC
7501# else /* no NBPC */
7502# ifdef PAGESIZE
7503# define getpagesize() PAGESIZE
7504# endif /* PAGESIZE */
7505# endif /* no NBPC */
7506# endif /* no NBPG */
7507# endif /* no EXEC_PAGESIZE */
7508# else /* no HAVE_SYS_PARAM_H */
7509# define getpagesize() 8192 /* punt totally */
7510# endif /* no HAVE_SYS_PARAM_H */
7511# endif /* no _SC_PAGESIZE */
7512
7513#endif /* no HAVE_GETPAGESIZE */
7514
7515int
7516main ()
7517{
7518 char *data, *data2, *data3;
7519 int i, pagesize;
7520 int fd;
7521
7522 pagesize = getpagesize ();
7523
7524 /* First, make a file with some known garbage in it. */
7525 data = (char *) malloc (pagesize);
7526 if (!data)
7527 exit (1);
7528 for (i = 0; i < pagesize; ++i)
7529 *(data + i) = rand ();
7530 umask (0);
7531 fd = creat ("conftest.mmap", 0600);
7532 if (fd < 0)
7533 exit (1);
7534 if (write (fd, data, pagesize) != pagesize)
7535 exit (1);
7536 close (fd);
7537
7538 /* Next, try to mmap the file at a fixed address which already has
7539 something else allocated at it. If we can, also make sure that
7540 we see the same garbage. */
7541 fd = open ("conftest.mmap", O_RDWR);
7542 if (fd < 0)
7543 exit (1);
7544 data2 = (char *) malloc (2 * pagesize);
7545 if (!data2)
7546 exit (1);
7547 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7548 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7549 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7550 exit (1);
7551 for (i = 0; i < pagesize; ++i)
7552 if (*(data + i) != *(data2 + i))
7553 exit (1);
7554
7555 /* Finally, make sure that changes to the mapped area do not
7556 percolate back to the file as seen by read(). (This is a bug on
7557 some variants of i386 svr4.0.) */
7558 for (i = 0; i < pagesize; ++i)
7559 *(data2 + i) = *(data2 + i) + 1;
7560 data3 = (char *) malloc (pagesize);
7561 if (!data3)
7562 exit (1);
7563 if (read (fd, data3, pagesize) != pagesize)
7564 exit (1);
7565 for (i = 0; i < pagesize; ++i)
7566 if (*(data + i) != *(data3 + i))
7567 exit (1);
7568 close (fd);
7569 exit (0);
7570}
7571_ACEOF
7572rm -f conftest$ac_exeext
7573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_func_mmap_fixed_mapped=yes
7584else
7585 echo "$as_me: program exited with status $ac_status" >&5
7586echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589( exit $ac_status )
7590ac_cv_func_mmap_fixed_mapped=no
7591fi
7592rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7593fi
7594fi
7595echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7596echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7597if test $ac_cv_func_mmap_fixed_mapped = yes; then
7598
7599cat >>confdefs.h <<\_ACEOF
7600#define HAVE_MMAP 1
7601_ACEOF
7602
7603fi
7604rm -f conftest.mmap
7605
7606
7607 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7608echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7609if test "${ac_cv_gnu_library_2_1+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612 cat >conftest.$ac_ext <<_ACEOF
7613/* confdefs.h. */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h. */
7618
7619#include <features.h>
7620#ifdef __GNU_LIBRARY__
7621 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7622 Lucky GNU user
7623 #endif
7624#endif
7625
7626_ACEOF
7627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7629 ac_cv_gnu_library_2_1=yes
7630else
7631 ac_cv_gnu_library_2_1=no
7632fi
7633rm -f conftest*
7634
7635
7636
7637fi
7638echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7639echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7640
7641 GLIBC21="$ac_cv_gnu_library_2_1"
7642
7643
7644
7645 if test "X$prefix" = "XNONE"; then
7646 acl_final_prefix="$ac_default_prefix"
7647 else
7648 acl_final_prefix="$prefix"
7649 fi
7650 if test "X$exec_prefix" = "XNONE"; then
7651 acl_final_exec_prefix='${prefix}'
7652 else
7653 acl_final_exec_prefix="$exec_prefix"
7654 fi
7655 acl_save_prefix="$prefix"
7656 prefix="$acl_final_prefix"
7657 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7658 prefix="$acl_save_prefix"
7659
7660
7661# Check whether --with-gnu-ld or --without-gnu-ld was given.
7662if test "${with_gnu_ld+set}" = set; then
7663 withval="$with_gnu_ld"
7664 test "$withval" = no || with_gnu_ld=yes
7665else
7666 with_gnu_ld=no
7667fi;
7668ac_prog=ld
7669if test "$GCC" = yes; then
7670 # Check if gcc -print-prog-name=ld gives a path.
7671 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7672echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7673 case $host in
7674 *-*-mingw*)
7675 # gcc leaves a trailing carriage return which upsets mingw
7676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7677 *)
7678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7679 esac
7680 case $ac_prog in
7681 # Accept absolute paths.
7682 [\\/]* | [A-Za-z]:[\\/]*)
7683 re_direlt='/[^/][^/]*/\.\./'
7684 # Canonicalize the path of ld
7685 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7686 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7687 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7688 done
7689 test -z "$LD" && LD="$ac_prog"
7690 ;;
7691 "")
7692 # If it fails, then pretend we aren't using GCC.
7693 ac_prog=ld
7694 ;;
7695 *)
7696 # If it is relative, then search for the first ld in PATH.
7697 with_gnu_ld=unknown
7698 ;;
7699 esac
7700elif test "$with_gnu_ld" = yes; then
7701 echo "$as_me:$LINENO: checking for GNU ld" >&5
7702echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7703else
7704 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7705echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7706fi
7707if test "${acl_cv_path_LD+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710 if test -z "$LD"; then
7711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7712 for ac_dir in $PATH; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7715 acl_cv_path_LD="$ac_dir/$ac_prog"
7716 # Check to see if the program is GNU ld. I'd rather use --version,
7717 # but apparently some GNU ld's only accept -v.
7718 # Break only if it was the GNU/non-GNU ld that we prefer.
7719 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7720 test "$with_gnu_ld" != no && break
7721 else
7722 test "$with_gnu_ld" != yes && break
7723 fi
7724 fi
7725 done
7726 IFS="$ac_save_ifs"
7727else
7728 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7729fi
7730fi
7731
7732LD="$acl_cv_path_LD"
7733if test -n "$LD"; then
7734 echo "$as_me:$LINENO: result: $LD" >&5
7735echo "${ECHO_T}$LD" >&6
7736else
7737 echo "$as_me:$LINENO: result: no" >&5
7738echo "${ECHO_T}no" >&6
7739fi
7740test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7741echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7742 { (exit 1); exit 1; }; }
7743echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7744echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7745if test "${acl_cv_prog_gnu_ld+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7749if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7750 acl_cv_prog_gnu_ld=yes
7751else
7752 acl_cv_prog_gnu_ld=no
7753fi
7754fi
7755echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7756echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7757with_gnu_ld=$acl_cv_prog_gnu_ld
7758
7759
7760
7761 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7762echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7763if test "${acl_cv_rpath+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7765else
7766
7767 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7768 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7769 . ./conftest.sh
7770 rm -f ./conftest.sh
7771 acl_cv_rpath=done
7772
7773fi
7774echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7775echo "${ECHO_T}$acl_cv_rpath" >&6
7776 wl="$acl_cv_wl"
7777 libext="$acl_cv_libext"
7778 shlibext="$acl_cv_shlibext"
7779 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7780 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7781 hardcode_direct="$acl_cv_hardcode_direct"
7782 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7783 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
7784 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
7785
7786
7787
7788
7789
7790
7791
7792
7793 use_additional=yes
7794
7795 acl_save_prefix="$prefix"
7796 prefix="$acl_final_prefix"
7797 acl_save_exec_prefix="$exec_prefix"
7798 exec_prefix="$acl_final_exec_prefix"
7799
7800 eval additional_includedir=\"$includedir\"
7801 eval additional_libdir=\"$libdir\"
7802
7803 exec_prefix="$acl_save_exec_prefix"
7804 prefix="$acl_save_prefix"
7805
7806
7807# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7808if test "${with_libiconv_prefix+set}" = set; then
7809 withval="$with_libiconv_prefix"
7810
7811 if test "X$withval" = "Xno"; then
7812 use_additional=no
7813 else
7814 if test "X$withval" = "X"; then
7815
7816 acl_save_prefix="$prefix"
7817 prefix="$acl_final_prefix"
7818 acl_save_exec_prefix="$exec_prefix"
7819 exec_prefix="$acl_final_exec_prefix"
7820
7821 eval additional_includedir=\"$includedir\"
7822 eval additional_libdir=\"$libdir\"
7823
7824 exec_prefix="$acl_save_exec_prefix"
7825 prefix="$acl_save_prefix"
7826
7827 else
7828 additional_includedir="$withval/include"
7829 additional_libdir="$withval/lib"
7830 fi
7831 fi
7832
7833fi;
7834 LIBICONV=
7835 LTLIBICONV=
7836 INCICONV=
7837 rpathdirs=
7838 ltrpathdirs=
7839 names_already_handled=
7840 names_next_round='iconv '
7841 while test -n "$names_next_round"; do
7842 names_this_round="$names_next_round"
7843 names_next_round=
7844 for name in $names_this_round; do
7845 already_handled=
7846 for n in $names_already_handled; do
7847 if test "$n" = "$name"; then
7848 already_handled=yes
7849 break
7850 fi
7851 done
7852 if test -z "$already_handled"; then
7853 names_already_handled="$names_already_handled $name"
7854 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7855 eval value=\"\$HAVE_LIB$uppername\"
7856 if test -n "$value"; then
7857 if test "$value" = yes; then
7858 eval value=\"\$LIB$uppername\"
7859 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7860 eval value=\"\$LTLIB$uppername\"
7861 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7862 else
7863 :
7864 fi
7865 else
7866 found_dir=
7867 found_la=
7868 found_so=
7869 found_a=
7870 if test $use_additional = yes; then
7871 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7872 found_dir="$additional_libdir"
7873 found_so="$additional_libdir/lib$name.$shlibext"
7874 if test -f "$additional_libdir/lib$name.la"; then
7875 found_la="$additional_libdir/lib$name.la"
7876 fi
7877 else
7878 if test -f "$additional_libdir/lib$name.$libext"; then
7879 found_dir="$additional_libdir"
7880 found_a="$additional_libdir/lib$name.$libext"
7881 if test -f "$additional_libdir/lib$name.la"; then
7882 found_la="$additional_libdir/lib$name.la"
7883 fi
7884 fi
7885 fi
7886 fi
7887 if test "X$found_dir" = "X"; then
7888 for x in $LDFLAGS $LTLIBICONV; do
7889
7890 acl_save_prefix="$prefix"
7891 prefix="$acl_final_prefix"
7892 acl_save_exec_prefix="$exec_prefix"
7893 exec_prefix="$acl_final_exec_prefix"
7894 eval x=\"$x\"
7895 exec_prefix="$acl_save_exec_prefix"
7896 prefix="$acl_save_prefix"
7897
7898 case "$x" in
7899 -L*)
7900 dir=`echo "X$x" | sed -e 's/^X-L//'`
7901 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7902 found_dir="$dir"
7903 found_so="$dir/lib$name.$shlibext"
7904 if test -f "$dir/lib$name.la"; then
7905 found_la="$dir/lib$name.la"
7906 fi
7907 else
7908 if test -f "$dir/lib$name.$libext"; then
7909 found_dir="$dir"
7910 found_a="$dir/lib$name.$libext"
7911 if test -f "$dir/lib$name.la"; then
7912 found_la="$dir/lib$name.la"
7913 fi
7914 fi
7915 fi
7916 ;;
7917 esac
7918 if test "X$found_dir" != "X"; then
7919 break
7920 fi
7921 done
7922 fi
7923 if test "X$found_dir" != "X"; then
7924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7925 if test "X$found_so" != "X"; then
7926 if test "X$found_dir" = "X/usr/lib"; then
7927 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7928 else
7929 haveit=
7930 for x in $ltrpathdirs; do
7931 if test "X$x" = "X$found_dir"; then
7932 haveit=yes
7933 break
7934 fi
7935 done
7936 if test -z "$haveit"; then
7937 ltrpathdirs="$ltrpathdirs $found_dir"
7938 fi
7939 if test "$hardcode_direct" = yes; then
7940 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7941 else
7942 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7943 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7944 haveit=
7945 for x in $rpathdirs; do
7946 if test "X$x" = "X$found_dir"; then
7947 haveit=yes
7948 break
7949 fi
7950 done
7951 if test -z "$haveit"; then
7952 rpathdirs="$rpathdirs $found_dir"
7953 fi
7954 else
7955 haveit=
7956 for x in $LDFLAGS $LIBICONV; do
7957
7958 acl_save_prefix="$prefix"
7959 prefix="$acl_final_prefix"
7960 acl_save_exec_prefix="$exec_prefix"
7961 exec_prefix="$acl_final_exec_prefix"
7962 eval x=\"$x\"
7963 exec_prefix="$acl_save_exec_prefix"
7964 prefix="$acl_save_prefix"
7965
7966 if test "X$x" = "X-L$found_dir"; then
7967 haveit=yes
7968 break
7969 fi
7970 done
7971 if test -z "$haveit"; then
7972 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7973 fi
7974 if test "$hardcode_minus_L" != no; then
7975 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7976 else
7977 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7978 fi
7979 fi
7980 fi
7981 fi
7982 else
7983 if test "X$found_a" != "X"; then
7984 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7985 else
7986 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7987 fi
7988 fi
7989 additional_includedir=
7990 case "$found_dir" in
7991 */lib | */lib/)
7992 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7993 additional_includedir="$basedir/include"
7994 ;;
7995 esac
7996 if test "X$additional_includedir" != "X"; then
7997 if test "X$additional_includedir" != "X/usr/include"; then
7998 haveit=
7999 if test "X$additional_includedir" = "X/usr/local/include"; then
8000 if test -n "$GCC"; then
8001 case $host_os in
8002 linux*) haveit=yes;;
8003 esac
8004 fi
8005 fi
8006 if test -z "$haveit"; then
8007 for x in $CPPFLAGS $INCICONV; do
8008
8009 acl_save_prefix="$prefix"
8010 prefix="$acl_final_prefix"
8011 acl_save_exec_prefix="$exec_prefix"
8012 exec_prefix="$acl_final_exec_prefix"
8013 eval x=\"$x\"
8014 exec_prefix="$acl_save_exec_prefix"
8015 prefix="$acl_save_prefix"
8016
8017 if test "X$x" = "X-I$additional_includedir"; then
8018 haveit=yes
8019 break
8020 fi
8021 done
8022 if test -z "$haveit"; then
8023 if test -d "$additional_includedir"; then
8024 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8025 fi
8026 fi
8027 fi
8028 fi
8029 fi
8030 if test -n "$found_la"; then
8031 save_libdir="$libdir"
8032 case "$found_la" in
8033 */* | *\\*) . "$found_la" ;;
8034 *) . "./$found_la" ;;
8035 esac
8036 libdir="$save_libdir"
8037 for dep in $dependency_libs; do
8038 case "$dep" in
8039 -L*)
8040 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8041 if test "X$additional_libdir" != "X/usr/lib"; then
8042 haveit=
8043 if test "X$additional_libdir" = "X/usr/local/lib"; then
8044 if test -n "$GCC"; then
8045 case $host_os in
8046 linux*) haveit=yes;;
8047 esac
8048 fi
8049 fi
8050 if test -z "$haveit"; then
8051 haveit=
8052 for x in $LDFLAGS $LIBICONV; do
8053
8054 acl_save_prefix="$prefix"
8055 prefix="$acl_final_prefix"
8056 acl_save_exec_prefix="$exec_prefix"
8057 exec_prefix="$acl_final_exec_prefix"
8058 eval x=\"$x\"
8059 exec_prefix="$acl_save_exec_prefix"
8060 prefix="$acl_save_prefix"
8061
8062 if test "X$x" = "X-L$additional_libdir"; then
8063 haveit=yes
8064 break
8065 fi
8066 done
8067 if test -z "$haveit"; then
8068 if test -d "$additional_libdir"; then
8069 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8070 fi
8071 fi
8072 haveit=
8073 for x in $LDFLAGS $LTLIBICONV; do
8074
8075 acl_save_prefix="$prefix"
8076 prefix="$acl_final_prefix"
8077 acl_save_exec_prefix="$exec_prefix"
8078 exec_prefix="$acl_final_exec_prefix"
8079 eval x=\"$x\"
8080 exec_prefix="$acl_save_exec_prefix"
8081 prefix="$acl_save_prefix"
8082
8083 if test "X$x" = "X-L$additional_libdir"; then
8084 haveit=yes
8085 break
8086 fi
8087 done
8088 if test -z "$haveit"; then
8089 if test -d "$additional_libdir"; then
8090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8091 fi
8092 fi
8093 fi
8094 fi
8095 ;;
8096 -l*)
8097 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8098 ;;
8099 *.la)
8100 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8101 ;;
8102 *)
8103 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8105 ;;
8106 esac
8107 done
8108 fi
8109 else
8110 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8111 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8112 fi
8113 fi
8114 fi
8115 done
8116 done
8117 if test "X$rpathdirs" != "X"; then
8118 if test -n "$hardcode_libdir_separator"; then
8119 alldirs=
8120 for found_dir in $rpathdirs; do
8121 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8122 done
8123 acl_save_libdir="$libdir"
8124 libdir="$alldirs"
8125 eval flag=\"$hardcode_libdir_flag_spec\"
8126 libdir="$acl_save_libdir"
8127 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8128 else
8129 for found_dir in $rpathdirs; do
8130 acl_save_libdir="$libdir"
8131 libdir="$found_dir"
8132 eval flag=\"$hardcode_libdir_flag_spec\"
8133 libdir="$acl_save_libdir"
8134 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8135 done
8136 fi
8137 fi
8138 if test "X$ltrpathdirs" != "X"; then
8139 for found_dir in $ltrpathdirs; do
8140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8141 done
8142 fi
8143
8144
8145 am_save_CPPFLAGS="$CPPFLAGS"
8146
8147 for element in $INCICONV; do
8148 haveit=
8149 for x in $CPPFLAGS; do
8150
8151 acl_save_prefix="$prefix"
8152 prefix="$acl_final_prefix"
8153 acl_save_exec_prefix="$exec_prefix"
8154 exec_prefix="$acl_final_exec_prefix"
8155 eval x=\"$x\"
8156 exec_prefix="$acl_save_exec_prefix"
8157 prefix="$acl_save_prefix"
8158
8159 if test "X$x" = "X$element"; then
8160 haveit=yes
8161 break
8162 fi
8163 done
8164 if test -z "$haveit"; then
8165 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8166 fi
8167 done
8168
8169
8170 echo "$as_me:$LINENO: checking for iconv" >&5
8171echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8172if test "${am_cv_func_iconv+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174else
8175
8176 am_cv_func_iconv="no, consider installing GNU libiconv"
8177 am_cv_lib_iconv=no
8178 cat >conftest.$ac_ext <<_ACEOF
8179/* confdefs.h. */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
8183/* end confdefs.h. */
8184#include <stdlib.h>
8185#include <iconv.h>
8186int
8187main ()
8188{
8189iconv_t cd = iconv_open("","");
8190 iconv(cd,NULL,NULL,NULL,NULL);
8191 iconv_close(cd);
8192 ;
8193 return 0;
8194}
8195_ACEOF
8196rm -f conftest.$ac_objext conftest$ac_exeext
8197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198 (eval $ac_link) 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -z "$ac_c_werror_flag"
8206 || test ! -s conftest.err'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; } &&
8212 { ac_try='test -s conftest$ac_exeext'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 (eval $ac_try) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; }; then
8218 am_cv_func_iconv=yes
8219else
8220 echo "$as_me: failed program was:" >&5
8221sed 's/^/| /' conftest.$ac_ext >&5
8222
8223fi
8224rm -f conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8226 if test "$am_cv_func_iconv" != yes; then
8227 am_save_LIBS="$LIBS"
8228 LIBS="$LIBS $LIBICONV"
8229 cat >conftest.$ac_ext <<_ACEOF
8230/* confdefs.h. */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h. */
8235#include <stdlib.h>
8236#include <iconv.h>
8237int
8238main ()
8239{
8240iconv_t cd = iconv_open("","");
8241 iconv(cd,NULL,NULL,NULL,NULL);
8242 iconv_close(cd);
8243 ;
8244 return 0;
8245}
8246_ACEOF
8247rm -f conftest.$ac_objext conftest$ac_exeext
8248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_c_werror_flag"
8257 || test ! -s conftest.err'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; } &&
8263 { ac_try='test -s conftest$ac_exeext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 am_cv_lib_iconv=yes
8270 am_cv_func_iconv=yes
8271else
8272 echo "$as_me: failed program was:" >&5
8273sed 's/^/| /' conftest.$ac_ext >&5
8274
8275fi
8276rm -f conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 LIBS="$am_save_LIBS"
8279 fi
8280
8281fi
8282echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8283echo "${ECHO_T}$am_cv_func_iconv" >&6
8284 if test "$am_cv_func_iconv" = yes; then
8285
8286cat >>confdefs.h <<\_ACEOF
8287#define HAVE_ICONV 1
8288_ACEOF
8289
8290 fi
8291 if test "$am_cv_lib_iconv" = yes; then
8292 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8293echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8294 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8295echo "${ECHO_T}$LIBICONV" >&6
8296 else
8297 CPPFLAGS="$am_save_CPPFLAGS"
8298 LIBICONV=
8299 LTLIBICONV=
8300 fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8317stdlib.h string.h unistd.h sys/param.h
8318do
8319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8320if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo "$as_me:$LINENO: checking for $ac_header" >&5
8322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8323if eval "test \"\${$as_ac_Header+set}\" = set"; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325fi
8326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8328else
8329 # Is the header compilable?
8330echo "$as_me:$LINENO: checking $ac_header usability" >&5
8331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8332cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h. */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h. */
8338$ac_includes_default
8339#include <$ac_header>
8340_ACEOF
8341rm -f conftest.$ac_objext
8342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_header_compiler=yes
8364else
8365 echo "$as_me: failed program was:" >&5
8366sed 's/^/| /' conftest.$ac_ext >&5
8367
8368ac_header_compiler=no
8369fi
8370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8372echo "${ECHO_T}$ac_header_compiler" >&6
8373
8374# Is the header present?
8375echo "$as_me:$LINENO: checking $ac_header presence" >&5
8376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8377cat >conftest.$ac_ext <<_ACEOF
8378/* confdefs.h. */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h. */
8383#include <$ac_header>
8384_ACEOF
8385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } >/dev/null; then
8393 if test -s conftest.err; then
8394 ac_cpp_err=$ac_c_preproc_warn_flag
8395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8396 else
8397 ac_cpp_err=
8398 fi
8399else
8400 ac_cpp_err=yes
8401fi
8402if test -z "$ac_cpp_err"; then
8403 ac_header_preproc=yes
8404else
8405 echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ac_header_preproc=no
8409fi
8410rm -f conftest.err conftest.$ac_ext
8411echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412echo "${ECHO_T}$ac_header_preproc" >&6
8413
8414# So? What about this header?
8415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8416 yes:no: )
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8420echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8421 ac_header_preproc=yes
8422 ;;
8423 no:yes:* )
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8427echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8429echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8431echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8435echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8436 (
8437 cat <<\_ASBOX
8438## ------------------------------ ##
8439## Report this to [email protected] ##
8440## ------------------------------ ##
8441_ASBOX
8442 ) |
8443 sed "s/^/$as_me: WARNING: /" >&2
8444 ;;
8445esac
8446echo "$as_me:$LINENO: checking for $ac_header" >&5
8447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8448if eval "test \"\${$as_ac_Header+set}\" = set"; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450else
8451 eval "$as_ac_Header=\$ac_header_preproc"
8452fi
8453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8455
8456fi
8457if test `eval echo '${'$as_ac_Header'}'` = yes; then
8458 cat >>confdefs.h <<_ACEOF
8459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8460_ACEOF
8461
8462fi
8463
8464done
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8488geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8489strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
8490do
8491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8492echo "$as_me:$LINENO: checking for $ac_func" >&5
8493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8494if eval "test \"\${$as_ac_var+set}\" = set"; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497 cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
8503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8505#define $ac_func innocuous_$ac_func
8506
8507/* System header to define __stub macros and hopefully few prototypes,
8508 which can conflict with char $ac_func (); below.
8509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8510 <limits.h> exists even on freestanding compilers. */
8511
8512#ifdef __STDC__
8513# include <limits.h>
8514#else
8515# include <assert.h>
8516#endif
8517
8518#undef $ac_func
8519
8520/* Override any gcc2 internal prototype to avoid an error. */
8521#ifdef __cplusplus
8522extern "C"
8523{
8524#endif
8525/* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527char $ac_func ();
8528/* The GNU C library defines this for functions which it implements
8529 to always fail with ENOSYS. Some functions are actually named
8530 something starting with __ and the normal name is an alias. */
8531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8532choke me
8533#else
8534char (*f) () = $ac_func;
8535#endif
8536#ifdef __cplusplus
8537}
8538#endif
8539
8540int
8541main ()
8542{
8543return f != $ac_func;
8544 ;
8545 return 0;
8546}
8547_ACEOF
8548rm -f conftest.$ac_objext conftest$ac_exeext
8549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 eval "$as_ac_var=yes"
8571else
8572 echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575eval "$as_ac_var=no"
8576fi
8577rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579fi
8580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8582if test `eval echo '${'$as_ac_var'}'` = yes; then
8583 cat >>confdefs.h <<_ACEOF
8584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8585_ACEOF
8586
8587fi
8588done
8589
8590
8591
8592
8593 if test "$am_cv_func_iconv" = yes; then
8594 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8595echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8596 if test "${am_cv_proto_iconv+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
8599
8600 cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
8606
8607#include <stdlib.h>
8608#include <iconv.h>
8609extern
8610#ifdef __cplusplus
8611"C"
8612#endif
8613#if defined(__STDC__) || defined(__cplusplus)
8614size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8615#else
8616size_t iconv();
8617#endif
8618
8619int
8620main ()
8621{
8622
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext
8628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629 (eval $ac_compile) 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag"
8637 || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest.$ac_objext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 am_cv_proto_iconv_arg1=""
8650else
8651 echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654am_cv_proto_iconv_arg1="const"
8655fi
8656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8657 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);"
8658fi
8659
8660 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8661 echo "$as_me:$LINENO: result: ${ac_t:-
8662 }$am_cv_proto_iconv" >&5
8663echo "${ECHO_T}${ac_t:-
8664 }$am_cv_proto_iconv" >&6
8665
8666cat >>confdefs.h <<_ACEOF
8667#define ICONV_CONST $am_cv_proto_iconv_arg1
8668_ACEOF
8669
8670 fi
8671
8672
8673 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8674echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8675if test "${am_cv_langinfo_codeset+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678 cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
8684#include <langinfo.h>
8685int
8686main ()
8687{
8688char* cs = nl_langinfo(CODESET);
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext conftest$ac_exeext
8694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695 (eval $ac_link) 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest$ac_exeext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 am_cv_langinfo_codeset=yes
8716else
8717 echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720am_cv_langinfo_codeset=no
8721fi
8722rm -f conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8724
8725fi
8726echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8727echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8728 if test $am_cv_langinfo_codeset = yes; then
8729
8730cat >>confdefs.h <<\_ACEOF
8731#define HAVE_LANGINFO_CODESET 1
8732_ACEOF
8733
8734 fi
8735
8736 if test $ac_cv_header_locale_h = yes; then
8737 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8738echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8739if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742 cat >conftest.$ac_ext <<_ACEOF
8743/* confdefs.h. */
8744_ACEOF
8745cat confdefs.h >>conftest.$ac_ext
8746cat >>conftest.$ac_ext <<_ACEOF
8747/* end confdefs.h. */
8748#include <locale.h>
8749int
8750main ()
8751{
8752return LC_MESSAGES
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext
8758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 am_cv_val_LC_MESSAGES=yes
8780else
8781 echo "$as_me: failed program was:" >&5
8782sed 's/^/| /' conftest.$ac_ext >&5
8783
8784am_cv_val_LC_MESSAGES=no
8785fi
8786rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8788fi
8789echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8790echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8791 if test $am_cv_val_LC_MESSAGES = yes; then
8792
8793cat >>confdefs.h <<\_ACEOF
8794#define HAVE_LC_MESSAGES 1
8795_ACEOF
8796
8797 fi
8798 fi
8799
8800 for ac_prog in bison
8801do
8802 # Extract the first word of "$ac_prog", so it can be a program name with args.
8803set dummy $ac_prog; ac_word=$2
8804echo "$as_me:$LINENO: checking for $ac_word" >&5
8805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8806if test "${ac_cv_prog_INTLBISON+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809 if test -n "$INTLBISON"; then
8810 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_INTLBISON="$ac_prog"
8820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823done
8824done
8825
8826fi
8827fi
8828INTLBISON=$ac_cv_prog_INTLBISON
8829if test -n "$INTLBISON"; then
8830 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8831echo "${ECHO_T}$INTLBISON" >&6
8832else
8833 echo "$as_me:$LINENO: result: no" >&5
8834echo "${ECHO_T}no" >&6
8835fi
8836
8837 test -n "$INTLBISON" && break
8838done
8839
8840 if test -z "$INTLBISON"; then
8841 ac_verc_fail=yes
8842 else
8843 echo "$as_me:$LINENO: checking version of bison" >&5
8844echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8845 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8846 case $ac_prog_version in
8847 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8848 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8849 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8850 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8851 esac
8852 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8853echo "${ECHO_T}$ac_prog_version" >&6
8854 fi
8855 if test $ac_verc_fail = yes; then
8856 INTLBISON=:
8857 fi
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8872echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8873 # Check whether --enable-nls or --disable-nls was given.
8874if test "${enable_nls+set}" = set; then
8875 enableval="$enable_nls"
8876 USE_NLS=$enableval
8877else
8878 USE_NLS=yes
8879fi;
8880 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8881echo "${ECHO_T}$USE_NLS" >&6
8882
8883
8884
8885 BUILD_INCLUDED_LIBINTL=no
8886 USE_INCLUDED_LIBINTL=no
8887
8888 LIBINTL=
8889 LTLIBINTL=
8890 POSUB=
8891
8892 if test "$USE_NLS" = "yes"; then
8893 gt_use_preinstalled_gnugettext=no
8894
8895 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8896echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8897
8898# Check whether --with-included-gettext or --without-included-gettext was given.
8899if test "${with_included_gettext+set}" = set; then
8900 withval="$with_included_gettext"
8901 nls_cv_force_use_gnu_gettext=$withval
8902else
8903 nls_cv_force_use_gnu_gettext=no
8904fi;
8905 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8906echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8907
8908 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8909 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8910
8911
8912
8913
8914
8915
8916 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8917echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8918if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else
8921 cat >conftest.$ac_ext <<_ACEOF
8922/* confdefs.h. */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
8926/* end confdefs.h. */
8927#include <libintl.h>
8928extern int _nl_msg_cat_cntr;
8929int
8930main ()
8931{
8932bindtextdomain ("", "");
8933return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8934 ;
8935 return 0;
8936}
8937_ACEOF
8938rm -f conftest.$ac_objext conftest$ac_exeext
8939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest$ac_exeext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 gt_cv_func_gnugettext2_libc=yes
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965gt_cv_func_gnugettext2_libc=no
8966fi
8967rm -f conftest.err conftest.$ac_objext \
8968 conftest$ac_exeext conftest.$ac_ext
8969fi
8970echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8971echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8972
8973 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8974
8975
8976
8977 use_additional=yes
8978
8979 acl_save_prefix="$prefix"
8980 prefix="$acl_final_prefix"
8981 acl_save_exec_prefix="$exec_prefix"
8982 exec_prefix="$acl_final_exec_prefix"
8983
8984 eval additional_includedir=\"$includedir\"
8985 eval additional_libdir=\"$libdir\"
8986
8987 exec_prefix="$acl_save_exec_prefix"
8988 prefix="$acl_save_prefix"
8989
8990
8991# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8992if test "${with_libintl_prefix+set}" = set; then
8993 withval="$with_libintl_prefix"
8994
8995 if test "X$withval" = "Xno"; then
8996 use_additional=no
8997 else
8998 if test "X$withval" = "X"; then
8999
9000 acl_save_prefix="$prefix"
9001 prefix="$acl_final_prefix"
9002 acl_save_exec_prefix="$exec_prefix"
9003 exec_prefix="$acl_final_exec_prefix"
9004
9005 eval additional_includedir=\"$includedir\"
9006 eval additional_libdir=\"$libdir\"
9007
9008 exec_prefix="$acl_save_exec_prefix"
9009 prefix="$acl_save_prefix"
9010
9011 else
9012 additional_includedir="$withval/include"
9013 additional_libdir="$withval/lib"
9014 fi
9015 fi
9016
9017fi;
9018 LIBINTL=
9019 LTLIBINTL=
9020 INCINTL=
9021 rpathdirs=
9022 ltrpathdirs=
9023 names_already_handled=
9024 names_next_round='intl '
9025 while test -n "$names_next_round"; do
9026 names_this_round="$names_next_round"
9027 names_next_round=
9028 for name in $names_this_round; do
9029 already_handled=
9030 for n in $names_already_handled; do
9031 if test "$n" = "$name"; then
9032 already_handled=yes
9033 break
9034 fi
9035 done
9036 if test -z "$already_handled"; then
9037 names_already_handled="$names_already_handled $name"
9038 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9039 eval value=\"\$HAVE_LIB$uppername\"
9040 if test -n "$value"; then
9041 if test "$value" = yes; then
9042 eval value=\"\$LIB$uppername\"
9043 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9044 eval value=\"\$LTLIB$uppername\"
9045 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9046 else
9047 :
9048 fi
9049 else
9050 found_dir=
9051 found_la=
9052 found_so=
9053 found_a=
9054 if test $use_additional = yes; then
9055 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9056 found_dir="$additional_libdir"
9057 found_so="$additional_libdir/lib$name.$shlibext"
9058 if test -f "$additional_libdir/lib$name.la"; then
9059 found_la="$additional_libdir/lib$name.la"
9060 fi
9061 else
9062 if test -f "$additional_libdir/lib$name.$libext"; then
9063 found_dir="$additional_libdir"
9064 found_a="$additional_libdir/lib$name.$libext"
9065 if test -f "$additional_libdir/lib$name.la"; then
9066 found_la="$additional_libdir/lib$name.la"
9067 fi
9068 fi
9069 fi
9070 fi
9071 if test "X$found_dir" = "X"; then
9072 for x in $LDFLAGS $LTLIBINTL; do
9073
9074 acl_save_prefix="$prefix"
9075 prefix="$acl_final_prefix"
9076 acl_save_exec_prefix="$exec_prefix"
9077 exec_prefix="$acl_final_exec_prefix"
9078 eval x=\"$x\"
9079 exec_prefix="$acl_save_exec_prefix"
9080 prefix="$acl_save_prefix"
9081
9082 case "$x" in
9083 -L*)
9084 dir=`echo "X$x" | sed -e 's/^X-L//'`
9085 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9086 found_dir="$dir"
9087 found_so="$dir/lib$name.$shlibext"
9088 if test -f "$dir/lib$name.la"; then
9089 found_la="$dir/lib$name.la"
9090 fi
9091 else
9092 if test -f "$dir/lib$name.$libext"; then
9093 found_dir="$dir"
9094 found_a="$dir/lib$name.$libext"
9095 if test -f "$dir/lib$name.la"; then
9096 found_la="$dir/lib$name.la"
9097 fi
9098 fi
9099 fi
9100 ;;
9101 esac
9102 if test "X$found_dir" != "X"; then
9103 break
9104 fi
9105 done
9106 fi
9107 if test "X$found_dir" != "X"; then
9108 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9109 if test "X$found_so" != "X"; then
9110 if test "X$found_dir" = "X/usr/lib"; then
9111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9112 else
9113 haveit=
9114 for x in $ltrpathdirs; do
9115 if test "X$x" = "X$found_dir"; then
9116 haveit=yes
9117 break
9118 fi
9119 done
9120 if test -z "$haveit"; then
9121 ltrpathdirs="$ltrpathdirs $found_dir"
9122 fi
9123 if test "$hardcode_direct" = yes; then
9124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9125 else
9126 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9127 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9128 haveit=
9129 for x in $rpathdirs; do
9130 if test "X$x" = "X$found_dir"; then
9131 haveit=yes
9132 break
9133 fi
9134 done
9135 if test -z "$haveit"; then
9136 rpathdirs="$rpathdirs $found_dir"
9137 fi
9138 else
9139 haveit=
9140 for x in $LDFLAGS $LIBINTL; do
9141
9142 acl_save_prefix="$prefix"
9143 prefix="$acl_final_prefix"
9144 acl_save_exec_prefix="$exec_prefix"
9145 exec_prefix="$acl_final_exec_prefix"
9146 eval x=\"$x\"
9147 exec_prefix="$acl_save_exec_prefix"
9148 prefix="$acl_save_prefix"
9149
9150 if test "X$x" = "X-L$found_dir"; then
9151 haveit=yes
9152 break
9153 fi
9154 done
9155 if test -z "$haveit"; then
9156 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9157 fi
9158 if test "$hardcode_minus_L" != no; then
9159 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9160 else
9161 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9162 fi
9163 fi
9164 fi
9165 fi
9166 else
9167 if test "X$found_a" != "X"; then
9168 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9169 else
9170 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9171 fi
9172 fi
9173 additional_includedir=
9174 case "$found_dir" in
9175 */lib | */lib/)
9176 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9177 additional_includedir="$basedir/include"
9178 ;;
9179 esac
9180 if test "X$additional_includedir" != "X"; then
9181 if test "X$additional_includedir" != "X/usr/include"; then
9182 haveit=
9183 if test "X$additional_includedir" = "X/usr/local/include"; then
9184 if test -n "$GCC"; then
9185 case $host_os in
9186 linux*) haveit=yes;;
9187 esac
9188 fi
9189 fi
9190 if test -z "$haveit"; then
9191 for x in $CPPFLAGS $INCINTL; do
9192
9193 acl_save_prefix="$prefix"
9194 prefix="$acl_final_prefix"
9195 acl_save_exec_prefix="$exec_prefix"
9196 exec_prefix="$acl_final_exec_prefix"
9197 eval x=\"$x\"
9198 exec_prefix="$acl_save_exec_prefix"
9199 prefix="$acl_save_prefix"
9200
9201 if test "X$x" = "X-I$additional_includedir"; then
9202 haveit=yes
9203 break
9204 fi
9205 done
9206 if test -z "$haveit"; then
9207 if test -d "$additional_includedir"; then
9208 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9209 fi
9210 fi
9211 fi
9212 fi
9213 fi
9214 if test -n "$found_la"; then
9215 save_libdir="$libdir"
9216 case "$found_la" in
9217 */* | *\\*) . "$found_la" ;;
9218 *) . "./$found_la" ;;
9219 esac
9220 libdir="$save_libdir"
9221 for dep in $dependency_libs; do
9222 case "$dep" in
9223 -L*)
9224 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9225 if test "X$additional_libdir" != "X/usr/lib"; then
9226 haveit=
9227 if test "X$additional_libdir" = "X/usr/local/lib"; then
9228 if test -n "$GCC"; then
9229 case $host_os in
9230 linux*) haveit=yes;;
9231 esac
9232 fi
9233 fi
9234 if test -z "$haveit"; then
9235 haveit=
9236 for x in $LDFLAGS $LIBINTL; do
9237
9238 acl_save_prefix="$prefix"
9239 prefix="$acl_final_prefix"
9240 acl_save_exec_prefix="$exec_prefix"
9241 exec_prefix="$acl_final_exec_prefix"
9242 eval x=\"$x\"
9243 exec_prefix="$acl_save_exec_prefix"
9244 prefix="$acl_save_prefix"
9245
9246 if test "X$x" = "X-L$additional_libdir"; then
9247 haveit=yes
9248 break
9249 fi
9250 done
9251 if test -z "$haveit"; then
9252 if test -d "$additional_libdir"; then
9253 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9254 fi
9255 fi
9256 haveit=
9257 for x in $LDFLAGS $LTLIBINTL; do
9258
9259 acl_save_prefix="$prefix"
9260 prefix="$acl_final_prefix"
9261 acl_save_exec_prefix="$exec_prefix"
9262 exec_prefix="$acl_final_exec_prefix"
9263 eval x=\"$x\"
9264 exec_prefix="$acl_save_exec_prefix"
9265 prefix="$acl_save_prefix"
9266
9267 if test "X$x" = "X-L$additional_libdir"; then
9268 haveit=yes
9269 break
9270 fi
9271 done
9272 if test -z "$haveit"; then
9273 if test -d "$additional_libdir"; then
9274 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9275 fi
9276 fi
9277 fi
9278 fi
9279 ;;
9280 -l*)
9281 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9282 ;;
9283 *.la)
9284 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9285 ;;
9286 *)
9287 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9289 ;;
9290 esac
9291 done
9292 fi
9293 else
9294 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9295 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9296 fi
9297 fi
9298 fi
9299 done
9300 done
9301 if test "X$rpathdirs" != "X"; then
9302 if test -n "$hardcode_libdir_separator"; then
9303 alldirs=
9304 for found_dir in $rpathdirs; do
9305 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9306 done
9307 acl_save_libdir="$libdir"
9308 libdir="$alldirs"
9309 eval flag=\"$hardcode_libdir_flag_spec\"
9310 libdir="$acl_save_libdir"
9311 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9312 else
9313 for found_dir in $rpathdirs; do
9314 acl_save_libdir="$libdir"
9315 libdir="$found_dir"
9316 eval flag=\"$hardcode_libdir_flag_spec\"
9317 libdir="$acl_save_libdir"
9318 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9319 done
9320 fi
9321 fi
9322 if test "X$ltrpathdirs" != "X"; then
9323 for found_dir in $ltrpathdirs; do
9324 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9325 done
9326 fi
9327
9328 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9329echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9330if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332else
9333 gt_save_CPPFLAGS="$CPPFLAGS"
9334 CPPFLAGS="$CPPFLAGS $INCINTL"
9335 gt_save_LIBS="$LIBS"
9336 LIBS="$LIBS $LIBINTL"
9337 cat >conftest.$ac_ext <<_ACEOF
9338/* confdefs.h. */
9339_ACEOF
9340cat confdefs.h >>conftest.$ac_ext
9341cat >>conftest.$ac_ext <<_ACEOF
9342/* end confdefs.h. */
9343#include <libintl.h>
9344extern int _nl_msg_cat_cntr;
9345int
9346main ()
9347{
9348bindtextdomain ("", "");
9349return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
9350 ;
9351 return 0;
9352}
9353_ACEOF
9354rm -f conftest.$ac_objext conftest$ac_exeext
9355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -z "$ac_c_werror_flag"
9364 || test ! -s conftest.err'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; } &&
9370 { ac_try='test -s conftest$ac_exeext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 gt_cv_func_gnugettext2_libintl=yes
9377else
9378 echo "$as_me: failed program was:" >&5
9379sed 's/^/| /' conftest.$ac_ext >&5
9380
9381gt_cv_func_gnugettext2_libintl=no
9382fi
9383rm -f conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
9385 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9386 LIBS="$LIBS $LIBICONV"
9387 cat >conftest.$ac_ext <<_ACEOF
9388/* confdefs.h. */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h. */
9393#include <libintl.h>
9394extern int _nl_msg_cat_cntr;
9395int
9396main ()
9397{
9398bindtextdomain ("", "");
9399return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
9400 ;
9401 return 0;
9402}
9403_ACEOF
9404rm -f conftest.$ac_objext conftest$ac_exeext
9405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -z "$ac_c_werror_flag"
9414 || test ! -s conftest.err'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 (eval $ac_try) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; } &&
9420 { ac_try='test -s conftest$ac_exeext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 LIBINTL="$LIBINTL $LIBICONV"
9427 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9428 gt_cv_func_gnugettext2_libintl=yes
9429
9430else
9431 echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
9434fi
9435rm -f conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 fi
9438 CPPFLAGS="$gt_save_CPPFLAGS"
9439 LIBS="$gt_save_LIBS"
9440fi
9441echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9442echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9443 fi
9444
9445 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9446 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9447 && test "$PACKAGE" != gettext; }; then
9448 gt_use_preinstalled_gnugettext=yes
9449 fi
9450
9451
9452 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9453 nls_cv_use_gnu_gettext=yes
9454 fi
9455 fi
9456
9457 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9458 INTLOBJS="\$(GETTOBJS)"
9459 BUILD_INCLUDED_LIBINTL=yes
9460 USE_INCLUDED_LIBINTL=yes
9461 LIBINTL="../intl/libintl.a $LIBICONV"
9462 LTLIBINTL="../intl/libintl.a $LTLIBICONV"
9463 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9464 fi
9465
9466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9468 CATOBJEXT=.gmo
9469 fi
9470
9471
9472 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9473 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9474
9475cat >>confdefs.h <<\_ACEOF
9476#define ENABLE_NLS 1
9477_ACEOF
9478
9479 else
9480 USE_NLS=no
9481 fi
9482 fi
9483
9484 if test "$USE_NLS" = "yes"; then
9485
9486 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9487 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9488 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9489echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9490 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9491echo "${ECHO_T}$LIBINTL" >&6
9492
9493 for element in $INCINTL; do
9494 haveit=
9495 for x in $CPPFLAGS; do
9496
9497 acl_save_prefix="$prefix"
9498 prefix="$acl_final_prefix"
9499 acl_save_exec_prefix="$exec_prefix"
9500 exec_prefix="$acl_final_exec_prefix"
9501 eval x=\"$x\"
9502 exec_prefix="$acl_save_exec_prefix"
9503 prefix="$acl_save_prefix"
9504
9505 if test "X$x" = "X$element"; then
9506 haveit=yes
9507 break
9508 fi
9509 done
9510 if test -z "$haveit"; then
9511 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9512 fi
9513 done
9514
9515 fi
9516
9517
9518cat >>confdefs.h <<\_ACEOF
9519#define HAVE_GETTEXT 1
9520_ACEOF
9521
9522
9523cat >>confdefs.h <<\_ACEOF
9524#define HAVE_DCGETTEXT 1
9525_ACEOF
9526
9527 fi
9528
9529 POSUB=po
9530 fi
9531
9532
9533 if test "$PACKAGE" = gettext; then
9534 BUILD_INCLUDED_LIBINTL=yes
9535 fi
9536
9537
9538
9539
9540
9541
9542 nls_cv_header_intl=
9543 nls_cv_header_libgt=
9544
9545 DATADIRNAME=share
9546
9547
9548 INSTOBJEXT=.mo
9549
9550
9551 GENCAT=gencat
9552
9553
9554 INTL_LIBTOOL_SUFFIX_PREFIX=
9555
9556
9557
9558 INTLLIBS="$LIBINTL"
9559
9560
9561
9562
9563
9564
9565 ac_config_commands="$ac_config_commands gettext-fix"
9566
9567
9568 ac_config_files="$ac_config_files bootstrap.sh"
9569
9570 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile po/Makefile.in intl/Makefile"
9571
9572cat >confcache <<\_ACEOF
9573# This file is a shell script that caches the results of configure
9574# tests run on this system so they can be shared between configure
9575# scripts and configure runs, see configure's option --config-cache.
9576# It is not useful on other systems. If it contains results you don't
9577# want to keep, you may remove or edit it.
9578#
9579# config.status only pays attention to the cache file if you give it
9580# the --recheck option to rerun configure.
9581#
9582# `ac_cv_env_foo' variables (set or unset) will be overridden when
9583# loading this file, other *unset* `ac_cv_foo' will be assigned the
9584# following values.
9585
9586_ACEOF
9587
9588# The following way of writing the cache mishandles newlines in values,
9589# but we know of no workaround that is simple, portable, and efficient.
9590# So, don't put newlines in cache variables' values.
9591# Ultrix sh set writes to stderr and can't be redirected directly,
9592# and sets the high bit in the cache file unless we assign to the vars.
9593{
9594 (set) 2>&1 |
9595 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9596 *ac_space=\ *)
9597 # `set' does not quote correctly, so add quotes (double-quote
9598 # substitution turns \\\\ into \\, and sed turns \\ into \).
9599 sed -n \
9600 "s/'/'\\\\''/g;
9601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9602 ;;
9603 *)
9604 # `set' quotes correctly as required by POSIX, so do not add quotes.
9605 sed -n \
9606 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9607 ;;
9608 esac;
9609} |
9610 sed '
9611 t clear
9612 : clear
9613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9614 t end
9615 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9616 : end' >>confcache
9617if diff $cache_file confcache >/dev/null 2>&1; then :; else
9618 if test -w $cache_file; then
9619 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9620 cat confcache >$cache_file
9621 else
9622 echo "not updating unwritable cache $cache_file"
9623 fi
9624fi
9625rm -f confcache
9626
9627test "x$prefix" = xNONE && prefix=$ac_default_prefix
9628# Let make expand exec_prefix.
9629test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9630
9631# VPATH may cause trouble with some makes, so we remove $(srcdir),
9632# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9633# trailing colons and then remove the whole line if VPATH becomes empty
9634# (actually we leave an empty line to preserve line numbers).
9635if test "x$srcdir" = x.; then
9636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9637s/:*\$(srcdir):*/:/;
9638s/:*\${srcdir}:*/:/;
9639s/:*@srcdir@:*/:/;
9640s/^\([^=]*=[ ]*\):*/\1/;
9641s/:*$//;
9642s/^[^=]*=[ ]*$//;
9643}'
9644fi
9645
9646DEFS=-DHAVE_CONFIG_H
9647
9648ac_libobjs=
9649ac_ltlibobjs=
9650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9651 # 1. Remove the extension, and $U if already installed.
9652 ac_i=`echo "$ac_i" |
9653 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9654 # 2. Add them.
9655 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9656 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9657done
9658LIBOBJS=$ac_libobjs
9659
9660LTLIBOBJS=$ac_ltlibobjs
9661
9662
9663if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9664 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9665Usually this means the macro was only invoked conditionally." >&5
9666echo "$as_me: error: conditional \"AMDEP\" was never defined.
9667Usually this means the macro was only invoked conditionally." >&2;}
9668 { (exit 1); exit 1; }; }
9669fi
9670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9671 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9672Usually this means the macro was only invoked conditionally." >&5
9673echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9674Usually this means the macro was only invoked conditionally." >&2;}
9675 { (exit 1); exit 1; }; }
9676fi
9677if test -z "${TEST_REGEX_TRUE}" && test -z "${TEST_REGEX_FALSE}"; then
9678 { { echo "$as_me:$LINENO: error: conditional \"TEST_REGEX\" was never defined.
9679Usually this means the macro was only invoked conditionally." >&5
9680echo "$as_me: error: conditional \"TEST_REGEX\" was never defined.
9681Usually this means the macro was only invoked conditionally." >&2;}
9682 { (exit 1); exit 1; }; }
9683fi
9684if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
9685 { { echo "$as_me:$LINENO: error: conditional \"BUILD_HTML\" was never defined.
9686Usually this means the macro was only invoked conditionally." >&5
9687echo "$as_me: error: conditional \"BUILD_HTML\" was never defined.
9688Usually this means the macro was only invoked conditionally." >&2;}
9689 { (exit 1); exit 1; }; }
9690fi
9691if test -z "${MAKEINFO_HTML_TRUE}" && test -z "${MAKEINFO_HTML_FALSE}"; then
9692 { { echo "$as_me:$LINENO: error: conditional \"MAKEINFO_HTML\" was never defined.
9693Usually this means the macro was only invoked conditionally." >&5
9694echo "$as_me: error: conditional \"MAKEINFO_HTML\" was never defined.
9695Usually this means the macro was only invoked conditionally." >&2;}
9696 { (exit 1); exit 1; }; }
9697fi
9698if test -z "${TEXI2HTML_HTML_TRUE}" && test -z "${TEXI2HTML_HTML_FALSE}"; then
9699 { { echo "$as_me:$LINENO: error: conditional \"TEXI2HTML_HTML\" was never defined.
9700Usually this means the macro was only invoked conditionally." >&5
9701echo "$as_me: error: conditional \"TEXI2HTML_HTML\" was never defined.
9702Usually this means the macro was only invoked conditionally." >&2;}
9703 { (exit 1); exit 1; }; }
9704fi
9705
9706: ${CONFIG_STATUS=./config.status}
9707ac_clean_files_save=$ac_clean_files
9708ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9709{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9710echo "$as_me: creating $CONFIG_STATUS" >&6;}
9711cat >$CONFIG_STATUS <<_ACEOF
9712#! $SHELL
9713# Generated by $as_me.
9714# Run this file to recreate the current configuration.
9715# Compiler output produced by configure, useful for debugging
9716# configure, is in config.log if it exists.
9717
9718debug=false
9719ac_cs_recheck=false
9720ac_cs_silent=false
9721SHELL=\${CONFIG_SHELL-$SHELL}
9722_ACEOF
9723
9724cat >>$CONFIG_STATUS <<\_ACEOF
9725## --------------------- ##
9726## M4sh Initialization. ##
9727## --------------------- ##
9728
9729# Be Bourne compatible
9730if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9731 emulate sh
9732 NULLCMD=:
9733 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9734 # is contrary to our usage. Disable this feature.
9735 alias -g '${1+"$@"}'='"$@"'
9736elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9737 set -o posix
9738fi
9739DUALCASE=1; export DUALCASE # for MKS sh
9740
9741# Support unset when possible.
9742if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9743 as_unset=unset
9744else
9745 as_unset=false
9746fi
9747
9748
9749# Work around bugs in pre-3.0 UWIN ksh.
9750$as_unset ENV MAIL MAILPATH
9751PS1='$ '
9752PS2='> '
9753PS4='+ '
9754
9755# NLS nuisances.
9756for as_var in \
9757 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9758 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9759 LC_TELEPHONE LC_TIME
9760do
9761 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9762 eval $as_var=C; export $as_var
9763 else
9764 $as_unset $as_var
9765 fi
9766done
9767
9768# Required to use basename.
9769if expr a : '\(a\)' >/dev/null 2>&1; then
9770 as_expr=expr
9771else
9772 as_expr=false
9773fi
9774
9775if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9776 as_basename=basename
9777else
9778 as_basename=false
9779fi
9780
9781
9782# Name of the executable.
9783as_me=`$as_basename "$0" ||
9784$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9785 X"$0" : 'X\(//\)$' \| \
9786 X"$0" : 'X\(/\)$' \| \
9787 . : '\(.\)' 2>/dev/null ||
9788echo X/"$0" |
9789 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9790 /^X\/\(\/\/\)$/{ s//\1/; q; }
9791 /^X\/\(\/\).*/{ s//\1/; q; }
9792 s/.*/./; q'`
9793
9794
9795# PATH needs CR, and LINENO needs CR and PATH.
9796# Avoid depending upon Character Ranges.
9797as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9798as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9799as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9800as_cr_digits='0123456789'
9801as_cr_alnum=$as_cr_Letters$as_cr_digits
9802
9803# The user is always right.
9804if test "${PATH_SEPARATOR+set}" != set; then
9805 echo "#! /bin/sh" >conf$$.sh
9806 echo "exit 0" >>conf$$.sh
9807 chmod +x conf$$.sh
9808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9809 PATH_SEPARATOR=';'
9810 else
9811 PATH_SEPARATOR=:
9812 fi
9813 rm -f conf$$.sh
9814fi
9815
9816
9817 as_lineno_1=$LINENO
9818 as_lineno_2=$LINENO
9819 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9820 test "x$as_lineno_1" != "x$as_lineno_2" &&
9821 test "x$as_lineno_3" = "x$as_lineno_2" || {
9822 # Find who we are. Look in the path if we contain no path at all
9823 # relative or not.
9824 case $0 in
9825 *[\\/]* ) as_myself=$0 ;;
9826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827for as_dir in $PATH
9828do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9832done
9833
9834 ;;
9835 esac
9836 # We did not find ourselves, most probably we were run as `sh COMMAND'
9837 # in which case we are not to be found in the path.
9838 if test "x$as_myself" = x; then
9839 as_myself=$0
9840 fi
9841 if test ! -f "$as_myself"; then
9842 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9843echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9844 { (exit 1); exit 1; }; }
9845 fi
9846 case $CONFIG_SHELL in
9847 '')
9848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9850do
9851 IFS=$as_save_IFS
9852 test -z "$as_dir" && as_dir=.
9853 for as_base in sh bash ksh sh5; do
9854 case $as_dir in
9855 /*)
9856 if ("$as_dir/$as_base" -c '
9857 as_lineno_1=$LINENO
9858 as_lineno_2=$LINENO
9859 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9860 test "x$as_lineno_1" != "x$as_lineno_2" &&
9861 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9862 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9863 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9864 CONFIG_SHELL=$as_dir/$as_base
9865 export CONFIG_SHELL
9866 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9867 fi;;
9868 esac
9869 done
9870done
9871;;
9872 esac
9873
9874 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9875 # uniformly replaced by the line number. The first 'sed' inserts a
9876 # line-number line before each line; the second 'sed' does the real
9877 # work. The second script uses 'N' to pair each line-number line
9878 # with the numbered line, and appends trailing '-' during
9879 # substitution so that $LINENO is not a special case at line end.
9880 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9881 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9882 sed '=' <$as_myself |
9883 sed '
9884 N
9885 s,$,-,
9886 : loop
9887 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9888 t loop
9889 s,-$,,
9890 s,^['$as_cr_digits']*\n,,
9891 ' >$as_me.lineno &&
9892 chmod +x $as_me.lineno ||
9893 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9894echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9895 { (exit 1); exit 1; }; }
9896
9897 # Don't try to exec as it changes $[0], causing all sort of problems
9898 # (the dirname of $[0] is not the place where we might find the
9899 # original and so on. Autoconf is especially sensible to this).
9900 . ./$as_me.lineno
9901 # Exit status is that of the last command.
9902 exit
9903}
9904
9905
9906case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9907 *c*,-n*) ECHO_N= ECHO_C='
9908' ECHO_T=' ' ;;
9909 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9910 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9911esac
9912
9913if expr a : '\(a\)' >/dev/null 2>&1; then
9914 as_expr=expr
9915else
9916 as_expr=false
9917fi
9918
9919rm -f conf$$ conf$$.exe conf$$.file
9920echo >conf$$.file
9921if ln -s conf$$.file conf$$ 2>/dev/null; then
9922 # We could just check for DJGPP; but this test a) works b) is more generic
9923 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9924 if test -f conf$$.exe; then
9925 # Don't use ln at all; we don't have any links
9926 as_ln_s='cp -p'
9927 else
9928 as_ln_s='ln -s'
9929 fi
9930elif ln conf$$.file conf$$ 2>/dev/null; then
9931 as_ln_s=ln
9932else
9933 as_ln_s='cp -p'
9934fi
9935rm -f conf$$ conf$$.exe conf$$.file
9936
9937if mkdir -p . 2>/dev/null; then
9938 as_mkdir_p=:
9939else
9940 test -d ./-p && rmdir ./-p
9941 as_mkdir_p=false
9942fi
9943
9944as_executable_p="test -f"
9945
9946# Sed expression to map a string onto a valid CPP name.
9947as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9948
9949# Sed expression to map a string onto a valid variable name.
9950as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9951
9952
9953# IFS
9954# We need space, tab and new line, in precisely that order.
9955as_nl='
9956'
9957IFS=" $as_nl"
9958
9959# CDPATH.
9960$as_unset CDPATH
9961
9962exec 6>&1
9963
9964# Open the log real soon, to keep \$[0] and so on meaningful, and to
9965# report actual input values of CONFIG_FILES etc. instead of their
9966# values after options handling. Logging --version etc. is OK.
9967exec 5>>config.log
9968{
9969 echo
9970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9971## Running $as_me. ##
9972_ASBOX
9973} >&5
9974cat >&5 <<_CSEOF
9975
9976This file was extended by sed $as_me 4.1.5, which was
9977generated by GNU Autoconf 2.59. Invocation command line was
9978
9979 CONFIG_FILES = $CONFIG_FILES
9980 CONFIG_HEADERS = $CONFIG_HEADERS
9981 CONFIG_LINKS = $CONFIG_LINKS
9982 CONFIG_COMMANDS = $CONFIG_COMMANDS
9983 $ $0 $@
9984
9985_CSEOF
9986echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9987echo >&5
9988_ACEOF
9989
9990# Files that config.status was made for.
9991if test -n "$ac_config_files"; then
9992 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9993fi
9994
9995if test -n "$ac_config_headers"; then
9996 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9997fi
9998
9999if test -n "$ac_config_links"; then
10000 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10001fi
10002
10003if test -n "$ac_config_commands"; then
10004 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10005fi
10006
10007cat >>$CONFIG_STATUS <<\_ACEOF
10008
10009ac_cs_usage="\
10010\`$as_me' instantiates files from templates according to the
10011current configuration.
10012
10013Usage: $0 [OPTIONS] [FILE]...
10014
10015 -h, --help print this help, then exit
10016 -V, --version print version number, then exit
10017 -q, --quiet do not print progress messages
10018 -d, --debug don't remove temporary files
10019 --recheck update $as_me by reconfiguring in the same conditions
10020 --file=FILE[:TEMPLATE]
10021 instantiate the configuration file FILE
10022 --header=FILE[:TEMPLATE]
10023 instantiate the configuration header FILE
10024
10025Configuration files:
10026$config_files
10027
10028Configuration headers:
10029$config_headers
10030
10031Configuration links:
10032$config_links
10033
10034Configuration commands:
10035$config_commands
10036
10037Report bugs to <[email protected]>."
10038_ACEOF
10039
10040cat >>$CONFIG_STATUS <<_ACEOF
10041ac_cs_version="\\
10042sed config.status 4.1.5
10043configured by $0, generated by GNU Autoconf 2.59,
10044 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10045
10046Copyright (C) 2003 Free Software Foundation, Inc.
10047This config.status script is free software; the Free Software Foundation
10048gives unlimited permission to copy, distribute and modify it."
10049srcdir=$srcdir
10050INSTALL="$INSTALL"
10051_ACEOF
10052
10053cat >>$CONFIG_STATUS <<\_ACEOF
10054# If no file are specified by the user, then we need to provide default
10055# value. By we need to know if files were specified by the user.
10056ac_need_defaults=:
10057while test $# != 0
10058do
10059 case $1 in
10060 --*=*)
10061 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10062 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10063 ac_shift=:
10064 ;;
10065 -*)
10066 ac_option=$1
10067 ac_optarg=$2
10068 ac_shift=shift
10069 ;;
10070 *) # This is not an option, so the user has probably given explicit
10071 # arguments.
10072 ac_option=$1
10073 ac_need_defaults=false;;
10074 esac
10075
10076 case $ac_option in
10077 # Handling of the options.
10078_ACEOF
10079cat >>$CONFIG_STATUS <<\_ACEOF
10080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10081 ac_cs_recheck=: ;;
10082 --version | --vers* | -V )
10083 echo "$ac_cs_version"; exit 0 ;;
10084 --he | --h)
10085 # Conflict between --help and --header
10086 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10087Try \`$0 --help' for more information." >&5
10088echo "$as_me: error: ambiguous option: $1
10089Try \`$0 --help' for more information." >&2;}
10090 { (exit 1); exit 1; }; };;
10091 --help | --hel | -h )
10092 echo "$ac_cs_usage"; exit 0 ;;
10093 --debug | --d* | -d )
10094 debug=: ;;
10095 --file | --fil | --fi | --f )
10096 $ac_shift
10097 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10098 ac_need_defaults=false;;
10099 --header | --heade | --head | --hea )
10100 $ac_shift
10101 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10102 ac_need_defaults=false;;
10103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10105 ac_cs_silent=: ;;
10106
10107 # This is an error.
10108 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10109Try \`$0 --help' for more information." >&5
10110echo "$as_me: error: unrecognized option: $1
10111Try \`$0 --help' for more information." >&2;}
10112 { (exit 1); exit 1; }; } ;;
10113
10114 *) ac_config_targets="$ac_config_targets $1" ;;
10115
10116 esac
10117 shift
10118done
10119
10120ac_configure_extra_args=
10121
10122if $ac_cs_silent; then
10123 exec 6>/dev/null
10124 ac_configure_extra_args="$ac_configure_extra_args --silent"
10125fi
10126
10127_ACEOF
10128cat >>$CONFIG_STATUS <<_ACEOF
10129if \$ac_cs_recheck; then
10130 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10131 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10132fi
10133
10134_ACEOF
10135
10136cat >>$CONFIG_STATUS <<_ACEOF
10137#
10138# INIT-COMMANDS section.
10139#
10140
10141AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10142# Capture the value of obsolete $ALL_LINGUAS because we need it to compute
10143 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10144 # from automake.
10145 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
10146 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10147 LINGUAS="${LINGUAS-%UNSET%}"
10148
10149
10150 install_sh="$install_sh"
10151
10152_ACEOF
10153
10154
10155
10156cat >>$CONFIG_STATUS <<\_ACEOF
10157for ac_config_target in $ac_config_targets
10158do
10159 case "$ac_config_target" in
10160 # Handling of arguments.
10161 "lib/stdbool.h" ) CONFIG_FILES="$CONFIG_FILES lib/stdbool.h:lib/stdbool_.h" ;;
10162 "bootstrap.sh" ) CONFIG_FILES="$CONFIG_FILES bootstrap.sh" ;;
10163 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10164 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10165 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10166 "sed/Makefile" ) CONFIG_FILES="$CONFIG_FILES sed/Makefile" ;;
10167 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
10168 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10169 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
10170 "lib/regex.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/regex.h:lib/regex_.h" ;;
10171 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10172 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10173 "gettext-fix" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gettext-fix" ;;
10174 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
10175 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10176echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10177 { (exit 1); exit 1; }; };;
10178 esac
10179done
10180
10181# If the user did not use the arguments to specify the items to instantiate,
10182# then the envvar interface is used. Set only those that are not.
10183# We use the long form for the default assignment because of an extremely
10184# bizarre bug on SunOS 4.1.3.
10185if $ac_need_defaults; then
10186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10188 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
10189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10190fi
10191
10192# Have a temporary directory for convenience. Make it in the build tree
10193# simply because there is no reason to put it here, and in addition,
10194# creating and moving files from /tmp can sometimes cause problems.
10195# Create a temporary directory, and hook for its removal unless debugging.
10196$debug ||
10197{
10198 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10199 trap '{ (exit 1); exit 1; }' 1 2 13 15
10200}
10201
10202# Create a (secure) tmp directory for tmp files.
10203
10204{
10205 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10206 test -n "$tmp" && test -d "$tmp"
10207} ||
10208{
10209 tmp=./confstat$$-$RANDOM
10210 (umask 077 && mkdir $tmp)
10211} ||
10212{
10213 echo "$me: cannot create a temporary directory in ." >&2
10214 { (exit 1); exit 1; }
10215}
10216
10217_ACEOF
10218
10219cat >>$CONFIG_STATUS <<_ACEOF
10220
10221#
10222# CONFIG_FILES section.
10223#
10224
10225# No need to generate the scripts if there are no CONFIG_FILES.
10226# This happens for instance when ./config.status config.h
10227if test -n "\$CONFIG_FILES"; then
10228 # Protect against being on the right side of a sed subst in config.status.
10229 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10230 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10231s,@SHELL@,$SHELL,;t t
10232s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10233s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10234s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10235s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10236s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10237s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10238s,@exec_prefix@,$exec_prefix,;t t
10239s,@prefix@,$prefix,;t t
10240s,@program_transform_name@,$program_transform_name,;t t
10241s,@bindir@,$bindir,;t t
10242s,@sbindir@,$sbindir,;t t
10243s,@libexecdir@,$libexecdir,;t t
10244s,@datadir@,$datadir,;t t
10245s,@sysconfdir@,$sysconfdir,;t t
10246s,@sharedstatedir@,$sharedstatedir,;t t
10247s,@localstatedir@,$localstatedir,;t t
10248s,@libdir@,$libdir,;t t
10249s,@includedir@,$includedir,;t t
10250s,@oldincludedir@,$oldincludedir,;t t
10251s,@infodir@,$infodir,;t t
10252s,@mandir@,$mandir,;t t
10253s,@build_alias@,$build_alias,;t t
10254s,@host_alias@,$host_alias,;t t
10255s,@target_alias@,$target_alias,;t t
10256s,@DEFS@,$DEFS,;t t
10257s,@ECHO_C@,$ECHO_C,;t t
10258s,@ECHO_N@,$ECHO_N,;t t
10259s,@ECHO_T@,$ECHO_T,;t t
10260s,@LIBS@,$LIBS,;t t
10261s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10262s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10263s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10264s,@CYGPATH_W@,$CYGPATH_W,;t t
10265s,@PACKAGE@,$PACKAGE,;t t
10266s,@VERSION@,$VERSION,;t t
10267s,@ACLOCAL@,$ACLOCAL,;t t
10268s,@AUTOCONF@,$AUTOCONF,;t t
10269s,@AUTOMAKE@,$AUTOMAKE,;t t
10270s,@AUTOHEADER@,$AUTOHEADER,;t t
10271s,@MAKEINFO@,$MAKEINFO,;t t
10272s,@install_sh@,$install_sh,;t t
10273s,@STRIP@,$STRIP,;t t
10274s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10275s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10276s,@mkdir_p@,$mkdir_p,;t t
10277s,@AWK@,$AWK,;t t
10278s,@SET_MAKE@,$SET_MAKE,;t t
10279s,@am__leading_dot@,$am__leading_dot,;t t
10280s,@AMTAR@,$AMTAR,;t t
10281s,@am__tar@,$am__tar,;t t
10282s,@am__untar@,$am__untar,;t t
10283s,@SED_FEATURE_VERSION@,$SED_FEATURE_VERSION,;t t
10284s,@CC@,$CC,;t t
10285s,@CFLAGS@,$CFLAGS,;t t
10286s,@LDFLAGS@,$LDFLAGS,;t t
10287s,@CPPFLAGS@,$CPPFLAGS,;t t
10288s,@ac_ct_CC@,$ac_ct_CC,;t t
10289s,@EXEEXT@,$EXEEXT,;t t
10290s,@OBJEXT@,$OBJEXT,;t t
10291s,@DEPDIR@,$DEPDIR,;t t
10292s,@am__include@,$am__include,;t t
10293s,@am__quote@,$am__quote,;t t
10294s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10295s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10296s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10297s,@CCDEPMODE@,$CCDEPMODE,;t t
10298s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10299s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10300s,@RANLIB@,$RANLIB,;t t
10301s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10302s,@CPP@,$CPP,;t t
10303s,@EGREP@,$EGREP,;t t
10304s,@HAVE__BOOL@,$HAVE__BOOL,;t t
10305s,@ALLOCA@,$ALLOCA,;t t
10306s,@LIBOBJS@,$LIBOBJS,;t t
10307s,@TEST_REGEX_TRUE@,$TEST_REGEX_TRUE,;t t
10308s,@TEST_REGEX_FALSE@,$TEST_REGEX_FALSE,;t t
10309s,@BUILD_HTML_TRUE@,$BUILD_HTML_TRUE,;t t
10310s,@BUILD_HTML_FALSE@,$BUILD_HTML_FALSE,;t t
10311s,@TEXI2HTML@,$TEXI2HTML,;t t
10312s,@MAKEINFO_HTML_TRUE@,$MAKEINFO_HTML_TRUE,;t t
10313s,@MAKEINFO_HTML_FALSE@,$MAKEINFO_HTML_FALSE,;t t
10314s,@TEXI2HTML_HTML_TRUE@,$TEXI2HTML_HTML_TRUE,;t t
10315s,@TEXI2HTML_HTML_FALSE@,$TEXI2HTML_HTML_FALSE,;t t
10316s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10317s,@MSGFMT@,$MSGFMT,;t t
10318s,@GMSGFMT@,$GMSGFMT,;t t
10319s,@XGETTEXT@,$XGETTEXT,;t t
10320s,@MSGMERGE@,$MSGMERGE,;t t
10321s,@build@,$build,;t t
10322s,@build_cpu@,$build_cpu,;t t
10323s,@build_vendor@,$build_vendor,;t t
10324s,@build_os@,$build_os,;t t
10325s,@host@,$host,;t t
10326s,@host_cpu@,$host_cpu,;t t
10327s,@host_vendor@,$host_vendor,;t t
10328s,@host_os@,$host_os,;t t
10329s,@GLIBC21@,$GLIBC21,;t t
10330s,@LIBICONV@,$LIBICONV,;t t
10331s,@LTLIBICONV@,$LTLIBICONV,;t t
10332s,@INTLBISON@,$INTLBISON,;t t
10333s,@USE_NLS@,$USE_NLS,;t t
10334s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
10335s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10336s,@CATOBJEXT@,$CATOBJEXT,;t t
10337s,@INTLOBJS@,$INTLOBJS,;t t
10338s,@DATADIRNAME@,$DATADIRNAME,;t t
10339s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10340s,@GENCAT@,$GENCAT,;t t
10341s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
10342s,@INTLLIBS@,$INTLLIBS,;t t
10343s,@LIBINTL@,$LIBINTL,;t t
10344s,@LTLIBINTL@,$LTLIBINTL,;t t
10345s,@POSUB@,$POSUB,;t t
10346s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10347CEOF
10348
10349_ACEOF
10350
10351 cat >>$CONFIG_STATUS <<\_ACEOF
10352 # Split the substitutions into bite-sized pieces for seds with
10353 # small command number limits, like on Digital OSF/1 and HP-UX.
10354 ac_max_sed_lines=48
10355 ac_sed_frag=1 # Number of current file.
10356 ac_beg=1 # First line for current file.
10357 ac_end=$ac_max_sed_lines # Line after last line for current file.
10358 ac_more_lines=:
10359 ac_sed_cmds=
10360 while $ac_more_lines; do
10361 if test $ac_beg -gt 1; then
10362 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10363 else
10364 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10365 fi
10366 if test ! -s $tmp/subs.frag; then
10367 ac_more_lines=false
10368 else
10369 # The purpose of the label and of the branching condition is to
10370 # speed up the sed processing (if there are no `@' at all, there
10371 # is no need to browse any of the substitutions).
10372 # These are the two extra sed commands mentioned above.
10373 (echo ':t
10374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10375 if test -z "$ac_sed_cmds"; then
10376 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10377 else
10378 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10379 fi
10380 ac_sed_frag=`expr $ac_sed_frag + 1`
10381 ac_beg=$ac_end
10382 ac_end=`expr $ac_end + $ac_max_sed_lines`
10383 fi
10384 done
10385 if test -z "$ac_sed_cmds"; then
10386 ac_sed_cmds=cat
10387 fi
10388fi # test -n "$CONFIG_FILES"
10389
10390_ACEOF
10391cat >>$CONFIG_STATUS <<\_ACEOF
10392for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10394 case $ac_file in
10395 - | *:- | *:-:* ) # input from stdin
10396 cat >$tmp/stdin
10397 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10399 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10401 * ) ac_file_in=$ac_file.in ;;
10402 esac
10403
10404 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10405 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10406$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10407 X"$ac_file" : 'X\(//\)[^/]' \| \
10408 X"$ac_file" : 'X\(//\)$' \| \
10409 X"$ac_file" : 'X\(/\)' \| \
10410 . : '\(.\)' 2>/dev/null ||
10411echo X"$ac_file" |
10412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10414 /^X\(\/\/\)$/{ s//\1/; q; }
10415 /^X\(\/\).*/{ s//\1/; q; }
10416 s/.*/./; q'`
10417 { if $as_mkdir_p; then
10418 mkdir -p "$ac_dir"
10419 else
10420 as_dir="$ac_dir"
10421 as_dirs=
10422 while test ! -d "$as_dir"; do
10423 as_dirs="$as_dir $as_dirs"
10424 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10425$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10426 X"$as_dir" : 'X\(//\)[^/]' \| \
10427 X"$as_dir" : 'X\(//\)$' \| \
10428 X"$as_dir" : 'X\(/\)' \| \
10429 . : '\(.\)' 2>/dev/null ||
10430echo X"$as_dir" |
10431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10433 /^X\(\/\/\)$/{ s//\1/; q; }
10434 /^X\(\/\).*/{ s//\1/; q; }
10435 s/.*/./; q'`
10436 done
10437 test ! -n "$as_dirs" || mkdir $as_dirs
10438 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10439echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10440 { (exit 1); exit 1; }; }; }
10441
10442 ac_builddir=.
10443
10444if test "$ac_dir" != .; then
10445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10446 # A "../" for each directory in $ac_dir_suffix.
10447 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10448else
10449 ac_dir_suffix= ac_top_builddir=
10450fi
10451
10452case $srcdir in
10453 .) # No --srcdir option. We are building in place.
10454 ac_srcdir=.
10455 if test -z "$ac_top_builddir"; then
10456 ac_top_srcdir=.
10457 else
10458 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10459 fi ;;
10460 [\\/]* | ?:[\\/]* ) # Absolute path.
10461 ac_srcdir=$srcdir$ac_dir_suffix;
10462 ac_top_srcdir=$srcdir ;;
10463 *) # Relative path.
10464 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10465 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10466esac
10467
10468# Do not use `cd foo && pwd` to compute absolute paths, because
10469# the directories may not exist.
10470case `pwd` in
10471.) ac_abs_builddir="$ac_dir";;
10472*)
10473 case "$ac_dir" in
10474 .) ac_abs_builddir=`pwd`;;
10475 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10476 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10477 esac;;
10478esac
10479case $ac_abs_builddir in
10480.) ac_abs_top_builddir=${ac_top_builddir}.;;
10481*)
10482 case ${ac_top_builddir}. in
10483 .) ac_abs_top_builddir=$ac_abs_builddir;;
10484 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10485 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10486 esac;;
10487esac
10488case $ac_abs_builddir in
10489.) ac_abs_srcdir=$ac_srcdir;;
10490*)
10491 case $ac_srcdir in
10492 .) ac_abs_srcdir=$ac_abs_builddir;;
10493 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10494 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10495 esac;;
10496esac
10497case $ac_abs_builddir in
10498.) ac_abs_top_srcdir=$ac_top_srcdir;;
10499*)
10500 case $ac_top_srcdir in
10501 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10502 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10503 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10504 esac;;
10505esac
10506
10507
10508 case $INSTALL in
10509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10510 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10511 esac
10512
10513 if test x"$ac_file" != x-; then
10514 { echo "$as_me:$LINENO: creating $ac_file" >&5
10515echo "$as_me: creating $ac_file" >&6;}
10516 rm -f "$ac_file"
10517 fi
10518 # Let's still pretend it is `configure' which instantiates (i.e., don't
10519 # use $as_me), people would be surprised to read:
10520 # /* config.h. Generated by config.status. */
10521 if test x"$ac_file" = x-; then
10522 configure_input=
10523 else
10524 configure_input="$ac_file. "
10525 fi
10526 configure_input=$configure_input"Generated from `echo $ac_file_in |
10527 sed 's,.*/,,'` by configure."
10528
10529 # First look for the input files in the build tree, otherwise in the
10530 # src tree.
10531 ac_file_inputs=`IFS=:
10532 for f in $ac_file_in; do
10533 case $f in
10534 -) echo $tmp/stdin ;;
10535 [\\/$]*)
10536 # Absolute (can't be DOS-style, as IFS=:)
10537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10538echo "$as_me: error: cannot find input file: $f" >&2;}
10539 { (exit 1); exit 1; }; }
10540 echo "$f";;
10541 *) # Relative
10542 if test -f "$f"; then
10543 # Build tree
10544 echo "$f"
10545 elif test -f "$srcdir/$f"; then
10546 # Source tree
10547 echo "$srcdir/$f"
10548 else
10549 # /dev/null tree
10550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10551echo "$as_me: error: cannot find input file: $f" >&2;}
10552 { (exit 1); exit 1; }; }
10553 fi;;
10554 esac
10555 done` || { (exit 1); exit 1; }
10556_ACEOF
10557cat >>$CONFIG_STATUS <<_ACEOF
10558 sed "$ac_vpsub
10559$extrasub
10560_ACEOF
10561cat >>$CONFIG_STATUS <<\_ACEOF
10562:t
10563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10564s,@configure_input@,$configure_input,;t t
10565s,@srcdir@,$ac_srcdir,;t t
10566s,@abs_srcdir@,$ac_abs_srcdir,;t t
10567s,@top_srcdir@,$ac_top_srcdir,;t t
10568s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10569s,@builddir@,$ac_builddir,;t t
10570s,@abs_builddir@,$ac_abs_builddir,;t t
10571s,@top_builddir@,$ac_top_builddir,;t t
10572s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10573s,@INSTALL@,$ac_INSTALL,;t t
10574" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10575 rm -f $tmp/stdin
10576 if test x"$ac_file" != x-; then
10577 mv $tmp/out $ac_file
10578 else
10579 cat $tmp/out
10580 rm -f $tmp/out
10581 fi
10582
10583 # Run the commands associated with the file.
10584 case $ac_file in
10585 bootstrap.sh ) chmod +x bootstrap.sh ;;
10586 esac
10587done
10588_ACEOF
10589cat >>$CONFIG_STATUS <<\_ACEOF
10590
10591#
10592# CONFIG_HEADER section.
10593#
10594
10595# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10596# NAME is the cpp macro being defined and VALUE is the value it is being given.
10597#
10598# ac_d sets the value in "#define NAME VALUE" lines.
10599ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10600ac_dB='[ ].*$,\1#\2'
10601ac_dC=' '
10602ac_dD=',;t'
10603# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10604ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10605ac_uB='$,\1#\2define\3'
10606ac_uC=' '
10607ac_uD=',;t'
10608
10609for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10611 case $ac_file in
10612 - | *:- | *:-:* ) # input from stdin
10613 cat >$tmp/stdin
10614 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10616 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10618 * ) ac_file_in=$ac_file.in ;;
10619 esac
10620
10621 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10622echo "$as_me: creating $ac_file" >&6;}
10623
10624 # First look for the input files in the build tree, otherwise in the
10625 # src tree.
10626 ac_file_inputs=`IFS=:
10627 for f in $ac_file_in; do
10628 case $f in
10629 -) echo $tmp/stdin ;;
10630 [\\/$]*)
10631 # Absolute (can't be DOS-style, as IFS=:)
10632 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10633echo "$as_me: error: cannot find input file: $f" >&2;}
10634 { (exit 1); exit 1; }; }
10635 # Do quote $f, to prevent DOS paths from being IFS'd.
10636 echo "$f";;
10637 *) # Relative
10638 if test -f "$f"; then
10639 # Build tree
10640 echo "$f"
10641 elif test -f "$srcdir/$f"; then
10642 # Source tree
10643 echo "$srcdir/$f"
10644 else
10645 # /dev/null tree
10646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10647echo "$as_me: error: cannot find input file: $f" >&2;}
10648 { (exit 1); exit 1; }; }
10649 fi;;
10650 esac
10651 done` || { (exit 1); exit 1; }
10652 # Remove the trailing spaces.
10653 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10654
10655_ACEOF
10656
10657# Transform confdefs.h into two sed scripts, `conftest.defines' and
10658# `conftest.undefs', that substitutes the proper values into
10659# config.h.in to produce config.h. The first handles `#define'
10660# templates, and the second `#undef' templates.
10661# And first: Protect against being on the right side of a sed subst in
10662# config.status. Protect against being in an unquoted here document
10663# in config.status.
10664rm -f conftest.defines conftest.undefs
10665# Using a here document instead of a string reduces the quoting nightmare.
10666# Putting comments in sed scripts is not portable.
10667#
10668# `end' is used to avoid that the second main sed command (meant for
10669# 0-ary CPP macros) applies to n-ary macro definitions.
10670# See the Autoconf documentation for `clear'.
10671cat >confdef2sed.sed <<\_ACEOF
10672s/[\\&,]/\\&/g
10673s,[\\$`],\\&,g
10674t clear
10675: clear
10676s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10677t end
10678s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10679: end
10680_ACEOF
10681# If some macros were called several times there might be several times
10682# the same #defines, which is useless. Nevertheless, we may not want to
10683# sort them, since we want the *last* AC-DEFINE to be honored.
10684uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10685sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10686rm -f confdef2sed.sed
10687
10688# This sed command replaces #undef with comments. This is necessary, for
10689# example, in the case of _POSIX_SOURCE, which is predefined and required
10690# on some systems where configure will not decide to define it.
10691cat >>conftest.undefs <<\_ACEOF
10692s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10693_ACEOF
10694
10695# Break up conftest.defines because some shells have a limit on the size
10696# of here documents, and old seds have small limits too (100 cmds).
10697echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10698echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10699echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10700echo ' :' >>$CONFIG_STATUS
10701rm -f conftest.tail
10702while grep . conftest.defines >/dev/null
10703do
10704 # Write a limited-size here document to $tmp/defines.sed.
10705 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10706 # Speed up: don't consider the non `#define' lines.
10707 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10708 # Work around the forget-to-reset-the-flag bug.
10709 echo 't clr' >>$CONFIG_STATUS
10710 echo ': clr' >>$CONFIG_STATUS
10711 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10712 echo 'CEOF
10713 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10714 rm -f $tmp/in
10715 mv $tmp/out $tmp/in
10716' >>$CONFIG_STATUS
10717 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10718 rm -f conftest.defines
10719 mv conftest.tail conftest.defines
10720done
10721rm -f conftest.defines
10722echo ' fi # grep' >>$CONFIG_STATUS
10723echo >>$CONFIG_STATUS
10724
10725# Break up conftest.undefs because some shells have a limit on the size
10726# of here documents, and old seds have small limits too (100 cmds).
10727echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10728rm -f conftest.tail
10729while grep . conftest.undefs >/dev/null
10730do
10731 # Write a limited-size here document to $tmp/undefs.sed.
10732 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10733 # Speed up: don't consider the non `#undef'
10734 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10735 # Work around the forget-to-reset-the-flag bug.
10736 echo 't clr' >>$CONFIG_STATUS
10737 echo ': clr' >>$CONFIG_STATUS
10738 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10739 echo 'CEOF
10740 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10741 rm -f $tmp/in
10742 mv $tmp/out $tmp/in
10743' >>$CONFIG_STATUS
10744 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10745 rm -f conftest.undefs
10746 mv conftest.tail conftest.undefs
10747done
10748rm -f conftest.undefs
10749
10750cat >>$CONFIG_STATUS <<\_ACEOF
10751 # Let's still pretend it is `configure' which instantiates (i.e., don't
10752 # use $as_me), people would be surprised to read:
10753 # /* config.h. Generated by config.status. */
10754 if test x"$ac_file" = x-; then
10755 echo "/* Generated by configure. */" >$tmp/config.h
10756 else
10757 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10758 fi
10759 cat $tmp/in >>$tmp/config.h
10760 rm -f $tmp/in
10761 if test x"$ac_file" != x-; then
10762 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10763 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10764echo "$as_me: $ac_file is unchanged" >&6;}
10765 else
10766 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10767$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10768 X"$ac_file" : 'X\(//\)[^/]' \| \
10769 X"$ac_file" : 'X\(//\)$' \| \
10770 X"$ac_file" : 'X\(/\)' \| \
10771 . : '\(.\)' 2>/dev/null ||
10772echo X"$ac_file" |
10773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10775 /^X\(\/\/\)$/{ s//\1/; q; }
10776 /^X\(\/\).*/{ s//\1/; q; }
10777 s/.*/./; q'`
10778 { if $as_mkdir_p; then
10779 mkdir -p "$ac_dir"
10780 else
10781 as_dir="$ac_dir"
10782 as_dirs=
10783 while test ! -d "$as_dir"; do
10784 as_dirs="$as_dir $as_dirs"
10785 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10786$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10787 X"$as_dir" : 'X\(//\)[^/]' \| \
10788 X"$as_dir" : 'X\(//\)$' \| \
10789 X"$as_dir" : 'X\(/\)' \| \
10790 . : '\(.\)' 2>/dev/null ||
10791echo X"$as_dir" |
10792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10794 /^X\(\/\/\)$/{ s//\1/; q; }
10795 /^X\(\/\).*/{ s//\1/; q; }
10796 s/.*/./; q'`
10797 done
10798 test ! -n "$as_dirs" || mkdir $as_dirs
10799 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10800echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10801 { (exit 1); exit 1; }; }; }
10802
10803 rm -f $ac_file
10804 mv $tmp/config.h $ac_file
10805 fi
10806 else
10807 cat $tmp/config.h
10808 rm -f $tmp/config.h
10809 fi
10810# Compute $ac_file's index in $config_headers.
10811_am_stamp_count=1
10812for _am_header in $config_headers :; do
10813 case $_am_header in
10814 $ac_file | $ac_file:* )
10815 break ;;
10816 * )
10817 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10818 esac
10819done
10820echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10821$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10822 X$ac_file : 'X\(//\)[^/]' \| \
10823 X$ac_file : 'X\(//\)$' \| \
10824 X$ac_file : 'X\(/\)' \| \
10825 . : '\(.\)' 2>/dev/null ||
10826echo X$ac_file |
10827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10829 /^X\(\/\/\)$/{ s//\1/; q; }
10830 /^X\(\/\).*/{ s//\1/; q; }
10831 s/.*/./; q'`/stamp-h$_am_stamp_count
10832done
10833_ACEOF
10834cat >>$CONFIG_STATUS <<\_ACEOF
10835
10836#
10837# CONFIG_LINKS section.
10838#
10839
10840for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10841 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10842 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10843
10844 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10845echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10846
10847 if test ! -r $srcdir/$ac_source; then
10848 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10849echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10850 { (exit 1); exit 1; }; }
10851 fi
10852 rm -f $ac_dest
10853
10854 # Make relative symlinks.
10855 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10856$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10857 X"$ac_dest" : 'X\(//\)[^/]' \| \
10858 X"$ac_dest" : 'X\(//\)$' \| \
10859 X"$ac_dest" : 'X\(/\)' \| \
10860 . : '\(.\)' 2>/dev/null ||
10861echo X"$ac_dest" |
10862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10864 /^X\(\/\/\)$/{ s//\1/; q; }
10865 /^X\(\/\).*/{ s//\1/; q; }
10866 s/.*/./; q'`
10867 { if $as_mkdir_p; then
10868 mkdir -p "$ac_dest_dir"
10869 else
10870 as_dir="$ac_dest_dir"
10871 as_dirs=
10872 while test ! -d "$as_dir"; do
10873 as_dirs="$as_dir $as_dirs"
10874 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10875$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10876 X"$as_dir" : 'X\(//\)[^/]' \| \
10877 X"$as_dir" : 'X\(//\)$' \| \
10878 X"$as_dir" : 'X\(/\)' \| \
10879 . : '\(.\)' 2>/dev/null ||
10880echo X"$as_dir" |
10881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10883 /^X\(\/\/\)$/{ s//\1/; q; }
10884 /^X\(\/\).*/{ s//\1/; q; }
10885 s/.*/./; q'`
10886 done
10887 test ! -n "$as_dirs" || mkdir $as_dirs
10888 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
10889echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
10890 { (exit 1); exit 1; }; }; }
10891
10892 ac_builddir=.
10893
10894if test "$ac_dest_dir" != .; then
10895 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10896 # A "../" for each directory in $ac_dir_suffix.
10897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10898else
10899 ac_dir_suffix= ac_top_builddir=
10900fi
10901
10902case $srcdir in
10903 .) # No --srcdir option. We are building in place.
10904 ac_srcdir=.
10905 if test -z "$ac_top_builddir"; then
10906 ac_top_srcdir=.
10907 else
10908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10909 fi ;;
10910 [\\/]* | ?:[\\/]* ) # Absolute path.
10911 ac_srcdir=$srcdir$ac_dir_suffix;
10912 ac_top_srcdir=$srcdir ;;
10913 *) # Relative path.
10914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10916esac
10917
10918# Do not use `cd foo && pwd` to compute absolute paths, because
10919# the directories may not exist.
10920case `pwd` in
10921.) ac_abs_builddir="$ac_dest_dir";;
10922*)
10923 case "$ac_dest_dir" in
10924 .) ac_abs_builddir=`pwd`;;
10925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
10926 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
10927 esac;;
10928esac
10929case $ac_abs_builddir in
10930.) ac_abs_top_builddir=${ac_top_builddir}.;;
10931*)
10932 case ${ac_top_builddir}. in
10933 .) ac_abs_top_builddir=$ac_abs_builddir;;
10934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10936 esac;;
10937esac
10938case $ac_abs_builddir in
10939.) ac_abs_srcdir=$ac_srcdir;;
10940*)
10941 case $ac_srcdir in
10942 .) ac_abs_srcdir=$ac_abs_builddir;;
10943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10945 esac;;
10946esac
10947case $ac_abs_builddir in
10948.) ac_abs_top_srcdir=$ac_top_srcdir;;
10949*)
10950 case $ac_top_srcdir in
10951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10954 esac;;
10955esac
10956
10957
10958 case $srcdir in
10959 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10960 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10961 esac
10962
10963 # Try a symlink, then a hard link, then a copy.
10964 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10965 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10966 cp -p $srcdir/$ac_source $ac_dest ||
10967 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10968echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10969 { (exit 1); exit 1; }; }
10970done
10971_ACEOF
10972cat >>$CONFIG_STATUS <<\_ACEOF
10973
10974#
10975# CONFIG_COMMANDS section.
10976#
10977for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10978 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10979 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10980 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10981$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10982 X"$ac_dest" : 'X\(//\)[^/]' \| \
10983 X"$ac_dest" : 'X\(//\)$' \| \
10984 X"$ac_dest" : 'X\(/\)' \| \
10985 . : '\(.\)' 2>/dev/null ||
10986echo X"$ac_dest" |
10987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10989 /^X\(\/\/\)$/{ s//\1/; q; }
10990 /^X\(\/\).*/{ s//\1/; q; }
10991 s/.*/./; q'`
10992 { if $as_mkdir_p; then
10993 mkdir -p "$ac_dir"
10994 else
10995 as_dir="$ac_dir"
10996 as_dirs=
10997 while test ! -d "$as_dir"; do
10998 as_dirs="$as_dir $as_dirs"
10999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11001 X"$as_dir" : 'X\(//\)[^/]' \| \
11002 X"$as_dir" : 'X\(//\)$' \| \
11003 X"$as_dir" : 'X\(/\)' \| \
11004 . : '\(.\)' 2>/dev/null ||
11005echo X"$as_dir" |
11006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11008 /^X\(\/\/\)$/{ s//\1/; q; }
11009 /^X\(\/\).*/{ s//\1/; q; }
11010 s/.*/./; q'`
11011 done
11012 test ! -n "$as_dirs" || mkdir $as_dirs
11013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11014echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11015 { (exit 1); exit 1; }; }; }
11016
11017 ac_builddir=.
11018
11019if test "$ac_dir" != .; then
11020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11021 # A "../" for each directory in $ac_dir_suffix.
11022 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11023else
11024 ac_dir_suffix= ac_top_builddir=
11025fi
11026
11027case $srcdir in
11028 .) # No --srcdir option. We are building in place.
11029 ac_srcdir=.
11030 if test -z "$ac_top_builddir"; then
11031 ac_top_srcdir=.
11032 else
11033 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11034 fi ;;
11035 [\\/]* | ?:[\\/]* ) # Absolute path.
11036 ac_srcdir=$srcdir$ac_dir_suffix;
11037 ac_top_srcdir=$srcdir ;;
11038 *) # Relative path.
11039 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11040 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11041esac
11042
11043# Do not use `cd foo && pwd` to compute absolute paths, because
11044# the directories may not exist.
11045case `pwd` in
11046.) ac_abs_builddir="$ac_dir";;
11047*)
11048 case "$ac_dir" in
11049 .) ac_abs_builddir=`pwd`;;
11050 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11051 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11052 esac;;
11053esac
11054case $ac_abs_builddir in
11055.) ac_abs_top_builddir=${ac_top_builddir}.;;
11056*)
11057 case ${ac_top_builddir}. in
11058 .) ac_abs_top_builddir=$ac_abs_builddir;;
11059 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11060 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11061 esac;;
11062esac
11063case $ac_abs_builddir in
11064.) ac_abs_srcdir=$ac_srcdir;;
11065*)
11066 case $ac_srcdir in
11067 .) ac_abs_srcdir=$ac_abs_builddir;;
11068 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11069 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11070 esac;;
11071esac
11072case $ac_abs_builddir in
11073.) ac_abs_top_srcdir=$ac_top_srcdir;;
11074*)
11075 case $ac_top_srcdir in
11076 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11077 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11078 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11079 esac;;
11080esac
11081
11082
11083 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11084echo "$as_me: executing $ac_dest commands" >&6;}
11085 case $ac_dest in
11086 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11087 # Strip MF so we end up with the name of the file.
11088 mf=`echo "$mf" | sed -e 's/:.*$//'`
11089 # Check whether this is an Automake generated Makefile or not.
11090 # We used to match only the files named `Makefile.in', but
11091 # some people rename them; so instead we look at the file content.
11092 # Grep'ing the first line is not enough: some people post-process
11093 # each Makefile.in and add a new line on top of each file to say so.
11094 # So let's grep whole file.
11095 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11096 dirpart=`(dirname "$mf") 2>/dev/null ||
11097$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11098 X"$mf" : 'X\(//\)[^/]' \| \
11099 X"$mf" : 'X\(//\)$' \| \
11100 X"$mf" : 'X\(/\)' \| \
11101 . : '\(.\)' 2>/dev/null ||
11102echo X"$mf" |
11103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11105 /^X\(\/\/\)$/{ s//\1/; q; }
11106 /^X\(\/\).*/{ s//\1/; q; }
11107 s/.*/./; q'`
11108 else
11109 continue
11110 fi
11111 # Extract the definition of DEPDIR, am__include, and am__quote
11112 # from the Makefile without running `make'.
11113 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11114 test -z "$DEPDIR" && continue
11115 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11116 test -z "am__include" && continue
11117 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11118 # When using ansi2knr, U may be empty or an underscore; expand it
11119 U=`sed -n 's/^U = //p' < "$mf"`
11120 # Find all dependency output files, they are included files with
11121 # $(DEPDIR) in their names. We invoke sed twice because it is the
11122 # simplest approach to changing $(DEPDIR) to its actual value in the
11123 # expansion.
11124 for file in `sed -n "
11125 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11126 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11127 # Make sure the directory exists.
11128 test -f "$dirpart/$file" && continue
11129 fdir=`(dirname "$file") 2>/dev/null ||
11130$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11131 X"$file" : 'X\(//\)[^/]' \| \
11132 X"$file" : 'X\(//\)$' \| \
11133 X"$file" : 'X\(/\)' \| \
11134 . : '\(.\)' 2>/dev/null ||
11135echo X"$file" |
11136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11138 /^X\(\/\/\)$/{ s//\1/; q; }
11139 /^X\(\/\).*/{ s//\1/; q; }
11140 s/.*/./; q'`
11141 { if $as_mkdir_p; then
11142 mkdir -p $dirpart/$fdir
11143 else
11144 as_dir=$dirpart/$fdir
11145 as_dirs=
11146 while test ! -d "$as_dir"; do
11147 as_dirs="$as_dir $as_dirs"
11148 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11149$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11150 X"$as_dir" : 'X\(//\)[^/]' \| \
11151 X"$as_dir" : 'X\(//\)$' \| \
11152 X"$as_dir" : 'X\(/\)' \| \
11153 . : '\(.\)' 2>/dev/null ||
11154echo X"$as_dir" |
11155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11157 /^X\(\/\/\)$/{ s//\1/; q; }
11158 /^X\(\/\).*/{ s//\1/; q; }
11159 s/.*/./; q'`
11160 done
11161 test ! -n "$as_dirs" || mkdir $as_dirs
11162 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11163echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11164 { (exit 1); exit 1; }; }; }
11165
11166 # echo "creating $dirpart/$file"
11167 echo '# dummy' > "$dirpart/$file"
11168 done
11169done
11170 ;;
11171 default-1 )
11172 for ac_file in $CONFIG_FILES; do
11173 # Support "outfile[:infile[:infile...]]"
11174 case "$ac_file" in
11175 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11176 esac
11177 # PO directories have a Makefile.in generated from Makefile.in.in.
11178 case "$ac_file" in */Makefile.in)
11179 # Adjust a relative srcdir.
11180 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11181 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11182 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11183 # In autoconf-2.13 it is called $ac_given_srcdir.
11184 # In autoconf-2.50 it is called $srcdir.
11185 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11186 case "$ac_given_srcdir" in
11187 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11188 /*) top_srcdir="$ac_given_srcdir" ;;
11189 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11190 esac
11191 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11192 rm -f "$ac_dir/POTFILES"
11193 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11194 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11195 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11196 # on $ac_dir but don't depend on user-specified configuration
11197 # parameters.
11198 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11199 # The LINGUAS file contains the set of available languages.
11200 if test -n "$ALL_LINGUAS"; then
11201 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11202 fi
11203 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11204 # Hide the ALL_LINGUAS assigment from automake.
11205 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11206 fi
11207 case "$ac_given_srcdir" in
11208 .) srcdirpre= ;;
11209 *) srcdirpre='$(srcdir)/' ;;
11210 esac
11211 POFILES=
11212 GMOFILES=
11213 UPDATEPOFILES=
11214 DUMMYPOFILES=
11215 for lang in $ALL_LINGUAS; do
11216 POFILES="$POFILES $srcdirpre$lang.po"
11217 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11218 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11219 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11220 done
11221 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11222 # environment variable.
11223 INST_LINGUAS=
11224 if test -n "$ALL_LINGUAS"; then
11225 for presentlang in $ALL_LINGUAS; do
11226 useit=no
11227 if test "%UNSET%" != "$LINGUAS"; then
11228 desiredlanguages="$LINGUAS"
11229 else
11230 desiredlanguages="$ALL_LINGUAS"
11231 fi
11232 for desiredlang in $desiredlanguages; do
11233 # Use the presentlang catalog if desiredlang is
11234 # a. equal to presentlang, or
11235 # b. a variant of presentlang (because in this case,
11236 # presentlang can be used as a fallback for messages
11237 # which are not translated in the desiredlang catalog).
11238 case "$desiredlang" in
11239 "$presentlang"*) useit=yes;;
11240 esac
11241 done
11242 if test $useit = yes; then
11243 INST_LINGUAS="$INST_LINGUAS $presentlang"
11244 fi
11245 done
11246 fi
11247 CATALOGS=
11248 if test -n "$INST_LINGUAS"; then
11249 for lang in $INST_LINGUAS; do
11250 CATALOGS="$CATALOGS $lang.gmo"
11251 done
11252 fi
11253 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11254 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11255 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11256 if test -f "$f"; then
11257 case "$f" in
11258 *.orig | *.bak | *~) ;;
11259 *) cat "$f" >> "$ac_dir/Makefile" ;;
11260 esac
11261 fi
11262 done
11263 fi
11264 ;;
11265 esac
11266 done ;;
11267 gettext-fix )
11268 sed -e '/^mkinstalldirs *=/a\' \
11269 -e "install_sh=$install_sh" \
11270 -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \
11271 intl/Makefile > intl/Makefile.tmp
11272 mv intl/Makefile.tmp intl/Makefile
11273 sed -e '/^mkinstalldirs *=/a\' \
11274 -e "install_sh=$install_sh" \
11275 -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \
11276 po/Makefile > po/Makefile.tmp
11277 mv po/Makefile.tmp po/Makefile ;;
11278 esac
11279done
11280_ACEOF
11281
11282cat >>$CONFIG_STATUS <<\_ACEOF
11283
11284{ (exit 0); exit 0; }
11285_ACEOF
11286chmod +x $CONFIG_STATUS
11287ac_clean_files=$ac_clean_files_save
11288
11289
11290# configure is writing to config.log, and then calls config.status.
11291# config.status does its own redirection, appending to config.log.
11292# Unfortunately, on DOS this fails, as config.log is still kept open
11293# by configure, so config.status won't be able to write to it; its
11294# output is simply discarded. So we exec the FD to /dev/null,
11295# effectively closing config.log, so it can be properly (re)opened and
11296# appended to by config.status. When coming back to configure, we
11297# need to make the FD available again.
11298if test "$no_create" != yes; then
11299 ac_cs_success=:
11300 ac_config_status_args=
11301 test "$silent" = yes &&
11302 ac_config_status_args="$ac_config_status_args --quiet"
11303 exec 5>/dev/null
11304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11305 exec 5>>config.log
11306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11307 # would make configure fail if this is the last instruction.
11308 $ac_cs_success || { (exit 1); exit 1; }
11309fi
11310
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette