configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Texinfo 4.8.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='GNU Texinfo'
269 PACKAGE_TARNAME='texinfo'
270 PACKAGE_VERSION='4.8'
271 PACKAGE_STRING='GNU Texinfo 4.8'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="makeinfo/makeinfo.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 gl_header_list=
313 ac_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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP EGREP RANLIB ac_ct_RANLIB HELP2MAN ALLOCA LIBOBJS build build_cpu build_vendor build_os native_tools TOOLS_ONLY_TRUE TOOLS_ONLY_FALSE TERMLIBS host host_cpu host_vendor host_os INSTALL_WARNINGS_TRUE INSTALL_WARNINGS_FALSE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures GNU Texinfo 4.8 to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847 case $ac_init_help in
848 short | recursive ) echo "Configuration of GNU Texinfo 4.8:";;
849 esac
850 cat <<\_ACEOF
851
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --enable-multiplatform put executables in bin/PLATFORM
860 --disable-install-warnings omit make install warnings about TeX files
861 --disable-nls do not use Native Language Support
862 --disable-rpath do not hardcode runtime library paths
863
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
869 --without-libiconv-prefix don't search for libiconv in includedir and libdir
870 --with-included-gettext use the GNU gettext library included here
871 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
872 --without-libintl-prefix don't search for libintl in includedir and libdir
873
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 _ACEOF
887 fi
888
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
919
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
924 *)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
942 *)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
958
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
974 cd $ac_popdir
975 done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981 GNU Texinfo configure 4.8
982 generated by GNU Autoconf 2.59
983
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by GNU Texinfo $as_me 4.8, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114 {
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127 }
1128 echo
1129
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306 gl_header_list="$gl_header_list fcntl.h"
1307 gl_header_list="$gl_header_list sys/time.h"
1308 gl_header_list="$gl_header_list unistd.h"
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers config.h:config.in"
1335 # Keep filename to 8.3 for MS-DOS.
1336
1337 am__api_version="1.9"
1338 ac_aux_dir=
1339 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1352 fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
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.
1376 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1377 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1378 if test -z "$INSTALL"; then
1379 if test "${ac_cv_path_install+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 # Account for people who put trailing slashes in PATH elements.
1388 case $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 ;;
1416 esac
1417 done
1418
1419
1420 fi
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
1430 fi
1431 echo "$as_me:$LINENO: result: $INSTALL" >&5
1432 echo "${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.
1436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1437
1438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1439
1440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1441
1442 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1443 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1444 # Just in case
1445 sleep 1
1446 echo 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).
1452 if (
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
1467 alias in your environment" >&5
1468 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1469 alias in your environment" >&2;}
1470 { (exit 1); exit 1; }; }
1471 fi
1472
1473 test "$2" = conftest.file
1474 )
1475 then
1476 # Ok.
1477 :
1478 else
1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1480 Check your system clock" >&5
1481 echo "$as_me: error: newly created file is older than distributed files!
1482 Check your system clock" >&2;}
1483 { (exit 1); exit 1; }; }
1484 fi
1485 echo "$as_me:$LINENO: result: yes" >&5
1486 echo "${ECHO_T}yes" >&6
1487 test "$program_prefix" != NONE &&
1488 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1489 # Use a double $ so make ignores it.
1490 test "$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.
1494 cat <<\_ACEOF >conftest.sed
1495 s/[\\$]/&&/g;s/;s,x,x,$//
1496 _ACEOF
1497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1498 rm conftest.sed
1499
1500 # expand $ac_aux_dir to an absolute path
1501 am_aux_dir=`cd $ac_aux_dir && pwd`
1502
1503 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1504 # Use eval to expand $SHELL
1505 if eval "$MISSING --run true"; then
1506 am_missing_run="$MISSING --run "
1507 else
1508 am_missing_run=
1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1510 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1511 fi
1512
1513 if 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 --'
1529 else
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
1544 fi
1545
1546 for ac_prog in gawk mawk nawk awk
1547 do
1548 # Extract the first word of "$ac_prog", so it can be a program name with args.
1549 set dummy $ac_prog; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_AWK+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 if test -n "$AWK"; then
1556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557 else
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 for as_dir in $PATH
1560 do
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
1569 done
1570 done
1571
1572 fi
1573 fi
1574 AWK=$ac_cv_prog_AWK
1575 if test -n "$AWK"; then
1576 echo "$as_me:$LINENO: result: $AWK" >&5
1577 echo "${ECHO_T}$AWK" >&6
1578 else
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1581 fi
1582
1583 test -n "$AWK" && break
1584 done
1585
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 cat >conftest.make <<\_ACEOF
1593 all:
1594 @echo 'ac_maketemp="$(MAKE)"'
1595 _ACEOF
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599 eval ac_cv_prog_make_${ac_make}_set=yes
1600 else
1601 eval ac_cv_prog_make_${ac_make}_set=no
1602 fi
1603 rm -f conftest.make
1604 fi
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608 SET_MAKE=
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 SET_MAKE="MAKE=${MAKE-make}"
1613 fi
1614
1615 rm -rf .tst 2>/dev/null
1616 mkdir .tst 2>/dev/null
1617 if test -d .tst; then
1618 am__leading_dot=.
1619 else
1620 am__leading_dot=_
1621 fi
1622 rmdir .tst 2>/dev/null
1623
1624 # test to see if srcdir already configured
1625 if 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
1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1630 fi
1631
1632 # test whether we have cygpath
1633 if 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
1639 fi
1640
1641
1642 # Define the identity of the package.
1643 PACKAGE='texinfo'
1644 VERSION='4.8'
1645
1646
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE "$PACKAGE"
1649 _ACEOF
1650
1651
1652 cat >>confdefs.h <<_ACEOF
1653 #define VERSION "$VERSION"
1654 _ACEOF
1655
1656 # Some tools Automake needs.
1657
1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1659
1660
1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1662
1663
1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1665
1666
1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1668
1669
1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1671
1672 install_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.
1678 if 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.
1681 set dummy ${ac_tool_prefix}strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$STRIP"; then
1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
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
1701 done
1702 done
1703
1704 fi
1705 fi
1706 STRIP=$ac_cv_prog_STRIP
1707 if test -n "$STRIP"; then
1708 echo "$as_me:$LINENO: result: $STRIP" >&5
1709 echo "${ECHO_T}$STRIP" >&6
1710 else
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1713 fi
1714
1715 fi
1716 if 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.
1719 set dummy strip; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 if test -n "$ac_ct_STRIP"; then
1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1727 else
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1730 do
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
1739 done
1740 done
1741
1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1743 fi
1744 fi
1745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1746 if test -n "$ac_ct_STRIP"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1748 echo "${ECHO_T}$ac_ct_STRIP" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1752 fi
1753
1754 STRIP=$ac_ct_STRIP
1755 else
1756 STRIP="$ac_cv_prog_STRIP"
1757 fi
1758
1759 fi
1760 INSTALL_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
1766 AMTAR=${AMTAR-"${am_missing_run}tar"}
1767
1768 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1769
1770
1771
1772
1773
1774
1775 # When the Texinfo source is imported into other repositories
1776 # (NetBSD and TeX Live), timestamps are generally not preserved. This
1777 # causes lots of annoyance, so --enable-maintainer-mode. Sorry.
1778 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1779 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1780 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1781 if test "${enable_maintainer_mode+set}" = set; then
1782 enableval="$enable_maintainer_mode"
1783 USE_MAINTAINER_MODE=$enableval
1784 else
1785 USE_MAINTAINER_MODE=no
1786 fi;
1787 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1788 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1789
1790
1791 if test $USE_MAINTAINER_MODE = yes; then
1792 MAINTAINER_MODE_TRUE=
1793 MAINTAINER_MODE_FALSE='#'
1794 else
1795 MAINTAINER_MODE_TRUE='#'
1796 MAINTAINER_MODE_FALSE=
1797 fi
1798
1799 MAINT=$MAINTAINER_MODE_TRUE
1800
1801
1802
1803 # Checks for programs.
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 if test -n "$ac_tool_prefix"; then
1810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1830 fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845 fi
1846 if test -z "$ac_cv_prog_CC"; then
1847 ac_ct_CC=$CC
1848 # Extract the first word of "gcc", so it can be a program name with args.
1849 set dummy gcc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="gcc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869 done
1870 done
1871
1872 fi
1873 fi
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1878 else
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883 CC=$ac_ct_CC
1884 else
1885 CC="$ac_cv_prog_CC"
1886 fi
1887
1888 if test -z "$CC"; then
1889 if test -n "$ac_tool_prefix"; then
1890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1891 set dummy ${ac_tool_prefix}cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_CC="${ac_tool_prefix}cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911 done
1912 done
1913
1914 fi
1915 fi
1916 CC=$ac_cv_prog_CC
1917 if test -n "$CC"; then
1918 echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1920 else
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1923 fi
1924
1925 fi
1926 if test -z "$ac_cv_prog_CC"; then
1927 ac_ct_CC=$CC
1928 # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935 if test -n "$ac_ct_CC"; then
1936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_ac_ct_CC="cc"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1948 fi
1949 done
1950 done
1951
1952 fi
1953 fi
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1958 else
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1961 fi
1962
1963 CC=$ac_ct_CC
1964 else
1965 CC="$ac_cv_prog_CC"
1966 fi
1967
1968 fi
1969 if test -z "$CC"; then
1970 # Extract the first word of "cc", so it can be a program name with args.
1971 set dummy cc; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 ac_prog_rejected=no
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1989 ac_prog_rejected=yes
1990 continue
1991 fi
1992 ac_cv_prog_CC="cc"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1995 fi
1996 done
1997 done
1998
1999 if test $ac_prog_rejected = yes; then
2000 # We found a bogon in the path, so make sure we never use it.
2001 set dummy $ac_cv_prog_CC
2002 shift
2003 if test $# != 0; then
2004 # We chose a different compiler from the bogus one.
2005 # However, it has the same basename, so the bogon will be chosen
2006 # first if we set CC to just the basename; use the full file name.
2007 shift
2008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2009 fi
2010 fi
2011 fi
2012 fi
2013 CC=$ac_cv_prog_CC
2014 if test -n "$CC"; then
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6
2017 else
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2020 fi
2021
2022 fi
2023 if test -z "$CC"; then
2024 if test -n "$ac_tool_prefix"; then
2025 for ac_prog in cl
2026 do
2027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2047 fi
2048 done
2049 done
2050
2051 fi
2052 fi
2053 CC=$ac_cv_prog_CC
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2057 else
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2060 fi
2061
2062 test -n "$CC" && break
2063 done
2064 fi
2065 if test -z "$CC"; then
2066 ac_ct_CC=$CC
2067 for ac_prog in cl
2068 do
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy $ac_prog; ac_word=$2
2071 echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 ac_cv_prog_ac_ct_CC="$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2089 fi
2090 done
2091 done
2092
2093 fi
2094 fi
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098 echo "${ECHO_T}$ac_ct_CC" >&6
2099 else
2100 echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2102 fi
2103
2104 test -n "$ac_ct_CC" && break
2105 done
2106
2107 CC=$ac_ct_CC
2108 fi
2109
2110 fi
2111
2112
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2118
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO:" \
2121 "checking for C compiler version" >&5
2122 ac_compiler=`set X $ac_compile; echo $2`
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2124 (eval $ac_compiler --version </dev/null >&5) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2129 (eval $ac_compiler -v </dev/null >&5) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2134 (eval $ac_compiler -V </dev/null >&5) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138
2139 cat >conftest.$ac_ext <<_ACEOF
2140 /* confdefs.h. */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2145
2146 int
2147 main ()
2148 {
2149
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 ac_clean_files_save=$ac_clean_files
2155 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2156 # Try to create an executable without -o first, disregard a.out.
2157 # It will help us diagnose broken compilers, and finding out an intuition
2158 # of exeext.
2159 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2160 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2161 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2163 (eval $ac_link_default) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # Find the output, starting from the most likely. This scheme is
2168 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2169 # resort.
2170
2171 # Be careful to initialize this variable, since it used to be cached.
2172 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2173 ac_cv_exeext=
2174 # b.out is created by i960 compilers.
2175 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2176 do
2177 test -f "$ac_file" || continue
2178 case $ac_file in
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2180 ;;
2181 conftest.$ac_ext )
2182 # This is the source file.
2183 ;;
2184 [ab].out )
2185 # We found the default executable, but exeext='' is most
2186 # certainly right.
2187 break;;
2188 *.* )
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190 # FIXME: I believe we export ac_cv_exeext for Libtool,
2191 # but it would be cool to find out if it's true. Does anybody
2192 # maintain Libtool? --akim.
2193 export ac_cv_exeext
2194 break;;
2195 * )
2196 break;;
2197 esac
2198 done
2199 else
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&2;}
2207 { (exit 77); exit 77; }; }
2208 fi
2209
2210 ac_exeext=$ac_cv_exeext
2211 echo "$as_me:$LINENO: result: $ac_file" >&5
2212 echo "${ECHO_T}$ac_file" >&6
2213
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2217 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2218 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2219 # If not cross compiling, check that we can run a simple program.
2220 if test "$cross_compiling" != yes; then
2221 if { ac_try='./$ac_file'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 cross_compiling=no
2228 else
2229 if test "$cross_compiling" = maybe; then
2230 cross_compiling=yes
2231 else
2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2239 fi
2240 fi
2241 fi
2242 echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6
2244
2245 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246 ac_clean_files=$ac_clean_files_save
2247 # Check the compiler produces executables we can run. If not, either
2248 # the compiler is broken, or we cross compile.
2249 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2251 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252 echo "${ECHO_T}$cross_compiling" >&6
2253
2254 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2257 (eval $ac_link) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; then
2261 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2262 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2263 # work properly (i.e., refer to `conftest.exe'), while it won't with
2264 # `rm'.
2265 for ac_file in conftest.exe conftest conftest.*; do
2266 test -f "$ac_file" || continue
2267 case $ac_file in
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 export ac_cv_exeext
2271 break;;
2272 * ) break;;
2273 esac
2274 done
2275 else
2276 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2281 fi
2282
2283 rm -f conftest$ac_cv_exeext
2284 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2285 echo "${ECHO_T}$ac_cv_exeext" >&6
2286
2287 rm -f conftest.$ac_ext
2288 EXEEXT=$ac_cv_exeext
2289 ac_exeext=$EXEEXT
2290 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2291 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2292 if test "${ac_cv_objext+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2301
2302 int
2303 main ()
2304 {
2305
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.o conftest.obj
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
2316 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2317 case $ac_file in
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320 break;;
2321 esac
2322 done
2323 else
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2332 fi
2333
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 fi
2336 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6
2338 OBJEXT=$ac_cv_objext
2339 ac_objext=$OBJEXT
2340 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h. */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2351
2352 int
2353 main ()
2354 {
2355 #ifndef __GNUC__
2356 choke me
2357 #endif
2358
2359 ;
2360 return 0;
2361 }
2362 _ACEOF
2363 rm -f conftest.$ac_objext
2364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>conftest.er1
2366 ac_status=$?
2367 grep -v '^ *+' conftest.er1 >conftest.err
2368 rm -f conftest.er1
2369 cat conftest.err >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -z "$ac_c_werror_flag"
2373 || test ! -s conftest.err'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 (eval $ac_try) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; } &&
2379 { ac_try='test -s conftest.$ac_objext'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2385 ac_compiler_gnu=yes
2386 else
2387 echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_compiler_gnu=no
2391 fi
2392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2394
2395 fi
2396 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2397 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2398 GCC=`test $ac_compiler_gnu = yes && echo yes`
2399 ac_test_CFLAGS=${CFLAGS+set}
2400 ac_save_CFLAGS=$CFLAGS
2401 CFLAGS="-g"
2402 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2403 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_g+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h. */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2413
2414 int
2415 main ()
2416 {
2417
2418 ;
2419 return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag"
2432 || test ! -s conftest.err'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2444 ac_cv_prog_cc_g=yes
2445 else
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 ac_cv_prog_cc_g=no
2450 fi
2451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2454 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2455 if test "$ac_test_CFLAGS" = set; then
2456 CFLAGS=$ac_save_CFLAGS
2457 elif test $ac_cv_prog_cc_g = yes; then
2458 if test "$GCC" = yes; then
2459 CFLAGS="-g -O2"
2460 else
2461 CFLAGS="-g"
2462 fi
2463 else
2464 if test "$GCC" = yes; then
2465 CFLAGS="-O2"
2466 else
2467 CFLAGS=
2468 fi
2469 fi
2470 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2471 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2472 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475 ac_cv_prog_cc_stdc=no
2476 ac_save_CC=$CC
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h. */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2483 #include <stdarg.h>
2484 #include <stdio.h>
2485 #include <sys/types.h>
2486 #include <sys/stat.h>
2487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2488 struct buf { int x; };
2489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2490 static char *e (p, i)
2491 char **p;
2492 int i;
2493 {
2494 return p[i];
2495 }
2496 static char *f (char * (*g) (char **, int), char **p, ...)
2497 {
2498 char *s;
2499 va_list v;
2500 va_start (v,p);
2501 s = g (p, va_arg (v,int));
2502 va_end (v);
2503 return s;
2504 }
2505
2506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2507 function prototypes and stuff, but not '\xHH' hex character constants.
2508 These don't provoke an error unfortunately, instead are silently treated
2509 as 'x'. The following induces an error, until -std1 is added to get
2510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2511 array size at least. It's necessary to write '\x00'==0 to get something
2512 that's true only with -std1. */
2513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2514
2515 int test (int i, double x);
2516 struct s1 {int (*f) (int a);};
2517 struct s2 {int (*f) (double a);};
2518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2519 int argc;
2520 char **argv;
2521 int
2522 main ()
2523 {
2524 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2525 ;
2526 return 0;
2527 }
2528 _ACEOF
2529 # Don't try gcc -ansi; that turns off useful extensions and
2530 # breaks some systems' header files.
2531 # AIX -qlanglvl=ansi
2532 # Ultrix and OSF/1 -std1
2533 # HP-UX 10.20 and later -Ae
2534 # HP-UX older versions -Aa -D_HPUX_SOURCE
2535 # SVR4 -Xc -D__EXTENSIONS__
2536 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2537 do
2538 CC="$ac_save_CC $ac_arg"
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541 (eval $ac_compile) 2>conftest.er1
2542 ac_status=$?
2543 grep -v '^ *+' conftest.er1 >conftest.err
2544 rm -f conftest.er1
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -z "$ac_c_werror_flag"
2549 || test ! -s conftest.err'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 (eval $ac_try) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2561 ac_cv_prog_cc_stdc=$ac_arg
2562 break
2563 else
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 fi
2568 rm -f conftest.err conftest.$ac_objext
2569 done
2570 rm -f conftest.$ac_ext conftest.$ac_objext
2571 CC=$ac_save_CC
2572
2573 fi
2574
2575 case "x$ac_cv_prog_cc_stdc" in
2576 x|xno)
2577 echo "$as_me:$LINENO: result: none needed" >&5
2578 echo "${ECHO_T}none needed" >&6 ;;
2579 *)
2580 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2581 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2582 CC="$CC $ac_cv_prog_cc_stdc" ;;
2583 esac
2584
2585 # Some people use a C++ compiler to compile C. Since we use `exit',
2586 # in C++ we need to declare it. In case someone uses the same compiler
2587 # for both compiling C and C++ we need to have the C++ compiler decide
2588 # the declaration of exit, since it's the most demanding environment.
2589 cat >conftest.$ac_ext <<_ACEOF
2590 #ifndef __cplusplus
2591 choke me
2592 #endif
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 for ac_declaration in \
2617 '' \
2618 'extern "C" void std::exit (int) throw (); using std::exit;' \
2619 'extern "C" void std::exit (int); using std::exit;' \
2620 'extern "C" void exit (int) throw ();' \
2621 'extern "C" void exit (int);' \
2622 'void exit (int);'
2623 do
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630 $ac_declaration
2631 #include <stdlib.h>
2632 int
2633 main ()
2634 {
2635 exit (42);
2636 ;
2637 return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2643 ac_status=$?
2644 grep -v '^ *+' conftest.er1 >conftest.err
2645 rm -f conftest.er1
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 :
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 continue
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2676 $ac_declaration
2677 int
2678 main ()
2679 {
2680 exit (42);
2681 ;
2682 return 0;
2683 }
2684 _ACEOF
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -z "$ac_c_werror_flag"
2695 || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 break
2708 else
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2711
2712 fi
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 done
2715 rm -f conftest*
2716 if test -n "$ac_declaration"; then
2717 echo '#ifdef __cplusplus' >>confdefs.h
2718 echo $ac_declaration >>confdefs.h
2719 echo '#endif' >>confdefs.h
2720 fi
2721
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_ext=c
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 DEPDIR="${am__leading_dot}deps"
2734
2735 ac_config_commands="$ac_config_commands depfiles"
2736
2737
2738 am_make=${MAKE-make}
2739 cat > confinc << 'END'
2740 am__doit:
2741 @echo done
2742 .PHONY: am__doit
2743 END
2744 # If we don't find an include directive, just comment out the code.
2745 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2746 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2747 am__include="#"
2748 am__quote=
2749 _am_result=none
2750 # First try GNU make style include.
2751 echo "include confinc" > confmf
2752 # We grep out `Entering directory' and `Leaving directory'
2753 # messages which can occur if `w' ends up in MAKEFLAGS.
2754 # In particular we don't look at `^make:' because GNU make might
2755 # be invoked under some other name (usually "gmake"), in which
2756 # case it prints its new name instead of `make'.
2757 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2758 am__include=include
2759 am__quote=
2760 _am_result=GNU
2761 fi
2762 # Now try BSD make style include.
2763 if test "$am__include" = "#"; then
2764 echo '.include "confinc"' > confmf
2765 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2766 am__include=.include
2767 am__quote="\""
2768 _am_result=BSD
2769 fi
2770 fi
2771
2772
2773 echo "$as_me:$LINENO: result: $_am_result" >&5
2774 echo "${ECHO_T}$_am_result" >&6
2775 rm -f confinc confmf
2776
2777 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2778 if test "${enable_dependency_tracking+set}" = set; then
2779 enableval="$enable_dependency_tracking"
2780
2781 fi;
2782 if test "x$enable_dependency_tracking" != xno; then
2783 am_depcomp="$ac_aux_dir/depcomp"
2784 AMDEPBACKSLASH='\'
2785 fi
2786
2787
2788 if test "x$enable_dependency_tracking" != xno; then
2789 AMDEP_TRUE=
2790 AMDEP_FALSE='#'
2791 else
2792 AMDEP_TRUE='#'
2793 AMDEP_FALSE=
2794 fi
2795
2796
2797
2798
2799 depcc="$CC" am_compiler_list=
2800
2801 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2802 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2803 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2807 # We make a subdir and do the tests there. Otherwise we can end up
2808 # making bogus files that we don't know about and never remove. For
2809 # instance it was reported that on HP-UX the gcc test will end up
2810 # making a dummy file named `D' -- because `-MD' means `put the output
2811 # in D'.
2812 mkdir conftest.dir
2813 # Copy depcomp to subdir because otherwise we won't find it if we're
2814 # using a relative directory.
2815 cp "$am_depcomp" conftest.dir
2816 cd conftest.dir
2817 # We will build objects and dependencies in a subdirectory because
2818 # it helps to detect inapplicable dependency modes. For instance
2819 # both Tru64's cc and ICC support -MD to output dependencies as a
2820 # side effect of compilation, but ICC will put the dependencies in
2821 # the current directory while Tru64 will put them in the object
2822 # directory.
2823 mkdir sub
2824
2825 am_cv_CC_dependencies_compiler_type=none
2826 if test "$am_compiler_list" = ""; then
2827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2828 fi
2829 for depmode in $am_compiler_list; do
2830 # Setup a source with many dependencies, because some compilers
2831 # like to wrap large dependency lists on column 80 (with \), and
2832 # we should not choose a depcomp mode which is confused by this.
2833 #
2834 # We need to recreate these files for each test, as the compiler may
2835 # overwrite some of them when testing with obscure command lines.
2836 # This happens at least with the AIX C compiler.
2837 : > sub/conftest.c
2838 for i in 1 2 3 4 5 6; do
2839 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2840 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2841 # Solaris 8's {/usr,}/bin/sh.
2842 touch sub/conftst$i.h
2843 done
2844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2845
2846 case $depmode in
2847 nosideeffect)
2848 # after this tag, mechanisms are not by side-effect, so they'll
2849 # only be used when explicitly requested
2850 if test "x$enable_dependency_tracking" = xyes; then
2851 continue
2852 else
2853 break
2854 fi
2855 ;;
2856 none) break ;;
2857 esac
2858 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2859 # mode. It turns out that the SunPro C++ compiler does not properly
2860 # handle `-M -o', and we need to detect this.
2861 if depmode=$depmode \
2862 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2864 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2865 >/dev/null 2>conftest.err &&
2866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2867 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2869 # icc doesn't choke on unknown options, it will just issue warnings
2870 # or remarks (even with -Werror). So we grep stderr for any message
2871 # that says an option was ignored or not supported.
2872 # When given -MP, icc 7.0 and 7.1 complain thusly:
2873 # icc: Command line warning: ignoring option '-M'; no argument required
2874 # The diagnosis changed in icc 8.0:
2875 # icc: Command line remark: option '-MP' not supported
2876 if (grep 'ignoring option' conftest.err ||
2877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2878 am_cv_CC_dependencies_compiler_type=$depmode
2879 break
2880 fi
2881 fi
2882 done
2883
2884 cd ..
2885 rm -rf conftest.dir
2886 else
2887 am_cv_CC_dependencies_compiler_type=none
2888 fi
2889
2890 fi
2891 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2892 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2894
2895
2896
2897 if
2898 test "x$enable_dependency_tracking" != xno \
2899 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2900 am__fastdepCC_TRUE=
2901 am__fastdepCC_FALSE='#'
2902 else
2903 am__fastdepCC_TRUE='#'
2904 am__fastdepCC_FALSE=
2905 fi
2906
2907
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918 CPP=
2919 fi
2920 if test -z "$CPP"; then
2921 if test "${ac_cv_prog_CPP+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 # Double quotes because CPP needs to be expanded
2925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926 do
2927 ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2929 do
2930 # Use a header file that comes with gcc, so configuring glibc
2931 # with a fresh cross-compiler works.
2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933 # <limits.h> exists even on freestanding compilers.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947 Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960 else
2961 ac_cpp_err=
2962 fi
2963 else
2964 ac_cpp_err=yes
2965 fi
2966 if test -z "$ac_cpp_err"; then
2967 :
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972 # Broken: fails on valid input.
2973 continue
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977 # OK, works on sane cases. Now check whether non-existent headers
2978 # can be detected and how.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
2997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998 else
2999 ac_cpp_err=
3000 fi
3001 else
3002 ac_cpp_err=yes
3003 fi
3004 if test -z "$ac_cpp_err"; then
3005 # Broken: success on invalid input.
3006 continue
3007 else
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011 # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3014 fi
3015 rm -f conftest.err conftest.$ac_ext
3016
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021 break
3022 fi
3023
3024 done
3025 ac_cv_prog_CPP=$CPP
3026
3027 fi
3028 CPP=$ac_cv_prog_CPP
3029 else
3030 ac_cv_prog_CPP=$CPP
3031 fi
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3036 do
3037 # Use a header file that comes with gcc, so configuring glibc
3038 # with a fresh cross-compiler works.
3039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040 # <limits.h> exists even on freestanding compilers.
3041 # On the NeXT, cc -E runs the code through the compiler's parser,
3042 # not just through cpp. "Syntax error" is here to catch this case.
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054 Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067 else
3068 ac_cpp_err=
3069 fi
3070 else
3071 ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074 :
3075 else
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079 # Broken: fails on valid input.
3080 continue
3081 fi
3082 rm -f conftest.err conftest.$ac_ext
3083
3084 # OK, works on sane cases. Now check whether non-existent headers
3085 # can be detected and how.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105 else
3106 ac_cpp_err=
3107 fi
3108 else
3109 ac_cpp_err=yes
3110 fi
3111 if test -z "$ac_cpp_err"; then
3112 # Broken: success on invalid input.
3113 continue
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3121 fi
3122 rm -f conftest.err conftest.$ac_ext
3123
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3128 :
3129 else
3130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144 echo "$as_me:$LINENO: checking for egrep" >&5
3145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3146 if test "${ac_cv_prog_egrep+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3150 then ac_cv_prog_egrep='grep -E'
3151 else ac_cv_prog_egrep='egrep'
3152 fi
3153 fi
3154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3156 EGREP=$ac_cv_prog_egrep
3157
3158
3159 if test $ac_cv_c_compiler_gnu = yes; then
3160 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3161 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 ac_pattern="Autoconf.*'x'"
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172 #include <sgtty.h>
3173 Autoconf TIOCGETP
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177 ac_cv_prog_gcc_traditional=yes
3178 else
3179 ac_cv_prog_gcc_traditional=no
3180 fi
3181 rm -f conftest*
3182
3183
3184 if test $ac_cv_prog_gcc_traditional = no; then
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191 #include <termio.h>
3192 Autoconf TCGETA
3193 _ACEOF
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3196 ac_cv_prog_gcc_traditional=yes
3197 fi
3198 rm -f conftest*
3199
3200 fi
3201 fi
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3203 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3204 if test $ac_cv_prog_gcc_traditional = yes; then
3205 CC="$CC -traditional"
3206 fi
3207 fi
3208
3209 # Find a good install program. We prefer a C program (faster),
3210 # so one script is as good as another. But avoid the broken or
3211 # incompatible versions:
3212 # SysV /etc/install, /usr/sbin/install
3213 # SunOS /usr/etc/install
3214 # IRIX /sbin/install
3215 # AIX /bin/install
3216 # AmigaOS /C/install, which installs bootblocks on floppy discs
3217 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3220 # OS/2's system install, which has a completely different semantic
3221 # ./install, which can be erroneously created by make from ./install.sh.
3222 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3223 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3224 if test -z "$INSTALL"; then
3225 if test "${ac_cv_path_install+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 # Account for people who put trailing slashes in PATH elements.
3234 case $as_dir/ in
3235 ./ | .// | /cC/* | \
3236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3237 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3238 /usr/ucb/* ) ;;
3239 *)
3240 # OSF1 and SCO ODT 3.0 have their own names for install.
3241 # Don't use installbsd from OSF since it installs stuff as root
3242 # by default.
3243 for ac_prog in ginstall scoinst install; do
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3246 if test $ac_prog = install &&
3247 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3248 # AIX install. It has an incompatible calling convention.
3249 :
3250 elif test $ac_prog = install &&
3251 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3252 # program-specific install script used by HP pwplus--don't use.
3253 :
3254 else
3255 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3256 break 3
3257 fi
3258 fi
3259 done
3260 done
3261 ;;
3262 esac
3263 done
3264
3265
3266 fi
3267 if test "${ac_cv_path_install+set}" = set; then
3268 INSTALL=$ac_cv_path_install
3269 else
3270 # As a last resort, use the slow shell script. We don't cache a
3271 # path for INSTALL within a source directory, because that will
3272 # break other packages using the cache if that directory is
3273 # removed, or if the path is relative.
3274 INSTALL=$ac_install_sh
3275 fi
3276 fi
3277 echo "$as_me:$LINENO: result: $INSTALL" >&5
3278 echo "${ECHO_T}$INSTALL" >&6
3279
3280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3281 # It thinks the first close brace ends the variable substitution.
3282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3283
3284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3285
3286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3287
3288 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3289 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3290 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3291 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 cat >conftest.make <<\_ACEOF
3295 all:
3296 @echo 'ac_maketemp="$(MAKE)"'
3297 _ACEOF
3298 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3299 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3300 if test -n "$ac_maketemp"; then
3301 eval ac_cv_prog_make_${ac_make}_set=yes
3302 else
3303 eval ac_cv_prog_make_${ac_make}_set=no
3304 fi
3305 rm -f conftest.make
3306 fi
3307 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3308 echo "$as_me:$LINENO: result: yes" >&5
3309 echo "${ECHO_T}yes" >&6
3310 SET_MAKE=
3311 else
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314 SET_MAKE="MAKE=${MAKE-make}"
3315 fi
3316
3317 if test -n "$ac_tool_prefix"; then
3318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3319 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3320 echo "$as_me:$LINENO: checking for $ac_word" >&5
3321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3322 if test "${ac_cv_prog_RANLIB+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 if test -n "$RANLIB"; then
3326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341
3342 fi
3343 fi
3344 RANLIB=$ac_cv_prog_RANLIB
3345 if test -n "$RANLIB"; then
3346 echo "$as_me:$LINENO: result: $RANLIB" >&5
3347 echo "${ECHO_T}$RANLIB" >&6
3348 else
3349 echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3351 fi
3352
3353 fi
3354 if test -z "$ac_cv_prog_RANLIB"; then
3355 ac_ct_RANLIB=$RANLIB
3356 # Extract the first word of "ranlib", so it can be a program name with args.
3357 set dummy ranlib; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$ac_ct_RANLIB"; then
3364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_ac_ct_RANLIB="ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379
3380 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3381 fi
3382 fi
3383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3384 if test -n "$ac_ct_RANLIB"; then
3385 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3386 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3387 else
3388 echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6
3390 fi
3391
3392 RANLIB=$ac_ct_RANLIB
3393 else
3394 RANLIB="$ac_cv_prog_RANLIB"
3395 fi
3396
3397
3398 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
3399
3400
3401 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3402 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3403 if test "${ac_cv_search_strerror+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 ac_func_search_save_LIBS=$LIBS
3407 ac_cv_search_strerror=no
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414
3415 /* Override any gcc2 internal prototype to avoid an error. */
3416 #ifdef __cplusplus
3417 extern "C"
3418 #endif
3419 /* We use char because int might match the return type of a gcc2
3420 builtin and then its argument prototype would still apply. */
3421 char strerror ();
3422 int
3423 main ()
3424 {
3425 strerror ();
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext conftest$ac_exeext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3432 (eval $ac_link) 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try='test -z "$ac_c_werror_flag"
3440 || test ! -s conftest.err'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; } &&
3446 { ac_try='test -s conftest$ac_exeext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 (eval $ac_try) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 ac_cv_search_strerror="none required"
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 fi
3458 rm -f conftest.err conftest.$ac_objext \
3459 conftest$ac_exeext conftest.$ac_ext
3460 if test "$ac_cv_search_strerror" = no; then
3461 for ac_lib in cposix; do
3462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469
3470 /* Override any gcc2 internal prototype to avoid an error. */
3471 #ifdef __cplusplus
3472 extern "C"
3473 #endif
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3476 char strerror ();
3477 int
3478 main ()
3479 {
3480 strerror ();
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 rm -f conftest.$ac_objext conftest$ac_exeext
3486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3487 (eval $ac_link) 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -z "$ac_c_werror_flag"
3495 || test ! -s conftest.err'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest$ac_exeext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 ac_cv_search_strerror="-l$ac_lib"
3508 break
3509 else
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 fi
3514 rm -f conftest.err conftest.$ac_objext \
3515 conftest$ac_exeext conftest.$ac_ext
3516 done
3517 fi
3518 LIBS=$ac_func_search_save_LIBS
3519 fi
3520 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3521 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3522 if test "$ac_cv_search_strerror" != no; then
3523 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3524
3525 fi
3526
3527 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3528 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3529 if test "${ac_cv_header_stdc+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #include <stdlib.h>
3539 #include <stdarg.h>
3540 #include <string.h>
3541 #include <float.h>
3542
3543 int
3544 main ()
3545 {
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553 (eval $ac_compile) 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -z "$ac_c_werror_flag"
3561 || test ! -s conftest.err'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; } &&
3567 { ac_try='test -s conftest.$ac_objext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 ac_cv_header_stdc=yes
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 ac_cv_header_stdc=no
3579 fi
3580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3581
3582 if test $ac_cv_header_stdc = yes; then
3583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <string.h>
3591
3592 _ACEOF
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594 $EGREP "memchr" >/dev/null 2>&1; then
3595 :
3596 else
3597 ac_cv_header_stdc=no
3598 fi
3599 rm -f conftest*
3600
3601 fi
3602
3603 if test $ac_cv_header_stdc = yes; then
3604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h. */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 #include <stdlib.h>
3612
3613 _ACEOF
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 $EGREP "free" >/dev/null 2>&1; then
3616 :
3617 else
3618 ac_cv_header_stdc=no
3619 fi
3620 rm -f conftest*
3621
3622 fi
3623
3624 if test $ac_cv_header_stdc = yes; then
3625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3626 if test "$cross_compiling" = yes; then
3627 :
3628 else
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h. */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 #include <ctype.h>
3636 #if ((' ' & 0x0FF) == 0x020)
3637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3639 #else
3640 # define ISLOWER(c) \
3641 (('a' <= (c) && (c) <= 'i') \
3642 || ('j' <= (c) && (c) <= 'r') \
3643 || ('s' <= (c) && (c) <= 'z'))
3644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3645 #endif
3646
3647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3648 int
3649 main ()
3650 {
3651 int i;
3652 for (i = 0; i < 256; i++)
3653 if (XOR (islower (i), ISLOWER (i))
3654 || toupper (i) != TOUPPER (i))
3655 exit(2);
3656 exit (0);
3657 }
3658 _ACEOF
3659 rm -f conftest$ac_exeext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3661 (eval $ac_link) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 :
3671 else
3672 echo "$as_me: program exited with status $ac_status" >&5
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 ( exit $ac_status )
3677 ac_cv_header_stdc=no
3678 fi
3679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3680 fi
3681 fi
3682 fi
3683 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3684 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3685 if test $ac_cv_header_stdc = yes; then
3686
3687 cat >>confdefs.h <<\_ACEOF
3688 #define STDC_HEADERS 1
3689 _ACEOF
3690
3691 fi
3692
3693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3704 inttypes.h stdint.h unistd.h
3705 do
3706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3707 echo "$as_me:$LINENO: checking for $ac_header" >&5
3708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h. */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 $ac_includes_default
3719
3720 #include <$ac_header>
3721 _ACEOF
3722 rm -f conftest.$ac_objext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724 (eval $ac_compile) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try='test -z "$ac_c_werror_flag"
3732 || test ! -s conftest.err'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 (eval $ac_try) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try='test -s conftest.$ac_objext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 eval "$as_ac_Header=yes"
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3748
3749 eval "$as_ac_Header=no"
3750 fi
3751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3752 fi
3753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3756 cat >>confdefs.h <<_ACEOF
3757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3758 _ACEOF
3759
3760 fi
3761
3762 done
3763
3764
3765 if test "${ac_cv_header_minix_config_h+set}" = set; then
3766 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3767 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3768 if test "${ac_cv_header_minix_config_h+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 fi
3771 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3772 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3773 else
3774 # Is the header compilable?
3775 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3776 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3784 #include <minix/config.h>
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_header_compiler=yes
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 ac_header_compiler=no
3814 fi
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3817 echo "${ECHO_T}$ac_header_compiler" >&6
3818
3819 # Is the header present?
3820 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3821 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 #include <minix/config.h>
3829 _ACEOF
3830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null; then
3838 if test -s conftest.err; then
3839 ac_cpp_err=$ac_c_preproc_warn_flag
3840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3841 else
3842 ac_cpp_err=
3843 fi
3844 else
3845 ac_cpp_err=yes
3846 fi
3847 if test -z "$ac_cpp_err"; then
3848 ac_header_preproc=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 ac_header_preproc=no
3854 fi
3855 rm -f conftest.err conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3857 echo "${ECHO_T}$ac_header_preproc" >&6
3858
3859 # So? What about this header?
3860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3861 yes:no: )
3862 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3863 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3864 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3865 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3866 ac_header_preproc=yes
3867 ;;
3868 no:yes:* )
3869 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3870 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3872 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3874 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3876 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3878 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3880 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3881 (
3882 cat <<\_ASBOX
3883 ## -------------------------------------- ##
3884 ## Report this to the GNU Texinfo lists. ##
3885 ## -------------------------------------- ##
3886 _ASBOX
3887 ) |
3888 sed "s/^/$as_me: WARNING: /" >&2
3889 ;;
3890 esac
3891 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3892 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3893 if test "${ac_cv_header_minix_config_h+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 ac_cv_header_minix_config_h=$ac_header_preproc
3897 fi
3898 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3899 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3900
3901 fi
3902 if test $ac_cv_header_minix_config_h = yes; then
3903 MINIX=yes
3904 else
3905 MINIX=
3906 fi
3907
3908
3909 if test "$MINIX" = yes; then
3910
3911 cat >>confdefs.h <<\_ACEOF
3912 #define _POSIX_SOURCE 1
3913 _ACEOF
3914
3915
3916 cat >>confdefs.h <<\_ACEOF
3917 #define _POSIX_1_SOURCE 2
3918 _ACEOF
3919
3920
3921 cat >>confdefs.h <<\_ACEOF
3922 #define _MINIX 1
3923 _ACEOF
3924
3925 fi
3926
3927
3928 # Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first.
3929 echo "$as_me:$LINENO: checking for sigblock" >&5
3930 echo $ECHO_N "checking for sigblock... $ECHO_C" >&6
3931 if test "${ac_cv_func_sigblock+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 /* Define sigblock to an innocuous variant, in case <limits.h> declares sigblock.
3941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3942 #define sigblock innocuous_sigblock
3943
3944 /* System header to define __stub macros and hopefully few prototypes,
3945 which can conflict with char sigblock (); below.
3946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 <limits.h> exists even on freestanding compilers. */
3948
3949 #ifdef __STDC__
3950 # include <limits.h>
3951 #else
3952 # include <assert.h>
3953 #endif
3954
3955 #undef sigblock
3956
3957 /* Override any gcc2 internal prototype to avoid an error. */
3958 #ifdef __cplusplus
3959 extern "C"
3960 {
3961 #endif
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3964 char sigblock ();
3965 /* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968 #if defined (__stub_sigblock) || defined (__stub___sigblock)
3969 choke me
3970 #else
3971 char (*f) () = sigblock;
3972 #endif
3973 #ifdef __cplusplus
3974 }
3975 #endif
3976
3977 int
3978 main ()
3979 {
3980 return f != sigblock;
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext conftest$ac_exeext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987 (eval $ac_link) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest$ac_exeext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_cv_func_sigblock=yes
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 ac_cv_func_sigblock=no
4013 fi
4014 rm -f conftest.err conftest.$ac_objext \
4015 conftest$ac_exeext conftest.$ac_ext
4016 fi
4017 echo "$as_me:$LINENO: result: $ac_cv_func_sigblock" >&5
4018 echo "${ECHO_T}$ac_cv_func_sigblock" >&6
4019 if test $ac_cv_func_sigblock = yes; then
4020 :
4021 else
4022
4023 echo "$as_me:$LINENO: checking for sigblock in -lbsd" >&5
4024 echo $ECHO_N "checking for sigblock in -lbsd... $ECHO_C" >&6
4025 if test "${ac_cv_lib_bsd_sigblock+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 ac_check_lib_save_LIBS=$LIBS
4029 LIBS="-lbsd $LIBS"
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036
4037 /* Override any gcc2 internal prototype to avoid an error. */
4038 #ifdef __cplusplus
4039 extern "C"
4040 #endif
4041 /* We use char because int might match the return type of a gcc2
4042 builtin and then its argument prototype would still apply. */
4043 char sigblock ();
4044 int
4045 main ()
4046 {
4047 sigblock ();
4048 ;
4049 return 0;
4050 }
4051 _ACEOF
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054 (eval $ac_link) 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
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); }; } &&
4068 { ac_try='test -s conftest$ac_exeext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_cv_lib_bsd_sigblock=yes
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 ac_cv_lib_bsd_sigblock=no
4080 fi
4081 rm -f conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
4083 LIBS=$ac_check_lib_save_LIBS
4084 fi
4085 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_sigblock" >&5
4086 echo "${ECHO_T}$ac_cv_lib_bsd_sigblock" >&6
4087 if test $ac_cv_lib_bsd_sigblock = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089 #define HAVE_LIBBSD 1
4090 _ACEOF
4091
4092 LIBS="-lbsd $LIBS"
4093
4094 fi
4095
4096 fi
4097
4098
4099 # Checks for header files.
4100 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4101 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4102 if test "${ac_cv_header_stat_broken+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #include <sys/types.h>
4112 #include <sys/stat.h>
4113
4114 #if defined(S_ISBLK) && defined(S_IFDIR)
4115 # if S_ISBLK (S_IFDIR)
4116 You lose.
4117 # endif
4118 #endif
4119
4120 #if defined(S_ISBLK) && defined(S_IFCHR)
4121 # if S_ISBLK (S_IFCHR)
4122 You lose.
4123 # endif
4124 #endif
4125
4126 #if defined(S_ISLNK) && defined(S_IFREG)
4127 # if S_ISLNK (S_IFREG)
4128 You lose.
4129 # endif
4130 #endif
4131
4132 #if defined(S_ISSOCK) && defined(S_IFREG)
4133 # if S_ISSOCK (S_IFREG)
4134 You lose.
4135 # endif
4136 #endif
4137
4138 _ACEOF
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140 $EGREP "You lose" >/dev/null 2>&1; then
4141 ac_cv_header_stat_broken=yes
4142 else
4143 ac_cv_header_stat_broken=no
4144 fi
4145 rm -f conftest*
4146
4147 fi
4148 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4149 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4150 if test $ac_cv_header_stat_broken = yes; then
4151
4152 cat >>confdefs.h <<\_ACEOF
4153 #define STAT_MACROS_BROKEN 1
4154 _ACEOF
4155
4156 fi
4157
4158 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4160 if test "${ac_cv_header_stdc+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <stdlib.h>
4170 #include <stdarg.h>
4171 #include <string.h>
4172 #include <float.h>
4173
4174 int
4175 main ()
4176 {
4177
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest.$ac_objext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4184 (eval $ac_compile) 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try='test -z "$ac_c_werror_flag"
4192 || test ! -s conftest.err'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; } &&
4198 { ac_try='test -s conftest.$ac_objext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4204 ac_cv_header_stdc=yes
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4212
4213 if test $ac_cv_header_stdc = yes; then
4214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 #include <string.h>
4222
4223 _ACEOF
4224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225 $EGREP "memchr" >/dev/null 2>&1; then
4226 :
4227 else
4228 ac_cv_header_stdc=no
4229 fi
4230 rm -f conftest*
4231
4232 fi
4233
4234 if test $ac_cv_header_stdc = yes; then
4235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 #include <stdlib.h>
4243
4244 _ACEOF
4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246 $EGREP "free" >/dev/null 2>&1; then
4247 :
4248 else
4249 ac_cv_header_stdc=no
4250 fi
4251 rm -f conftest*
4252
4253 fi
4254
4255 if test $ac_cv_header_stdc = yes; then
4256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4257 if test "$cross_compiling" = yes; then
4258 :
4259 else
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <ctype.h>
4267 #if ((' ' & 0x0FF) == 0x020)
4268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4270 #else
4271 # define ISLOWER(c) \
4272 (('a' <= (c) && (c) <= 'i') \
4273 || ('j' <= (c) && (c) <= 'r') \
4274 || ('s' <= (c) && (c) <= 'z'))
4275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4276 #endif
4277
4278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4279 int
4280 main ()
4281 {
4282 int i;
4283 for (i = 0; i < 256; i++)
4284 if (XOR (islower (i), ISLOWER (i))
4285 || toupper (i) != TOUPPER (i))
4286 exit(2);
4287 exit (0);
4288 }
4289 _ACEOF
4290 rm -f conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292 (eval $ac_link) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4301 :
4302 else
4303 echo "$as_me: program exited with status $ac_status" >&5
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ( exit $ac_status )
4308 ac_cv_header_stdc=no
4309 fi
4310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 fi
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4315 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4316 if test $ac_cv_header_stdc = yes; then
4317
4318 cat >>confdefs.h <<\_ACEOF
4319 #define STDC_HEADERS 1
4320 _ACEOF
4321
4322 fi
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340 for ac_header in fcntl.h io.h limits.h pwd.h string.h strings.h \
4341 termcap.h termio.h termios.h unistd.h \
4342 sys/fcntl.h sys/file.h sys/stream.h sys/time.h sys/ttold.h sys/wait.h
4343 do
4344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4346 echo "$as_me:$LINENO: checking for $ac_header" >&5
4347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 fi
4351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4353 else
4354 # Is the header compilable?
4355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4364 #include <$ac_header>
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_header_compiler=yes
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_header_compiler=no
4394 fi
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4397 echo "${ECHO_T}$ac_header_compiler" >&6
4398
4399 # Is the header present?
4400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <$ac_header>
4409 _ACEOF
4410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } >/dev/null; then
4418 if test -s conftest.err; then
4419 ac_cpp_err=$ac_c_preproc_warn_flag
4420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4421 else
4422 ac_cpp_err=
4423 fi
4424 else
4425 ac_cpp_err=yes
4426 fi
4427 if test -z "$ac_cpp_err"; then
4428 ac_header_preproc=yes
4429 else
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_header_preproc=no
4434 fi
4435 rm -f conftest.err conftest.$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4437 echo "${ECHO_T}$ac_header_preproc" >&6
4438
4439 # So? What about this header?
4440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4441 yes:no: )
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4446 ac_header_preproc=yes
4447 ;;
4448 no:yes:* )
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4461 (
4462 cat <<\_ASBOX
4463 ## -------------------------------------- ##
4464 ## Report this to the GNU Texinfo lists. ##
4465 ## -------------------------------------- ##
4466 _ASBOX
4467 ) |
4468 sed "s/^/$as_me: WARNING: /" >&2
4469 ;;
4470 esac
4471 echo "$as_me:$LINENO: checking for $ac_header" >&5
4472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476 eval "$as_ac_Header=\$ac_header_preproc"
4477 fi
4478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4480
4481 fi
4482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4483 cat >>confdefs.h <<_ACEOF
4484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4485 _ACEOF
4486
4487 fi
4488
4489 done
4490
4491
4492 # sys/ptem.h requires sys/stream.h for mblk_t on Solaris.
4493
4494 for ac_header in sys/ptem.h
4495 do
4496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4497 echo "$as_me:$LINENO: checking for $ac_header" >&5
4498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 #if HAVE_SYS_STREAM_H
4509 #include <sys/stream.h>
4510 #endif
4511
4512
4513 #include <$ac_header>
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 eval "$as_ac_Header=yes"
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 eval "$as_ac_Header=no"
4543 fi
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4549 cat >>confdefs.h <<_ACEOF
4550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 _ACEOF
4552
4553 fi
4554
4555 done
4556
4557
4558 echo "$as_me:$LINENO: checking POSIX termios" >&5
4559 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
4560 if test "${ac_cv_sys_posix_termios+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #include <sys/types.h>
4570 #include <unistd.h>
4571 #include <termios.h>
4572
4573 int
4574 main ()
4575 {
4576 /* SunOS 4.0.3 has termios.h but not the library calls. */
4577 tcgetattr(0, 0);
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext conftest$ac_exeext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4584 (eval $ac_link) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_sys_posix_termios=yes
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_cv_sys_posix_termios=no
4610 fi
4611 rm -f conftest.err conftest.$ac_objext \
4612 conftest$ac_exeext conftest.$ac_ext
4613 fi
4614 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
4615 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
4616
4617 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
4618 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
4619 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 #include <sys/types.h>
4629 #include <termios.h>
4630 #ifdef TIOCGWINSZ
4631 yes
4632 #endif
4633
4634 _ACEOF
4635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636 $EGREP "yes" >/dev/null 2>&1; then
4637 ac_cv_sys_tiocgwinsz_in_termios_h=yes
4638 else
4639 ac_cv_sys_tiocgwinsz_in_termios_h=no
4640 fi
4641 rm -f conftest*
4642
4643 fi
4644 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
4645 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
4646
4647 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
4648 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
4649 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
4650 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 #include <sys/types.h>
4660 #include <sys/ioctl.h>
4661 #ifdef TIOCGWINSZ
4662 yes
4663 #endif
4664
4665 _ACEOF
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "yes" >/dev/null 2>&1; then
4668 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
4669 else
4670 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
4671 fi
4672 rm -f conftest*
4673
4674 fi
4675 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
4676 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
4677
4678 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
4679
4680 cat >>confdefs.h <<\_ACEOF
4681 #define GWINSZ_IN_SYS_IOCTL 1
4682 _ACEOF
4683
4684 fi
4685 fi
4686
4687
4688 # Checks for typedefs, structures, and compiler characteristics.
4689 echo "$as_me:$LINENO: checking for off_t" >&5
4690 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4691 if test "${ac_cv_type_off_t+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 $ac_includes_default
4701 int
4702 main ()
4703 {
4704 if ((off_t *) 0)
4705 return 0;
4706 if (sizeof (off_t))
4707 return 0;
4708 ;
4709 return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_cv_type_off_t=yes
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 ac_cv_type_off_t=no
4740 fi
4741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4744 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4745 if test $ac_cv_type_off_t = yes; then
4746 :
4747 else
4748
4749 cat >>confdefs.h <<_ACEOF
4750 #define off_t long
4751 _ACEOF
4752
4753 fi
4754
4755 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4756 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4757 if test "${ac_cv_type_signal+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 #include <sys/types.h>
4767 #include <signal.h>
4768 #ifdef signal
4769 # undef signal
4770 #endif
4771 #ifdef __cplusplus
4772 extern "C" void (*signal (int, void (*)(int)))(int);
4773 #else
4774 void (*signal ()) ();
4775 #endif
4776
4777 int
4778 main ()
4779 {
4780 int i;
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>conftest.er1
4788 ac_status=$?
4789 grep -v '^ *+' conftest.er1 >conftest.err
4790 rm -f conftest.er1
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -z "$ac_c_werror_flag"
4795 || test ! -s conftest.err'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; } &&
4801 { ac_try='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_cv_type_signal=void
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 ac_cv_type_signal=int
4813 fi
4814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4817 echo "${ECHO_T}$ac_cv_type_signal" >&6
4818
4819 cat >>confdefs.h <<_ACEOF
4820 #define RETSIGTYPE $ac_cv_type_signal
4821 _ACEOF
4822
4823
4824 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4825 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4826 if test "${ac_cv_c_const+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h. */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835
4836 int
4837 main ()
4838 {
4839 /* FIXME: Include the comments suggested by Paul. */
4840 #ifndef __cplusplus
4841 /* Ultrix mips cc rejects this. */
4842 typedef int charset[2];
4843 const charset x;
4844 /* SunOS 4.1.1 cc rejects this. */
4845 char const *const *ccp;
4846 char **p;
4847 /* NEC SVR4.0.2 mips cc rejects this. */
4848 struct point {int x, y;};
4849 static struct point const zero = {0,0};
4850 /* AIX XL C 1.02.0.0 rejects this.
4851 It does not let you subtract one const X* pointer from another in
4852 an arm of an if-expression whose if-part is not a constant
4853 expression */
4854 const char *g = "string";
4855 ccp = &g + (g ? g-g : 0);
4856 /* HPUX 7.0 cc rejects these. */
4857 ++ccp;
4858 p = (char**) ccp;
4859 ccp = (char const *const *) p;
4860 { /* SCO 3.2v4 cc rejects this. */
4861 char *t;
4862 char const *s = 0 ? (char *) 0 : (char const *) 0;
4863
4864 *t++ = 0;
4865 }
4866 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4867 int x[] = {25, 17};
4868 const int *foo = &x[0];
4869 ++foo;
4870 }
4871 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4872 typedef const int *iptr;
4873 iptr p = 0;
4874 ++p;
4875 }
4876 { /* AIX XL C 1.02.0.0 rejects this saying
4877 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4878 struct s { int j; const int *ap[3]; };
4879 struct s *b; b->j = 5;
4880 }
4881 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4882 const int foo = 10;
4883 }
4884 #endif
4885
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_c_const=yes
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 ac_cv_c_const=no
4918 fi
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 fi
4921 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4922 echo "${ECHO_T}$ac_cv_c_const" >&6
4923 if test $ac_cv_c_const = no; then
4924
4925 cat >>confdefs.h <<\_ACEOF
4926 #define const
4927 _ACEOF
4928
4929 fi
4930
4931 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4932 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4933 if test "${ac_cv_struct_tm+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <sys/types.h>
4943 #include <time.h>
4944
4945 int
4946 main ()
4947 {
4948 struct tm *tp; tp->tm_sec;
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955 (eval $ac_compile) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_struct_tm=time.h
4976 else
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 ac_cv_struct_tm=sys/time.h
4981 fi
4982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4983 fi
4984 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4985 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4986 if test $ac_cv_struct_tm = sys/time.h; then
4987
4988 cat >>confdefs.h <<\_ACEOF
4989 #define TM_IN_SYS_TIME 1
4990 _ACEOF
4991
4992 fi
4993
4994
4995 # Checks for function declarations.
4996 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4997 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4998 if test "${ac_cv_have_decl_memchr+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 $ac_includes_default
5008 int
5009 main ()
5010 {
5011 #ifndef memchr
5012 char *p = (char *) memchr;
5013 #endif
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 ac_cv_have_decl_memchr=yes
5042 else
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 ac_cv_have_decl_memchr=no
5047 fi
5048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049 fi
5050 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5051 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5052 if test $ac_cv_have_decl_memchr = yes; then
5053
5054 cat >>confdefs.h <<_ACEOF
5055 #define HAVE_DECL_MEMCHR 1
5056 _ACEOF
5057
5058
5059 else
5060 cat >>confdefs.h <<_ACEOF
5061 #define HAVE_DECL_MEMCHR 0
5062 _ACEOF
5063
5064
5065 fi
5066 echo "$as_me:$LINENO: checking whether strcoll is declared" >&5
5067 echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6
5068 if test "${ac_cv_have_decl_strcoll+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 $ac_includes_default
5078 int
5079 main ()
5080 {
5081 #ifndef strcoll
5082 char *p = (char *) strcoll;
5083 #endif
5084
5085 ;
5086 return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -z "$ac_c_werror_flag"
5099 || test ! -s conftest.err'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_cv_have_decl_strcoll=yes
5112 else
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_cv_have_decl_strcoll=no
5117 fi
5118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119 fi
5120 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5
5121 echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6
5122 if test $ac_cv_have_decl_strcoll = yes; then
5123
5124 cat >>confdefs.h <<_ACEOF
5125 #define HAVE_DECL_STRCOLL 1
5126 _ACEOF
5127
5128
5129 else
5130 cat >>confdefs.h <<_ACEOF
5131 #define HAVE_DECL_STRCOLL 0
5132 _ACEOF
5133
5134
5135 fi
5136 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
5137 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
5138 if test "${ac_cv_have_decl_strerror+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 $ac_includes_default
5148 int
5149 main ()
5150 {
5151 #ifndef strerror
5152 char *p = (char *) strerror;
5153 #endif
5154
5155 ;
5156 return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try='test -s conftest.$ac_objext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_cv_have_decl_strerror=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_cv_have_decl_strerror=no
5187 fi
5188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5189 fi
5190 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
5191 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
5192 if test $ac_cv_have_decl_strerror = yes; then
5193
5194 cat >>confdefs.h <<_ACEOF
5195 #define HAVE_DECL_STRERROR 1
5196 _ACEOF
5197
5198
5199 else
5200 cat >>confdefs.h <<_ACEOF
5201 #define HAVE_DECL_STRERROR 0
5202 _ACEOF
5203
5204
5205 fi
5206
5207
5208
5209 # Checks for library functions.
5210 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5211 # for constant arguments. Useless!
5212 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5213 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5214 if test "${ac_cv_working_alloca_h+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #include <alloca.h>
5224 int
5225 main ()
5226 {
5227 char *p = (char *) alloca (2 * sizeof (int));
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_working_alloca_h=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 ac_cv_working_alloca_h=no
5260 fi
5261 rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 fi
5264 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5265 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5266 if test $ac_cv_working_alloca_h = yes; then
5267
5268 cat >>confdefs.h <<\_ACEOF
5269 #define HAVE_ALLOCA_H 1
5270 _ACEOF
5271
5272 fi
5273
5274 echo "$as_me:$LINENO: checking for alloca" >&5
5275 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5276 if test "${ac_cv_func_alloca_works+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #ifdef __GNUC__
5286 # define alloca __builtin_alloca
5287 #else
5288 # ifdef _MSC_VER
5289 # include <malloc.h>
5290 # define alloca _alloca
5291 # else
5292 # if HAVE_ALLOCA_H
5293 # include <alloca.h>
5294 # else
5295 # ifdef _AIX
5296 #pragma alloca
5297 # else
5298 # ifndef alloca /* predefined by HP cc +Olibcalls */
5299 char *alloca ();
5300 # endif
5301 # endif
5302 # endif
5303 # endif
5304 #endif
5305
5306 int
5307 main ()
5308 {
5309 char *p = (char *) alloca (1);
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 rm -f conftest.$ac_objext conftest$ac_exeext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316 (eval $ac_link) 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try='test -z "$ac_c_werror_flag"
5324 || test ! -s conftest.err'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; } &&
5330 { ac_try='test -s conftest$ac_exeext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5336 ac_cv_func_alloca_works=yes
5337 else
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 ac_cv_func_alloca_works=no
5342 fi
5343 rm -f conftest.err conftest.$ac_objext \
5344 conftest$ac_exeext conftest.$ac_ext
5345 fi
5346 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5347 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5348
5349 if test $ac_cv_func_alloca_works = yes; then
5350
5351 cat >>confdefs.h <<\_ACEOF
5352 #define HAVE_ALLOCA 1
5353 _ACEOF
5354
5355 else
5356 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5357 # that cause trouble. Some versions do not even contain alloca or
5358 # contain a buggy version. If you still want to use their alloca,
5359 # use ar to extract alloca.o from them instead of compiling alloca.c.
5360
5361 ALLOCA=alloca.$ac_objext
5362
5363 cat >>confdefs.h <<\_ACEOF
5364 #define C_ALLOCA 1
5365 _ACEOF
5366
5367
5368 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5369 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5370 if test "${ac_cv_os_cray+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #if defined(CRAY) && ! defined(CRAY2)
5380 webecray
5381 #else
5382 wenotbecray
5383 #endif
5384
5385 _ACEOF
5386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5387 $EGREP "webecray" >/dev/null 2>&1; then
5388 ac_cv_os_cray=yes
5389 else
5390 ac_cv_os_cray=no
5391 fi
5392 rm -f conftest*
5393
5394 fi
5395 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5396 echo "${ECHO_T}$ac_cv_os_cray" >&6
5397 if test $ac_cv_os_cray = yes; then
5398 for ac_func in _getb67 GETB67 getb67; do
5399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5400 echo "$as_me:$LINENO: checking for $ac_func" >&5
5401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_var+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5413 #define $ac_func innocuous_$ac_func
5414
5415 /* System header to define __stub macros and hopefully few prototypes,
5416 which can conflict with char $ac_func (); below.
5417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5418 <limits.h> exists even on freestanding compilers. */
5419
5420 #ifdef __STDC__
5421 # include <limits.h>
5422 #else
5423 # include <assert.h>
5424 #endif
5425
5426 #undef $ac_func
5427
5428 /* Override any gcc2 internal prototype to avoid an error. */
5429 #ifdef __cplusplus
5430 extern "C"
5431 {
5432 #endif
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5435 char $ac_func ();
5436 /* The GNU C library defines this for functions which it implements
5437 to always fail with ENOSYS. Some functions are actually named
5438 something starting with __ and the normal name is an alias. */
5439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5440 choke me
5441 #else
5442 char (*f) () = $ac_func;
5443 #endif
5444 #ifdef __cplusplus
5445 }
5446 #endif
5447
5448 int
5449 main ()
5450 {
5451 return f != $ac_func;
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -z "$ac_c_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try='test -s conftest$ac_exeext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 eval "$as_ac_var=yes"
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 eval "$as_ac_var=no"
5484 fi
5485 rm -f conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487 fi
5488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5490 if test `eval echo '${'$as_ac_var'}'` = yes; then
5491
5492 cat >>confdefs.h <<_ACEOF
5493 #define CRAY_STACKSEG_END $ac_func
5494 _ACEOF
5495
5496 break
5497 fi
5498
5499 done
5500 fi
5501
5502 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5503 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5504 if test "${ac_cv_c_stack_direction+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 if test "$cross_compiling" = yes; then
5508 ac_cv_c_stack_direction=0
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 int
5517 find_stack_direction ()
5518 {
5519 static char *addr = 0;
5520 auto char dummy;
5521 if (addr == 0)
5522 {
5523 addr = &dummy;
5524 return find_stack_direction ();
5525 }
5526 else
5527 return (&dummy > addr) ? 1 : -1;
5528 }
5529
5530 int
5531 main ()
5532 {
5533 exit (find_stack_direction () < 0);
5534 }
5535 _ACEOF
5536 rm -f conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_c_stack_direction=1
5548 else
5549 echo "$as_me: program exited with status $ac_status" >&5
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 ( exit $ac_status )
5554 ac_cv_c_stack_direction=-1
5555 fi
5556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5557 fi
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5560 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5561
5562 cat >>confdefs.h <<_ACEOF
5563 #define STACK_DIRECTION $ac_cv_c_stack_direction
5564 _ACEOF
5565
5566
5567 fi
5568
5569 echo "$as_me:$LINENO: checking for working strcoll" >&5
5570 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
5571 if test "${ac_cv_func_strcoll_works+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 if test "$cross_compiling" = yes; then
5575 ac_cv_func_strcoll_works=no
5576 else
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5584 int
5585 main ()
5586 {
5587 exit (strcoll ("abc", "def") >= 0 ||
5588 strcoll ("ABC", "DEF") >= 0 ||
5589 strcoll ("123", "456") >= 0)
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_func_strcoll_works=yes
5606 else
5607 echo "$as_me: program exited with status $ac_status" >&5
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 ( exit $ac_status )
5612 ac_cv_func_strcoll_works=no
5613 fi
5614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5615 fi
5616 fi
5617 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
5618 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
5619 if test $ac_cv_func_strcoll_works = yes; then
5620
5621 cat >>confdefs.h <<\_ACEOF
5622 #define HAVE_STRCOLL 1
5623 _ACEOF
5624
5625 fi
5626
5627
5628 for ac_func in vprintf
5629 do
5630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5631 echo "$as_me:$LINENO: checking for $ac_func" >&5
5632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5633 if eval "test \"\${$as_ac_var+set}\" = set"; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5644 #define $ac_func innocuous_$ac_func
5645
5646 /* System header to define __stub macros and hopefully few prototypes,
5647 which can conflict with char $ac_func (); below.
5648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649 <limits.h> exists even on freestanding compilers. */
5650
5651 #ifdef __STDC__
5652 # include <limits.h>
5653 #else
5654 # include <assert.h>
5655 #endif
5656
5657 #undef $ac_func
5658
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 #ifdef __cplusplus
5661 extern "C"
5662 {
5663 #endif
5664 /* We use char because int might match the return type of a gcc2
5665 builtin and then its argument prototype would still apply. */
5666 char $ac_func ();
5667 /* The GNU C library defines this for functions which it implements
5668 to always fail with ENOSYS. Some functions are actually named
5669 something starting with __ and the normal name is an alias. */
5670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5671 choke me
5672 #else
5673 char (*f) () = $ac_func;
5674 #endif
5675 #ifdef __cplusplus
5676 }
5677 #endif
5678
5679 int
5680 main ()
5681 {
5682 return f != $ac_func;
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
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); }; } &&
5703 { ac_try='test -s conftest$ac_exeext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 eval "$as_ac_var=yes"
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 eval "$as_ac_var=no"
5715 fi
5716 rm -f conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext conftest.$ac_ext
5718 fi
5719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5721 if test `eval echo '${'$as_ac_var'}'` = yes; then
5722 cat >>confdefs.h <<_ACEOF
5723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5724 _ACEOF
5725
5726 echo "$as_me:$LINENO: checking for _doprnt" >&5
5727 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5728 if test "${ac_cv_func__doprnt+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5739 #define _doprnt innocuous__doprnt
5740
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char _doprnt (); below.
5743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5744 <limits.h> exists even on freestanding compilers. */
5745
5746 #ifdef __STDC__
5747 # include <limits.h>
5748 #else
5749 # include <assert.h>
5750 #endif
5751
5752 #undef _doprnt
5753
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 #ifdef __cplusplus
5756 extern "C"
5757 {
5758 #endif
5759 /* We use char because int might match the return type of a gcc2
5760 builtin and then its argument prototype would still apply. */
5761 char _doprnt ();
5762 /* The GNU C library defines this for functions which it implements
5763 to always fail with ENOSYS. Some functions are actually named
5764 something starting with __ and the normal name is an alias. */
5765 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5766 choke me
5767 #else
5768 char (*f) () = _doprnt;
5769 #endif
5770 #ifdef __cplusplus
5771 }
5772 #endif
5773
5774 int
5775 main ()
5776 {
5777 return f != _doprnt;
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest$ac_exeext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_func__doprnt=yes
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 ac_cv_func__doprnt=no
5810 fi
5811 rm -f conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5813 fi
5814 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5815 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5816 if test $ac_cv_func__doprnt = yes; then
5817
5818 cat >>confdefs.h <<\_ACEOF
5819 #define HAVE_DOPRNT 1
5820 _ACEOF
5821
5822 fi
5823
5824 fi
5825 done
5826
5827
5828 # in theory only pre-sysvr3 systems needed this and it's not likely
5829 # that anyone compiling new texinfo still has such a thing? we'll see.
5830 # AC_FUNC_SETVBUF_REVERSED
5831
5832
5833
5834
5835
5836
5837
5838
5839 for ac_func in bzero getcwd memset setvbuf sigaction sigprocmask \
5840 sigsetmask strchr
5841 do
5842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5843 echo "$as_me:$LINENO: checking for $ac_func" >&5
5844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5845 if eval "test \"\${$as_ac_var+set}\" = set"; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5856 #define $ac_func innocuous_$ac_func
5857
5858 /* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char $ac_func (); below.
5860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861 <limits.h> exists even on freestanding compilers. */
5862
5863 #ifdef __STDC__
5864 # include <limits.h>
5865 #else
5866 # include <assert.h>
5867 #endif
5868
5869 #undef $ac_func
5870
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 {
5875 #endif
5876 /* We use char because int might match the return type of a gcc2
5877 builtin and then its argument prototype would still apply. */
5878 char $ac_func ();
5879 /* The GNU C library defines this for functions which it implements
5880 to always fail with ENOSYS. Some functions are actually named
5881 something starting with __ and the normal name is an alias. */
5882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5883 choke me
5884 #else
5885 char (*f) () = $ac_func;
5886 #endif
5887 #ifdef __cplusplus
5888 }
5889 #endif
5890
5891 int
5892 main ()
5893 {
5894 return f != $ac_func;
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>conftest.er1
5902 ac_status=$?
5903 grep -v '^ *+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag"
5909 || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest$ac_exeext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 eval "$as_ac_var=yes"
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 eval "$as_ac_var=no"
5927 fi
5928 rm -f conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 fi
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5933 if test `eval echo '${'$as_ac_var'}'` = yes; then
5934 cat >>confdefs.h <<_ACEOF
5935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5936 _ACEOF
5937
5938 fi
5939 done
5940
5941
5942
5943
5944
5945 for ac_func in memcpy memmove strdup strerror
5946 do
5947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5948 echo "$as_me:$LINENO: checking for $ac_func" >&5
5949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5950 if eval "test \"\${$as_ac_var+set}\" = set"; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5961 #define $ac_func innocuous_$ac_func
5962
5963 /* System header to define __stub macros and hopefully few prototypes,
5964 which can conflict with char $ac_func (); below.
5965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5966 <limits.h> exists even on freestanding compilers. */
5967
5968 #ifdef __STDC__
5969 # include <limits.h>
5970 #else
5971 # include <assert.h>
5972 #endif
5973
5974 #undef $ac_func
5975
5976 /* Override any gcc2 internal prototype to avoid an error. */
5977 #ifdef __cplusplus
5978 extern "C"
5979 {
5980 #endif
5981 /* We use char because int might match the return type of a gcc2
5982 builtin and then its argument prototype would still apply. */
5983 char $ac_func ();
5984 /* The GNU C library defines this for functions which it implements
5985 to always fail with ENOSYS. Some functions are actually named
5986 something starting with __ and the normal name is an alias. */
5987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5988 choke me
5989 #else
5990 char (*f) () = $ac_func;
5991 #endif
5992 #ifdef __cplusplus
5993 }
5994 #endif
5995
5996 int
5997 main ()
5998 {
5999 return f != $ac_func;
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>conftest.er1
6007 ac_status=$?
6008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } &&
6013 { ac_try='test -z "$ac_c_werror_flag"
6014 || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest$ac_exeext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 eval "$as_ac_var=yes"
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 eval "$as_ac_var=no"
6032 fi
6033 rm -f conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 fi
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038 if test `eval echo '${'$as_ac_var'}'` = yes; then
6039 cat >>confdefs.h <<_ACEOF
6040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 _ACEOF
6042
6043 else
6044 case $LIBOBJS in
6045 "$ac_func.$ac_objext" | \
6046 *" $ac_func.$ac_objext" | \
6047 "$ac_func.$ac_objext "* | \
6048 *" $ac_func.$ac_objext "* ) ;;
6049 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6050 esac
6051
6052 fi
6053 done
6054
6055
6056
6057 # strcasecmp and strncasecmp, gnulib-style.
6058
6059
6060
6061 for ac_func in strcasecmp
6062 do
6063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6064 echo "$as_me:$LINENO: checking for $ac_func" >&5
6065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6066 if eval "test \"\${$as_ac_var+set}\" = set"; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6077 #define $ac_func innocuous_$ac_func
6078
6079 /* System header to define __stub macros and hopefully few prototypes,
6080 which can conflict with char $ac_func (); below.
6081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6082 <limits.h> exists even on freestanding compilers. */
6083
6084 #ifdef __STDC__
6085 # include <limits.h>
6086 #else
6087 # include <assert.h>
6088 #endif
6089
6090 #undef $ac_func
6091
6092 /* Override any gcc2 internal prototype to avoid an error. */
6093 #ifdef __cplusplus
6094 extern "C"
6095 {
6096 #endif
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6099 char $ac_func ();
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6104 choke me
6105 #else
6106 char (*f) () = $ac_func;
6107 #endif
6108 #ifdef __cplusplus
6109 }
6110 #endif
6111
6112 int
6113 main ()
6114 {
6115 return f != $ac_func;
6116 ;
6117 return 0;
6118 }
6119 _ACEOF
6120 rm -f conftest.$ac_objext conftest$ac_exeext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6122 (eval $ac_link) 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 eval "$as_ac_var=yes"
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 eval "$as_ac_var=no"
6148 fi
6149 rm -f conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151 fi
6152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6154 if test `eval echo '${'$as_ac_var'}'` = yes; then
6155 cat >>confdefs.h <<_ACEOF
6156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6157 _ACEOF
6158
6159 else
6160 case $LIBOBJS in
6161 "$ac_func.$ac_objext" | \
6162 *" $ac_func.$ac_objext" | \
6163 "$ac_func.$ac_objext "* | \
6164 *" $ac_func.$ac_objext "* ) ;;
6165 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6166 esac
6167
6168 fi
6169 done
6170
6171
6172 if test $ac_cv_func_strcasecmp = no; then
6173
6174 :
6175
6176 fi
6177
6178
6179
6180 for ac_func in strncasecmp
6181 do
6182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6183 echo "$as_me:$LINENO: checking for $ac_func" >&5
6184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6185 if eval "test \"\${$as_ac_var+set}\" = set"; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6196 #define $ac_func innocuous_$ac_func
6197
6198 /* System header to define __stub macros and hopefully few prototypes,
6199 which can conflict with char $ac_func (); below.
6200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6201 <limits.h> exists even on freestanding compilers. */
6202
6203 #ifdef __STDC__
6204 # include <limits.h>
6205 #else
6206 # include <assert.h>
6207 #endif
6208
6209 #undef $ac_func
6210
6211 /* Override any gcc2 internal prototype to avoid an error. */
6212 #ifdef __cplusplus
6213 extern "C"
6214 {
6215 #endif
6216 /* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6218 char $ac_func ();
6219 /* The GNU C library defines this for functions which it implements
6220 to always fail with ENOSYS. Some functions are actually named
6221 something starting with __ and the normal name is an alias. */
6222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6223 choke me
6224 #else
6225 char (*f) () = $ac_func;
6226 #endif
6227 #ifdef __cplusplus
6228 }
6229 #endif
6230
6231 int
6232 main ()
6233 {
6234 return f != $ac_func;
6235 ;
6236 return 0;
6237 }
6238 _ACEOF
6239 rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6241 (eval $ac_link) 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag"
6249 || test ! -s conftest.err'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try='test -s conftest$ac_exeext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 eval "$as_ac_var=yes"
6262 else
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6265
6266 eval "$as_ac_var=no"
6267 fi
6268 rm -f conftest.err conftest.$ac_objext \
6269 conftest$ac_exeext conftest.$ac_ext
6270 fi
6271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6273 if test `eval echo '${'$as_ac_var'}'` = yes; then
6274 cat >>confdefs.h <<_ACEOF
6275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6276 _ACEOF
6277
6278 else
6279 case $LIBOBJS in
6280 "$ac_func.$ac_objext" | \
6281 *" $ac_func.$ac_objext" | \
6282 "$ac_func.$ac_objext "* | \
6283 *" $ac_func.$ac_objext "* ) ;;
6284 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6285 esac
6286
6287 fi
6288 done
6289
6290
6291 if test $ac_cv_func_strncasecmp = no; then
6292
6293 :
6294
6295 fi
6296
6297
6298
6299 # We want to recognize djgpp to avoid the useless warning about no
6300 # term library.
6301 # Make sure we can run config.sub.
6302 $ac_config_sub sun4 >/dev/null 2>&1 ||
6303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6305 { (exit 1); exit 1; }; }
6306
6307 echo "$as_me:$LINENO: checking build system type" >&5
6308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6309 if test "${ac_cv_build+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 ac_cv_build_alias=$build_alias
6313 test -z "$ac_cv_build_alias" &&
6314 ac_cv_build_alias=`$ac_config_guess`
6315 test -z "$ac_cv_build_alias" &&
6316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6318 { (exit 1); exit 1; }; }
6319 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6322 { (exit 1); exit 1; }; }
6323
6324 fi
6325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6326 echo "${ECHO_T}$ac_cv_build" >&6
6327 build=$ac_cv_build
6328 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6329 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6330 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6331
6332
6333
6334 # We need to run some of our own binaries, most notably makedoc, but as
6335 # long as we have this process, we also use our own makeinfo and
6336 # install-info.
6337 #
6338 # This means that if we are cross compiling, we have to configure the
6339 # package twice: once with the native compiler (this is done in a
6340 # subdirectory $native_tools), and once with the cross compiler.
6341 # The former is invoked automatically here, with --host=$build.
6342 # $native_tools is also added to SUBDIRS in the main Makefile.am,
6343 # so that make compiles the native tools first.
6344 #
6345 if test "$cross_compiling" = no; then
6346 native_tools=
6347 else
6348 native_tools=tools
6349 test -d "$native_tools" || mkdir "$native_tools"
6350 confdir=`(cd "$srcdir";pwd)`
6351 # Make sure the secondary configure won't fail with
6352 # "error: source directory already configured".
6353 rm -f config.status
6354 { echo "$as_me:$LINENO: Doing configure of native tools (${build})." >&5
6355 echo "$as_me: Doing configure of native tools (${build})." >&6;}
6356 cd "$native_tools" || exit 1
6357 # Run secondary configure in alternate environment or
6358 # it gets the wrong CC etc. env -i gives this build host configure
6359 # a clean environment.
6360 env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \
6361 PATH="${PATH}" \
6362 tools_only=1 \
6363 ${confdir}/configure --build=${build} --host=${build} \
6364 --disable-rpath --disable-nls
6365 cd .. || exit 1
6366 { echo "$as_me:$LINENO: Continuing with main configure (${host})." >&5
6367 echo "$as_me: Continuing with main configure (${host})." >&6;}
6368 fi
6369
6370
6371
6372 if test "x$tools_only" = x1; then
6373 TOOLS_ONLY_TRUE=
6374 TOOLS_ONLY_FALSE='#'
6375 else
6376 TOOLS_ONLY_TRUE='#'
6377 TOOLS_ONLY_FALSE=
6378 fi
6379
6380
6381 # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
6382 # rather ncurses. So we check for it.
6383 TERMLIBS=
6384 # Check for termlib before termcap because Solaris termcap needs libucb.
6385 TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo"
6386 for termlib in ${TERMLIB_VARIANTS}; do
6387 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
6388 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
6389 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 ac_check_lib_save_LIBS=$LIBS
6394 LIBS="-l${termlib} $LIBS"
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6401
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 #ifdef __cplusplus
6404 extern "C"
6405 #endif
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6408 char tgetent ();
6409 int
6410 main ()
6411 {
6412 tgetent ();
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext conftest$ac_exeext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6419 (eval $ac_link) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest$ac_exeext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 eval "$as_ac_Lib=yes"
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 eval "$as_ac_Lib=no"
6445 fi
6446 rm -f conftest.err conftest.$ac_objext \
6447 conftest$ac_exeext conftest.$ac_ext
6448 LIBS=$ac_check_lib_save_LIBS
6449 fi
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6452 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6453 TERMLIBS="${TERMLIBS} -l${termlib}"; break
6454 fi
6455
6456 done
6457 # don't bother warning on djgpp, it doesn't have a term library, it
6458 # ports each termcap-needing program separately according to its needs.
6459 if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then
6460 { echo "$as_me:$LINENO: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5
6461 echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;}
6462 fi
6463
6464 # Checks for variables.
6465 # HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc.
6466 echo "$as_me:$LINENO: checking for library with termcap variables" >&5
6467 echo $ECHO_N "checking for library with termcap variables... $ECHO_C" >&6
6468 if test "${ac_cv_var_ospeed+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 oldLIBS=$LIBS
6472 for trylib in $termlib ${TERMLIB_VARIANTS}; do
6473 if test "x$trylib" != "x$termlib"; then
6474 LIBS="$oldLIBS -l$termlib -l$trylib"
6475 else
6476 LIBS="$oldLIBS -l$termlib"
6477 fi
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484
6485 int
6486 main ()
6487 {
6488 #ifdef HAVE_NCURSES_TERMCAP_H
6489 #include <ncurses/termcap.h>
6490 #else
6491 #ifdef HAVE_TERMCAP_H
6492 #include <termcap.h>
6493 #else
6494 #undef PC
6495 char *BC;
6496 char **UP;
6497 char PC;
6498 short ospeed;
6499 #endif
6500 #endif
6501 /* Make sure all variables actually exist. AIX 4.3 has ospeed but no BC.
6502 --Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000. */
6503 BC++;
6504 UP++;
6505 PC++;
6506 return ospeed != 0;
6507
6508 ;
6509 return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_c_werror_flag"
6522 || test ! -s conftest.err'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; } &&
6528 { ac_try='test -s conftest$ac_exeext'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 ac_cv_var_ospeed=$trylib; break
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 fi
6540 rm -f conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
6542 done
6543 LIBS=$oldLIBS
6544
6545 fi
6546
6547 echo "$as_me:$LINENO: result: $ac_cv_var_ospeed" >&5
6548 echo "${ECHO_T}$ac_cv_var_ospeed" >&6
6549 if test -n "$ac_cv_var_ospeed" \
6550 && test "x$termlib" != "x$ac_cv_var_ospeed"; then
6551 TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
6552 fi
6553 #
6554
6555 # Do not use <ncurses/termcap.h> unless we're linking with ncurses.
6556 # Must come after the termlib tests.
6557 if test "x$termlib" = xncurses; then
6558 # Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined.
6559
6560 for ac_header in ncurses/termcap.h
6561 do
6562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564 echo "$as_me:$LINENO: checking for $ac_header" >&5
6565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 fi
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6571 else
6572 # Is the header compilable?
6573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h. */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 $ac_includes_default
6582 #include <$ac_header>
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -z "$ac_c_werror_flag"
6594 || test ! -s conftest.err'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; } &&
6600 { ac_try='test -s conftest.$ac_objext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 ac_header_compiler=yes
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 ac_header_compiler=no
6612 fi
6613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6615 echo "${ECHO_T}$ac_header_compiler" >&6
6616
6617 # Is the header present?
6618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #include <$ac_header>
6627 _ACEOF
6628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } >/dev/null; then
6636 if test -s conftest.err; then
6637 ac_cpp_err=$ac_c_preproc_warn_flag
6638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6639 else
6640 ac_cpp_err=
6641 fi
6642 else
6643 ac_cpp_err=yes
6644 fi
6645 if test -z "$ac_cpp_err"; then
6646 ac_header_preproc=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_header_preproc=no
6652 fi
6653 rm -f conftest.err conftest.$ac_ext
6654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6655 echo "${ECHO_T}$ac_header_preproc" >&6
6656
6657 # So? What about this header?
6658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6659 yes:no: )
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6664 ac_header_preproc=yes
6665 ;;
6666 no:yes:* )
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6679 (
6680 cat <<\_ASBOX
6681 ## -------------------------------------- ##
6682 ## Report this to the GNU Texinfo lists. ##
6683 ## -------------------------------------- ##
6684 _ASBOX
6685 ) |
6686 sed "s/^/$as_me: WARNING: /" >&2
6687 ;;
6688 esac
6689 echo "$as_me:$LINENO: checking for $ac_header" >&5
6690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 eval "$as_ac_Header=\$ac_header_preproc"
6695 fi
6696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6698
6699 fi
6700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6701 cat >>confdefs.h <<_ACEOF
6702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6703 _ACEOF
6704
6705 fi
6706
6707 done
6708
6709 fi
6710
6711 # gnulib.
6712
6713
6714
6715
6716
6717 for ac_header in $gl_header_list
6718 do
6719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6721 echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 fi
6726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6728 else
6729 # Is the header compilable?
6730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 $ac_includes_default
6739 #include <$ac_header>
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743 (eval $ac_compile) 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try='test -z "$ac_c_werror_flag"
6751 || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try='test -s conftest.$ac_objext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_header_compiler=yes
6764 else
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768 ac_header_compiler=no
6769 fi
6770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6772 echo "${ECHO_T}$ac_header_compiler" >&6
6773
6774 # Is the header present?
6775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6777 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 #include <$ac_header>
6784 _ACEOF
6785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } >/dev/null; then
6793 if test -s conftest.err; then
6794 ac_cpp_err=$ac_c_preproc_warn_flag
6795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6796 else
6797 ac_cpp_err=
6798 fi
6799 else
6800 ac_cpp_err=yes
6801 fi
6802 if test -z "$ac_cpp_err"; then
6803 ac_header_preproc=yes
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 ac_header_preproc=no
6809 fi
6810 rm -f conftest.err conftest.$ac_ext
6811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6812 echo "${ECHO_T}$ac_header_preproc" >&6
6813
6814 # So? What about this header?
6815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6816 yes:no: )
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6821 ac_header_preproc=yes
6822 ;;
6823 no:yes:* )
6824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6836 (
6837 cat <<\_ASBOX
6838 ## -------------------------------------- ##
6839 ## Report this to the GNU Texinfo lists. ##
6840 ## -------------------------------------- ##
6841 _ASBOX
6842 ) |
6843 sed "s/^/$as_me: WARNING: /" >&2
6844 ;;
6845 esac
6846 echo "$as_me:$LINENO: checking for $ac_header" >&5
6847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 eval "$as_ac_Header=\$ac_header_preproc"
6852 fi
6853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6855
6856 fi
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6860 _ACEOF
6861
6862 fi
6863
6864 done
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
6885 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
6886 if test "${ac_cv_have_decl_getenv+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 $ac_includes_default
6896 int
6897 main ()
6898 {
6899 #ifndef getenv
6900 char *p = (char *) getenv;
6901 #endif
6902
6903 ;
6904 return 0;
6905 }
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_have_decl_getenv=yes
6930 else
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6933
6934 ac_cv_have_decl_getenv=no
6935 fi
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 fi
6938 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
6939 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
6940 if test $ac_cv_have_decl_getenv = yes; then
6941
6942 cat >>confdefs.h <<_ACEOF
6943 #define HAVE_DECL_GETENV 1
6944 _ACEOF
6945
6946
6947 else
6948 cat >>confdefs.h <<_ACEOF
6949 #define HAVE_DECL_GETENV 0
6950 _ACEOF
6951
6952
6953 fi
6954
6955
6956
6957
6958 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6959 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6960 if test "${gl_cv_header_inttypes_h+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h. */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 #include <sys/types.h>
6970 #include <inttypes.h>
6971 int
6972 main ()
6973 {
6974 uintmax_t i = (uintmax_t) -1;
6975 ;
6976 return 0;
6977 }
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try='test -z "$ac_c_werror_flag"
6989 || test ! -s conftest.err'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; } &&
6995 { ac_try='test -s conftest.$ac_objext'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7001 gl_cv_header_inttypes_h=yes
7002 else
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006 gl_cv_header_inttypes_h=no
7007 fi
7008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7009 fi
7010 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7011 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7012 if test $gl_cv_header_inttypes_h = yes; then
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7016 _ACEOF
7017
7018 fi
7019
7020
7021 echo "$as_me:$LINENO: checking for stdint.h" >&5
7022 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7023 if test "${gl_cv_header_stdint_h+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <sys/types.h>
7033 #include <stdint.h>
7034 int
7035 main ()
7036 {
7037 uintmax_t i = (uintmax_t) -1;
7038 ;
7039 return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 gl_cv_header_stdint_h=yes
7065 else
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 gl_cv_header_stdint_h=no
7070 fi
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072 fi
7073 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7074 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7075 if test $gl_cv_header_stdint_h = yes; then
7076
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_STDINT_H_WITH_UINTMAX 1
7079 _ACEOF
7080
7081 fi
7082
7083
7084 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7085 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7086 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 unsigned long long ull = 1ULL; int i = 63;
7096 int
7097 main ()
7098 {
7099 unsigned long long ullmax = (unsigned long long) -1;
7100 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7101 ;
7102 return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107 (eval $ac_link) 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_type_unsigned_long_long=yes
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_cv_type_unsigned_long_long=no
7133 fi
7134 rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7138 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7139 if test $ac_cv_type_unsigned_long_long = yes; then
7140
7141 cat >>confdefs.h <<\_ACEOF
7142 #define HAVE_UNSIGNED_LONG_LONG 1
7143 _ACEOF
7144
7145 fi
7146
7147
7148
7149
7150 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7151
7152 test $ac_cv_type_unsigned_long_long = yes \
7153 && ac_type='unsigned long long' \
7154 || ac_type='unsigned long'
7155
7156 cat >>confdefs.h <<_ACEOF
7157 #define uintmax_t $ac_type
7158 _ACEOF
7159
7160 else
7161
7162 cat >>confdefs.h <<\_ACEOF
7163 #define HAVE_UINTMAX_T 1
7164 _ACEOF
7165
7166 fi
7167
7168
7169 for ac_func in mkstemp
7170 do
7171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7172 echo "$as_me:$LINENO: checking for $ac_func" >&5
7173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7174 if eval "test \"\${$as_ac_var+set}\" = set"; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7185 #define $ac_func innocuous_$ac_func
7186
7187 /* System header to define __stub macros and hopefully few prototypes,
7188 which can conflict with char $ac_func (); below.
7189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190 <limits.h> exists even on freestanding compilers. */
7191
7192 #ifdef __STDC__
7193 # include <limits.h>
7194 #else
7195 # include <assert.h>
7196 #endif
7197
7198 #undef $ac_func
7199
7200 /* Override any gcc2 internal prototype to avoid an error. */
7201 #ifdef __cplusplus
7202 extern "C"
7203 {
7204 #endif
7205 /* We use char because int might match the return type of a gcc2
7206 builtin and then its argument prototype would still apply. */
7207 char $ac_func ();
7208 /* The GNU C library defines this for functions which it implements
7209 to always fail with ENOSYS. Some functions are actually named
7210 something starting with __ and the normal name is an alias. */
7211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7212 choke me
7213 #else
7214 char (*f) () = $ac_func;
7215 #endif
7216 #ifdef __cplusplus
7217 }
7218 #endif
7219
7220 int
7221 main ()
7222 {
7223 return f != $ac_func;
7224 ;
7225 return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest.$ac_objext conftest$ac_exeext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7230 (eval $ac_link) 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 eval "$as_ac_var=yes"
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 eval "$as_ac_var=no"
7256 fi
7257 rm -f conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7259 fi
7260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7262 if test `eval echo '${'$as_ac_var'}'` = yes; then
7263 cat >>confdefs.h <<_ACEOF
7264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7265 _ACEOF
7266
7267 else
7268 case $LIBOBJS in
7269 "$ac_func.$ac_objext" | \
7270 *" $ac_func.$ac_objext" | \
7271 "$ac_func.$ac_objext "* | \
7272 *" $ac_func.$ac_objext "* ) ;;
7273 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7274 esac
7275
7276 fi
7277 done
7278
7279
7280 if test $ac_cv_func_mkstemp = no; then
7281 gl_cv_func_mkstemp_limitations=yes
7282 else
7283 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
7284 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
7285 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288
7289 if test "$cross_compiling" = yes; then
7290 gl_cv_func_mkstemp_limitations=yes
7291
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299
7300 # include <stdlib.h>
7301 int main ()
7302 {
7303 int i;
7304 for (i = 0; i < 70; i++)
7305 {
7306 char template[] = "conftestXXXXXX";
7307 int fd = mkstemp (template);
7308 if (fd == -1)
7309 exit (1);
7310 close (fd);
7311 }
7312 exit (0);
7313 }
7314
7315 _ACEOF
7316 rm -f conftest$ac_exeext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7318 (eval $ac_link) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 gl_cv_func_mkstemp_limitations=no
7328 else
7329 echo "$as_me: program exited with status $ac_status" >&5
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ( exit $ac_status )
7334 gl_cv_func_mkstemp_limitations=yes
7335 fi
7336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7337 fi
7338
7339
7340 fi
7341 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
7342 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
7343 fi
7344
7345 if test $gl_cv_func_mkstemp_limitations = yes; then
7346 case $LIBOBJS in
7347 "mkstemp.$ac_objext" | \
7348 *" mkstemp.$ac_objext" | \
7349 "mkstemp.$ac_objext "* | \
7350 *" mkstemp.$ac_objext "* ) ;;
7351 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
7352 esac
7353
7354 case $LIBOBJS in
7355 "tempname.$ac_objext" | \
7356 *" tempname.$ac_objext" | \
7357 "tempname.$ac_objext "* | \
7358 *" tempname.$ac_objext "* ) ;;
7359 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
7360 esac
7361
7362
7363 cat >>confdefs.h <<\_ACEOF
7364 #define mkstemp rpl_mkstemp
7365 _ACEOF
7366
7367
7368
7369
7370
7371
7372 :
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385 for ac_header in stdint.h
7386 do
7387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389 echo "$as_me:$LINENO: checking for $ac_header" >&5
7390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 fi
7394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7396 else
7397 # Is the header compilable?
7398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 $ac_includes_default
7407 #include <$ac_header>
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411 (eval $ac_compile) 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } &&
7418 { ac_try='test -z "$ac_c_werror_flag"
7419 || test ! -s conftest.err'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; } &&
7425 { ac_try='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 (eval $ac_try) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 ac_header_compiler=yes
7432 else
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436 ac_header_compiler=no
7437 fi
7438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7440 echo "${ECHO_T}$ac_header_compiler" >&6
7441
7442 # Is the header present?
7443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 #include <$ac_header>
7452 _ACEOF
7453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } >/dev/null; then
7461 if test -s conftest.err; then
7462 ac_cpp_err=$ac_c_preproc_warn_flag
7463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7464 else
7465 ac_cpp_err=
7466 fi
7467 else
7468 ac_cpp_err=yes
7469 fi
7470 if test -z "$ac_cpp_err"; then
7471 ac_header_preproc=yes
7472 else
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476 ac_header_preproc=no
7477 fi
7478 rm -f conftest.err conftest.$ac_ext
7479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7480 echo "${ECHO_T}$ac_header_preproc" >&6
7481
7482 # So? What about this header?
7483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7484 yes:no: )
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7489 ac_header_preproc=yes
7490 ;;
7491 no:yes:* )
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7504 (
7505 cat <<\_ASBOX
7506 ## -------------------------------------- ##
7507 ## Report this to the GNU Texinfo lists. ##
7508 ## -------------------------------------- ##
7509 _ASBOX
7510 ) |
7511 sed "s/^/$as_me: WARNING: /" >&2
7512 ;;
7513 esac
7514 echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 eval "$as_ac_Header=\$ac_header_preproc"
7520 fi
7521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7523
7524 fi
7525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7526 cat >>confdefs.h <<_ACEOF
7527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528 _ACEOF
7529
7530 fi
7531
7532 done
7533
7534
7535
7536 for ac_func in __secure_getenv gettimeofday
7537 do
7538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7539 echo "$as_me:$LINENO: checking for $ac_func" >&5
7540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7541 if eval "test \"\${$as_ac_var+set}\" = set"; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7552 #define $ac_func innocuous_$ac_func
7553
7554 /* System header to define __stub macros and hopefully few prototypes,
7555 which can conflict with char $ac_func (); below.
7556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7557 <limits.h> exists even on freestanding compilers. */
7558
7559 #ifdef __STDC__
7560 # include <limits.h>
7561 #else
7562 # include <assert.h>
7563 #endif
7564
7565 #undef $ac_func
7566
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 #ifdef __cplusplus
7569 extern "C"
7570 {
7571 #endif
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7574 char $ac_func ();
7575 /* The GNU C library defines this for functions which it implements
7576 to always fail with ENOSYS. Some functions are actually named
7577 something starting with __ and the normal name is an alias. */
7578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7579 choke me
7580 #else
7581 char (*f) () = $ac_func;
7582 #endif
7583 #ifdef __cplusplus
7584 }
7585 #endif
7586
7587 int
7588 main ()
7589 {
7590 return f != $ac_func;
7591 ;
7592 return 0;
7593 }
7594 _ACEOF
7595 rm -f conftest.$ac_objext conftest$ac_exeext
7596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7597 (eval $ac_link) 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -z "$ac_c_werror_flag"
7605 || test ! -s conftest.err'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 (eval $ac_try) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; } &&
7611 { ac_try='test -s conftest$ac_exeext'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 eval "$as_ac_var=yes"
7618 else
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622 eval "$as_ac_var=no"
7623 fi
7624 rm -f conftest.err conftest.$ac_objext \
7625 conftest$ac_exeext conftest.$ac_ext
7626 fi
7627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7629 if test `eval echo '${'$as_ac_var'}'` = yes; then
7630 cat >>confdefs.h <<_ACEOF
7631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7632 _ACEOF
7633
7634 fi
7635 done
7636
7637
7638 :
7639
7640
7641
7642
7643
7644
7645
7646 fi
7647
7648
7649 # For teTeX and TeX Live.
7650 echo "$as_me:$LINENO: checking host system type" >&5
7651 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7652 if test "${ac_cv_host+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655 ac_cv_host_alias=$host_alias
7656 test -z "$ac_cv_host_alias" &&
7657 ac_cv_host_alias=$ac_cv_build_alias
7658 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7660 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7661 { (exit 1); exit 1; }; }
7662
7663 fi
7664 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7665 echo "${ECHO_T}$ac_cv_host" >&6
7666 host=$ac_cv_host
7667 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7668 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7669 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7670
7671
7672 # Check whether --enable-multiplatform or --disable-multiplatform was given.
7673 if test "${enable_multiplatform+set}" = set; then
7674 enableval="$enable_multiplatform"
7675
7676 fi;
7677 # if enable_multiplatform is set in the environment, use that.
7678 test "x$enable_multiplatform" = xyes \
7679 && test "x$bindir" = 'x${exec_prefix}/bin' \
7680 && bindir="$bindir/$host"
7681
7682 # Taken from the example in
7683 # http://www.gnu.org/software/automake/manual/html_node/Conditionals.html.
7684 # Check whether --enable-install-warnings or --disable-install-warnings was given.
7685 if test "${enable_install_warnings+set}" = set; then
7686 enableval="$enable_install_warnings"
7687 case "${enableval}" in
7688 yes) install_warnings=true ;;
7689 no) install_warnings=false ;;
7690 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-warnings" >&5
7691 echo "$as_me: error: bad value ${enableval} for --enable-install-warnings" >&2;}
7692 { (exit 1); exit 1; }; } ;;
7693 esac
7694 else
7695 install_warnings=true
7696 fi;
7697
7698
7699 if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then
7700 INSTALL_WARNINGS_TRUE=
7701 INSTALL_WARNINGS_FALSE='#'
7702 else
7703 INSTALL_WARNINGS_TRUE='#'
7704 INSTALL_WARNINGS_FALSE=
7705 fi
7706
7707
7708 # i18n support. To update to a new version of gettext, run:
7709 # gettextize -f -c --intl
7710
7711
7712 MKINSTALLDIRS=
7713 if test -n "$ac_aux_dir"; then
7714 case "$ac_aux_dir" in
7715 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7716 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7717 esac
7718 fi
7719 if test -z "$MKINSTALLDIRS"; then
7720 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7721 fi
7722
7723
7724
7725 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7726 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7727 # Check whether --enable-nls or --disable-nls was given.
7728 if test "${enable_nls+set}" = set; then
7729 enableval="$enable_nls"
7730 USE_NLS=$enableval
7731 else
7732 USE_NLS=yes
7733 fi;
7734 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7735 echo "${ECHO_T}$USE_NLS" >&6
7736
7737
7738
7739
7740
7741
7742 # Prepare PATH_SEPARATOR.
7743 # The user is always right.
7744 if test "${PATH_SEPARATOR+set}" != set; then
7745 echo "#! /bin/sh" >conf$$.sh
7746 echo "exit 0" >>conf$$.sh
7747 chmod +x conf$$.sh
7748 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7749 PATH_SEPARATOR=';'
7750 else
7751 PATH_SEPARATOR=:
7752 fi
7753 rm -f conf$$.sh
7754 fi
7755
7756 # Find out how to test for executable files. Don't use a zero-byte file,
7757 # as systems may use methods other than mode bits to determine executability.
7758 cat >conf$$.file <<_ASEOF
7759 #! /bin/sh
7760 exit 0
7761 _ASEOF
7762 chmod +x conf$$.file
7763 if test -x conf$$.file >/dev/null 2>&1; then
7764 ac_executable_p="test -x"
7765 else
7766 ac_executable_p="test -f"
7767 fi
7768 rm -f conf$$.file
7769
7770 # Extract the first word of "msgfmt", so it can be a program name with args.
7771 set dummy msgfmt; ac_word=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_path_MSGFMT+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777 case "$MSGFMT" in
7778 [\\/]* | ?:[\\/]*)
7779 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7780 ;;
7781 *)
7782 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7783 for ac_dir in $PATH; do
7784 IFS="$ac_save_IFS"
7785 test -z "$ac_dir" && ac_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7788 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7789 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7790 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7791 break 2
7792 fi
7793 fi
7794 done
7795 done
7796 IFS="$ac_save_IFS"
7797 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7798 ;;
7799 esac
7800 fi
7801 MSGFMT="$ac_cv_path_MSGFMT"
7802 if test "$MSGFMT" != ":"; then
7803 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7804 echo "${ECHO_T}$MSGFMT" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7808 fi
7809
7810 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7811 set dummy gmsgfmt; ac_word=$2
7812 echo "$as_me:$LINENO: checking for $ac_word" >&5
7813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7814 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817 case $GMSGFMT in
7818 [\\/]* | ?:[\\/]*)
7819 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7820 ;;
7821 *)
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7832 fi
7833 done
7834 done
7835
7836 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7837 ;;
7838 esac
7839 fi
7840 GMSGFMT=$ac_cv_path_GMSGFMT
7841
7842 if test -n "$GMSGFMT"; then
7843 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7844 echo "${ECHO_T}$GMSGFMT" >&6
7845 else
7846 echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6
7848 fi
7849
7850
7851
7852 # Prepare PATH_SEPARATOR.
7853 # The user is always right.
7854 if test "${PATH_SEPARATOR+set}" != set; then
7855 echo "#! /bin/sh" >conf$$.sh
7856 echo "exit 0" >>conf$$.sh
7857 chmod +x conf$$.sh
7858 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7859 PATH_SEPARATOR=';'
7860 else
7861 PATH_SEPARATOR=:
7862 fi
7863 rm -f conf$$.sh
7864 fi
7865
7866 # Find out how to test for executable files. Don't use a zero-byte file,
7867 # as systems may use methods other than mode bits to determine executability.
7868 cat >conf$$.file <<_ASEOF
7869 #! /bin/sh
7870 exit 0
7871 _ASEOF
7872 chmod +x conf$$.file
7873 if test -x conf$$.file >/dev/null 2>&1; then
7874 ac_executable_p="test -x"
7875 else
7876 ac_executable_p="test -f"
7877 fi
7878 rm -f conf$$.file
7879
7880 # Extract the first word of "xgettext", so it can be a program name with args.
7881 set dummy xgettext; ac_word=$2
7882 echo "$as_me:$LINENO: checking for $ac_word" >&5
7883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7884 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 case "$XGETTEXT" in
7888 [\\/]* | ?:[\\/]*)
7889 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7890 ;;
7891 *)
7892 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7893 for ac_dir in $PATH; do
7894 IFS="$ac_save_IFS"
7895 test -z "$ac_dir" && ac_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7898 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7899 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7900 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7901 break 2
7902 fi
7903 fi
7904 done
7905 done
7906 IFS="$ac_save_IFS"
7907 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7908 ;;
7909 esac
7910 fi
7911 XGETTEXT="$ac_cv_path_XGETTEXT"
7912 if test "$XGETTEXT" != ":"; then
7913 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7914 echo "${ECHO_T}$XGETTEXT" >&6
7915 else
7916 echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6
7918 fi
7919
7920 rm -f messages.po
7921
7922
7923 # Prepare PATH_SEPARATOR.
7924 # The user is always right.
7925 if test "${PATH_SEPARATOR+set}" != set; then
7926 echo "#! /bin/sh" >conf$$.sh
7927 echo "exit 0" >>conf$$.sh
7928 chmod +x conf$$.sh
7929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7930 PATH_SEPARATOR=';'
7931 else
7932 PATH_SEPARATOR=:
7933 fi
7934 rm -f conf$$.sh
7935 fi
7936
7937 # Find out how to test for executable files. Don't use a zero-byte file,
7938 # as systems may use methods other than mode bits to determine executability.
7939 cat >conf$$.file <<_ASEOF
7940 #! /bin/sh
7941 exit 0
7942 _ASEOF
7943 chmod +x conf$$.file
7944 if test -x conf$$.file >/dev/null 2>&1; then
7945 ac_executable_p="test -x"
7946 else
7947 ac_executable_p="test -f"
7948 fi
7949 rm -f conf$$.file
7950
7951 # Extract the first word of "msgmerge", so it can be a program name with args.
7952 set dummy msgmerge; ac_word=$2
7953 echo "$as_me:$LINENO: checking for $ac_word" >&5
7954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7955 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 case "$MSGMERGE" in
7959 [\\/]* | ?:[\\/]*)
7960 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7961 ;;
7962 *)
7963 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7964 for ac_dir in $PATH; do
7965 IFS="$ac_save_IFS"
7966 test -z "$ac_dir" && ac_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7969 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7970 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7971 break 2
7972 fi
7973 fi
7974 done
7975 done
7976 IFS="$ac_save_IFS"
7977 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7978 ;;
7979 esac
7980 fi
7981 MSGMERGE="$ac_cv_path_MSGMERGE"
7982 if test "$MSGMERGE" != ":"; then
7983 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7984 echo "${ECHO_T}$MSGMERGE" >&6
7985 else
7986 echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6
7988 fi
7989
7990
7991 if test "$GMSGFMT" != ":"; then
7992 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7993 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7994 : ;
7995 else
7996 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7997 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7998 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7999 GMSGFMT=":"
8000 fi
8001 fi
8002
8003 if test "$XGETTEXT" != ":"; then
8004 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8005 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8006 : ;
8007 else
8008 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8009 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8010 XGETTEXT=":"
8011 fi
8012 rm -f messages.po
8013 fi
8014
8015 ac_config_commands="$ac_config_commands default-1"
8016
8017
8018
8019 echo "$as_me:$LINENO: checking for signed" >&5
8020 echo $ECHO_N "checking for signed... $ECHO_C" >&6
8021 if test "${bh_cv_c_signed+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024 cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h. */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030
8031 int
8032 main ()
8033 {
8034 signed char x;
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 bh_cv_c_signed=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 bh_cv_c_signed=no
8067 fi
8068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8071 echo "${ECHO_T}$bh_cv_c_signed" >&6
8072 if test $bh_cv_c_signed = no; then
8073
8074 cat >>confdefs.h <<\_ACEOF
8075 #define signed
8076 _ACEOF
8077
8078 fi
8079
8080 echo "$as_me:$LINENO: checking for inline" >&5
8081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8082 if test "${ac_cv_c_inline+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 ac_cv_c_inline=no
8086 for ac_kw in inline __inline__ __inline; do
8087 cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h. */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 #ifndef __cplusplus
8094 typedef int foo_t;
8095 static $ac_kw foo_t static_foo () {return 0; }
8096 $ac_kw foo_t foo () {return 0; }
8097 #endif
8098
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102 (eval $ac_compile) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag"
8110 || test ! -s conftest.err'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 ac_cv_c_inline=$ac_kw; break
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 fi
8128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129 done
8130
8131 fi
8132 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8133 echo "${ECHO_T}$ac_cv_c_inline" >&6
8134
8135
8136 case $ac_cv_c_inline in
8137 inline | yes) ;;
8138 *)
8139 case $ac_cv_c_inline in
8140 no) ac_val=;;
8141 *) ac_val=$ac_cv_c_inline;;
8142 esac
8143 cat >>confdefs.h <<_ACEOF
8144 #ifndef __cplusplus
8145 #define inline $ac_val
8146 #endif
8147 _ACEOF
8148 ;;
8149 esac
8150
8151 echo "$as_me:$LINENO: checking for size_t" >&5
8152 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8153 if test "${ac_cv_type_size_t+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156 cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 $ac_includes_default
8163 int
8164 main ()
8165 {
8166 if ((size_t *) 0)
8167 return 0;
8168 if (sizeof (size_t))
8169 return 0;
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8176 (eval $ac_compile) 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -z "$ac_c_werror_flag"
8184 || test ! -s conftest.err'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest.$ac_objext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 (eval $ac_try) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 ac_cv_type_size_t=yes
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_cv_type_size_t=no
8202 fi
8203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8204 fi
8205 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8206 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8207 if test $ac_cv_type_size_t = yes; then
8208 :
8209 else
8210
8211 cat >>confdefs.h <<_ACEOF
8212 #define size_t unsigned
8213 _ACEOF
8214
8215 fi
8216
8217
8218 echo "$as_me:$LINENO: checking for long long" >&5
8219 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8220 if test "${ac_cv_type_long_long+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 long long ll = 1LL; int i = 63;
8230 int
8231 main ()
8232 {
8233 long long llmax = (long long) -1;
8234 return ll << i | ll >> i | llmax / ll | llmax % ll;
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 rm -f conftest.$ac_objext conftest$ac_exeext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8241 (eval $ac_link) 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag"
8249 || test ! -s conftest.err'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest$ac_exeext'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8261 ac_cv_type_long_long=yes
8262 else
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266 ac_cv_type_long_long=no
8267 fi
8268 rm -f conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 fi
8271 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8272 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8273 if test $ac_cv_type_long_long = yes; then
8274
8275 cat >>confdefs.h <<\_ACEOF
8276 #define HAVE_LONG_LONG 1
8277 _ACEOF
8278
8279 fi
8280
8281
8282 echo "$as_me:$LINENO: checking for long double" >&5
8283 echo $ECHO_N "checking for long double... $ECHO_C" >&6
8284 if test "${gt_cv_c_long_double+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 if test "$GCC" = yes; then
8288 gt_cv_c_long_double=yes
8289 else
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296
8297 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8298 long double foo = 0.0;
8299 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8300 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8301
8302 int
8303 main ()
8304 {
8305
8306 ;
8307 return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 gt_cv_c_long_double=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 gt_cv_c_long_double=no
8338 fi
8339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8340 fi
8341 fi
8342 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8343 echo "${ECHO_T}$gt_cv_c_long_double" >&6
8344 if test $gt_cv_c_long_double = yes; then
8345
8346 cat >>confdefs.h <<\_ACEOF
8347 #define HAVE_LONG_DOUBLE 1
8348 _ACEOF
8349
8350 fi
8351
8352
8353 echo "$as_me:$LINENO: checking for wchar_t" >&5
8354 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8355 if test "${gt_cv_c_wchar_t+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <stddef.h>
8365 wchar_t foo = (wchar_t)'\0';
8366 int
8367 main ()
8368 {
8369
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376 (eval $ac_compile) 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag"
8384 || test ! -s conftest.err'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; } &&
8390 { ac_try='test -s conftest.$ac_objext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 (eval $ac_try) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 gt_cv_c_wchar_t=yes
8397 else
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 gt_cv_c_wchar_t=no
8402 fi
8403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8406 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
8407 if test $gt_cv_c_wchar_t = yes; then
8408
8409 cat >>confdefs.h <<\_ACEOF
8410 #define HAVE_WCHAR_T 1
8411 _ACEOF
8412
8413 fi
8414
8415
8416 echo "$as_me:$LINENO: checking for wint_t" >&5
8417 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
8418 if test "${gt_cv_c_wint_t+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <wchar.h>
8428 wint_t foo = (wchar_t)'\0';
8429 int
8430 main ()
8431 {
8432
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest.$ac_objext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 gt_cv_c_wint_t=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 gt_cv_c_wint_t=no
8465 fi
8466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8469 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
8470 if test $gt_cv_c_wint_t = yes; then
8471
8472 cat >>confdefs.h <<\_ACEOF
8473 #define HAVE_WINT_T 1
8474 _ACEOF
8475
8476 fi
8477
8478
8479
8480
8481 echo "$as_me:$LINENO: checking for intmax_t" >&5
8482 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8483 if test "${gt_cv_c_intmax_t+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h. */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492
8493 #include <stddef.h>
8494 #include <stdlib.h>
8495 #if HAVE_STDINT_H_WITH_UINTMAX
8496 #include <stdint.h>
8497 #endif
8498 #if HAVE_INTTYPES_H_WITH_UINTMAX
8499 #include <inttypes.h>
8500 #endif
8501
8502 int
8503 main ()
8504 {
8505 intmax_t x = -1;
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 gt_cv_c_intmax_t=yes
8533 else
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537 gt_cv_c_intmax_t=no
8538 fi
8539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540 fi
8541 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8542 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8543 if test $gt_cv_c_intmax_t = yes; then
8544
8545 cat >>confdefs.h <<\_ACEOF
8546 #define HAVE_INTMAX_T 1
8547 _ACEOF
8548
8549 fi
8550
8551
8552
8553 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8554 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8555 if test "${gt_cv_func_printf_posix+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558
8559 if test "$cross_compiling" = yes; then
8560
8561 cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h. */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567
8568 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8569 notposix
8570 #endif
8571
8572 _ACEOF
8573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8574 $EGREP "notposix" >/dev/null 2>&1; then
8575 gt_cv_func_printf_posix="guessing no"
8576 else
8577 gt_cv_func_printf_posix="guessing yes"
8578 fi
8579 rm -f conftest*
8580
8581
8582 else
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589
8590 #include <stdio.h>
8591 #include <string.h>
8592 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8593 dollar expansion (possibly an autoconf bug). */
8594 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8595 static char buf[100];
8596 int main ()
8597 {
8598 sprintf (buf, format, 33, 55);
8599 return (strcmp (buf, "55 33") != 0);
8600 }
8601 _ACEOF
8602 rm -f conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 gt_cv_func_printf_posix=yes
8614 else
8615 echo "$as_me: program exited with status $ac_status" >&5
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 ( exit $ac_status )
8620 gt_cv_func_printf_posix=no
8621 fi
8622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8623 fi
8624
8625 fi
8626 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8627 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8628 case $gt_cv_func_printf_posix in
8629 *yes)
8630
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_POSIX_PRINTF 1
8633 _ACEOF
8634
8635 ;;
8636 esac
8637
8638
8639
8640 for ac_header in stdlib.h unistd.h
8641 do
8642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8644 echo "$as_me:$LINENO: checking for $ac_header" >&5
8645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 fi
8649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8651 else
8652 # Is the header compilable?
8653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8662 #include <$ac_header>
8663 _ACEOF
8664 rm -f conftest.$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest.$ac_objext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_header_compiler=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691 ac_header_compiler=no
8692 fi
8693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8695 echo "${ECHO_T}$ac_header_compiler" >&6
8696
8697 # Is the header present?
8698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8700 cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h. */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 #include <$ac_header>
8707 _ACEOF
8708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } >/dev/null; then
8716 if test -s conftest.err; then
8717 ac_cpp_err=$ac_c_preproc_warn_flag
8718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8719 else
8720 ac_cpp_err=
8721 fi
8722 else
8723 ac_cpp_err=yes
8724 fi
8725 if test -z "$ac_cpp_err"; then
8726 ac_header_preproc=yes
8727 else
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 ac_header_preproc=no
8732 fi
8733 rm -f conftest.err conftest.$ac_ext
8734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735 echo "${ECHO_T}$ac_header_preproc" >&6
8736
8737 # So? What about this header?
8738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8739 yes:no: )
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc=yes
8745 ;;
8746 no:yes:* )
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8759 (
8760 cat <<\_ASBOX
8761 ## -------------------------------------- ##
8762 ## Report this to the GNU Texinfo lists. ##
8763 ## -------------------------------------- ##
8764 _ASBOX
8765 ) |
8766 sed "s/^/$as_me: WARNING: /" >&2
8767 ;;
8768 esac
8769 echo "$as_me:$LINENO: checking for $ac_header" >&5
8770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 eval "$as_ac_Header=\$ac_header_preproc"
8775 fi
8776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8778
8779 fi
8780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8781 cat >>confdefs.h <<_ACEOF
8782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8783 _ACEOF
8784
8785 fi
8786
8787 done
8788
8789
8790 for ac_func in getpagesize
8791 do
8792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8793 echo "$as_me:$LINENO: checking for $ac_func" >&5
8794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_var+set}\" = set"; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h. */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8806 #define $ac_func innocuous_$ac_func
8807
8808 /* System header to define __stub macros and hopefully few prototypes,
8809 which can conflict with char $ac_func (); below.
8810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8811 <limits.h> exists even on freestanding compilers. */
8812
8813 #ifdef __STDC__
8814 # include <limits.h>
8815 #else
8816 # include <assert.h>
8817 #endif
8818
8819 #undef $ac_func
8820
8821 /* Override any gcc2 internal prototype to avoid an error. */
8822 #ifdef __cplusplus
8823 extern "C"
8824 {
8825 #endif
8826 /* We use char because int might match the return type of a gcc2
8827 builtin and then its argument prototype would still apply. */
8828 char $ac_func ();
8829 /* The GNU C library defines this for functions which it implements
8830 to always fail with ENOSYS. Some functions are actually named
8831 something starting with __ and the normal name is an alias. */
8832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8833 choke me
8834 #else
8835 char (*f) () = $ac_func;
8836 #endif
8837 #ifdef __cplusplus
8838 }
8839 #endif
8840
8841 int
8842 main ()
8843 {
8844 return f != $ac_func;
8845 ;
8846 return 0;
8847 }
8848 _ACEOF
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag"
8859 || test ! -s conftest.err'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 eval "$as_ac_var=yes"
8872 else
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 eval "$as_ac_var=no"
8877 fi
8878 rm -f conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 fi
8881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8883 if test `eval echo '${'$as_ac_var'}'` = yes; then
8884 cat >>confdefs.h <<_ACEOF
8885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8886 _ACEOF
8887
8888 fi
8889 done
8890
8891 echo "$as_me:$LINENO: checking for working mmap" >&5
8892 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8893 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 if test "$cross_compiling" = yes; then
8897 ac_cv_func_mmap_fixed_mapped=no
8898 else
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 $ac_includes_default
8906 /* malloc might have been renamed as rpl_malloc. */
8907 #undef malloc
8908
8909 /* Thanks to Mike Haertel and Jim Avera for this test.
8910 Here is a matrix of mmap possibilities:
8911 mmap private not fixed
8912 mmap private fixed at somewhere currently unmapped
8913 mmap private fixed at somewhere already mapped
8914 mmap shared not fixed
8915 mmap shared fixed at somewhere currently unmapped
8916 mmap shared fixed at somewhere already mapped
8917 For private mappings, we should verify that changes cannot be read()
8918 back from the file, nor mmap's back from the file at a different
8919 address. (There have been systems where private was not correctly
8920 implemented like the infamous i386 svr4.0, and systems where the
8921 VM page cache was not coherent with the file system buffer cache
8922 like early versions of FreeBSD and possibly contemporary NetBSD.)
8923 For shared mappings, we should conversely verify that changes get
8924 propagated back to all the places they're supposed to be.
8925
8926 Grep wants private fixed already mapped.
8927 The main things grep needs to know about mmap are:
8928 * does it exist and is it safe to write into the mmap'd area
8929 * how to use it (BSD variants) */
8930
8931 #include <fcntl.h>
8932 #include <sys/mman.h>
8933
8934 #if !STDC_HEADERS && !HAVE_STDLIB_H
8935 char *malloc ();
8936 #endif
8937
8938 /* This mess was copied from the GNU getpagesize.h. */
8939 #if !HAVE_GETPAGESIZE
8940 /* Assume that all systems that can run configure have sys/param.h. */
8941 # if !HAVE_SYS_PARAM_H
8942 # define HAVE_SYS_PARAM_H 1
8943 # endif
8944
8945 # ifdef _SC_PAGESIZE
8946 # define getpagesize() sysconf(_SC_PAGESIZE)
8947 # else /* no _SC_PAGESIZE */
8948 # if HAVE_SYS_PARAM_H
8949 # include <sys/param.h>
8950 # ifdef EXEC_PAGESIZE
8951 # define getpagesize() EXEC_PAGESIZE
8952 # else /* no EXEC_PAGESIZE */
8953 # ifdef NBPG
8954 # define getpagesize() NBPG * CLSIZE
8955 # ifndef CLSIZE
8956 # define CLSIZE 1
8957 # endif /* no CLSIZE */
8958 # else /* no NBPG */
8959 # ifdef NBPC
8960 # define getpagesize() NBPC
8961 # else /* no NBPC */
8962 # ifdef PAGESIZE
8963 # define getpagesize() PAGESIZE
8964 # endif /* PAGESIZE */
8965 # endif /* no NBPC */
8966 # endif /* no NBPG */
8967 # endif /* no EXEC_PAGESIZE */
8968 # else /* no HAVE_SYS_PARAM_H */
8969 # define getpagesize() 8192 /* punt totally */
8970 # endif /* no HAVE_SYS_PARAM_H */
8971 # endif /* no _SC_PAGESIZE */
8972
8973 #endif /* no HAVE_GETPAGESIZE */
8974
8975 int
8976 main ()
8977 {
8978 char *data, *data2, *data3;
8979 int i, pagesize;
8980 int fd;
8981
8982 pagesize = getpagesize ();
8983
8984 /* First, make a file with some known garbage in it. */
8985 data = (char *) malloc (pagesize);
8986 if (!data)
8987 exit (1);
8988 for (i = 0; i < pagesize; ++i)
8989 *(data + i) = rand ();
8990 umask (0);
8991 fd = creat ("conftest.mmap", 0600);
8992 if (fd < 0)
8993 exit (1);
8994 if (write (fd, data, pagesize) != pagesize)
8995 exit (1);
8996 close (fd);
8997
8998 /* Next, try to mmap the file at a fixed address which already has
8999 something else allocated at it. If we can, also make sure that
9000 we see the same garbage. */
9001 fd = open ("conftest.mmap", O_RDWR);
9002 if (fd < 0)
9003 exit (1);
9004 data2 = (char *) malloc (2 * pagesize);
9005 if (!data2)
9006 exit (1);
9007 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9008 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9009 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9010 exit (1);
9011 for (i = 0; i < pagesize; ++i)
9012 if (*(data + i) != *(data2 + i))
9013 exit (1);
9014
9015 /* Finally, make sure that changes to the mapped area do not
9016 percolate back to the file as seen by read(). (This is a bug on
9017 some variants of i386 svr4.0.) */
9018 for (i = 0; i < pagesize; ++i)
9019 *(data2 + i) = *(data2 + i) + 1;
9020 data3 = (char *) malloc (pagesize);
9021 if (!data3)
9022 exit (1);
9023 if (read (fd, data3, pagesize) != pagesize)
9024 exit (1);
9025 for (i = 0; i < pagesize; ++i)
9026 if (*(data + i) != *(data3 + i))
9027 exit (1);
9028 close (fd);
9029 exit (0);
9030 }
9031 _ACEOF
9032 rm -f conftest$ac_exeext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034 (eval $ac_link) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_cv_func_mmap_fixed_mapped=yes
9044 else
9045 echo "$as_me: program exited with status $ac_status" >&5
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049 ( exit $ac_status )
9050 ac_cv_func_mmap_fixed_mapped=no
9051 fi
9052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9053 fi
9054 fi
9055 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9056 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9057 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9058
9059 cat >>confdefs.h <<\_ACEOF
9060 #define HAVE_MMAP 1
9061 _ACEOF
9062
9063 fi
9064 rm -f conftest.mmap
9065
9066
9067 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9068 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9069 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078
9079 #include <features.h>
9080 #ifdef __GNU_LIBRARY__
9081 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9082 Lucky GNU user
9083 #endif
9084 #endif
9085
9086 _ACEOF
9087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9088 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9089 ac_cv_gnu_library_2_1=yes
9090 else
9091 ac_cv_gnu_library_2_1=no
9092 fi
9093 rm -f conftest*
9094
9095
9096
9097 fi
9098 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9099 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9100
9101 GLIBC21="$ac_cv_gnu_library_2_1"
9102
9103
9104
9105
9106 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9107 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9108 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111
9112 if test "$cross_compiling" = yes; then
9113
9114 # Guess based on the CPU.
9115 case "$host_cpu" in
9116 alpha* | i3456786 | m68k | s390*)
9117 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9118 *)
9119 gt_cv_int_divbyzero_sigfpe="guessing no";;
9120 esac
9121
9122 else
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h. */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129
9130 #include <stdlib.h>
9131 #include <signal.h>
9132
9133 static void
9134 #ifdef __cplusplus
9135 sigfpe_handler (int sig)
9136 #else
9137 sigfpe_handler (sig) int sig;
9138 #endif
9139 {
9140 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9141 exit (sig != SIGFPE);
9142 }
9143
9144 int x = 1;
9145 int y = 0;
9146 int z;
9147 int nan;
9148
9149 int main ()
9150 {
9151 signal (SIGFPE, sigfpe_handler);
9152 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9153 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9154 signal (SIGTRAP, sigfpe_handler);
9155 #endif
9156 /* Linux/SPARC yields signal SIGILL. */
9157 #if defined (__sparc__) && defined (__linux__)
9158 signal (SIGILL, sigfpe_handler);
9159 #endif
9160
9161 z = x / y;
9162 nan = y / y;
9163 exit (1);
9164 }
9165
9166 _ACEOF
9167 rm -f conftest$ac_exeext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9169 (eval $ac_link) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 gt_cv_int_divbyzero_sigfpe=yes
9179 else
9180 echo "$as_me: program exited with status $ac_status" >&5
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184 ( exit $ac_status )
9185 gt_cv_int_divbyzero_sigfpe=no
9186 fi
9187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9188 fi
9189
9190 fi
9191 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9192 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9193 case "$gt_cv_int_divbyzero_sigfpe" in
9194 *yes) value=1;;
9195 *) value=0;;
9196 esac
9197
9198 cat >>confdefs.h <<_ACEOF
9199 #define INTDIV0_RAISES_SIGFPE $value
9200 _ACEOF
9201
9202
9203
9204 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9205 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9206 if test "${gt_cv_header_inttypes_h+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h. */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 #include <sys/types.h>
9217 #include <inttypes.h>
9218 int
9219 main ()
9220 {
9221
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9228 (eval $ac_compile) 2>conftest.er1
9229 ac_status=$?
9230 grep -v '^ *+' conftest.er1 >conftest.err
9231 rm -f conftest.er1
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -z "$ac_c_werror_flag"
9236 || test ! -s conftest.err'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; } &&
9242 { ac_try='test -s conftest.$ac_objext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 gt_cv_header_inttypes_h=yes
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253 gt_cv_header_inttypes_h=no
9254 fi
9255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9256
9257 fi
9258 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9259 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9260 if test $gt_cv_header_inttypes_h = yes; then
9261
9262 cat >>confdefs.h <<_ACEOF
9263 #define HAVE_INTTYPES_H 1
9264 _ACEOF
9265
9266 fi
9267
9268
9269
9270 if test $gt_cv_header_inttypes_h = yes; then
9271 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9272 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9273 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 #include <inttypes.h>
9284 #ifdef PRId32
9285 char *p = PRId32;
9286 #endif
9287
9288 int
9289 main ()
9290 {
9291
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298 (eval $ac_compile) 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -z "$ac_c_werror_flag"
9306 || test ! -s conftest.err'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; } &&
9312 { ac_try='test -s conftest.$ac_objext'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; }; then
9318 gt_cv_inttypes_pri_broken=no
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 gt_cv_inttypes_pri_broken=yes
9324 fi
9325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9326
9327 fi
9328 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9329 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9330 fi
9331 if test "$gt_cv_inttypes_pri_broken" = yes; then
9332
9333 cat >>confdefs.h <<_ACEOF
9334 #define PRI_MACROS_BROKEN 1
9335 _ACEOF
9336
9337 fi
9338
9339
9340
9341 for ac_header in stdint.h
9342 do
9343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 fi
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352 else
9353 # Is the header compilable?
9354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 #include <$ac_header>
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_header_compiler=yes
9388 else
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9391
9392 ac_header_compiler=no
9393 fi
9394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6
9397
9398 # Is the header present?
9399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <$ac_header>
9408 _ACEOF
9409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } >/dev/null; then
9417 if test -s conftest.err; then
9418 ac_cpp_err=$ac_c_preproc_warn_flag
9419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9420 else
9421 ac_cpp_err=
9422 fi
9423 else
9424 ac_cpp_err=yes
9425 fi
9426 if test -z "$ac_cpp_err"; then
9427 ac_header_preproc=yes
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_header_preproc=no
9433 fi
9434 rm -f conftest.err conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9436 echo "${ECHO_T}$ac_header_preproc" >&6
9437
9438 # So? What about this header?
9439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9440 yes:no: )
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9445 ac_header_preproc=yes
9446 ;;
9447 no:yes:* )
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9460 (
9461 cat <<\_ASBOX
9462 ## -------------------------------------- ##
9463 ## Report this to the GNU Texinfo lists. ##
9464 ## -------------------------------------- ##
9465 _ASBOX
9466 ) |
9467 sed "s/^/$as_me: WARNING: /" >&2
9468 ;;
9469 esac
9470 echo "$as_me:$LINENO: checking for $ac_header" >&5
9471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 eval "$as_ac_Header=\$ac_header_preproc"
9476 fi
9477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9479
9480 fi
9481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9482 cat >>confdefs.h <<_ACEOF
9483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9484 _ACEOF
9485
9486 fi
9487
9488 done
9489
9490 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9491 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9492 result=
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499
9500 #include <limits.h>
9501 #if HAVE_STDINT_H
9502 #include <stdint.h>
9503 #endif
9504 #ifdef SIZE_MAX
9505 Found it
9506 #endif
9507
9508 _ACEOF
9509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9510 $EGREP "Found it" >/dev/null 2>&1; then
9511 result=yes
9512 fi
9513 rm -f conftest*
9514
9515 if test -z "$result"; then
9516 if test "$cross_compiling" = yes; then
9517 # Depending upon the size, compute the lo and hi bounds.
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <stddef.h>
9525 int
9526 main ()
9527 {
9528 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9529 test_array [0] = 0
9530
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537 (eval $ac_compile) 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -z "$ac_c_werror_flag"
9545 || test ! -s conftest.err'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try='test -s conftest.$ac_objext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_lo=0 ac_mid=0
9558 while :; do
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 #include <stddef.h>
9566 int
9567 main ()
9568 {
9569 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9570 test_array [0] = 0
9571
9572 ;
9573 return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578 (eval $ac_compile) 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag"
9586 || test ! -s conftest.err'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_hi=$ac_mid; break
9599 else
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 ac_lo=`expr $ac_mid + 1`
9604 if test $ac_lo -le $ac_mid; then
9605 ac_lo= ac_hi=
9606 break
9607 fi
9608 ac_mid=`expr 2 '*' $ac_mid + 1`
9609 fi
9610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9611 done
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 #include <stddef.h>
9623 int
9624 main ()
9625 {
9626 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9627 test_array [0] = 0
9628
9629 ;
9630 return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext
9634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9635 (eval $ac_compile) 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -z "$ac_c_werror_flag"
9643 || test ! -s conftest.err'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; } &&
9649 { ac_try='test -s conftest.$ac_objext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_hi=-1 ac_mid=-1
9656 while :; do
9657 cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h. */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9663 #include <stddef.h>
9664 int
9665 main ()
9666 {
9667 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9668 test_array [0] = 0
9669
9670 ;
9671 return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676 (eval $ac_compile) 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag"
9684 || test ! -s conftest.err'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest.$ac_objext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_lo=$ac_mid; break
9697 else
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 ac_hi=`expr '(' $ac_mid ')' - 1`
9702 if test $ac_mid -le $ac_hi; then
9703 ac_lo= ac_hi=
9704 break
9705 fi
9706 ac_mid=`expr 2 '*' $ac_mid`
9707 fi
9708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9709 done
9710 else
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_lo= ac_hi=
9715 fi
9716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9717 fi
9718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9719 # Binary search between lo and hi bounds.
9720 while test "x$ac_lo" != "x$ac_hi"; do
9721 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 #include <stddef.h>
9729 int
9730 main ()
9731 {
9732 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9733 test_array [0] = 0
9734
9735 ;
9736 return 0;
9737 }
9738 _ACEOF
9739 rm -f conftest.$ac_objext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try='test -s conftest.$ac_objext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_hi=$ac_mid
9762 else
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766 ac_lo=`expr '(' $ac_mid ')' + 1`
9767 fi
9768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9769 done
9770 case $ac_lo in
9771 ?*) res_hi=$ac_lo;;
9772 '') result=? ;;
9773 esac
9774 else
9775 if test "$cross_compiling" = yes; then
9776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9777 See \`config.log' for more details." >&5
9778 echo "$as_me: error: cannot run test program while cross compiling
9779 See \`config.log' for more details." >&2;}
9780 { (exit 1); exit 1; }; }
9781 else
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 #include <stddef.h>
9789 long longval () { return ~(size_t)0 / 10; }
9790 unsigned long ulongval () { return ~(size_t)0 / 10; }
9791 #include <stdio.h>
9792 #include <stdlib.h>
9793 int
9794 main ()
9795 {
9796
9797 FILE *f = fopen ("conftest.val", "w");
9798 if (! f)
9799 exit (1);
9800 if ((~(size_t)0 / 10) < 0)
9801 {
9802 long i = longval ();
9803 if (i != (~(size_t)0 / 10))
9804 exit (1);
9805 fprintf (f, "%ld\n", i);
9806 }
9807 else
9808 {
9809 unsigned long i = ulongval ();
9810 if (i != (~(size_t)0 / 10))
9811 exit (1);
9812 fprintf (f, "%lu\n", i);
9813 }
9814 exit (ferror (f) || fclose (f) != 0);
9815
9816 ;
9817 return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 (eval $ac_try) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; }; then
9831 res_hi=`cat conftest.val`
9832 else
9833 echo "$as_me: program exited with status $ac_status" >&5
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 ( exit $ac_status )
9838 result=?
9839 fi
9840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9841 fi
9842 fi
9843 rm -f conftest.val
9844 if test "$cross_compiling" = yes; then
9845 # Depending upon the size, compute the lo and hi bounds.
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h. */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 #include <stddef.h>
9853 int
9854 main ()
9855 {
9856 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9857 test_array [0] = 0
9858
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9865 (eval $ac_compile) 2>conftest.er1
9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -z "$ac_c_werror_flag"
9873 || test ! -s conftest.err'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest.$ac_objext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 (eval $ac_try) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_lo=0 ac_mid=0
9886 while :; do
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h. */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 #include <stddef.h>
9894 int
9895 main ()
9896 {
9897 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9898 test_array [0] = 0
9899
9900 ;
9901 return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest.$ac_objext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_hi=$ac_mid; break
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_lo=`expr $ac_mid + 1`
9932 if test $ac_lo -le $ac_mid; then
9933 ac_lo= ac_hi=
9934 break
9935 fi
9936 ac_mid=`expr 2 '*' $ac_mid + 1`
9937 fi
9938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9939 done
9940 else
9941 echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9943
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 #include <stddef.h>
9951 int
9952 main ()
9953 {
9954 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9955 test_array [0] = 0
9956
9957 ;
9958 return 0;
9959 }
9960 _ACEOF
9961 rm -f conftest.$ac_objext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9963 (eval $ac_compile) 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -z "$ac_c_werror_flag"
9971 || test ! -s conftest.err'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest.$ac_objext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_hi=-1 ac_mid=-1
9984 while :; do
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <stddef.h>
9992 int
9993 main ()
9994 {
9995 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9996 test_array [0] = 0
9997
9998 ;
9999 return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004 (eval $ac_compile) 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag"
10012 || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest.$ac_objext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 ac_lo=$ac_mid; break
10025 else
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10028
10029 ac_hi=`expr '(' $ac_mid ')' - 1`
10030 if test $ac_mid -le $ac_hi; then
10031 ac_lo= ac_hi=
10032 break
10033 fi
10034 ac_mid=`expr 2 '*' $ac_mid`
10035 fi
10036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10037 done
10038 else
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 ac_lo= ac_hi=
10043 fi
10044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10045 fi
10046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10047 # Binary search between lo and hi bounds.
10048 while test "x$ac_lo" != "x$ac_hi"; do
10049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 #include <stddef.h>
10057 int
10058 main ()
10059 {
10060 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10061 test_array [0] = 0
10062
10063 ;
10064 return 0;
10065 }
10066 _ACEOF
10067 rm -f conftest.$ac_objext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069 (eval $ac_compile) 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try='test -z "$ac_c_werror_flag"
10077 || test ! -s conftest.err'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try='test -s conftest.$ac_objext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_hi=$ac_mid
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10093
10094 ac_lo=`expr '(' $ac_mid ')' + 1`
10095 fi
10096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10097 done
10098 case $ac_lo in
10099 ?*) res_lo=$ac_lo;;
10100 '') result=? ;;
10101 esac
10102 else
10103 if test "$cross_compiling" = yes; then
10104 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10105 See \`config.log' for more details." >&5
10106 echo "$as_me: error: cannot run test program while cross compiling
10107 See \`config.log' for more details." >&2;}
10108 { (exit 1); exit 1; }; }
10109 else
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <stddef.h>
10117 long longval () { return ~(size_t)0 % 10; }
10118 unsigned long ulongval () { return ~(size_t)0 % 10; }
10119 #include <stdio.h>
10120 #include <stdlib.h>
10121 int
10122 main ()
10123 {
10124
10125 FILE *f = fopen ("conftest.val", "w");
10126 if (! f)
10127 exit (1);
10128 if ((~(size_t)0 % 10) < 0)
10129 {
10130 long i = longval ();
10131 if (i != (~(size_t)0 % 10))
10132 exit (1);
10133 fprintf (f, "%ld\n", i);
10134 }
10135 else
10136 {
10137 unsigned long i = ulongval ();
10138 if (i != (~(size_t)0 % 10))
10139 exit (1);
10140 fprintf (f, "%lu\n", i);
10141 }
10142 exit (ferror (f) || fclose (f) != 0);
10143
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 res_lo=`cat conftest.val`
10160 else
10161 echo "$as_me: program exited with status $ac_status" >&5
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 ( exit $ac_status )
10166 result=?
10167 fi
10168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10169 fi
10170 fi
10171 rm -f conftest.val
10172 if test "$cross_compiling" = yes; then
10173 # Depending upon the size, compute the lo and hi bounds.
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 #include <stddef.h>
10181 int
10182 main ()
10183 {
10184 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10185 test_array [0] = 0
10186
10187 ;
10188 return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_lo=0 ac_mid=0
10214 while :; do
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h. */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 #include <stddef.h>
10222 int
10223 main ()
10224 {
10225 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10226 test_array [0] = 0
10227
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag"
10242 || test ! -s conftest.err'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest.$ac_objext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_hi=$ac_mid; break
10255 else
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259 ac_lo=`expr $ac_mid + 1`
10260 if test $ac_lo -le $ac_mid; then
10261 ac_lo= ac_hi=
10262 break
10263 fi
10264 ac_mid=`expr 2 '*' $ac_mid + 1`
10265 fi
10266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10267 done
10268 else
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10271
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 #include <stddef.h>
10279 int
10280 main ()
10281 {
10282 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10283 test_array [0] = 0
10284
10285 ;
10286 return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag"
10299 || test ! -s conftest.err'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest.$ac_objext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_hi=-1 ac_mid=-1
10312 while :; do
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 #include <stddef.h>
10320 int
10321 main ()
10322 {
10323 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10324 test_array [0] = 0
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_lo=$ac_mid; break
10353 else
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_hi=`expr '(' $ac_mid ')' - 1`
10358 if test $ac_mid -le $ac_hi; then
10359 ac_lo= ac_hi=
10360 break
10361 fi
10362 ac_mid=`expr 2 '*' $ac_mid`
10363 fi
10364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10365 done
10366 else
10367 echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 ac_lo= ac_hi=
10371 fi
10372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10373 fi
10374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10375 # Binary search between lo and hi bounds.
10376 while test "x$ac_lo" != "x$ac_hi"; do
10377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 #include <stddef.h>
10385 int
10386 main ()
10387 {
10388 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10389 test_array [0] = 0
10390
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag"
10405 || test ! -s conftest.err'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest.$ac_objext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_hi=$ac_mid
10418 else
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 ac_lo=`expr '(' $ac_mid ')' + 1`
10423 fi
10424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10425 done
10426 case $ac_lo in
10427 ?*) fits_in_uint=$ac_lo;;
10428 '') result=? ;;
10429 esac
10430 else
10431 if test "$cross_compiling" = yes; then
10432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10433 See \`config.log' for more details." >&5
10434 echo "$as_me: error: cannot run test program while cross compiling
10435 See \`config.log' for more details." >&2;}
10436 { (exit 1); exit 1; }; }
10437 else
10438 cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h. */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444 #include <stddef.h>
10445 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10446 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10447 #include <stdio.h>
10448 #include <stdlib.h>
10449 int
10450 main ()
10451 {
10452
10453 FILE *f = fopen ("conftest.val", "w");
10454 if (! f)
10455 exit (1);
10456 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10457 {
10458 long i = longval ();
10459 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10460 exit (1);
10461 fprintf (f, "%ld\n", i);
10462 }
10463 else
10464 {
10465 unsigned long i = ulongval ();
10466 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10467 exit (1);
10468 fprintf (f, "%lu\n", i);
10469 }
10470 exit (ferror (f) || fclose (f) != 0);
10471
10472 ;
10473 return 0;
10474 }
10475 _ACEOF
10476 rm -f conftest$ac_exeext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10478 (eval $ac_link) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 fits_in_uint=`cat conftest.val`
10488 else
10489 echo "$as_me: program exited with status $ac_status" >&5
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ( exit $ac_status )
10494 result=?
10495 fi
10496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10497 fi
10498 fi
10499 rm -f conftest.val
10500 if test "$fits_in_uint" = 1; then
10501 cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h. */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10507 #include <stddef.h>
10508 extern size_t foo;
10509 extern unsigned long foo;
10510
10511 int
10512 main ()
10513 {
10514
10515 ;
10516 return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext
10520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10521 (eval $ac_compile) 2>conftest.er1
10522 ac_status=$?
10523 grep -v '^ *+' conftest.er1 >conftest.err
10524 rm -f conftest.er1
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } &&
10528 { ac_try='test -z "$ac_c_werror_flag"
10529 || test ! -s conftest.err'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest.$ac_objext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 fits_in_uint=0
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546 fi
10547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10548 fi
10549 if test -z "$result"; then
10550 if test "$fits_in_uint" = 1; then
10551 result="$res_hi$res_lo"U
10552 else
10553 result="$res_hi$res_lo"UL
10554 fi
10555 else
10556 result='~(size_t)0'
10557 fi
10558 fi
10559 echo "$as_me:$LINENO: result: $result" >&5
10560 echo "${ECHO_T}$result" >&6
10561 if test "$result" != yes; then
10562
10563 cat >>confdefs.h <<_ACEOF
10564 #define SIZE_MAX $result
10565 _ACEOF
10566
10567 fi
10568
10569
10570
10571
10572 for ac_header in stdint.h
10573 do
10574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10576 echo "$as_me:$LINENO: checking for $ac_header" >&5
10577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 fi
10581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10583 else
10584 # Is the header compilable?
10585 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 $ac_includes_default
10594 #include <$ac_header>
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -z "$ac_c_werror_flag"
10606 || test ! -s conftest.err'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest.$ac_objext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_header_compiler=yes
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_header_compiler=no
10624 fi
10625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10627 echo "${ECHO_T}$ac_header_compiler" >&6
10628
10629 # Is the header present?
10630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h. */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 #include <$ac_header>
10639 _ACEOF
10640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } >/dev/null; then
10648 if test -s conftest.err; then
10649 ac_cpp_err=$ac_c_preproc_warn_flag
10650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10651 else
10652 ac_cpp_err=
10653 fi
10654 else
10655 ac_cpp_err=yes
10656 fi
10657 if test -z "$ac_cpp_err"; then
10658 ac_header_preproc=yes
10659 else
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_header_preproc=no
10664 fi
10665 rm -f conftest.err conftest.$ac_ext
10666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10667 echo "${ECHO_T}$ac_header_preproc" >&6
10668
10669 # So? What about this header?
10670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10671 yes:no: )
10672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10676 ac_header_preproc=yes
10677 ;;
10678 no:yes:* )
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10691 (
10692 cat <<\_ASBOX
10693 ## -------------------------------------- ##
10694 ## Report this to the GNU Texinfo lists. ##
10695 ## -------------------------------------- ##
10696 _ASBOX
10697 ) |
10698 sed "s/^/$as_me: WARNING: /" >&2
10699 ;;
10700 esac
10701 echo "$as_me:$LINENO: checking for $ac_header" >&5
10702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 eval "$as_ac_Header=\$ac_header_preproc"
10707 fi
10708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10710
10711 fi
10712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10713 cat >>confdefs.h <<_ACEOF
10714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10715 _ACEOF
10716
10717 fi
10718
10719 done
10720
10721
10722
10723 if test "X$prefix" = "XNONE"; then
10724 acl_final_prefix="$ac_default_prefix"
10725 else
10726 acl_final_prefix="$prefix"
10727 fi
10728 if test "X$exec_prefix" = "XNONE"; then
10729 acl_final_exec_prefix='${prefix}'
10730 else
10731 acl_final_exec_prefix="$exec_prefix"
10732 fi
10733 acl_save_prefix="$prefix"
10734 prefix="$acl_final_prefix"
10735 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10736 prefix="$acl_save_prefix"
10737
10738
10739 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10740 if test "${with_gnu_ld+set}" = set; then
10741 withval="$with_gnu_ld"
10742 test "$withval" = no || with_gnu_ld=yes
10743 else
10744 with_gnu_ld=no
10745 fi;
10746 # Prepare PATH_SEPARATOR.
10747 # The user is always right.
10748 if test "${PATH_SEPARATOR+set}" != set; then
10749 echo "#! /bin/sh" >conf$$.sh
10750 echo "exit 0" >>conf$$.sh
10751 chmod +x conf$$.sh
10752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10753 PATH_SEPARATOR=';'
10754 else
10755 PATH_SEPARATOR=:
10756 fi
10757 rm -f conf$$.sh
10758 fi
10759 ac_prog=ld
10760 if test "$GCC" = yes; then
10761 # Check if gcc -print-prog-name=ld gives a path.
10762 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10763 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10764 case $host in
10765 *-*-mingw*)
10766 # gcc leaves a trailing carriage return which upsets mingw
10767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10768 *)
10769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10770 esac
10771 case $ac_prog in
10772 # Accept absolute paths.
10773 [\\/]* | [A-Za-z]:[\\/]*)
10774 re_direlt='/[^/][^/]*/\.\./'
10775 # Canonicalize the path of ld
10776 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10777 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10778 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10779 done
10780 test -z "$LD" && LD="$ac_prog"
10781 ;;
10782 "")
10783 # If it fails, then pretend we aren't using GCC.
10784 ac_prog=ld
10785 ;;
10786 *)
10787 # If it is relative, then search for the first ld in PATH.
10788 with_gnu_ld=unknown
10789 ;;
10790 esac
10791 elif test "$with_gnu_ld" = yes; then
10792 echo "$as_me:$LINENO: checking for GNU ld" >&5
10793 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10794 else
10795 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10796 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10797 fi
10798 if test "${acl_cv_path_LD+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801 if test -z "$LD"; then
10802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10803 for ac_dir in $PATH; do
10804 test -z "$ac_dir" && ac_dir=.
10805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10806 acl_cv_path_LD="$ac_dir/$ac_prog"
10807 # Check to see if the program is GNU ld. I'd rather use --version,
10808 # but apparently some GNU ld's only accept -v.
10809 # Break only if it was the GNU/non-GNU ld that we prefer.
10810 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10811 *GNU* | *'with BFD'*)
10812 test "$with_gnu_ld" != no && break ;;
10813 *)
10814 test "$with_gnu_ld" != yes && break ;;
10815 esac
10816 fi
10817 done
10818 IFS="$ac_save_ifs"
10819 else
10820 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10821 fi
10822 fi
10823
10824 LD="$acl_cv_path_LD"
10825 if test -n "$LD"; then
10826 echo "$as_me:$LINENO: result: $LD" >&5
10827 echo "${ECHO_T}$LD" >&6
10828 else
10829 echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6
10831 fi
10832 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10833 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10834 { (exit 1); exit 1; }; }
10835 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10836 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10837 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10841 case `$LD -v 2>&1 </dev/null` in
10842 *GNU* | *'with BFD'*)
10843 acl_cv_prog_gnu_ld=yes ;;
10844 *)
10845 acl_cv_prog_gnu_ld=no ;;
10846 esac
10847 fi
10848 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10849 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10850 with_gnu_ld=$acl_cv_prog_gnu_ld
10851
10852
10853
10854 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10855 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10856 if test "${acl_cv_rpath+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859
10860 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10861 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10862 . ./conftest.sh
10863 rm -f ./conftest.sh
10864 acl_cv_rpath=done
10865
10866 fi
10867 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10868 echo "${ECHO_T}$acl_cv_rpath" >&6
10869 wl="$acl_cv_wl"
10870 libext="$acl_cv_libext"
10871 shlibext="$acl_cv_shlibext"
10872 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10873 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10874 hardcode_direct="$acl_cv_hardcode_direct"
10875 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10876 # Check whether --enable-rpath or --disable-rpath was given.
10877 if test "${enable_rpath+set}" = set; then
10878 enableval="$enable_rpath"
10879 :
10880 else
10881 enable_rpath=yes
10882 fi;
10883
10884
10885
10886
10887
10888
10889
10890 use_additional=yes
10891
10892 acl_save_prefix="$prefix"
10893 prefix="$acl_final_prefix"
10894 acl_save_exec_prefix="$exec_prefix"
10895 exec_prefix="$acl_final_exec_prefix"
10896
10897 eval additional_includedir=\"$includedir\"
10898 eval additional_libdir=\"$libdir\"
10899
10900 exec_prefix="$acl_save_exec_prefix"
10901 prefix="$acl_save_prefix"
10902
10903
10904 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10905 if test "${with_libiconv_prefix+set}" = set; then
10906 withval="$with_libiconv_prefix"
10907
10908 if test "X$withval" = "Xno"; then
10909 use_additional=no
10910 else
10911 if test "X$withval" = "X"; then
10912
10913 acl_save_prefix="$prefix"
10914 prefix="$acl_final_prefix"
10915 acl_save_exec_prefix="$exec_prefix"
10916 exec_prefix="$acl_final_exec_prefix"
10917
10918 eval additional_includedir=\"$includedir\"
10919 eval additional_libdir=\"$libdir\"
10920
10921 exec_prefix="$acl_save_exec_prefix"
10922 prefix="$acl_save_prefix"
10923
10924 else
10925 additional_includedir="$withval/include"
10926 additional_libdir="$withval/lib"
10927 fi
10928 fi
10929
10930 fi;
10931 LIBICONV=
10932 LTLIBICONV=
10933 INCICONV=
10934 rpathdirs=
10935 ltrpathdirs=
10936 names_already_handled=
10937 names_next_round='iconv '
10938 while test -n "$names_next_round"; do
10939 names_this_round="$names_next_round"
10940 names_next_round=
10941 for name in $names_this_round; do
10942 already_handled=
10943 for n in $names_already_handled; do
10944 if test "$n" = "$name"; then
10945 already_handled=yes
10946 break
10947 fi
10948 done
10949 if test -z "$already_handled"; then
10950 names_already_handled="$names_already_handled $name"
10951 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10952 eval value=\"\$HAVE_LIB$uppername\"
10953 if test -n "$value"; then
10954 if test "$value" = yes; then
10955 eval value=\"\$LIB$uppername\"
10956 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10957 eval value=\"\$LTLIB$uppername\"
10958 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10959 else
10960 :
10961 fi
10962 else
10963 found_dir=
10964 found_la=
10965 found_so=
10966 found_a=
10967 if test $use_additional = yes; then
10968 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10969 found_dir="$additional_libdir"
10970 found_so="$additional_libdir/lib$name.$shlibext"
10971 if test -f "$additional_libdir/lib$name.la"; then
10972 found_la="$additional_libdir/lib$name.la"
10973 fi
10974 else
10975 if test -f "$additional_libdir/lib$name.$libext"; then
10976 found_dir="$additional_libdir"
10977 found_a="$additional_libdir/lib$name.$libext"
10978 if test -f "$additional_libdir/lib$name.la"; then
10979 found_la="$additional_libdir/lib$name.la"
10980 fi
10981 fi
10982 fi
10983 fi
10984 if test "X$found_dir" = "X"; then
10985 for x in $LDFLAGS $LTLIBICONV; do
10986
10987 acl_save_prefix="$prefix"
10988 prefix="$acl_final_prefix"
10989 acl_save_exec_prefix="$exec_prefix"
10990 exec_prefix="$acl_final_exec_prefix"
10991 eval x=\"$x\"
10992 exec_prefix="$acl_save_exec_prefix"
10993 prefix="$acl_save_prefix"
10994
10995 case "$x" in
10996 -L*)
10997 dir=`echo "X$x" | sed -e 's/^X-L//'`
10998 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10999 found_dir="$dir"
11000 found_so="$dir/lib$name.$shlibext"
11001 if test -f "$dir/lib$name.la"; then
11002 found_la="$dir/lib$name.la"
11003 fi
11004 else
11005 if test -f "$dir/lib$name.$libext"; then
11006 found_dir="$dir"
11007 found_a="$dir/lib$name.$libext"
11008 if test -f "$dir/lib$name.la"; then
11009 found_la="$dir/lib$name.la"
11010 fi
11011 fi
11012 fi
11013 ;;
11014 esac
11015 if test "X$found_dir" != "X"; then
11016 break
11017 fi
11018 done
11019 fi
11020 if test "X$found_dir" != "X"; then
11021 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11022 if test "X$found_so" != "X"; then
11023 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11025 else
11026 haveit=
11027 for x in $ltrpathdirs; do
11028 if test "X$x" = "X$found_dir"; then
11029 haveit=yes
11030 break
11031 fi
11032 done
11033 if test -z "$haveit"; then
11034 ltrpathdirs="$ltrpathdirs $found_dir"
11035 fi
11036 if test "$hardcode_direct" = yes; then
11037 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11038 else
11039 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11040 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11041 haveit=
11042 for x in $rpathdirs; do
11043 if test "X$x" = "X$found_dir"; then
11044 haveit=yes
11045 break
11046 fi
11047 done
11048 if test -z "$haveit"; then
11049 rpathdirs="$rpathdirs $found_dir"
11050 fi
11051 else
11052 haveit=
11053 for x in $LDFLAGS $LIBICONV; do
11054
11055 acl_save_prefix="$prefix"
11056 prefix="$acl_final_prefix"
11057 acl_save_exec_prefix="$exec_prefix"
11058 exec_prefix="$acl_final_exec_prefix"
11059 eval x=\"$x\"
11060 exec_prefix="$acl_save_exec_prefix"
11061 prefix="$acl_save_prefix"
11062
11063 if test "X$x" = "X-L$found_dir"; then
11064 haveit=yes
11065 break
11066 fi
11067 done
11068 if test -z "$haveit"; then
11069 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11070 fi
11071 if test "$hardcode_minus_L" != no; then
11072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11073 else
11074 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11075 fi
11076 fi
11077 fi
11078 fi
11079 else
11080 if test "X$found_a" != "X"; then
11081 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11082 else
11083 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11084 fi
11085 fi
11086 additional_includedir=
11087 case "$found_dir" in
11088 */lib | */lib/)
11089 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11090 additional_includedir="$basedir/include"
11091 ;;
11092 esac
11093 if test "X$additional_includedir" != "X"; then
11094 if test "X$additional_includedir" != "X/usr/include"; then
11095 haveit=
11096 if test "X$additional_includedir" = "X/usr/local/include"; then
11097 if test -n "$GCC"; then
11098 case $host_os in
11099 linux*) haveit=yes;;
11100 esac
11101 fi
11102 fi
11103 if test -z "$haveit"; then
11104 for x in $CPPFLAGS $INCICONV; do
11105
11106 acl_save_prefix="$prefix"
11107 prefix="$acl_final_prefix"
11108 acl_save_exec_prefix="$exec_prefix"
11109 exec_prefix="$acl_final_exec_prefix"
11110 eval x=\"$x\"
11111 exec_prefix="$acl_save_exec_prefix"
11112 prefix="$acl_save_prefix"
11113
11114 if test "X$x" = "X-I$additional_includedir"; then
11115 haveit=yes
11116 break
11117 fi
11118 done
11119 if test -z "$haveit"; then
11120 if test -d "$additional_includedir"; then
11121 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11122 fi
11123 fi
11124 fi
11125 fi
11126 fi
11127 if test -n "$found_la"; then
11128 save_libdir="$libdir"
11129 case "$found_la" in
11130 */* | *\\*) . "$found_la" ;;
11131 *) . "./$found_la" ;;
11132 esac
11133 libdir="$save_libdir"
11134 for dep in $dependency_libs; do
11135 case "$dep" in
11136 -L*)
11137 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11138 if test "X$additional_libdir" != "X/usr/lib"; then
11139 haveit=
11140 if test "X$additional_libdir" = "X/usr/local/lib"; then
11141 if test -n "$GCC"; then
11142 case $host_os in
11143 linux*) haveit=yes;;
11144 esac
11145 fi
11146 fi
11147 if test -z "$haveit"; then
11148 haveit=
11149 for x in $LDFLAGS $LIBICONV; do
11150
11151 acl_save_prefix="$prefix"
11152 prefix="$acl_final_prefix"
11153 acl_save_exec_prefix="$exec_prefix"
11154 exec_prefix="$acl_final_exec_prefix"
11155 eval x=\"$x\"
11156 exec_prefix="$acl_save_exec_prefix"
11157 prefix="$acl_save_prefix"
11158
11159 if test "X$x" = "X-L$additional_libdir"; then
11160 haveit=yes
11161 break
11162 fi
11163 done
11164 if test -z "$haveit"; then
11165 if test -d "$additional_libdir"; then
11166 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11167 fi
11168 fi
11169 haveit=
11170 for x in $LDFLAGS $LTLIBICONV; do
11171
11172 acl_save_prefix="$prefix"
11173 prefix="$acl_final_prefix"
11174 acl_save_exec_prefix="$exec_prefix"
11175 exec_prefix="$acl_final_exec_prefix"
11176 eval x=\"$x\"
11177 exec_prefix="$acl_save_exec_prefix"
11178 prefix="$acl_save_prefix"
11179
11180 if test "X$x" = "X-L$additional_libdir"; then
11181 haveit=yes
11182 break
11183 fi
11184 done
11185 if test -z "$haveit"; then
11186 if test -d "$additional_libdir"; then
11187 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11188 fi
11189 fi
11190 fi
11191 fi
11192 ;;
11193 -R*)
11194 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11195 if test "$enable_rpath" != no; then
11196 haveit=
11197 for x in $rpathdirs; do
11198 if test "X$x" = "X$dir"; then
11199 haveit=yes
11200 break
11201 fi
11202 done
11203 if test -z "$haveit"; then
11204 rpathdirs="$rpathdirs $dir"
11205 fi
11206 haveit=
11207 for x in $ltrpathdirs; do
11208 if test "X$x" = "X$dir"; then
11209 haveit=yes
11210 break
11211 fi
11212 done
11213 if test -z "$haveit"; then
11214 ltrpathdirs="$ltrpathdirs $dir"
11215 fi
11216 fi
11217 ;;
11218 -l*)
11219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11220 ;;
11221 *.la)
11222 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11223 ;;
11224 *)
11225 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11227 ;;
11228 esac
11229 done
11230 fi
11231 else
11232 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11233 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11234 fi
11235 fi
11236 fi
11237 done
11238 done
11239 if test "X$rpathdirs" != "X"; then
11240 if test -n "$hardcode_libdir_separator"; then
11241 alldirs=
11242 for found_dir in $rpathdirs; do
11243 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11244 done
11245 acl_save_libdir="$libdir"
11246 libdir="$alldirs"
11247 eval flag=\"$hardcode_libdir_flag_spec\"
11248 libdir="$acl_save_libdir"
11249 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11250 else
11251 for found_dir in $rpathdirs; do
11252 acl_save_libdir="$libdir"
11253 libdir="$found_dir"
11254 eval flag=\"$hardcode_libdir_flag_spec\"
11255 libdir="$acl_save_libdir"
11256 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11257 done
11258 fi
11259 fi
11260 if test "X$ltrpathdirs" != "X"; then
11261 for found_dir in $ltrpathdirs; do
11262 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11263 done
11264 fi
11265
11266
11267
11268
11269
11270
11271
11272
11273 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11274 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11275 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11285 int
11286 main ()
11287 {
11288 if ((ptrdiff_t *) 0)
11289 return 0;
11290 if (sizeof (ptrdiff_t))
11291 return 0;
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298 (eval $ac_compile) 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_type_ptrdiff_t=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11322
11323 ac_cv_type_ptrdiff_t=no
11324 fi
11325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326 fi
11327 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11328 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11329 if test $ac_cv_type_ptrdiff_t = yes; then
11330 :
11331 else
11332
11333 cat >>confdefs.h <<\_ACEOF
11334 #define ptrdiff_t long
11335 _ACEOF
11336
11337
11338 fi
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11351 stdlib.h string.h unistd.h sys/param.h
11352 do
11353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11355 echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 fi
11360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11362 else
11363 # Is the header compilable?
11364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11373 #include <$ac_header>
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377 (eval $ac_compile) 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag"
11385 || test ! -s conftest.err'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; } &&
11391 { ac_try='test -s conftest.$ac_objext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_header_compiler=yes
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 ac_header_compiler=no
11403 fi
11404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11406 echo "${ECHO_T}$ac_header_compiler" >&6
11407
11408 # Is the header present?
11409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h. */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 #include <$ac_header>
11418 _ACEOF
11419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } >/dev/null; then
11427 if test -s conftest.err; then
11428 ac_cpp_err=$ac_c_preproc_warn_flag
11429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11430 else
11431 ac_cpp_err=
11432 fi
11433 else
11434 ac_cpp_err=yes
11435 fi
11436 if test -z "$ac_cpp_err"; then
11437 ac_header_preproc=yes
11438 else
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442 ac_header_preproc=no
11443 fi
11444 rm -f conftest.err conftest.$ac_ext
11445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446 echo "${ECHO_T}$ac_header_preproc" >&6
11447
11448 # So? What about this header?
11449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450 yes:no: )
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11455 ac_header_preproc=yes
11456 ;;
11457 no:yes:* )
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11470 (
11471 cat <<\_ASBOX
11472 ## -------------------------------------- ##
11473 ## Report this to the GNU Texinfo lists. ##
11474 ## -------------------------------------- ##
11475 _ASBOX
11476 ) |
11477 sed "s/^/$as_me: WARNING: /" >&2
11478 ;;
11479 esac
11480 echo "$as_me:$LINENO: checking for $ac_header" >&5
11481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 eval "$as_ac_Header=\$ac_header_preproc"
11486 fi
11487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11489
11490 fi
11491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11492 cat >>confdefs.h <<_ACEOF
11493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11494 _ACEOF
11495
11496 fi
11497
11498 done
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11524 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11525 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11526 __fsetlocking
11527 do
11528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11529 echo "$as_me:$LINENO: checking for $ac_func" >&5
11530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_var+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11542 #define $ac_func innocuous_$ac_func
11543
11544 /* System header to define __stub macros and hopefully few prototypes,
11545 which can conflict with char $ac_func (); below.
11546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11547 <limits.h> exists even on freestanding compilers. */
11548
11549 #ifdef __STDC__
11550 # include <limits.h>
11551 #else
11552 # include <assert.h>
11553 #endif
11554
11555 #undef $ac_func
11556
11557 /* Override any gcc2 internal prototype to avoid an error. */
11558 #ifdef __cplusplus
11559 extern "C"
11560 {
11561 #endif
11562 /* We use char because int might match the return type of a gcc2
11563 builtin and then its argument prototype would still apply. */
11564 char $ac_func ();
11565 /* The GNU C library defines this for functions which it implements
11566 to always fail with ENOSYS. Some functions are actually named
11567 something starting with __ and the normal name is an alias. */
11568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11569 choke me
11570 #else
11571 char (*f) () = $ac_func;
11572 #endif
11573 #ifdef __cplusplus
11574 }
11575 #endif
11576
11577 int
11578 main ()
11579 {
11580 return f != $ac_func;
11581 ;
11582 return 0;
11583 }
11584 _ACEOF
11585 rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -z "$ac_c_werror_flag"
11595 || test ! -s conftest.err'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; } &&
11601 { ac_try='test -s conftest$ac_exeext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607 eval "$as_ac_var=yes"
11608 else
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11611
11612 eval "$as_ac_var=no"
11613 fi
11614 rm -f conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 fi
11617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11619 if test `eval echo '${'$as_ac_var'}'` = yes; then
11620 cat >>confdefs.h <<_ACEOF
11621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11622 _ACEOF
11623
11624 fi
11625 done
11626
11627
11628
11629 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11630 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11631 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h. */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640 #include <stdio.h>
11641 int
11642 main ()
11643 {
11644
11645 #ifndef _snprintf
11646 char *p = (char *) _snprintf;
11647 #endif
11648
11649 ;
11650 return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11655 (eval $ac_compile) 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -z "$ac_c_werror_flag"
11663 || test ! -s conftest.err'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest.$ac_objext'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_cv_have_decl__snprintf=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 ac_cv_have_decl__snprintf=no
11681 fi
11682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11683 fi
11684 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11685 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11686 if test $ac_cv_have_decl__snprintf = yes; then
11687 gt_value=1
11688 else
11689 gt_value=0
11690 fi
11691
11692 cat >>confdefs.h <<_ACEOF
11693 #define HAVE_DECL__SNPRINTF $gt_value
11694 _ACEOF
11695
11696
11697
11698 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11699 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11700 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703 cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h. */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11709 #include <stdio.h>
11710 int
11711 main ()
11712 {
11713
11714 #ifndef _snwprintf
11715 char *p = (char *) _snwprintf;
11716 #endif
11717
11718 ;
11719 return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724 (eval $ac_compile) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_cv_have_decl__snwprintf=yes
11745 else
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11748
11749 ac_cv_have_decl__snwprintf=no
11750 fi
11751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11752 fi
11753 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11754 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11755 if test $ac_cv_have_decl__snwprintf = yes; then
11756 gt_value=1
11757 else
11758 gt_value=0
11759 fi
11760
11761 cat >>confdefs.h <<_ACEOF
11762 #define HAVE_DECL__SNWPRINTF $gt_value
11763 _ACEOF
11764
11765
11766
11767
11768 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11769 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11770 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 #include <stdio.h>
11780 int
11781 main ()
11782 {
11783
11784 #ifndef feof_unlocked
11785 char *p = (char *) feof_unlocked;
11786 #endif
11787
11788 ;
11789 return 0;
11790 }
11791 _ACEOF
11792 rm -f conftest.$ac_objext
11793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11794 (eval $ac_compile) 2>conftest.er1
11795 ac_status=$?
11796 grep -v '^ *+' conftest.er1 >conftest.err
11797 rm -f conftest.er1
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
11801 { ac_try='test -z "$ac_c_werror_flag"
11802 || test ! -s conftest.err'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest.$ac_objext'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_cv_have_decl_feof_unlocked=yes
11815 else
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 ac_cv_have_decl_feof_unlocked=no
11820 fi
11821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11822 fi
11823 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11824 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11825 if test $ac_cv_have_decl_feof_unlocked = yes; then
11826 gt_value=1
11827 else
11828 gt_value=0
11829 fi
11830
11831 cat >>confdefs.h <<_ACEOF
11832 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11833 _ACEOF
11834
11835
11836
11837 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11838 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11839 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <stdio.h>
11849 int
11850 main ()
11851 {
11852
11853 #ifndef fgets_unlocked
11854 char *p = (char *) fgets_unlocked;
11855 #endif
11856
11857 ;
11858 return 0;
11859 }
11860 _ACEOF
11861 rm -f conftest.$ac_objext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -z "$ac_c_werror_flag"
11871 || test ! -s conftest.err'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_have_decl_fgets_unlocked=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 ac_cv_have_decl_fgets_unlocked=no
11889 fi
11890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11891 fi
11892 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11893 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11894 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11895 gt_value=1
11896 else
11897 gt_value=0
11898 fi
11899
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11902 _ACEOF
11903
11904
11905
11906 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11907 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11908 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 #include <stdio.h>
11918 int
11919 main ()
11920 {
11921
11922 #ifndef getc_unlocked
11923 char *p = (char *) getc_unlocked;
11924 #endif
11925
11926 ;
11927 return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932 (eval $ac_compile) 2>conftest.er1
11933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag"
11940 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_have_decl_getc_unlocked=yes
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_cv_have_decl_getc_unlocked=no
11958 fi
11959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11960 fi
11961 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11962 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11963 if test $ac_cv_have_decl_getc_unlocked = yes; then
11964 gt_value=1
11965 else
11966 gt_value=0
11967 fi
11968
11969 cat >>confdefs.h <<_ACEOF
11970 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11971 _ACEOF
11972
11973
11974
11975 case $gt_cv_func_printf_posix in
11976 *yes) HAVE_POSIX_PRINTF=1 ;;
11977 *) HAVE_POSIX_PRINTF=0 ;;
11978 esac
11979
11980 if test "$ac_cv_func_asprintf" = yes; then
11981 HAVE_ASPRINTF=1
11982 else
11983 HAVE_ASPRINTF=0
11984 fi
11985
11986 if test "$ac_cv_func_snprintf" = yes; then
11987 HAVE_SNPRINTF=1
11988 else
11989 HAVE_SNPRINTF=0
11990 fi
11991
11992 if test "$ac_cv_func_wprintf" = yes; then
11993 HAVE_WPRINTF=1
11994 else
11995 HAVE_WPRINTF=0
11996 fi
11997
11998
11999
12000
12001
12002
12003
12004 am_save_CPPFLAGS="$CPPFLAGS"
12005
12006 for element in $INCICONV; do
12007 haveit=
12008 for x in $CPPFLAGS; do
12009
12010 acl_save_prefix="$prefix"
12011 prefix="$acl_final_prefix"
12012 acl_save_exec_prefix="$exec_prefix"
12013 exec_prefix="$acl_final_exec_prefix"
12014 eval x=\"$x\"
12015 exec_prefix="$acl_save_exec_prefix"
12016 prefix="$acl_save_prefix"
12017
12018 if test "X$x" = "X$element"; then
12019 haveit=yes
12020 break
12021 fi
12022 done
12023 if test -z "$haveit"; then
12024 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12025 fi
12026 done
12027
12028
12029 echo "$as_me:$LINENO: checking for iconv" >&5
12030 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12031 if test "${am_cv_func_iconv+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034
12035 am_cv_func_iconv="no, consider installing GNU libiconv"
12036 am_cv_lib_iconv=no
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <stdlib.h>
12044 #include <iconv.h>
12045 int
12046 main ()
12047 {
12048 iconv_t cd = iconv_open("","");
12049 iconv(cd,NULL,NULL,NULL,NULL);
12050 iconv_close(cd);
12051 ;
12052 return 0;
12053 }
12054 _ACEOF
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057 (eval $ac_link) 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -z "$ac_c_werror_flag"
12065 || test ! -s conftest.err'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; } &&
12071 { ac_try='test -s conftest$ac_exeext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 am_cv_func_iconv=yes
12078 else
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 fi
12083 rm -f conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 if test "$am_cv_func_iconv" != yes; then
12086 am_save_LIBS="$LIBS"
12087 LIBS="$LIBS $LIBICONV"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <stdlib.h>
12095 #include <iconv.h>
12096 int
12097 main ()
12098 {
12099 iconv_t cd = iconv_open("","");
12100 iconv(cd,NULL,NULL,NULL,NULL);
12101 iconv_close(cd);
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_c_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 am_cv_lib_iconv=yes
12129 am_cv_func_iconv=yes
12130 else
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 fi
12135 rm -f conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LIBS="$am_save_LIBS"
12138 fi
12139
12140 fi
12141 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12142 echo "${ECHO_T}$am_cv_func_iconv" >&6
12143 if test "$am_cv_func_iconv" = yes; then
12144
12145 cat >>confdefs.h <<\_ACEOF
12146 #define HAVE_ICONV 1
12147 _ACEOF
12148
12149 fi
12150 if test "$am_cv_lib_iconv" = yes; then
12151 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12152 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12153 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12154 echo "${ECHO_T}$LIBICONV" >&6
12155 else
12156 CPPFLAGS="$am_save_CPPFLAGS"
12157 LIBICONV=
12158 LTLIBICONV=
12159 fi
12160
12161
12162
12163 if test "$am_cv_func_iconv" = yes; then
12164 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12165 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12166 if test "${am_cv_proto_iconv+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176
12177 #include <stdlib.h>
12178 #include <iconv.h>
12179 extern
12180 #ifdef __cplusplus
12181 "C"
12182 #endif
12183 #if defined(__STDC__) || defined(__cplusplus)
12184 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12185 #else
12186 size_t iconv();
12187 #endif
12188
12189 int
12190 main ()
12191 {
12192
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12199 (eval $ac_compile) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag"
12207 || test ! -s conftest.err'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest.$ac_objext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 am_cv_proto_iconv_arg1=""
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 am_cv_proto_iconv_arg1="const"
12225 fi
12226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12227 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);"
12228 fi
12229
12230 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12231 echo "$as_me:$LINENO: result: ${ac_t:-
12232 }$am_cv_proto_iconv" >&5
12233 echo "${ECHO_T}${ac_t:-
12234 }$am_cv_proto_iconv" >&6
12235
12236 cat >>confdefs.h <<_ACEOF
12237 #define ICONV_CONST $am_cv_proto_iconv_arg1
12238 _ACEOF
12239
12240 fi
12241
12242
12243 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12244 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12245 if test "${am_cv_langinfo_codeset+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <langinfo.h>
12255 int
12256 main ()
12257 {
12258 char* cs = nl_langinfo(CODESET);
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest$ac_exeext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 am_cv_langinfo_codeset=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 am_cv_langinfo_codeset=no
12291 fi
12292 rm -f conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294
12295 fi
12296 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12297 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12298 if test $am_cv_langinfo_codeset = yes; then
12299
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_LANGINFO_CODESET 1
12302 _ACEOF
12303
12304 fi
12305
12306 if test $ac_cv_header_locale_h = yes; then
12307
12308 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12309 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12310 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 #include <locale.h>
12320 int
12321 main ()
12322 {
12323 return LC_MESSAGES
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 am_cv_val_LC_MESSAGES=yes
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 am_cv_val_LC_MESSAGES=no
12356 fi
12357 rm -f conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 fi
12360 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12361 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12362 if test $am_cv_val_LC_MESSAGES = yes; then
12363
12364 cat >>confdefs.h <<\_ACEOF
12365 #define HAVE_LC_MESSAGES 1
12366 _ACEOF
12367
12368 fi
12369
12370 fi
12371
12372 for ac_prog in bison
12373 do
12374 # Extract the first word of "$ac_prog", so it can be a program name with args.
12375 set dummy $ac_prog; ac_word=$2
12376 echo "$as_me:$LINENO: checking for $ac_word" >&5
12377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12378 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381 if test -n "$INTLBISON"; then
12382 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_prog_INTLBISON="$ac_prog"
12392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395 done
12396 done
12397
12398 fi
12399 fi
12400 INTLBISON=$ac_cv_prog_INTLBISON
12401 if test -n "$INTLBISON"; then
12402 echo "$as_me:$LINENO: result: $INTLBISON" >&5
12403 echo "${ECHO_T}$INTLBISON" >&6
12404 else
12405 echo "$as_me:$LINENO: result: no" >&5
12406 echo "${ECHO_T}no" >&6
12407 fi
12408
12409 test -n "$INTLBISON" && break
12410 done
12411
12412 if test -z "$INTLBISON"; then
12413 ac_verc_fail=yes
12414 else
12415 echo "$as_me:$LINENO: checking version of bison" >&5
12416 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
12417 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12418 case $ac_prog_version in
12419 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12420 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12421 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12422 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12423 esac
12424 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12425 echo "${ECHO_T}$ac_prog_version" >&6
12426 fi
12427 if test $ac_verc_fail = yes; then
12428 INTLBISON=:
12429 fi
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12447 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12448 # Check whether --enable-nls or --disable-nls was given.
12449 if test "${enable_nls+set}" = set; then
12450 enableval="$enable_nls"
12451 USE_NLS=$enableval
12452 else
12453 USE_NLS=yes
12454 fi;
12455 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12456 echo "${ECHO_T}$USE_NLS" >&6
12457
12458
12459
12460
12461 BUILD_INCLUDED_LIBINTL=no
12462 USE_INCLUDED_LIBINTL=no
12463
12464 LIBINTL=
12465 LTLIBINTL=
12466 POSUB=
12467
12468 if test "$USE_NLS" = "yes"; then
12469 gt_use_preinstalled_gnugettext=no
12470
12471 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12472 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12473
12474 # Check whether --with-included-gettext or --without-included-gettext was given.
12475 if test "${with_included_gettext+set}" = set; then
12476 withval="$with_included_gettext"
12477 nls_cv_force_use_gnu_gettext=$withval
12478 else
12479 nls_cv_force_use_gnu_gettext=no
12480 fi;
12481 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12482 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12483
12484 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12485 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12486
12487
12488
12489
12490
12491
12492 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12493 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12494 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 #include <libintl.h>
12504 extern int _nl_msg_cat_cntr;
12505 extern int *_nl_domain_bindings;
12506 int
12507 main ()
12508 {
12509 bindtextdomain ("", "");
12510 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>conftest.er1
12518 ac_status=$?
12519 grep -v '^ *+' conftest.er1 >conftest.err
12520 rm -f conftest.er1
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -z "$ac_c_werror_flag"
12525 || test ! -s conftest.err'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest$ac_exeext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 gt_cv_func_gnugettext1_libc=yes
12538 else
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12541
12542 gt_cv_func_gnugettext1_libc=no
12543 fi
12544 rm -f conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12546 fi
12547 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12548 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12549
12550 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12551
12552
12553
12554 use_additional=yes
12555
12556 acl_save_prefix="$prefix"
12557 prefix="$acl_final_prefix"
12558 acl_save_exec_prefix="$exec_prefix"
12559 exec_prefix="$acl_final_exec_prefix"
12560
12561 eval additional_includedir=\"$includedir\"
12562 eval additional_libdir=\"$libdir\"
12563
12564 exec_prefix="$acl_save_exec_prefix"
12565 prefix="$acl_save_prefix"
12566
12567
12568 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12569 if test "${with_libintl_prefix+set}" = set; then
12570 withval="$with_libintl_prefix"
12571
12572 if test "X$withval" = "Xno"; then
12573 use_additional=no
12574 else
12575 if test "X$withval" = "X"; then
12576
12577 acl_save_prefix="$prefix"
12578 prefix="$acl_final_prefix"
12579 acl_save_exec_prefix="$exec_prefix"
12580 exec_prefix="$acl_final_exec_prefix"
12581
12582 eval additional_includedir=\"$includedir\"
12583 eval additional_libdir=\"$libdir\"
12584
12585 exec_prefix="$acl_save_exec_prefix"
12586 prefix="$acl_save_prefix"
12587
12588 else
12589 additional_includedir="$withval/include"
12590 additional_libdir="$withval/lib"
12591 fi
12592 fi
12593
12594 fi;
12595 LIBINTL=
12596 LTLIBINTL=
12597 INCINTL=
12598 rpathdirs=
12599 ltrpathdirs=
12600 names_already_handled=
12601 names_next_round='intl '
12602 while test -n "$names_next_round"; do
12603 names_this_round="$names_next_round"
12604 names_next_round=
12605 for name in $names_this_round; do
12606 already_handled=
12607 for n in $names_already_handled; do
12608 if test "$n" = "$name"; then
12609 already_handled=yes
12610 break
12611 fi
12612 done
12613 if test -z "$already_handled"; then
12614 names_already_handled="$names_already_handled $name"
12615 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12616 eval value=\"\$HAVE_LIB$uppername\"
12617 if test -n "$value"; then
12618 if test "$value" = yes; then
12619 eval value=\"\$LIB$uppername\"
12620 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12621 eval value=\"\$LTLIB$uppername\"
12622 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12623 else
12624 :
12625 fi
12626 else
12627 found_dir=
12628 found_la=
12629 found_so=
12630 found_a=
12631 if test $use_additional = yes; then
12632 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12633 found_dir="$additional_libdir"
12634 found_so="$additional_libdir/lib$name.$shlibext"
12635 if test -f "$additional_libdir/lib$name.la"; then
12636 found_la="$additional_libdir/lib$name.la"
12637 fi
12638 else
12639 if test -f "$additional_libdir/lib$name.$libext"; then
12640 found_dir="$additional_libdir"
12641 found_a="$additional_libdir/lib$name.$libext"
12642 if test -f "$additional_libdir/lib$name.la"; then
12643 found_la="$additional_libdir/lib$name.la"
12644 fi
12645 fi
12646 fi
12647 fi
12648 if test "X$found_dir" = "X"; then
12649 for x in $LDFLAGS $LTLIBINTL; do
12650
12651 acl_save_prefix="$prefix"
12652 prefix="$acl_final_prefix"
12653 acl_save_exec_prefix="$exec_prefix"
12654 exec_prefix="$acl_final_exec_prefix"
12655 eval x=\"$x\"
12656 exec_prefix="$acl_save_exec_prefix"
12657 prefix="$acl_save_prefix"
12658
12659 case "$x" in
12660 -L*)
12661 dir=`echo "X$x" | sed -e 's/^X-L//'`
12662 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12663 found_dir="$dir"
12664 found_so="$dir/lib$name.$shlibext"
12665 if test -f "$dir/lib$name.la"; then
12666 found_la="$dir/lib$name.la"
12667 fi
12668 else
12669 if test -f "$dir/lib$name.$libext"; then
12670 found_dir="$dir"
12671 found_a="$dir/lib$name.$libext"
12672 if test -f "$dir/lib$name.la"; then
12673 found_la="$dir/lib$name.la"
12674 fi
12675 fi
12676 fi
12677 ;;
12678 esac
12679 if test "X$found_dir" != "X"; then
12680 break
12681 fi
12682 done
12683 fi
12684 if test "X$found_dir" != "X"; then
12685 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12686 if test "X$found_so" != "X"; then
12687 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12688 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12689 else
12690 haveit=
12691 for x in $ltrpathdirs; do
12692 if test "X$x" = "X$found_dir"; then
12693 haveit=yes
12694 break
12695 fi
12696 done
12697 if test -z "$haveit"; then
12698 ltrpathdirs="$ltrpathdirs $found_dir"
12699 fi
12700 if test "$hardcode_direct" = yes; then
12701 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12702 else
12703 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12704 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12705 haveit=
12706 for x in $rpathdirs; do
12707 if test "X$x" = "X$found_dir"; then
12708 haveit=yes
12709 break
12710 fi
12711 done
12712 if test -z "$haveit"; then
12713 rpathdirs="$rpathdirs $found_dir"
12714 fi
12715 else
12716 haveit=
12717 for x in $LDFLAGS $LIBINTL; do
12718
12719 acl_save_prefix="$prefix"
12720 prefix="$acl_final_prefix"
12721 acl_save_exec_prefix="$exec_prefix"
12722 exec_prefix="$acl_final_exec_prefix"
12723 eval x=\"$x\"
12724 exec_prefix="$acl_save_exec_prefix"
12725 prefix="$acl_save_prefix"
12726
12727 if test "X$x" = "X-L$found_dir"; then
12728 haveit=yes
12729 break
12730 fi
12731 done
12732 if test -z "$haveit"; then
12733 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12734 fi
12735 if test "$hardcode_minus_L" != no; then
12736 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12737 else
12738 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12739 fi
12740 fi
12741 fi
12742 fi
12743 else
12744 if test "X$found_a" != "X"; then
12745 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12746 else
12747 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12748 fi
12749 fi
12750 additional_includedir=
12751 case "$found_dir" in
12752 */lib | */lib/)
12753 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12754 additional_includedir="$basedir/include"
12755 ;;
12756 esac
12757 if test "X$additional_includedir" != "X"; then
12758 if test "X$additional_includedir" != "X/usr/include"; then
12759 haveit=
12760 if test "X$additional_includedir" = "X/usr/local/include"; then
12761 if test -n "$GCC"; then
12762 case $host_os in
12763 linux*) haveit=yes;;
12764 esac
12765 fi
12766 fi
12767 if test -z "$haveit"; then
12768 for x in $CPPFLAGS $INCINTL; do
12769
12770 acl_save_prefix="$prefix"
12771 prefix="$acl_final_prefix"
12772 acl_save_exec_prefix="$exec_prefix"
12773 exec_prefix="$acl_final_exec_prefix"
12774 eval x=\"$x\"
12775 exec_prefix="$acl_save_exec_prefix"
12776 prefix="$acl_save_prefix"
12777
12778 if test "X$x" = "X-I$additional_includedir"; then
12779 haveit=yes
12780 break
12781 fi
12782 done
12783 if test -z "$haveit"; then
12784 if test -d "$additional_includedir"; then
12785 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12786 fi
12787 fi
12788 fi
12789 fi
12790 fi
12791 if test -n "$found_la"; then
12792 save_libdir="$libdir"
12793 case "$found_la" in
12794 */* | *\\*) . "$found_la" ;;
12795 *) . "./$found_la" ;;
12796 esac
12797 libdir="$save_libdir"
12798 for dep in $dependency_libs; do
12799 case "$dep" in
12800 -L*)
12801 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12802 if test "X$additional_libdir" != "X/usr/lib"; then
12803 haveit=
12804 if test "X$additional_libdir" = "X/usr/local/lib"; then
12805 if test -n "$GCC"; then
12806 case $host_os in
12807 linux*) haveit=yes;;
12808 esac
12809 fi
12810 fi
12811 if test -z "$haveit"; then
12812 haveit=
12813 for x in $LDFLAGS $LIBINTL; do
12814
12815 acl_save_prefix="$prefix"
12816 prefix="$acl_final_prefix"
12817 acl_save_exec_prefix="$exec_prefix"
12818 exec_prefix="$acl_final_exec_prefix"
12819 eval x=\"$x\"
12820 exec_prefix="$acl_save_exec_prefix"
12821 prefix="$acl_save_prefix"
12822
12823 if test "X$x" = "X-L$additional_libdir"; then
12824 haveit=yes
12825 break
12826 fi
12827 done
12828 if test -z "$haveit"; then
12829 if test -d "$additional_libdir"; then
12830 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12831 fi
12832 fi
12833 haveit=
12834 for x in $LDFLAGS $LTLIBINTL; do
12835
12836 acl_save_prefix="$prefix"
12837 prefix="$acl_final_prefix"
12838 acl_save_exec_prefix="$exec_prefix"
12839 exec_prefix="$acl_final_exec_prefix"
12840 eval x=\"$x\"
12841 exec_prefix="$acl_save_exec_prefix"
12842 prefix="$acl_save_prefix"
12843
12844 if test "X$x" = "X-L$additional_libdir"; then
12845 haveit=yes
12846 break
12847 fi
12848 done
12849 if test -z "$haveit"; then
12850 if test -d "$additional_libdir"; then
12851 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12852 fi
12853 fi
12854 fi
12855 fi
12856 ;;
12857 -R*)
12858 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12859 if test "$enable_rpath" != no; then
12860 haveit=
12861 for x in $rpathdirs; do
12862 if test "X$x" = "X$dir"; then
12863 haveit=yes
12864 break
12865 fi
12866 done
12867 if test -z "$haveit"; then
12868 rpathdirs="$rpathdirs $dir"
12869 fi
12870 haveit=
12871 for x in $ltrpathdirs; do
12872 if test "X$x" = "X$dir"; then
12873 haveit=yes
12874 break
12875 fi
12876 done
12877 if test -z "$haveit"; then
12878 ltrpathdirs="$ltrpathdirs $dir"
12879 fi
12880 fi
12881 ;;
12882 -l*)
12883 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12884 ;;
12885 *.la)
12886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12887 ;;
12888 *)
12889 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12890 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12891 ;;
12892 esac
12893 done
12894 fi
12895 else
12896 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12897 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12898 fi
12899 fi
12900 fi
12901 done
12902 done
12903 if test "X$rpathdirs" != "X"; then
12904 if test -n "$hardcode_libdir_separator"; then
12905 alldirs=
12906 for found_dir in $rpathdirs; do
12907 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12908 done
12909 acl_save_libdir="$libdir"
12910 libdir="$alldirs"
12911 eval flag=\"$hardcode_libdir_flag_spec\"
12912 libdir="$acl_save_libdir"
12913 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12914 else
12915 for found_dir in $rpathdirs; do
12916 acl_save_libdir="$libdir"
12917 libdir="$found_dir"
12918 eval flag=\"$hardcode_libdir_flag_spec\"
12919 libdir="$acl_save_libdir"
12920 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12921 done
12922 fi
12923 fi
12924 if test "X$ltrpathdirs" != "X"; then
12925 for found_dir in $ltrpathdirs; do
12926 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12927 done
12928 fi
12929
12930 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12931 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12932 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 gt_save_CPPFLAGS="$CPPFLAGS"
12936 CPPFLAGS="$CPPFLAGS $INCINTL"
12937 gt_save_LIBS="$LIBS"
12938 LIBS="$LIBS $LIBINTL"
12939 cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h. */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12945 #include <libintl.h>
12946 extern int _nl_msg_cat_cntr;
12947 extern
12948 #ifdef __cplusplus
12949 "C"
12950 #endif
12951 const char *_nl_expand_alias ();
12952 int
12953 main ()
12954 {
12955 bindtextdomain ("", "");
12956 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12957 ;
12958 return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext conftest$ac_exeext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12963 (eval $ac_link) 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try='test -z "$ac_c_werror_flag"
12971 || test ! -s conftest.err'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 gt_cv_func_gnugettext1_libintl=yes
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 gt_cv_func_gnugettext1_libintl=no
12989 fi
12990 rm -f conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext conftest.$ac_ext
12992 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12993 LIBS="$LIBS $LIBICONV"
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h. */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 #include <libintl.h>
13001 extern int _nl_msg_cat_cntr;
13002 extern
13003 #ifdef __cplusplus
13004 "C"
13005 #endif
13006 const char *_nl_expand_alias ();
13007 int
13008 main ()
13009 {
13010 bindtextdomain ("", "");
13011 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 LIBINTL="$LIBINTL $LIBICONV"
13039 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13040 gt_cv_func_gnugettext1_libintl=yes
13041
13042 else
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 fi
13047 rm -f conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049 fi
13050 CPPFLAGS="$gt_save_CPPFLAGS"
13051 LIBS="$gt_save_LIBS"
13052 fi
13053 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13054 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13055 fi
13056
13057 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13058 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13059 && test "$PACKAGE" != gettext-runtime \
13060 && test "$PACKAGE" != gettext-tools; }; then
13061 gt_use_preinstalled_gnugettext=yes
13062 else
13063 LIBINTL=
13064 LTLIBINTL=
13065 INCINTL=
13066 fi
13067
13068
13069 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13070 nls_cv_use_gnu_gettext=yes
13071 fi
13072 fi
13073
13074 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13075 BUILD_INCLUDED_LIBINTL=yes
13076 USE_INCLUDED_LIBINTL=yes
13077 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13078 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13079 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13080 fi
13081
13082 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13083 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13084 CATOBJEXT=.gmo
13085 fi
13086
13087
13088 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13089 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13090
13091 cat >>confdefs.h <<\_ACEOF
13092 #define ENABLE_NLS 1
13093 _ACEOF
13094
13095 else
13096 USE_NLS=no
13097 fi
13098 fi
13099
13100 echo "$as_me:$LINENO: checking whether to use NLS" >&5
13101 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
13102 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13103 echo "${ECHO_T}$USE_NLS" >&6
13104 if test "$USE_NLS" = "yes"; then
13105 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13106 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
13107 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13108 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13109 gt_source="external libintl"
13110 else
13111 gt_source="libc"
13112 fi
13113 else
13114 gt_source="included intl directory"
13115 fi
13116 echo "$as_me:$LINENO: result: $gt_source" >&5
13117 echo "${ECHO_T}$gt_source" >&6
13118 fi
13119
13120 if test "$USE_NLS" = "yes"; then
13121
13122 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13123 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13124 echo "$as_me:$LINENO: checking how to link with libintl" >&5
13125 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13126 echo "$as_me:$LINENO: result: $LIBINTL" >&5
13127 echo "${ECHO_T}$LIBINTL" >&6
13128
13129 for element in $INCINTL; do
13130 haveit=
13131 for x in $CPPFLAGS; do
13132
13133 acl_save_prefix="$prefix"
13134 prefix="$acl_final_prefix"
13135 acl_save_exec_prefix="$exec_prefix"
13136 exec_prefix="$acl_final_exec_prefix"
13137 eval x=\"$x\"
13138 exec_prefix="$acl_save_exec_prefix"
13139 prefix="$acl_save_prefix"
13140
13141 if test "X$x" = "X$element"; then
13142 haveit=yes
13143 break
13144 fi
13145 done
13146 if test -z "$haveit"; then
13147 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13148 fi
13149 done
13150
13151 fi
13152
13153
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_GETTEXT 1
13156 _ACEOF
13157
13158
13159 cat >>confdefs.h <<\_ACEOF
13160 #define HAVE_DCGETTEXT 1
13161 _ACEOF
13162
13163 fi
13164
13165 POSUB=po
13166 fi
13167
13168
13169 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13170 BUILD_INCLUDED_LIBINTL=yes
13171 fi
13172
13173
13174
13175
13176
13177 nls_cv_header_intl=
13178 nls_cv_header_libgt=
13179
13180 DATADIRNAME=share
13181
13182
13183 INSTOBJEXT=.mo
13184
13185
13186 GENCAT=gencat
13187
13188
13189 if test "$USE_INCLUDED_LIBINTL" = yes; then
13190 INTLOBJS="\$(GETTOBJS)"
13191 fi
13192
13193
13194 INTL_LIBTOOL_SUFFIX_PREFIX=
13195
13196
13197
13198 INTLLIBS="$LIBINTL"
13199
13200
13201
13202
13203
13204
13205
13206 ac_config_files="$ac_config_files Makefile doc/Makefile info/Makefile intl/Makefile lib/Makefile m4/Makefile makeinfo/Makefile makeinfo/tests/Makefile po/Makefile.in util/Makefile"
13207
13208 cat >confcache <<\_ACEOF
13209 # This file is a shell script that caches the results of configure
13210 # tests run on this system so they can be shared between configure
13211 # scripts and configure runs, see configure's option --config-cache.
13212 # It is not useful on other systems. If it contains results you don't
13213 # want to keep, you may remove or edit it.
13214 #
13215 # config.status only pays attention to the cache file if you give it
13216 # the --recheck option to rerun configure.
13217 #
13218 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13219 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13220 # following values.
13221
13222 _ACEOF
13223
13224 # The following way of writing the cache mishandles newlines in values,
13225 # but we know of no workaround that is simple, portable, and efficient.
13226 # So, don't put newlines in cache variables' values.
13227 # Ultrix sh set writes to stderr and can't be redirected directly,
13228 # and sets the high bit in the cache file unless we assign to the vars.
13229 {
13230 (set) 2>&1 |
13231 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13232 *ac_space=\ *)
13233 # `set' does not quote correctly, so add quotes (double-quote
13234 # substitution turns \\\\ into \\, and sed turns \\ into \).
13235 sed -n \
13236 "s/'/'\\\\''/g;
13237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13238 ;;
13239 *)
13240 # `set' quotes correctly as required by POSIX, so do not add quotes.
13241 sed -n \
13242 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13243 ;;
13244 esac;
13245 } |
13246 sed '
13247 t clear
13248 : clear
13249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13250 t end
13251 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13252 : end' >>confcache
13253 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13254 if test -w $cache_file; then
13255 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13256 cat confcache >$cache_file
13257 else
13258 echo "not updating unwritable cache $cache_file"
13259 fi
13260 fi
13261 rm -f confcache
13262
13263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13264 # Let make expand exec_prefix.
13265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13266
13267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13269 # trailing colons and then remove the whole line if VPATH becomes empty
13270 # (actually we leave an empty line to preserve line numbers).
13271 if test "x$srcdir" = x.; then
13272 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13273 s/:*\$(srcdir):*/:/;
13274 s/:*\${srcdir}:*/:/;
13275 s/:*@srcdir@:*/:/;
13276 s/^\([^=]*=[ ]*\):*/\1/;
13277 s/:*$//;
13278 s/^[^=]*=[ ]*$//;
13279 }'
13280 fi
13281
13282 DEFS=-DHAVE_CONFIG_H
13283
13284 ac_libobjs=
13285 ac_ltlibobjs=
13286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13287 # 1. Remove the extension, and $U if already installed.
13288 ac_i=`echo "$ac_i" |
13289 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13290 # 2. Add them.
13291 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13292 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13293 done
13294 LIBOBJS=$ac_libobjs
13295
13296 LTLIBOBJS=$ac_ltlibobjs
13297
13298
13299 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13300 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13301 Usually this means the macro was only invoked conditionally." >&5
13302 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13303 Usually this means the macro was only invoked conditionally." >&2;}
13304 { (exit 1); exit 1; }; }
13305 fi
13306 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13307 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13308 Usually this means the macro was only invoked conditionally." >&5
13309 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13310 Usually this means the macro was only invoked conditionally." >&2;}
13311 { (exit 1); exit 1; }; }
13312 fi
13313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13314 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13315 Usually this means the macro was only invoked conditionally." >&5
13316 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13317 Usually this means the macro was only invoked conditionally." >&2;}
13318 { (exit 1); exit 1; }; }
13319 fi
13320 if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then
13321 { { echo "$as_me:$LINENO: error: conditional \"TOOLS_ONLY\" was never defined.
13322 Usually this means the macro was only invoked conditionally." >&5
13323 echo "$as_me: error: conditional \"TOOLS_ONLY\" was never defined.
13324 Usually this means the macro was only invoked conditionally." >&2;}
13325 { (exit 1); exit 1; }; }
13326 fi
13327 if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then
13328 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_WARNINGS\" was never defined.
13329 Usually this means the macro was only invoked conditionally." >&5
13330 echo "$as_me: error: conditional \"INSTALL_WARNINGS\" was never defined.
13331 Usually this means the macro was only invoked conditionally." >&2;}
13332 { (exit 1); exit 1; }; }
13333 fi
13334
13335 : ${CONFIG_STATUS=./config.status}
13336 ac_clean_files_save=$ac_clean_files
13337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13338 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13339 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13340 cat >$CONFIG_STATUS <<_ACEOF
13341 #! $SHELL
13342 # Generated by $as_me.
13343 # Run this file to recreate the current configuration.
13344 # Compiler output produced by configure, useful for debugging
13345 # configure, is in config.log if it exists.
13346
13347 debug=false
13348 ac_cs_recheck=false
13349 ac_cs_silent=false
13350 SHELL=\${CONFIG_SHELL-$SHELL}
13351 _ACEOF
13352
13353 cat >>$CONFIG_STATUS <<\_ACEOF
13354 ## --------------------- ##
13355 ## M4sh Initialization. ##
13356 ## --------------------- ##
13357
13358 # Be Bourne compatible
13359 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13360 emulate sh
13361 NULLCMD=:
13362 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13363 # is contrary to our usage. Disable this feature.
13364 alias -g '${1+"$@"}'='"$@"'
13365 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13366 set -o posix
13367 fi
13368 DUALCASE=1; export DUALCASE # for MKS sh
13369
13370 # Support unset when possible.
13371 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13372 as_unset=unset
13373 else
13374 as_unset=false
13375 fi
13376
13377
13378 # Work around bugs in pre-3.0 UWIN ksh.
13379 $as_unset ENV MAIL MAILPATH
13380 PS1='$ '
13381 PS2='> '
13382 PS4='+ '
13383
13384 # NLS nuisances.
13385 for as_var in \
13386 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13387 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13388 LC_TELEPHONE LC_TIME
13389 do
13390 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13391 eval $as_var=C; export $as_var
13392 else
13393 $as_unset $as_var
13394 fi
13395 done
13396
13397 # Required to use basename.
13398 if expr a : '\(a\)' >/dev/null 2>&1; then
13399 as_expr=expr
13400 else
13401 as_expr=false
13402 fi
13403
13404 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13405 as_basename=basename
13406 else
13407 as_basename=false
13408 fi
13409
13410
13411 # Name of the executable.
13412 as_me=`$as_basename "$0" ||
13413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13414 X"$0" : 'X\(//\)$' \| \
13415 X"$0" : 'X\(/\)$' \| \
13416 . : '\(.\)' 2>/dev/null ||
13417 echo X/"$0" |
13418 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13419 /^X\/\(\/\/\)$/{ s//\1/; q; }
13420 /^X\/\(\/\).*/{ s//\1/; q; }
13421 s/.*/./; q'`
13422
13423
13424 # PATH needs CR, and LINENO needs CR and PATH.
13425 # Avoid depending upon Character Ranges.
13426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13429 as_cr_digits='0123456789'
13430 as_cr_alnum=$as_cr_Letters$as_cr_digits
13431
13432 # The user is always right.
13433 if test "${PATH_SEPARATOR+set}" != set; then
13434 echo "#! /bin/sh" >conf$$.sh
13435 echo "exit 0" >>conf$$.sh
13436 chmod +x conf$$.sh
13437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13438 PATH_SEPARATOR=';'
13439 else
13440 PATH_SEPARATOR=:
13441 fi
13442 rm -f conf$$.sh
13443 fi
13444
13445
13446 as_lineno_1=$LINENO
13447 as_lineno_2=$LINENO
13448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13449 test "x$as_lineno_1" != "x$as_lineno_2" &&
13450 test "x$as_lineno_3" = "x$as_lineno_2" || {
13451 # Find who we are. Look in the path if we contain no path at all
13452 # relative or not.
13453 case $0 in
13454 *[\\/]* ) as_myself=$0 ;;
13455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13457 do
13458 IFS=$as_save_IFS
13459 test -z "$as_dir" && as_dir=.
13460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13461 done
13462
13463 ;;
13464 esac
13465 # We did not find ourselves, most probably we were run as `sh COMMAND'
13466 # in which case we are not to be found in the path.
13467 if test "x$as_myself" = x; then
13468 as_myself=$0
13469 fi
13470 if test ! -f "$as_myself"; then
13471 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13472 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13473 { (exit 1); exit 1; }; }
13474 fi
13475 case $CONFIG_SHELL in
13476 '')
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13479 do
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for as_base in sh bash ksh sh5; do
13483 case $as_dir in
13484 /*)
13485 if ("$as_dir/$as_base" -c '
13486 as_lineno_1=$LINENO
13487 as_lineno_2=$LINENO
13488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13489 test "x$as_lineno_1" != "x$as_lineno_2" &&
13490 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13491 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13492 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13493 CONFIG_SHELL=$as_dir/$as_base
13494 export CONFIG_SHELL
13495 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13496 fi;;
13497 esac
13498 done
13499 done
13500 ;;
13501 esac
13502
13503 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13504 # uniformly replaced by the line number. The first 'sed' inserts a
13505 # line-number line before each line; the second 'sed' does the real
13506 # work. The second script uses 'N' to pair each line-number line
13507 # with the numbered line, and appends trailing '-' during
13508 # substitution so that $LINENO is not a special case at line end.
13509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13510 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13511 sed '=' <$as_myself |
13512 sed '
13513 N
13514 s,$,-,
13515 : loop
13516 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13517 t loop
13518 s,-$,,
13519 s,^['$as_cr_digits']*\n,,
13520 ' >$as_me.lineno &&
13521 chmod +x $as_me.lineno ||
13522 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13523 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13524 { (exit 1); exit 1; }; }
13525
13526 # Don't try to exec as it changes $[0], causing all sort of problems
13527 # (the dirname of $[0] is not the place where we might find the
13528 # original and so on. Autoconf is especially sensible to this).
13529 . ./$as_me.lineno
13530 # Exit status is that of the last command.
13531 exit
13532 }
13533
13534
13535 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13536 *c*,-n*) ECHO_N= ECHO_C='
13537 ' ECHO_T=' ' ;;
13538 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13539 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13540 esac
13541
13542 if expr a : '\(a\)' >/dev/null 2>&1; then
13543 as_expr=expr
13544 else
13545 as_expr=false
13546 fi
13547
13548 rm -f conf$$ conf$$.exe conf$$.file
13549 echo >conf$$.file
13550 if ln -s conf$$.file conf$$ 2>/dev/null; then
13551 # We could just check for DJGPP; but this test a) works b) is more generic
13552 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13553 if test -f conf$$.exe; then
13554 # Don't use ln at all; we don't have any links
13555 as_ln_s='cp -p'
13556 else
13557 as_ln_s='ln -s'
13558 fi
13559 elif ln conf$$.file conf$$ 2>/dev/null; then
13560 as_ln_s=ln
13561 else
13562 as_ln_s='cp -p'
13563 fi
13564 rm -f conf$$ conf$$.exe conf$$.file
13565
13566 if mkdir -p . 2>/dev/null; then
13567 as_mkdir_p=:
13568 else
13569 test -d ./-p && rmdir ./-p
13570 as_mkdir_p=false
13571 fi
13572
13573 as_executable_p="test -f"
13574
13575 # Sed expression to map a string onto a valid CPP name.
13576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13577
13578 # Sed expression to map a string onto a valid variable name.
13579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13580
13581
13582 # IFS
13583 # We need space, tab and new line, in precisely that order.
13584 as_nl='
13585 '
13586 IFS=" $as_nl"
13587
13588 # CDPATH.
13589 $as_unset CDPATH
13590
13591 exec 6>&1
13592
13593 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13594 # report actual input values of CONFIG_FILES etc. instead of their
13595 # values after options handling. Logging --version etc. is OK.
13596 exec 5>>config.log
13597 {
13598 echo
13599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13600 ## Running $as_me. ##
13601 _ASBOX
13602 } >&5
13603 cat >&5 <<_CSEOF
13604
13605 This file was extended by GNU Texinfo $as_me 4.8, which was
13606 generated by GNU Autoconf 2.59. Invocation command line was
13607
13608 CONFIG_FILES = $CONFIG_FILES
13609 CONFIG_HEADERS = $CONFIG_HEADERS
13610 CONFIG_LINKS = $CONFIG_LINKS
13611 CONFIG_COMMANDS = $CONFIG_COMMANDS
13612 $ $0 $@
13613
13614 _CSEOF
13615 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13616 echo >&5
13617 _ACEOF
13618
13619 # Files that config.status was made for.
13620 if test -n "$ac_config_files"; then
13621 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13622 fi
13623
13624 if test -n "$ac_config_headers"; then
13625 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13626 fi
13627
13628 if test -n "$ac_config_links"; then
13629 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13630 fi
13631
13632 if test -n "$ac_config_commands"; then
13633 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13634 fi
13635
13636 cat >>$CONFIG_STATUS <<\_ACEOF
13637
13638 ac_cs_usage="\
13639 \`$as_me' instantiates files from templates according to the
13640 current configuration.
13641
13642 Usage: $0 [OPTIONS] [FILE]...
13643
13644 -h, --help print this help, then exit
13645 -V, --version print version number, then exit
13646 -q, --quiet do not print progress messages
13647 -d, --debug don't remove temporary files
13648 --recheck update $as_me by reconfiguring in the same conditions
13649 --file=FILE[:TEMPLATE]
13650 instantiate the configuration file FILE
13651 --header=FILE[:TEMPLATE]
13652 instantiate the configuration header FILE
13653
13654 Configuration files:
13655 $config_files
13656
13657 Configuration headers:
13658 $config_headers
13659
13660 Configuration commands:
13661 $config_commands
13662
13663 Report bugs to <bug-autoconf@gnu.org>."
13664 _ACEOF
13665
13666 cat >>$CONFIG_STATUS <<_ACEOF
13667 ac_cs_version="\\
13668 GNU Texinfo config.status 4.8
13669 configured by $0, generated by GNU Autoconf 2.59,
13670 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13671
13672 Copyright (C) 2003 Free Software Foundation, Inc.
13673 This config.status script is free software; the Free Software Foundation
13674 gives unlimited permission to copy, distribute and modify it."
13675 srcdir=$srcdir
13676 INSTALL="$INSTALL"
13677 _ACEOF
13678
13679 cat >>$CONFIG_STATUS <<\_ACEOF
13680 # If no file are specified by the user, then we need to provide default
13681 # value. By we need to know if files were specified by the user.
13682 ac_need_defaults=:
13683 while test $# != 0
13684 do
13685 case $1 in
13686 --*=*)
13687 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13688 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13689 ac_shift=:
13690 ;;
13691 -*)
13692 ac_option=$1
13693 ac_optarg=$2
13694 ac_shift=shift
13695 ;;
13696 *) # This is not an option, so the user has probably given explicit
13697 # arguments.
13698 ac_option=$1
13699 ac_need_defaults=false;;
13700 esac
13701
13702 case $ac_option in
13703 # Handling of the options.
13704 _ACEOF
13705 cat >>$CONFIG_STATUS <<\_ACEOF
13706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13707 ac_cs_recheck=: ;;
13708 --version | --vers* | -V )
13709 echo "$ac_cs_version"; exit 0 ;;
13710 --he | --h)
13711 # Conflict between --help and --header
13712 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13713 Try \`$0 --help' for more information." >&5
13714 echo "$as_me: error: ambiguous option: $1
13715 Try \`$0 --help' for more information." >&2;}
13716 { (exit 1); exit 1; }; };;
13717 --help | --hel | -h )
13718 echo "$ac_cs_usage"; exit 0 ;;
13719 --debug | --d* | -d )
13720 debug=: ;;
13721 --file | --fil | --fi | --f )
13722 $ac_shift
13723 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13724 ac_need_defaults=false;;
13725 --header | --heade | --head | --hea )
13726 $ac_shift
13727 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13728 ac_need_defaults=false;;
13729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13731 ac_cs_silent=: ;;
13732
13733 # This is an error.
13734 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13735 Try \`$0 --help' for more information." >&5
13736 echo "$as_me: error: unrecognized option: $1
13737 Try \`$0 --help' for more information." >&2;}
13738 { (exit 1); exit 1; }; } ;;
13739
13740 *) ac_config_targets="$ac_config_targets $1" ;;
13741
13742 esac
13743 shift
13744 done
13745
13746 ac_configure_extra_args=
13747
13748 if $ac_cs_silent; then
13749 exec 6>/dev/null
13750 ac_configure_extra_args="$ac_configure_extra_args --silent"
13751 fi
13752
13753 _ACEOF
13754 cat >>$CONFIG_STATUS <<_ACEOF
13755 if \$ac_cs_recheck; then
13756 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13757 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13758 fi
13759
13760 _ACEOF
13761
13762 cat >>$CONFIG_STATUS <<_ACEOF
13763 #
13764 # INIT-COMMANDS section.
13765 #
13766
13767 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13768 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13769 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13770 # from automake.
13771 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13772 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13773 LINGUAS="${LINGUAS-%UNSET%}"
13774
13775
13776 _ACEOF
13777
13778
13779
13780 cat >>$CONFIG_STATUS <<\_ACEOF
13781 for ac_config_target in $ac_config_targets
13782 do
13783 case "$ac_config_target" in
13784 # Handling of arguments.
13785 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13786 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13787 "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;;
13788 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13789 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13790 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13791 "makeinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/Makefile" ;;
13792 "makeinfo/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/tests/Makefile" ;;
13793 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13794 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13795 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13796 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13797 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13798 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13799 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13800 { (exit 1); exit 1; }; };;
13801 esac
13802 done
13803
13804 # If the user did not use the arguments to specify the items to instantiate,
13805 # then the envvar interface is used. Set only those that are not.
13806 # We use the long form for the default assignment because of an extremely
13807 # bizarre bug on SunOS 4.1.3.
13808 if $ac_need_defaults; then
13809 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13810 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13811 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13812 fi
13813
13814 # Have a temporary directory for convenience. Make it in the build tree
13815 # simply because there is no reason to put it here, and in addition,
13816 # creating and moving files from /tmp can sometimes cause problems.
13817 # Create a temporary directory, and hook for its removal unless debugging.
13818 $debug ||
13819 {
13820 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13821 trap '{ (exit 1); exit 1; }' 1 2 13 15
13822 }
13823
13824 # Create a (secure) tmp directory for tmp files.
13825
13826 {
13827 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13828 test -n "$tmp" && test -d "$tmp"
13829 } ||
13830 {
13831 tmp=./confstat$$-$RANDOM
13832 (umask 077 && mkdir $tmp)
13833 } ||
13834 {
13835 echo "$me: cannot create a temporary directory in ." >&2
13836 { (exit 1); exit 1; }
13837 }
13838
13839 _ACEOF
13840
13841 cat >>$CONFIG_STATUS <<_ACEOF
13842
13843 #
13844 # CONFIG_FILES section.
13845 #
13846
13847 # No need to generate the scripts if there are no CONFIG_FILES.
13848 # This happens for instance when ./config.status config.h
13849 if test -n "\$CONFIG_FILES"; then
13850 # Protect against being on the right side of a sed subst in config.status.
13851 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13852 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13853 s,@SHELL@,$SHELL,;t t
13854 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13855 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13856 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13857 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13858 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13859 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13860 s,@exec_prefix@,$exec_prefix,;t t
13861 s,@prefix@,$prefix,;t t
13862 s,@program_transform_name@,$program_transform_name,;t t
13863 s,@bindir@,$bindir,;t t
13864 s,@sbindir@,$sbindir,;t t
13865 s,@libexecdir@,$libexecdir,;t t
13866 s,@datadir@,$datadir,;t t
13867 s,@sysconfdir@,$sysconfdir,;t t
13868 s,@sharedstatedir@,$sharedstatedir,;t t
13869 s,@localstatedir@,$localstatedir,;t t
13870 s,@libdir@,$libdir,;t t
13871 s,@includedir@,$includedir,;t t
13872 s,@oldincludedir@,$oldincludedir,;t t
13873 s,@infodir@,$infodir,;t t
13874 s,@mandir@,$mandir,;t t
13875 s,@build_alias@,$build_alias,;t t
13876 s,@host_alias@,$host_alias,;t t
13877 s,@target_alias@,$target_alias,;t t
13878 s,@DEFS@,$DEFS,;t t
13879 s,@ECHO_C@,$ECHO_C,;t t
13880 s,@ECHO_N@,$ECHO_N,;t t
13881 s,@ECHO_T@,$ECHO_T,;t t
13882 s,@LIBS@,$LIBS,;t t
13883 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13884 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13885 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13886 s,@CYGPATH_W@,$CYGPATH_W,;t t
13887 s,@PACKAGE@,$PACKAGE,;t t
13888 s,@VERSION@,$VERSION,;t t
13889 s,@ACLOCAL@,$ACLOCAL,;t t
13890 s,@AUTOCONF@,$AUTOCONF,;t t
13891 s,@AUTOMAKE@,$AUTOMAKE,;t t
13892 s,@AUTOHEADER@,$AUTOHEADER,;t t
13893 s,@MAKEINFO@,$MAKEINFO,;t t
13894 s,@install_sh@,$install_sh,;t t
13895 s,@STRIP@,$STRIP,;t t
13896 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13897 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13898 s,@mkdir_p@,$mkdir_p,;t t
13899 s,@AWK@,$AWK,;t t
13900 s,@SET_MAKE@,$SET_MAKE,;t t
13901 s,@am__leading_dot@,$am__leading_dot,;t t
13902 s,@AMTAR@,$AMTAR,;t t
13903 s,@am__tar@,$am__tar,;t t
13904 s,@am__untar@,$am__untar,;t t
13905 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13906 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13907 s,@MAINT@,$MAINT,;t t
13908 s,@CC@,$CC,;t t
13909 s,@CFLAGS@,$CFLAGS,;t t
13910 s,@LDFLAGS@,$LDFLAGS,;t t
13911 s,@CPPFLAGS@,$CPPFLAGS,;t t
13912 s,@ac_ct_CC@,$ac_ct_CC,;t t
13913 s,@EXEEXT@,$EXEEXT,;t t
13914 s,@OBJEXT@,$OBJEXT,;t t
13915 s,@DEPDIR@,$DEPDIR,;t t
13916 s,@am__include@,$am__include,;t t
13917 s,@am__quote@,$am__quote,;t t
13918 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13919 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13920 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13921 s,@CCDEPMODE@,$CCDEPMODE,;t t
13922 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13923 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13924 s,@CPP@,$CPP,;t t
13925 s,@EGREP@,$EGREP,;t t
13926 s,@RANLIB@,$RANLIB,;t t
13927 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13928 s,@HELP2MAN@,$HELP2MAN,;t t
13929 s,@ALLOCA@,$ALLOCA,;t t
13930 s,@LIBOBJS@,$LIBOBJS,;t t
13931 s,@build@,$build,;t t
13932 s,@build_cpu@,$build_cpu,;t t
13933 s,@build_vendor@,$build_vendor,;t t
13934 s,@build_os@,$build_os,;t t
13935 s,@native_tools@,$native_tools,;t t
13936 s,@TOOLS_ONLY_TRUE@,$TOOLS_ONLY_TRUE,;t t
13937 s,@TOOLS_ONLY_FALSE@,$TOOLS_ONLY_FALSE,;t t
13938 s,@TERMLIBS@,$TERMLIBS,;t t
13939 s,@host@,$host,;t t
13940 s,@host_cpu@,$host_cpu,;t t
13941 s,@host_vendor@,$host_vendor,;t t
13942 s,@host_os@,$host_os,;t t
13943 s,@INSTALL_WARNINGS_TRUE@,$INSTALL_WARNINGS_TRUE,;t t
13944 s,@INSTALL_WARNINGS_FALSE@,$INSTALL_WARNINGS_FALSE,;t t
13945 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13946 s,@USE_NLS@,$USE_NLS,;t t
13947 s,@MSGFMT@,$MSGFMT,;t t
13948 s,@GMSGFMT@,$GMSGFMT,;t t
13949 s,@XGETTEXT@,$XGETTEXT,;t t
13950 s,@MSGMERGE@,$MSGMERGE,;t t
13951 s,@GLIBC21@,$GLIBC21,;t t
13952 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
13953 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
13954 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
13955 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
13956 s,@LIBICONV@,$LIBICONV,;t t
13957 s,@LTLIBICONV@,$LTLIBICONV,;t t
13958 s,@INTLBISON@,$INTLBISON,;t t
13959 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
13960 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13961 s,@CATOBJEXT@,$CATOBJEXT,;t t
13962 s,@DATADIRNAME@,$DATADIRNAME,;t t
13963 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13964 s,@GENCAT@,$GENCAT,;t t
13965 s,@INTLOBJS@,$INTLOBJS,;t t
13966 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
13967 s,@INTLLIBS@,$INTLLIBS,;t t
13968 s,@LIBINTL@,$LIBINTL,;t t
13969 s,@LTLIBINTL@,$LTLIBINTL,;t t
13970 s,@POSUB@,$POSUB,;t t
13971 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13972 CEOF
13973
13974 _ACEOF
13975
13976 cat >>$CONFIG_STATUS <<\_ACEOF
13977 # Split the substitutions into bite-sized pieces for seds with
13978 # small command number limits, like on Digital OSF/1 and HP-UX.
13979 ac_max_sed_lines=48
13980 ac_sed_frag=1 # Number of current file.
13981 ac_beg=1 # First line for current file.
13982 ac_end=$ac_max_sed_lines # Line after last line for current file.
13983 ac_more_lines=:
13984 ac_sed_cmds=
13985 while $ac_more_lines; do
13986 if test $ac_beg -gt 1; then
13987 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13988 else
13989 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13990 fi
13991 if test ! -s $tmp/subs.frag; then
13992 ac_more_lines=false
13993 else
13994 # The purpose of the label and of the branching condition is to
13995 # speed up the sed processing (if there are no `@' at all, there
13996 # is no need to browse any of the substitutions).
13997 # These are the two extra sed commands mentioned above.
13998 (echo ':t
13999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14000 if test -z "$ac_sed_cmds"; then
14001 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14002 else
14003 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14004 fi
14005 ac_sed_frag=`expr $ac_sed_frag + 1`
14006 ac_beg=$ac_end
14007 ac_end=`expr $ac_end + $ac_max_sed_lines`
14008 fi
14009 done
14010 if test -z "$ac_sed_cmds"; then
14011 ac_sed_cmds=cat
14012 fi
14013 fi # test -n "$CONFIG_FILES"
14014
14015 _ACEOF
14016 cat >>$CONFIG_STATUS <<\_ACEOF
14017 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14019 case $ac_file in
14020 - | *:- | *:-:* ) # input from stdin
14021 cat >$tmp/stdin
14022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14026 * ) ac_file_in=$ac_file.in ;;
14027 esac
14028
14029 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14030 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14032 X"$ac_file" : 'X\(//\)[^/]' \| \
14033 X"$ac_file" : 'X\(//\)$' \| \
14034 X"$ac_file" : 'X\(/\)' \| \
14035 . : '\(.\)' 2>/dev/null ||
14036 echo X"$ac_file" |
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14039 /^X\(\/\/\)$/{ s//\1/; q; }
14040 /^X\(\/\).*/{ s//\1/; q; }
14041 s/.*/./; q'`
14042 { if $as_mkdir_p; then
14043 mkdir -p "$ac_dir"
14044 else
14045 as_dir="$ac_dir"
14046 as_dirs=
14047 while test ! -d "$as_dir"; do
14048 as_dirs="$as_dir $as_dirs"
14049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14051 X"$as_dir" : 'X\(//\)[^/]' \| \
14052 X"$as_dir" : 'X\(//\)$' \| \
14053 X"$as_dir" : 'X\(/\)' \| \
14054 . : '\(.\)' 2>/dev/null ||
14055 echo X"$as_dir" |
14056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14058 /^X\(\/\/\)$/{ s//\1/; q; }
14059 /^X\(\/\).*/{ s//\1/; q; }
14060 s/.*/./; q'`
14061 done
14062 test ! -n "$as_dirs" || mkdir $as_dirs
14063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14065 { (exit 1); exit 1; }; }; }
14066
14067 ac_builddir=.
14068
14069 if test "$ac_dir" != .; then
14070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14071 # A "../" for each directory in $ac_dir_suffix.
14072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14073 else
14074 ac_dir_suffix= ac_top_builddir=
14075 fi
14076
14077 case $srcdir in
14078 .) # No --srcdir option. We are building in place.
14079 ac_srcdir=.
14080 if test -z "$ac_top_builddir"; then
14081 ac_top_srcdir=.
14082 else
14083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14084 fi ;;
14085 [\\/]* | ?:[\\/]* ) # Absolute path.
14086 ac_srcdir=$srcdir$ac_dir_suffix;
14087 ac_top_srcdir=$srcdir ;;
14088 *) # Relative path.
14089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14091 esac
14092
14093 # Do not use `cd foo && pwd` to compute absolute paths, because
14094 # the directories may not exist.
14095 case `pwd` in
14096 .) ac_abs_builddir="$ac_dir";;
14097 *)
14098 case "$ac_dir" in
14099 .) ac_abs_builddir=`pwd`;;
14100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14102 esac;;
14103 esac
14104 case $ac_abs_builddir in
14105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14106 *)
14107 case ${ac_top_builddir}. in
14108 .) ac_abs_top_builddir=$ac_abs_builddir;;
14109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14111 esac;;
14112 esac
14113 case $ac_abs_builddir in
14114 .) ac_abs_srcdir=$ac_srcdir;;
14115 *)
14116 case $ac_srcdir in
14117 .) ac_abs_srcdir=$ac_abs_builddir;;
14118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14120 esac;;
14121 esac
14122 case $ac_abs_builddir in
14123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14124 *)
14125 case $ac_top_srcdir in
14126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14129 esac;;
14130 esac
14131
14132
14133 case $INSTALL in
14134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14135 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14136 esac
14137
14138 if test x"$ac_file" != x-; then
14139 { echo "$as_me:$LINENO: creating $ac_file" >&5
14140 echo "$as_me: creating $ac_file" >&6;}
14141 rm -f "$ac_file"
14142 fi
14143 # Let's still pretend it is `configure' which instantiates (i.e., don't
14144 # use $as_me), people would be surprised to read:
14145 # /* config.h. Generated by config.status. */
14146 if test x"$ac_file" = x-; then
14147 configure_input=
14148 else
14149 configure_input="$ac_file. "
14150 fi
14151 configure_input=$configure_input"Generated from `echo $ac_file_in |
14152 sed 's,.*/,,'` by configure."
14153
14154 # First look for the input files in the build tree, otherwise in the
14155 # src tree.
14156 ac_file_inputs=`IFS=:
14157 for f in $ac_file_in; do
14158 case $f in
14159 -) echo $tmp/stdin ;;
14160 [\\/$]*)
14161 # Absolute (can't be DOS-style, as IFS=:)
14162 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14163 echo "$as_me: error: cannot find input file: $f" >&2;}
14164 { (exit 1); exit 1; }; }
14165 echo "$f";;
14166 *) # Relative
14167 if test -f "$f"; then
14168 # Build tree
14169 echo "$f"
14170 elif test -f "$srcdir/$f"; then
14171 # Source tree
14172 echo "$srcdir/$f"
14173 else
14174 # /dev/null tree
14175 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14176 echo "$as_me: error: cannot find input file: $f" >&2;}
14177 { (exit 1); exit 1; }; }
14178 fi;;
14179 esac
14180 done` || { (exit 1); exit 1; }
14181 _ACEOF
14182 cat >>$CONFIG_STATUS <<_ACEOF
14183 sed "$ac_vpsub
14184 $extrasub
14185 _ACEOF
14186 cat >>$CONFIG_STATUS <<\_ACEOF
14187 :t
14188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14189 s,@configure_input@,$configure_input,;t t
14190 s,@srcdir@,$ac_srcdir,;t t
14191 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14192 s,@top_srcdir@,$ac_top_srcdir,;t t
14193 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14194 s,@builddir@,$ac_builddir,;t t
14195 s,@abs_builddir@,$ac_abs_builddir,;t t
14196 s,@top_builddir@,$ac_top_builddir,;t t
14197 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14198 s,@INSTALL@,$ac_INSTALL,;t t
14199 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14200 rm -f $tmp/stdin
14201 if test x"$ac_file" != x-; then
14202 mv $tmp/out $ac_file
14203 else
14204 cat $tmp/out
14205 rm -f $tmp/out
14206 fi
14207
14208 done
14209 _ACEOF
14210 cat >>$CONFIG_STATUS <<\_ACEOF
14211
14212 #
14213 # CONFIG_HEADER section.
14214 #
14215
14216 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14217 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14218 #
14219 # ac_d sets the value in "#define NAME VALUE" lines.
14220 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14221 ac_dB='[ ].*$,\1#\2'
14222 ac_dC=' '
14223 ac_dD=',;t'
14224 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14225 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14226 ac_uB='$,\1#\2define\3'
14227 ac_uC=' '
14228 ac_uD=',;t'
14229
14230 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14232 case $ac_file in
14233 - | *:- | *:-:* ) # input from stdin
14234 cat >$tmp/stdin
14235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14239 * ) ac_file_in=$ac_file.in ;;
14240 esac
14241
14242 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14243 echo "$as_me: creating $ac_file" >&6;}
14244
14245 # First look for the input files in the build tree, otherwise in the
14246 # src tree.
14247 ac_file_inputs=`IFS=:
14248 for f in $ac_file_in; do
14249 case $f in
14250 -) echo $tmp/stdin ;;
14251 [\\/$]*)
14252 # Absolute (can't be DOS-style, as IFS=:)
14253 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14254 echo "$as_me: error: cannot find input file: $f" >&2;}
14255 { (exit 1); exit 1; }; }
14256 # Do quote $f, to prevent DOS paths from being IFS'd.
14257 echo "$f";;
14258 *) # Relative
14259 if test -f "$f"; then
14260 # Build tree
14261 echo "$f"
14262 elif test -f "$srcdir/$f"; then
14263 # Source tree
14264 echo "$srcdir/$f"
14265 else
14266 # /dev/null tree
14267 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14268 echo "$as_me: error: cannot find input file: $f" >&2;}
14269 { (exit 1); exit 1; }; }
14270 fi;;
14271 esac
14272 done` || { (exit 1); exit 1; }
14273 # Remove the trailing spaces.
14274 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14275
14276 _ACEOF
14277
14278 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14279 # `conftest.undefs', that substitutes the proper values into
14280 # config.h.in to produce config.h. The first handles `#define'
14281 # templates, and the second `#undef' templates.
14282 # And first: Protect against being on the right side of a sed subst in
14283 # config.status. Protect against being in an unquoted here document
14284 # in config.status.
14285 rm -f conftest.defines conftest.undefs
14286 # Using a here document instead of a string reduces the quoting nightmare.
14287 # Putting comments in sed scripts is not portable.
14288 #
14289 # `end' is used to avoid that the second main sed command (meant for
14290 # 0-ary CPP macros) applies to n-ary macro definitions.
14291 # See the Autoconf documentation for `clear'.
14292 cat >confdef2sed.sed <<\_ACEOF
14293 s/[\\&,]/\\&/g
14294 s,[\\$`],\\&,g
14295 t clear
14296 : clear
14297 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14298 t end
14299 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14300 : end
14301 _ACEOF
14302 # If some macros were called several times there might be several times
14303 # the same #defines, which is useless. Nevertheless, we may not want to
14304 # sort them, since we want the *last* AC-DEFINE to be honored.
14305 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14306 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14307 rm -f confdef2sed.sed
14308
14309 # This sed command replaces #undef with comments. This is necessary, for
14310 # example, in the case of _POSIX_SOURCE, which is predefined and required
14311 # on some systems where configure will not decide to define it.
14312 cat >>conftest.undefs <<\_ACEOF
14313 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14314 _ACEOF
14315
14316 # Break up conftest.defines because some shells have a limit on the size
14317 # of here documents, and old seds have small limits too (100 cmds).
14318 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14319 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14320 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14321 echo ' :' >>$CONFIG_STATUS
14322 rm -f conftest.tail
14323 while grep . conftest.defines >/dev/null
14324 do
14325 # Write a limited-size here document to $tmp/defines.sed.
14326 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14327 # Speed up: don't consider the non `#define' lines.
14328 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14329 # Work around the forget-to-reset-the-flag bug.
14330 echo 't clr' >>$CONFIG_STATUS
14331 echo ': clr' >>$CONFIG_STATUS
14332 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14333 echo 'CEOF
14334 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14335 rm -f $tmp/in
14336 mv $tmp/out $tmp/in
14337 ' >>$CONFIG_STATUS
14338 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14339 rm -f conftest.defines
14340 mv conftest.tail conftest.defines
14341 done
14342 rm -f conftest.defines
14343 echo ' fi # grep' >>$CONFIG_STATUS
14344 echo >>$CONFIG_STATUS
14345
14346 # Break up conftest.undefs because some shells have a limit on the size
14347 # of here documents, and old seds have small limits too (100 cmds).
14348 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14349 rm -f conftest.tail
14350 while grep . conftest.undefs >/dev/null
14351 do
14352 # Write a limited-size here document to $tmp/undefs.sed.
14353 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14354 # Speed up: don't consider the non `#undef'
14355 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14356 # Work around the forget-to-reset-the-flag bug.
14357 echo 't clr' >>$CONFIG_STATUS
14358 echo ': clr' >>$CONFIG_STATUS
14359 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14360 echo 'CEOF
14361 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14362 rm -f $tmp/in
14363 mv $tmp/out $tmp/in
14364 ' >>$CONFIG_STATUS
14365 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14366 rm -f conftest.undefs
14367 mv conftest.tail conftest.undefs
14368 done
14369 rm -f conftest.undefs
14370
14371 cat >>$CONFIG_STATUS <<\_ACEOF
14372 # Let's still pretend it is `configure' which instantiates (i.e., don't
14373 # use $as_me), people would be surprised to read:
14374 # /* config.h. Generated by config.status. */
14375 if test x"$ac_file" = x-; then
14376 echo "/* Generated by configure. */" >$tmp/config.h
14377 else
14378 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14379 fi
14380 cat $tmp/in >>$tmp/config.h
14381 rm -f $tmp/in
14382 if test x"$ac_file" != x-; then
14383 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14384 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14385 echo "$as_me: $ac_file is unchanged" >&6;}
14386 else
14387 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14389 X"$ac_file" : 'X\(//\)[^/]' \| \
14390 X"$ac_file" : 'X\(//\)$' \| \
14391 X"$ac_file" : 'X\(/\)' \| \
14392 . : '\(.\)' 2>/dev/null ||
14393 echo X"$ac_file" |
14394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14396 /^X\(\/\/\)$/{ s//\1/; q; }
14397 /^X\(\/\).*/{ s//\1/; q; }
14398 s/.*/./; q'`
14399 { if $as_mkdir_p; then
14400 mkdir -p "$ac_dir"
14401 else
14402 as_dir="$ac_dir"
14403 as_dirs=
14404 while test ! -d "$as_dir"; do
14405 as_dirs="$as_dir $as_dirs"
14406 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14408 X"$as_dir" : 'X\(//\)[^/]' \| \
14409 X"$as_dir" : 'X\(//\)$' \| \
14410 X"$as_dir" : 'X\(/\)' \| \
14411 . : '\(.\)' 2>/dev/null ||
14412 echo X"$as_dir" |
14413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14415 /^X\(\/\/\)$/{ s//\1/; q; }
14416 /^X\(\/\).*/{ s//\1/; q; }
14417 s/.*/./; q'`
14418 done
14419 test ! -n "$as_dirs" || mkdir $as_dirs
14420 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14421 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14422 { (exit 1); exit 1; }; }; }
14423
14424 rm -f $ac_file
14425 mv $tmp/config.h $ac_file
14426 fi
14427 else
14428 cat $tmp/config.h
14429 rm -f $tmp/config.h
14430 fi
14431 # Compute $ac_file's index in $config_headers.
14432 _am_stamp_count=1
14433 for _am_header in $config_headers :; do
14434 case $_am_header in
14435 $ac_file | $ac_file:* )
14436 break ;;
14437 * )
14438 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14439 esac
14440 done
14441 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14442 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14443 X$ac_file : 'X\(//\)[^/]' \| \
14444 X$ac_file : 'X\(//\)$' \| \
14445 X$ac_file : 'X\(/\)' \| \
14446 . : '\(.\)' 2>/dev/null ||
14447 echo X$ac_file |
14448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14450 /^X\(\/\/\)$/{ s//\1/; q; }
14451 /^X\(\/\).*/{ s//\1/; q; }
14452 s/.*/./; q'`/stamp-h$_am_stamp_count
14453 done
14454 _ACEOF
14455 cat >>$CONFIG_STATUS <<\_ACEOF
14456
14457 #
14458 # CONFIG_COMMANDS section.
14459 #
14460 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14461 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14462 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14463 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14464 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14465 X"$ac_dest" : 'X\(//\)[^/]' \| \
14466 X"$ac_dest" : 'X\(//\)$' \| \
14467 X"$ac_dest" : 'X\(/\)' \| \
14468 . : '\(.\)' 2>/dev/null ||
14469 echo X"$ac_dest" |
14470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14472 /^X\(\/\/\)$/{ s//\1/; q; }
14473 /^X\(\/\).*/{ s//\1/; q; }
14474 s/.*/./; q'`
14475 { if $as_mkdir_p; then
14476 mkdir -p "$ac_dir"
14477 else
14478 as_dir="$ac_dir"
14479 as_dirs=
14480 while test ! -d "$as_dir"; do
14481 as_dirs="$as_dir $as_dirs"
14482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14484 X"$as_dir" : 'X\(//\)[^/]' \| \
14485 X"$as_dir" : 'X\(//\)$' \| \
14486 X"$as_dir" : 'X\(/\)' \| \
14487 . : '\(.\)' 2>/dev/null ||
14488 echo X"$as_dir" |
14489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14491 /^X\(\/\/\)$/{ s//\1/; q; }
14492 /^X\(\/\).*/{ s//\1/; q; }
14493 s/.*/./; q'`
14494 done
14495 test ! -n "$as_dirs" || mkdir $as_dirs
14496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14497 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14498 { (exit 1); exit 1; }; }; }
14499
14500 ac_builddir=.
14501
14502 if test "$ac_dir" != .; then
14503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14504 # A "../" for each directory in $ac_dir_suffix.
14505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14506 else
14507 ac_dir_suffix= ac_top_builddir=
14508 fi
14509
14510 case $srcdir in
14511 .) # No --srcdir option. We are building in place.
14512 ac_srcdir=.
14513 if test -z "$ac_top_builddir"; then
14514 ac_top_srcdir=.
14515 else
14516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14517 fi ;;
14518 [\\/]* | ?:[\\/]* ) # Absolute path.
14519 ac_srcdir=$srcdir$ac_dir_suffix;
14520 ac_top_srcdir=$srcdir ;;
14521 *) # Relative path.
14522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14524 esac
14525
14526 # Do not use `cd foo && pwd` to compute absolute paths, because
14527 # the directories may not exist.
14528 case `pwd` in
14529 .) ac_abs_builddir="$ac_dir";;
14530 *)
14531 case "$ac_dir" in
14532 .) ac_abs_builddir=`pwd`;;
14533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14534 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14535 esac;;
14536 esac
14537 case $ac_abs_builddir in
14538 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14539 *)
14540 case ${ac_top_builddir}. in
14541 .) ac_abs_top_builddir=$ac_abs_builddir;;
14542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14544 esac;;
14545 esac
14546 case $ac_abs_builddir in
14547 .) ac_abs_srcdir=$ac_srcdir;;
14548 *)
14549 case $ac_srcdir in
14550 .) ac_abs_srcdir=$ac_abs_builddir;;
14551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14553 esac;;
14554 esac
14555 case $ac_abs_builddir in
14556 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14557 *)
14558 case $ac_top_srcdir in
14559 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14562 esac;;
14563 esac
14564
14565
14566 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14567 echo "$as_me: executing $ac_dest commands" >&6;}
14568 case $ac_dest in
14569 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14570 # Strip MF so we end up with the name of the file.
14571 mf=`echo "$mf" | sed -e 's/:.*$//'`
14572 # Check whether this is an Automake generated Makefile or not.
14573 # We used to match only the files named `Makefile.in', but
14574 # some people rename them; so instead we look at the file content.
14575 # Grep'ing the first line is not enough: some people post-process
14576 # each Makefile.in and add a new line on top of each file to say so.
14577 # So let's grep whole file.
14578 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14579 dirpart=`(dirname "$mf") 2>/dev/null ||
14580 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14581 X"$mf" : 'X\(//\)[^/]' \| \
14582 X"$mf" : 'X\(//\)$' \| \
14583 X"$mf" : 'X\(/\)' \| \
14584 . : '\(.\)' 2>/dev/null ||
14585 echo X"$mf" |
14586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14588 /^X\(\/\/\)$/{ s//\1/; q; }
14589 /^X\(\/\).*/{ s//\1/; q; }
14590 s/.*/./; q'`
14591 else
14592 continue
14593 fi
14594 # Extract the definition of DEPDIR, am__include, and am__quote
14595 # from the Makefile without running `make'.
14596 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14597 test -z "$DEPDIR" && continue
14598 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14599 test -z "am__include" && continue
14600 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14601 # When using ansi2knr, U may be empty or an underscore; expand it
14602 U=`sed -n 's/^U = //p' < "$mf"`
14603 # Find all dependency output files, they are included files with
14604 # $(DEPDIR) in their names. We invoke sed twice because it is the
14605 # simplest approach to changing $(DEPDIR) to its actual value in the
14606 # expansion.
14607 for file in `sed -n "
14608 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14609 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14610 # Make sure the directory exists.
14611 test -f "$dirpart/$file" && continue
14612 fdir=`(dirname "$file") 2>/dev/null ||
14613 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14614 X"$file" : 'X\(//\)[^/]' \| \
14615 X"$file" : 'X\(//\)$' \| \
14616 X"$file" : 'X\(/\)' \| \
14617 . : '\(.\)' 2>/dev/null ||
14618 echo X"$file" |
14619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14621 /^X\(\/\/\)$/{ s//\1/; q; }
14622 /^X\(\/\).*/{ s//\1/; q; }
14623 s/.*/./; q'`
14624 { if $as_mkdir_p; then
14625 mkdir -p $dirpart/$fdir
14626 else
14627 as_dir=$dirpart/$fdir
14628 as_dirs=
14629 while test ! -d "$as_dir"; do
14630 as_dirs="$as_dir $as_dirs"
14631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14633 X"$as_dir" : 'X\(//\)[^/]' \| \
14634 X"$as_dir" : 'X\(//\)$' \| \
14635 X"$as_dir" : 'X\(/\)' \| \
14636 . : '\(.\)' 2>/dev/null ||
14637 echo X"$as_dir" |
14638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14640 /^X\(\/\/\)$/{ s//\1/; q; }
14641 /^X\(\/\).*/{ s//\1/; q; }
14642 s/.*/./; q'`
14643 done
14644 test ! -n "$as_dirs" || mkdir $as_dirs
14645 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14646 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14647 { (exit 1); exit 1; }; }; }
14648
14649 # echo "creating $dirpart/$file"
14650 echo '# dummy' > "$dirpart/$file"
14651 done
14652 done
14653 ;;
14654 default-1 )
14655 for ac_file in $CONFIG_FILES; do
14656 # Support "outfile[:infile[:infile...]]"
14657 case "$ac_file" in
14658 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14659 esac
14660 # PO directories have a Makefile.in generated from Makefile.in.in.
14661 case "$ac_file" in */Makefile.in)
14662 # Adjust a relative srcdir.
14663 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14664 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14665 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14666 # In autoconf-2.13 it is called $ac_given_srcdir.
14667 # In autoconf-2.50 it is called $srcdir.
14668 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14669 case "$ac_given_srcdir" in
14670 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14671 /*) top_srcdir="$ac_given_srcdir" ;;
14672 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14673 esac
14674 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14675 rm -f "$ac_dir/POTFILES"
14676 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14677 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14678 POMAKEFILEDEPS="POTFILES.in"
14679 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14680 # on $ac_dir but don't depend on user-specified configuration
14681 # parameters.
14682 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14683 # The LINGUAS file contains the set of available languages.
14684 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14685 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14686 fi
14687 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14688 # Hide the ALL_LINGUAS assigment from automake.
14689 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14690 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14691 else
14692 # The set of available languages was given in configure.in.
14693 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14694 fi
14695 # Compute POFILES
14696 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14697 # Compute UPDATEPOFILES
14698 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14699 # Compute DUMMYPOFILES
14700 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14701 # Compute GMOFILES
14702 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14703 case "$ac_given_srcdir" in
14704 .) srcdirpre= ;;
14705 *) srcdirpre='$(srcdir)/' ;;
14706 esac
14707 POFILES=
14708 UPDATEPOFILES=
14709 DUMMYPOFILES=
14710 GMOFILES=
14711 for lang in $ALL_LINGUAS; do
14712 POFILES="$POFILES $srcdirpre$lang.po"
14713 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14714 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14715 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14716 done
14717 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14718 # environment variable.
14719 INST_LINGUAS=
14720 if test -n "$ALL_LINGUAS"; then
14721 for presentlang in $ALL_LINGUAS; do
14722 useit=no
14723 if test "%UNSET%" != "$LINGUAS"; then
14724 desiredlanguages="$LINGUAS"
14725 else
14726 desiredlanguages="$ALL_LINGUAS"
14727 fi
14728 for desiredlang in $desiredlanguages; do
14729 # Use the presentlang catalog if desiredlang is
14730 # a. equal to presentlang, or
14731 # b. a variant of presentlang (because in this case,
14732 # presentlang can be used as a fallback for messages
14733 # which are not translated in the desiredlang catalog).
14734 case "$desiredlang" in
14735 "$presentlang"*) useit=yes;;
14736 esac
14737 done
14738 if test $useit = yes; then
14739 INST_LINGUAS="$INST_LINGUAS $presentlang"
14740 fi
14741 done
14742 fi
14743 CATALOGS=
14744 if test -n "$INST_LINGUAS"; then
14745 for lang in $INST_LINGUAS; do
14746 CATALOGS="$CATALOGS $lang.gmo"
14747 done
14748 fi
14749 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14750 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14751 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14752 if test -f "$f"; then
14753 case "$f" in
14754 *.orig | *.bak | *~) ;;
14755 *) cat "$f" >> "$ac_dir/Makefile" ;;
14756 esac
14757 fi
14758 done
14759 fi
14760 ;;
14761 esac
14762 done ;;
14763 esac
14764 done
14765 _ACEOF
14766
14767 cat >>$CONFIG_STATUS <<\_ACEOF
14768
14769 { (exit 0); exit 0; }
14770 _ACEOF
14771 chmod +x $CONFIG_STATUS
14772 ac_clean_files=$ac_clean_files_save
14773
14774
14775 # configure is writing to config.log, and then calls config.status.
14776 # config.status does its own redirection, appending to config.log.
14777 # Unfortunately, on DOS this fails, as config.log is still kept open
14778 # by configure, so config.status won't be able to write to it; its
14779 # output is simply discarded. So we exec the FD to /dev/null,
14780 # effectively closing config.log, so it can be properly (re)opened and
14781 # appended to by config.status. When coming back to configure, we
14782 # need to make the FD available again.
14783 if test "$no_create" != yes; then
14784 ac_cs_success=:
14785 ac_config_status_args=
14786 test "$silent" = yes &&
14787 ac_config_status_args="$ac_config_status_args --quiet"
14788 exec 5>/dev/null
14789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14790 exec 5>>config.log
14791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14792 # would make configure fail if this is the last instruction.
14793 $ac_cs_success || { (exit 1); exit 1; }
14794 fi
14795
14796